Skip to content

Commit 3aac713

Browse files
committed
Stable Version 1.1.0.
Now requiring js-data 1.1.0 in order to use removeCircular.
1 parent eb8a66f commit 3aac713

6 files changed

+16
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##### 1.1.0 - 04 February 2015
2+
3+
Now requiring js-data 1.1.0 to allow for safe stringification of cyclic objects
4+
15
##### 1.0.0 - 03 February 2015
26

37
Stable Version 1.0.0

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929
"karma.start.js"
3030
],
3131
"dependencies": {
32-
"js-data": ">=1.0.0"
32+
"js-data": ">=1.1.0"
3333
}
3434
}

dist/js-data-http.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @author Jason Dobry <[email protected]>
33
* @file js-data-http.js
4-
* @version 1.0.0 - Homepage <http://www.js-data.io/docs/dshttpadapter>
4+
* @version 1.1.0 - Homepage <http://www.js-data.io/docs/dshttpadapter>
55
* @copyright (c) 2014 Jason Dobry
66
* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>
77
*
@@ -1921,6 +1921,9 @@ dsHttpAdapterPrototype.HTTP = function (config) {
19211921
if (_this.defaults.forceTrailingSlash && config.url[config.url.length - 1] !== '/') {
19221922
config.url += '/';
19231923
}
1924+
if (typeof config.data === 'object') {
1925+
config.data = DSUtils.removeCircular(config.data);
1926+
}
19241927

19251928
function logResponse(data) {
19261929
var str = start.toUTCString() + ' - ' + data.config.method.toUpperCase() + ' ' + data.config.url + ' - ' + data.status + ' ' + (new Date().getTime() - start.getTime()) + 'ms';

0 commit comments

Comments
 (0)