Socket
Socket
Sign inDemoInstall

@alterior/core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alterior/core - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

1

index.js

@@ -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) {

3

lib/application.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc