mocha 3.0.0-1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +124 -0
- package/README.md +84 -0
- package/bin/_mocha +2 -3
- package/bin/mocha +1 -0
- package/bower.json +38 -0
- package/lib/interfaces/bdd.js +16 -14
- package/lib/interfaces/common.js +50 -10
- package/lib/interfaces/qunit.js +14 -9
- package/lib/interfaces/tdd.js +16 -14
- package/lib/reporters/base.js +1 -1
- package/lib/reporters/spec.js +0 -4
- package/lib/runnable.js +1 -1
- package/lib/runner.js +32 -9
- package/lib/suite.js +2 -0
- package/lib/to-iso-string/LICENSE +19 -0
- package/lib/to-iso-string/index.js +37 -0
- package/lib/utils.js +18 -1
- package/mocha.css +23 -11
- package/mocha.js +261 -176
- package/package.json +8 -7
package/mocha.js
CHANGED
|
@@ -168,7 +168,7 @@ global.mocha = mocha;
|
|
|
168
168
|
module.exports = global;
|
|
169
169
|
|
|
170
170
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
171
|
-
},{"./lib/mocha":14,"_process":
|
|
171
|
+
},{"./lib/mocha":14,"_process":67,"browser-stdout":41}],2:[function(require,module,exports){
|
|
172
172
|
/* eslint-disable no-unused-vars */
|
|
173
173
|
module.exports = function(type) {
|
|
174
174
|
return function() {};
|
|
@@ -615,7 +615,7 @@ Context.prototype.inspect = function() {
|
|
|
615
615
|
}, 2);
|
|
616
616
|
};
|
|
617
617
|
|
|
618
|
-
},{"json3":
|
|
618
|
+
},{"json3":54}],7:[function(require,module,exports){
|
|
619
619
|
/**
|
|
620
620
|
* Module dependencies.
|
|
621
621
|
*/
|
|
@@ -663,12 +663,11 @@ Hook.prototype.error = function(err) {
|
|
|
663
663
|
this._error = err;
|
|
664
664
|
};
|
|
665
665
|
|
|
666
|
-
},{"./runnable":33,"./utils":
|
|
666
|
+
},{"./runnable":33,"./utils":38}],8:[function(require,module,exports){
|
|
667
667
|
/**
|
|
668
668
|
* Module dependencies.
|
|
669
669
|
*/
|
|
670
670
|
|
|
671
|
-
var Suite = require('../suite');
|
|
672
671
|
var Test = require('../test');
|
|
673
672
|
|
|
674
673
|
/**
|
|
@@ -692,7 +691,7 @@ module.exports = function(suite) {
|
|
|
692
691
|
var suites = [suite];
|
|
693
692
|
|
|
694
693
|
suite.on('pre-require', function(context, file, mocha) {
|
|
695
|
-
var common = require('./common')(suites, context);
|
|
694
|
+
var common = require('./common')(suites, context, mocha);
|
|
696
695
|
|
|
697
696
|
context.before = common.before;
|
|
698
697
|
context.after = common.after;
|
|
@@ -706,12 +705,11 @@ module.exports = function(suite) {
|
|
|
706
705
|
*/
|
|
707
706
|
|
|
708
707
|
context.describe = context.context = function(title, fn) {
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
return suite;
|
|
708
|
+
return common.suite.create({
|
|
709
|
+
title: title,
|
|
710
|
+
file: file,
|
|
711
|
+
fn: fn
|
|
712
|
+
});
|
|
715
713
|
};
|
|
716
714
|
|
|
717
715
|
/**
|
|
@@ -719,11 +717,11 @@ module.exports = function(suite) {
|
|
|
719
717
|
*/
|
|
720
718
|
|
|
721
719
|
context.xdescribe = context.xcontext = context.describe.skip = function(title, fn) {
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
720
|
+
return common.suite.skip({
|
|
721
|
+
title: title,
|
|
722
|
+
file: file,
|
|
723
|
+
fn: fn
|
|
724
|
+
});
|
|
727
725
|
};
|
|
728
726
|
|
|
729
727
|
/**
|
|
@@ -731,7 +729,11 @@ module.exports = function(suite) {
|
|
|
731
729
|
*/
|
|
732
730
|
|
|
733
731
|
context.describe.only = function(title, fn) {
|
|
734
|
-
return common.suite.only(
|
|
732
|
+
return common.suite.only({
|
|
733
|
+
title: title,
|
|
734
|
+
file: file,
|
|
735
|
+
fn: fn
|
|
736
|
+
});
|
|
735
737
|
};
|
|
736
738
|
|
|
737
739
|
/**
|
|
@@ -776,17 +778,20 @@ module.exports = function(suite) {
|
|
|
776
778
|
});
|
|
777
779
|
};
|
|
778
780
|
|
|
779
|
-
},{"../
|
|
781
|
+
},{"../test":36,"./common":9}],9:[function(require,module,exports){
|
|
780
782
|
'use strict';
|
|
781
783
|
|
|
784
|
+
var Suite = require('../suite');
|
|
785
|
+
|
|
782
786
|
/**
|
|
783
787
|
* Functions common to more than one interface.
|
|
784
788
|
*
|
|
785
789
|
* @param {Suite[]} suites
|
|
786
790
|
* @param {Context} context
|
|
791
|
+
* @param {Mocha} mocha
|
|
787
792
|
* @return {Object} An object containing common functions.
|
|
788
793
|
*/
|
|
789
|
-
module.exports = function(suites, context) {
|
|
794
|
+
module.exports = function(suites, context, mocha) {
|
|
790
795
|
return {
|
|
791
796
|
/**
|
|
792
797
|
* This is only present if flag --delay is passed into Mocha. It triggers
|
|
@@ -843,15 +848,54 @@ module.exports = function(suites, context) {
|
|
|
843
848
|
|
|
844
849
|
suite: {
|
|
845
850
|
/**
|
|
846
|
-
*
|
|
851
|
+
* Create an exclusive Suite; convenience function
|
|
852
|
+
* See docstring for create() below.
|
|
847
853
|
*
|
|
848
|
-
* @param {Object}
|
|
849
|
-
* @
|
|
854
|
+
* @param {Object} opts
|
|
855
|
+
* @returns {Suite}
|
|
850
856
|
*/
|
|
851
|
-
|
|
852
|
-
only: function(mocha, suite) {
|
|
853
|
-
suite.isOnly = true;
|
|
857
|
+
only: function only(opts) {
|
|
854
858
|
mocha.options.hasOnly = true;
|
|
859
|
+
opts.isOnly = true;
|
|
860
|
+
return this.create(opts);
|
|
861
|
+
},
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Create a Suite, but skip it; convenience function
|
|
865
|
+
* See docstring for create() below.
|
|
866
|
+
*
|
|
867
|
+
* @param {Object} opts
|
|
868
|
+
* @returns {Suite}
|
|
869
|
+
*/
|
|
870
|
+
skip: function skip(opts) {
|
|
871
|
+
opts.pending = true;
|
|
872
|
+
return this.create(opts);
|
|
873
|
+
},
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Creates a suite.
|
|
877
|
+
* @param {Object} opts Options
|
|
878
|
+
* @param {string} opts.title Title of Suite
|
|
879
|
+
* @param {Function} [opts.fn] Suite Function (not always applicable)
|
|
880
|
+
* @param {boolean} [opts.pending] Is Suite pending?
|
|
881
|
+
* @param {string} [opts.file] Filepath where this Suite resides
|
|
882
|
+
* @param {boolean} [opts.isOnly] Is Suite exclusive?
|
|
883
|
+
* @returns {Suite}
|
|
884
|
+
*/
|
|
885
|
+
create: function create(opts) {
|
|
886
|
+
var suite = Suite.create(suites[0], opts.title);
|
|
887
|
+
suite.pending = Boolean(opts.pending);
|
|
888
|
+
suite.file = opts.file;
|
|
889
|
+
suites.unshift(suite);
|
|
890
|
+
if (opts.isOnly) {
|
|
891
|
+
suite.parent._onlySuites = suite.parent._onlySuites.concat(suite);
|
|
892
|
+
mocha.options.hasOnly = true;
|
|
893
|
+
}
|
|
894
|
+
if (typeof opts.fn === 'function') {
|
|
895
|
+
opts.fn.call(suite);
|
|
896
|
+
suites.shift();
|
|
897
|
+
}
|
|
898
|
+
|
|
855
899
|
return suite;
|
|
856
900
|
}
|
|
857
901
|
},
|
|
@@ -866,9 +910,7 @@ module.exports = function(suites, context) {
|
|
|
866
910
|
* @returns {*}
|
|
867
911
|
*/
|
|
868
912
|
only: function(mocha, test) {
|
|
869
|
-
|
|
870
|
-
suite.isOnly = true;
|
|
871
|
-
suite.onlyTests = (suite.onlyTests || []).concat(test);
|
|
913
|
+
test.parent._onlyTests = test.parent._onlyTests.concat(test);
|
|
872
914
|
mocha.options.hasOnly = true;
|
|
873
915
|
return test;
|
|
874
916
|
},
|
|
@@ -894,7 +936,7 @@ module.exports = function(suites, context) {
|
|
|
894
936
|
};
|
|
895
937
|
};
|
|
896
938
|
|
|
897
|
-
},{}],10:[function(require,module,exports){
|
|
939
|
+
},{"../suite":35}],10:[function(require,module,exports){
|
|
898
940
|
/**
|
|
899
941
|
* Module dependencies.
|
|
900
942
|
*/
|
|
@@ -968,7 +1010,6 @@ exports.exports = require('./exports');
|
|
|
968
1010
|
* Module dependencies.
|
|
969
1011
|
*/
|
|
970
1012
|
|
|
971
|
-
var Suite = require('../suite');
|
|
972
1013
|
var Test = require('../test');
|
|
973
1014
|
|
|
974
1015
|
/**
|
|
@@ -1000,7 +1041,7 @@ module.exports = function(suite) {
|
|
|
1000
1041
|
var suites = [suite];
|
|
1001
1042
|
|
|
1002
1043
|
suite.on('pre-require', function(context, file, mocha) {
|
|
1003
|
-
var common = require('./common')(suites, context);
|
|
1044
|
+
var common = require('./common')(suites, context, mocha);
|
|
1004
1045
|
|
|
1005
1046
|
context.before = common.before;
|
|
1006
1047
|
context.after = common.after;
|
|
@@ -1015,18 +1056,24 @@ module.exports = function(suite) {
|
|
|
1015
1056
|
if (suites.length > 1) {
|
|
1016
1057
|
suites.shift();
|
|
1017
1058
|
}
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1059
|
+
return common.suite.create({
|
|
1060
|
+
title: title,
|
|
1061
|
+
file: file
|
|
1062
|
+
});
|
|
1022
1063
|
};
|
|
1023
1064
|
|
|
1024
1065
|
/**
|
|
1025
|
-
* Exclusive
|
|
1066
|
+
* Exclusive Suite.
|
|
1026
1067
|
*/
|
|
1027
1068
|
|
|
1028
|
-
context.suite.only = function(title
|
|
1029
|
-
|
|
1069
|
+
context.suite.only = function(title) {
|
|
1070
|
+
if (suites.length > 1) {
|
|
1071
|
+
suites.shift();
|
|
1072
|
+
}
|
|
1073
|
+
return common.suite.only({
|
|
1074
|
+
title: title,
|
|
1075
|
+
file: file
|
|
1076
|
+
});
|
|
1030
1077
|
};
|
|
1031
1078
|
|
|
1032
1079
|
/**
|
|
@@ -1055,12 +1102,11 @@ module.exports = function(suite) {
|
|
|
1055
1102
|
});
|
|
1056
1103
|
};
|
|
1057
1104
|
|
|
1058
|
-
},{"../
|
|
1105
|
+
},{"../test":36,"./common":9}],13:[function(require,module,exports){
|
|
1059
1106
|
/**
|
|
1060
1107
|
* Module dependencies.
|
|
1061
1108
|
*/
|
|
1062
1109
|
|
|
1063
|
-
var Suite = require('../suite');
|
|
1064
1110
|
var Test = require('../test');
|
|
1065
1111
|
|
|
1066
1112
|
/**
|
|
@@ -1092,7 +1138,7 @@ module.exports = function(suite) {
|
|
|
1092
1138
|
var suites = [suite];
|
|
1093
1139
|
|
|
1094
1140
|
suite.on('pre-require', function(context, file, mocha) {
|
|
1095
|
-
var common = require('./common')(suites, context);
|
|
1141
|
+
var common = require('./common')(suites, context, mocha);
|
|
1096
1142
|
|
|
1097
1143
|
context.setup = common.beforeEach;
|
|
1098
1144
|
context.teardown = common.afterEach;
|
|
@@ -1105,30 +1151,33 @@ module.exports = function(suite) {
|
|
|
1105
1151
|
* nested suites and/or tests.
|
|
1106
1152
|
*/
|
|
1107
1153
|
context.suite = function(title, fn) {
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
return suite;
|
|
1154
|
+
return common.suite.create({
|
|
1155
|
+
title: title,
|
|
1156
|
+
file: file,
|
|
1157
|
+
fn: fn
|
|
1158
|
+
});
|
|
1114
1159
|
};
|
|
1115
1160
|
|
|
1116
1161
|
/**
|
|
1117
1162
|
* Pending suite.
|
|
1118
1163
|
*/
|
|
1119
1164
|
context.suite.skip = function(title, fn) {
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1165
|
+
return common.suite.skip({
|
|
1166
|
+
title: title,
|
|
1167
|
+
file: file,
|
|
1168
|
+
fn: fn
|
|
1169
|
+
});
|
|
1125
1170
|
};
|
|
1126
1171
|
|
|
1127
1172
|
/**
|
|
1128
1173
|
* Exclusive test-case.
|
|
1129
1174
|
*/
|
|
1130
1175
|
context.suite.only = function(title, fn) {
|
|
1131
|
-
return common.suite.only(
|
|
1176
|
+
return common.suite.only({
|
|
1177
|
+
title: title,
|
|
1178
|
+
file: file,
|
|
1179
|
+
fn: fn
|
|
1180
|
+
});
|
|
1132
1181
|
};
|
|
1133
1182
|
|
|
1134
1183
|
/**
|
|
@@ -1159,7 +1208,7 @@ module.exports = function(suite) {
|
|
|
1159
1208
|
});
|
|
1160
1209
|
};
|
|
1161
1210
|
|
|
1162
|
-
},{"../
|
|
1211
|
+
},{"../test":36,"./common":9}],14:[function(require,module,exports){
|
|
1163
1212
|
(function (process,global,__dirname){
|
|
1164
1213
|
/*!
|
|
1165
1214
|
* mocha
|
|
@@ -1683,7 +1732,7 @@ Mocha.prototype.run = function(fn) {
|
|
|
1683
1732
|
};
|
|
1684
1733
|
|
|
1685
1734
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},"/lib")
|
|
1686
|
-
},{"./context":6,"./hook":7,"./interfaces":11,"./reporters":21,"./runnable":33,"./runner":34,"./suite":35,"./test":36,"./utils":
|
|
1735
|
+
},{"./context":6,"./hook":7,"./interfaces":11,"./reporters":21,"./runnable":33,"./runner":34,"./suite":35,"./test":36,"./utils":38,"_process":67,"escape-string-regexp":47,"growl":49,"path":42}],15:[function(require,module,exports){
|
|
1687
1736
|
/**
|
|
1688
1737
|
* Helpers.
|
|
1689
1738
|
*/
|
|
@@ -2014,7 +2063,7 @@ exports.list = function(failures) {
|
|
|
2014
2063
|
message = '';
|
|
2015
2064
|
}
|
|
2016
2065
|
var stack = err.stack || message;
|
|
2017
|
-
var index = stack.indexOf(message);
|
|
2066
|
+
var index = message ? stack.indexOf(message) : -1;
|
|
2018
2067
|
var actual = err.actual;
|
|
2019
2068
|
var expected = err.expected;
|
|
2020
2069
|
var escape = true;
|
|
@@ -2323,7 +2372,7 @@ function sameType(a, b) {
|
|
|
2323
2372
|
}
|
|
2324
2373
|
|
|
2325
2374
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2326
|
-
},{"../ms":15,"../utils":
|
|
2375
|
+
},{"../ms":15,"../utils":38,"_process":67,"diff":46,"supports-color":42,"tty":5}],18:[function(require,module,exports){
|
|
2327
2376
|
/**
|
|
2328
2377
|
* Module dependencies.
|
|
2329
2378
|
*/
|
|
@@ -2387,7 +2436,7 @@ function Doc(runner) {
|
|
|
2387
2436
|
});
|
|
2388
2437
|
}
|
|
2389
2438
|
|
|
2390
|
-
},{"../utils":
|
|
2439
|
+
},{"../utils":38,"./base":17}],19:[function(require,module,exports){
|
|
2391
2440
|
(function (process){
|
|
2392
2441
|
/**
|
|
2393
2442
|
* Module dependencies.
|
|
@@ -2457,7 +2506,7 @@ function Dot(runner) {
|
|
|
2457
2506
|
inherits(Dot, Base);
|
|
2458
2507
|
|
|
2459
2508
|
}).call(this,require('_process'))
|
|
2460
|
-
},{"../utils":
|
|
2509
|
+
},{"../utils":38,"./base":17,"_process":67}],20:[function(require,module,exports){
|
|
2461
2510
|
(function (global){
|
|
2462
2511
|
/* eslint-env browser */
|
|
2463
2512
|
|
|
@@ -2805,7 +2854,7 @@ function on(el, event, fn) {
|
|
|
2805
2854
|
}
|
|
2806
2855
|
|
|
2807
2856
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
2808
|
-
},{"../browser/progress":4,"../utils":
|
|
2857
|
+
},{"../browser/progress":4,"../utils":38,"./base":17,"escape-string-regexp":47}],21:[function(require,module,exports){
|
|
2809
2858
|
// Alias exports to a their normalized format Mocha#reporter to prevent a need
|
|
2810
2859
|
// for dynamic (try/catch) requires, which Browserify doesn't handle.
|
|
2811
2860
|
exports.Base = exports.base = require('./base');
|
|
@@ -2889,7 +2938,7 @@ function clean(test) {
|
|
|
2889
2938
|
}
|
|
2890
2939
|
|
|
2891
2940
|
}).call(this,require('_process'))
|
|
2892
|
-
},{"./base":17,"_process":
|
|
2941
|
+
},{"./base":17,"_process":67,"json3":54}],23:[function(require,module,exports){
|
|
2893
2942
|
(function (process){
|
|
2894
2943
|
/**
|
|
2895
2944
|
* Module dependencies.
|
|
@@ -2983,7 +3032,7 @@ function errorJSON(err) {
|
|
|
2983
3032
|
}
|
|
2984
3033
|
|
|
2985
3034
|
}).call(this,require('_process'))
|
|
2986
|
-
},{"./base":17,"_process":
|
|
3035
|
+
},{"./base":17,"_process":67}],24:[function(require,module,exports){
|
|
2987
3036
|
(function (process){
|
|
2988
3037
|
/**
|
|
2989
3038
|
* Module dependencies.
|
|
@@ -3079,7 +3128,7 @@ function Landing(runner) {
|
|
|
3079
3128
|
inherits(Landing, Base);
|
|
3080
3129
|
|
|
3081
3130
|
}).call(this,require('_process'))
|
|
3082
|
-
},{"../utils":
|
|
3131
|
+
},{"../utils":38,"./base":17,"_process":67}],25:[function(require,module,exports){
|
|
3083
3132
|
(function (process){
|
|
3084
3133
|
/**
|
|
3085
3134
|
* Module dependencies.
|
|
@@ -3144,7 +3193,7 @@ function List(runner) {
|
|
|
3144
3193
|
inherits(List, Base);
|
|
3145
3194
|
|
|
3146
3195
|
}).call(this,require('_process'))
|
|
3147
|
-
},{"../utils":
|
|
3196
|
+
},{"../utils":38,"./base":17,"_process":67}],26:[function(require,module,exports){
|
|
3148
3197
|
(function (process){
|
|
3149
3198
|
/**
|
|
3150
3199
|
* Module dependencies.
|
|
@@ -3245,7 +3294,7 @@ function Markdown(runner) {
|
|
|
3245
3294
|
}
|
|
3246
3295
|
|
|
3247
3296
|
}).call(this,require('_process'))
|
|
3248
|
-
},{"../utils":
|
|
3297
|
+
},{"../utils":38,"./base":17,"_process":67}],27:[function(require,module,exports){
|
|
3249
3298
|
(function (process){
|
|
3250
3299
|
/**
|
|
3251
3300
|
* Module dependencies.
|
|
@@ -3285,7 +3334,7 @@ function Min(runner) {
|
|
|
3285
3334
|
inherits(Min, Base);
|
|
3286
3335
|
|
|
3287
3336
|
}).call(this,require('_process'))
|
|
3288
|
-
},{"../utils":
|
|
3337
|
+
},{"../utils":38,"./base":17,"_process":67}],28:[function(require,module,exports){
|
|
3289
3338
|
(function (process){
|
|
3290
3339
|
/**
|
|
3291
3340
|
* Module dependencies.
|
|
@@ -3550,7 +3599,7 @@ function write(string) {
|
|
|
3550
3599
|
}
|
|
3551
3600
|
|
|
3552
3601
|
}).call(this,require('_process'))
|
|
3553
|
-
},{"../utils":
|
|
3602
|
+
},{"../utils":38,"./base":17,"_process":67}],29:[function(require,module,exports){
|
|
3554
3603
|
(function (process){
|
|
3555
3604
|
/**
|
|
3556
3605
|
* Module dependencies.
|
|
@@ -3643,7 +3692,7 @@ function Progress(runner, options) {
|
|
|
3643
3692
|
inherits(Progress, Base);
|
|
3644
3693
|
|
|
3645
3694
|
}).call(this,require('_process'))
|
|
3646
|
-
},{"../utils":
|
|
3695
|
+
},{"../utils":38,"./base":17,"_process":67}],30:[function(require,module,exports){
|
|
3647
3696
|
/**
|
|
3648
3697
|
* Module dependencies.
|
|
3649
3698
|
*/
|
|
@@ -3651,7 +3700,6 @@ inherits(Progress, Base);
|
|
|
3651
3700
|
var Base = require('./base');
|
|
3652
3701
|
var inherits = require('../utils').inherits;
|
|
3653
3702
|
var color = Base.color;
|
|
3654
|
-
var cursor = Base.cursor;
|
|
3655
3703
|
|
|
3656
3704
|
/**
|
|
3657
3705
|
* Expose `Spec`.
|
|
@@ -3703,20 +3751,17 @@ function Spec(runner) {
|
|
|
3703
3751
|
fmt = indent()
|
|
3704
3752
|
+ color('checkmark', ' ' + Base.symbols.ok)
|
|
3705
3753
|
+ color('pass', ' %s');
|
|
3706
|
-
cursor.CR();
|
|
3707
3754
|
console.log(fmt, test.title);
|
|
3708
3755
|
} else {
|
|
3709
3756
|
fmt = indent()
|
|
3710
3757
|
+ color('checkmark', ' ' + Base.symbols.ok)
|
|
3711
3758
|
+ color('pass', ' %s')
|
|
3712
3759
|
+ color(test.speed, ' (%dms)');
|
|
3713
|
-
cursor.CR();
|
|
3714
3760
|
console.log(fmt, test.title, test.duration);
|
|
3715
3761
|
}
|
|
3716
3762
|
});
|
|
3717
3763
|
|
|
3718
3764
|
runner.on('fail', function(test) {
|
|
3719
|
-
cursor.CR();
|
|
3720
3765
|
console.log(indent() + color('fail', ' %d) %s'), ++n, test.title);
|
|
3721
3766
|
});
|
|
3722
3767
|
|
|
@@ -3728,7 +3773,7 @@ function Spec(runner) {
|
|
|
3728
3773
|
*/
|
|
3729
3774
|
inherits(Spec, Base);
|
|
3730
3775
|
|
|
3731
|
-
},{"../utils":
|
|
3776
|
+
},{"../utils":38,"./base":17}],31:[function(require,module,exports){
|
|
3732
3777
|
/**
|
|
3733
3778
|
* Module dependencies.
|
|
3734
3779
|
*/
|
|
@@ -3968,7 +4013,7 @@ function tag(name, attrs, close, content) {
|
|
|
3968
4013
|
}
|
|
3969
4014
|
|
|
3970
4015
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
3971
|
-
},{"../utils":
|
|
4016
|
+
},{"../utils":38,"./base":17,"_process":67,"fs":42,"mkdirp":64,"path":42}],33:[function(require,module,exports){
|
|
3972
4017
|
(function (global){
|
|
3973
4018
|
/**
|
|
3974
4019
|
* Module dependencies.
|
|
@@ -4338,7 +4383,7 @@ Runnable.prototype.run = function(fn) {
|
|
|
4338
4383
|
return done(new Error('done() invoked with non-Error: ' + err));
|
|
4339
4384
|
}
|
|
4340
4385
|
if (result && utils.isPromise(result)) {
|
|
4341
|
-
return done(new Error('
|
|
4386
|
+
return done(new Error('Resolution method is overspecified. Specify a callback *or* return a Promise; not both.'));
|
|
4342
4387
|
}
|
|
4343
4388
|
|
|
4344
4389
|
done();
|
|
@@ -4347,7 +4392,7 @@ Runnable.prototype.run = function(fn) {
|
|
|
4347
4392
|
};
|
|
4348
4393
|
|
|
4349
4394
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
4350
|
-
},{"./ms":15,"./pending":16,"./utils":
|
|
4395
|
+
},{"./ms":15,"./pending":16,"./utils":38,"debug":2,"events":3,"json3":54,"lodash.create":60}],34:[function(require,module,exports){
|
|
4351
4396
|
(function (process,global){
|
|
4352
4397
|
/**
|
|
4353
4398
|
* Module dependencies.
|
|
@@ -4361,6 +4406,7 @@ var debug = require('debug')('mocha:runner');
|
|
|
4361
4406
|
var Runnable = require('./runnable');
|
|
4362
4407
|
var filter = utils.filter;
|
|
4363
4408
|
var indexOf = utils.indexOf;
|
|
4409
|
+
var some = utils.some;
|
|
4364
4410
|
var keys = utils.keys;
|
|
4365
4411
|
var stackFilter = utils.stackTraceFilter();
|
|
4366
4412
|
var stringify = utils.stringify;
|
|
@@ -5197,16 +5243,38 @@ Runner.prototype.abort = function() {
|
|
|
5197
5243
|
* @api private
|
|
5198
5244
|
*/
|
|
5199
5245
|
function filterOnly(suite) {
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
suite.tests = suite.
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5246
|
+
if (suite._onlyTests.length) {
|
|
5247
|
+
// If the suite contains `only` tests, run those and ignore any nested suites.
|
|
5248
|
+
suite.tests = suite._onlyTests;
|
|
5249
|
+
suite.suites = [];
|
|
5250
|
+
} else {
|
|
5251
|
+
// Otherwise, do not run any of the tests in this suite.
|
|
5252
|
+
suite.tests = [];
|
|
5253
|
+
suite._onlySuites.forEach(function(onlySuite) {
|
|
5254
|
+
// If there are other `only` tests/suites nested in the current `only` suite, then filter that `only` suite.
|
|
5255
|
+
// Otherwise, all of the tests on this `only` suite should be run, so don't filter it.
|
|
5256
|
+
if (hasOnly(onlySuite)) {
|
|
5257
|
+
filterOnly(onlySuite);
|
|
5258
|
+
}
|
|
5259
|
+
});
|
|
5260
|
+
// Run the `only` suites, as well as any other suites that have `only` tests/suites as descendants.
|
|
5261
|
+
suite.suites = filter(suite.suites, function(childSuite) {
|
|
5262
|
+
return indexOf(suite._onlySuites, childSuite) !== -1 || filterOnly(childSuite);
|
|
5263
|
+
});
|
|
5264
|
+
}
|
|
5208
5265
|
// Keep the suite only if there is something to run
|
|
5209
|
-
return suite.
|
|
5266
|
+
return suite.tests.length || suite.suites.length;
|
|
5267
|
+
}
|
|
5268
|
+
|
|
5269
|
+
/**
|
|
5270
|
+
* Determines whether a suite has an `only` test or suite as a descendant.
|
|
5271
|
+
*
|
|
5272
|
+
* @param {Array} suite
|
|
5273
|
+
* @returns {Boolean}
|
|
5274
|
+
* @api private
|
|
5275
|
+
*/
|
|
5276
|
+
function hasOnly(suite) {
|
|
5277
|
+
return suite._onlyTests.length || suite._onlySuites.length || some(suite.suites, hasOnly);
|
|
5210
5278
|
}
|
|
5211
5279
|
|
|
5212
5280
|
/**
|
|
@@ -5276,7 +5344,7 @@ function extraGlobals() {
|
|
|
5276
5344
|
}
|
|
5277
5345
|
|
|
5278
5346
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
5279
|
-
},{"./pending":16,"./runnable":33,"./utils":
|
|
5347
|
+
},{"./pending":16,"./runnable":33,"./utils":38,"_process":67,"debug":2,"events":3}],35:[function(require,module,exports){
|
|
5280
5348
|
/**
|
|
5281
5349
|
* Module dependencies.
|
|
5282
5350
|
*/
|
|
@@ -5340,6 +5408,8 @@ function Suite(title, parentContext) {
|
|
|
5340
5408
|
this._slow = 75;
|
|
5341
5409
|
this._bail = false;
|
|
5342
5410
|
this._retries = -1;
|
|
5411
|
+
this._onlyTests = [];
|
|
5412
|
+
this._onlySuites = [];
|
|
5343
5413
|
this.delayed = false;
|
|
5344
5414
|
}
|
|
5345
5415
|
|
|
@@ -5676,7 +5746,7 @@ Suite.prototype.run = function run() {
|
|
|
5676
5746
|
}
|
|
5677
5747
|
};
|
|
5678
5748
|
|
|
5679
|
-
},{"./hook":7,"./ms":15,"./utils":
|
|
5749
|
+
},{"./hook":7,"./ms":15,"./utils":38,"debug":2,"events":3}],36:[function(require,module,exports){
|
|
5680
5750
|
/**
|
|
5681
5751
|
* Module dependencies.
|
|
5682
5752
|
*/
|
|
@@ -5728,7 +5798,46 @@ Test.prototype.clone = function() {
|
|
|
5728
5798
|
return test;
|
|
5729
5799
|
};
|
|
5730
5800
|
|
|
5731
|
-
},{"./runnable":33,"./utils":
|
|
5801
|
+
},{"./runnable":33,"./utils":38,"lodash.create":60}],37:[function(require,module,exports){
|
|
5802
|
+
'use strict';
|
|
5803
|
+
|
|
5804
|
+
/**
|
|
5805
|
+
* Pad a `number` with a ten's place zero.
|
|
5806
|
+
*
|
|
5807
|
+
* @param {number} number
|
|
5808
|
+
* @return {string}
|
|
5809
|
+
*/
|
|
5810
|
+
function pad(number) {
|
|
5811
|
+
var n = number.toString();
|
|
5812
|
+
return n.length === 1 ? '0' + n : n;
|
|
5813
|
+
}
|
|
5814
|
+
|
|
5815
|
+
/**
|
|
5816
|
+
* Turn a `date` into an ISO string.
|
|
5817
|
+
*
|
|
5818
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
|
5819
|
+
*
|
|
5820
|
+
* @param {Date} date
|
|
5821
|
+
* @return {string}
|
|
5822
|
+
*/
|
|
5823
|
+
function toISOString(date) {
|
|
5824
|
+
return date.getUTCFullYear()
|
|
5825
|
+
+ '-' + pad(date.getUTCMonth() + 1)
|
|
5826
|
+
+ '-' + pad(date.getUTCDate())
|
|
5827
|
+
+ 'T' + pad(date.getUTCHours())
|
|
5828
|
+
+ ':' + pad(date.getUTCMinutes())
|
|
5829
|
+
+ ':' + pad(date.getUTCSeconds())
|
|
5830
|
+
+ '.' + String((date.getUTCMilliseconds()/1000).toFixed(3)).slice(2, 5)
|
|
5831
|
+
+ 'Z';
|
|
5832
|
+
}
|
|
5833
|
+
|
|
5834
|
+
/*
|
|
5835
|
+
* Exports.
|
|
5836
|
+
*/
|
|
5837
|
+
|
|
5838
|
+
module.exports = toISOString;
|
|
5839
|
+
|
|
5840
|
+
},{}],38:[function(require,module,exports){
|
|
5732
5841
|
(function (process,Buffer){
|
|
5733
5842
|
/* eslint-env browser */
|
|
5734
5843
|
|
|
@@ -5745,7 +5854,7 @@ var join = require('path').join;
|
|
|
5745
5854
|
var readdirSync = require('fs').readdirSync;
|
|
5746
5855
|
var statSync = require('fs').statSync;
|
|
5747
5856
|
var watchFile = require('fs').watchFile;
|
|
5748
|
-
var toISOString = require('to-iso-string');
|
|
5857
|
+
var toISOString = require('./to-iso-string');
|
|
5749
5858
|
|
|
5750
5859
|
/**
|
|
5751
5860
|
* Ignored directories.
|
|
@@ -5870,6 +5979,23 @@ exports.filter = function(arr, fn) {
|
|
|
5870
5979
|
return ret;
|
|
5871
5980
|
};
|
|
5872
5981
|
|
|
5982
|
+
/**
|
|
5983
|
+
* Array#some (<=IE8)
|
|
5984
|
+
*
|
|
5985
|
+
* @api private
|
|
5986
|
+
* @param {Array} arr
|
|
5987
|
+
* @param {Function} fn
|
|
5988
|
+
* @return {Array}
|
|
5989
|
+
*/
|
|
5990
|
+
exports.some = function(arr, fn) {
|
|
5991
|
+
for (var i = 0, l = arr.length; i < l; i++) {
|
|
5992
|
+
if (fn(arr[i])) {
|
|
5993
|
+
return true;
|
|
5994
|
+
}
|
|
5995
|
+
}
|
|
5996
|
+
return false;
|
|
5997
|
+
};
|
|
5998
|
+
|
|
5873
5999
|
/**
|
|
5874
6000
|
* Object.keys (<=IE8)
|
|
5875
6001
|
*
|
|
@@ -6493,7 +6619,7 @@ exports.isPromise = function isPromise(value) {
|
|
|
6493
6619
|
};
|
|
6494
6620
|
|
|
6495
6621
|
}).call(this,require('_process'),require("buffer").Buffer)
|
|
6496
|
-
},{"_process":
|
|
6622
|
+
},{"./to-iso-string":37,"_process":67,"buffer":44,"debug":2,"fs":42,"glob":42,"json3":54,"path":42,"util":82}],39:[function(require,module,exports){
|
|
6497
6623
|
'use strict'
|
|
6498
6624
|
|
|
6499
6625
|
exports.toByteArray = toByteArray
|
|
@@ -6604,9 +6730,9 @@ function fromByteArray (uint8) {
|
|
|
6604
6730
|
return parts.join('')
|
|
6605
6731
|
}
|
|
6606
6732
|
|
|
6607
|
-
},{}],39:[function(require,module,exports){
|
|
6608
|
-
|
|
6609
6733
|
},{}],40:[function(require,module,exports){
|
|
6734
|
+
|
|
6735
|
+
},{}],41:[function(require,module,exports){
|
|
6610
6736
|
(function (process){
|
|
6611
6737
|
var WritableStream = require('stream').Writable
|
|
6612
6738
|
var inherits = require('util').inherits
|
|
@@ -6635,9 +6761,9 @@ BrowserStdout.prototype._write = function(chunks, encoding, cb) {
|
|
|
6635
6761
|
}
|
|
6636
6762
|
|
|
6637
6763
|
}).call(this,require('_process'))
|
|
6638
|
-
},{"_process":
|
|
6639
|
-
arguments[4][
|
|
6640
|
-
},{"dup":
|
|
6764
|
+
},{"_process":67,"stream":78,"util":82}],42:[function(require,module,exports){
|
|
6765
|
+
arguments[4][40][0].apply(exports,arguments)
|
|
6766
|
+
},{"dup":40}],43:[function(require,module,exports){
|
|
6641
6767
|
(function (global){
|
|
6642
6768
|
'use strict';
|
|
6643
6769
|
|
|
@@ -6749,7 +6875,7 @@ exports.allocUnsafeSlow = function allocUnsafeSlow(size) {
|
|
|
6749
6875
|
}
|
|
6750
6876
|
|
|
6751
6877
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
6752
|
-
},{"buffer":
|
|
6878
|
+
},{"buffer":44}],44:[function(require,module,exports){
|
|
6753
6879
|
(function (global){
|
|
6754
6880
|
/*!
|
|
6755
6881
|
* The buffer module from node.js, for the browser.
|
|
@@ -8464,7 +8590,7 @@ function isnan (val) {
|
|
|
8464
8590
|
}
|
|
8465
8591
|
|
|
8466
8592
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
8467
|
-
},{"base64-js":
|
|
8593
|
+
},{"base64-js":39,"ieee754":50,"isarray":53}],45:[function(require,module,exports){
|
|
8468
8594
|
(function (Buffer){
|
|
8469
8595
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
8470
8596
|
//
|
|
@@ -8575,7 +8701,7 @@ function objectToString(o) {
|
|
|
8575
8701
|
}
|
|
8576
8702
|
|
|
8577
8703
|
}).call(this,{"isBuffer":require("../../is-buffer/index.js")})
|
|
8578
|
-
},{"../../is-buffer/index.js":
|
|
8704
|
+
},{"../../is-buffer/index.js":52}],46:[function(require,module,exports){
|
|
8579
8705
|
/* See LICENSE file for terms of use */
|
|
8580
8706
|
|
|
8581
8707
|
/*
|
|
@@ -9188,7 +9314,7 @@ function objectToString(o) {
|
|
|
9188
9314
|
/*global module */
|
|
9189
9315
|
if (typeof module !== 'undefined' && module.exports) {
|
|
9190
9316
|
module.exports = JsDiff;
|
|
9191
|
-
} else if (
|
|
9317
|
+
} else if (false) {
|
|
9192
9318
|
/*global define */
|
|
9193
9319
|
define([], function() { return JsDiff; });
|
|
9194
9320
|
} else if (typeof global.JsDiff === 'undefined') {
|
|
@@ -9196,7 +9322,7 @@ function objectToString(o) {
|
|
|
9196
9322
|
}
|
|
9197
9323
|
}(this));
|
|
9198
9324
|
|
|
9199
|
-
},{}],
|
|
9325
|
+
},{}],47:[function(require,module,exports){
|
|
9200
9326
|
'use strict';
|
|
9201
9327
|
|
|
9202
9328
|
var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;
|
|
@@ -9209,7 +9335,7 @@ module.exports = function (str) {
|
|
|
9209
9335
|
return str.replace(matchOperatorsRe, '\\$&');
|
|
9210
9336
|
};
|
|
9211
9337
|
|
|
9212
|
-
},{}],
|
|
9338
|
+
},{}],48:[function(require,module,exports){
|
|
9213
9339
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
9214
9340
|
//
|
|
9215
9341
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -9513,7 +9639,7 @@ function isUndefined(arg) {
|
|
|
9513
9639
|
return arg === void 0;
|
|
9514
9640
|
}
|
|
9515
9641
|
|
|
9516
|
-
},{}],
|
|
9642
|
+
},{}],49:[function(require,module,exports){
|
|
9517
9643
|
(function (process){
|
|
9518
9644
|
// Growl - Copyright TJ Holowaychuk <tj@vision-media.ca> (MIT Licensed)
|
|
9519
9645
|
|
|
@@ -9807,7 +9933,7 @@ function growl(msg, options, fn) {
|
|
|
9807
9933
|
};
|
|
9808
9934
|
|
|
9809
9935
|
}).call(this,require('_process'))
|
|
9810
|
-
},{"_process":
|
|
9936
|
+
},{"_process":67,"child_process":42,"fs":42,"os":65,"path":42}],50:[function(require,module,exports){
|
|
9811
9937
|
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
|
|
9812
9938
|
var e, m
|
|
9813
9939
|
var eLen = nBytes * 8 - mLen - 1
|
|
@@ -9893,7 +10019,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
9893
10019
|
buffer[offset + i - d] |= s * 128
|
|
9894
10020
|
}
|
|
9895
10021
|
|
|
9896
|
-
},{}],
|
|
10022
|
+
},{}],51:[function(require,module,exports){
|
|
9897
10023
|
if (typeof Object.create === 'function') {
|
|
9898
10024
|
// implementation from standard node.js 'util' module
|
|
9899
10025
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -9918,7 +10044,7 @@ if (typeof Object.create === 'function') {
|
|
|
9918
10044
|
}
|
|
9919
10045
|
}
|
|
9920
10046
|
|
|
9921
|
-
},{}],
|
|
10047
|
+
},{}],52:[function(require,module,exports){
|
|
9922
10048
|
/**
|
|
9923
10049
|
* Determine if an object is Buffer
|
|
9924
10050
|
*
|
|
@@ -9937,20 +10063,20 @@ module.exports = function (obj) {
|
|
|
9937
10063
|
))
|
|
9938
10064
|
}
|
|
9939
10065
|
|
|
9940
|
-
},{}],
|
|
10066
|
+
},{}],53:[function(require,module,exports){
|
|
9941
10067
|
var toString = {}.toString;
|
|
9942
10068
|
|
|
9943
10069
|
module.exports = Array.isArray || function (arr) {
|
|
9944
10070
|
return toString.call(arr) == '[object Array]';
|
|
9945
10071
|
};
|
|
9946
10072
|
|
|
9947
|
-
},{}],
|
|
10073
|
+
},{}],54:[function(require,module,exports){
|
|
9948
10074
|
(function (global){
|
|
9949
10075
|
/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */
|
|
9950
10076
|
;(function () {
|
|
9951
10077
|
// Detect the `define` function exposed by asynchronous module loaders. The
|
|
9952
10078
|
// strict `define` check is necessary for compatibility with `r.js`.
|
|
9953
|
-
var isLoader =
|
|
10079
|
+
var isLoader = false;
|
|
9954
10080
|
|
|
9955
10081
|
// A set of types used to distinguish objects from primitives.
|
|
9956
10082
|
var objectTypes = {
|
|
@@ -10850,7 +10976,7 @@ module.exports = Array.isArray || function (arr) {
|
|
|
10850
10976
|
}).call(this);
|
|
10851
10977
|
|
|
10852
10978
|
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
10853
|
-
},{}],
|
|
10979
|
+
},{}],55:[function(require,module,exports){
|
|
10854
10980
|
/**
|
|
10855
10981
|
* lodash 3.2.0 (Custom Build) <https://lodash.com/>
|
|
10856
10982
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -10879,7 +11005,7 @@ function baseAssign(object, source) {
|
|
|
10879
11005
|
|
|
10880
11006
|
module.exports = baseAssign;
|
|
10881
11007
|
|
|
10882
|
-
},{"lodash._basecopy":
|
|
11008
|
+
},{"lodash._basecopy":56,"lodash.keys":63}],56:[function(require,module,exports){
|
|
10883
11009
|
/**
|
|
10884
11010
|
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
|
|
10885
11011
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -10913,7 +11039,7 @@ function baseCopy(source, props, object) {
|
|
|
10913
11039
|
|
|
10914
11040
|
module.exports = baseCopy;
|
|
10915
11041
|
|
|
10916
|
-
},{}],
|
|
11042
|
+
},{}],57:[function(require,module,exports){
|
|
10917
11043
|
/**
|
|
10918
11044
|
* lodash 3.0.3 (Custom Build) <https://lodash.com/>
|
|
10919
11045
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -10972,7 +11098,7 @@ function isObject(value) {
|
|
|
10972
11098
|
|
|
10973
11099
|
module.exports = baseCreate;
|
|
10974
11100
|
|
|
10975
|
-
},{}],
|
|
11101
|
+
},{}],58:[function(require,module,exports){
|
|
10976
11102
|
/**
|
|
10977
11103
|
* lodash 3.9.1 (Custom Build) <https://lodash.com/>
|
|
10978
11104
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -11111,7 +11237,7 @@ function isNative(value) {
|
|
|
11111
11237
|
|
|
11112
11238
|
module.exports = getNative;
|
|
11113
11239
|
|
|
11114
|
-
},{}],
|
|
11240
|
+
},{}],59:[function(require,module,exports){
|
|
11115
11241
|
/**
|
|
11116
11242
|
* lodash 3.0.9 (Custom Build) <https://lodash.com/>
|
|
11117
11243
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -11245,7 +11371,7 @@ function isObject(value) {
|
|
|
11245
11371
|
|
|
11246
11372
|
module.exports = isIterateeCall;
|
|
11247
11373
|
|
|
11248
|
-
},{}],
|
|
11374
|
+
},{}],60:[function(require,module,exports){
|
|
11249
11375
|
/**
|
|
11250
11376
|
* lodash 3.1.1 (Custom Build) <https://lodash.com/>
|
|
11251
11377
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -11302,7 +11428,7 @@ function create(prototype, properties, guard) {
|
|
|
11302
11428
|
|
|
11303
11429
|
module.exports = create;
|
|
11304
11430
|
|
|
11305
|
-
},{"lodash._baseassign":
|
|
11431
|
+
},{"lodash._baseassign":55,"lodash._basecreate":57,"lodash._isiterateecall":59}],61:[function(require,module,exports){
|
|
11306
11432
|
/**
|
|
11307
11433
|
* lodash 3.0.8 (Custom Build) <https://lodash.com/>
|
|
11308
11434
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -11547,7 +11673,7 @@ function isObjectLike(value) {
|
|
|
11547
11673
|
|
|
11548
11674
|
module.exports = isArguments;
|
|
11549
11675
|
|
|
11550
|
-
},{}],
|
|
11676
|
+
},{}],62:[function(require,module,exports){
|
|
11551
11677
|
/**
|
|
11552
11678
|
* lodash 3.0.4 (Custom Build) <https://lodash.com/>
|
|
11553
11679
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -11729,7 +11855,7 @@ function isNative(value) {
|
|
|
11729
11855
|
|
|
11730
11856
|
module.exports = isArray;
|
|
11731
11857
|
|
|
11732
|
-
},{}],
|
|
11858
|
+
},{}],63:[function(require,module,exports){
|
|
11733
11859
|
/**
|
|
11734
11860
|
* lodash 3.1.2 (Custom Build) <https://lodash.com/>
|
|
11735
11861
|
* Build: `lodash modern modularize exports="npm" -o ./`
|
|
@@ -11967,7 +12093,7 @@ function keysIn(object) {
|
|
|
11967
12093
|
|
|
11968
12094
|
module.exports = keys;
|
|
11969
12095
|
|
|
11970
|
-
},{"lodash._getnative":
|
|
12096
|
+
},{"lodash._getnative":58,"lodash.isarguments":61,"lodash.isarray":62}],64:[function(require,module,exports){
|
|
11971
12097
|
(function (process){
|
|
11972
12098
|
var path = require('path');
|
|
11973
12099
|
var fs = require('fs');
|
|
@@ -12069,7 +12195,7 @@ mkdirP.sync = function sync (p, opts, made) {
|
|
|
12069
12195
|
};
|
|
12070
12196
|
|
|
12071
12197
|
}).call(this,require('_process'))
|
|
12072
|
-
},{"_process":
|
|
12198
|
+
},{"_process":67,"fs":42,"path":42}],65:[function(require,module,exports){
|
|
12073
12199
|
exports.endianness = function () { return 'LE' };
|
|
12074
12200
|
|
|
12075
12201
|
exports.hostname = function () {
|
|
@@ -12116,7 +12242,7 @@ exports.tmpdir = exports.tmpDir = function () {
|
|
|
12116
12242
|
|
|
12117
12243
|
exports.EOL = '\n';
|
|
12118
12244
|
|
|
12119
|
-
},{}],
|
|
12245
|
+
},{}],66:[function(require,module,exports){
|
|
12120
12246
|
(function (process){
|
|
12121
12247
|
'use strict';
|
|
12122
12248
|
|
|
@@ -12163,7 +12289,7 @@ function nextTick(fn, arg1, arg2, arg3) {
|
|
|
12163
12289
|
}
|
|
12164
12290
|
|
|
12165
12291
|
}).call(this,require('_process'))
|
|
12166
|
-
},{"_process":
|
|
12292
|
+
},{"_process":67}],67:[function(require,module,exports){
|
|
12167
12293
|
// shim for using process in browser
|
|
12168
12294
|
|
|
12169
12295
|
var process = module.exports = {};
|
|
@@ -12284,10 +12410,10 @@ process.chdir = function (dir) {
|
|
|
12284
12410
|
};
|
|
12285
12411
|
process.umask = function() { return 0; };
|
|
12286
12412
|
|
|
12287
|
-
},{}],
|
|
12413
|
+
},{}],68:[function(require,module,exports){
|
|
12288
12414
|
module.exports = require("./lib/_stream_duplex.js")
|
|
12289
12415
|
|
|
12290
|
-
},{"./lib/_stream_duplex.js":
|
|
12416
|
+
},{"./lib/_stream_duplex.js":69}],69:[function(require,module,exports){
|
|
12291
12417
|
// a duplex stream is just a stream that is both readable and writable.
|
|
12292
12418
|
// Since JS doesn't have multiple prototypal inheritance, this class
|
|
12293
12419
|
// prototypally inherits from Readable, and then parasitically from
|
|
@@ -12363,7 +12489,7 @@ function forEach(xs, f) {
|
|
|
12363
12489
|
f(xs[i], i);
|
|
12364
12490
|
}
|
|
12365
12491
|
}
|
|
12366
|
-
},{"./_stream_readable":
|
|
12492
|
+
},{"./_stream_readable":71,"./_stream_writable":73,"core-util-is":45,"inherits":51,"process-nextick-args":66}],70:[function(require,module,exports){
|
|
12367
12493
|
// a passthrough stream.
|
|
12368
12494
|
// basically just the most minimal sort of Transform stream.
|
|
12369
12495
|
// Every written chunk gets output as-is.
|
|
@@ -12390,7 +12516,7 @@ function PassThrough(options) {
|
|
|
12390
12516
|
PassThrough.prototype._transform = function (chunk, encoding, cb) {
|
|
12391
12517
|
cb(null, chunk);
|
|
12392
12518
|
};
|
|
12393
|
-
},{"./_stream_transform":
|
|
12519
|
+
},{"./_stream_transform":72,"core-util-is":45,"inherits":51}],71:[function(require,module,exports){
|
|
12394
12520
|
(function (process){
|
|
12395
12521
|
'use strict';
|
|
12396
12522
|
|
|
@@ -13286,7 +13412,7 @@ function indexOf(xs, x) {
|
|
|
13286
13412
|
return -1;
|
|
13287
13413
|
}
|
|
13288
13414
|
}).call(this,require('_process'))
|
|
13289
|
-
},{"./_stream_duplex":
|
|
13415
|
+
},{"./_stream_duplex":69,"_process":67,"buffer":44,"buffer-shims":43,"core-util-is":45,"events":48,"inherits":51,"isarray":53,"process-nextick-args":66,"string_decoder/":79,"util":40}],72:[function(require,module,exports){
|
|
13290
13416
|
// a transform stream is a readable/writable stream where you do
|
|
13291
13417
|
// something with the data. Sometimes it's called a "filter",
|
|
13292
13418
|
// but that's not a great name for it, since that implies a thing where
|
|
@@ -13467,7 +13593,7 @@ function done(stream, er) {
|
|
|
13467
13593
|
|
|
13468
13594
|
return stream.push(null);
|
|
13469
13595
|
}
|
|
13470
|
-
},{"./_stream_duplex":
|
|
13596
|
+
},{"./_stream_duplex":69,"core-util-is":45,"inherits":51}],73:[function(require,module,exports){
|
|
13471
13597
|
(function (process){
|
|
13472
13598
|
// A bit simpler than readable streams.
|
|
13473
13599
|
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
|
|
@@ -13996,10 +14122,10 @@ function CorkedRequest(state) {
|
|
|
13996
14122
|
};
|
|
13997
14123
|
}
|
|
13998
14124
|
}).call(this,require('_process'))
|
|
13999
|
-
},{"./_stream_duplex":
|
|
14125
|
+
},{"./_stream_duplex":69,"_process":67,"buffer":44,"buffer-shims":43,"core-util-is":45,"events":48,"inherits":51,"process-nextick-args":66,"util-deprecate":80}],74:[function(require,module,exports){
|
|
14000
14126
|
module.exports = require("./lib/_stream_passthrough.js")
|
|
14001
14127
|
|
|
14002
|
-
},{"./lib/_stream_passthrough.js":
|
|
14128
|
+
},{"./lib/_stream_passthrough.js":70}],75:[function(require,module,exports){
|
|
14003
14129
|
(function (process){
|
|
14004
14130
|
var Stream = (function (){
|
|
14005
14131
|
try {
|
|
@@ -14019,13 +14145,13 @@ if (!process.browser && process.env.READABLE_STREAM === 'disable' && Stream) {
|
|
|
14019
14145
|
}
|
|
14020
14146
|
|
|
14021
14147
|
}).call(this,require('_process'))
|
|
14022
|
-
},{"./lib/_stream_duplex.js":
|
|
14148
|
+
},{"./lib/_stream_duplex.js":69,"./lib/_stream_passthrough.js":70,"./lib/_stream_readable.js":71,"./lib/_stream_transform.js":72,"./lib/_stream_writable.js":73,"_process":67}],76:[function(require,module,exports){
|
|
14023
14149
|
module.exports = require("./lib/_stream_transform.js")
|
|
14024
14150
|
|
|
14025
|
-
},{"./lib/_stream_transform.js":
|
|
14151
|
+
},{"./lib/_stream_transform.js":72}],77:[function(require,module,exports){
|
|
14026
14152
|
module.exports = require("./lib/_stream_writable.js")
|
|
14027
14153
|
|
|
14028
|
-
},{"./lib/_stream_writable.js":
|
|
14154
|
+
},{"./lib/_stream_writable.js":73}],78:[function(require,module,exports){
|
|
14029
14155
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
14030
14156
|
//
|
|
14031
14157
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -14154,7 +14280,7 @@ Stream.prototype.pipe = function(dest, options) {
|
|
|
14154
14280
|
return dest;
|
|
14155
14281
|
};
|
|
14156
14282
|
|
|
14157
|
-
},{"events":
|
|
14283
|
+
},{"events":48,"inherits":51,"readable-stream/duplex.js":68,"readable-stream/passthrough.js":74,"readable-stream/readable.js":75,"readable-stream/transform.js":76,"readable-stream/writable.js":77}],79:[function(require,module,exports){
|
|
14158
14284
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
14159
14285
|
//
|
|
14160
14286
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
@@ -14377,48 +14503,7 @@ function base64DetectIncompleteChar(buffer) {
|
|
|
14377
14503
|
this.charLength = this.charReceived ? 3 : 0;
|
|
14378
14504
|
}
|
|
14379
14505
|
|
|
14380
|
-
},{"buffer":
|
|
14381
|
-
|
|
14382
|
-
/**
|
|
14383
|
-
* Expose `toIsoString`.
|
|
14384
|
-
*/
|
|
14385
|
-
|
|
14386
|
-
module.exports = toIsoString;
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
/**
|
|
14390
|
-
* Turn a `date` into an ISO string.
|
|
14391
|
-
*
|
|
14392
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
|
14393
|
-
*
|
|
14394
|
-
* @param {Date} date
|
|
14395
|
-
* @return {String}
|
|
14396
|
-
*/
|
|
14397
|
-
|
|
14398
|
-
function toIsoString (date) {
|
|
14399
|
-
return date.getUTCFullYear()
|
|
14400
|
-
+ '-' + pad(date.getUTCMonth() + 1)
|
|
14401
|
-
+ '-' + pad(date.getUTCDate())
|
|
14402
|
-
+ 'T' + pad(date.getUTCHours())
|
|
14403
|
-
+ ':' + pad(date.getUTCMinutes())
|
|
14404
|
-
+ ':' + pad(date.getUTCSeconds())
|
|
14405
|
-
+ '.' + String((date.getUTCMilliseconds()/1000).toFixed(3)).slice(2, 5)
|
|
14406
|
-
+ 'Z';
|
|
14407
|
-
}
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
/**
|
|
14411
|
-
* Pad a `number` with a ten's place zero.
|
|
14412
|
-
*
|
|
14413
|
-
* @param {Number} number
|
|
14414
|
-
* @return {String}
|
|
14415
|
-
*/
|
|
14416
|
-
|
|
14417
|
-
function pad (number) {
|
|
14418
|
-
var n = number.toString();
|
|
14419
|
-
return n.length === 1 ? '0' + n : n;
|
|
14420
|
-
}
|
|
14421
|
-
},{}],80:[function(require,module,exports){
|
|
14506
|
+
},{"buffer":44}],80:[function(require,module,exports){
|
|
14422
14507
|
(function (global){
|
|
14423
14508
|
|
|
14424
14509
|
/**
|
|
@@ -15086,4 +15171,4 @@ function hasOwnProperty(obj, prop) {
|
|
|
15086
15171
|
}
|
|
15087
15172
|
|
|
15088
15173
|
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
15089
|
-
},{"./support/isBuffer":81,"_process":
|
|
15174
|
+
},{"./support/isBuffer":81,"_process":67,"inherits":51}]},{},[1]);
|