1
1
/**
2
- * vue-resource v0.7.2
2
+ * vue-resource v0.7.3
3
3
* https://github.com/vuejs/vue-resource
4
4
* Released under the MIT License.
5
5
*/
@@ -51,6 +51,8 @@ module.exports =
51
51
/* 0 */
52
52
/***/ function ( module , exports , __webpack_require__ ) {
53
53
54
+ 'use strict' ;
55
+
54
56
/**
55
57
* Install plugin.
56
58
*/
@@ -115,6 +117,8 @@ module.exports =
115
117
/* 1 */
116
118
/***/ function ( module , exports ) {
117
119
120
+ 'use strict' ;
121
+
118
122
var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol ? "symbol" : typeof obj ; } ;
119
123
120
124
/**
@@ -246,6 +250,8 @@ module.exports =
246
250
/* 2 */
247
251
/***/ function ( module , exports , __webpack_require__ ) {
248
252
253
+ 'use strict' ;
254
+
249
255
/**
250
256
* Service for URL templating.
251
257
*/
@@ -380,6 +386,8 @@ module.exports =
380
386
/* 3 */
381
387
/***/ function ( module , exports , __webpack_require__ ) {
382
388
389
+ 'use strict' ;
390
+
383
391
/**
384
392
* URL Template (RFC 6570) Transform.
385
393
*/
@@ -402,6 +410,8 @@ module.exports =
402
410
/* 4 */
403
411
/***/ function ( module , exports ) {
404
412
413
+ 'use strict' ;
414
+
405
415
/**
406
416
* URL Template v2.0.6 (https://github.com/bramstein/url-template)
407
417
*/
@@ -560,6 +570,8 @@ module.exports =
560
570
/* 5 */
561
571
/***/ function ( module , exports , __webpack_require__ ) {
562
572
573
+ 'use strict' ;
574
+
563
575
/**
564
576
* Legacy Transform.
565
577
*/
@@ -604,6 +616,8 @@ module.exports =
604
616
/* 6 */
605
617
/***/ function ( module , exports , __webpack_require__ ) {
606
618
619
+ 'use strict' ;
620
+
607
621
/**
608
622
* Query Parameter Transform.
609
623
*/
@@ -635,6 +649,8 @@ module.exports =
635
649
/* 7 */
636
650
/***/ function ( module , exports , __webpack_require__ ) {
637
651
652
+ 'use strict' ;
653
+
638
654
/**
639
655
* Root Prefix Transform.
640
656
*/
@@ -656,6 +672,8 @@ module.exports =
656
672
/* 8 */
657
673
/***/ function ( module , exports , __webpack_require__ ) {
658
674
675
+ 'use strict' ;
676
+
659
677
/**
660
678
* Service for sending network requests.
661
679
*/
@@ -667,19 +685,19 @@ module.exports =
667
685
var jsonType = { 'Content-Type' : 'application/json' } ;
668
686
669
687
function Http ( url , options ) {
670
- var _this = this ;
671
688
672
- var client = Client ,
689
+ var self = this || { } ,
690
+ client = Client ,
673
691
request ,
674
692
promise ;
675
693
676
694
Http . interceptors . forEach ( function ( handler ) {
677
- client = interceptor ( handler , _this . $vm ) ( client ) ;
695
+ client = interceptor ( handler , self . $vm ) ( client ) ;
678
696
} ) ;
679
697
680
698
options = _ . isObject ( url ) ? url : _ . extend ( { url : url } , options ) ;
681
- request = _ . merge ( { } , Http . options , this . $options , options ) ;
682
- promise = client ( request ) . bind ( this . $vm ) . then ( function ( response ) {
699
+ request = _ . merge ( { } , Http . options , self . $options , options ) ;
700
+ promise = client ( request ) . bind ( self . $vm ) . then ( function ( response ) {
683
701
684
702
return response . ok ? response : Promise . reject ( response ) ;
685
703
} , function ( response ) {
@@ -753,6 +771,8 @@ module.exports =
753
771
/* 9 */
754
772
/***/ function ( module , exports , __webpack_require__ ) {
755
773
774
+ 'use strict' ;
775
+
756
776
/**
757
777
* Base client.
758
778
*/
@@ -822,6 +842,8 @@ module.exports =
822
842
/* 10 */
823
843
/***/ function ( module , exports , __webpack_require__ ) {
824
844
845
+ 'use strict' ;
846
+
825
847
/**
826
848
* Promise adapter.
827
849
*/
@@ -935,6 +957,8 @@ module.exports =
935
957
/* 11 */
936
958
/***/ function ( module , exports , __webpack_require__ ) {
937
959
960
+ 'use strict' ;
961
+
938
962
var _typeof = typeof Symbol === "function" && typeof Symbol . iterator === "symbol" ? function ( obj ) { return typeof obj ; } : function ( obj ) { return obj && typeof Symbol === "function" && obj . constructor === Symbol ? "symbol" : typeof obj ; } ;
939
963
940
964
/**
@@ -1121,6 +1145,8 @@ module.exports =
1121
1145
/* 12 */
1122
1146
/***/ function ( module , exports , __webpack_require__ ) {
1123
1147
1148
+ 'use strict' ;
1149
+
1124
1150
/**
1125
1151
* XMLHttp client.
1126
1152
*/
@@ -1178,6 +1204,8 @@ module.exports =
1178
1204
/* 13 */
1179
1205
/***/ function ( module , exports , __webpack_require__ ) {
1180
1206
1207
+ 'use strict' ;
1208
+
1181
1209
/**
1182
1210
* Interceptor factory.
1183
1211
*/
@@ -1228,6 +1256,8 @@ module.exports =
1228
1256
/* 14 */
1229
1257
/***/ function ( module , exports , __webpack_require__ ) {
1230
1258
1259
+ 'use strict' ;
1260
+
1231
1261
/**
1232
1262
* Before Interceptor.
1233
1263
*/
@@ -1251,6 +1281,8 @@ module.exports =
1251
1281
/* 15 */
1252
1282
/***/ function ( module , exports ) {
1253
1283
1284
+ "use strict" ;
1285
+
1254
1286
/**
1255
1287
* Timeout Interceptor.
1256
1288
*/
@@ -1286,6 +1318,8 @@ module.exports =
1286
1318
/* 16 */
1287
1319
/***/ function ( module , exports , __webpack_require__ ) {
1288
1320
1321
+ 'use strict' ;
1322
+
1289
1323
/**
1290
1324
* JSONP Interceptor.
1291
1325
*/
@@ -1309,6 +1343,8 @@ module.exports =
1309
1343
/* 17 */
1310
1344
/***/ function ( module , exports , __webpack_require__ ) {
1311
1345
1346
+ 'use strict' ;
1347
+
1312
1348
/**
1313
1349
* JSONP client.
1314
1350
*/
@@ -1365,6 +1401,8 @@ module.exports =
1365
1401
/* 18 */
1366
1402
/***/ function ( module , exports ) {
1367
1403
1404
+ 'use strict' ;
1405
+
1368
1406
/**
1369
1407
* HTTP method override Interceptor.
1370
1408
*/
@@ -1387,6 +1425,8 @@ module.exports =
1387
1425
/* 19 */
1388
1426
/***/ function ( module , exports , __webpack_require__ ) {
1389
1427
1428
+ 'use strict' ;
1429
+
1390
1430
/**
1391
1431
* Mime Interceptor.
1392
1432
*/
@@ -1428,6 +1468,8 @@ module.exports =
1428
1468
/* 20 */
1429
1469
/***/ function ( module , exports , __webpack_require__ ) {
1430
1470
1471
+ 'use strict' ;
1472
+
1431
1473
/**
1432
1474
* Header Interceptor.
1433
1475
*/
@@ -1455,6 +1497,8 @@ module.exports =
1455
1497
/* 21 */
1456
1498
/***/ function ( module , exports , __webpack_require__ ) {
1457
1499
1500
+ 'use strict' ;
1501
+
1458
1502
/**
1459
1503
* CORS Interceptor.
1460
1504
*/
@@ -1497,6 +1541,8 @@ module.exports =
1497
1541
/* 22 */
1498
1542
/***/ function ( module , exports , __webpack_require__ ) {
1499
1543
1544
+ 'use strict' ;
1545
+
1500
1546
/**
1501
1547
* XDomain client (Internet Explorer).
1502
1548
*/
@@ -1541,6 +1587,8 @@ module.exports =
1541
1587
/* 23 */
1542
1588
/***/ function ( module , exports , __webpack_require__ ) {
1543
1589
1590
+ 'use strict' ;
1591
+
1544
1592
/**
1545
1593
* Service for interacting with RESTful services.
1546
1594
*/
0 commit comments