File tree Expand file tree Collapse file tree 7 files changed +20
-21
lines changed Expand file tree Collapse file tree 7 files changed +20
-21
lines changed Original file line number Diff line number Diff line change
1
+ ##### 0.4.2 - 22 October 2014
2
+
3
+ ###### Backwards compatible bug fixes
4
+ - Fixed illegal invocation error
5
+
1
6
##### 0.4.1 - 30 September 2014
2
7
3
8
###### Backwards compatible API changes
Original file line number Diff line number Diff line change 2
2
3
3
## js-data-http
4
4
5
- http adapter for [ js-data] ( http://www.js-data.io/js-data ) .
5
+ http adapter for [ js-data] ( http://www.js-data.io/ ) .
6
6
7
7
## API Documentation
8
8
[ DSHttpAdapter] ( http://www.js-data.io/docs/dshttpadapter )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " js-data-http" ,
3
3
"description" : " http adapter for js-data." ,
4
- "version" : " 0.4.1 " ,
4
+ "version" : " 0.4.2 " ,
5
5
"homepage" : " http://www.js-data.io/js-data-http" ,
6
6
"repository" : {
7
7
"type" : " git" ,
30
30
" karma.start.js"
31
31
],
32
32
"dependencies" : {
33
- "js-data" : " ~0.4 .x"
33
+ "js-data" : " ~1.0 .x"
34
34
}
35
35
}
Original file line number Diff line number Diff line change 1
1
/**
2
2
* @author Jason Dobry <jason.dobry@gmail.com>
3
3
* @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/>
5
5
* @copyright (c) 2014 Jason Dobry
6
6
* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>
7
7
*
@@ -1362,9 +1362,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
1362
1362
}
1363
1363
return http ( config ) . then ( function ( data ) {
1364
1364
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 ) ;
1368
1366
}
1369
1367
return data ;
1370
1368
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " js-data-http" ,
3
3
"description" : " http adapter for js-data." ,
4
- "version" : " 0.4.1 " ,
4
+ "version" : " 0.4.2 " ,
5
5
"homepage" : " http://www.js-data.io/js-data-http" ,
6
6
"repository" : {
7
7
"type" : " git" ,
20
20
"main" : " ./src/index.js" ,
21
21
"devDependencies" : {
22
22
"grunt" : " 0.4.5" ,
23
- "grunt-browserify" : " 3.0.1 " ,
23
+ "grunt-browserify" : " 3.1.0 " ,
24
24
"grunt-contrib-clean" : " 0.6.0" ,
25
- "grunt-contrib-concat" : " 0.5.0" ,
26
- "grunt-contrib-copy" : " 0.6.0" ,
27
25
"grunt-contrib-jshint" : " 0.10.0" ,
28
26
"grunt-contrib-uglify" : " 0.6.0" ,
29
27
"grunt-contrib-watch" : " 0.6.1" ,
30
28
"grunt-karma" : " 0.9.0" ,
31
29
"grunt-karma-coveralls" : " 2.5.2" ,
32
- "karma" : " 0.12.23 " ,
30
+ "karma" : " 0.12.24 " ,
33
31
"karma-chai" : " 0.1.0" ,
34
- "karma-chrome-launcher" : " 0.1.4 " ,
32
+ "karma-chrome-launcher" : " 0.1.5 " ,
35
33
"karma-coverage" : " 0.2.6" ,
36
34
"karma-script-launcher" : " 0.1.0" ,
37
35
"karma-firefox-launcher" : " 0.1.3" ,
40
38
"karma-sinon" : " 1.0.3" ,
41
39
"karma-spec-reporter" : " 0.0.13" ,
42
40
"time-grunt" : " 1.0.0" ,
43
- "jit-grunt" : " 0.8 .0"
41
+ "jit-grunt" : " 0.9 .0"
44
42
},
45
43
"scripts" : {
46
44
"test" : " grunt test"
47
45
},
48
46
"dependencies" : {
49
- "axios" : " 0.3.1 " ,
47
+ "axios" : " 0.4.x " ,
50
48
"mout" : " 0.10.0" ,
51
- "js-data" : " ~0.4 .x"
49
+ "js-data" : " 1.0 .x"
52
50
}
53
51
}
Original file line number Diff line number Diff line change @@ -71,9 +71,7 @@ dsHttpAdapterPrototype.HTTP = function (config) {
71
71
}
72
72
return http ( config ) . then ( function ( data ) {
73
73
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 ) ;
77
75
}
78
76
return data ;
79
77
} ) ;
You can’t perform that action at this time.
0 commit comments