kamboja-core
Advanced tools
Comparing version 0.5.0-alpha.695401af to 0.5.0-alpha.70d3c872
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class ActionResult { | ||
constructor(body, status, type) { | ||
var ActionResult = /** @class */ (function () { | ||
function ActionResult(body, status, type) { | ||
this.body = body; | ||
@@ -11,7 +11,7 @@ this.status = status; | ||
} | ||
setHeader(key, value) { | ||
ActionResult.prototype.setHeader = function (key, value) { | ||
this.header[key] = value; | ||
return this; | ||
} | ||
setCookie(key, value, options) { | ||
}; | ||
ActionResult.prototype.setCookie = function (key, value, options) { | ||
if (!this.cookies) | ||
@@ -21,12 +21,12 @@ this.cookies = []; | ||
return this; | ||
} | ||
setStatus(status) { | ||
}; | ||
ActionResult.prototype.setStatus = function (status) { | ||
this.status = status; | ||
return this; | ||
} | ||
setType(type) { | ||
}; | ||
ActionResult.prototype.setType = function (type) { | ||
this.type = type; | ||
return this; | ||
} | ||
broadcast(event, data) { | ||
}; | ||
ActionResult.prototype.broadcast = function (event, data) { | ||
if (!this.events) | ||
@@ -36,4 +36,4 @@ this.events = []; | ||
return this; | ||
} | ||
emit(event, id, data) { | ||
}; | ||
ActionResult.prototype.emit = function (event, id, data) { | ||
if (!this.events) | ||
@@ -43,7 +43,8 @@ this.events = []; | ||
return this; | ||
} | ||
execute(context, response, routeInfo) { | ||
}; | ||
ActionResult.prototype.execute = function (context, response, routeInfo) { | ||
response.send(this); | ||
} | ||
} | ||
}; | ||
return ActionResult; | ||
}()); | ||
exports.ActionResult = ActionResult; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
var tslib_1 = require("tslib"); | ||
tslib_1.__exportStar(require("./invocation"), exports); | ||
tslib_1.__exportStar(require("./method-decorator"), exports); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class Invocation { | ||
} | ||
var Invocation = /** @class */ (function () { | ||
function Invocation() { | ||
} | ||
return Invocation; | ||
}()); | ||
exports.Invocation = Invocation; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.MethodDecorator = (target, propertyKey, descriptor) => { }; | ||
exports.MethodDecorator = function (target, propertyKey, descriptor) { }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
class HttpError { | ||
constructor(status, error, request, response) { | ||
var HttpError = /** @class */ (function () { | ||
function HttpError(status, error, request, response) { | ||
this.status = status; | ||
@@ -10,3 +10,4 @@ this.error = error; | ||
} | ||
} | ||
return HttpError; | ||
}()); | ||
exports.HttpError = HttpError; |
@@ -8,18 +8,18 @@ export declare namespace RouteAnalysisCode { | ||
/** | ||
* Only applied on GET method, issue when action contains parameter | ||
* but route doesn't have any | ||
*/ | ||
* Only applied on GET method, issue when action contains parameter | ||
* but route doesn't have any | ||
*/ | ||
const MissingRouteParameters = 2; | ||
/** | ||
* Issue when router contains parameter, but action doesn't have any | ||
*/ | ||
* Issue when router contains parameter, but action doesn't have any | ||
*/ | ||
const MissingActionParameters = 3; | ||
/** | ||
* Issue when @internal decorator combined with other http method decorator | ||
*/ | ||
* Issue when @internal decorator combined with other http method decorator | ||
*/ | ||
const ConflictDecorators = 4; | ||
/** | ||
* API Convention fail because appropriate method name is match with | ||
* method naming convention but the method doesn't have parameters | ||
*/ | ||
* API Convention fail because appropriate method name is match with | ||
* method naming convention but the method doesn't have parameters | ||
*/ | ||
const ConventionFail = 5; | ||
@@ -26,0 +26,0 @@ const ClassNotInheritedFromController = 6; |
@@ -11,18 +11,18 @@ "use strict"; | ||
/** | ||
* Only applied on GET method, issue when action contains parameter | ||
* but route doesn't have any | ||
*/ | ||
* Only applied on GET method, issue when action contains parameter | ||
* but route doesn't have any | ||
*/ | ||
RouteAnalysisCode.MissingRouteParameters = 2; | ||
/** | ||
* Issue when router contains parameter, but action doesn't have any | ||
*/ | ||
* Issue when router contains parameter, but action doesn't have any | ||
*/ | ||
RouteAnalysisCode.MissingActionParameters = 3; | ||
/** | ||
* Issue when @internal decorator combined with other http method decorator | ||
*/ | ||
* Issue when @internal decorator combined with other http method decorator | ||
*/ | ||
RouteAnalysisCode.ConflictDecorators = 4; | ||
/** | ||
* API Convention fail because appropriate method name is match with | ||
* method naming convention but the method doesn't have parameters | ||
*/ | ||
* API Convention fail because appropriate method name is match with | ||
* method naming convention but the method doesn't have parameters | ||
*/ | ||
RouteAnalysisCode.ConventionFail = 5; | ||
@@ -29,0 +29,0 @@ RouteAnalysisCode.ClassNotInheritedFromController = 6; |
{ | ||
"name": "kamboja-core", | ||
"version": "0.5.0-alpha.695401af", | ||
"version": "0.5.0-alpha.70d3c872", | ||
"description": "Core library of KambojaJS", | ||
@@ -24,3 +24,3 @@ "main": "lib/index.js", | ||
"@types/node": "^8.0.28", | ||
"kecubung": "0.5.0-alpha.695401af", | ||
"kecubung": "0.5.0-alpha.70d3c872", | ||
"lodash": "^4.17.4", | ||
@@ -27,0 +27,0 @@ "reflect-metadata": "^0.1.10", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
29417
701
0
+ Addedkecubung@0.5.0-alpha.70d3c872(transitive)
- Removedkecubung@0.5.0-alpha.695401af(transitive)