@depup/vercel 50.32.5-depup.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.
Files changed (96) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +38 -0
  3. package/changes.json +38 -0
  4. package/dist/chunks/chunk-2DLBVZWU.js +197 -0
  5. package/dist/chunks/chunk-2HSQ7YUK.js +93 -0
  6. package/dist/chunks/chunk-2IQTNMUG.js +86 -0
  7. package/dist/chunks/chunk-3FRG2XGZ.js +466 -0
  8. package/dist/chunks/chunk-3KMKI2FP.js +34 -0
  9. package/dist/chunks/chunk-3XFFP2BA.js +110 -0
  10. package/dist/chunks/chunk-4S3Y3ATR.js +5383 -0
  11. package/dist/chunks/chunk-7EHTK7LP.js +359 -0
  12. package/dist/chunks/chunk-7YHZDJ4G.js +116 -0
  13. package/dist/chunks/chunk-A3NYPUKZ.js +17 -0
  14. package/dist/chunks/chunk-AA7QEJFB.js +5204 -0
  15. package/dist/chunks/chunk-AHU7WNL2.js +24 -0
  16. package/dist/chunks/chunk-AKQZ7KG3.js +4172 -0
  17. package/dist/chunks/chunk-AQLVWVEN.js +39155 -0
  18. package/dist/chunks/chunk-BQ3DXZNT.js +968 -0
  19. package/dist/chunks/chunk-E65JE2CC.js +102 -0
  20. package/dist/chunks/chunk-EKPSCRJZ.js +26 -0
  21. package/dist/chunks/chunk-EOZFDJSY.js +18 -0
  22. package/dist/chunks/chunk-FDJURQMQ.js +4676 -0
  23. package/dist/chunks/chunk-FLKHKWZV.js +1854 -0
  24. package/dist/chunks/chunk-G6BUEBF5.js +192 -0
  25. package/dist/chunks/chunk-GBNIO3KP.js +771 -0
  26. package/dist/chunks/chunk-GGP5R3FU.js +129 -0
  27. package/dist/chunks/chunk-H5XJSH37.js +91 -0
  28. package/dist/chunks/chunk-IB5L4LKZ.js +1082 -0
  29. package/dist/chunks/chunk-IE7MNZ56.js +149 -0
  30. package/dist/chunks/chunk-IK7DLK2T.js +16112 -0
  31. package/dist/chunks/chunk-IUGPWINM.js +104 -0
  32. package/dist/chunks/chunk-J7HDA5GH.js +54 -0
  33. package/dist/chunks/chunk-JLYZNGYY.js +293 -0
  34. package/dist/chunks/chunk-JQ4NA5MX.js +250 -0
  35. package/dist/chunks/chunk-LL26LVRR.js +81 -0
  36. package/dist/chunks/chunk-LW5ZNGW7.js +127 -0
  37. package/dist/chunks/chunk-LWBSOTJP.js +1772 -0
  38. package/dist/chunks/chunk-MBGJBHYD.js +388 -0
  39. package/dist/chunks/chunk-NUKAG3YM.js +168 -0
  40. package/dist/chunks/chunk-O7I4ZOCC.js +58 -0
  41. package/dist/chunks/chunk-OWR3XNE3.js +48 -0
  42. package/dist/chunks/chunk-P3SKP5WM.js +27 -0
  43. package/dist/chunks/chunk-P4I4DMEU.js +342 -0
  44. package/dist/chunks/chunk-P5Q6F5IA.js +107 -0
  45. package/dist/chunks/chunk-PMSMUMUO.js +30 -0
  46. package/dist/chunks/chunk-QXRJ52T4.js +2977 -0
  47. package/dist/chunks/chunk-RQXPRFRM.js +90 -0
  48. package/dist/chunks/chunk-S7KYDPEM.js +1564 -0
  49. package/dist/chunks/chunk-SGGLJFUZ.js +68 -0
  50. package/dist/chunks/chunk-SOTR4CXR.js +34 -0
  51. package/dist/chunks/chunk-TEVP63TU.js +1717 -0
  52. package/dist/chunks/chunk-TNBMKNET.js +323 -0
  53. package/dist/chunks/chunk-TZ2YI2VH.js +87 -0
  54. package/dist/chunks/chunk-U6XOC6E4.js +903 -0
  55. package/dist/chunks/chunk-V5P25P7F.js +22 -0
  56. package/dist/chunks/chunk-WQ5CUZWR.js +333 -0
  57. package/dist/chunks/chunk-WU2BPWRP.js +12237 -0
  58. package/dist/chunks/chunk-XPKWKPWA.js +44 -0
  59. package/dist/chunks/chunk-XR53KVJD.js +33 -0
  60. package/dist/chunks/chunk-Y4JJYHUG.js +16 -0
  61. package/dist/chunks/chunk-YPQSDAEW.js +29 -0
  62. package/dist/chunks/chunk-ZB2UO4V2.js +135 -0
  63. package/dist/chunks/chunk-ZLCMHY2G.js +1528 -0
  64. package/dist/chunks/compile-vercel-config-XU3YY2CZ.js +32 -0
  65. package/dist/chunks/delete-EJ2V7KQO.js +144 -0
  66. package/dist/chunks/disable-BKRFMX4U.js +122 -0
  67. package/dist/chunks/discard-4WF34DXK.js +118 -0
  68. package/dist/chunks/edit-FQE7JGU3.js +509 -0
  69. package/dist/chunks/emit-flags-datafiles-QYKPNWPX.js +17 -0
  70. package/dist/chunks/enable-VCNMX63U.js +122 -0
  71. package/dist/chunks/export-3KNVJCQR.js +133 -0
  72. package/dist/chunks/list-43XQCGKH.js +382 -0
  73. package/dist/chunks/list-DUL6PHUR.js +394 -0
  74. package/dist/chunks/publish-CF7GVZK3.js +128 -0
  75. package/dist/chunks/query-KWKO7VWO.js +954 -0
  76. package/dist/chunks/reorder-GU65YMIN.js +259 -0
  77. package/dist/chunks/restore-Q7ENGWVJ.js +158 -0
  78. package/dist/chunks/routes-Q5CWG44T.js +20 -0
  79. package/dist/chunks/schema-PJKLO2K2.js +176 -0
  80. package/dist/chunks/stamp-RTPE2EBB.js +15 -0
  81. package/dist/chunks/types-563KUQRV.js +108 -0
  82. package/dist/chunks/update-route-version-E3V47KNI.js +13 -0
  83. package/dist/commands/build/index.js +1597 -0
  84. package/dist/commands/deploy/index.js +1711 -0
  85. package/dist/commands/dev/builder-worker.cjs +95 -0
  86. package/dist/commands/dev/index.js +20810 -0
  87. package/dist/commands/env/index.js +2154 -0
  88. package/dist/commands/link/index.js +225 -0
  89. package/dist/commands/list/index.js +528 -0
  90. package/dist/commands-bulk.js +29627 -0
  91. package/dist/get-latest-worker.cjs +272 -0
  92. package/dist/help.js +14 -0
  93. package/dist/index.js +24274 -0
  94. package/dist/vc.js +36 -0
  95. package/dist/version.mjs +1 -0
  96. package/package.json +254 -0
