@@ -63,10 +63,10 @@ return /******/ (function(modules) { // webpackBootstrap
63
63
/* 0 */
64
64
/***/ function ( module , exports , __webpack_require__ ) {
65
65
66
- var _classCallCheck = function ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } } ;
67
-
68
66
var _createClass = ( function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( 'value' in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ) ( ) ;
69
67
68
+ function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
69
+
70
70
var JSData = __webpack_require__ ( 1 ) ;
71
71
var axios = null ;
72
72
@@ -143,7 +143,7 @@ return /******/ (function(modules) { // webpackBootstrap
143
143
_createClass ( DSHttpAdapter , [ {
144
144
key : 'getEndpoint' ,
145
145
value : function getEndpoint ( resourceConfig , id , options ) {
146
- var _this = this ;
146
+ var _this2 = this ;
147
147
148
148
options = options || { } ;
149
149
options . params = options . params || { } ;
@@ -181,13 +181,11 @@ return /******/ (function(modules) { // webpackBootstrap
181
181
_options [ key ] = value ;
182
182
} ) ;
183
183
return {
184
- v : DSUtils . makePath ( _this . getEndpoint ( parentDef , parentId , DSUtils . _ ( parentDef , _options ) ) , parentId , endpoint )
184
+ v : DSUtils . makePath ( _this2 . getEndpoint ( parentDef , parentId , DSUtils . _ ( parentDef , _options ) ) , parentId , endpoint )
185
185
} ;
186
186
} ) ( ) ;
187
187
188
- if ( typeof _ret === 'object' ) {
189
- return _ret . v ;
190
- }
188
+ if ( typeof _ret === 'object' ) return _ret . v ;
191
189
} else {
192
190
return endpoint ;
193
191
}
@@ -224,7 +222,7 @@ return /******/ (function(modules) { // webpackBootstrap
224
222
}
225
223
226
224
function logResponse ( data ) {
227
- var str = '' + start . toUTCString ( ) + ' - ' + data . config . method . toUpperCase ( ) + ' ' + data . config . url + ' - ' + data . status + ' ' + ( new Date ( ) . getTime ( ) - start . getTime ( ) ) + 'ms' ;
225
+ var str = start . toUTCString ( ) + ' - ' + data . config . method . toUpperCase ( ) + ' ' + data . config . url + ' - ' + data . status + ' ' + ( new Date ( ) . getTime ( ) - start . getTime ( ) ) + 'ms' ;
228
226
if ( data . status >= 200 && data . status < 300 ) {
229
227
if ( _this . defaults . log ) {
230
228
_this . defaults . log ( str , data ) ;
0 commit comments