@@ -1164,6 +1164,10 @@ return /******/ (function(modules) { // webpackBootstrap
1164
1164
xhr . setRequestHeader ( 'Accept' , '*/*' ) ;
1165
1165
} catch ( e ) { }
1166
1166
1167
+ if ( this . supportsBinary ) {
1168
+ xhr . responseType = 'arraybuffer' ;
1169
+ }
1170
+
1167
1171
// ie6 check
1168
1172
if ( 'withCredentials' in xhr ) {
1169
1173
xhr . withCredentials = true ;
@@ -1183,13 +1187,12 @@ return /******/ (function(modules) { // webpackBootstrap
1183
1187
} else {
1184
1188
xhr . onreadystatechange = function ( ) {
1185
1189
if ( xhr . readyState === 2 ) {
1186
- var contentType ;
1187
1190
try {
1188
- contentType = xhr . getResponseHeader ( 'Content-Type' ) ;
1191
+ var contentType = xhr . getResponseHeader ( 'Content-Type' ) ;
1192
+ if ( contentType !== 'application/octet-stream' ) {
1193
+ xhr . responseType = 'text' ;
1194
+ }
1189
1195
} catch ( e ) { }
1190
- if ( contentType === 'application/octet-stream' ) {
1191
- xhr . responseType = 'arraybuffer' ;
1192
- }
1193
1196
}
1194
1197
if ( 4 !== xhr . readyState ) return ;
1195
1198
if ( 200 === xhr . status || 1223 === xhr . status ) {
@@ -1299,7 +1302,11 @@ return /******/ (function(modules) { // webpackBootstrap
1299
1302
contentType = this . xhr . getResponseHeader ( 'Content-Type' ) ;
1300
1303
} catch ( e ) { }
1301
1304
if ( contentType === 'application/octet-stream' ) {
1302
- data = this . xhr . response || this . xhr . responseText ;
1305
+ if ( this . xhr . responseType === 'arraybuffer' ) {
1306
+ data = this . xhr . response || this . xhr . responseText ;
1307
+ } else {
1308
+ data = String . fromCharCode . apply ( null , new Uint8Array ( this . xhr . response ) ) ;
1309
+ }
1303
1310
} else {
1304
1311
data = this . xhr . responseText ;
1305
1312
}
@@ -3335,12 +3342,17 @@ return /******/ (function(modules) { // webpackBootstrap
3335
3342
*/
3336
3343
3337
3344
exports . colors = [
3338
- 'lightseagreen' ,
3339
- 'forestgreen' ,
3340
- 'goldenrod' ,
3341
- 'dodgerblue' ,
3342
- 'darkorchid' ,
3343
- 'crimson'
3345
+ '#0000CC' , '#0000FF' , '#0033CC' , '#0033FF' , '#0066CC' , '#0066FF' , '#0099CC' ,
3346
+ '#0099FF' , '#00CC00' , '#00CC33' , '#00CC66' , '#00CC99' , '#00CCCC' , '#00CCFF' ,
3347
+ '#3300CC' , '#3300FF' , '#3333CC' , '#3333FF' , '#3366CC' , '#3366FF' , '#3399CC' ,
3348
+ '#3399FF' , '#33CC00' , '#33CC33' , '#33CC66' , '#33CC99' , '#33CCCC' , '#33CCFF' ,
3349
+ '#6600CC' , '#6600FF' , '#6633CC' , '#6633FF' , '#66CC00' , '#66CC33' , '#9900CC' ,
3350
+ '#9900FF' , '#9933CC' , '#9933FF' , '#99CC00' , '#99CC33' , '#CC0000' , '#CC0033' ,
3351
+ '#CC0066' , '#CC0099' , '#CC00CC' , '#CC00FF' , '#CC3300' , '#CC3333' , '#CC3366' ,
3352
+ '#CC3399' , '#CC33CC' , '#CC33FF' , '#CC6600' , '#CC6633' , '#CC9900' , '#CC9933' ,
3353
+ '#CCCC00' , '#CCCC33' , '#FF0000' , '#FF0033' , '#FF0066' , '#FF0099' , '#FF00CC' ,
3354
+ '#FF00FF' , '#FF3300' , '#FF3333' , '#FF3366' , '#FF3399' , '#FF33CC' , '#FF33FF' ,
3355
+ '#FF6600' , '#FF6633' , '#FF9900' , '#FF9933' , '#FFCC00' , '#FFCC33'
3344
3356
] ;
3345
3357
3346
3358
/**
@@ -3359,6 +3371,11 @@ return /******/ (function(modules) { // webpackBootstrap
3359
3371
return true ;
3360
3372
}
3361
3373
3374
+ // Internet Explorer and Edge do not support colors.
3375
+ if ( typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / ( e d g e | t r i d e n t ) \/ ( \d + ) / ) ) {
3376
+ return false ;
3377
+ }
3378
+
3362
3379
// is webkit? http://stackoverflow.com/a/16459606/376773
3363
3380
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
3364
3381
return ( typeof document !== 'undefined' && document . documentElement && document . documentElement . style && document . documentElement . style . WebkitAppearance ) ||
@@ -3710,6 +3727,11 @@ return /******/ (function(modules) { // webpackBootstrap
3710
3727
exports . enabled = enabled ;
3711
3728
exports . humanize = __webpack_require__ ( 25 ) ;
3712
3729
3730
+ /**
3731
+ * Active `debug` instances.
3732
+ */
3733
+ exports . instances = [ ] ;
3734
+
3713
3735
/**
3714
3736
* The currently active debug mode names, and names to skip.
3715
3737
*/
@@ -3725,12 +3747,6 @@ return /******/ (function(modules) { // webpackBootstrap
3725
3747
3726
3748
exports . formatters = { } ;
3727
3749
3728
- /**
3729
- * Previous log timestamp.
3730
- */
3731
-
3732
- var prevTime ;
3733
-
3734
3750
/**
3735
3751
* Select a color.
3736
3752
* @param {String } namespace
@@ -3759,6 +3775,8 @@ return /******/ (function(modules) { // webpackBootstrap
3759
3775
3760
3776
function createDebug ( namespace ) {
3761
3777
3778
+ var prevTime ;
3779
+
3762
3780
function debug ( ) {
3763
3781
// disabled?
3764
3782
if ( ! debug . enabled ) return ;
@@ -3815,15 +3833,28 @@ return /******/ (function(modules) { // webpackBootstrap
3815
3833
debug . enabled = exports . enabled ( namespace ) ;
3816
3834
debug . useColors = exports . useColors ( ) ;
3817
3835
debug . color = selectColor ( namespace ) ;
3836
+ debug . destroy = destroy ;
3818
3837
3819
3838
// env-specific initialization logic for debug instances
3820
3839
if ( 'function' === typeof exports . init ) {
3821
3840
exports . init ( debug ) ;
3822
3841
}
3823
3842
3843
+ exports . instances . push ( debug ) ;
3844
+
3824
3845
return debug ;
3825
3846
}
3826
3847
3848
+ function destroy ( ) {
3849
+ var index = exports . instances . indexOf ( this ) ;
3850
+ if ( index !== - 1 ) {
3851
+ exports . instances . splice ( index , 1 ) ;
3852
+ return true ;
3853
+ } else {
3854
+ return false ;
3855
+ }
3856
+ }
3857
+
3827
3858
/**
3828
3859
* Enables a debug mode by namespaces. This can include modes
3829
3860
* separated by a colon and wildcards.
@@ -3838,10 +3869,11 @@ return /******/ (function(modules) { // webpackBootstrap
3838
3869
exports . names = [ ] ;
3839
3870
exports . skips = [ ] ;
3840
3871
3872
+ var i ;
3841
3873
var split = ( typeof namespaces === 'string' ? namespaces : '' ) . split ( / [ \s , ] + / ) ;
3842
3874
var len = split . length ;
3843
3875
3844
- for ( var i = 0 ; i < len ; i ++ ) {
3876
+ for ( i = 0 ; i < len ; i ++ ) {
3845
3877
if ( ! split [ i ] ) continue ; // ignore empty strings
3846
3878
namespaces = split [ i ] . replace ( / \* / g, '.*?' ) ;
3847
3879
if ( namespaces [ 0 ] === '-' ) {
@@ -3850,6 +3882,11 @@ return /******/ (function(modules) { // webpackBootstrap
3850
3882
exports . names . push ( new RegExp ( '^' + namespaces + '$' ) ) ;
3851
3883
}
3852
3884
}
3885
+
3886
+ for ( i = 0 ; i < exports . instances . length ; i ++ ) {
3887
+ var instance = exports . instances [ i ] ;
3888
+ instance . enabled = exports . enabled ( instance . namespace ) ;
3889
+ }
3853
3890
}
3854
3891
3855
3892
/**
@@ -3871,6 +3908,9 @@ return /******/ (function(modules) { // webpackBootstrap
3871
3908
*/
3872
3909
3873
3910
function enabled ( name ) {
3911
+ if ( name [ name . length - 1 ] === '*' ) {
3912
+ return true ;
3913
+ }
3874
3914
var i , len ;
3875
3915
for ( i = 0 , len = exports . skips . length ; i < len ; i ++ ) {
3876
3916
if ( exports . skips [ i ] . test ( name ) ) {
0 commit comments