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 2.0.0 to 2.0.1

2

CHANGELOG.md

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

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