angular-in-memory-web-api
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -164,4 +164,3 @@ import { Observable } from 'rxjs/Observable'; | ||
BackendService.prototype.bodify = function (data) { | ||
var body = this.clone(data); | ||
return this.config.dataEncapsulation ? { data: body } : body; | ||
return this.config.dataEncapsulation ? { data: data } : data; | ||
}; | ||
@@ -357,3 +356,3 @@ BackendService.prototype.clone = function (data) { | ||
return { | ||
body: this.bodify(data), | ||
body: this.bodify(this.clone(data)), | ||
headers: headers, | ||
@@ -493,3 +492,3 @@ status: STATUS.OK | ||
var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, resourceUrl = _a.resourceUrl, url = _a.url; | ||
var item = this.getJsonBody(req); | ||
var item = this.clone(this.getJsonBody(req)); | ||
// tslint:disable-next-line:triple-equals | ||
@@ -538,3 +537,3 @@ if (item.id == undefined) { | ||
var collection = _a.collection, collectionName = _a.collectionName, headers = _a.headers, id = _a.id, req = _a.req, url = _a.url; | ||
var item = this.getJsonBody(req); | ||
var item = this.clone(this.getJsonBody(req)); | ||
// tslint:disable-next-line:triple-equals | ||
@@ -541,0 +540,0 @@ if (item.id == undefined) { |
@@ -11,2 +11,6 @@ # "angular-in-memory-web-api" versions | ||
<a id="0.5.2"></a> | ||
## 0.5.2 (2017-12-10) | ||
No longer modify the request data coming from client. Fixes #164 | ||
<a id="0.5.1"></a> | ||
@@ -13,0 +17,0 @@ ## 0.5.1 (2017-10-21) |
{ | ||
"name": "angular-in-memory-web-api", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "An in-memory web api for Angular demos and tests", | ||
@@ -5,0 +5,0 @@ "main": "bundles/in-memory-web-api.umd.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
526130
4159