vercel 23.1.3-canary.40 → 23.1.3-canary.41
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/dist/index.js +162 -174
- package/package.json +4 -4
package/dist/index.js
CHANGED
@@ -216934,7 +216934,6 @@ const fs_extra_1 = __importDefault(__nested_webpack_require_905801__(5392));
|
|
216934
216934
|
const path_1 = __nested_webpack_require_905801__(5622);
|
216935
216935
|
const glob_1 = __importDefault(__nested_webpack_require_905801__(4240));
|
216936
216936
|
const normalize_path_1 = __nested_webpack_require_905801__(6261);
|
216937
|
-
const detect_builders_1 = __nested_webpack_require_905801__(4246);
|
216938
216937
|
const lambda_1 = __nested_webpack_require_905801__(6721);
|
216939
216938
|
const minimatch_1 = __importDefault(__nested_webpack_require_905801__(9566));
|
216940
216939
|
/**
|
@@ -216945,13 +216944,12 @@ const minimatch_1 = __importDefault(__nested_webpack_require_905801__(9566));
|
|
216945
216944
|
function convertRuntimeToPlugin(buildRuntime, ext) {
|
216946
216945
|
// This `build()` signature should match `plugin.build()` signature in `vercel build`.
|
216947
216946
|
return async function build({ vercelConfig, workPath, }) {
|
216948
|
-
var _a;
|
216949
216947
|
const opts = { cwd: workPath };
|
216950
216948
|
const files = await glob_1.default('**', opts);
|
216951
216949
|
delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
|
216952
216950
|
const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
|
216953
216951
|
const pages = {};
|
216954
|
-
const { functions = {}
|
216952
|
+
const { functions = {} } = vercelConfig;
|
216955
216953
|
const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
|
216956
216954
|
await fs_extra_1.default.ensureDir(traceDir);
|
216957
216955
|
for (const entrypoint of Object.keys(entrypoints)) {
|
@@ -216974,7 +216972,7 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
216974
216972
|
maxDuration: output.maxDuration,
|
216975
216973
|
environment: output.environment,
|
216976
216974
|
allowQuery: output.allowQuery,
|
216977
|
-
regions: output.regions,
|
216975
|
+
//regions: output.regions,
|
216978
216976
|
};
|
216979
216977
|
// @ts-ignore This symbol is a private API
|
216980
216978
|
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
@@ -217008,53 +217006,6 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
217008
217006
|
await fs_extra_1.default.writeFile(nft, json);
|
217009
217007
|
}
|
217010
217008
|
await updateFunctionsManifest({ vercelConfig, workPath, pages });
|
217011
|
-
const { warnings, errors,
|
217012
|
-
//defaultRoutes,
|
217013
|
-
redirectRoutes,
|
217014
|
-
//rewriteRoutes,
|
217015
|
-
dynamicRoutesWithKeys,
|
217016
|
-
// errorRoutes, already handled by pages404
|
217017
|
-
} = await detect_builders_1.detectBuilders(Object.keys(files), null, {
|
217018
|
-
tag: 'latest',
|
217019
|
-
functions: functions,
|
217020
|
-
projectSettings: undefined,
|
217021
|
-
featHandleMiss: true,
|
217022
|
-
cleanUrls,
|
217023
|
-
trailingSlash,
|
217024
|
-
});
|
217025
|
-
if (errors) {
|
217026
|
-
throw new Error(errors[0].message);
|
217027
|
-
}
|
217028
|
-
if (warnings) {
|
217029
|
-
warnings.forEach(warning => console.warn(warning.message, warning.link));
|
217030
|
-
}
|
217031
|
-
const redirects = (_a = redirectRoutes === null || redirectRoutes === void 0 ? void 0 : redirectRoutes.filter(r => r.src && 'headers' in r)) === null || _a === void 0 ? void 0 : _a.map(r => {
|
217032
|
-
var _a;
|
217033
|
-
return ({
|
217034
|
-
source: r.src || '',
|
217035
|
-
destination: 'headers' in r && ((_a = r.headers) === null || _a === void 0 ? void 0 : _a.Location) ? r.headers.Location : '',
|
217036
|
-
statusCode: 'status' in r && r.status ? r.status : 307,
|
217037
|
-
regex: r.src || '',
|
217038
|
-
});
|
217039
|
-
});
|
217040
|
-
const dynamicRoutes = dynamicRoutesWithKeys === null || dynamicRoutesWithKeys === void 0 ? void 0 : dynamicRoutesWithKeys.map(r => {
|
217041
|
-
const keys = Object.keys(r.routeKeys);
|
217042
|
-
return {
|
217043
|
-
page: '/' + r.fileName.slice(0, -ext.length),
|
217044
|
-
regex: r.regex,
|
217045
|
-
routeKeys: r.routeKeys,
|
217046
|
-
namedRegex: r.regex
|
217047
|
-
.split('([^/]+)')
|
217048
|
-
.map((str, i) => str + (keys[i] ? `(?<${keys[i]}>[^/]+)` : ''))
|
217049
|
-
.join(''),
|
217050
|
-
};
|
217051
|
-
});
|
217052
|
-
await updateRoutesManifest({
|
217053
|
-
workPath,
|
217054
|
-
redirects,
|
217055
|
-
rewrites: [],
|
217056
|
-
dynamicRoutes,
|
217057
|
-
});
|
217058
217009
|
};
|
217059
217010
|
}
|
217060
217011
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
@@ -217151,12 +217102,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217151
217102
|
/***/ }),
|
217152
217103
|
|
217153
217104
|
/***/ 1868:
|
217154
|
-
/***/ ((__unused_webpack_module, exports,
|
217105
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_913374__) => {
|
217155
217106
|
|
217156
217107
|
"use strict";
|
217157
217108
|
|
217158
217109
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217159
|
-
const _1 =
|
217110
|
+
const _1 = __nested_webpack_require_913374__(2855);
|
217160
217111
|
function debug(message, ...additional) {
|
217161
217112
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217162
217113
|
console.log(message, ...additional);
|
@@ -217168,7 +217119,7 @@ exports.default = debug;
|
|
217168
217119
|
/***/ }),
|
217169
217120
|
|
217170
217121
|
/***/ 4246:
|
217171
|
-
/***/ (function(__unused_webpack_module, exports,
|
217122
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_913759__) {
|
217172
217123
|
|
217173
217124
|
"use strict";
|
217174
217125
|
|
@@ -217177,11 +217128,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217177
217128
|
};
|
217178
217129
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217179
217130
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217180
|
-
const minimatch_1 = __importDefault(
|
217181
|
-
const semver_1 =
|
217182
|
-
const path_1 =
|
217183
|
-
const frameworks_1 = __importDefault(
|
217184
|
-
const _1 =
|
217131
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_913759__(9566));
|
217132
|
+
const semver_1 = __nested_webpack_require_913759__(2879);
|
217133
|
+
const path_1 = __nested_webpack_require_913759__(5622);
|
217134
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_913759__(8438));
|
217135
|
+
const _1 = __nested_webpack_require_913759__(2855);
|
217185
217136
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217186
217137
|
// We need to sort the file paths by alphabet to make
|
217187
217138
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -217239,7 +217190,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217239
217190
|
redirectRoutes: null,
|
217240
217191
|
rewriteRoutes: null,
|
217241
217192
|
errorRoutes: null,
|
217242
|
-
|
217193
|
+
limitedRoutes: null,
|
217243
217194
|
};
|
217244
217195
|
}
|
217245
217196
|
const sortedFiles = files.sort(sortFiles);
|
@@ -217273,12 +217224,11 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217273
217224
|
let fallbackEntrypoint = null;
|
217274
217225
|
const apiRoutes = [];
|
217275
217226
|
const dynamicRoutes = [];
|
217276
|
-
const dynamicRoutesWithKeys = [];
|
217277
217227
|
// API
|
217278
217228
|
for (const fileName of sortedFiles) {
|
217279
217229
|
const apiBuilder = maybeGetApiBuilder(fileName, apiMatches, options);
|
217280
217230
|
if (apiBuilder) {
|
217281
|
-
const { routeError, apiRoute, isDynamic
|
217231
|
+
const { routeError, apiRoute, isDynamic } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
|
217282
217232
|
if (routeError) {
|
217283
217233
|
return {
|
217284
217234
|
builders: null,
|
@@ -217288,18 +217238,13 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217288
217238
|
redirectRoutes: null,
|
217289
217239
|
rewriteRoutes: null,
|
217290
217240
|
errorRoutes: null,
|
217291
|
-
|
217241
|
+
limitedRoutes: null,
|
217292
217242
|
};
|
217293
217243
|
}
|
217294
217244
|
if (apiRoute) {
|
217295
217245
|
apiRoutes.push(apiRoute);
|
217296
217246
|
if (isDynamic) {
|
217297
217247
|
dynamicRoutes.push(apiRoute);
|
217298
|
-
dynamicRoutesWithKeys.push({
|
217299
|
-
fileName,
|
217300
|
-
regex: apiRoute.src,
|
217301
|
-
routeKeys,
|
217302
|
-
});
|
217303
217248
|
}
|
217304
217249
|
}
|
217305
217250
|
addToUsedFunctions(apiBuilder);
|
@@ -217348,7 +217293,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217348
217293
|
defaultRoutes: null,
|
217349
217294
|
rewriteRoutes: null,
|
217350
217295
|
errorRoutes: null,
|
217351
|
-
|
217296
|
+
limitedRoutes: null,
|
217352
217297
|
};
|
217353
217298
|
}
|
217354
217299
|
// If `outputDirectory` is an empty string,
|
@@ -217385,7 +217330,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217385
217330
|
defaultRoutes: null,
|
217386
217331
|
rewriteRoutes: null,
|
217387
217332
|
errorRoutes: null,
|
217388
|
-
|
217333
|
+
limitedRoutes: null,
|
217389
217334
|
};
|
217390
217335
|
}
|
217391
217336
|
const builders = [];
|
@@ -217404,7 +217349,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217404
217349
|
});
|
217405
217350
|
}
|
217406
217351
|
}
|
217407
|
-
const routesResult = getRouteResult(apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
|
217352
|
+
const routesResult = getRouteResult(pkg, apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
|
217408
217353
|
return {
|
217409
217354
|
warnings,
|
217410
217355
|
builders: builders.length ? builders : null,
|
@@ -217413,7 +217358,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217413
217358
|
defaultRoutes: routesResult.defaultRoutes,
|
217414
217359
|
rewriteRoutes: routesResult.rewriteRoutes,
|
217415
217360
|
errorRoutes: routesResult.errorRoutes,
|
217416
|
-
|
217361
|
+
limitedRoutes: routesResult.limitedRoutes,
|
217417
217362
|
};
|
217418
217363
|
}
|
217419
217364
|
exports.detectBuilders = detectBuilders;
|
@@ -217668,7 +217613,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217668
217613
|
return {
|
217669
217614
|
apiRoute: null,
|
217670
217615
|
isDynamic: false,
|
217671
|
-
routeKeys: {},
|
217672
217616
|
routeError: {
|
217673
217617
|
code: 'conflicting_path_segment',
|
217674
217618
|
message: `The segment "${conflictingSegment}" occurs more than ` +
|
@@ -217683,7 +217627,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217683
217627
|
return {
|
217684
217628
|
apiRoute: null,
|
217685
217629
|
isDynamic: false,
|
217686
|
-
routeKeys: {},
|
217687
217630
|
routeError: {
|
217688
217631
|
code: 'conflicting_file_path',
|
217689
217632
|
message: `Two or more files have conflicting paths or names. ` +
|
@@ -217696,7 +217639,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217696
217639
|
return {
|
217697
217640
|
apiRoute: out.route,
|
217698
217641
|
isDynamic: out.isDynamic,
|
217699
|
-
routeKeys: out.routeKeys,
|
217700
217642
|
routeError: null,
|
217701
217643
|
};
|
217702
217644
|
}
|
@@ -217806,7 +217748,6 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217806
217748
|
const parts = filePath.split('/');
|
217807
217749
|
let counter = 1;
|
217808
217750
|
const query = [];
|
217809
|
-
const routeKeys = {};
|
217810
217751
|
let isDynamic = false;
|
217811
217752
|
const srcParts = parts.map((segment, i) => {
|
217812
217753
|
const name = getSegmentName(segment);
|
@@ -217814,7 +217755,6 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217814
217755
|
if (name !== null) {
|
217815
217756
|
// We can't use `URLSearchParams` because `$` would get escaped
|
217816
217757
|
query.push(`${name}=$${counter++}`);
|
217817
|
-
routeKeys[name] = name;
|
217818
217758
|
isDynamic = true;
|
217819
217759
|
return `([^/]+)`;
|
217820
217760
|
}
|
@@ -217857,25 +217797,53 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217857
217797
|
dest: `/${filePath}${queryString}`,
|
217858
217798
|
};
|
217859
217799
|
}
|
217860
|
-
return { route, isDynamic
|
217800
|
+
return { route, isDynamic };
|
217861
217801
|
}
|
217862
|
-
function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
217802
|
+
function getRouteResult(pkg, apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
217863
217803
|
var _a, _b;
|
217804
|
+
const deps = Object.assign({}, pkg === null || pkg === void 0 ? void 0 : pkg.dependencies, pkg === null || pkg === void 0 ? void 0 : pkg.devDependencies);
|
217864
217805
|
const defaultRoutes = [];
|
217865
217806
|
const redirectRoutes = [];
|
217866
217807
|
const rewriteRoutes = [];
|
217867
217808
|
const errorRoutes = [];
|
217809
|
+
const limitedRoutes = {
|
217810
|
+
defaultRoutes: [],
|
217811
|
+
redirectRoutes: [],
|
217812
|
+
rewriteRoutes: [],
|
217813
|
+
};
|
217868
217814
|
const framework = ((_a = frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.config) === null || _a === void 0 ? void 0 : _a.framework) || '';
|
217869
217815
|
const isNextjs = framework === 'nextjs' || _1.isOfficialRuntime('next', frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.use);
|
217870
217816
|
const ignoreRuntimes = (_b = slugToFramework.get(framework)) === null || _b === void 0 ? void 0 : _b.ignoreRuntimes;
|
217871
217817
|
if (apiRoutes && apiRoutes.length > 0) {
|
217872
217818
|
if (options.featHandleMiss) {
|
217819
|
+
// Exclude extension names if the corresponding plugin is not found in package.json
|
217820
|
+
// detectBuilders({ignoreRoutesForBuilders: ['@vercel/python']})
|
217821
|
+
// return a copy of routes.
|
217822
|
+
// We should exclud errorRoutes and
|
217873
217823
|
const extSet = detectApiExtensions(apiBuilders);
|
217824
|
+
const withTag = options.tag ? `@${options.tag}` : '';
|
217825
|
+
const extSetLimited = detectApiExtensions(apiBuilders.filter(b => {
|
217826
|
+
if (b.use === `@vercel/python${withTag}` &&
|
217827
|
+
!('vercel-plugin-python' in deps)) {
|
217828
|
+
return false;
|
217829
|
+
}
|
217830
|
+
if (b.use === `@vercel/go${withTag}` &&
|
217831
|
+
!('vercel-plugin-go' in deps)) {
|
217832
|
+
return false;
|
217833
|
+
}
|
217834
|
+
if (b.use === `@vercel/ruby${withTag}` &&
|
217835
|
+
!('vercel-plugin-ruby' in deps)) {
|
217836
|
+
return false;
|
217837
|
+
}
|
217838
|
+
return true;
|
217839
|
+
}));
|
217874
217840
|
if (extSet.size > 0) {
|
217875
|
-
const
|
217841
|
+
const extGroup = `(?:\\.(?:${Array.from(extSet)
|
217876
217842
|
.map(ext => ext.slice(1))
|
217877
|
-
.join('|')
|
217878
|
-
const
|
217843
|
+
.join('|')}))`;
|
217844
|
+
const extGroupLimited = `(?:\\.(?:${Array.from(extSetLimited)
|
217845
|
+
.map(ext => ext.slice(1))
|
217846
|
+
.join('|')}))`;
|
217879
217847
|
if (options.cleanUrls) {
|
217880
217848
|
redirectRoutes.push({
|
217881
217849
|
src: `^/(api(?:.+)?)/index${extGroup}?/?$`,
|
@@ -217889,6 +217857,18 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217889
217857
|
},
|
217890
217858
|
status: 308,
|
217891
217859
|
});
|
217860
|
+
limitedRoutes.redirectRoutes.push({
|
217861
|
+
src: `^/(api(?:.+)?)/index${extGroupLimited}?/?$`,
|
217862
|
+
headers: { Location: options.trailingSlash ? '/$1/' : '/$1' },
|
217863
|
+
status: 308,
|
217864
|
+
});
|
217865
|
+
limitedRoutes.redirectRoutes.push({
|
217866
|
+
src: `^/api/(.+)${extGroupLimited}/?$`,
|
217867
|
+
headers: {
|
217868
|
+
Location: options.trailingSlash ? '/api/$1/' : '/api/$1',
|
217869
|
+
},
|
217870
|
+
status: 308,
|
217871
|
+
});
|
217892
217872
|
}
|
217893
217873
|
else {
|
217894
217874
|
defaultRoutes.push({ handle: 'miss' });
|
@@ -217897,9 +217877,16 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217897
217877
|
dest: '/api/$1',
|
217898
217878
|
check: true,
|
217899
217879
|
});
|
217880
|
+
limitedRoutes.defaultRoutes.push({ handle: 'miss' });
|
217881
|
+
limitedRoutes.defaultRoutes.push({
|
217882
|
+
src: `^/api/(.+)${extGroupLimited}$`,
|
217883
|
+
dest: '/api/$1',
|
217884
|
+
check: true,
|
217885
|
+
});
|
217900
217886
|
}
|
217901
217887
|
}
|
217902
217888
|
rewriteRoutes.push(...dynamicRoutes);
|
217889
|
+
limitedRoutes.rewriteRoutes.push(...dynamicRoutes);
|
217903
217890
|
if (typeof ignoreRuntimes === 'undefined') {
|
217904
217891
|
// This route is only necessary to hide the directory listing
|
217905
217892
|
// to avoid enumerating serverless function names.
|
@@ -217944,6 +217931,7 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217944
217931
|
redirectRoutes,
|
217945
217932
|
rewriteRoutes,
|
217946
217933
|
errorRoutes,
|
217934
|
+
limitedRoutes,
|
217947
217935
|
};
|
217948
217936
|
}
|
217949
217937
|
function sortFilesBySegmentCount(fileA, fileB) {
|
@@ -218203,7 +218191,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218203
218191
|
/***/ }),
|
218204
218192
|
|
218205
218193
|
/***/ 2397:
|
218206
|
-
/***/ (function(__unused_webpack_module, exports,
|
218194
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953143__) {
|
218207
218195
|
|
218208
218196
|
"use strict";
|
218209
218197
|
|
@@ -218211,8 +218199,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218211
218199
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218212
218200
|
};
|
218213
218201
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218214
|
-
const assert_1 = __importDefault(
|
218215
|
-
const into_stream_1 = __importDefault(
|
218202
|
+
const assert_1 = __importDefault(__nested_webpack_require_953143__(2357));
|
218203
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_953143__(6130));
|
218216
218204
|
class FileBlob {
|
218217
218205
|
constructor({ mode = 0o100644, contentType, data }) {
|
218218
218206
|
assert_1.default(typeof mode === 'number');
|
@@ -218244,7 +218232,7 @@ exports.default = FileBlob;
|
|
218244
218232
|
/***/ }),
|
218245
218233
|
|
218246
218234
|
/***/ 9331:
|
218247
|
-
/***/ (function(__unused_webpack_module, exports,
|
218235
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_954595__) {
|
218248
218236
|
|
218249
218237
|
"use strict";
|
218250
218238
|
|
@@ -218252,11 +218240,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218252
218240
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218253
218241
|
};
|
218254
218242
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218255
|
-
const assert_1 = __importDefault(
|
218256
|
-
const fs_extra_1 = __importDefault(
|
218257
|
-
const multistream_1 = __importDefault(
|
218258
|
-
const path_1 = __importDefault(
|
218259
|
-
const async_sema_1 = __importDefault(
|
218243
|
+
const assert_1 = __importDefault(__nested_webpack_require_954595__(2357));
|
218244
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_954595__(5392));
|
218245
|
+
const multistream_1 = __importDefault(__nested_webpack_require_954595__(8179));
|
218246
|
+
const path_1 = __importDefault(__nested_webpack_require_954595__(5622));
|
218247
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_954595__(5758));
|
218260
218248
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218261
218249
|
class FileFsRef {
|
218262
218250
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218322,7 +218310,7 @@ exports.default = FileFsRef;
|
|
218322
218310
|
/***/ }),
|
218323
218311
|
|
218324
218312
|
/***/ 5187:
|
218325
|
-
/***/ (function(__unused_webpack_module, exports,
|
218313
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_957399__) {
|
218326
218314
|
|
218327
218315
|
"use strict";
|
218328
218316
|
|
@@ -218330,11 +218318,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218330
218318
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218331
218319
|
};
|
218332
218320
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218333
|
-
const assert_1 = __importDefault(
|
218334
|
-
const node_fetch_1 = __importDefault(
|
218335
|
-
const multistream_1 = __importDefault(
|
218336
|
-
const async_retry_1 = __importDefault(
|
218337
|
-
const async_sema_1 = __importDefault(
|
218321
|
+
const assert_1 = __importDefault(__nested_webpack_require_957399__(2357));
|
218322
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_957399__(2197));
|
218323
|
+
const multistream_1 = __importDefault(__nested_webpack_require_957399__(8179));
|
218324
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_957399__(3691));
|
218325
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_957399__(5758));
|
218338
218326
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218339
218327
|
class BailableError extends Error {
|
218340
218328
|
constructor(...args) {
|
@@ -218415,7 +218403,7 @@ exports.default = FileRef;
|
|
218415
218403
|
/***/ }),
|
218416
218404
|
|
218417
218405
|
/***/ 1611:
|
218418
|
-
/***/ (function(__unused_webpack_module, exports,
|
218406
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960800__) {
|
218419
218407
|
|
218420
218408
|
"use strict";
|
218421
218409
|
|
@@ -218424,10 +218412,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218424
218412
|
};
|
218425
218413
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218426
218414
|
exports.isSymbolicLink = void 0;
|
218427
|
-
const path_1 = __importDefault(
|
218428
|
-
const debug_1 = __importDefault(
|
218429
|
-
const file_fs_ref_1 = __importDefault(
|
218430
|
-
const fs_extra_1 =
|
218415
|
+
const path_1 = __importDefault(__nested_webpack_require_960800__(5622));
|
218416
|
+
const debug_1 = __importDefault(__nested_webpack_require_960800__(1868));
|
218417
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_960800__(9331));
|
218418
|
+
const fs_extra_1 = __nested_webpack_require_960800__(5392);
|
218431
218419
|
const S_IFMT = 61440; /* 0170000 type of file */
|
218432
218420
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
218433
218421
|
function isSymbolicLink(mode) {
|
@@ -218489,14 +218477,14 @@ exports.default = download;
|
|
218489
218477
|
/***/ }),
|
218490
218478
|
|
218491
218479
|
/***/ 3838:
|
218492
|
-
/***/ ((__unused_webpack_module, exports,
|
218480
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_963625__) => {
|
218493
218481
|
|
218494
218482
|
"use strict";
|
218495
218483
|
|
218496
218484
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218497
|
-
const path_1 =
|
218498
|
-
const os_1 =
|
218499
|
-
const fs_extra_1 =
|
218485
|
+
const path_1 = __nested_webpack_require_963625__(5622);
|
218486
|
+
const os_1 = __nested_webpack_require_963625__(2087);
|
218487
|
+
const fs_extra_1 = __nested_webpack_require_963625__(5392);
|
218500
218488
|
async function getWritableDirectory() {
|
218501
218489
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
218502
218490
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -218509,7 +218497,7 @@ exports.default = getWritableDirectory;
|
|
218509
218497
|
/***/ }),
|
218510
218498
|
|
218511
218499
|
/***/ 4240:
|
218512
|
-
/***/ (function(__unused_webpack_module, exports,
|
218500
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964205__) {
|
218513
218501
|
|
218514
218502
|
"use strict";
|
218515
218503
|
|
@@ -218517,13 +218505,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218517
218505
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218518
218506
|
};
|
218519
218507
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218520
|
-
const path_1 = __importDefault(
|
218521
|
-
const assert_1 = __importDefault(
|
218522
|
-
const glob_1 = __importDefault(
|
218523
|
-
const util_1 =
|
218524
|
-
const fs_extra_1 =
|
218525
|
-
const normalize_path_1 =
|
218526
|
-
const file_fs_ref_1 = __importDefault(
|
218508
|
+
const path_1 = __importDefault(__nested_webpack_require_964205__(5622));
|
218509
|
+
const assert_1 = __importDefault(__nested_webpack_require_964205__(2357));
|
218510
|
+
const glob_1 = __importDefault(__nested_webpack_require_964205__(1104));
|
218511
|
+
const util_1 = __nested_webpack_require_964205__(1669);
|
218512
|
+
const fs_extra_1 = __nested_webpack_require_964205__(5392);
|
218513
|
+
const normalize_path_1 = __nested_webpack_require_964205__(6261);
|
218514
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_964205__(9331));
|
218527
218515
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
218528
218516
|
async function glob(pattern, opts, mountpoint) {
|
218529
218517
|
let options;
|
@@ -218569,7 +218557,7 @@ exports.default = glob;
|
|
218569
218557
|
/***/ }),
|
218570
218558
|
|
218571
218559
|
/***/ 7903:
|
218572
|
-
/***/ (function(__unused_webpack_module, exports,
|
218560
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966401__) {
|
218573
218561
|
|
218574
218562
|
"use strict";
|
218575
218563
|
|
@@ -218578,9 +218566,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218578
218566
|
};
|
218579
218567
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218580
218568
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
218581
|
-
const semver_1 =
|
218582
|
-
const errors_1 =
|
218583
|
-
const debug_1 = __importDefault(
|
218569
|
+
const semver_1 = __nested_webpack_require_966401__(2879);
|
218570
|
+
const errors_1 = __nested_webpack_require_966401__(3983);
|
218571
|
+
const debug_1 = __importDefault(__nested_webpack_require_966401__(1868));
|
218584
218572
|
const allOptions = [
|
218585
218573
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
218586
218574
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -218674,7 +218662,7 @@ exports.normalizePath = normalizePath;
|
|
218674
218662
|
/***/ }),
|
218675
218663
|
|
218676
218664
|
/***/ 7792:
|
218677
|
-
/***/ (function(__unused_webpack_module, exports,
|
218665
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970269__) {
|
218678
218666
|
|
218679
218667
|
"use strict";
|
218680
218668
|
|
@@ -218683,9 +218671,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218683
218671
|
};
|
218684
218672
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218685
218673
|
exports.readConfigFile = void 0;
|
218686
|
-
const js_yaml_1 = __importDefault(
|
218687
|
-
const toml_1 = __importDefault(
|
218688
|
-
const fs_extra_1 =
|
218674
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_970269__(6540));
|
218675
|
+
const toml_1 = __importDefault(__nested_webpack_require_970269__(9434));
|
218676
|
+
const fs_extra_1 = __nested_webpack_require_970269__(5392);
|
218689
218677
|
async function readFileOrNull(file) {
|
218690
218678
|
try {
|
218691
218679
|
const data = await fs_extra_1.readFile(file);
|
@@ -218740,7 +218728,7 @@ exports.default = rename;
|
|
218740
218728
|
/***/ }),
|
218741
218729
|
|
218742
218730
|
/***/ 1442:
|
218743
|
-
/***/ (function(__unused_webpack_module, exports,
|
218731
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_972062__) {
|
218744
218732
|
|
218745
218733
|
"use strict";
|
218746
218734
|
|
@@ -218749,14 +218737,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218749
218737
|
};
|
218750
218738
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218751
218739
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
218752
|
-
const assert_1 = __importDefault(
|
218753
|
-
const fs_extra_1 = __importDefault(
|
218754
|
-
const path_1 = __importDefault(
|
218755
|
-
const debug_1 = __importDefault(
|
218756
|
-
const cross_spawn_1 = __importDefault(
|
218757
|
-
const util_1 =
|
218758
|
-
const errors_1 =
|
218759
|
-
const node_version_1 =
|
218740
|
+
const assert_1 = __importDefault(__nested_webpack_require_972062__(2357));
|
218741
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_972062__(5392));
|
218742
|
+
const path_1 = __importDefault(__nested_webpack_require_972062__(5622));
|
218743
|
+
const debug_1 = __importDefault(__nested_webpack_require_972062__(1868));
|
218744
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_972062__(7618));
|
218745
|
+
const util_1 = __nested_webpack_require_972062__(1669);
|
218746
|
+
const errors_1 = __nested_webpack_require_972062__(3983);
|
218747
|
+
const node_version_1 = __nested_webpack_require_972062__(7903);
|
218760
218748
|
function spawnAsync(command, args, opts = {}) {
|
218761
218749
|
return new Promise((resolve, reject) => {
|
218762
218750
|
const stderrLogs = [];
|
@@ -219067,7 +219055,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219067
219055
|
/***/ }),
|
219068
219056
|
|
219069
219057
|
/***/ 2560:
|
219070
|
-
/***/ (function(__unused_webpack_module, exports,
|
219058
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986052__) {
|
219071
219059
|
|
219072
219060
|
"use strict";
|
219073
219061
|
|
@@ -219075,7 +219063,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219075
219063
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219076
219064
|
};
|
219077
219065
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219078
|
-
const end_of_stream_1 = __importDefault(
|
219066
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_986052__(687));
|
219079
219067
|
function streamToBuffer(stream) {
|
219080
219068
|
return new Promise((resolve, reject) => {
|
219081
219069
|
const buffers = [];
|
@@ -219104,7 +219092,7 @@ exports.default = streamToBuffer;
|
|
219104
219092
|
/***/ }),
|
219105
219093
|
|
219106
219094
|
/***/ 2855:
|
219107
|
-
/***/ (function(__unused_webpack_module, exports,
|
219095
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987120__) {
|
219108
219096
|
|
219109
219097
|
"use strict";
|
219110
219098
|
|
@@ -219135,28 +219123,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219135
219123
|
};
|
219136
219124
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219137
219125
|
exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
219138
|
-
const file_blob_1 = __importDefault(
|
219126
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_987120__(2397));
|
219139
219127
|
exports.FileBlob = file_blob_1.default;
|
219140
|
-
const file_fs_ref_1 = __importDefault(
|
219128
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_987120__(9331));
|
219141
219129
|
exports.FileFsRef = file_fs_ref_1.default;
|
219142
|
-
const file_ref_1 = __importDefault(
|
219130
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_987120__(5187));
|
219143
219131
|
exports.FileRef = file_ref_1.default;
|
219144
|
-
const lambda_1 =
|
219132
|
+
const lambda_1 = __nested_webpack_require_987120__(6721);
|
219145
219133
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219146
219134
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219147
219135
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219148
|
-
const prerender_1 =
|
219136
|
+
const prerender_1 = __nested_webpack_require_987120__(2850);
|
219149
219137
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219150
|
-
const download_1 = __importStar(
|
219138
|
+
const download_1 = __importStar(__nested_webpack_require_987120__(1611));
|
219151
219139
|
exports.download = download_1.default;
|
219152
219140
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219153
|
-
const get_writable_directory_1 = __importDefault(
|
219141
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_987120__(3838));
|
219154
219142
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219155
|
-
const glob_1 = __importDefault(
|
219143
|
+
const glob_1 = __importDefault(__nested_webpack_require_987120__(4240));
|
219156
219144
|
exports.glob = glob_1.default;
|
219157
|
-
const rename_1 = __importDefault(
|
219145
|
+
const rename_1 = __importDefault(__nested_webpack_require_987120__(6718));
|
219158
219146
|
exports.rename = rename_1.default;
|
219159
|
-
const run_user_scripts_1 =
|
219147
|
+
const run_user_scripts_1 = __nested_webpack_require_987120__(1442);
|
219160
219148
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219161
219149
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219162
219150
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219173,36 +219161,36 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219173
219161
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219174
219162
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219175
219163
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219176
|
-
const node_version_1 =
|
219164
|
+
const node_version_1 = __nested_webpack_require_987120__(7903);
|
219177
219165
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219178
219166
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219179
|
-
const errors_1 =
|
219180
|
-
const stream_to_buffer_1 = __importDefault(
|
219167
|
+
const errors_1 = __nested_webpack_require_987120__(3983);
|
219168
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_987120__(2560));
|
219181
219169
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219182
|
-
const should_serve_1 = __importDefault(
|
219170
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_987120__(2564));
|
219183
219171
|
exports.shouldServe = should_serve_1.default;
|
219184
|
-
const debug_1 = __importDefault(
|
219172
|
+
const debug_1 = __importDefault(__nested_webpack_require_987120__(1868));
|
219185
219173
|
exports.debug = debug_1.default;
|
219186
|
-
var detect_builders_1 =
|
219174
|
+
var detect_builders_1 = __nested_webpack_require_987120__(4246);
|
219187
219175
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219188
219176
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219189
219177
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219190
219178
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219191
|
-
var detect_framework_1 =
|
219179
|
+
var detect_framework_1 = __nested_webpack_require_987120__(5224);
|
219192
219180
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219193
|
-
var filesystem_1 =
|
219181
|
+
var filesystem_1 = __nested_webpack_require_987120__(461);
|
219194
219182
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219195
|
-
var read_config_file_1 =
|
219183
|
+
var read_config_file_1 = __nested_webpack_require_987120__(7792);
|
219196
219184
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219197
|
-
var normalize_path_1 =
|
219185
|
+
var normalize_path_1 = __nested_webpack_require_987120__(6261);
|
219198
219186
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219199
|
-
var convert_runtime_to_plugin_1 =
|
219187
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_987120__(7276);
|
219200
219188
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219201
219189
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219202
219190
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219203
|
-
__exportStar(
|
219204
|
-
__exportStar(
|
219205
|
-
__exportStar(
|
219191
|
+
__exportStar(__nested_webpack_require_987120__(2416), exports);
|
219192
|
+
__exportStar(__nested_webpack_require_987120__(5748), exports);
|
219193
|
+
__exportStar(__nested_webpack_require_987120__(3983), exports);
|
219206
219194
|
/**
|
219207
219195
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219208
219196
|
*/
|
@@ -219247,7 +219235,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
219247
219235
|
/***/ }),
|
219248
219236
|
|
219249
219237
|
/***/ 6721:
|
219250
|
-
/***/ (function(__unused_webpack_module, exports,
|
219238
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997584__) {
|
219251
219239
|
|
219252
219240
|
"use strict";
|
219253
219241
|
|
@@ -219256,13 +219244,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219256
219244
|
};
|
219257
219245
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219258
219246
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
219259
|
-
const assert_1 = __importDefault(
|
219260
|
-
const async_sema_1 = __importDefault(
|
219261
|
-
const yazl_1 =
|
219262
|
-
const minimatch_1 = __importDefault(
|
219263
|
-
const fs_extra_1 =
|
219264
|
-
const download_1 =
|
219265
|
-
const stream_to_buffer_1 = __importDefault(
|
219247
|
+
const assert_1 = __importDefault(__nested_webpack_require_997584__(2357));
|
219248
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_997584__(5758));
|
219249
|
+
const yazl_1 = __nested_webpack_require_997584__(1223);
|
219250
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_997584__(9566));
|
219251
|
+
const fs_extra_1 = __nested_webpack_require_997584__(5392);
|
219252
|
+
const download_1 = __nested_webpack_require_997584__(1611);
|
219253
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_997584__(2560));
|
219266
219254
|
exports.FILES_SYMBOL = Symbol('files');
|
219267
219255
|
class Lambda {
|
219268
219256
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -219491,12 +219479,12 @@ exports.buildsSchema = {
|
|
219491
219479
|
/***/ }),
|
219492
219480
|
|
219493
219481
|
/***/ 2564:
|
219494
|
-
/***/ ((__unused_webpack_module, exports,
|
219482
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006094__) => {
|
219495
219483
|
|
219496
219484
|
"use strict";
|
219497
219485
|
|
219498
219486
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219499
|
-
const path_1 =
|
219487
|
+
const path_1 = __nested_webpack_require_1006094__(5622);
|
219500
219488
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
219501
219489
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
219502
219490
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -219725,7 +219713,7 @@ module.exports = __webpack_require__(78761);
|
|
219725
219713
|
/******/ var __webpack_module_cache__ = {};
|
219726
219714
|
/******/
|
219727
219715
|
/******/ // The require function
|
219728
|
-
/******/ function
|
219716
|
+
/******/ function __nested_webpack_require_1105733__(moduleId) {
|
219729
219717
|
/******/ // Check if module is in cache
|
219730
219718
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
219731
219719
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -219740,7 +219728,7 @@ module.exports = __webpack_require__(78761);
|
|
219740
219728
|
/******/ // Execute the module function
|
219741
219729
|
/******/ var threw = true;
|
219742
219730
|
/******/ try {
|
219743
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
219731
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1105733__);
|
219744
219732
|
/******/ threw = false;
|
219745
219733
|
/******/ } finally {
|
219746
219734
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -219753,11 +219741,11 @@ module.exports = __webpack_require__(78761);
|
|
219753
219741
|
/************************************************************************/
|
219754
219742
|
/******/ /* webpack/runtime/compat */
|
219755
219743
|
/******/
|
219756
|
-
/******/
|
219744
|
+
/******/ __nested_webpack_require_1105733__.ab = __dirname + "/";/************************************************************************/
|
219757
219745
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
219758
219746
|
/******/ // startup
|
219759
219747
|
/******/ // Load entry module and return exports
|
219760
|
-
/******/ return
|
219748
|
+
/******/ return __nested_webpack_require_1105733__(2855);
|
219761
219749
|
/******/ })()
|
219762
219750
|
;
|
219763
219751
|
|
@@ -270471,7 +270459,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270471
270459
|
/***/ ((module) => {
|
270472
270460
|
|
270473
270461
|
"use strict";
|
270474
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270462
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.41\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.23\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.7\",\"@vercel/python\":\"2.1.2-canary.0\",\"@vercel/ruby\":\"1.2.8-canary.4\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.7\",\"vercel-plugin-node\":\"1.12.2-canary.14\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@vercel/frameworks\":\"0.5.1-canary.13\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.2.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"7bd338618c80681a09cd8d4c482f1038f8676f7f\"}");
|
270475
270463
|
|
270476
270464
|
/***/ }),
|
270477
270465
|
|
@@ -270487,7 +270475,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270487
270475
|
/***/ ((module) => {
|
270488
270476
|
|
270489
270477
|
"use strict";
|
270490
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
270478
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.24\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.23\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"7bd338618c80681a09cd8d4c482f1038f8676f7f\"}");
|
270491
270479
|
|
270492
270480
|
/***/ }),
|
270493
270481
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "23.1.3-canary.
|
3
|
+
"version": "23.1.3-canary.41",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -43,14 +43,14 @@
|
|
43
43
|
"node": ">= 12"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@vercel/build-utils": "2.12.3-canary.
|
46
|
+
"@vercel/build-utils": "2.12.3-canary.23",
|
47
47
|
"@vercel/go": "1.2.4-canary.4",
|
48
48
|
"@vercel/node": "1.12.2-canary.7",
|
49
49
|
"@vercel/python": "2.1.2-canary.0",
|
50
50
|
"@vercel/ruby": "1.2.8-canary.4",
|
51
51
|
"update-notifier": "4.1.0",
|
52
52
|
"vercel-plugin-middleware": "0.0.0-canary.7",
|
53
|
-
"vercel-plugin-node": "1.12.2-canary.
|
53
|
+
"vercel-plugin-node": "1.12.2-canary.14"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"@next/env": "11.1.2",
|
@@ -184,5 +184,5 @@
|
|
184
184
|
"<rootDir>/test/**/*.test.ts"
|
185
185
|
]
|
186
186
|
},
|
187
|
-
"gitHead": "
|
187
|
+
"gitHead": "7bd338618c80681a09cd8d4c482f1038f8676f7f"
|
188
188
|
}
|