@alterior/core
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,2 +0,2 @@ | ||
# 2.0 (wip) | ||
# 2.0 | ||
- Transitioned from `@angular/core` DI to `injection-js`, substantially reducing install times | ||
@@ -3,0 +3,0 @@ and complexity of install (`injection-js` is [5.1KB](https://github.com/mgechev/injection-js)) |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var underscore_1 = require("underscore"); | ||
var errors_1 = require("./errors"); | ||
@@ -15,3 +14,3 @@ var Response = /** @class */ (function () { | ||
if (typeof headers === 'object' && !headers.length) | ||
headers = underscore_1.pairs(headers); | ||
headers = Object.keys(headers).map(function (key) { return [key, headers[key]]; }); | ||
this.headers = headers; | ||
@@ -18,0 +17,0 @@ if (isRawBody === undefined) |
{ | ||
"name": "@alterior/core", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"private": false, | ||
@@ -24,14 +24,8 @@ "description": "An Express-based Typescript MVC framework with decorators and dependency injection.", | ||
"@avejidah/get-parameter-names": "^0.3.2", | ||
"body-parser": "^1.15.2", | ||
"express": "^4.14.0", | ||
"express-fileupload": "0.0.5", | ||
"injection-js": "^2.2.1", | ||
"mkdirp": "^0.5.1", | ||
"reflect-metadata": "^0.1.8", | ||
"rxjs": "^5.0.0-beta.12", | ||
"source-map-support": "^0.4.6", | ||
"underscore": "^1.8.3" | ||
"source-map-support": "^0.4.6" | ||
}, | ||
"devDependencies": { | ||
"@types/body-parser": "^1.17.0", | ||
"@types/chai": "^4.1.4", | ||
@@ -38,0 +32,0 @@ "@types/express": "^4.16.0", |
@@ -7,3 +7,3 @@ # Alterior | ||
An Express-based Typescript MVC framework using decorators and Angular 2 dependency injection. | ||
An Express-based Typescript MVC framework using decorators and Angular's dependency injection. | ||
@@ -235,4 +235,3 @@ ## Getting started | ||
Alterior supports dependency injection using Angular 2's dependency injector. A number of injectable services are | ||
in the box- perhaps you need access to the Express application object to do something Alterior doesn't support: | ||
Alterior supports dependency injection using the same pattern as with Angular's dependency injection system (via the excellent `injection-js` spinoff library). A number of injectable services are in the box- perhaps you need access to the Express application object to do something Alterior doesn't support: | ||
@@ -371,3 +370,3 @@ ```typescript | ||
This is Angular 2's dependency injector, so you can define your own services just as you would in Angular. | ||
This is Angular's dependency injector, so you can define your own services just as you would in Angular. | ||
You can add providers at the bootstrap, or app-class levels. | ||
@@ -374,0 +373,0 @@ |
@@ -1,3 +0,1 @@ | ||
import { pairs } from 'underscore'; | ||
export type EncodingType = 'json' | 'raw'; | ||
@@ -21,3 +19,3 @@ import { HttpException } from './errors'; | ||
if (typeof headers === 'object' && !headers.length) | ||
headers = pairs(headers); | ||
headers = Object.keys(headers).map(key => [key, headers[key]]); | ||
this.headers = headers; | ||
@@ -24,0 +22,0 @@ |
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
5
17
499046
8444
374
- Removedbody-parser@^1.15.2
- Removedexpress-fileupload@0.0.5
- Removedmkdirp@^0.5.1
- Removedrxjs@^5.0.0-beta.12
- Removedunderscore@^1.8.3
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbusboy@1.6.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconnect-busboy@0.0.2(transitive)
- Removedexpress-fileupload@0.0.5(transitive)
- Removedfs-extra@0.22.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedinflight@1.0.6(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedrxjs@5.5.12(transitive)
- Removedstreamifier@0.1.1(transitive)
- Removedstreamsearch@1.1.0(transitive)
- Removedsymbol-observable@1.0.1(transitive)
- Removedunderscore@1.13.7(transitive)
- Removedwrappy@1.0.2(transitive)