@movable/studio-framework-test-helpers 2.40.0 → 2.41.0-pinned-rollup-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/dist/index.es.js +378 -177
- package/dist/index.js +385 -182
- package/package.json +2 -2
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.2, 2021-07-27, @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,120 +1066,286 @@ 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;
|
|
1069
1070
|
|
|
1070
|
-
|
|
1071
|
-
return value instanceof Error ? value : new Error(value);
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
var uuid = 0;
|
|
1075
|
-
function wrapFunc(f) {
|
|
1076
|
-
var proxy;
|
|
1077
|
-
var fakeInstance = function () {
|
|
1078
|
-
var firstArg, lastArg;
|
|
1071
|
+
module.exports = fake;
|
|
1079
1072
|
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
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
|
+
}
|
|
1084
1109
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1110
|
+
return wrapFunc(f);
|
|
1111
|
+
}
|
|
1087
1112
|
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
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
|
+
}
|
|
1091
1132
|
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
proxy = createProxy(fakeInstance, f || fakeInstance);
|
|
1133
|
+
return wrapFunc(f);
|
|
1134
|
+
};
|
|
1095
1135
|
|
|
1096
|
-
|
|
1097
|
-
|
|
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
|
+
}
|
|
1098
1162
|
|
|
1099
|
-
return
|
|
1100
|
-
}
|
|
1163
|
+
return wrapFunc(f);
|
|
1164
|
+
};
|
|
1101
1165
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
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);
|
|
1106
1184
|
}
|
|
1107
1185
|
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
throw new TypeError("Expected f argument to be a Function");
|
|
1111
|
-
}
|
|
1186
|
+
return wrapFunc(f);
|
|
1187
|
+
};
|
|
1112
1188
|
|
|
1113
|
-
|
|
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));
|
|
1114
1212
|
}
|
|
1115
1213
|
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
return value;
|
|
1119
|
-
}
|
|
1214
|
+
return wrapFunc(f);
|
|
1215
|
+
};
|
|
1120
1216
|
|
|
1121
|
-
|
|
1122
|
-
|
|
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
|
+
};
|
|
1123
1233
|
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
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");
|
|
1127
1258
|
}
|
|
1128
1259
|
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1260
|
+
callback.apply(null, values);
|
|
1261
|
+
}
|
|
1131
1262
|
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
return promiseLib.resolve(value);
|
|
1135
|
-
}
|
|
1263
|
+
return wrapFunc(f);
|
|
1264
|
+
};
|
|
1136
1265
|
|
|
1137
|
-
|
|
1138
|
-
|
|
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);
|
|
1139
1288
|
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
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");
|
|
1143
1294
|
}
|
|
1295
|
+
nextTick(function () {
|
|
1296
|
+
callback.apply(null, values);
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1144
1299
|
|
|
1145
|
-
|
|
1146
|
-
|
|
1300
|
+
return wrapFunc(f);
|
|
1301
|
+
};
|
|
1147
1302
|
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1303
|
+
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
|
+
function wrapFunc(f) {
|
|
1312
|
+
var proxy;
|
|
1313
|
+
var fakeInstance = function () {
|
|
1314
|
+
var firstArg, lastArg;
|
|
1152
1315
|
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
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
|
-
}
|
|
1316
|
+
if (arguments.length > 0) {
|
|
1317
|
+
firstArg = arguments[0];
|
|
1318
|
+
lastArg = arguments[arguments.length - 1];
|
|
1166
1319
|
}
|
|
1167
1320
|
|
|
1168
|
-
|
|
1169
|
-
|
|
1321
|
+
var callback =
|
|
1322
|
+
lastArg && typeof lastArg === "function" ? lastArg : undefined;
|
|
1170
1323
|
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1324
|
+
proxy.firstArg = firstArg;
|
|
1325
|
+
proxy.lastArg = lastArg;
|
|
1326
|
+
proxy.callback = callback;
|
|
1174
1327
|
|
|
1175
|
-
|
|
1176
|
-
return yieldInternal(true, slice(arguments));
|
|
1328
|
+
return f && f.apply(this, arguments);
|
|
1177
1329
|
};
|
|
1330
|
+
proxy = createProxy(fakeInstance, f || fakeInstance);
|
|
1178
1331
|
|
|
1179
|
-
|
|
1332
|
+
proxy.displayName = "fake";
|
|
1333
|
+
proxy.id = `fake#${uuid++}`;
|
|
1334
|
+
|
|
1335
|
+
return proxy;
|
|
1180
1336
|
}
|
|
1181
1337
|
|
|
1182
|
-
|
|
1338
|
+
/**
|
|
1339
|
+
* Returns an Error instance from the passed value, if the value is not
|
|
1340
|
+
* already an Error instance.
|
|
1341
|
+
*
|
|
1342
|
+
* @private
|
|
1343
|
+
* @param {*} value [description]
|
|
1344
|
+
* @returns {Error} [description]
|
|
1345
|
+
*/
|
|
1346
|
+
function getError(value) {
|
|
1347
|
+
return value instanceof Error ? value : new Error(value);
|
|
1348
|
+
}
|
|
1183
1349
|
|
|
1184
1350
|
},{"./proxy":15,"./util/core/next-tick":33,"@sinonjs/commons":46}],9:[function(require,module,exports){
|
|
1185
1351
|
|
|
@@ -3856,13 +4022,30 @@ module.exports = function extend(target, ...sources) {
|
|
|
3856
4022
|
if (prop === "name" && !destOwnPropertyDescriptor.writable) {
|
|
3857
4023
|
return;
|
|
3858
4024
|
}
|
|
3859
|
-
|
|
3860
|
-
Object.defineProperty(dest, prop, {
|
|
4025
|
+
const descriptors = {
|
|
3861
4026
|
configurable: sourceOwnPropertyDescriptor.configurable,
|
|
3862
4027
|
enumerable: sourceOwnPropertyDescriptor.enumerable,
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
4028
|
+
};
|
|
4029
|
+
/*
|
|
4030
|
+
if the sorce has an Accessor property copy over the accessor functions (get and set)
|
|
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);
|
|
3866
4049
|
}
|
|
3867
4050
|
);
|
|
3868
4051
|
};
|
|
@@ -4914,11 +5097,11 @@ var globalObject = require("@sinonjs/commons").global;
|
|
|
4914
5097
|
* Configuration object for the `install` method.
|
|
4915
5098
|
*
|
|
4916
5099
|
* @typedef {object} Config
|
|
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)
|
|
5100
|
+
* @property {number|Date} [now] a number (in milliseconds) or a Date object (default epoch)
|
|
5101
|
+
* @property {string[]} [toFake] names of the methods that should be faked.
|
|
5102
|
+
* @property {number} [loopLimit] the maximum number of timers that will be run when calling runAll()
|
|
5103
|
+
* @property {boolean} [shouldAdvanceTime] tells FakeTimers to increment mocked time automatically (default false)
|
|
5104
|
+
* @property {number} [advanceTimeDelta] increment mocked time every <<advanceTimeDelta>> ms (default: 20ms)
|
|
4922
5105
|
*/
|
|
4923
5106
|
|
|
4924
5107
|
/**
|
|
@@ -5480,7 +5663,6 @@ function withGlobal(_global) {
|
|
|
5480
5663
|
}
|
|
5481
5664
|
|
|
5482
5665
|
function hijackMethod(target, method, clock) {
|
|
5483
|
-
var prop;
|
|
5484
5666
|
clock[method].hadOwnProperty = Object.prototype.hasOwnProperty.call(
|
|
5485
5667
|
target,
|
|
5486
5668
|
method
|
|
@@ -5520,11 +5702,10 @@ function withGlobal(_global) {
|
|
|
5520
5702
|
return clock[method].apply(clock, arguments);
|
|
5521
5703
|
};
|
|
5522
5704
|
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
}
|
|
5705
|
+
Object.defineProperties(
|
|
5706
|
+
target[method],
|
|
5707
|
+
Object.getOwnPropertyDescriptors(clock[method])
|
|
5708
|
+
);
|
|
5528
5709
|
}
|
|
5529
5710
|
|
|
5530
5711
|
target[method].clock = clock;
|
|
@@ -5602,8 +5783,8 @@ function withGlobal(_global) {
|
|
|
5602
5783
|
var originalSetTimeout = _global.setImmediate || _global.setTimeout;
|
|
5603
5784
|
|
|
5604
5785
|
/**
|
|
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()
|
|
5786
|
+
* @param {Date|number} [start] the system time - non-integer values are floored
|
|
5787
|
+
* @param {number} [loopLimit] maximum number of timers that will be run when calling runAll()
|
|
5607
5788
|
* @returns {Clock}
|
|
5608
5789
|
*/
|
|
5609
5790
|
function createClock(start, loopLimit) {
|
|
@@ -6180,7 +6361,7 @@ function withGlobal(_global) {
|
|
|
6180
6361
|
/* eslint-disable complexity */
|
|
6181
6362
|
|
|
6182
6363
|
/**
|
|
6183
|
-
* @param {Config=} config Optional config
|
|
6364
|
+
* @param {Config=} [config] Optional config
|
|
6184
6365
|
* @returns {Clock}
|
|
6185
6366
|
*/
|
|
6186
6367
|
function install(config) {
|
|
@@ -18292,7 +18473,7 @@ var _arrayIncludes = function (IS_INCLUDES) {
|
|
|
18292
18473
|
};
|
|
18293
18474
|
|
|
18294
18475
|
var _core = createCommonjsModule(function (module) {
|
|
18295
|
-
var core = module.exports = { version: '2.6.
|
|
18476
|
+
var core = module.exports = { version: '2.6.12' };
|
|
18296
18477
|
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
|
18297
18478
|
});
|
|
18298
18479
|
_core.version;
|
|
@@ -18317,7 +18498,7 @@ var store = _global[SHARED] || (_global[SHARED] = {});
|
|
|
18317
18498
|
})('versions', []).push({
|
|
18318
18499
|
version: _core.version,
|
|
18319
18500
|
mode: 'pure' ,
|
|
18320
|
-
copyright: '©
|
|
18501
|
+
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
|
18321
18502
|
});
|
|
18322
18503
|
});
|
|
18323
18504
|
|
|
@@ -18556,15 +18737,15 @@ var keys = keys$1;
|
|
|
18556
18737
|
function setupCropduster(hooks) {
|
|
18557
18738
|
var stub;
|
|
18558
18739
|
hooks.beforeEach(function cropdusterBefore(assert) {
|
|
18559
|
-
stub = sinon$1.stub(CD__default[
|
|
18740
|
+
stub = sinon$1.stub(CD__default["default"]); // eslint-disable-next-line
|
|
18560
18741
|
|
|
18561
18742
|
assert.CD = stub;
|
|
18562
18743
|
this.CD = stub;
|
|
18563
18744
|
});
|
|
18564
18745
|
hooks.afterEach(function () {
|
|
18565
|
-
keys(CD__default[
|
|
18566
|
-
if (CD__default[
|
|
18567
|
-
CD__default[
|
|
18746
|
+
keys(CD__default["default"]).forEach(function (prop) {
|
|
18747
|
+
if (CD__default["default"][prop] && typeof CD__default["default"][prop].restore === 'function') {
|
|
18748
|
+
CD__default["default"][prop].restore();
|
|
18568
18749
|
}
|
|
18569
18750
|
});
|
|
18570
18751
|
});
|
|
@@ -19478,6 +19659,44 @@ function settled() {
|
|
|
19478
19659
|
});
|
|
19479
19660
|
}
|
|
19480
19661
|
|
|
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
|
+
|
|
19481
19700
|
var classCallCheck = createCommonjsModule(function (module) {
|
|
19482
19701
|
function _classCallCheck(instance, Constructor) {
|
|
19483
19702
|
if (!(instance instanceof Constructor)) {
|
|
@@ -19485,8 +19704,7 @@ function _classCallCheck(instance, Constructor) {
|
|
|
19485
19704
|
}
|
|
19486
19705
|
}
|
|
19487
19706
|
|
|
19488
|
-
module.exports = _classCallCheck;
|
|
19489
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19707
|
+
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19490
19708
|
});
|
|
19491
19709
|
|
|
19492
19710
|
var _classCallCheck = unwrapExports(classCallCheck);
|
|
@@ -19500,8 +19718,7 @@ function _assertThisInitialized(self) {
|
|
|
19500
19718
|
return self;
|
|
19501
19719
|
}
|
|
19502
19720
|
|
|
19503
|
-
module.exports = _assertThisInitialized;
|
|
19504
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19721
|
+
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19505
19722
|
});
|
|
19506
19723
|
|
|
19507
19724
|
var _assertThisInitialized = unwrapExports(assertThisInitialized);
|
|
@@ -19509,9 +19726,9 @@ var _assertThisInitialized = unwrapExports(assertThisInitialized);
|
|
|
19509
19726
|
// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
|
|
19510
19727
|
_export(_export.S, 'Object', { create: _objectCreate });
|
|
19511
19728
|
|
|
19512
|
-
var $Object$
|
|
19729
|
+
var $Object$2 = _core.Object;
|
|
19513
19730
|
var create$1 = function create(P, D) {
|
|
19514
|
-
return $Object$
|
|
19731
|
+
return $Object$2.create(P, D);
|
|
19515
19732
|
};
|
|
19516
19733
|
|
|
19517
19734
|
var create = create$1;
|
|
@@ -19576,14 +19793,11 @@ function _setPrototypeOf(o, p) {
|
|
|
19576
19793
|
module.exports = _setPrototypeOf = setPrototypeOf$1 || function _setPrototypeOf(o, p) {
|
|
19577
19794
|
o.__proto__ = p;
|
|
19578
19795
|
return o;
|
|
19579
|
-
};
|
|
19580
|
-
|
|
19581
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19796
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19582
19797
|
return _setPrototypeOf(o, p);
|
|
19583
19798
|
}
|
|
19584
19799
|
|
|
19585
|
-
module.exports = _setPrototypeOf;
|
|
19586
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19800
|
+
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19587
19801
|
});
|
|
19588
19802
|
|
|
19589
19803
|
unwrapExports(setPrototypeOf);
|
|
@@ -19601,11 +19815,15 @@ function _inherits(subClass, superClass) {
|
|
|
19601
19815
|
configurable: true
|
|
19602
19816
|
}
|
|
19603
19817
|
});
|
|
19818
|
+
|
|
19819
|
+
defineProperty$2(subClass, "prototype", {
|
|
19820
|
+
writable: false
|
|
19821
|
+
});
|
|
19822
|
+
|
|
19604
19823
|
if (superClass) setPrototypeOf(subClass, superClass);
|
|
19605
19824
|
}
|
|
19606
19825
|
|
|
19607
|
-
module.exports = _inherits;
|
|
19608
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
19826
|
+
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
19609
19827
|
});
|
|
19610
19828
|
|
|
19611
19829
|
var _inherits = unwrapExports(inherits);
|
|
@@ -19677,10 +19895,10 @@ var _wksExt = {
|
|
|
19677
19895
|
f: f$3
|
|
19678
19896
|
};
|
|
19679
19897
|
|
|
19680
|
-
var defineProperty$
|
|
19898
|
+
var defineProperty$1 = _objectDp.f;
|
|
19681
19899
|
var _wksDefine = function (name) {
|
|
19682
19900
|
var $Symbol = _core.Symbol || (_core.Symbol = {} );
|
|
19683
|
-
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$
|
|
19901
|
+
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty$1($Symbol, name, { value: _wksExt.f(name) });
|
|
19684
19902
|
};
|
|
19685
19903
|
|
|
19686
19904
|
var f$2 = Object.getOwnPropertySymbols;
|
|
@@ -20009,25 +20227,14 @@ var _typeof_1 = createCommonjsModule(function (module) {
|
|
|
20009
20227
|
function _typeof(obj) {
|
|
20010
20228
|
"@babel/helpers - typeof";
|
|
20011
20229
|
|
|
20012
|
-
|
|
20013
|
-
|
|
20014
|
-
|
|
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);
|
|
20230
|
+
return (module.exports = _typeof = "function" == typeof symbol && "symbol" == typeof iterator ? function (obj) {
|
|
20231
|
+
return typeof obj;
|
|
20232
|
+
} : function (obj) {
|
|
20233
|
+
return obj && "function" == typeof symbol && obj.constructor === symbol && obj !== symbol.prototype ? "symbol" : typeof obj;
|
|
20234
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
20027
20235
|
}
|
|
20028
20236
|
|
|
20029
|
-
module.exports = _typeof;
|
|
20030
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20237
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20031
20238
|
});
|
|
20032
20239
|
|
|
20033
20240
|
unwrapExports(_typeof_1);
|
|
@@ -20040,13 +20247,14 @@ var _typeof = _typeof_1["default"];
|
|
|
20040
20247
|
function _possibleConstructorReturn(self, call) {
|
|
20041
20248
|
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
20042
20249
|
return call;
|
|
20250
|
+
} else if (call !== void 0) {
|
|
20251
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
20043
20252
|
}
|
|
20044
20253
|
|
|
20045
20254
|
return assertThisInitialized(self);
|
|
20046
20255
|
}
|
|
20047
20256
|
|
|
20048
|
-
module.exports = _possibleConstructorReturn;
|
|
20049
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20257
|
+
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20050
20258
|
});
|
|
20051
20259
|
|
|
20052
20260
|
var _possibleConstructorReturn = unwrapExports(possibleConstructorReturn);
|
|
@@ -20069,31 +20277,19 @@ var getPrototypeOf = createCommonjsModule(function (module) {
|
|
|
20069
20277
|
function _getPrototypeOf(o) {
|
|
20070
20278
|
module.exports = _getPrototypeOf = setPrototypeOf$1 ? getPrototypeOf$1 : function _getPrototypeOf(o) {
|
|
20071
20279
|
return o.__proto__ || getPrototypeOf$1(o);
|
|
20072
|
-
};
|
|
20073
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20280
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20074
20281
|
return _getPrototypeOf(o);
|
|
20075
20282
|
}
|
|
20076
20283
|
|
|
20077
|
-
module.exports = _getPrototypeOf;
|
|
20078
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20284
|
+
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20079
20285
|
});
|
|
20080
20286
|
|
|
20081
20287
|
var _getPrototypeOf = unwrapExports(getPrototypeOf);
|
|
20082
20288
|
|
|
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
|
-
|
|
20093
20289
|
var defineProperty = createCommonjsModule(function (module) {
|
|
20094
20290
|
function _defineProperty(obj, key, value) {
|
|
20095
20291
|
if (key in obj) {
|
|
20096
|
-
defineProperty$
|
|
20292
|
+
defineProperty$2(obj, key, {
|
|
20097
20293
|
value: value,
|
|
20098
20294
|
enumerable: true,
|
|
20099
20295
|
configurable: true,
|
|
@@ -20106,8 +20302,7 @@ function _defineProperty(obj, key, value) {
|
|
|
20106
20302
|
return obj;
|
|
20107
20303
|
}
|
|
20108
20304
|
|
|
20109
|
-
module.exports = _defineProperty;
|
|
20110
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20305
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20111
20306
|
});
|
|
20112
20307
|
|
|
20113
20308
|
var _defineProperty = unwrapExports(defineProperty);
|
|
@@ -20149,8 +20344,7 @@ function _asyncToGenerator(fn) {
|
|
|
20149
20344
|
};
|
|
20150
20345
|
}
|
|
20151
20346
|
|
|
20152
|
-
module.exports = _asyncToGenerator;
|
|
20153
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
20347
|
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
20154
20348
|
});
|
|
20155
20349
|
|
|
20156
20350
|
var _asyncToGenerator = unwrapExports(asyncToGenerator);
|
|
@@ -20243,9 +20437,9 @@ var runtime = (function (exports) {
|
|
|
20243
20437
|
// This is a polyfill for %IteratorPrototype% for environments that
|
|
20244
20438
|
// don't natively support it.
|
|
20245
20439
|
var IteratorPrototype = {};
|
|
20246
|
-
IteratorPrototype
|
|
20440
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
20247
20441
|
return this;
|
|
20248
|
-
};
|
|
20442
|
+
});
|
|
20249
20443
|
|
|
20250
20444
|
var getProto = Object.getPrototypeOf;
|
|
20251
20445
|
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
@@ -20259,8 +20453,9 @@ var runtime = (function (exports) {
|
|
|
20259
20453
|
|
|
20260
20454
|
var Gp = GeneratorFunctionPrototype.prototype =
|
|
20261
20455
|
Generator.prototype = Object.create(IteratorPrototype);
|
|
20262
|
-
GeneratorFunction.prototype =
|
|
20263
|
-
|
|
20456
|
+
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
|
20457
|
+
define(Gp, "constructor", GeneratorFunctionPrototype);
|
|
20458
|
+
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
|
20264
20459
|
GeneratorFunction.displayName = define(
|
|
20265
20460
|
GeneratorFunctionPrototype,
|
|
20266
20461
|
toStringTagSymbol,
|
|
@@ -20374,9 +20569,9 @@ var runtime = (function (exports) {
|
|
|
20374
20569
|
}
|
|
20375
20570
|
|
|
20376
20571
|
defineIteratorMethods(AsyncIterator.prototype);
|
|
20377
|
-
AsyncIterator.prototype
|
|
20572
|
+
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
20378
20573
|
return this;
|
|
20379
|
-
};
|
|
20574
|
+
});
|
|
20380
20575
|
exports.AsyncIterator = AsyncIterator;
|
|
20381
20576
|
|
|
20382
20577
|
// Note that simple async functions are implemented on top of
|
|
@@ -20569,13 +20764,13 @@ var runtime = (function (exports) {
|
|
|
20569
20764
|
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
20570
20765
|
// object to not be returned from this call. This ensures that doesn't happen.
|
|
20571
20766
|
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
20572
|
-
Gp
|
|
20767
|
+
define(Gp, iteratorSymbol, function() {
|
|
20573
20768
|
return this;
|
|
20574
|
-
};
|
|
20769
|
+
});
|
|
20575
20770
|
|
|
20576
|
-
Gp
|
|
20771
|
+
define(Gp, "toString", function() {
|
|
20577
20772
|
return "[object Generator]";
|
|
20578
|
-
};
|
|
20773
|
+
});
|
|
20579
20774
|
|
|
20580
20775
|
function pushTryEntry(locs) {
|
|
20581
20776
|
var entry = { tryLoc: locs[0] };
|
|
@@ -20894,14 +21089,19 @@ try {
|
|
|
20894
21089
|
} catch (accidentalStrictMode) {
|
|
20895
21090
|
// This module should not be running in strict mode, so the above
|
|
20896
21091
|
// assignment should always work unless something is misconfigured. Just
|
|
20897
|
-
// in case runtime.js accidentally runs in strict mode,
|
|
21092
|
+
// in case runtime.js accidentally runs in strict mode, in modern engines
|
|
21093
|
+
// we can explicitly access globalThis. In older engines we can escape
|
|
20898
21094
|
// strict mode using a global Function call. This could conceivably fail
|
|
20899
21095
|
// if a Content Security Policy forbids using Function, but in that case
|
|
20900
21096
|
// the proper solution is to fix the accidental strict mode problem. If
|
|
20901
21097
|
// you've misconfigured your bundler to force strict mode and applied a
|
|
20902
21098
|
// CSP to forbid Function, and you're not willing to fix either of those
|
|
20903
21099
|
// problems, please detail your unique predicament in a GitHub issue.
|
|
20904
|
-
|
|
21100
|
+
if (typeof globalThis === "object") {
|
|
21101
|
+
globalThis.regeneratorRuntime = runtime;
|
|
21102
|
+
} else {
|
|
21103
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
21104
|
+
}
|
|
20905
21105
|
}
|
|
20906
21106
|
});
|
|
20907
21107
|
|
|
@@ -21018,7 +21218,8 @@ function setupApp(AppClass) {
|
|
|
21018
21218
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
21019
21219
|
|
|
21020
21220
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !construct) return false; if (construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21021
|
-
var
|
|
21221
|
+
var TEST_CONTAINER_ID = 'testing-container';
|
|
21222
|
+
var TEST_IFRAME_DOM = "\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"keywords\" content=\"Cats and sometimes Turkeys\" />\n <meta name=\"author\" content=\"Millie\" />\n <script>MI={}; MI.options='DELETE ME!';</script>\n <style type=\"text/css\"></style>\n <base href=\"//cartridges-should-not-be-removed/\" >\n </head>\n <body style=\"margin: 8px\">\n <div id=\"purple\"><p>PURPLE</p></div>\n <div id=\"react-root\"></div>\n </body>\n </html>";
|
|
21022
21223
|
var CONTAINER_ELEMENT;
|
|
21023
21224
|
var IFRAME_ROOT;
|
|
21024
21225
|
|
|
@@ -21037,7 +21238,7 @@ function _createIframe() {
|
|
|
21037
21238
|
iframe.id = 'test-iframe';
|
|
21038
21239
|
iframe.width = '500px';
|
|
21039
21240
|
iframe.height = '300px';
|
|
21040
|
-
iframe.srcdoc =
|
|
21241
|
+
iframe.srcdoc = TEST_IFRAME_DOM;
|
|
21041
21242
|
container.appendChild(iframe);
|
|
21042
21243
|
iframe.addEventListener('load', function () {
|
|
21043
21244
|
var root = iframe.contentWindow.document.getElementById('react-root');
|
|
@@ -21068,8 +21269,8 @@ function _createTestContainer() {
|
|
|
21068
21269
|
case 0:
|
|
21069
21270
|
container = document.createElement('div');
|
|
21070
21271
|
CONTAINER_ELEMENT = container;
|
|
21071
|
-
container.classNames =
|
|
21072
|
-
container.id =
|
|
21272
|
+
container.classNames = TEST_CONTAINER_ID;
|
|
21273
|
+
container.id = TEST_CONTAINER_ID;
|
|
21073
21274
|
container.style.background = 'white';
|
|
21074
21275
|
container.style.position = 'fixed';
|
|
21075
21276
|
container.style.width = '500px';
|
|
@@ -21196,10 +21397,10 @@ function render(testJsx) {
|
|
|
21196
21397
|
return _this;
|
|
21197
21398
|
}
|
|
21198
21399
|
|
|
21199
|
-
return ErrorBoundary;
|
|
21200
|
-
}(React__default[
|
|
21400
|
+
return _createClass(ErrorBoundary);
|
|
21401
|
+
}(React__default["default"].Component);
|
|
21201
21402
|
|
|
21202
|
-
ReactDOM__default[
|
|
21403
|
+
ReactDOM__default["default"].render( /*#__PURE__*/React__default["default"].createElement(ErrorBoundary, null), element, function () {
|
|
21203
21404
|
return setTimeout(resolve, 0);
|
|
21204
21405
|
});
|
|
21205
21406
|
});
|
|
@@ -21404,9 +21605,9 @@ var TagDefaults = {
|
|
|
21404
21605
|
overflow: null
|
|
21405
21606
|
};
|
|
21406
21607
|
|
|
21407
|
-
function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object);
|
|
21608
|
+
function ownKeys(object, enumerableOnly) { var keys = keys$1(object); if (getOwnPropertySymbols) { var symbols = getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21408
21609
|
|
|
21409
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
21610
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : getOwnPropertyDescriptors ? defineProperties(target, getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { defineProperty$2(target, key, getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21410
21611
|
var makeTag = function makeTag(tagData) {
|
|
21411
21612
|
return _objectSpread(_objectSpread({}, TagDefaults), tagData);
|
|
21412
21613
|
};
|
|
@@ -21466,6 +21667,8 @@ var makeDynamicRichTextTag = function makeDynamicRichTextTag(dynamicProperty) {
|
|
|
21466
21667
|
})], tagOptions);
|
|
21467
21668
|
};
|
|
21468
21669
|
|
|
21670
|
+
exports.TEST_CONTAINER_ID = TEST_CONTAINER_ID;
|
|
21671
|
+
exports.TEST_IFRAME_DOM = TEST_IFRAME_DOM;
|
|
21469
21672
|
exports.makeDynamicImageTag = makeDynamicImageTag;
|
|
21470
21673
|
exports.makeDynamicProperty = makeDynamicProperty;
|
|
21471
21674
|
exports.makeDynamicRichTextTag = makeDynamicRichTextTag;
|