Skip to content

Commit 5d35c06

Browse files
committed
Fixed an illegal invocation error.
Stable Version 0.4.2.
1 parent 082db3f commit 5d35c06

File tree

7 files changed

+20
-21
lines changed

7 files changed

+20
-21
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
##### 0.4.2 - 22 October 2014
2+
3+
###### Backwards compatible bug fixes
4+
- Fixed illegal invocation error
5+
16
##### 0.4.1 - 30 September 2014
27

38
###### Backwards compatible API changes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## js-data-http
44

5-
http adapter for [js-data](http://www.js-data.io/js-data).
5+
http adapter for [js-data](http://www.js-data.io/).
66

77
## API Documentation
88
[DSHttpAdapter](http://www.js-data.io/docs/dshttpadapter)

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-http",
33
"description": "http adapter for js-data.",
4-
"version": "0.4.1",
4+
"version": "0.4.2",
55
"homepage": "http://www.js-data.io/js-data-http",
66
"repository": {
77
"type": "git",
@@ -30,6 +30,6 @@
3030
"karma.start.js"
3131
],
3232
"dependencies": {
33-
"js-data": "~0.4.x"
33+
"js-data": "~1.0.x"
3434
}
3535
}

dist/js-data-http.js

Lines changed: 2 additions & 4 deletions
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 0.4.1 - Homepage <http://www.js-data.iojs-data-http/>
4+
* @version 0.4.2 - Homepage <http://www.js-data.iojs-data-http/>
55
* @copyright (c) 2014 Jason Dobry
66
* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>
77
*
@@ -1362,9 +1362,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
13621362
}
13631363
return http(config).then(function (data) {
13641364
if (_this.defaults.log) {
1365-
var args = Array.prototype.slice.call(arguments);
1366-
args.unshift(data.config.method + ' request: ' + data.config.url + ' Time taken: ' + (new Date().getTime() - start) + 'ms');
1367-
_this.defaults.log.apply(_this.defaults.log, args);
1365+
_this.defaults.log(data.config.method.toUpperCase() + ' request: ' + data.config.url + ' Time taken: ' + (new Date().getTime() - start) + 'ms', data);
13681366
}
13691367
return data;
13701368
});

dist/js-data-http.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "js-data-http",
33
"description": "http adapter for js-data.",
4-
"version": "0.4.1",
4+
"version": "0.4.2",
55
"homepage": "http://www.js-data.io/js-data-http",
66
"repository": {
77
"type": "git",
@@ -20,18 +20,16 @@
2020
"main": "./src/index.js",
2121
"devDependencies": {
2222
"grunt": "0.4.5",
23-
"grunt-browserify": "3.0.1",
23+
"grunt-browserify": "3.1.0",
2424
"grunt-contrib-clean": "0.6.0",
25-
"grunt-contrib-concat": "0.5.0",
26-
"grunt-contrib-copy": "0.6.0",
2725
"grunt-contrib-jshint": "0.10.0",
2826
"grunt-contrib-uglify": "0.6.0",
2927
"grunt-contrib-watch": "0.6.1",
3028
"grunt-karma": "0.9.0",
3129
"grunt-karma-coveralls": "2.5.2",
32-
"karma": "0.12.23",
30+
"karma": "0.12.24",
3331
"karma-chai": "0.1.0",
34-
"karma-chrome-launcher": "0.1.4",
32+
"karma-chrome-launcher": "0.1.5",
3533
"karma-coverage": "0.2.6",
3634
"karma-script-launcher": "0.1.0",
3735
"karma-firefox-launcher": "0.1.3",
@@ -40,14 +38,14 @@
4038
"karma-sinon": "1.0.3",
4139
"karma-spec-reporter": "0.0.13",
4240
"time-grunt": "1.0.0",
43-
"jit-grunt": "0.8.0"
41+
"jit-grunt": "0.9.0"
4442
},
4543
"scripts": {
4644
"test": "grunt test"
4745
},
4846
"dependencies": {
49-
"axios": "0.3.1",
47+
"axios": "0.4.x",
5048
"mout": "0.10.0",
51-
"js-data": "~0.4.x"
49+
"js-data": "1.0.x"
5250
}
5351
}

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
7171
}
7272
return http(config).then(function (data) {
7373
if (_this.defaults.log) {
74-
var args = Array.prototype.slice.call(arguments);
75-
args.unshift(data.config.method + ' request: ' + data.config.url + ' Time taken: ' + (new Date().getTime() - start) + 'ms');
76-
_this.defaults.log.apply(_this.defaults.log, args);
74+
_this.defaults.log(data.config.method.toUpperCase() + ' request: ' + data.config.url + ' Time taken: ' + (new Date().getTime() - start) + 'ms', data);
7775
}
7876
return data;
7977
});

0 commit comments

Comments
 (0)