Socket
Socket
Sign inDemoInstall

@alterior/core

Package Overview
Dependencies
92
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.23 to 1.0.0

7

lib/bootstrap.js

@@ -15,2 +15,3 @@ "use strict";

var args_1 = require('./args');
require('source-map-support').install();
/**

@@ -166,3 +167,4 @@ * Bootstrap an Alterior application.

.forEach(function (x) { return args_2.push(middleware_1.prepareMiddleware(childInjector, x)); });
var routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/) || [];
var routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/g) || [];
routeParams = routeParams.map(function (x) { return x.substr(1); });
// Do analysis of the controller method ahead of time so we can

@@ -199,3 +201,4 @@ // minimize the amount of overhead of actual web requests

else {
throw new Error("Unable to fulfill route method parameter '" + paramName + "' of type '" + paramType.name + "'");
throw new Error(("Unable to fulfill route method parameter '" + paramName + "' of type '" + paramType.name + "'\r\n")
+ ("While preparing route " + route.method + " " + route.path + " with method " + route.method + "()"));
}

@@ -202,0 +205,0 @@ };

@@ -18,2 +18,4 @@ import 'reflect-metadata';

require('source-map-support').install();
/**

@@ -221,4 +223,6 @@ * Bootstrap an Alterior application.

let routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/) || [];
let routeParams = (route.path || "").match(/:([A-Za-z][A-Za-z0-9]*)/g) || [];
routeParams = routeParams.map(x => x.substr(1));
// Do analysis of the controller method ahead of time so we can

@@ -252,5 +256,7 @@ // minimize the amount of overhead of actual web requests

} else {
throw new Error(`Unable to fulfill route method parameter '${paramName}' of type '${paramType.name}'`);
throw new Error(
`Unable to fulfill route method parameter '${paramName}' of type '${paramType.name}'\r\n`
+ `While preparing route ${route.method} ${route.path} with method ${route.method}()`
);
}
}

@@ -257,0 +263,0 @@ } else {

{
"name": "@alterior/core",
"version": "0.0.23",
"version": "1.0.0",
"private": false,

@@ -28,3 +28,4 @@ "description": "An Express-based Typescript MVC framework using decorators and Angular 2 dependency injection.",

"reflect-metadata": "^0.1.8",
"rxjs": "^5.0.0-beta.12"
"rxjs": "^5.0.0-beta.12",
"source-map-support": "^0.4.6"
},

@@ -31,0 +32,0 @@ "devDependencies": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc