@alterior/core
Advanced tools
Comparing version 2.0.2 to 2.0.3
/// <reference types="node" /> | ||
import { Provider } from '@angular/core'; | ||
import { Provider } from 'injection-js'; | ||
import * as express from 'express'; | ||
@@ -4,0 +4,0 @@ import * as http from 'http'; |
@@ -19,3 +19,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import * as express from 'express'; | ||
import { ReflectiveInjector } from '@angular/core'; | ||
import { ReflectiveInjector } from 'injection-js'; | ||
import { SanityCheckReporter } from './sanity'; | ||
@@ -22,0 +22,0 @@ import { ApplicationArgs } from './args'; |
@@ -1,3 +0,3 @@ | ||
import { Injector } from '@angular/core'; | ||
import { Injector } from 'injection-js'; | ||
export declare function Middleware(): (target: any) => void; | ||
export declare function prepareMiddleware(injector: Injector, middleware: any): any; |
@@ -1,2 +0,1 @@ | ||
import { pairs } from 'underscore'; | ||
import { HttpException } from './errors'; | ||
@@ -13,3 +12,3 @@ export class Response { | ||
if (typeof headers === 'object' && !headers.length) | ||
headers = pairs(headers); | ||
headers = Object.keys(headers).map(key => [key, headers[key]]); | ||
this.headers = headers; | ||
@@ -16,0 +15,0 @@ if (isRawBody === undefined) |
{ | ||
"name": "@alterior/core", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"private": false, | ||
@@ -16,5 +16,7 @@ "description": "An Express-based Typescript MVC framework with decorators and dependency injection.", | ||
"dev-test": "nodemon -e ts --ignore \"*.d.ts\" --exec npm test ", | ||
"clean": "rimraf dist dist.esm", | ||
"build": "tsc -p .", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"prepublish": "npm run build" | ||
"build:all": "npm run clean && npm run build && npm run build:esm", | ||
"prepare": "npm run build:all" | ||
}, | ||
@@ -36,8 +38,6 @@ "author": "William Lahti <wilahti@gmail.com>", | ||
"chai": "^3.5.0", | ||
"growl": "^1.10.5", | ||
"jasmine": "^2.5.2", | ||
"jasmine-core": "^2.5.2", | ||
"mocha": "^5.2.0", | ||
"mocha-typescript": "^1.1.16", | ||
"nodemon": "^1.17.4", | ||
"rimraf": "^2.6.2", | ||
"supertest": "^3.1.0", | ||
@@ -44,0 +44,0 @@ "typescript": "^2.9.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
499006
11
8443