@vercel/static-build 2.5.39 → 2.5.40

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.
Files changed (2) hide show
  1. package/dist/index.js +54 -31
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -10362,9 +10362,9 @@ var require_frameworks = __commonJS({
10362
10362
  }
10363
10363
  });
10364
10364
 
10365
- // ../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js
10365
+ // ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
10366
10366
  var require_universalify = __commonJS({
10367
- "../../node_modules/.pnpm/universalify@2.0.0/node_modules/universalify/index.js"(exports2) {
10367
+ "../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js"(exports2) {
10368
10368
  "use strict";
10369
10369
  exports2.fromCallback = function(fn) {
10370
10370
  return Object.defineProperty(function(...args) {
@@ -10372,11 +10372,8 @@ var require_universalify = __commonJS({
10372
10372
  fn.apply(this, args);
10373
10373
  else {
10374
10374
  return new Promise((resolve, reject) => {
10375
- fn.call(
10376
- this,
10377
- ...args,
10378
- (err, res) => err != null ? reject(err) : resolve(res)
10379
- );
10375
+ args.push((err, res) => err != null ? reject(err) : resolve(res));
10376
+ fn.apply(this, args);
10380
10377
  });
10381
10378
  }
10382
10379
  }, "name", { value: fn.name });
@@ -10386,8 +10383,10 @@ var require_universalify = __commonJS({
10386
10383
  const cb = args[args.length - 1];
10387
10384
  if (typeof cb !== "function")
10388
10385
  return fn.apply(this, args);
10389
- else
10390
- fn.apply(this, args.slice(0, -1)).then((r) => cb(null, r), cb);
10386
+ else {
10387
+ args.pop();
10388
+ fn.apply(this, args).then((r) => cb(null, r), cb);
10389
+ }
10391
10390
  }, "name", { value: fn.name });
10392
10391
  };
10393
10392
  }
@@ -22630,9 +22629,9 @@ var require_fs2 = __commonJS({
22630
22629
  }
22631
22630
  });
22632
22631
 
22633
- // ../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/lib/path.js
22632
+ // ../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js
22634
22633
  var require_path = __commonJS({
22635
- "../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/lib/path.js"(exports2, module2) {
22634
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/lib/path.js"(exports2, module2) {
22636
22635
  var isWindows = typeof process === "object" && process && process.platform === "win32";
22637
22636
  module2.exports = isWindows ? { sep: "\\" } : { sep: "/" };
22638
22637
  }
@@ -22789,9 +22788,9 @@ var require_brace_expansion2 = __commonJS({
22789
22788
  }
22790
22789
  });
22791
22790
 
22792
- // ../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/minimatch.js
22791
+ // ../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js
22793
22792
  var require_minimatch2 = __commonJS({
22794
- "../../node_modules/.pnpm/minimatch@5.1.2/node_modules/minimatch/minimatch.js"(exports2, module2) {
22793
+ "../../node_modules/.pnpm/minimatch@5.1.6/node_modules/minimatch/minimatch.js"(exports2, module2) {
22795
22794
  var minimatch = module2.exports = (p, pattern, options = {}) => {
22796
22795
  assertValidPattern(pattern);
22797
22796
  if (!options.nocomment && pattern.charAt(0) === "#") {
@@ -23027,7 +23026,7 @@ var require_minimatch2 = __commonJS({
23027
23026
  if (pattern === "")
23028
23027
  return "";
23029
23028
  let re = "";
23030
- let hasMagic = !!options.nocase;
23029
+ let hasMagic = false;
23031
23030
  let escaping = false;
23032
23031
  const patternListStack = [];
23033
23032
  const negativeLists = [];
@@ -23038,7 +23037,10 @@ var require_minimatch2 = __commonJS({
23038
23037
  let cs;
23039
23038
  let pl;
23040
23039
  let sp;
23041
- const patternStart = pattern.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
23040
+ let dotTravAllowed = pattern.charAt(0) === ".";
23041
+ let dotFileAllowed = options.dot || dotTravAllowed;
23042
+ const patternStart = () => dotTravAllowed ? "" : dotFileAllowed ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
23043
+ const subPatternStart = (p) => p.charAt(0) === "." ? "" : options.dot ? "(?!(?:^|\\/)\\.{1,2}(?:$|\\/))" : "(?!\\.)";
23042
23044
  const clearStateChar = () => {
23043
23045
  if (stateChar) {
23044
23046
  switch (stateChar) {
@@ -23102,7 +23104,7 @@ var require_minimatch2 = __commonJS({
23102
23104
  if (options.noext)
23103
23105
  clearStateChar();
23104
23106
  continue;
23105
- case "(":
23107
+ case "(": {
23106
23108
  if (inClass) {
23107
23109
  re += "(";
23108
23110
  continue;
@@ -23111,39 +23113,54 @@ var require_minimatch2 = __commonJS({
23111
23113
  re += "\\(";
23112
23114
  continue;
23113
23115
  }
23114
- patternListStack.push({
23116
+ const plEntry = {
23115
23117
  type: stateChar,
23116
23118
  start: i - 1,
23117
23119
  reStart: re.length,
23118
23120
  open: plTypes[stateChar].open,
23119
23121
  close: plTypes[stateChar].close
23120
- });
23121
- re += stateChar === "!" ? "(?:(?!(?:" : "(?:";
23122
+ };
23123
+ this.debug(this.pattern, " ", plEntry);
23124
+ patternListStack.push(plEntry);
23125
+ re += plEntry.open;
23126
+ if (plEntry.start === 0 && plEntry.type !== "!") {
23127
+ dotTravAllowed = true;
23128
+ re += subPatternStart(pattern.slice(i + 1));
23129
+ }
23122
23130
  this.debug("plType %j %j", stateChar, re);
23123
23131
  stateChar = false;
23124
23132
  continue;
23125
- case ")":
23126
- if (inClass || !patternListStack.length) {
23133
+ }
23134
+ case ")": {
23135
+ const plEntry = patternListStack[patternListStack.length - 1];
23136
+ if (inClass || !plEntry) {
23127
23137
  re += "\\)";
23128
23138
  continue;
23129
23139
  }
23140
+ patternListStack.pop();
23130
23141
  clearStateChar();
23131
23142
  hasMagic = true;
23132
- pl = patternListStack.pop();
23143
+ pl = plEntry;
23133
23144
  re += pl.close;
23134
23145
  if (pl.type === "!") {
23135
- negativeLists.push(pl);
23146
+ negativeLists.push(Object.assign(pl, { reEnd: re.length }));
23136
23147
  }
23137
- pl.reEnd = re.length;
23138
23148
  continue;
23139
- case "|":
23140
- if (inClass || !patternListStack.length) {
23149
+ }
23150
+ case "|": {
23151
+ const plEntry = patternListStack[patternListStack.length - 1];
23152
+ if (inClass || !plEntry) {
23141
23153
  re += "\\|";
23142
23154
  continue;
23143
23155
  }
23144
23156
  clearStateChar();
23145
23157
  re += "|";
23158
+ if (plEntry.start === 0 && plEntry.type !== "!") {
23159
+ dotTravAllowed = true;
23160
+ re += subPatternStart(pattern.slice(i + 1));
23161
+ }
23146
23162
  continue;
23163
+ }
23147
23164
  case "[":
23148
23165
  clearStateChar();
23149
23166
  if (inClass) {
@@ -23211,24 +23228,28 @@ var require_minimatch2 = __commonJS({
23211
23228
  const nlFirst = re.slice(nl.reStart, nl.reEnd - 8);
23212
23229
  let nlAfter = re.slice(nl.reEnd);
23213
23230
  const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter;
23214
- const openParensBefore = nlBefore.split("(").length - 1;
23231
+ const closeParensBefore = nlBefore.split(")").length;
23232
+ const openParensBefore = nlBefore.split("(").length - closeParensBefore;
23215
23233
  let cleanAfter = nlAfter;
23216
23234
  for (let i = 0; i < openParensBefore; i++) {
23217
23235
  cleanAfter = cleanAfter.replace(/\)[+*?]?/, "");
23218
23236
  }
23219
23237
  nlAfter = cleanAfter;
23220
- const dollar = nlAfter === "" && isSub !== SUBPARSE ? "$" : "";
23238
+ const dollar = nlAfter === "" && isSub !== SUBPARSE ? "(?:$|\\/)" : "";
23221
23239
  re = nlBefore + nlFirst + nlAfter + dollar + nlLast;
23222
23240
  }
23223
23241
  if (re !== "" && hasMagic) {
23224
23242
  re = "(?=.)" + re;
23225
23243
  }
23226
23244
  if (addPatternStart) {
23227
- re = patternStart + re;
23245
+ re = patternStart() + re;
23228
23246
  }
23229
23247
  if (isSub === SUBPARSE) {
23230
23248
  return [re, hasMagic];
23231
23249
  }
23250
+ if (options.nocase && !hasMagic) {
23251
+ hasMagic = pattern.toUpperCase() !== pattern.toLowerCase();
23252
+ }
23232
23253
  if (!hasMagic) {
23233
23254
  return globUnescape(pattern);
23234
23255
  }
@@ -27609,7 +27630,8 @@ var build = async ({
27609
27630
  cliType,
27610
27631
  lockfileVersion,
27611
27632
  packageJsonPackageManager,
27612
- turboSupportsCorepackHome
27633
+ turboSupportsCorepackHome,
27634
+ detectedLockfile
27613
27635
  } = await (0, import_build_utils4.scanParentDirs)(entrypointDir, true);
27614
27636
  spawnOpts.env = (0, import_build_utils4.getEnvForPackageManager)({
27615
27637
  cliType,
@@ -27617,7 +27639,8 @@ var build = async ({
27617
27639
  packageJsonPackageManager,
27618
27640
  nodeVersion,
27619
27641
  env: spawnOpts.env || {},
27620
- turboSupportsCorepackHome
27642
+ turboSupportsCorepackHome,
27643
+ detectedLockfile
27621
27644
  });
27622
27645
  if (meta.isDev) {
27623
27646
  (0, import_build_utils4.debug)("Skipping dependency installation because dev mode is enabled");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.5.39",
3
+ "version": "2.5.40",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
17
- "@vercel/gatsby-plugin-vercel-builder": "2.0.61",
17
+ "@vercel/gatsby-plugin-vercel-builder": "2.0.62",
18
18
  "@vercel/static-config": "3.0.0",
19
19
  "ts-morph": "12.0.0"
20
20
  },
@@ -28,10 +28,10 @@
28
28
  "@types/node-fetch": "2.5.4",
29
29
  "@types/promise-timeout": "1.3.0",
30
30
  "@types/semver": "7.3.13",
31
- "@vercel/build-utils": "8.8.0",
31
+ "@vercel/build-utils": "9.0.0",
32
32
  "@vercel/error-utils": "2.0.3",
33
33
  "@vercel/frameworks": "3.4.0",
34
- "@vercel/fs-detectors": "5.3.1",
34
+ "@vercel/fs-detectors": "5.3.2",
35
35
  "@vercel/routing-utils": "5.0.0",
36
36
  "execa": "3.2.0",
37
37
  "fs-extra": "10.0.0",