@wix/create-app 0.0.96 → 0.0.98
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/build/index.js
CHANGED
|
@@ -17572,6 +17572,7 @@ var require_re = __commonJS({
|
|
|
17572
17572
|
var re = exports.re = [];
|
|
17573
17573
|
var safeRe = exports.safeRe = [];
|
|
17574
17574
|
var src = exports.src = [];
|
|
17575
|
+
var safeSrc = exports.safeSrc = [];
|
|
17575
17576
|
var t3 = exports.t = {};
|
|
17576
17577
|
var R = 0;
|
|
17577
17578
|
var LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
@@ -17592,6 +17593,7 @@ var require_re = __commonJS({
|
|
|
17592
17593
|
debug3(name, index, value2);
|
|
17593
17594
|
t3[name] = index;
|
|
17594
17595
|
src[index] = value2;
|
|
17596
|
+
safeSrc[index] = safe;
|
|
17595
17597
|
re[index] = new RegExp(value2, isGlobal ? "g" : void 0);
|
|
17596
17598
|
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
17597
17599
|
};
|
|
@@ -17694,7 +17696,7 @@ var require_semver = __commonJS({
|
|
|
17694
17696
|
init_esm_shims();
|
|
17695
17697
|
var debug3 = require_debug2();
|
|
17696
17698
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants3();
|
|
17697
|
-
var { safeRe: re, t: t3 } = require_re();
|
|
17699
|
+
var { safeRe: re, safeSrc: src, t: t3 } = require_re();
|
|
17698
17700
|
var parseOptions = require_parse_options();
|
|
17699
17701
|
var { compareIdentifiers } = require_identifiers();
|
|
17700
17702
|
var SemVer = class _SemVer {
|
|
@@ -17839,7 +17841,8 @@ var require_semver = __commonJS({
|
|
|
17839
17841
|
throw new Error("invalid increment argument: identifier is empty");
|
|
17840
17842
|
}
|
|
17841
17843
|
if (identifier) {
|
|
17842
|
-
const
|
|
17844
|
+
const r2 = new RegExp(`^${this.options.loose ? src[t3.PRERELEASELOOSE] : src[t3.PRERELEASE]}$`);
|
|
17845
|
+
const match22 = `-${identifier}`.match(r2);
|
|
17843
17846
|
if (!match22 || match22[1] !== identifier) {
|
|
17844
17847
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
17845
17848
|
}
|
|
@@ -39207,14 +39210,15 @@ var require_out4 = __commonJS({
|
|
|
39207
39210
|
}
|
|
39208
39211
|
});
|
|
39209
39212
|
|
|
39210
|
-
// ../../node_modules/ignore/index.js
|
|
39213
|
+
// ../../node_modules/globby/node_modules/ignore/index.js
|
|
39211
39214
|
var require_ignore = __commonJS({
|
|
39212
|
-
"../../node_modules/ignore/index.js"(exports, module2) {
|
|
39215
|
+
"../../node_modules/globby/node_modules/ignore/index.js"(exports, module2) {
|
|
39213
39216
|
"use strict";
|
|
39214
39217
|
init_esm_shims();
|
|
39215
39218
|
function makeArray(subject) {
|
|
39216
39219
|
return Array.isArray(subject) ? subject : [subject];
|
|
39217
39220
|
}
|
|
39221
|
+
var UNDEFINED = void 0;
|
|
39218
39222
|
var EMPTY = "";
|
|
39219
39223
|
var SPACE = " ";
|
|
39220
39224
|
var ESCAPE = "\\";
|
|
@@ -39224,13 +39228,17 @@ var require_ignore = __commonJS({
|
|
|
39224
39228
|
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
39225
39229
|
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
39226
39230
|
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
|
|
39231
|
+
var REGEX_TEST_TRAILING_SLASH = /\/$/;
|
|
39227
39232
|
var SLASH = "/";
|
|
39228
39233
|
var TMP_KEY_IGNORE = "node-ignore";
|
|
39229
39234
|
if (typeof Symbol !== "undefined") {
|
|
39230
39235
|
TMP_KEY_IGNORE = Symbol.for("node-ignore");
|
|
39231
39236
|
}
|
|
39232
39237
|
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
39233
|
-
var define2 = (object, key, value2) =>
|
|
39238
|
+
var define2 = (object, key, value2) => {
|
|
39239
|
+
Object.defineProperty(object, key, { value: value2 });
|
|
39240
|
+
return value2;
|
|
39241
|
+
};
|
|
39234
39242
|
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
39235
39243
|
var RETURN_FALSE = () => false;
|
|
39236
39244
|
var sanitizeRange = (range) => range.replace(
|
|
@@ -39243,7 +39251,7 @@ var require_ignore = __commonJS({
|
|
|
39243
39251
|
};
|
|
39244
39252
|
var REPLACERS = [
|
|
39245
39253
|
[
|
|
39246
|
-
//
|
|
39254
|
+
// Remove BOM
|
|
39247
39255
|
// TODO:
|
|
39248
39256
|
// Other similar zero-width characters?
|
|
39249
39257
|
/^\uFEFF/,
|
|
@@ -39258,7 +39266,7 @@ var require_ignore = __commonJS({
|
|
|
39258
39266
|
/((?:\\\\)*?)(\\?\s+)$/,
|
|
39259
39267
|
(_2, m1, m2) => m1 + (m2.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
39260
39268
|
],
|
|
39261
|
-
//
|
|
39269
|
+
// Replace (\ ) with ' '
|
|
39262
39270
|
// (\ ) -> ' '
|
|
39263
39271
|
// (\\ ) -> '\\ '
|
|
39264
39272
|
// (\\\ ) -> '\\ '
|
|
@@ -39387,55 +39395,147 @@ var require_ignore = __commonJS({
|
|
|
39387
39395
|
// 'js/' will not match 'a.js'
|
|
39388
39396
|
// 'js' will match 'a.js' and 'a.js/'
|
|
39389
39397
|
(match22) => /\/$/.test(match22) ? `${match22}$` : `${match22}(?=$|\\/$)`
|
|
39390
|
-
],
|
|
39391
|
-
// trailing wildcard
|
|
39392
|
-
[
|
|
39393
|
-
/(\^|\\\/)?\\\*$/,
|
|
39394
|
-
(_2, p1) => {
|
|
39395
|
-
const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
|
|
39396
|
-
return `${prefix}(?=$|\\/$)`;
|
|
39397
|
-
}
|
|
39398
39398
|
]
|
|
39399
39399
|
];
|
|
39400
|
-
var
|
|
39401
|
-
var
|
|
39402
|
-
|
|
39403
|
-
|
|
39404
|
-
|
|
39405
|
-
|
|
39406
|
-
|
|
39407
|
-
)
|
|
39408
|
-
|
|
39400
|
+
var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/;
|
|
39401
|
+
var MODE_IGNORE = "regex";
|
|
39402
|
+
var MODE_CHECK_IGNORE = "checkRegex";
|
|
39403
|
+
var UNDERSCORE = "_";
|
|
39404
|
+
var TRAILING_WILD_CARD_REPLACERS = {
|
|
39405
|
+
[MODE_IGNORE](_2, p1) {
|
|
39406
|
+
const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
|
|
39407
|
+
return `${prefix}(?=$|\\/$)`;
|
|
39408
|
+
},
|
|
39409
|
+
[MODE_CHECK_IGNORE](_2, p1) {
|
|
39410
|
+
const prefix = p1 ? `${p1}[^/]*` : "[^/]*";
|
|
39411
|
+
return `${prefix}(?=$|\\/$)`;
|
|
39409
39412
|
}
|
|
39410
|
-
return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
|
|
39411
39413
|
};
|
|
39414
|
+
var makeRegexPrefix = (pattern) => REPLACERS.reduce(
|
|
39415
|
+
(prev, [matcher3, replacer]) => prev.replace(matcher3, replacer.bind(pattern)),
|
|
39416
|
+
pattern
|
|
39417
|
+
);
|
|
39412
39418
|
var isString3 = (subject) => typeof subject === "string";
|
|
39413
39419
|
var checkPattern = (pattern) => pattern && isString3(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
39414
|
-
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
|
|
39420
|
+
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
39415
39421
|
var IgnoreRule = class {
|
|
39416
|
-
constructor(
|
|
39417
|
-
this.origin = origin;
|
|
39422
|
+
constructor(pattern, mark, body, ignoreCase, negative, prefix) {
|
|
39418
39423
|
this.pattern = pattern;
|
|
39424
|
+
this.mark = mark;
|
|
39419
39425
|
this.negative = negative;
|
|
39420
|
-
this
|
|
39426
|
+
define2(this, "body", body);
|
|
39427
|
+
define2(this, "ignoreCase", ignoreCase);
|
|
39428
|
+
define2(this, "regexPrefix", prefix);
|
|
39429
|
+
}
|
|
39430
|
+
get regex() {
|
|
39431
|
+
const key = UNDERSCORE + MODE_IGNORE;
|
|
39432
|
+
if (this[key]) {
|
|
39433
|
+
return this[key];
|
|
39434
|
+
}
|
|
39435
|
+
return this._make(MODE_IGNORE, key);
|
|
39436
|
+
}
|
|
39437
|
+
get checkRegex() {
|
|
39438
|
+
const key = UNDERSCORE + MODE_CHECK_IGNORE;
|
|
39439
|
+
if (this[key]) {
|
|
39440
|
+
return this[key];
|
|
39441
|
+
}
|
|
39442
|
+
return this._make(MODE_CHECK_IGNORE, key);
|
|
39443
|
+
}
|
|
39444
|
+
_make(mode, key) {
|
|
39445
|
+
const str = this.regexPrefix.replace(
|
|
39446
|
+
REGEX_REPLACE_TRAILING_WILDCARD,
|
|
39447
|
+
// It does not need to bind pattern
|
|
39448
|
+
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
39449
|
+
);
|
|
39450
|
+
const regex2 = this.ignoreCase ? new RegExp(str, "i") : new RegExp(str);
|
|
39451
|
+
return define2(this, key, regex2);
|
|
39421
39452
|
}
|
|
39422
39453
|
};
|
|
39423
|
-
var createRule = (
|
|
39424
|
-
|
|
39454
|
+
var createRule = ({
|
|
39455
|
+
pattern,
|
|
39456
|
+
mark
|
|
39457
|
+
}, ignoreCase) => {
|
|
39425
39458
|
let negative = false;
|
|
39426
|
-
|
|
39459
|
+
let body = pattern;
|
|
39460
|
+
if (body.indexOf("!") === 0) {
|
|
39427
39461
|
negative = true;
|
|
39428
|
-
|
|
39462
|
+
body = body.substr(1);
|
|
39429
39463
|
}
|
|
39430
|
-
|
|
39431
|
-
const
|
|
39464
|
+
body = body.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
39465
|
+
const regexPrefix = makeRegexPrefix(body);
|
|
39432
39466
|
return new IgnoreRule(
|
|
39433
|
-
origin,
|
|
39434
39467
|
pattern,
|
|
39468
|
+
mark,
|
|
39469
|
+
body,
|
|
39470
|
+
ignoreCase,
|
|
39435
39471
|
negative,
|
|
39436
|
-
|
|
39472
|
+
regexPrefix
|
|
39437
39473
|
);
|
|
39438
39474
|
};
|
|
39475
|
+
var RuleManager = class {
|
|
39476
|
+
constructor(ignoreCase) {
|
|
39477
|
+
this._ignoreCase = ignoreCase;
|
|
39478
|
+
this._rules = [];
|
|
39479
|
+
}
|
|
39480
|
+
_add(pattern) {
|
|
39481
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
39482
|
+
this._rules = this._rules.concat(pattern._rules._rules);
|
|
39483
|
+
this._added = true;
|
|
39484
|
+
return;
|
|
39485
|
+
}
|
|
39486
|
+
if (isString3(pattern)) {
|
|
39487
|
+
pattern = {
|
|
39488
|
+
pattern
|
|
39489
|
+
};
|
|
39490
|
+
}
|
|
39491
|
+
if (checkPattern(pattern.pattern)) {
|
|
39492
|
+
const rule = createRule(pattern, this._ignoreCase);
|
|
39493
|
+
this._added = true;
|
|
39494
|
+
this._rules.push(rule);
|
|
39495
|
+
}
|
|
39496
|
+
}
|
|
39497
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
39498
|
+
add(pattern) {
|
|
39499
|
+
this._added = false;
|
|
39500
|
+
makeArray(
|
|
39501
|
+
isString3(pattern) ? splitPattern(pattern) : pattern
|
|
39502
|
+
).forEach(this._add, this);
|
|
39503
|
+
return this._added;
|
|
39504
|
+
}
|
|
39505
|
+
// Test one single path without recursively checking parent directories
|
|
39506
|
+
//
|
|
39507
|
+
// - checkUnignored `boolean` whether should check if the path is unignored,
|
|
39508
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
39509
|
+
// path matching.
|
|
39510
|
+
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
|
|
39511
|
+
// @returns {TestResult} true if a file is ignored
|
|
39512
|
+
test(path8, checkUnignored, mode) {
|
|
39513
|
+
let ignored = false;
|
|
39514
|
+
let unignored = false;
|
|
39515
|
+
let matchedRule;
|
|
39516
|
+
this._rules.forEach((rule) => {
|
|
39517
|
+
const { negative } = rule;
|
|
39518
|
+
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
39519
|
+
return;
|
|
39520
|
+
}
|
|
39521
|
+
const matched = rule[mode].test(path8);
|
|
39522
|
+
if (!matched) {
|
|
39523
|
+
return;
|
|
39524
|
+
}
|
|
39525
|
+
ignored = !negative;
|
|
39526
|
+
unignored = negative;
|
|
39527
|
+
matchedRule = negative ? UNDEFINED : rule;
|
|
39528
|
+
});
|
|
39529
|
+
const ret = {
|
|
39530
|
+
ignored,
|
|
39531
|
+
unignored
|
|
39532
|
+
};
|
|
39533
|
+
if (matchedRule) {
|
|
39534
|
+
ret.rule = matchedRule;
|
|
39535
|
+
}
|
|
39536
|
+
return ret;
|
|
39537
|
+
}
|
|
39538
|
+
};
|
|
39439
39539
|
var throwError = (message, Ctor) => {
|
|
39440
39540
|
throw new Ctor(message);
|
|
39441
39541
|
};
|
|
@@ -39468,34 +39568,16 @@ var require_ignore = __commonJS({
|
|
|
39468
39568
|
allowRelativePaths = false
|
|
39469
39569
|
} = {}) {
|
|
39470
39570
|
define2(this, KEY_IGNORE, true);
|
|
39471
|
-
this._rules =
|
|
39472
|
-
this.
|
|
39473
|
-
this._allowRelativePaths = allowRelativePaths;
|
|
39571
|
+
this._rules = new RuleManager(ignoreCase);
|
|
39572
|
+
this._strictPathCheck = !allowRelativePaths;
|
|
39474
39573
|
this._initCache();
|
|
39475
39574
|
}
|
|
39476
39575
|
_initCache() {
|
|
39477
39576
|
this._ignoreCache = /* @__PURE__ */ Object.create(null);
|
|
39478
39577
|
this._testCache = /* @__PURE__ */ Object.create(null);
|
|
39479
39578
|
}
|
|
39480
|
-
_addPattern(pattern) {
|
|
39481
|
-
if (pattern && pattern[KEY_IGNORE]) {
|
|
39482
|
-
this._rules = this._rules.concat(pattern._rules);
|
|
39483
|
-
this._added = true;
|
|
39484
|
-
return;
|
|
39485
|
-
}
|
|
39486
|
-
if (checkPattern(pattern)) {
|
|
39487
|
-
const rule = createRule(pattern, this._ignoreCase);
|
|
39488
|
-
this._added = true;
|
|
39489
|
-
this._rules.push(rule);
|
|
39490
|
-
}
|
|
39491
|
-
}
|
|
39492
|
-
// @param {Array<string> | string | Ignore} pattern
|
|
39493
39579
|
add(pattern) {
|
|
39494
|
-
this.
|
|
39495
|
-
makeArray(
|
|
39496
|
-
isString3(pattern) ? splitPattern(pattern) : pattern
|
|
39497
|
-
).forEach(this._addPattern, this);
|
|
39498
|
-
if (this._added) {
|
|
39580
|
+
if (this._rules.add(pattern)) {
|
|
39499
39581
|
this._initCache();
|
|
39500
39582
|
}
|
|
39501
39583
|
return this;
|
|
@@ -39504,58 +39586,45 @@ var require_ignore = __commonJS({
|
|
|
39504
39586
|
addPattern(pattern) {
|
|
39505
39587
|
return this.add(pattern);
|
|
39506
39588
|
}
|
|
39507
|
-
// | ignored : unignored
|
|
39508
|
-
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
39509
|
-
// -------- | ------- | ------- | ------- | --------
|
|
39510
|
-
// 0 | TEST | TEST | SKIP | X
|
|
39511
|
-
// 1 | TESTIF | SKIP | TEST | X
|
|
39512
|
-
// - SKIP: always skip
|
|
39513
|
-
// - TEST: always test
|
|
39514
|
-
// - TESTIF: only test if checkUnignored
|
|
39515
|
-
// - X: that never happen
|
|
39516
|
-
// @param {boolean} whether should check if the path is unignored,
|
|
39517
|
-
// setting `checkUnignored` to `false` could reduce additional
|
|
39518
|
-
// path matching.
|
|
39519
|
-
// @returns {TestResult} true if a file is ignored
|
|
39520
|
-
_testOne(path8, checkUnignored) {
|
|
39521
|
-
let ignored = false;
|
|
39522
|
-
let unignored = false;
|
|
39523
|
-
this._rules.forEach((rule) => {
|
|
39524
|
-
const { negative } = rule;
|
|
39525
|
-
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
39526
|
-
return;
|
|
39527
|
-
}
|
|
39528
|
-
const matched = rule.regex.test(path8);
|
|
39529
|
-
if (matched) {
|
|
39530
|
-
ignored = !negative;
|
|
39531
|
-
unignored = negative;
|
|
39532
|
-
}
|
|
39533
|
-
});
|
|
39534
|
-
return {
|
|
39535
|
-
ignored,
|
|
39536
|
-
unignored
|
|
39537
|
-
};
|
|
39538
|
-
}
|
|
39539
39589
|
// @returns {TestResult}
|
|
39540
39590
|
_test(originalPath, cache3, checkUnignored, slices) {
|
|
39541
39591
|
const path8 = originalPath && checkPath.convert(originalPath);
|
|
39542
39592
|
checkPath(
|
|
39543
39593
|
path8,
|
|
39544
39594
|
originalPath,
|
|
39545
|
-
this.
|
|
39595
|
+
this._strictPathCheck ? throwError : RETURN_FALSE
|
|
39546
39596
|
);
|
|
39547
39597
|
return this._t(path8, cache3, checkUnignored, slices);
|
|
39548
39598
|
}
|
|
39599
|
+
checkIgnore(path8) {
|
|
39600
|
+
if (!REGEX_TEST_TRAILING_SLASH.test(path8)) {
|
|
39601
|
+
return this.test(path8);
|
|
39602
|
+
}
|
|
39603
|
+
const slices = path8.split(SLASH).filter(Boolean);
|
|
39604
|
+
slices.pop();
|
|
39605
|
+
if (slices.length) {
|
|
39606
|
+
const parent = this._t(
|
|
39607
|
+
slices.join(SLASH) + SLASH,
|
|
39608
|
+
this._testCache,
|
|
39609
|
+
true,
|
|
39610
|
+
slices
|
|
39611
|
+
);
|
|
39612
|
+
if (parent.ignored) {
|
|
39613
|
+
return parent;
|
|
39614
|
+
}
|
|
39615
|
+
}
|
|
39616
|
+
return this._rules.test(path8, false, MODE_CHECK_IGNORE);
|
|
39617
|
+
}
|
|
39549
39618
|
_t(path8, cache3, checkUnignored, slices) {
|
|
39550
39619
|
if (path8 in cache3) {
|
|
39551
39620
|
return cache3[path8];
|
|
39552
39621
|
}
|
|
39553
39622
|
if (!slices) {
|
|
39554
|
-
slices = path8.split(SLASH);
|
|
39623
|
+
slices = path8.split(SLASH).filter(Boolean);
|
|
39555
39624
|
}
|
|
39556
39625
|
slices.pop();
|
|
39557
39626
|
if (!slices.length) {
|
|
39558
|
-
return cache3[path8] = this.
|
|
39627
|
+
return cache3[path8] = this._rules.test(path8, checkUnignored, MODE_IGNORE);
|
|
39559
39628
|
}
|
|
39560
39629
|
const parent = this._t(
|
|
39561
39630
|
slices.join(SLASH) + SLASH,
|
|
@@ -39563,7 +39632,7 @@ var require_ignore = __commonJS({
|
|
|
39563
39632
|
checkUnignored,
|
|
39564
39633
|
slices
|
|
39565
39634
|
);
|
|
39566
|
-
return cache3[path8] = parent.ignored ? parent : this.
|
|
39635
|
+
return cache3[path8] = parent.ignored ? parent : this._rules.test(path8, checkUnignored, MODE_IGNORE);
|
|
39567
39636
|
}
|
|
39568
39637
|
ignores(path8) {
|
|
39569
39638
|
return this._test(path8, this._ignoreCache, false).ignored;
|
|
@@ -39581,18 +39650,18 @@ var require_ignore = __commonJS({
|
|
|
39581
39650
|
};
|
|
39582
39651
|
var factory = (options) => new Ignore(options);
|
|
39583
39652
|
var isPathValid = (path8) => checkPath(path8 && checkPath.convert(path8), path8, RETURN_FALSE);
|
|
39584
|
-
factory.isPathValid = isPathValid;
|
|
39585
|
-
factory.default = factory;
|
|
39586
|
-
module2.exports = factory;
|
|
39587
39653
|
if (
|
|
39588
39654
|
// Detect `process` so that it can run in browsers.
|
|
39589
39655
|
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
39590
39656
|
) {
|
|
39591
39657
|
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
39592
39658
|
checkPath.convert = makePosix;
|
|
39593
|
-
const
|
|
39594
|
-
checkPath.isNotRelative = (path8) =>
|
|
39659
|
+
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
39660
|
+
checkPath.isNotRelative = (path8) => REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path8) || isNotRelative(path8);
|
|
39595
39661
|
}
|
|
39662
|
+
module2.exports = factory;
|
|
39663
|
+
factory.default = factory;
|
|
39664
|
+
module2.exports.isPathValid = isPathValid;
|
|
39596
39665
|
}
|
|
39597
39666
|
});
|
|
39598
39667
|
|
|
@@ -48725,7 +48794,7 @@ var styles_default = styles2;
|
|
|
48725
48794
|
// ../../node_modules/ink/build/reconciler.js
|
|
48726
48795
|
if (process3.env["DEV"] === "true") {
|
|
48727
48796
|
try {
|
|
48728
|
-
await import("./devtools-
|
|
48797
|
+
await import("./devtools-JB2HYTEA.js");
|
|
48729
48798
|
} catch (error) {
|
|
48730
48799
|
if (error.code === "MODULE_NOT_FOUND") {
|
|
48731
48800
|
console.warn(`
|
|
@@ -57573,23 +57642,47 @@ function flattenParams(data, path8 = "") {
|
|
|
57573
57642
|
});
|
|
57574
57643
|
return params;
|
|
57575
57644
|
}
|
|
57645
|
+
function inflateParams(data) {
|
|
57646
|
+
const params = {};
|
|
57647
|
+
Object.entries(data).forEach(([key, value2]) => {
|
|
57648
|
+
let pathParams = params;
|
|
57649
|
+
const pathArray = key.split(".");
|
|
57650
|
+
const lastPath = pathArray.pop();
|
|
57651
|
+
pathArray.forEach((path8) => {
|
|
57652
|
+
if (!pathParams[path8]) {
|
|
57653
|
+
pathParams[path8] = {};
|
|
57654
|
+
}
|
|
57655
|
+
pathParams = pathParams[path8];
|
|
57656
|
+
});
|
|
57657
|
+
pathParams[lastPath] = value2;
|
|
57658
|
+
});
|
|
57659
|
+
return params;
|
|
57660
|
+
}
|
|
57576
57661
|
function resolvePath2(path8, key) {
|
|
57577
57662
|
return `${path8}${path8 ? "." : ""}${key}`;
|
|
57578
57663
|
}
|
|
57579
57664
|
function toURLSearchParams(params, isComplexRequest) {
|
|
57580
57665
|
const flatten2 = flattenParams(params);
|
|
57666
|
+
const complexParams = {};
|
|
57581
57667
|
const searchParams = Object.entries(flatten2).reduce((urlSearchParams, [key, value2]) => {
|
|
57582
57668
|
const keyParams = Array.isArray(value2) ? value2 : [value2];
|
|
57583
57669
|
keyParams.forEach((param) => {
|
|
57584
|
-
if (param === void 0 || param === null
|
|
57670
|
+
if (param === void 0 || param === null) {
|
|
57671
|
+
return;
|
|
57672
|
+
}
|
|
57673
|
+
if (Array.isArray(value2) && typeof param === "object") {
|
|
57674
|
+
complexParams[key] = value2;
|
|
57585
57675
|
return;
|
|
57586
57676
|
}
|
|
57677
|
+
if (!Array.isArray(value2)) {
|
|
57678
|
+
complexParams[key] = value2;
|
|
57679
|
+
}
|
|
57587
57680
|
urlSearchParams.append(key, param);
|
|
57588
57681
|
});
|
|
57589
57682
|
return urlSearchParams;
|
|
57590
57683
|
}, new URLSearchParams());
|
|
57591
57684
|
if (isComplexRequest) {
|
|
57592
|
-
searchParams.append(".r", encode(JSON.stringify(
|
|
57685
|
+
searchParams.append(".r", encode(JSON.stringify(inflateParams(complexParams)), true));
|
|
57593
57686
|
}
|
|
57594
57687
|
return searchParams;
|
|
57595
57688
|
}
|
|
@@ -57665,7 +57758,12 @@ init_esm_shims();
|
|
|
57665
57758
|
var timestamp = {
|
|
57666
57759
|
types: ["google.protobuf.Timestamp"],
|
|
57667
57760
|
[ConverterType.TO_JSON]: {
|
|
57668
|
-
transform: (val) =>
|
|
57761
|
+
transform: (val) => {
|
|
57762
|
+
if (typeof val === "string" || !val) {
|
|
57763
|
+
return val;
|
|
57764
|
+
}
|
|
57765
|
+
return val.toISOString();
|
|
57766
|
+
}
|
|
57669
57767
|
},
|
|
57670
57768
|
[ConverterType.FROM_JSON]: {
|
|
57671
57769
|
transform: (val) => val ? new Date(val) : val
|
|
@@ -63794,6 +63892,7 @@ var postProcessor = {
|
|
|
63794
63892
|
}
|
|
63795
63893
|
};
|
|
63796
63894
|
var checkedLoadedFor = {};
|
|
63895
|
+
var shouldHandleAsObject = (res) => !isString2(res) && typeof res !== "boolean" && typeof res !== "number";
|
|
63797
63896
|
var Translator = class _Translator extends EventEmitter {
|
|
63798
63897
|
constructor(services) {
|
|
63799
63898
|
let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
@@ -63892,17 +63991,29 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
63892
63991
|
let res = resolved?.res;
|
|
63893
63992
|
const resUsedKey = resolved?.usedKey || key;
|
|
63894
63993
|
const resExactUsedKey = resolved?.exactUsedKey || key;
|
|
63895
|
-
const resType = Object.prototype.toString.apply(res);
|
|
63896
63994
|
const noObject = ["[object Number]", "[object Function]", "[object RegExp]"];
|
|
63897
63995
|
const joinArrays = options.joinArrays !== void 0 ? options.joinArrays : this.options.joinArrays;
|
|
63898
63996
|
const handleAsObjectInI18nFormat = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
63899
|
-
const
|
|
63900
|
-
|
|
63997
|
+
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
63998
|
+
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
63999
|
+
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
64000
|
+
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
64001
|
+
ordinal: false
|
|
64002
|
+
}) : "";
|
|
64003
|
+
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
64004
|
+
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
64005
|
+
let resForObjHndl = res;
|
|
64006
|
+
if (handleAsObjectInI18nFormat && !res && hasDefaultValue) {
|
|
64007
|
+
resForObjHndl = defaultValue;
|
|
64008
|
+
}
|
|
64009
|
+
const handleAsObject = shouldHandleAsObject(resForObjHndl);
|
|
64010
|
+
const resType = Object.prototype.toString.apply(resForObjHndl);
|
|
64011
|
+
if (handleAsObjectInI18nFormat && resForObjHndl && handleAsObject && noObject.indexOf(resType) < 0 && !(isString2(joinArrays) && Array.isArray(resForObjHndl))) {
|
|
63901
64012
|
if (!options.returnObjects && !this.options.returnObjects) {
|
|
63902
64013
|
if (!this.options.returnedObjectHandler) {
|
|
63903
64014
|
this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
63904
64015
|
}
|
|
63905
|
-
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey,
|
|
64016
|
+
const r2 = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(resUsedKey, resForObjHndl, {
|
|
63906
64017
|
...options,
|
|
63907
64018
|
ns: namespaces
|
|
63908
64019
|
}) : `key '${key} (${this.language})' returned an object instead of string.`;
|
|
@@ -63914,20 +64025,31 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
63914
64025
|
return r2;
|
|
63915
64026
|
}
|
|
63916
64027
|
if (keySeparator) {
|
|
63917
|
-
const resTypeIsArray = Array.isArray(
|
|
64028
|
+
const resTypeIsArray = Array.isArray(resForObjHndl);
|
|
63918
64029
|
const copy2 = resTypeIsArray ? [] : {};
|
|
63919
64030
|
const newKeyToUse = resTypeIsArray ? resExactUsedKey : resUsedKey;
|
|
63920
|
-
for (const m in
|
|
63921
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
64031
|
+
for (const m in resForObjHndl) {
|
|
64032
|
+
if (Object.prototype.hasOwnProperty.call(resForObjHndl, m)) {
|
|
63922
64033
|
const deepKey = `${newKeyToUse}${keySeparator}${m}`;
|
|
63923
|
-
|
|
63924
|
-
|
|
63925
|
-
|
|
63926
|
-
|
|
63927
|
-
|
|
63928
|
-
|
|
63929
|
-
|
|
63930
|
-
|
|
64034
|
+
if (hasDefaultValue && !res) {
|
|
64035
|
+
copy2[m] = this.translate(deepKey, {
|
|
64036
|
+
...options,
|
|
64037
|
+
defaultValue: shouldHandleAsObject(defaultValue) ? defaultValue[m] : void 0,
|
|
64038
|
+
...{
|
|
64039
|
+
joinArrays: false,
|
|
64040
|
+
ns: namespaces
|
|
64041
|
+
}
|
|
64042
|
+
});
|
|
64043
|
+
} else {
|
|
64044
|
+
copy2[m] = this.translate(deepKey, {
|
|
64045
|
+
...options,
|
|
64046
|
+
...{
|
|
64047
|
+
joinArrays: false,
|
|
64048
|
+
ns: namespaces
|
|
64049
|
+
}
|
|
64050
|
+
});
|
|
64051
|
+
}
|
|
64052
|
+
if (copy2[m] === deepKey) copy2[m] = resForObjHndl[m];
|
|
63931
64053
|
}
|
|
63932
64054
|
}
|
|
63933
64055
|
res = copy2;
|
|
@@ -63938,14 +64060,6 @@ var Translator = class _Translator extends EventEmitter {
|
|
|
63938
64060
|
} else {
|
|
63939
64061
|
let usedDefault = false;
|
|
63940
64062
|
let usedKey = false;
|
|
63941
|
-
const needsPluralHandling = options.count !== void 0 && !isString2(options.count);
|
|
63942
|
-
const hasDefaultValue = _Translator.hasDefaultValue(options);
|
|
63943
|
-
const defaultValueSuffix = needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, options) : "";
|
|
63944
|
-
const defaultValueSuffixOrdinalFallback = options.ordinal && needsPluralHandling ? this.pluralResolver.getSuffix(lng, options.count, {
|
|
63945
|
-
ordinal: false
|
|
63946
|
-
}) : "";
|
|
63947
|
-
const needsZeroSuffixLookup = needsPluralHandling && !options.ordinal && options.count === 0;
|
|
63948
|
-
const defaultValue = needsZeroSuffixLookup && options[`defaultValue${this.options.pluralSeparator}zero`] || options[`defaultValue${defaultValueSuffix}`] || options[`defaultValue${defaultValueSuffixOrdinalFallback}`] || options.defaultValue;
|
|
63949
64063
|
if (!this.isValidLookup(res) && hasDefaultValue) {
|
|
63950
64064
|
usedDefault = true;
|
|
63951
64065
|
res = defaultValue;
|
|
@@ -71032,7 +71146,7 @@ function reportCommandStartEvent({
|
|
|
71032
71146
|
}
|
|
71033
71147
|
|
|
71034
71148
|
// package.json
|
|
71035
|
-
var version = "0.0.
|
|
71149
|
+
var version = "0.0.98";
|
|
71036
71150
|
var package_default = {
|
|
71037
71151
|
name: "@wix/create-app",
|
|
71038
71152
|
description: "Create Wix apps",
|
|
@@ -71042,7 +71156,7 @@ var package_default = {
|
|
|
71042
71156
|
devDependencies: {
|
|
71043
71157
|
"@commander-js/extra-typings": "^13.0.0",
|
|
71044
71158
|
"@types/is-git-url": "^1.0.2",
|
|
71045
|
-
"@types/lodash": "^4.17.
|
|
71159
|
+
"@types/lodash": "^4.17.16",
|
|
71046
71160
|
"@types/react": "^18.3.3",
|
|
71047
71161
|
"@types/semver": "^7.5.8",
|
|
71048
71162
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
@@ -71062,7 +71176,7 @@ var package_default = {
|
|
|
71062
71176
|
"@wix/package-manager": "workspace:*",
|
|
71063
71177
|
"@wix/tsup-configs": "workspace:*",
|
|
71064
71178
|
commander: "^13.0.0",
|
|
71065
|
-
globby: "^14.0
|
|
71179
|
+
globby: "^14.1.0",
|
|
71066
71180
|
"is-git-url": "^1.0.0",
|
|
71067
71181
|
lodash: "^4.17.21",
|
|
71068
71182
|
"package-json": "^10.0.1",
|
|
@@ -73344,7 +73458,8 @@ var import_fast_glob2 = __toESM(require_out4(), 1);
|
|
|
73344
73458
|
|
|
73345
73459
|
// ../../node_modules/globby/node_modules/path-type/index.js
|
|
73346
73460
|
init_esm_shims();
|
|
73347
|
-
import fs6
|
|
73461
|
+
import fs6 from "node:fs";
|
|
73462
|
+
import fsPromises from "node:fs/promises";
|
|
73348
73463
|
async function isType10(fsStatType, statsMethodName, filePath) {
|
|
73349
73464
|
if (typeof filePath !== "string") {
|
|
73350
73465
|
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
@@ -73372,19 +73487,23 @@ function isTypeSync(fsStatType, statsMethodName, filePath) {
|
|
|
73372
73487
|
throw error;
|
|
73373
73488
|
}
|
|
73374
73489
|
}
|
|
73375
|
-
var isFile = isType10.bind(
|
|
73376
|
-
var isDirectory = isType10.bind(
|
|
73377
|
-
var isSymlink = isType10.bind(
|
|
73378
|
-
var isFileSync = isTypeSync.bind(
|
|
73379
|
-
var isDirectorySync = isTypeSync.bind(
|
|
73380
|
-
var isSymlinkSync = isTypeSync.bind(
|
|
73490
|
+
var isFile = isType10.bind(void 0, "stat", "isFile");
|
|
73491
|
+
var isDirectory = isType10.bind(void 0, "stat", "isDirectory");
|
|
73492
|
+
var isSymlink = isType10.bind(void 0, "lstat", "isSymbolicLink");
|
|
73493
|
+
var isFileSync = isTypeSync.bind(void 0, "statSync", "isFile");
|
|
73494
|
+
var isDirectorySync = isTypeSync.bind(void 0, "statSync", "isDirectory");
|
|
73495
|
+
var isSymlinkSync = isTypeSync.bind(void 0, "lstatSync", "isSymbolicLink");
|
|
73381
73496
|
|
|
73382
|
-
// ../../node_modules/unicorn-magic/node.js
|
|
73497
|
+
// ../../node_modules/globby/node_modules/unicorn-magic/node.js
|
|
73383
73498
|
init_esm_shims();
|
|
73499
|
+
import { promisify as promisify6 } from "node:util";
|
|
73500
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
73384
73501
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
73502
|
+
var execFileOriginal = promisify6(execFileCallback);
|
|
73385
73503
|
function toPath(urlOrPath) {
|
|
73386
73504
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
73387
73505
|
}
|
|
73506
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
73388
73507
|
|
|
73389
73508
|
// ../../node_modules/globby/ignore.js
|
|
73390
73509
|
init_esm_shims();
|
|
@@ -78053,6 +78172,11 @@ var RegionType2;
|
|
|
78053
78172
|
RegionType3["BODY"] = "BODY";
|
|
78054
78173
|
RegionType3["FOOTER"] = "FOOTER";
|
|
78055
78174
|
})(RegionType2 || (RegionType2 = {}));
|
|
78175
|
+
var StaticContainer;
|
|
78176
|
+
(function(StaticContainer2) {
|
|
78177
|
+
StaticContainer2["UNKNOWN_CONTAINER"] = "UNKNOWN_CONTAINER";
|
|
78178
|
+
StaticContainer2["HOMEPAGE"] = "HOMEPAGE";
|
|
78179
|
+
})(StaticContainer || (StaticContainer = {}));
|
|
78056
78180
|
var EmbeddedScriptPages2;
|
|
78057
78181
|
(function(EmbeddedScriptPages3) {
|
|
78058
78182
|
EmbeddedScriptPages3["NONE_PAGES"] = "NONE_PAGES";
|
|
@@ -80727,16 +80851,16 @@ init_esm_shims();
|
|
|
80727
80851
|
import fs10 from "node:fs";
|
|
80728
80852
|
import path7 from "node:path";
|
|
80729
80853
|
import stream from "node:stream";
|
|
80730
|
-
import { promisify as
|
|
80854
|
+
import { promisify as promisify8 } from "node:util";
|
|
80731
80855
|
|
|
80732
80856
|
// ../../node_modules/unique-string/index.js
|
|
80733
80857
|
init_esm_shims();
|
|
80734
80858
|
|
|
80735
80859
|
// ../../node_modules/crypto-random-string/index.js
|
|
80736
80860
|
init_esm_shims();
|
|
80737
|
-
import { promisify as
|
|
80861
|
+
import { promisify as promisify7 } from "util";
|
|
80738
80862
|
import crypto from "crypto";
|
|
80739
|
-
var randomBytesAsync =
|
|
80863
|
+
var randomBytesAsync = promisify7(crypto.randomBytes);
|
|
80740
80864
|
var urlSafeCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~".split("");
|
|
80741
80865
|
var numericCharacters = "0123456789".split("");
|
|
80742
80866
|
var distinguishableCharacters = "CDEHKMPRTUWXY012458".split("");
|
|
@@ -80861,7 +80985,7 @@ var temporaryDirectory = await fs9.realpath(os7.tmpdir());
|
|
|
80861
80985
|
var temp_dir_default = temporaryDirectory;
|
|
80862
80986
|
|
|
80863
80987
|
// ../../node_modules/tempy/index.js
|
|
80864
|
-
var pipeline =
|
|
80988
|
+
var pipeline = promisify8(stream.pipeline);
|
|
80865
80989
|
var getPath3 = (prefix = "") => path7.join(temp_dir_default, prefix + uniqueString());
|
|
80866
80990
|
function temporaryDirectory2({ prefix = "" } = {}) {
|
|
80867
80991
|
const directory = getPath3(prefix);
|