Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion microdocs-core-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxxton/microdocs-core",
"version": "1.6.3",
"version": "1.6.4",
"description": "Shared code for the microdocs-server and microdocs-ui",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions microdocs-crawler-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxxton/microdocs-crawler",
"version": "1.6.3",
"version": "1.6.4",
"description": "MicroDocs crawler for typescript projects",
"repository": {
"type": "git",
Expand All @@ -17,7 +17,7 @@
"microdocs-docker": "dist/microdocs-docker.js"
},
"dependencies": {
"@maxxton/microdocs-core": "1.6.2",
"@maxxton/microdocs-core": "1.6.4",
"chai": "^3.5.0",
"globby": "^6.0.0",
"js-yaml": "^3.7.0",
Expand Down
2 changes: 1 addition & 1 deletion microdocs-crawler-ts/src/crawler/microdocs-crawler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class MicroDocsCrawler {
public publish( sources: string[], publishOptions: PublishOptions, tsConfig: {} = {}, callback:(response:ProblemResponse)=>void = cliHelper.printProblemResponse, frameworks: Framework[] = FRAMEWORKS ): void {
var project = this.crawl( sources, tsConfig, frameworks );


new MicroDocsClient().publish(publishOptions, project, callback);
}

}
Expand Down
4 changes: 2 additions & 2 deletions microdocs-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxxton/microdocs-server",
"version": "1.6.3",
"version": "1.6.4",
"description": "MicroDocs server, see http://microdocs.io",
"repository": {
"type": "git",
Expand All @@ -19,7 +19,7 @@
"author": "Steven Hermans (s.hermans@maxxton.com)",
"license": "MIT",
"dependencies": {
"@maxxton/microdocs-core": "1.6.3",
"@maxxton/microdocs-core": "1.6.4",
"body-parser": "^1.15.2",
"express": "^4.14.0",
"express-handlebars": "^3.0.0",
Expand Down
19 changes: 9 additions & 10 deletions microdocs-server/src/routes/check.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,18 @@ export class CheckRoute extends BaseRoute {

var project = req.body as Project;
if (project != null && project != undefined) {
let title = req.query.project;
if(!title){
title = project.info.title;
}
if(!title){
handler.handleBadRequest(req, res, 'project param is missing');
return;
}
if (project.info == null || project.info == undefined) {
project.info = new ProjectInfo(undefined, undefined, undefined, undefined);
}
if (project.info.title == null || project.info.title == undefined) {
if (req.query.project != undefined) {
project.info.title = req.query.project;
} else {
handler.handleBadRequest(req, res, 'project param is missing');
return;
}
}
project.info.version = '9999999999.0.0';
project.info.setVersions(['9999999999.0.0']);
project.info = new ProjectInfo(title, project.info.group, '9999999999.0.0', ['9999999999.0.0'], project.info.links, project.info.description, project.info.sourceLink);

var problems: Problem[] = scope.injection.AggregationService().checkProject(env, project);
handler.handleProblems(req, res, problems, env);
Expand Down
4 changes: 2 additions & 2 deletions microdocs-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxxton/microdocs-ui",
"version": "1.6.3",
"version": "1.6.4",
"description": "Frontend for the microdocs-server",
"author": "S. Hermans",
"repository": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"@angular/router": "3.0.0-beta.2",
"@maxxton/angular2-rest": "^1.0.0",
"@maxxton/components": "2.6.0",
"@maxxton/microdocs-core": "1.6.3",
"@maxxton/microdocs-core": "1.6.4",
"angular2-prettyjson": "^1.0.4",
"core-js": "^2.4.0",
"d3": "3.5.17",
Expand Down