@alterior/core
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -0,0 +0,0 @@ { |
@@ -5,2 +5,3 @@ "use strict"; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./lib/accesscontrol")); | ||
@@ -7,0 +8,0 @@ __export(require("./lib/controller")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var url = require("url"); | ||
@@ -3,0 +4,0 @@ function accessControl(req, res, next) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function AppOptions(appOptions) { | ||
@@ -15,3 +16,3 @@ if (!appOptions) | ||
*/ | ||
var ApplicationInstance = (function () { | ||
var ApplicationInstance = /** @class */ (function () { | ||
function ApplicationInstance() { | ||
@@ -18,0 +19,0 @@ this._stopped = false; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/** | ||
@@ -6,3 +7,3 @@ * Abstracts the fetching of the application's arguments. This is most useful for testing, | ||
*/ | ||
var ApplicationArgs = (function () { | ||
var ApplicationArgs = /** @class */ (function () { | ||
function ApplicationArgs() { | ||
@@ -9,0 +10,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
require("reflect-metadata"); | ||
@@ -321,7 +322,7 @@ var getParameterNames = require('@avejidah/get-parameter-names'); | ||
} | ||
var container = injector.get(application_1.ApplicationInstance); | ||
container.bind(appInstance, expressApp, port); | ||
// Run the application. | ||
if (appInstance['altOnInit']) | ||
appInstance['altOnInit'](); | ||
var container = injector.get(application_1.ApplicationInstance); | ||
container.bind(appInstance, expressApp, port); | ||
if (autostart) { | ||
@@ -328,0 +329,0 @@ if (!silent) |
@@ -395,2 +395,5 @@ import 'reflect-metadata'; | ||
let container = <ApplicationInstance>injector.get(ApplicationInstance); | ||
container.bind(appInstance, expressApp, port); | ||
// Run the application. | ||
@@ -401,5 +404,2 @@ | ||
let container = <ApplicationInstance>injector.get(ApplicationInstance); | ||
container.bind(appInstance, expressApp, port); | ||
if (autostart) { | ||
@@ -406,0 +406,0 @@ if (!silent) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function shallowClone(obj) { | ||
@@ -3,0 +4,0 @@ if (typeof obj !== 'object') |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.controllerClasses = []; | ||
@@ -3,0 +4,0 @@ function Controller(basePath) { |
"use strict"; | ||
var HttpException = (function () { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var HttpException = /** @class */ (function () { | ||
function HttpException(statusCode, headers, body) { | ||
@@ -4,0 +5,0 @@ this.statusCode = statusCode; |
"use strict"; | ||
var ExpressRef = (function () { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ExpressRef = /** @class */ (function () { | ||
function ExpressRef() { | ||
@@ -4,0 +5,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
function Middleware() { | ||
@@ -3,0 +4,0 @@ return function (target) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var underscore_1 = require("underscore"); | ||
var errors_1 = require("./errors"); | ||
var Response = (function () { | ||
var Response = /** @class */ (function () { | ||
/** | ||
@@ -6,0 +7,0 @@ * Constructs a new Response, with the given status code, headers, and |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var clone_1 = require("./clone"); | ||
var RouteReflector = (function () { | ||
var RouteReflector = /** @class */ (function () { | ||
function RouteReflector(type) { | ||
@@ -21,3 +22,3 @@ var controllerMetadata = Reflect.getMetadata("alterior:Controller", type); | ||
exports.RouteReflector = RouteReflector; | ||
var RouteEvent = (function () { | ||
var RouteEvent = /** @class */ (function () { | ||
function RouteEvent(request, response) { | ||
@@ -24,0 +25,0 @@ this.request = request; |
"use strict"; | ||
var SanityCheckReporter = (function () { | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SanityCheckReporter = /** @class */ (function () { | ||
function SanityCheckReporter() { | ||
@@ -4,0 +5,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=upload.js.map |
{ | ||
"name": "@alterior/core", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"private": false, | ||
@@ -13,6 +13,6 @@ "description": "An Express-based Typescript MVC framework using decorators and Angular 2 dependency injection.", | ||
"scripts": { | ||
"test": "tsc && node ./node_modules/mocha/bin/mocha lib/**/*.test.js", | ||
"dev-test": "nodemon -e ts --ignore \"*.d.ts\" --exec npm test ", | ||
"build": "tsc", | ||
"prepublish": "typings install && tsc" | ||
"test": "npm run build && ./node_modules/.bin/mocha lib/**/*.test.js", | ||
"dev-test": "./node_modules/.bin/nodemon -e ts --ignore \"*.d.ts\" --exec npm test ", | ||
"build": "./node_modules/.bin/tsc", | ||
"prepublish": "./node_modules/.bin/typings install && tsc" | ||
}, | ||
@@ -39,5 +39,7 @@ "author": "William Lahti <wilahti@gmail.com>", | ||
"mocha-typescript": "^1.0.10", | ||
"nodemon": "^1.17.4", | ||
"supertest": "^2.0.0", | ||
"typings": "^2.1.1", | ||
"typescript": "^2.0.0" | ||
} | ||
} |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176441
9
79
2442