@wix/bex-utils 2.61.0 → 2.63.0
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/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js +41 -27
- package/@wix/bex-bundled-mini-essentials/dist/cjs/bex-bundled-mini-essentials.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js +42 -28
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/http-client/testkit/client.js.map +1 -1
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js +42 -28
- package/@wix/bex-bundled-mini-essentials/dist/cjs/exports/testkit/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1027,9 +1027,9 @@ var require_buildURL = __commonJS({
|
|
|
1027
1027
|
}
|
|
1028
1028
|
});
|
|
1029
1029
|
|
|
1030
|
-
// ../../node_modules/
|
|
1030
|
+
// ../../node_modules/ms/index.js
|
|
1031
1031
|
var require_ms = __commonJS({
|
|
1032
|
-
"../../node_modules/
|
|
1032
|
+
"../../node_modules/ms/index.js"(exports2, module2) {
|
|
1033
1033
|
"use strict";
|
|
1034
1034
|
var s = 1e3;
|
|
1035
1035
|
var m = s * 60;
|
|
@@ -1248,50 +1248,64 @@ var require_common = __commonJS({
|
|
|
1248
1248
|
createDebug.namespaces = namespaces;
|
|
1249
1249
|
createDebug.names = [];
|
|
1250
1250
|
createDebug.skips = [];
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1251
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
1252
|
+
for (const ns of split) {
|
|
1253
|
+
if (ns[0] === "-") {
|
|
1254
|
+
createDebug.skips.push(ns.slice(1));
|
|
1255
|
+
} else {
|
|
1256
|
+
createDebug.names.push(ns);
|
|
1257
1257
|
}
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
function matchesTemplate(search, template) {
|
|
1261
|
+
let searchIndex = 0;
|
|
1262
|
+
let templateIndex = 0;
|
|
1263
|
+
let starIndex = -1;
|
|
1264
|
+
let matchIndex = 0;
|
|
1265
|
+
while (searchIndex < search.length) {
|
|
1266
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) {
|
|
1267
|
+
if (template[templateIndex] === "*") {
|
|
1268
|
+
starIndex = templateIndex;
|
|
1269
|
+
matchIndex = searchIndex;
|
|
1270
|
+
templateIndex++;
|
|
1271
|
+
} else {
|
|
1272
|
+
searchIndex++;
|
|
1273
|
+
templateIndex++;
|
|
1274
|
+
}
|
|
1275
|
+
} else if (starIndex !== -1) {
|
|
1276
|
+
templateIndex = starIndex + 1;
|
|
1277
|
+
matchIndex++;
|
|
1278
|
+
searchIndex = matchIndex;
|
|
1261
1279
|
} else {
|
|
1262
|
-
|
|
1280
|
+
return false;
|
|
1263
1281
|
}
|
|
1264
1282
|
}
|
|
1283
|
+
while (templateIndex < template.length && template[templateIndex] === "*") {
|
|
1284
|
+
templateIndex++;
|
|
1285
|
+
}
|
|
1286
|
+
return templateIndex === template.length;
|
|
1265
1287
|
}
|
|
1266
1288
|
function disable() {
|
|
1267
1289
|
const namespaces = [
|
|
1268
|
-
...createDebug.names
|
|
1269
|
-
...createDebug.skips.map(
|
|
1290
|
+
...createDebug.names,
|
|
1291
|
+
...createDebug.skips.map((namespace) => "-" + namespace)
|
|
1270
1292
|
].join(",");
|
|
1271
1293
|
createDebug.enable("");
|
|
1272
1294
|
return namespaces;
|
|
1273
1295
|
}
|
|
1274
1296
|
function enabled(name) {
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
}
|
|
1278
|
-
let i;
|
|
1279
|
-
let len;
|
|
1280
|
-
for (i = 0, len = createDebug.skips.length; i < len; i++) {
|
|
1281
|
-
if (createDebug.skips[i].test(name)) {
|
|
1297
|
+
for (const skip of createDebug.skips) {
|
|
1298
|
+
if (matchesTemplate(name, skip)) {
|
|
1282
1299
|
return false;
|
|
1283
1300
|
}
|
|
1284
1301
|
}
|
|
1285
|
-
for (
|
|
1286
|
-
if (
|
|
1302
|
+
for (const ns of createDebug.names) {
|
|
1303
|
+
if (matchesTemplate(name, ns)) {
|
|
1287
1304
|
return true;
|
|
1288
1305
|
}
|
|
1289
1306
|
}
|
|
1290
1307
|
return false;
|
|
1291
1308
|
}
|
|
1292
|
-
function toNamespace(regexp) {
|
|
1293
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, "*");
|
|
1294
|
-
}
|
|
1295
1309
|
function coerce(val) {
|
|
1296
1310
|
if (val instanceof Error) {
|
|
1297
1311
|
return val.stack || val.message;
|
|
@@ -1453,7 +1467,7 @@ var require_browser = __commonJS({
|
|
|
1453
1467
|
function load() {
|
|
1454
1468
|
let r;
|
|
1455
1469
|
try {
|
|
1456
|
-
r = exports2.storage.getItem("debug");
|
|
1470
|
+
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
1457
1471
|
} catch (error) {
|
|
1458
1472
|
}
|
|
1459
1473
|
if (!r && typeof process !== "undefined" && "env" in process) {
|