angular-in-memory-web-api
Advanced tools
Comparing version 0.2.4 to 0.2.5
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/http'), require('rxjs/Observable'), require('rxjs/add/operator/delay')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/http', 'rxjs/Observable', 'rxjs/add/operator/delay'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = global.ng.inMemoryWebApi || {}),global.ng.core,global.ng.http,global.Rx,global.Rx)); | ||
}(this, (function (exports,_angular_core,_angular_http,rxjs_Observable,rxjs_add_operator_delay) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/http'), require('rxjs/Observable'), require('rxjs/add/operator/delay')) : | ||
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/http', 'rxjs/Observable', 'rxjs/add/operator/delay'], factory) : | ||
(factory((global.ng = global.ng || {}, global.ng.inMemoryWebApi = global.ng.inMemoryWebApi || {}),global.ng.core,global.ng.http,global.Rx)); | ||
}(this, (function (exports,_angular_core,_angular_http,rxjs_Observable) { 'use strict'; | ||
@@ -981,3 +981,4 @@ var STATUS = { | ||
} | ||
if (id !== item.id) { | ||
// tslint:disable-next-line:triple-equals | ||
if (id != item.id) { | ||
return createErrorResponse(req, STATUS.BAD_REQUEST, "\"" + collectionName + "\" id does not match item.id"); | ||
@@ -984,0 +985,0 @@ } |
@@ -11,2 +11,6 @@ # "angular-in-memory-web-api" versions | ||
<a id="0.3.0"></a> | ||
## 0.3.0 (2017-02-27) | ||
* Support Angular version 4 | ||
<a id="0.2.4"></a> | ||
@@ -13,0 +17,0 @@ ## 0.2.4 (2017-01-02) |
@@ -526,3 +526,4 @@ import { Inject, Injectable, Injector, Optional } from '@angular/core'; | ||
} | ||
if (id !== item.id) { | ||
// tslint:disable-next-line:triple-equals | ||
if (id != item.id) { | ||
return createErrorResponse(req, STATUS.BAD_REQUEST, "\"" + collectionName + "\" id does not match item.id"); | ||
@@ -529,0 +530,0 @@ } |
{ | ||
"name": "angular-in-memory-web-api", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "An in-memory web api for Angular demos and tests", | ||
@@ -31,4 +31,4 @@ "main": "bundles/in-memory-web-api.umd.js", | ||
"peerDependencies": { | ||
"@angular/core": "^2.0.0", | ||
"@angular/http": "^2.0.0", | ||
"@angular/core": ">=2.0.0 <5.0.0 || >=4.0.0-beta <5.0.0", | ||
"@angular/http": ">=2.0.0 <5.0.0 || >=4.0.0-beta <5.0.0", | ||
"rxjs": "^5.0.1" | ||
@@ -44,3 +44,3 @@ }, | ||
"@angular/platform-server": "~2.4.0", | ||
"@types/jasmine": "^2.5.36", | ||
"@types/jasmine": "2.5.36", | ||
"@types/node": "^6.0.46", | ||
@@ -47,0 +47,0 @@ "canonical-path": "0.0.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
269966
2930