@movable/studio-framework-test-helpers 2.41.0-og-lock → 2.41.0-pin-babel-traverse
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/dist/index.es.js +172 -372
- package/dist/index.js +178 -378
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ function createCommonjsModule(fn, module) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
var sinon = createCommonjsModule(function (module, exports) {
|
|
30
|
-
/* Sinon.JS 11.1.
|
|
30
|
+
/* Sinon.JS 11.1.1, 2021-05-26, @license BSD-3 */(function(f){{module.exports=f();}})(function(){return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof commonjsRequire&&commonjsRequire;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t);}return n[i].exports}for(var u="function"==typeof commonjsRequire&&commonjsRequire,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
31
31
|
|
|
32
32
|
var behavior = require("./sinon/behavior");
|
|
33
33
|
var createSandbox = require("./sinon/create-sandbox");
|
|
@@ -1066,248 +1066,12 @@ var createProxy = require("./proxy");
|
|
|
1066
1066
|
var nextTick = require("./util/core/next-tick");
|
|
1067
1067
|
|
|
1068
1068
|
var slice = arrayProto.slice;
|
|
1069
|
-
var promiseLib = Promise;
|
|
1070
1069
|
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
/**
|
|
1074
|
-
* Returns a `fake` that records all calls, arguments and return values.
|
|
1075
|
-
*
|
|
1076
|
-
* When an `f` argument is supplied, this implementation will be used.
|
|
1077
|
-
*
|
|
1078
|
-
* @example
|
|
1079
|
-
* // create an empty fake
|
|
1080
|
-
* var f1 = sinon.fake();
|
|
1081
|
-
*
|
|
1082
|
-
* f1();
|
|
1083
|
-
*
|
|
1084
|
-
* f1.calledOnce()
|
|
1085
|
-
* // true
|
|
1086
|
-
*
|
|
1087
|
-
* @example
|
|
1088
|
-
* function greet(greeting) {
|
|
1089
|
-
* console.log(`Hello ${greeting}`);
|
|
1090
|
-
* }
|
|
1091
|
-
*
|
|
1092
|
-
* // create a fake with implementation
|
|
1093
|
-
* var f2 = sinon.fake(greet);
|
|
1094
|
-
*
|
|
1095
|
-
* // Hello world
|
|
1096
|
-
* f2("world");
|
|
1097
|
-
*
|
|
1098
|
-
* f2.calledWith("world");
|
|
1099
|
-
* // true
|
|
1100
|
-
*
|
|
1101
|
-
* @param {Function|undefined} f
|
|
1102
|
-
* @returns {Function}
|
|
1103
|
-
* @namespace
|
|
1104
|
-
*/
|
|
1105
|
-
function fake(f) {
|
|
1106
|
-
if (arguments.length > 0 && typeof f !== "function") {
|
|
1107
|
-
throw new TypeError("Expected f argument to be a Function");
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
return wrapFunc(f);
|
|
1070
|
+
function getError(value) {
|
|
1071
|
+
return value instanceof Error ? value : new Error(value);
|
|
1111
1072
|
}
|
|
1112
1073
|
|
|
1113
|
-
/**
|
|
1114
|
-
* Creates a `fake` that returns the provided `value`, as well as recording all
|
|
1115
|
-
* calls, arguments and return values.
|
|
1116
|
-
*
|
|
1117
|
-
* @example
|
|
1118
|
-
* var f1 = sinon.fake.returns(42);
|
|
1119
|
-
*
|
|
1120
|
-
* f1();
|
|
1121
|
-
* // 42
|
|
1122
|
-
*
|
|
1123
|
-
* @memberof fake
|
|
1124
|
-
* @param {*} value
|
|
1125
|
-
* @returns {Function}
|
|
1126
|
-
*/
|
|
1127
|
-
fake.returns = function returns(value) {
|
|
1128
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1129
|
-
function f() {
|
|
1130
|
-
return value;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
return wrapFunc(f);
|
|
1134
|
-
};
|
|
1135
|
-
|
|
1136
|
-
/**
|
|
1137
|
-
* Creates a `fake` that throws an Error.
|
|
1138
|
-
* If the `value` argument does not have Error in its prototype chain, it will
|
|
1139
|
-
* be used for creating a new error.
|
|
1140
|
-
*
|
|
1141
|
-
* @example
|
|
1142
|
-
* var f1 = sinon.fake.throws("hello");
|
|
1143
|
-
*
|
|
1144
|
-
* f1();
|
|
1145
|
-
* // Uncaught Error: hello
|
|
1146
|
-
*
|
|
1147
|
-
* @example
|
|
1148
|
-
* var f2 = sinon.fake.throws(new TypeError("Invalid argument"));
|
|
1149
|
-
*
|
|
1150
|
-
* f2();
|
|
1151
|
-
* // Uncaught TypeError: Invalid argument
|
|
1152
|
-
*
|
|
1153
|
-
* @memberof fake
|
|
1154
|
-
* @param {*|Error} value
|
|
1155
|
-
* @returns {Function}
|
|
1156
|
-
*/
|
|
1157
|
-
fake.throws = function throws(value) {
|
|
1158
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1159
|
-
function f() {
|
|
1160
|
-
throw getError(value);
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
return wrapFunc(f);
|
|
1164
|
-
};
|
|
1165
|
-
|
|
1166
|
-
/**
|
|
1167
|
-
* Creates a `fake` that returns a promise that resolves to the passed `value`
|
|
1168
|
-
* argument.
|
|
1169
|
-
*
|
|
1170
|
-
* @example
|
|
1171
|
-
* var f1 = sinon.fake.resolves("apple pie");
|
|
1172
|
-
*
|
|
1173
|
-
* await f1();
|
|
1174
|
-
* // "apple pie"
|
|
1175
|
-
*
|
|
1176
|
-
* @memberof fake
|
|
1177
|
-
* @param {*} value
|
|
1178
|
-
* @returns {Function}
|
|
1179
|
-
*/
|
|
1180
|
-
fake.resolves = function resolves(value) {
|
|
1181
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1182
|
-
function f() {
|
|
1183
|
-
return promiseLib.resolve(value);
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
return wrapFunc(f);
|
|
1187
|
-
};
|
|
1188
|
-
|
|
1189
|
-
/**
|
|
1190
|
-
* Creates a `fake` that returns a promise that rejects to the passed `value`
|
|
1191
|
-
* argument. When `value` does not have Error in its prototype chain, it will be
|
|
1192
|
-
* wrapped in an Error.
|
|
1193
|
-
*
|
|
1194
|
-
* @example
|
|
1195
|
-
* var f1 = sinon.fake.rejects(":(");
|
|
1196
|
-
*
|
|
1197
|
-
* try {
|
|
1198
|
-
* await ft();
|
|
1199
|
-
* } catch (error) {
|
|
1200
|
-
* console.log(error);
|
|
1201
|
-
* // ":("
|
|
1202
|
-
* }
|
|
1203
|
-
*
|
|
1204
|
-
* @memberof fake
|
|
1205
|
-
* @param {*} value
|
|
1206
|
-
* @returns {Function}
|
|
1207
|
-
*/
|
|
1208
|
-
fake.rejects = function rejects(value) {
|
|
1209
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1210
|
-
function f() {
|
|
1211
|
-
return promiseLib.reject(getError(value));
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
return wrapFunc(f);
|
|
1215
|
-
};
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* Causes `fake` to use a custom Promise implementation, instead of the native
|
|
1219
|
-
* Promise implementation.
|
|
1220
|
-
*
|
|
1221
|
-
* @example
|
|
1222
|
-
* const bluebird = require("bluebird");
|
|
1223
|
-
* sinon.fake.usingPromise(bluebird);
|
|
1224
|
-
*
|
|
1225
|
-
* @memberof fake
|
|
1226
|
-
* @param {*} promiseLibrary
|
|
1227
|
-
* @returns {Function}
|
|
1228
|
-
*/
|
|
1229
|
-
fake.usingPromise = function usingPromise(promiseLibrary) {
|
|
1230
|
-
promiseLib = promiseLibrary;
|
|
1231
|
-
return fake;
|
|
1232
|
-
};
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Returns a `fake` that calls the callback with the defined arguments.
|
|
1236
|
-
*
|
|
1237
|
-
* @example
|
|
1238
|
-
* function callback() {
|
|
1239
|
-
* console.log(arguments.join("*"));
|
|
1240
|
-
* }
|
|
1241
|
-
*
|
|
1242
|
-
* const f1 = sinon.fake.yields("apple", "pie");
|
|
1243
|
-
*
|
|
1244
|
-
* f1(callback);
|
|
1245
|
-
* // "apple*pie"
|
|
1246
|
-
*
|
|
1247
|
-
* @memberof fake
|
|
1248
|
-
* @returns {Function}
|
|
1249
|
-
*/
|
|
1250
|
-
fake.yields = function yields() {
|
|
1251
|
-
var values = slice(arguments);
|
|
1252
|
-
|
|
1253
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1254
|
-
function f() {
|
|
1255
|
-
var callback = arguments[arguments.length - 1];
|
|
1256
|
-
if (typeof callback !== "function") {
|
|
1257
|
-
throw new TypeError("Expected last argument to be a function");
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
callback.apply(null, values);
|
|
1261
|
-
}
|
|
1262
|
-
|
|
1263
|
-
return wrapFunc(f);
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Returns a `fake` that calls the callback **asynchronously** with the
|
|
1268
|
-
* defined arguments.
|
|
1269
|
-
*
|
|
1270
|
-
* @example
|
|
1271
|
-
* function callback() {
|
|
1272
|
-
* console.log(arguments.join("*"));
|
|
1273
|
-
* }
|
|
1274
|
-
*
|
|
1275
|
-
* const f1 = sinon.fake.yields("apple", "pie");
|
|
1276
|
-
*
|
|
1277
|
-
* f1(callback);
|
|
1278
|
-
*
|
|
1279
|
-
* setTimeout(() => {
|
|
1280
|
-
* // "apple*pie"
|
|
1281
|
-
* });
|
|
1282
|
-
*
|
|
1283
|
-
* @memberof fake
|
|
1284
|
-
* @returns {Function}
|
|
1285
|
-
*/
|
|
1286
|
-
fake.yieldsAsync = function yieldsAsync() {
|
|
1287
|
-
var values = slice(arguments);
|
|
1288
|
-
|
|
1289
|
-
// eslint-disable-next-line jsdoc/require-jsdoc
|
|
1290
|
-
function f() {
|
|
1291
|
-
var callback = arguments[arguments.length - 1];
|
|
1292
|
-
if (typeof callback !== "function") {
|
|
1293
|
-
throw new TypeError("Expected last argument to be a function");
|
|
1294
|
-
}
|
|
1295
|
-
nextTick(function () {
|
|
1296
|
-
callback.apply(null, values);
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
return wrapFunc(f);
|
|
1301
|
-
};
|
|
1302
|
-
|
|
1303
1074
|
var uuid = 0;
|
|
1304
|
-
/**
|
|
1305
|
-
* Creates a proxy (sinon concept) from the passed function.
|
|
1306
|
-
*
|
|
1307
|
-
* @private
|
|
1308
|
-
* @param {Function} f
|
|
1309
|
-
* @returns {Function}
|
|
1310
|
-
*/
|
|
1311
1075
|
function wrapFunc(f) {
|
|
1312
1076
|
var proxy;
|
|
1313
1077
|
var fakeInstance = function () {
|
|
@@ -1335,18 +1099,88 @@ function wrapFunc(f) {
|
|
|
1335
1099
|
return proxy;
|
|
1336
1100
|
}
|
|
1337
1101
|
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1102
|
+
function fakeClass() {
|
|
1103
|
+
var promiseLib = null;
|
|
1104
|
+
if (typeof Promise === "function") {
|
|
1105
|
+
promiseLib = Promise;
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
function fake(f) {
|
|
1109
|
+
if (arguments.length > 0 && typeof f !== "function") {
|
|
1110
|
+
throw new TypeError("Expected f argument to be a Function");
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return wrapFunc(f);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
fake.returns = function returns(value) {
|
|
1117
|
+
function f() {
|
|
1118
|
+
return value;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
return wrapFunc(f);
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
fake.throws = function throws(value) {
|
|
1125
|
+
function f() {
|
|
1126
|
+
throw getError(value);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
return wrapFunc(f);
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1132
|
+
fake.resolves = function resolves(value) {
|
|
1133
|
+
function f() {
|
|
1134
|
+
return promiseLib.resolve(value);
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
return wrapFunc(f);
|
|
1138
|
+
};
|
|
1139
|
+
|
|
1140
|
+
fake.rejects = function rejects(value) {
|
|
1141
|
+
function f() {
|
|
1142
|
+
return promiseLib.reject(getError(value));
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
return wrapFunc(f);
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
fake.usingPromise = function usingPromise(promiseLibrary) {
|
|
1149
|
+
promiseLib = promiseLibrary;
|
|
1150
|
+
return fake;
|
|
1151
|
+
};
|
|
1152
|
+
|
|
1153
|
+
function yieldInternal(async, values) {
|
|
1154
|
+
function f() {
|
|
1155
|
+
var callback = arguments[arguments.length - 1];
|
|
1156
|
+
if (typeof callback !== "function") {
|
|
1157
|
+
throw new TypeError("Expected last argument to be a function");
|
|
1158
|
+
}
|
|
1159
|
+
if (async) {
|
|
1160
|
+
nextTick(function () {
|
|
1161
|
+
callback.apply(null, values);
|
|
1162
|
+
});
|
|
1163
|
+
} else {
|
|
1164
|
+
callback.apply(null, values);
|
|
1165
|
+
}
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
return wrapFunc(f);
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
fake.yields = function yields() {
|
|
1172
|
+
return yieldInternal(false, slice(arguments));
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
fake.yieldsAsync = function yieldsAsync() {
|
|
1176
|
+
return yieldInternal(true, slice(arguments));
|
|
1177
|
+
};
|
|
1178
|
+
|
|
1179
|
+
return fake;
|
|
1348
1180
|
}
|
|
1349
1181
|
|
|
1182
|
+
module.exports = fakeClass();
|
|
1183
|
+
|
|
1350
1184
|
},{"./proxy":15,"./util/core/next-tick":33,"@sinonjs/commons":46}],9:[function(require,module,exports){
|
|
1351
1185
|
|
|
1352
1186
|
var arrayProto = require("@sinonjs/commons").prototypes.array;
|
|
@@ -4022,30 +3856,13 @@ module.exports = function extend(target, ...sources) {
|
|
|
4022
3856
|
if (prop === "name" && !destOwnPropertyDescriptor.writable) {
|
|
4023
3857
|
return;
|
|
4024
3858
|
}
|
|
4025
|
-
|
|
3859
|
+
|
|
3860
|
+
Object.defineProperty(dest, prop, {
|
|
4026
3861
|
configurable: sourceOwnPropertyDescriptor.configurable,
|
|
4027
3862
|
enumerable: sourceOwnPropertyDescriptor.enumerable,
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
|
|
4031
|
-
data properties has writable attribute where as acessor property don't
|
|
4032
|
-
REF: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#properties
|
|
4033
|
-
*/
|
|
4034
|
-
|
|
4035
|
-
if (hasOwnProperty(sourceOwnPropertyDescriptor, "writable")) {
|
|
4036
|
-
descriptors.writable = sourceOwnPropertyDescriptor.writable;
|
|
4037
|
-
descriptors.value = sourceOwnPropertyDescriptor.value;
|
|
4038
|
-
} else {
|
|
4039
|
-
if (sourceOwnPropertyDescriptor.get) {
|
|
4040
|
-
descriptors.get =
|
|
4041
|
-
sourceOwnPropertyDescriptor.get.bind(dest);
|
|
4042
|
-
}
|
|
4043
|
-
if (sourceOwnPropertyDescriptor.set) {
|
|
4044
|
-
descriptors.set =
|
|
4045
|
-
sourceOwnPropertyDescriptor.set.bind(dest);
|
|
4046
|
-
}
|
|
4047
|
-
}
|
|
4048
|
-
Object.defineProperty(dest, prop, descriptors);
|
|
3863
|
+
writable: sourceOwnPropertyDescriptor.writable,
|
|
3864
|
+
value: sourceOwnPropertyDescriptor.value,
|
|
3865
|
+
});
|
|
4049
3866
|
}
|
|
4050
3867
|
);
|
|
4051
3868
|
};
|
|
@@ -5097,11 +4914,11 @@ var globalObject = require("@sinonjs/commons").global;
|
|
|
5097
4914
|
* Configuration object for the `install` method.
|
|
5098
4915
|
*
|
|
5099
4916
|
* @typedef {object} Config
|
|
5100
|
-
* @property {number|Date}
|
|
5101
|
-
* @property {string[]}
|
|
5102
|
-
* @property {number}
|
|
5103
|
-
* @property {boolean}
|
|
5104
|
-
* @property {number}
|
|
4917
|
+
* @property {number|Date} now a number (in milliseconds) or a Date object (default epoch)
|
|
4918
|
+
* @property {string[]} toFake names of the methods that should be faked.
|
|
4919
|
+
* @property {number} loopLimit the maximum number of timers that will be run when calling runAll()
|
|
4920
|
+
* @property {boolean} shouldAdvanceTime tells FakeTimers to increment mocked time automatically (default false)
|
|
4921
|
+
* @property {number} advanceTimeDelta increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)
|
|
5105
4922
|
*/
|
|
5106
4923
|
|
|
5107
4924
|
/**
|
|
@@ -5663,6 +5480,7 @@ function withGlobal(_global) {
|
|
|
5663
5480
|
}
|
|
5664
5481
|
|
|
5665
5482
|
function hijackMethod(target, method, clock) {
|
|
5483
|
+
var prop;
|
|
5666
5484
|
clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(
|
|
5667
5485
|
target,
|
|
5668
5486
|
method
|
|
@@ -5702,10 +5520,11 @@ function withGlobal(_global) {
|
|
|
5702
5520
|
return clock[method].apply(clock, arguments);
|
|
5703
5521
|
};
|
|
5704
5522
|
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5523
|
+
for (prop in clock[method]) {
|
|
5524
|
+
if (clock[method].hasOwnProperty(prop)) {
|
|
5525
|
+
target[method][prop] = clock[method][prop];
|
|
5526
|
+
}
|
|
5527
|
+
}
|
|
5709
5528
|
}
|
|
5710
5529
|
|
|
5711
5530
|
target[method].clock = clock;
|
|
@@ -5783,8 +5602,8 @@ function withGlobal(_global) {
|
|
|
5783
5602
|
var originalSetTimeout = _global.setImmediate || _global.setTimeout;
|
|
5784
5603
|
|
|
5785
5604
|
/**
|
|
5786
|
-
* @param {Date|number}
|
|
5787
|
-
* @param {number}
|
|
5605
|
+
* @param {Date|number} start the system time - non-integer values are floored
|
|
5606
|
+
* @param {number} loopLimit maximum number of timers that will be run when calling runAll()
|
|
5788
5607
|
* @returns {Clock}
|
|
5789
5608
|
*/
|
|
5790
5609
|
function createClock(start, loopLimit) {
|
|
@@ -6361,7 +6180,7 @@ function withGlobal(_global) {
|
|
|
6361
6180
|
/* eslint-disable complexity */
|
|
6362
6181
|
|
|
6363
6182
|
/**
|
|
6364
|
-
* @param {Config=}
|
|
6183
|
+
* @param {Config=} config Optional config
|
|
6365
6184
|
* @returns {Clock}
|
|
6366
6185
|
*/
|
|
6367
6186
|
function install(config) {
|
|
@@ -18473,7 +18292,7 @@ var _arrayIncludes = function (IS_INCLUDES) {
|
|
|
18473
18292
|
};
|
|
18474
18293
|
|
|
18475
18294
|
var _core = createCommonjsModule(function (module) {
|
|
18476
|
-
var core = module.exports = { version: '2.6.
|
|
18295
|
+
var core = module.exports = { version: '2.6.11' };
|
|
18477
18296
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
18478
18297
|
});
|
|
18479
18298
|
_core.version;
|
|
@@ -18498,7 +18317,7 @@ var store = _global[SHARED] || (_global[SHARED] = {});
|
|
|
18498
18317
|
})('versions', []).push({
|
|
18499
18318
|
version: _core.version,
|
|
18500
18319
|
mode: 'pure' ,
|
|
18501
|
-
copyright: '©
|
|
18320
|
+
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
|
18502
18321
|
});
|
|
18503
18322
|
});
|
|
18504
18323
|
|
|
@@ -18737,15 +18556,15 @@ var keys = keys$1;
|
|
|
18737
18556
|
function setupCropduster(hooks) {
|
|
18738
18557
|
var stub;
|
|
18739
18558
|
hooks.beforeEach(function cropdusterBefore(assert) {
|
|
18740
|
-
stub = sinon$1.stub(CD__default[
|
|
18559
|
+
stub = sinon$1.stub(CD__default['default']); // eslint-disable-next-line
|
|
18741
18560
|
|
|
18742
18561
|
assert.CD = stub;
|
|
18743
18562
|
this.CD = stub;
|
|
18744
18563
|
});
|
|
18745
18564
|
hooks.afterEach(function () {
|
|
18746
|
-
keys(CD__default[
|
|
18747
|
-
if (CD__default[
|
|
18748
|
-
CD__default[
|
|
18565
|
+
keys(CD__default['default']).forEach(function (prop) {
|
|
18566
|
+
if (CD__default['default'][prop] && typeof CD__default['default'][prop].restore === 'function') {
|
|
18567
|
+
CD__default['default'][prop].restore();
|
|
18749
18568
|
}
|
|
18750
18569
|
});
|
|
18751
18570
|
});
|
|
@@ -19659,44 +19478,6 @@ function settled() {
|
|
|
19659
19478
|
});
|
|
19660
19479
|
}
|
|
19661
19480
|
|
|
19662
|
-
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
19663
|
-
_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
19664
|
-
|
|
19665
|
-
var $Object$3 = _core.Object;
|
|
19666
|
-
var defineProperty$3 = function defineProperty(it, key, desc) {
|
|
19667
|
-
return $Object$3.defineProperty(it, key, desc);
|
|
19668
|
-
};
|
|
19669
|
-
|
|
19670
|
-
var defineProperty$2 = defineProperty$3;
|
|
19671
|
-
|
|
19672
|
-
var createClass = createCommonjsModule(function (module) {
|
|
19673
|
-
function _defineProperties(target, props) {
|
|
19674
|
-
for (var i = 0; i < props.length; i++) {
|
|
19675
|
-
var descriptor = props[i];
|
|
19676
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
19677
|
-
descriptor.configurable = true;
|
|
19678
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
19679
|
-
|
|
19680
|
-
defineProperty$2(target, descriptor.key, descriptor);
|
|
19681
|
-
}
|
|
19682
|
-
}
|
|
19683
|
-
|
|
19684
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
19685
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
19686
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
19687
|
-
|
|
19688
|
-
defineProperty$2(Constructor, "prototype", {
|
|
19689
|
-
writable: false
|
|
19690
|
-
});
|
|
19691
|
-
|
|
19692
|
-
return Constructor;
|
|
19693
|
-
}
|
|
19694
|
-
|
|
19695
|
-
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19696
|
-
});
|
|
19697
|
-
|
|
19698
|
-
var _createClass = unwrapExports(createClass);
|
|
19699
|
-
|
|
19700
19481
|
var classCallCheck = createCommonjsModule(function (module) {
|
|
19701
19482
|
function _classCallCheck(instance, Constructor) {
|
|
19702
19483
|
if (!(instance instanceof Constructor)) {
|
|
@@ -19704,7 +19485,8 @@ function _classCallCheck(instance, Constructor) {
|
|
|
19704
19485
|
}
|
|
19705
19486
|
}
|
|
19706
19487
|
|
|
19707
|
-
module.exports = _classCallCheck
|
|
19488
|
+
module.exports = _classCallCheck;
|
|
19489
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19708
19490
|
});
|
|
19709
19491
|
|
|
19710
19492
|
var _classCallCheck = unwrapExports(classCallCheck);
|
|
@@ -19718,7 +19500,8 @@ function _assertThisInitialized(self) {
|
|
|
19718
19500
|
return self;
|
|
19719
19501
|
}
|
|
19720
19502
|
|
|
19721
|
-
module.exports = _assertThisInitialized
|
|
19503
|
+
module.exports = _assertThisInitialized;
|
|
19504
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19722
19505
|
});
|
|
19723
19506
|
|
|
19724
19507
|
var _assertThisInitialized = unwrapExports(assertThisInitialized);
|
|
@@ -19726,9 +19509,9 @@ var _assertThisInitialized = unwrapExports(assertThisInitialized);
|
|
|
19726
19509
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
19727
19510
|
_export(_export.S, 'Object', { create: _objectCreate });
|
|
19728
19511
|
|
|
19729
|
-
var $Object$
|
|
19512
|
+
var $Object$3 = _core.Object;
|
|
19730
19513
|
var create$1 = function create(P, D) {
|
|
19731
|
-
return $Object$
|
|
19514
|
+
return $Object$3.create(P, D);
|
|
19732
19515
|
};
|
|
19733
19516
|
|
|
19734
19517
|
var create = create$1;
|
|
@@ -19793,11 +19576,14 @@ function _setPrototypeOf(o, p) {
|
|
|
19793
19576
|
module.exports = _setPrototypeOf = setPrototypeOf$1 || function _setPrototypeOf(o, p) {
|
|
19794
19577
|
o.__proto__ = p;
|
|
19795
19578
|
return o;
|
|
19796
|
-
}
|
|
19579
|
+
};
|
|
19580
|
+
|
|
19581
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19797
19582
|
return _setPrototypeOf(o, p);
|
|
19798
19583
|
}
|
|
19799
19584
|
|
|
19800
|
-
module.exports = _setPrototypeOf
|
|
19585
|
+
module.exports = _setPrototypeOf;
|
|
19586
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19801
19587
|
});
|
|
19802
19588
|
|
|
19803
19589
|
unwrapExports(setPrototypeOf);
|
|
@@ -19815,15 +19601,11 @@ function _inherits(subClass, superClass) {
|
|
|
19815
19601
|
configurable: true
|
|
19816
19602
|
}
|
|
19817
19603
|
});
|
|
19818
|
-
|
|
19819
|
-
defineProperty$2(subClass, "prototype", {
|
|
19820
|
-
writable: false
|
|
19821
|
-
});
|
|
19822
|
-
|
|
19823
19604
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
19824
19605
|
}
|
|
19825
19606
|
|
|
19826
|
-
module.exports = _inherits
|
|
19607
|
+
module.exports = _inherits;
|
|
19608
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19827
19609
|
});
|
|
19828
19610
|
|
|
19829
19611
|
var _inherits = unwrapExports(inherits);
|
|
@@ -19895,10 +19677,10 @@ var _wksExt = {
|
|
|
19895
19677
|
f: f$3
|
|
19896
19678
|
};
|
|
19897
19679
|
|
|
19898
|
-
var defineProperty$
|
|
19680
|
+
var defineProperty$3 = _objectDp.f;
|
|
19899
19681
|
var _wksDefine = function (name) {
|
|
19900
19682
|
var $Symbol = _core.Symbol || (_core.Symbol = {} );
|
|
19901
|
-
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$
|
|
19683
|
+
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$3($Symbol, name, { value: _wksExt.f(name) });
|
|
19902
19684
|
};
|
|
19903
19685
|
|
|
19904
19686
|
var f$2 = Object.getOwnPropertySymbols;
|
|
@@ -20227,14 +20009,25 @@ var _typeof_1 = createCommonjsModule(function (module) {
|
|
|
20227
20009
|
function _typeof(obj) {
|
|
20228
20010
|
"@babel/helpers - typeof";
|
|
20229
20011
|
|
|
20230
|
-
|
|
20231
|
-
|
|
20232
|
-
|
|
20233
|
-
|
|
20234
|
-
|
|
20012
|
+
if (typeof symbol === "function" && typeof iterator === "symbol") {
|
|
20013
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
20014
|
+
return typeof obj;
|
|
20015
|
+
};
|
|
20016
|
+
|
|
20017
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20018
|
+
} else {
|
|
20019
|
+
module.exports = _typeof = function _typeof(obj) {
|
|
20020
|
+
return obj && typeof symbol === "function" && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
20021
|
+
};
|
|
20022
|
+
|
|
20023
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20024
|
+
}
|
|
20025
|
+
|
|
20026
|
+
return _typeof(obj);
|
|
20235
20027
|
}
|
|
20236
20028
|
|
|
20237
|
-
module.exports = _typeof
|
|
20029
|
+
module.exports = _typeof;
|
|
20030
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20238
20031
|
});
|
|
20239
20032
|
|
|
20240
20033
|
unwrapExports(_typeof_1);
|
|
@@ -20247,14 +20040,13 @@ var _typeof = _typeof_1["default"];
|
|
|
20247
20040
|
function _possibleConstructorReturn(self, call) {
|
|
20248
20041
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
20249
20042
|
return call;
|
|
20250
|
-
} else if (call !== void 0) {
|
|
20251
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
20252
20043
|
}
|
|
20253
20044
|
|
|
20254
20045
|
return assertThisInitialized(self);
|
|
20255
20046
|
}
|
|
20256
20047
|
|
|
20257
|
-
module.exports = _possibleConstructorReturn
|
|
20048
|
+
module.exports = _possibleConstructorReturn;
|
|
20049
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20258
20050
|
});
|
|
20259
20051
|
|
|
20260
20052
|
var _possibleConstructorReturn = unwrapExports(possibleConstructorReturn);
|
|
@@ -20277,19 +20069,31 @@ var getPrototypeOf = createCommonjsModule(function (module) {
|
|
|
20277
20069
|
function _getPrototypeOf(o) {
|
|
20278
20070
|
module.exports = _getPrototypeOf = setPrototypeOf$1 ? getPrototypeOf$1 : function _getPrototypeOf(o) {
|
|
20279
20071
|
return o.__proto__ || getPrototypeOf$1(o);
|
|
20280
|
-
}
|
|
20072
|
+
};
|
|
20073
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20281
20074
|
return _getPrototypeOf(o);
|
|
20282
20075
|
}
|
|
20283
20076
|
|
|
20284
|
-
module.exports = _getPrototypeOf
|
|
20077
|
+
module.exports = _getPrototypeOf;
|
|
20078
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20285
20079
|
});
|
|
20286
20080
|
|
|
20287
20081
|
var _getPrototypeOf = unwrapExports(getPrototypeOf);
|
|
20288
20082
|
|
|
20083
|
+
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
|
|
20084
|
+
_export(_export.S + _export.F * !_descriptors, 'Object', { defineProperty: _objectDp.f });
|
|
20085
|
+
|
|
20086
|
+
var $Object$2 = _core.Object;
|
|
20087
|
+
var defineProperty$2 = function defineProperty(it, key, desc) {
|
|
20088
|
+
return $Object$2.defineProperty(it, key, desc);
|
|
20089
|
+
};
|
|
20090
|
+
|
|
20091
|
+
var defineProperty$1 = defineProperty$2;
|
|
20092
|
+
|
|
20289
20093
|
var defineProperty = createCommonjsModule(function (module) {
|
|
20290
20094
|
function _defineProperty(obj, key, value) {
|
|
20291
20095
|
if (key in obj) {
|
|
20292
|
-
defineProperty$
|
|
20096
|
+
defineProperty$1(obj, key, {
|
|
20293
20097
|
value: value,
|
|
20294
20098
|
enumerable: true,
|
|
20295
20099
|
configurable: true,
|
|
@@ -20302,7 +20106,8 @@ function _defineProperty(obj, key, value) {
|
|
|
20302
20106
|
return obj;
|
|
20303
20107
|
}
|
|
20304
20108
|
|
|
20305
|
-
module.exports = _defineProperty
|
|
20109
|
+
module.exports = _defineProperty;
|
|
20110
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20306
20111
|
});
|
|
20307
20112
|
|
|
20308
20113
|
var _defineProperty = unwrapExports(defineProperty);
|
|
@@ -20344,7 +20149,8 @@ function _asyncToGenerator(fn) {
|
|
|
20344
20149
|
};
|
|
20345
20150
|
}
|
|
20346
20151
|
|
|
20347
|
-
module.exports = _asyncToGenerator
|
|
20152
|
+
module.exports = _asyncToGenerator;
|
|
20153
|
+
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20348
20154
|
});
|
|
20349
20155
|
|
|
20350
20156
|
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
@@ -20437,9 +20243,9 @@ var runtime = (function (exports) {
|
|
|
20437
20243
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
20438
20244
|
// don't natively support it.
|
|
20439
20245
|
var IteratorPrototype = {};
|
|
20440
|
-
|
|
20246
|
+
IteratorPrototype[iteratorSymbol] = function () {
|
|
20441
20247
|
return this;
|
|
20442
|
-
}
|
|
20248
|
+
};
|
|
20443
20249
|
|
|
20444
20250
|
var getProto = Object.getPrototypeOf;
|
|
20445
20251
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
@@ -20453,9 +20259,8 @@ var runtime = (function (exports) {
|
|
|
20453
20259
|
|
|
20454
20260
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
20455
20261
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
20456
|
-
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
20457
|
-
|
|
20458
|
-
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
20262
|
+
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
20263
|
+
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
20459
20264
|
GeneratorFunction.displayName = define(
|
|
20460
20265
|
GeneratorFunctionPrototype,
|
|
20461
20266
|
toStringTagSymbol,
|
|
@@ -20569,9 +20374,9 @@ var runtime = (function (exports) {
|
|
|
20569
20374
|
}
|
|
20570
20375
|
|
|
20571
20376
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
20572
|
-
|
|
20377
|
+
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
20573
20378
|
return this;
|
|
20574
|
-
}
|
|
20379
|
+
};
|
|
20575
20380
|
exports.AsyncIterator = AsyncIterator;
|
|
20576
20381
|
|
|
20577
20382
|
// Note that simple async functions are implemented on top of
|
|
@@ -20764,13 +20569,13 @@ var runtime = (function (exports) {
|
|
|
20764
20569
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
20765
20570
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
20766
20571
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
20767
|
-
|
|
20572
|
+
Gp[iteratorSymbol] = function() {
|
|
20768
20573
|
return this;
|
|
20769
|
-
}
|
|
20574
|
+
};
|
|
20770
20575
|
|
|
20771
|
-
|
|
20576
|
+
Gp.toString = function() {
|
|
20772
20577
|
return "[object Generator]";
|
|
20773
|
-
}
|
|
20578
|
+
};
|
|
20774
20579
|
|
|
20775
20580
|
function pushTryEntry(locs) {
|
|
20776
20581
|
var entry = { tryLoc: locs[0] };
|
|
@@ -21089,19 +20894,14 @@ try {
|
|
|
21089
20894
|
} catch (accidentalStrictMode) {
|
|
21090
20895
|
// This module should not be running in strict mode, so the above
|
|
21091
20896
|
// assignment should always work unless something is misconfigured. Just
|
|
21092
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
21093
|
-
// we can explicitly access globalThis. In older engines we can escape
|
|
20897
|
+
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
21094
20898
|
// strict mode using a global Function call. This could conceivably fail
|
|
21095
20899
|
// if a Content Security Policy forbids using Function, but in that case
|
|
21096
20900
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
21097
20901
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
21098
20902
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
21099
20903
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
21100
|
-
|
|
21101
|
-
globalThis.regeneratorRuntime = runtime;
|
|
21102
|
-
} else {
|
|
21103
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
21104
|
-
}
|
|
20904
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
21105
20905
|
}
|
|
21106
20906
|
});
|
|
21107
20907
|
|
|
@@ -21397,10 +21197,10 @@ function render(testJsx) {
|
|
|
21397
21197
|
return _this;
|
|
21398
21198
|
}
|
|
21399
21199
|
|
|
21400
|
-
return
|
|
21401
|
-
}(React__default[
|
|
21200
|
+
return ErrorBoundary;
|
|
21201
|
+
}(React__default['default'].Component);
|
|
21402
21202
|
|
|
21403
|
-
ReactDOM__default[
|
|
21203
|
+
ReactDOM__default['default'].render( /*#__PURE__*/React__default['default'].createElement(ErrorBoundary, null), element, function () {
|
|
21404
21204
|
return setTimeout(resolve, 0);
|
|
21405
21205
|
});
|
|
21406
21206
|
});
|
|
@@ -21605,9 +21405,9 @@ var TagDefaults = {
|
|
|
21605
21405
|
overflow: null
|
|
21606
21406
|
};
|
|
21607
21407
|
|
|
21608
|
-
function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly
|
|
21408
|
+
function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
21609
21409
|
|
|
21610
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source =
|
|
21410
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (getOwnPropertyDescriptors) { defineProperties(target, getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { defineProperty$1(target, key, getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
21611
21411
|
var makeTag = function makeTag(tagData) {
|
|
21612
21412
|
return _objectSpread(_objectSpread({}, TagDefaults), tagData);
|
|
21613
21413
|
};
|