@@ -0,0 +1,129 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import {
8
+ __commonJS
9
+ } from "./chunk-TZ2YI2VH.js";
10
+
11
+ // ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
12
+ var require_ms = __commonJS({
13
+ "../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module) {
14
+ var s = 1e3;
15
+ var m = s * 60;
16
+ var h = m * 60;
17
+ var d = h * 24;
18
+ var w = d * 7;
19
+ var y = d * 365.25;
20
+ module.exports = function(val, options) {
21
+ options = options || {};
22
+ var type = typeof val;
23
+ if (type === "string" && val.length > 0) {
24
+ return parse(val);
25
+ } else if (type === "number" && isFinite(val)) {
26
+ return options.long ? fmtLong(val) : fmtShort(val);
27
+ }
28
+ throw new Error(
29
+ "val is not a non-empty string or a valid number. val=" + JSON.stringify(val)
30
+ );
31
+ };
32
+ function parse(str) {
33
+ str = String(str);
34
+ if (str.length > 100) {
35
+ return;
36
+ }
37
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
38
+ str
39
+ );
40
+ if (!match) {
41
+ return;
42
+ }
43
+ var n = parseFloat(match[1]);
44
+ var type = (match[2] || "ms").toLowerCase();
45
+ switch (type) {
46
+ case "years":
47
+ case "year":
48
+ case "yrs":
49
+ case "yr":
50
+ case "y":
51
+ return n * y;
52
+ case "weeks":
53
+ case "week":
54
+ case "w":
55
+ return n * w;
56
+ case "days":
57
+ case "day":
58
+ case "d":
59
+ return n * d;
60
+ case "hours":
61
+ case "hour":
62
+ case "hrs":
63
+ case "hr":
64
+ case "h":
65
+ return n * h;
66
+ case "minutes":
67
+ case "minute":
68
+ case "mins":
69
+ case "min":
70
+ case "m":
71
+ return n * m;
72
+ case "seconds":
73
+ case "second":
74
+ case "secs":
75
+ case "sec":
76
+ case "s":
77
+ return n * s;
78
+ case "milliseconds":
79
+ case "millisecond":
80
+ case "msecs":
81
+ case "msec":
82
+ case "ms":
83
+ return n;
84
+ default:
85
+ return void 0;
86
+ }
87
+ }
88
+ function fmtShort(ms) {
89
+ var msAbs = Math.abs(ms);
90
+ if (msAbs >= d) {
91
+ return Math.round(ms / d) + "d";
92
+ }
93
+ if (msAbs >= h) {
94
+ return Math.round(ms / h) + "h";
95
+ }
96
+ if (msAbs >= m) {
97
+ return Math.round(ms / m) + "m";
98
+ }
99
+ if (msAbs >= s) {
100
+ return Math.round(ms / s) + "s";
101
+ }
102
+ return ms + "ms";
103
+ }
104
+ function fmtLong(ms) {
105
+ var msAbs = Math.abs(ms);
106
+ if (msAbs >= d) {
107
+ return plural(ms, msAbs, d, "day");
108
+ }
109
+ if (msAbs >= h) {
110
+ return plural(ms, msAbs, h, "hour");
111
+ }
112
+ if (msAbs >= m) {
113
+ return plural(ms, msAbs, m, "minute");
114
+ }
115
+ if (msAbs >= s) {
116
+ return plural(ms, msAbs, s, "second");
117
+ }
118
+ return ms + " ms";
119
+ }
120
+ function plural(ms, msAbs, n, name) {
121
+ var isPlural = msAbs >= n * 1.5;
122
+ return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
123
+ }
124
+ }
125
+ });
126
+
127
+ export {
128
+ require_ms
129
+ };
@@ -0,0 +1,91 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __dirname_ } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ const __filename = __fileURLToPath(import.meta.url);
6
+ const __dirname = __dirname_(__filename);
7
+ import {
8
+ require_lib
9
+ } from "./chunk-AQLVWVEN.js";
10
+ import {
11
+ packageName
12
+ } from "./chunk-ZLCMHY2G.js";
13
+ import {
14
+ __toESM
15
+ } from "./chunk-TZ2YI2VH.js";
16
+
17
+ // src/util/get-update-command.ts
18
+ var import_fs_extra = __toESM(require_lib(), 1);
19
+ import { sep, dirname, join, resolve } from "path";
20
+ import { scanParentDirs } from "@vercel/build-utils";
21
+ async function getConfigPrefix() {
22
+ const paths = [
23
+ process.env.npm_config_userconfig || process.env.NPM_CONFIG_USERCONFIG,
24
+ join(process.env.HOME || "/", ".npmrc"),
25
+ process.env.npm_config_globalconfig || process.env.NPM_CONFIG_GLOBALCONFIG
26
+ ].filter(Boolean);
27
+ for (const configPath of paths) {
28
+ if (!configPath) {
29
+ continue;
30
+ }
31
+ const content = await (0, import_fs_extra.readFile)(configPath).then((buffer) => buffer.toString()).catch(() => null);
32
+ if (content) {
33
+ const [prefix] = content.split("\n").map((line) => line && line.trim()).filter((line) => line && line.startsWith("prefix")).map((line) => line.slice(line.indexOf("=") + 1).trim());
34
+ if (prefix) {
35
+ return prefix;
36
+ }
37
+ }
38
+ }
39
+ return null;
40
+ }
41
+ async function isGlobal() {
42
+ try {
43
+ if (dirname(process.argv[0]) === dirname(process.argv[1])) {
44
+ return true;
45
+ }
46
+ const isWindows = process.platform === "win32";
47
+ const defaultPath = isWindows ? process.env.APPDATA : "/usr/local/lib";
48
+ const installPath = await (0, import_fs_extra.realpath)(resolve(__dirname));
49
+ if (installPath.includes(["", "yarn", "global", "node_modules", ""].join(sep))) {
50
+ return true;
51
+ }
52
+ if (installPath.includes(["", "pnpm", "global", ""].join(sep))) {
53
+ return true;
54
+ }
55
+ if (installPath.includes(["", "fnm", "node-versions", ""].join(sep))) {
56
+ return true;
57
+ }
58
+ const prefixPath = process.env.PREFIX || process.env.npm_config_prefix || process.env.NPM_CONFIG_PREFIX || await getConfigPrefix() || defaultPath;
59
+ if (!prefixPath) {
60
+ return true;
61
+ }
62
+ return installPath.startsWith(await (0, import_fs_extra.realpath)(prefixPath));
63
+ } catch (_) {
64
+ return true;
65
+ }
66
+ }
67
+ async function getUpdateCommand() {
68
+ const pkgAndVersion = `${packageName}@latest`;
69
+ const entrypoint = await (0, import_fs_extra.realpath)(process.argv[1]);
70
+ let { cliType, lockfilePath } = await scanParentDirs(
71
+ dirname(dirname(entrypoint))
72
+ );
73
+ if (!lockfilePath) {
74
+ cliType = "npm";
75
+ }
76
+ const yarn = cliType === "yarn";
77
+ let install = yarn ? "add" : "i";
78
+ if (await isGlobal()) {
79
+ if (yarn) {
80
+ install = "global add";
81
+ } else {
82
+ install = "i -g";
83
+ }
84
+ }
85
+ return `${cliType} ${install} ${pkgAndVersion}`;
86
+ }
87
+
88
+ export {
89
+ isGlobal,
90
+ getUpdateCommand
91
+ };