@next-core/brick-kit 2.117.14 → 2.117.15
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.esm.js
CHANGED
|
@@ -583,7 +583,7 @@ var InstanceApi_postSearchV3 = /*#__PURE__*/function () {
|
|
|
583
583
|
};
|
|
584
584
|
}();
|
|
585
585
|
|
|
586
|
-
function supply(attemptToVisitGlobals, providedGlobalVariables) {
|
|
586
|
+
function supply(attemptToVisitGlobals, providedGlobalVariables, mock) {
|
|
587
587
|
var globalVariables = _objectSpread({}, providedGlobalVariables); // Allow limited browser builtin values.
|
|
588
588
|
|
|
589
589
|
|
|
@@ -591,7 +591,7 @@ function supply(attemptToVisitGlobals, providedGlobalVariables) {
|
|
|
591
591
|
|
|
592
592
|
for (var variableName of attemptToVisitGlobals) {
|
|
593
593
|
if (!Object.prototype.hasOwnProperty.call(globalVariables, variableName)) {
|
|
594
|
-
var variable = supplyIndividual(variableName);
|
|
594
|
+
var variable = supplyIndividual(variableName, mock);
|
|
595
595
|
|
|
596
596
|
if (variable !== undefined) {
|
|
597
597
|
globalVariables[variableName] = variable;
|
|
@@ -619,14 +619,14 @@ var shouldOmitInLodash = new Set([// Omit all mutable methods from lodash.
|
|
|
619
619
|
var shouldOmitInMoment = new Set(["lang", "langData", "locale", "localeData", "defineLocale", "updateLocale", "updateOffset"]);
|
|
620
620
|
var allowedGlobalObjects = new Set(["Array", "Boolean", "Date", "Infinity", "JSON", "Math", "NaN", "Number", "String", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "isFinite", "isNaN", "parseFloat", "parseInt", "Map", "Set", "URLSearchParams", "WeakMap", "WeakSet", "atob", "btoa"]);
|
|
621
621
|
|
|
622
|
-
function supplyIndividual(variableName) {
|
|
622
|
+
function supplyIndividual(variableName, mock) {
|
|
623
623
|
switch (variableName) {
|
|
624
624
|
case "Object":
|
|
625
625
|
// Do not allow mutable methods like `Object.assign`.
|
|
626
626
|
return delegateMethods(Object, ["entries", "fromEntries", "keys", "values"]);
|
|
627
627
|
|
|
628
628
|
case "_":
|
|
629
|
-
return Object.fromEntries(Object.entries(lodash).filter(entry => !shouldOmitInLodash.has(entry[0])));
|
|
629
|
+
return Object.fromEntries(Object.entries(lodash).filter(entry => !shouldOmitInLodash.has(entry[0])).concat(mock ? [["uniqueId", prefix => "".concat(prefix !== null && prefix !== void 0 ? prefix : "", "42")]] : []));
|
|
630
630
|
|
|
631
631
|
case "moment":
|
|
632
632
|
return Object.assign(function () {
|
|
@@ -1688,7 +1688,7 @@ function StoryboardFunctionRegistryFactory() {
|
|
|
1688
1688
|
app: currentApp,
|
|
1689
1689
|
storyboardFunctions,
|
|
1690
1690
|
isStoryboardFunction: true
|
|
1691
|
-
})),
|
|
1691
|
+
}), !!collectCoverage),
|
|
1692
1692
|
hooks: collector && {
|
|
1693
1693
|
beforeEvaluate: collector.beforeEvaluate,
|
|
1694
1694
|
beforeCall: collector.beforeCall,
|