@wix/create-app 0.0.85 → 0.0.86

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
@@ -36693,7 +36693,7 @@ var require_pattern = __commonJS({
36693
36693
  "use strict";
36694
36694
  init_esm_shims();
36695
36695
  Object.defineProperty(exports, "__esModule", { value: true });
36696
- exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
36696
+ exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
36697
36697
  var path8 = __require("path");
36698
36698
  var globParent = require_glob_parent();
36699
36699
  var micromatch = require_micromatch();
@@ -36833,6 +36833,23 @@ var require_pattern = __commonJS({
36833
36833
  return pattern.replace(DOUBLE_SLASH_RE, "/");
36834
36834
  }
36835
36835
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
36836
+ function partitionAbsoluteAndRelative(patterns) {
36837
+ const absolute = [];
36838
+ const relative4 = [];
36839
+ for (const pattern of patterns) {
36840
+ if (isAbsolute2(pattern)) {
36841
+ absolute.push(pattern);
36842
+ } else {
36843
+ relative4.push(pattern);
36844
+ }
36845
+ }
36846
+ return [absolute, relative4];
36847
+ }
36848
+ exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
36849
+ function isAbsolute2(pattern) {
36850
+ return path8.isAbsolute(pattern);
36851
+ }
36852
+ exports.isAbsolute = isAbsolute2;
36836
36853
  }
36837
36854
  });
36838
36855
 
