@alterior/core
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -20,3 +20,3 @@ "use strict"; | ||
if (alteriorMiddleware) { | ||
var instance_1 = injector.get(alteriorMiddleware); | ||
var instance_1 = injector.get(middleware); | ||
return function (req, res, next) { return instance_1.handle(req, res, next); }; | ||
@@ -23,0 +23,0 @@ } |
@@ -26,3 +26,3 @@ import { Injector } from '@angular/core'; | ||
if (alteriorMiddleware) { | ||
let instance = injector.get(alteriorMiddleware); | ||
let instance = injector.get(middleware); | ||
return (req, res, next) => instance.handle(req, res, next); | ||
@@ -29,0 +29,0 @@ } else { |
{ | ||
"name": "@alterior/core", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "An Express-based Typescript MVC framework using decorators and Angular 2 dependency injection.", |
@@ -119,4 +119,12 @@ # Alterior | ||
For the time being, it is recommended to set your Typescript to target ES5, or do a compiler pass with an ES6 transpiler before running your app in the newer Node.js versions which are otherwise capable of it. If you target ES6 you will get an error related to a class constructor being called without the `new` operator. This happens when Angular tries to instantiate an ES6 class. Node.js doesn't currently allow the manner of object construction Angular is using. It's a known issue, and it has to be resolved upstream, unfortunately. | ||
## Building your app | ||
Note: For the time being, it is recommended to set your Typescript to target ES5, or do a compiler pass | ||
with an ES6 transpiler before running your app in the newer Node.js versions which are otherwise capable | ||
of it. If you target ES6 you will get an error related to Angular calling a class constructor without | ||
the `new` operator. This happens when Angular tries to instantiate an ES6 class. Node.js doesn't | ||
currently allow the manner of object construction Angular is using. Angular 2 needs to be changed to use | ||
[`Reflect.construct`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/construct) when available. | ||
It's a known issue, and it has yet to be resolved upstream, unfortunately. | ||
You can use any build system you want, but this works well with standard `tsc` compilation (ie, JS alongside TS). The NPM scripts used in `@alterior/core` to build and test the core library could easily be used to build and test an Alterior application. | ||
@@ -123,0 +131,0 @@ |
Sorry, the diff of this file is not supported yet
173784
295