@@ -37710,14 +37727,14 @@ var require_queue = __commonJS({
37710
37727
  "use strict";
37711
37728
  init_esm_shims();
37712
37729
  var reusify = require_reusify();
37713
- function fastqueue(context2, worker, concurrency) {
37730
+ function fastqueue(context2, worker, _concurrency) {
37714
37731
  if (typeof context2 === "function") {
37715
- concurrency = worker;
37732
+ _concurrency = worker;
37716
37733
  worker = context2;
37717
37734
  context2 = null;
37718
37735
  }
37719
- if (concurrency < 1) {
37720
- throw new Error("fastqueue concurrency must be greater than 1");
37736
+ if (!(_concurrency >= 1)) {
37737
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
37721
37738
  }
37722
37739
  var cache3 = reusify(Task);
37723
37740
  var queueHead = null;
@@ -37730,7 +37747,20 @@ var require_queue = __commonJS({
37730
37747
  saturated: noop10,
37731
37748
  pause,
37732
37749
  paused: false,
37733
- concurrency,
37750
+ get concurrency() {
37751
+ return _concurrency;
37752
+ },
37753
+ set concurrency(value2) {
37754
+ if (!(value2 >= 1)) {
37755
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
37756
+ }
37757
+ _concurrency = value2;
37758
+ if (self2.paused) return;
37759
+ for (; queueHead && _running < _concurrency; ) {
37760
+ _running++;
37761
+ release2();
37762
+ }
37763
+ },
37734
37764
  running,
37735
37765
  resume: resume2,
37736
37766
  idle,
@@ -37770,7 +37800,12 @@ var require_queue = __commonJS({
37770
37800
  function resume2() {
37771
37801
  if (!self2.paused) return;
37772
37802
  self2.paused = false;
37773
- for (var i2 = 0; i2 < self2.concurrency; i2++) {
37803
+ if (queueHead === null) {
37804
+ _running++;
37805
+ release2();
37806
+ return;
37807
+ }
37808
+ for (; queueHead && _running < _concurrency; ) {
37774
37809
  _running++;
37775
37810
  release2();
37776
37811
  }
@@ -37785,7 +37820,7 @@ var require_queue = __commonJS({
37785
37820
  current.value = value2;
37786
37821
  current.callback = done || noop10;
37787
37822
  current.errorHandler = errorHandler2;
37788
- if (_running === self2.concurrency || self2.paused) {
37823
+ if (_running >= _concurrency || self2.paused) {
37789
37824
  if (queueTail) {
37790
37825
  queueTail.next = current;
37791
37826
  queueTail = current;
@@ -37805,7 +37840,8 @@ var require_queue = __commonJS({
37805
37840
  current.release = release2;
37806
37841
  current.value = value2;
37807
37842
  current.callback = done || noop10;
37808
- if (_running === self2.concurrency || self2.paused) {
37843
+ current.errorHandler = errorHandler2;
37844
+ if (_running >= _concurrency || self2.paused) {
37809
37845
  if (queueHead) {
37810
37846
  current.next = queueHead;
37811
37847
  queueHead = current;
@@ -37824,7 +37860,7 @@ var require_queue = __commonJS({
37824
37860
  cache3.release(holder);
37825
37861
  }
37826
37862
  var next = queueHead;
37827
- if (next) {
37863
+ if (next && _running <= _concurrency) {
37828
37864
  if (!self2.paused) {
37829
37865
  if (queueTail === queueHead) {
37830
37866
  queueTail = null;
@@ -37880,9 +37916,9 @@ var require_queue = __commonJS({
37880
37916
  self2.release(self2);
37881
37917
  };
37882
37918
  }
37883
- function queueAsPromised(context2, worker, concurrency) {
37919
+ function queueAsPromised(context2, worker, _concurrency) {
37884
37920
  if (typeof context2 === "function") {
37885
- concurrency = worker;
37921
+ _concurrency = worker;
37886
37922
  worker = context2;
37887
37923
  context2 = null;
37888
37924
  }
@@ -37891,7 +37927,7 @@ var require_queue = __commonJS({
37891
37927
  cb(null, res);
37892
37928
  }, cb);
37893
37929
  }
37894
- var queue = fastqueue(context2, asyncWrapper, concurrency);
37930
+ var queue = fastqueue(context2, asyncWrapper, _concurrency);
37895
37931
  var pushCb = queue.push;
37896
37932
  var unshiftCb = queue.unshift;
37897
37933
  queue.push = push;
@@ -37925,12 +37961,19 @@ var require_queue = __commonJS({
37925
37961
  return p;
37926
37962
  }
37927
37963
  function drained() {
37928
- var previousDrain = queue.drain;
37929
37964
  var p = new Promise(function(resolve5) {
37930
- queue.drain = function() {
37931
- previousDrain();
37932
- resolve5();
37933
- };
37965
+ process.nextTick(function() {
37966
+ if (queue.idle()) {
37967
+ resolve5();
37968
+ } else {
37969
+ var previousDrain = queue.drain;
37970
+ queue.drain = function() {
37971
+ if (typeof previousDrain === "function") previousDrain();
37972
+ resolve5();
37973
+ queue.drain = previousDrain;
37974
+ };
37975
+ }
37976
+ });
37934
37977
  });
37935
37978
  return p;
37936
37979
  }
@@ -38644,11 +38687,19 @@ var require_entry = __commonJS({
38644
38687
  this.index = /* @__PURE__ */ new Map();
38645
38688
  }
38646
38689
  getFilter(positive, negative) {
38647
- const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions);
38648
- const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }));
38649
- return (entry) => this._filter(entry, positiveRe, negativeRe);
38690
+ const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
38691
+ const patterns = {
38692
+ positive: {
38693
+ all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
38694
+ },
38695
+ negative: {
38696
+ absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
38697
+ relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
38698
+ }
38699
+ };
38700
+ return (entry) => this._filter(entry, patterns);
38650
38701
  }
38651
- _filter(entry, positiveRe, negativeRe) {
38702
+ _filter(entry, patterns) {
38652
38703
  const filepath = utils.path.removeLeadingDotSegment(entry.path);
38653
38704
  if (this._settings.unique && this._isDuplicateEntry(filepath)) {
38654
38705
  return false;
@@ -38656,11 +38707,7 @@ var require_entry = __commonJS({
38656
38707
  if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) {
38657
38708
  return false;
38658
38709
  }
38659
- if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) {
38660
- return false;
38661
- }
38662
- const isDirectory2 = entry.dirent.isDirectory();
38663
- const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory2) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory2);
38710
+ const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
38664
38711
  if (this._settings.unique && isMatched) {
38665
38712
  this._createIndexRecord(filepath);
38666
38713
  }
@@ -38678,14 +38725,32 @@ var require_entry = __commonJS({
38678
38725
  _onlyDirectoryFilter(entry) {
38679
38726
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
38680
38727
  }
38681
- _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
38682
- if (!this._settings.absolute) {
38728
+ _isMatchToPatternsSet(filepath, patterns, isDirectory2) {
38729
+ const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory2);
38730
+ if (!isMatched) {
38731
+ return false;
38732
+ }
38733
+ const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory2);
38734
+ if (isMatchedByRelativeNegative) {
38735
+ return false;
38736
+ }
38737
+ const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory2);
38738
+ if (isMatchedByAbsoluteNegative) {
38739
+ return false;
38740
+ }
38741
+ return true;
38742
+ }
38743
+ _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory2) {
38744
+ if (patternsRe.length === 0) {
38683
38745
  return false;
38684
38746
  }
38685
- const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
38686
- return utils.pattern.matchAny(fullpath, patternsRe);
38747
+ const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
38748
+ return this._isMatchToPatterns(fullpath, patternsRe, isDirectory2);
38687
38749
  }
38688
38750
  _isMatchToPatterns(filepath, patternsRe, isDirectory2) {
38751
+ if (patternsRe.length === 0) {
38752
+ return false;
38753
+ }
38689
38754
  const isMatched = utils.pattern.matchAny(filepath, patternsRe);
38690
38755
  if (!isMatched && isDirectory2) {
38691
38756
  return utils.pattern.matchAny(filepath + "/", patternsRe);
@@ -52018,10 +52083,10 @@ function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
52018
52083
  return 1;
52019
52084
  }
52020
52085
  if ("CI" in env) {
52021
- if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
52086
+ if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
52022
52087
  return 3;
52023
52088
  }
52024
- if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
52089
+ if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
52025
52090
  return 1;
52026
52091
  }
52027
52092
  return min;
@@ -65453,6 +65518,9 @@ function _isPatternSyntax(c2) {
65453
65518
  return c2 >= 33 && c2 <= 35 || c2 === 36 || c2 >= 37 && c2 <= 39 || c2 === 40 || c2 === 41 || c2 === 42 || c2 === 43 || c2 === 44 || c2 === 45 || c2 >= 46 && c2 <= 47 || c2 >= 58 && c2 <= 59 || c2 >= 60 && c2 <= 62 || c2 >= 63 && c2 <= 64 || c2 === 91 || c2 === 92 || c2 === 93 || c2 === 94 || c2 === 96 || c2 === 123 || c2 === 124 || c2 === 125 || c2 === 126 || c2 === 161 || c2 >= 162 && c2 <= 165 || c2 === 166 || c2 === 167 || c2 === 169 || c2 === 171 || c2 === 172 || c2 === 174 || c2 === 176 || c2 === 177 || c2 === 182 || c2 === 187 || c2 === 191 || c2 === 215 || c2 === 247 || c2 >= 8208 && c2 <= 8213 || c2 >= 8214 && c2 <= 8215 || c2 === 8216 || c2 === 8217 || c2 === 8218 || c2 >= 8219 && c2 <= 8220 || c2 === 8221 || c2 === 8222 || c2 === 8223 || c2 >= 8224 && c2 <= 8231 || c2 >= 8240 && c2 <= 8248 || c2 === 8249 || c2 === 8250 || c2 >= 8251 && c2 <= 8254 || c2 >= 8257 && c2 <= 8259 || c2 === 8260 || c2 === 8261 || c2 === 8262 || c2 >= 8263 && c2 <= 8273 || c2 === 8274 || c2 === 8275 || c2 >= 8277 && c2 <= 8286 || c2 >= 8592 && c2 <= 8596 || c2 >= 8597 && c2 <= 8601 || c2 >= 8602 && c2 <= 8603 || c2 >= 8604 && c2 <= 8607 || c2 === 8608 || c2 >= 8609 && c2 <= 8610 || c2 === 8611 || c2 >= 8612 && c2 <= 8613 || c2 === 8614 || c2 >= 8615 && c2 <= 8621 || c2 === 8622 || c2 >= 8623 && c2 <= 8653 || c2 >= 8654 && c2 <= 8655 || c2 >= 8656 && c2 <= 8657 || c2 === 8658 || c2 === 8659 || c2 === 8660 || c2 >= 8661 && c2 <= 8691 || c2 >= 8692 && c2 <= 8959 || c2 >= 8960 && c2 <= 8967 || c2 === 8968 || c2 === 8969 || c2 === 8970 || c2 === 8971 || c2 >= 8972 && c2 <= 8991 || c2 >= 8992 && c2 <= 8993 || c2 >= 8994 && c2 <= 9e3 || c2 === 9001 || c2 === 9002 || c2 >= 9003 && c2 <= 9083 || c2 === 9084 || c2 >= 9085 && c2 <= 9114 || c2 >= 9115 && c2 <= 9139 || c2 >= 9140 && c2 <= 9179 || c2 >= 9180 && c2 <= 9185 || c2 >= 9186 && c2 <= 9254 || c2 >= 9255 && c2 <= 9279 || c2 >= 9280 && c2 <= 9290 || c2 >= 9291 && c2 <= 9311 || c2 >= 9472 && c2 <= 9654 || c2 === 9655 || c2 >= 9656 && c2 <= 9664 || c2 === 9665 || c2 >= 9666 && c2 <= 9719 || c2 >= 9720 && c2 <= 9727 || c2 >= 9728 && c2 <= 9838 || c2 === 9839 || c2 >= 9840 && c2 <= 10087 || c2 === 10088 || c2 === 10089 || c2 === 10090 || c2 === 10091 || c2 === 10092 || c2 === 10093 || c2 === 10094 || c2 === 10095 || c2 === 10096 || c2 === 10097 || c2 === 10098 || c2 === 10099 || c2 === 10100 || c2 === 10101 || c2 >= 10132 && c2 <= 10175 || c2 >= 10176 && c2 <= 10180 || c2 === 10181 || c2 === 10182 || c2 >= 10183 && c2 <= 10213 || c2 === 10214 || c2 === 10215 || c2 === 10216 || c2 === 10217 || c2 === 10218 || c2 === 10219 || c2 === 10220 || c2 === 10221 || c2 === 10222 || c2 === 10223 || c2 >= 10224 && c2 <= 10239 || c2 >= 10240 && c2 <= 10495 || c2 >= 10496 && c2 <= 10626 || c2 === 10627 || c2 === 10628 || c2 === 10629 || c2 === 10630 || c2 === 10631 || c2 === 10632 || c2 === 10633 || c2 === 10634 || c2 === 10635 || c2 === 10636 || c2 === 10637 || c2 === 10638 || c2 === 10639 || c2 === 10640 || c2 === 10641 || c2 === 10642 || c2 === 10643 || c2 === 10644 || c2 === 10645 || c2 === 10646 || c2 === 10647 || c2 === 10648 || c2 >= 10649 && c2 <= 10711 || c2 === 10712 || c2 === 10713 || c2 === 10714 || c2 === 10715 || c2 >= 10716 && c2 <= 10747 || c2 === 10748 || c2 === 10749 || c2 >= 10750 && c2 <= 11007 || c2 >= 11008 && c2 <= 11055 || c2 >= 11056 && c2 <= 11076 || c2 >= 11077 && c2 <= 11078 || c2 >= 11079 && c2 <= 11084 || c2 >= 11085 && c2 <= 11123 || c2 >= 11124 && c2 <= 11125 || c2 >= 11126 && c2 <= 11157 || c2 === 11158 || c2 >= 11159 && c2 <= 11263 || c2 >= 11776 && c2 <= 11777 || c2 === 11778 || c2 === 11779 || c2 === 11780 || c2 === 11781 || c2 >= 11782 && c2 <= 11784 || c2 === 11785 || c2 === 11786 || c2 === 11787 || c2 === 11788 || c2 === 11789 || c2 >= 11790 && c2 <= 11798 || c2 === 11799 || c2 >= 11800 && c2 <= 11801 || c2 === 11802 || c2 === 11803 || c2 === 11804 || c2 === 11805 || c2 >= 11806 && c2 <= 11807 || c2 === 11808 || c2 === 11809 || c2 === 11810 || c2 === 11811 || c2 === 11812 || c2 === 11813 || c2 === 11814 || c2 === 11815 || c2 === 11816 || c2 === 11817 || c2 >= 11818 && c2 <= 11822 || c2 === 11823 || c2 >= 11824 && c2 <= 11833 || c2 >= 11834 && c2 <= 11835 || c2 >= 11836 && c2 <= 11839 || c2 === 11840 || c2 === 11841 || c2 === 11842 || c2 >= 11843 && c2 <= 11855 || c2 >= 11856 && c2 <= 11857 || c2 === 11858 || c2 >= 11859 && c2 <= 11903 || c2 >= 12289 && c2 <= 12291 || c2 === 12296 || c2 === 12297 || c2 === 12298 || c2 === 12299 || c2 === 12300 || c2 === 12301 || c2 === 12302 || c2 === 12303 || c2 === 12304 || c2 === 12305 || c2 >= 12306 && c2 <= 12307 || c2 === 12308 || c2 === 12309 || c2 === 12310 || c2 === 12311 || c2 === 12312 || c2 === 12313 || c2 === 12314 || c2 === 12315 || c2 === 12316 || c2 === 12317 || c2 >= 12318 && c2 <= 12319 || c2 === 12320 || c2 === 12336 || c2 === 64830 || c2 === 64831 || c2 >= 65093 && c2 <= 65094;
65454
65519
  }
65455
65520
 
65521
+ // ../../node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js
65522
+ init_esm_shims();
65523
+
65456
65524
  // ../../node_modules/@formatjs/icu-messageformat-parser/lib/index.js
65457
65525
  function pruneLocation(els) {
65458
65526
  els.forEach(function(el) {
@@ -73604,15 +73672,13 @@ function reportCommandStartEvent({
73604
73672
  }
73605
73673
 
73606
73674
  // package.json
73607
- var version = "0.0.85";
73675
+ var version = "0.0.86";
73608
73676
  var package_default = {
73609
73677
  name: "@wix/create-app",
73610
73678
  description: "Create Wix apps",
73611
73679
  version,
73612
73680
  author: "Ihor Machuzhak",
73613
- bin: {
73614
- "create-wix-app": "bin/index.cjs"
73615
- },
73681
+ bin: "bin/index.cjs",
73616
73682
  devDependencies: {
73617
73683
  "@commander-js/extra-typings": "^13.0.0",
73618
73684
  "@types/is-git-url": "^1.0.2",