vercel 23.1.3-canary.60 → 23.1.3-canary.64
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 +312 -584
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -211342,7 +211342,6 @@ exports.frameworks = [
|
|
211342
211342
|
},
|
211343
211343
|
dependency: 'gatsby',
|
211344
211344
|
getOutputDirName: async () => 'public',
|
211345
|
-
getFsOutputDir: async () => 'public',
|
211346
211345
|
defaultRoutes: async (dirPrefix) => {
|
211347
211346
|
// This file could be generated by gatsby-plugin-now or gatsby-plugin-zeit-now
|
211348
211347
|
try {
|
@@ -211423,7 +211422,6 @@ exports.frameworks = [
|
|
211423
211422
|
},
|
211424
211423
|
},
|
211425
211424
|
dependency: 'remix',
|
211426
|
-
getFsOutputDir: async () => 'public',
|
211427
211425
|
getOutputDirName: async () => 'public',
|
211428
211426
|
defaultRoutes: [
|
211429
211427
|
{
|
@@ -211451,10 +211449,13 @@ exports.frameworks = [
|
|
211451
211449
|
source: '/build/(.*)',
|
211452
211450
|
regex: '/build/(.*)',
|
211453
211451
|
headers: [
|
211454
|
-
{
|
211452
|
+
{
|
211453
|
+
key: 'cache-control',
|
211454
|
+
value: 'public, max-age=31536000, immutable',
|
211455
|
+
},
|
211455
211456
|
],
|
211456
211457
|
},
|
211457
|
-
]
|
211458
|
+
],
|
211458
211459
|
},
|
211459
211460
|
{
|
211460
211461
|
name: 'Hexo',
|
@@ -211489,7 +211490,6 @@ exports.frameworks = [
|
|
211489
211490
|
},
|
211490
211491
|
},
|
211491
211492
|
dependency: 'hexo',
|
211492
|
-
getFsOutputDir: async () => 'public',
|
211493
211493
|
getOutputDirName: async () => 'public',
|
211494
211494
|
},
|
211495
211495
|
{
|
@@ -211525,7 +211525,6 @@ exports.frameworks = [
|
|
211525
211525
|
},
|
211526
211526
|
},
|
211527
211527
|
dependency: '@11ty/eleventy',
|
211528
|
-
getFsOutputDir: async () => '_site',
|
211529
211528
|
getOutputDirName: async () => '_site',
|
211530
211529
|
cachePattern: '.cache/**',
|
211531
211530
|
},
|
@@ -211562,21 +211561,6 @@ exports.frameworks = [
|
|
211562
211561
|
},
|
211563
211562
|
},
|
211564
211563
|
dependency: '@docusaurus/core',
|
211565
|
-
getFsOutputDir: async (dirPrefix) => {
|
211566
|
-
const base = 'build';
|
211567
|
-
try {
|
211568
|
-
const location = path_1.join(dirPrefix, base);
|
211569
|
-
const content = await readdir(location, { withFileTypes: true });
|
211570
|
-
// If there is only one file in it that is a dir we'll use it as dist dir
|
211571
|
-
if (content.length === 1 && content[0].isDirectory()) {
|
211572
|
-
return path_1.join(base, content[0].name);
|
211573
|
-
}
|
211574
|
-
}
|
211575
|
-
catch (error) {
|
211576
|
-
console.error(`Error detecting output directory: `, error);
|
211577
|
-
}
|
211578
|
-
return base;
|
211579
|
-
},
|
211580
211564
|
getOutputDirName: async (dirPrefix) => {
|
211581
211565
|
const base = 'build';
|
211582
211566
|
try {
|
@@ -211706,21 +211690,6 @@ exports.frameworks = [
|
|
211706
211690
|
},
|
211707
211691
|
},
|
211708
211692
|
dependency: 'docusaurus',
|
211709
|
-
getFsOutputDir: async (dirPrefix) => {
|
211710
|
-
const base = 'build';
|
211711
|
-
try {
|
211712
|
-
const location = path_1.join(dirPrefix, base);
|
211713
|
-
const content = await readdir(location, { withFileTypes: true });
|
211714
|
-
// If there is only one file in it that is a dir we'll use it as dist dir
|
211715
|
-
if (content.length === 1 && content[0].isDirectory()) {
|
211716
|
-
return path_1.join(base, content[0].name);
|
211717
|
-
}
|
211718
|
-
}
|
211719
|
-
catch (error) {
|
211720
|
-
console.error(`Error detecting output directory: `, error);
|
211721
|
-
}
|
211722
|
-
return base;
|
211723
|
-
},
|
211724
211693
|
getOutputDirName: async (dirPrefix) => {
|
211725
211694
|
const base = 'build';
|
211726
211695
|
try {
|
@@ -211770,7 +211739,6 @@ exports.frameworks = [
|
|
211770
211739
|
},
|
211771
211740
|
},
|
211772
211741
|
dependency: 'preact-cli',
|
211773
|
-
getFsOutputDir: async () => 'build',
|
211774
211742
|
getOutputDirName: async () => 'build',
|
211775
211743
|
defaultRoutes: [
|
211776
211744
|
{
|
@@ -211825,7 +211793,6 @@ exports.frameworks = [
|
|
211825
211793
|
},
|
211826
211794
|
},
|
211827
211795
|
dependency: '@dojo/cli',
|
211828
|
-
getFsOutputDir: async () => 'output/dist',
|
211829
211796
|
getOutputDirName: async () => path_1.join('output', 'dist'),
|
211830
211797
|
defaultRoutes: [
|
211831
211798
|
{
|
@@ -211890,7 +211857,6 @@ exports.frameworks = [
|
|
211890
211857
|
},
|
211891
211858
|
},
|
211892
211859
|
dependency: 'ember-cli',
|
211893
|
-
getFsOutputDir: async () => 'dist',
|
211894
211860
|
getOutputDirName: async () => 'dist',
|
211895
211861
|
defaultRoutes: [
|
211896
211862
|
{
|
@@ -211943,7 +211909,6 @@ exports.frameworks = [
|
|
211943
211909
|
},
|
211944
211910
|
},
|
211945
211911
|
dependency: '@vue/cli-service',
|
211946
|
-
getFsOutputDir: async () => 'dist',
|
211947
211912
|
getOutputDirName: async () => 'dist',
|
211948
211913
|
defaultRoutes: [
|
211949
211914
|
{
|
@@ -212019,7 +211984,6 @@ exports.frameworks = [
|
|
212019
211984
|
},
|
212020
211985
|
},
|
212021
211986
|
dependency: '@scullyio/init',
|
212022
|
-
getFsOutputDir: async () => 'dist',
|
212023
211987
|
getOutputDirName: async () => 'dist/static',
|
212024
211988
|
},
|
212025
211989
|
{
|
@@ -212054,7 +212018,6 @@ exports.frameworks = [
|
|
212054
212018
|
},
|
212055
212019
|
},
|
212056
212020
|
dependency: '@ionic/angular',
|
212057
|
-
getFsOutputDir: async () => 'www',
|
212058
212021
|
getOutputDirName: async () => 'www',
|
212059
212022
|
defaultRoutes: [
|
212060
212023
|
{
|
@@ -212106,7 +212069,6 @@ exports.frameworks = [
|
|
212106
212069
|
},
|
212107
212070
|
},
|
212108
212071
|
dependency: '@angular/cli',
|
212109
|
-
getFsOutputDir: async () => 'dist',
|
212110
212072
|
getOutputDirName: async (dirPrefix) => {
|
212111
212073
|
const base = 'dist';
|
212112
212074
|
try {
|
@@ -212172,7 +212134,6 @@ exports.frameworks = [
|
|
212172
212134
|
},
|
212173
212135
|
},
|
212174
212136
|
dependency: 'polymer-cli',
|
212175
|
-
getFsOutputDir: async () => 'build',
|
212176
212137
|
getOutputDirName: async (dirPrefix) => {
|
212177
212138
|
const base = 'build';
|
212178
212139
|
try {
|
@@ -212240,7 +212201,6 @@ exports.frameworks = [
|
|
212240
212201
|
},
|
212241
212202
|
},
|
212242
212203
|
dependency: 'sirv-cli',
|
212243
|
-
getFsOutputDir: async () => 'public',
|
212244
212204
|
getOutputDirName: async () => 'public',
|
212245
212205
|
defaultRoutes: [
|
212246
212206
|
{
|
@@ -212288,10 +212248,9 @@ exports.frameworks = [
|
|
212288
212248
|
placeholder: 'svelte-kit dev',
|
212289
212249
|
},
|
212290
212250
|
outputDirectory: {
|
212291
|
-
|
212251
|
+
value: 'public',
|
212292
212252
|
},
|
212293
212253
|
},
|
212294
|
-
getFsOutputDir: async () => '.output',
|
212295
212254
|
getOutputDirName: async () => 'public',
|
212296
212255
|
},
|
212297
212256
|
{
|
@@ -212326,7 +212285,6 @@ exports.frameworks = [
|
|
212326
212285
|
},
|
212327
212286
|
},
|
212328
212287
|
dependency: '@ionic/react',
|
212329
|
-
getFsOutputDir: async () => 'build',
|
212330
212288
|
getOutputDirName: async () => 'build',
|
212331
212289
|
defaultRoutes: [
|
212332
212290
|
{
|
@@ -212431,7 +212389,6 @@ exports.frameworks = [
|
|
212431
212389
|
},
|
212432
212390
|
},
|
212433
212391
|
dependency: 'react-scripts',
|
212434
|
-
getFsOutputDir: async () => 'build',
|
212435
212392
|
getOutputDirName: async () => 'build',
|
212436
212393
|
defaultRoutes: [
|
212437
212394
|
{
|
@@ -212531,7 +212488,6 @@ exports.frameworks = [
|
|
212531
212488
|
},
|
212532
212489
|
},
|
212533
212490
|
dependency: 'gridsome',
|
212534
|
-
getFsOutputDir: async () => 'dist',
|
212535
212491
|
getOutputDirName: async () => 'dist',
|
212536
212492
|
},
|
212537
212493
|
{
|
@@ -212567,7 +212523,6 @@ exports.frameworks = [
|
|
212567
212523
|
},
|
212568
212524
|
},
|
212569
212525
|
dependency: 'umi',
|
212570
|
-
getFsOutputDir: async () => 'dist',
|
212571
212526
|
getOutputDirName: async () => 'dist',
|
212572
212527
|
defaultRoutes: [
|
212573
212528
|
{
|
@@ -212619,7 +212574,6 @@ exports.frameworks = [
|
|
212619
212574
|
},
|
212620
212575
|
},
|
212621
212576
|
dependency: 'sapper',
|
212622
|
-
getFsOutputDir: async () => '__sapper__/export',
|
212623
212577
|
getOutputDirName: async () => '__sapper__/export',
|
212624
212578
|
},
|
212625
212579
|
{
|
@@ -212655,7 +212609,6 @@ exports.frameworks = [
|
|
212655
212609
|
},
|
212656
212610
|
},
|
212657
212611
|
dependency: 'saber',
|
212658
|
-
getFsOutputDir: async () => 'public',
|
212659
212612
|
getOutputDirName: async () => 'public',
|
212660
212613
|
defaultRoutes: [
|
212661
212614
|
{
|
@@ -212722,7 +212675,6 @@ exports.frameworks = [
|
|
212722
212675
|
},
|
212723
212676
|
},
|
212724
212677
|
dependency: '@stencil/core',
|
212725
|
-
getFsOutputDir: async () => 'www',
|
212726
212678
|
getOutputDirName: async () => 'www',
|
212727
212679
|
defaultRoutes: [
|
212728
212680
|
{
|
@@ -212809,7 +212761,6 @@ exports.frameworks = [
|
|
212809
212761
|
},
|
212810
212762
|
},
|
212811
212763
|
dependency: 'nuxt',
|
212812
|
-
getFsOutputDir: async () => '.output',
|
212813
212764
|
getOutputDirName: async () => 'dist',
|
212814
212765
|
cachePattern: '.nuxt/**',
|
212815
212766
|
defaultRoutes: [
|
@@ -212866,7 +212817,6 @@ exports.frameworks = [
|
|
212866
212817
|
placeholder: 'RedwoodJS default',
|
212867
212818
|
},
|
212868
212819
|
},
|
212869
|
-
getFsOutputDir: async () => 'public',
|
212870
212820
|
getOutputDirName: async () => 'public',
|
212871
212821
|
},
|
212872
212822
|
{
|
@@ -212909,12 +212859,6 @@ exports.frameworks = [
|
|
212909
212859
|
placeholder: '`public` or `publishDir` from the `config` file',
|
212910
212860
|
},
|
212911
212861
|
},
|
212912
|
-
getFsOutputDir: async (dirPrefix) => {
|
212913
|
-
const config = await read_config_file_1.readConfigFile(['config.json', 'config.yaml', 'config.toml'].map(fileName => {
|
212914
|
-
return path_1.join(dirPrefix, fileName);
|
212915
|
-
}));
|
212916
|
-
return (config && config.publishDir) || 'public';
|
212917
|
-
},
|
212918
212862
|
getOutputDirName: async (dirPrefix) => {
|
212919
212863
|
const config = await read_config_file_1.readConfigFile(['config.json', 'config.yaml', 'config.toml'].map(fileName => {
|
212920
212864
|
return path_1.join(dirPrefix, fileName);
|
@@ -212954,10 +212898,6 @@ exports.frameworks = [
|
|
212954
212898
|
placeholder: '`_site` or `destination` from `_config.yml`',
|
212955
212899
|
},
|
212956
212900
|
},
|
212957
|
-
getFsOutputDir: async (dirPrefix) => {
|
212958
|
-
const config = await read_config_file_1.readConfigFile(path_1.join(dirPrefix, '_config.yml'));
|
212959
|
-
return (config && config.destination) || '_site';
|
212960
|
-
},
|
212961
212901
|
getOutputDirName: async (dirPrefix) => {
|
212962
212902
|
const config = await read_config_file_1.readConfigFile(path_1.join(dirPrefix, '_config.yml'));
|
212963
212903
|
return (config && config.destination) || '_site';
|
@@ -212995,7 +212935,6 @@ exports.frameworks = [
|
|
212995
212935
|
value: 'public',
|
212996
212936
|
},
|
212997
212937
|
},
|
212998
|
-
getFsOutputDir: async () => 'public',
|
212999
212938
|
getOutputDirName: async () => 'public',
|
213000
212939
|
},
|
213001
212940
|
{
|
@@ -213029,7 +212968,6 @@ exports.frameworks = [
|
|
213029
212968
|
value: 'build',
|
213030
212969
|
},
|
213031
212970
|
},
|
213032
|
-
getFsOutputDir: async () => 'build',
|
213033
212971
|
getOutputDirName: async () => 'build',
|
213034
212972
|
cachePattern: '{vendor/bin,vendor/cache,vendor/bundle}/**',
|
213035
212973
|
},
|
@@ -213064,7 +213002,6 @@ exports.frameworks = [
|
|
213064
213002
|
value: 'public',
|
213065
213003
|
},
|
213066
213004
|
},
|
213067
|
-
getFsOutputDir: async () => 'public',
|
213068
213005
|
getOutputDirName: async () => 'public',
|
213069
213006
|
defaultVersion: '0.13.0',
|
213070
213007
|
},
|
@@ -213102,7 +213039,6 @@ exports.frameworks = [
|
|
213102
213039
|
},
|
213103
213040
|
},
|
213104
213041
|
dependency: 'vite',
|
213105
|
-
getFsOutputDir: async () => 'dist',
|
213106
213042
|
getOutputDirName: async () => 'dist',
|
213107
213043
|
},
|
213108
213044
|
{
|
@@ -213138,7 +213074,6 @@ exports.frameworks = [
|
|
213138
213074
|
},
|
213139
213075
|
},
|
213140
213076
|
dependency: 'parcel',
|
213141
|
-
getFsOutputDir: async () => 'dist',
|
213142
213077
|
getOutputDirName: async () => 'dist',
|
213143
213078
|
defaultRoutes: [
|
213144
213079
|
{
|
@@ -213207,7 +213142,7 @@ exports.default = def;
|
|
213207
213142
|
/***/ }),
|
213208
213143
|
|
213209
213144
|
/***/ 3734:
|
213210
|
-
/***/ (function(__unused_webpack_module, exports,
|
213145
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_804458__) {
|
213211
213146
|
|
213212
213147
|
"use strict";
|
213213
213148
|
|
@@ -213216,9 +213151,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
213216
213151
|
};
|
213217
213152
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
213218
213153
|
exports.readConfigFile = void 0;
|
213219
|
-
const js_yaml_1 = __importDefault(
|
213220
|
-
const toml_1 = __importDefault(
|
213221
|
-
const fs_1 =
|
213154
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_804458__(641));
|
213155
|
+
const toml_1 = __importDefault(__nested_webpack_require_804458__(9434));
|
213156
|
+
const fs_1 = __nested_webpack_require_804458__(5747);
|
213222
213157
|
const { readFile } = fs_1.promises;
|
213223
213158
|
async function readFileOrNull(file) {
|
213224
213159
|
try {
|
@@ -213267,13 +213202,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
213267
213202
|
/***/ }),
|
213268
213203
|
|
213269
213204
|
/***/ 641:
|
213270
|
-
/***/ ((module, __unused_webpack_exports,
|
213205
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_806064__) => {
|
213271
213206
|
|
213272
213207
|
"use strict";
|
213273
213208
|
|
213274
213209
|
|
213275
213210
|
|
213276
|
-
var yaml =
|
213211
|
+
var yaml = __nested_webpack_require_806064__(9633);
|
213277
213212
|
|
213278
213213
|
|
213279
213214
|
module.exports = yaml;
|
@@ -213282,14 +213217,14 @@ module.exports = yaml;
|
|
213282
213217
|
/***/ }),
|
213283
213218
|
|
213284
213219
|
/***/ 9633:
|
213285
|
-
/***/ ((module, __unused_webpack_exports,
|
213220
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_806238__) => {
|
213286
213221
|
|
213287
213222
|
"use strict";
|
213288
213223
|
|
213289
213224
|
|
213290
213225
|
|
213291
|
-
var loader =
|
213292
|
-
var dumper =
|
213226
|
+
var loader = __nested_webpack_require_806238__(4349);
|
213227
|
+
var dumper = __nested_webpack_require_806238__(8047);
|
213293
213228
|
|
213294
213229
|
|
213295
213230
|
function deprecated(name) {
|
@@ -213299,25 +213234,25 @@ function deprecated(name) {
|
|
213299
213234
|
}
|
213300
213235
|
|
213301
213236
|
|
213302
|
-
module.exports.Type =
|
213303
|
-
module.exports.Schema =
|
213304
|
-
module.exports.FAILSAFE_SCHEMA =
|
213305
|
-
module.exports.JSON_SCHEMA =
|
213306
|
-
module.exports.CORE_SCHEMA =
|
213307
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
213308
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
213237
|
+
module.exports.Type = __nested_webpack_require_806238__(6876);
|
213238
|
+
module.exports.Schema = __nested_webpack_require_806238__(6105);
|
213239
|
+
module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_806238__(8441);
|
213240
|
+
module.exports.JSON_SCHEMA = __nested_webpack_require_806238__(1486);
|
213241
|
+
module.exports.CORE_SCHEMA = __nested_webpack_require_806238__(1112);
|
213242
|
+
module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_806238__(596);
|
213243
|
+
module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_806238__(9647);
|
213309
213244
|
module.exports.load = loader.load;
|
213310
213245
|
module.exports.loadAll = loader.loadAll;
|
213311
213246
|
module.exports.safeLoad = loader.safeLoad;
|
213312
213247
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
213313
213248
|
module.exports.dump = dumper.dump;
|
213314
213249
|
module.exports.safeDump = dumper.safeDump;
|
213315
|
-
module.exports.YAMLException =
|
213250
|
+
module.exports.YAMLException = __nested_webpack_require_806238__(3237);
|
213316
213251
|
|
213317
213252
|
// Deprecated schema names from JS-YAML 2.0.x
|
213318
|
-
module.exports.MINIMAL_SCHEMA =
|
213319
|
-
module.exports.SAFE_SCHEMA =
|
213320
|
-
module.exports.DEFAULT_SCHEMA =
|
213253
|
+
module.exports.MINIMAL_SCHEMA = __nested_webpack_require_806238__(8441);
|
213254
|
+
module.exports.SAFE_SCHEMA = __nested_webpack_require_806238__(596);
|
213255
|
+
module.exports.DEFAULT_SCHEMA = __nested_webpack_require_806238__(9647);
|
213321
213256
|
|
213322
213257
|
// Deprecated functions from JS-YAML 1.x.x
|
213323
213258
|
module.exports.scan = deprecated('scan');
|
@@ -213396,17 +213331,17 @@ module.exports.extend = extend;
|
|
213396
213331
|
/***/ }),
|
213397
213332
|
|
213398
213333
|
/***/ 8047:
|
213399
|
-
/***/ ((module, __unused_webpack_exports,
|
213334
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_809056__) => {
|
213400
213335
|
|
213401
213336
|
"use strict";
|
213402
213337
|
|
213403
213338
|
|
213404
213339
|
/*eslint-disable no-use-before-define*/
|
213405
213340
|
|
213406
|
-
var common =
|
213407
|
-
var YAMLException =
|
213408
|
-
var DEFAULT_FULL_SCHEMA =
|
213409
|
-
var DEFAULT_SAFE_SCHEMA =
|
213341
|
+
var common = __nested_webpack_require_809056__(903);
|
213342
|
+
var YAMLException = __nested_webpack_require_809056__(3237);
|
213343
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_809056__(9647);
|
213344
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_809056__(596);
|
213410
213345
|
|
213411
213346
|
var _toString = Object.prototype.toString;
|
213412
213347
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -214282,18 +214217,18 @@ module.exports = YAMLException;
|
|
214282
214217
|
/***/ }),
|
214283
214218
|
|
214284
214219
|
/***/ 4349:
|
214285
|
-
/***/ ((module, __unused_webpack_exports,
|
214220
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_836760__) => {
|
214286
214221
|
|
214287
214222
|
"use strict";
|
214288
214223
|
|
214289
214224
|
|
214290
214225
|
/*eslint-disable max-len,no-use-before-define*/
|
214291
214226
|
|
214292
|
-
var common =
|
214293
|
-
var YAMLException =
|
214294
|
-
var Mark =
|
214295
|
-
var DEFAULT_SAFE_SCHEMA =
|
214296
|
-
var DEFAULT_FULL_SCHEMA =
|
214227
|
+
var common = __nested_webpack_require_836760__(903);
|
214228
|
+
var YAMLException = __nested_webpack_require_836760__(3237);
|
214229
|
+
var Mark = __nested_webpack_require_836760__(4926);
|
214230
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_836760__(596);
|
214231
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_836760__(9647);
|
214297
214232
|
|
214298
214233
|
|
214299
214234
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -215915,13 +215850,13 @@ module.exports.safeLoad = safeLoad;
|
|
215915
215850
|
/***/ }),
|
215916
215851
|
|
215917
215852
|
/***/ 4926:
|
215918
|
-
/***/ ((module, __unused_webpack_exports,
|
215853
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_880627__) => {
|
215919
215854
|
|
215920
215855
|
"use strict";
|
215921
215856
|
|
215922
215857
|
|
215923
215858
|
|
215924
|
-
var common =
|
215859
|
+
var common = __nested_webpack_require_880627__(903);
|
215925
215860
|
|
215926
215861
|
|
215927
215862
|
function Mark(name, buffer, position, line, column) {
|
@@ -215999,16 +215934,16 @@ module.exports = Mark;
|
|
215999
215934
|
/***/ }),
|
216000
215935
|
|
216001
215936
|
/***/ 6105:
|
216002
|
-
/***/ ((module, __unused_webpack_exports,
|
215937
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_882289__) => {
|
216003
215938
|
|
216004
215939
|
"use strict";
|
216005
215940
|
|
216006
215941
|
|
216007
215942
|
/*eslint-disable max-len*/
|
216008
215943
|
|
216009
|
-
var common =
|
216010
|
-
var YAMLException =
|
216011
|
-
var Type =
|
215944
|
+
var common = __nested_webpack_require_882289__(903);
|
215945
|
+
var YAMLException = __nested_webpack_require_882289__(3237);
|
215946
|
+
var Type = __nested_webpack_require_882289__(6876);
|
216012
215947
|
|
216013
215948
|
|
216014
215949
|
function compileList(schema, name, result) {
|
@@ -216115,7 +216050,7 @@ module.exports = Schema;
|
|
216115
216050
|
/***/ }),
|
216116
216051
|
|
216117
216052
|
/***/ 1112:
|
216118
|
-
/***/ ((module, __unused_webpack_exports,
|
216053
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_885153__) => {
|
216119
216054
|
|
216120
216055
|
"use strict";
|
216121
216056
|
// Standard YAML's Core schema.
|
@@ -216128,12 +216063,12 @@ module.exports = Schema;
|
|
216128
216063
|
|
216129
216064
|
|
216130
216065
|
|
216131
|
-
var Schema =
|
216066
|
+
var Schema = __nested_webpack_require_885153__(6105);
|
216132
216067
|
|
216133
216068
|
|
216134
216069
|
module.exports = new Schema({
|
216135
216070
|
include: [
|
216136
|
-
|
216071
|
+
__nested_webpack_require_885153__(1486)
|
216137
216072
|
]
|
216138
216073
|
});
|
216139
216074
|
|
@@ -216141,7 +216076,7 @@ module.exports = new Schema({
|
|
216141
216076
|
/***/ }),
|
216142
216077
|
|
216143
216078
|
/***/ 9647:
|
216144
|
-
/***/ ((module, __unused_webpack_exports,
|
216079
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_885623__) => {
|
216145
216080
|
|
216146
216081
|
"use strict";
|
216147
216082
|
// JS-YAML's default schema for `load` function.
|
@@ -216156,17 +216091,17 @@ module.exports = new Schema({
|
|
216156
216091
|
|
216157
216092
|
|
216158
216093
|
|
216159
|
-
var Schema =
|
216094
|
+
var Schema = __nested_webpack_require_885623__(6105);
|
216160
216095
|
|
216161
216096
|
|
216162
216097
|
module.exports = Schema.DEFAULT = new Schema({
|
216163
216098
|
include: [
|
216164
|
-
|
216099
|
+
__nested_webpack_require_885623__(596)
|
216165
216100
|
],
|
216166
216101
|
explicit: [
|
216167
|
-
|
216168
|
-
|
216169
|
-
|
216102
|
+
__nested_webpack_require_885623__(5836),
|
216103
|
+
__nested_webpack_require_885623__(6841),
|
216104
|
+
__nested_webpack_require_885623__(8750)
|
216170
216105
|
]
|
216171
216106
|
});
|
216172
216107
|
|
@@ -216174,7 +216109,7 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216174
216109
|
/***/ }),
|
216175
216110
|
|
216176
216111
|
/***/ 596:
|
216177
|
-
/***/ ((module, __unused_webpack_exports,
|
216112
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_886317__) => {
|
216178
216113
|
|
216179
216114
|
"use strict";
|
216180
216115
|
// JS-YAML's default schema for `safeLoad` function.
|
@@ -216187,22 +216122,22 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
216187
216122
|
|
216188
216123
|
|
216189
216124
|
|
216190
|
-
var Schema =
|
216125
|
+
var Schema = __nested_webpack_require_886317__(6105);
|
216191
216126
|
|
216192
216127
|
|
216193
216128
|
module.exports = new Schema({
|
216194
216129
|
include: [
|
216195
|
-
|
216130
|
+
__nested_webpack_require_886317__(1112)
|
216196
216131
|
],
|
216197
216132
|
implicit: [
|
216198
|
-
|
216199
|
-
|
216133
|
+
__nested_webpack_require_886317__(7028),
|
216134
|
+
__nested_webpack_require_886317__(7841)
|
216200
216135
|
],
|
216201
216136
|
explicit: [
|
216202
|
-
|
216203
|
-
|
216204
|
-
|
216205
|
-
|
216137
|
+
__nested_webpack_require_886317__(8675),
|
216138
|
+
__nested_webpack_require_886317__(3498),
|
216139
|
+
__nested_webpack_require_886317__(679),
|
216140
|
+
__nested_webpack_require_886317__(7205)
|
216206
216141
|
]
|
216207
216142
|
});
|
216208
216143
|
|
@@ -216210,7 +216145,7 @@ module.exports = new Schema({
|
|
216210
216145
|
/***/ }),
|
216211
216146
|
|
216212
216147
|
/***/ 8441:
|
216213
|
-
/***/ ((module, __unused_webpack_exports,
|
216148
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_887029__) => {
|
216214
216149
|
|
216215
216150
|
"use strict";
|
216216
216151
|
// Standard YAML's Failsafe schema.
|
@@ -216220,14 +216155,14 @@ module.exports = new Schema({
|
|
216220
216155
|
|
216221
216156
|
|
216222
216157
|
|
216223
|
-
var Schema =
|
216158
|
+
var Schema = __nested_webpack_require_887029__(6105);
|
216224
216159
|
|
216225
216160
|
|
216226
216161
|
module.exports = new Schema({
|
216227
216162
|
explicit: [
|
216228
|
-
|
216229
|
-
|
216230
|
-
|
216163
|
+
__nested_webpack_require_887029__(5348),
|
216164
|
+
__nested_webpack_require_887029__(7330),
|
216165
|
+
__nested_webpack_require_887029__(293)
|
216231
216166
|
]
|
216232
216167
|
});
|
216233
216168
|
|
@@ -216235,7 +216170,7 @@ module.exports = new Schema({
|
|
216235
216170
|
/***/ }),
|
216236
216171
|
|
216237
216172
|
/***/ 1486:
|
216238
|
-
/***/ ((module, __unused_webpack_exports,
|
216173
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_887415__) => {
|
216239
216174
|
|
216240
216175
|
"use strict";
|
216241
216176
|
// Standard YAML's JSON schema.
|
@@ -216249,18 +216184,18 @@ module.exports = new Schema({
|
|
216249
216184
|
|
216250
216185
|
|
216251
216186
|
|
216252
|
-
var Schema =
|
216187
|
+
var Schema = __nested_webpack_require_887415__(6105);
|
216253
216188
|
|
216254
216189
|
|
216255
216190
|
module.exports = new Schema({
|
216256
216191
|
include: [
|
216257
|
-
|
216192
|
+
__nested_webpack_require_887415__(8441)
|
216258
216193
|
],
|
216259
216194
|
implicit: [
|
216260
|
-
|
216261
|
-
|
216262
|
-
|
216263
|
-
|
216195
|
+
__nested_webpack_require_887415__(9074),
|
216196
|
+
__nested_webpack_require_887415__(4308),
|
216197
|
+
__nested_webpack_require_887415__(1167),
|
216198
|
+
__nested_webpack_require_887415__(7862)
|
216264
216199
|
]
|
216265
216200
|
});
|
216266
216201
|
|
@@ -216268,12 +216203,12 @@ module.exports = new Schema({
|
|
216268
216203
|
/***/ }),
|
216269
216204
|
|
216270
216205
|
/***/ 6876:
|
216271
|
-
/***/ ((module, __unused_webpack_exports,
|
216206
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888113__) => {
|
216272
216207
|
|
216273
216208
|
"use strict";
|
216274
216209
|
|
216275
216210
|
|
216276
|
-
var YAMLException =
|
216211
|
+
var YAMLException = __nested_webpack_require_888113__(3237);
|
216277
216212
|
|
216278
216213
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
216279
216214
|
'kind',
|
@@ -216337,7 +216272,7 @@ module.exports = Type;
|
|
216337
216272
|
/***/ }),
|
216338
216273
|
|
216339
216274
|
/***/ 8675:
|
216340
|
-
/***/ ((module, __unused_webpack_exports,
|
216275
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_889797__) => {
|
216341
216276
|
|
216342
216277
|
"use strict";
|
216343
216278
|
|
@@ -216352,7 +216287,7 @@ try {
|
|
216352
216287
|
NodeBuffer = _require('buffer').Buffer;
|
216353
216288
|
} catch (__) {}
|
216354
216289
|
|
216355
|
-
var Type =
|
216290
|
+
var Type = __nested_webpack_require_889797__(6876);
|
216356
216291
|
|
216357
216292
|
|
216358
216293
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
@@ -216483,12 +216418,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
|
|
216483
216418
|
/***/ }),
|
216484
216419
|
|
216485
216420
|
/***/ 4308:
|
216486
|
-
/***/ ((module, __unused_webpack_exports,
|
216421
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_893189__) => {
|
216487
216422
|
|
216488
216423
|
"use strict";
|
216489
216424
|
|
216490
216425
|
|
216491
|
-
var Type =
|
216426
|
+
var Type = __nested_webpack_require_893189__(6876);
|
216492
216427
|
|
216493
216428
|
function resolveYamlBoolean(data) {
|
216494
216429
|
if (data === null) return false;
|
@@ -216526,13 +216461,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
|
|
216526
216461
|
/***/ }),
|
216527
216462
|
|
216528
216463
|
/***/ 7862:
|
216529
|
-
/***/ ((module, __unused_webpack_exports,
|
216464
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_894262__) => {
|
216530
216465
|
|
216531
216466
|
"use strict";
|
216532
216467
|
|
216533
216468
|
|
216534
|
-
var common =
|
216535
|
-
var Type =
|
216469
|
+
var common = __nested_webpack_require_894262__(903);
|
216470
|
+
var Type = __nested_webpack_require_894262__(6876);
|
216536
216471
|
|
216537
216472
|
var YAML_FLOAT_PATTERN = new RegExp(
|
216538
216473
|
// 2.5e4, 2.5 and integers
|
@@ -216650,13 +216585,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
|
|
216650
216585
|
/***/ }),
|
216651
216586
|
|
216652
216587
|
/***/ 1167:
|
216653
|
-
/***/ ((module, __unused_webpack_exports,
|
216588
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_897208__) => {
|
216654
216589
|
|
216655
216590
|
"use strict";
|
216656
216591
|
|
216657
216592
|
|
216658
|
-
var common =
|
216659
|
-
var Type =
|
216593
|
+
var common = __nested_webpack_require_897208__(903);
|
216594
|
+
var Type = __nested_webpack_require_897208__(6876);
|
216660
216595
|
|
216661
216596
|
function isHexCode(c) {
|
216662
216597
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
@@ -216831,7 +216766,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
|
|
216831
216766
|
/***/ }),
|
216832
216767
|
|
216833
216768
|
/***/ 8750:
|
216834
|
-
/***/ ((module, __unused_webpack_exports,
|
216769
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_901380__) => {
|
216835
216770
|
|
216836
216771
|
"use strict";
|
216837
216772
|
|
@@ -216854,7 +216789,7 @@ try {
|
|
216854
216789
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
216855
216790
|
}
|
216856
216791
|
|
216857
|
-
var Type =
|
216792
|
+
var Type = __nested_webpack_require_901380__(6876);
|
216858
216793
|
|
216859
216794
|
function resolveJavascriptFunction(data) {
|
216860
216795
|
if (data === null) return false;
|
@@ -216931,12 +216866,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
|
|
216931
216866
|
/***/ }),
|
216932
216867
|
|
216933
216868
|
/***/ 6841:
|
216934
|
-
/***/ ((module, __unused_webpack_exports,
|
216869
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_904277__) => {
|
216935
216870
|
|
216936
216871
|
"use strict";
|
216937
216872
|
|
216938
216873
|
|
216939
|
-
var Type =
|
216874
|
+
var Type = __nested_webpack_require_904277__(6876);
|
216940
216875
|
|
216941
216876
|
function resolveJavascriptRegExp(data) {
|
216942
216877
|
if (data === null) return false;
|
@@ -216999,12 +216934,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
|
216999
216934
|
/***/ }),
|
217000
216935
|
|
217001
216936
|
/***/ 5836:
|
217002
|
-
/***/ ((module, __unused_webpack_exports,
|
216937
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_905948__) => {
|
217003
216938
|
|
217004
216939
|
"use strict";
|
217005
216940
|
|
217006
216941
|
|
217007
|
-
var Type =
|
216942
|
+
var Type = __nested_webpack_require_905948__(6876);
|
217008
216943
|
|
217009
216944
|
function resolveJavascriptUndefined() {
|
217010
216945
|
return true;
|
@@ -217035,12 +216970,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
|
217035
216970
|
/***/ }),
|
217036
216971
|
|
217037
216972
|
/***/ 293:
|
217038
|
-
/***/ ((module, __unused_webpack_exports,
|
216973
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_906619__) => {
|
217039
216974
|
|
217040
216975
|
"use strict";
|
217041
216976
|
|
217042
216977
|
|
217043
|
-
var Type =
|
216978
|
+
var Type = __nested_webpack_require_906619__(6876);
|
217044
216979
|
|
217045
216980
|
module.exports = new Type('tag:yaml.org,2002:map', {
|
217046
216981
|
kind: 'mapping',
|
@@ -217051,12 +216986,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
|
|
217051
216986
|
/***/ }),
|
217052
216987
|
|
217053
216988
|
/***/ 7841:
|
217054
|
-
/***/ ((module, __unused_webpack_exports,
|
216989
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_906911__) => {
|
217055
216990
|
|
217056
216991
|
"use strict";
|
217057
216992
|
|
217058
216993
|
|
217059
|
-
var Type =
|
216994
|
+
var Type = __nested_webpack_require_906911__(6876);
|
217060
216995
|
|
217061
216996
|
function resolveYamlMerge(data) {
|
217062
216997
|
return data === '<<' || data === null;
|
@@ -217071,12 +217006,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
|
|
217071
217006
|
/***/ }),
|
217072
217007
|
|
217073
217008
|
/***/ 9074:
|
217074
|
-
/***/ ((module, __unused_webpack_exports,
|
217009
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907243__) => {
|
217075
217010
|
|
217076
217011
|
"use strict";
|
217077
217012
|
|
217078
217013
|
|
217079
|
-
var Type =
|
217014
|
+
var Type = __nested_webpack_require_907243__(6876);
|
217080
217015
|
|
217081
217016
|
function resolveYamlNull(data) {
|
217082
217017
|
if (data === null) return true;
|
@@ -217113,12 +217048,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
|
|
217113
217048
|
/***/ }),
|
217114
217049
|
|
217115
217050
|
/***/ 3498:
|
217116
|
-
/***/ ((module, __unused_webpack_exports,
|
217051
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908106__) => {
|
217117
217052
|
|
217118
217053
|
"use strict";
|
217119
217054
|
|
217120
217055
|
|
217121
|
-
var Type =
|
217056
|
+
var Type = __nested_webpack_require_908106__(6876);
|
217122
217057
|
|
217123
217058
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217124
217059
|
var _toString = Object.prototype.toString;
|
@@ -217165,12 +217100,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
|
|
217165
217100
|
/***/ }),
|
217166
217101
|
|
217167
217102
|
/***/ 679:
|
217168
|
-
/***/ ((module, __unused_webpack_exports,
|
217103
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_909230__) => {
|
217169
217104
|
|
217170
217105
|
"use strict";
|
217171
217106
|
|
217172
217107
|
|
217173
|
-
var Type =
|
217108
|
+
var Type = __nested_webpack_require_909230__(6876);
|
217174
217109
|
|
217175
217110
|
var _toString = Object.prototype.toString;
|
217176
217111
|
|
@@ -217226,12 +217161,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
|
|
217226
217161
|
/***/ }),
|
217227
217162
|
|
217228
217163
|
/***/ 7330:
|
217229
|
-
/***/ ((module, __unused_webpack_exports,
|
217164
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_910416__) => {
|
217230
217165
|
|
217231
217166
|
"use strict";
|
217232
217167
|
|
217233
217168
|
|
217234
|
-
var Type =
|
217169
|
+
var Type = __nested_webpack_require_910416__(6876);
|
217235
217170
|
|
217236
217171
|
module.exports = new Type('tag:yaml.org,2002:seq', {
|
217237
217172
|
kind: 'sequence',
|
@@ -217242,12 +217177,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
|
|
217242
217177
|
/***/ }),
|
217243
217178
|
|
217244
217179
|
/***/ 7205:
|
217245
|
-
/***/ ((module, __unused_webpack_exports,
|
217180
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_910709__) => {
|
217246
217181
|
|
217247
217182
|
"use strict";
|
217248
217183
|
|
217249
217184
|
|
217250
|
-
var Type =
|
217185
|
+
var Type = __nested_webpack_require_910709__(6876);
|
217251
217186
|
|
217252
217187
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
217253
217188
|
|
@@ -217279,12 +217214,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
|
|
217279
217214
|
/***/ }),
|
217280
217215
|
|
217281
217216
|
/***/ 5348:
|
217282
|
-
/***/ ((module, __unused_webpack_exports,
|
217217
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_911358__) => {
|
217283
217218
|
|
217284
217219
|
"use strict";
|
217285
217220
|
|
217286
217221
|
|
217287
|
-
var Type =
|
217222
|
+
var Type = __nested_webpack_require_911358__(6876);
|
217288
217223
|
|
217289
217224
|
module.exports = new Type('tag:yaml.org,2002:str', {
|
217290
217225
|
kind: 'scalar',
|
@@ -217295,12 +217230,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
|
|
217295
217230
|
/***/ }),
|
217296
217231
|
|
217297
217232
|
/***/ 7028:
|
217298
|
-
/***/ ((module, __unused_webpack_exports,
|
217233
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_911649__) => {
|
217299
217234
|
|
217300
217235
|
"use strict";
|
217301
217236
|
|
217302
217237
|
|
217303
|
-
var Type =
|
217238
|
+
var Type = __nested_webpack_require_911649__(6876);
|
217304
217239
|
|
217305
217240
|
var YAML_DATE_REGEXP = new RegExp(
|
217306
217241
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
@@ -217391,7 +217326,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
217391
217326
|
/***/ }),
|
217392
217327
|
|
217393
217328
|
/***/ 7276:
|
217394
|
-
/***/ (function(__unused_webpack_module, exports,
|
217329
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_914330__) {
|
217395
217330
|
|
217396
217331
|
"use strict";
|
217397
217332
|
|
@@ -217400,12 +217335,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217400
217335
|
};
|
217401
217336
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217402
217337
|
exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = void 0;
|
217403
|
-
const fs_extra_1 = __importDefault(
|
217404
|
-
const path_1 =
|
217405
|
-
const glob_1 = __importDefault(
|
217406
|
-
const normalize_path_1 =
|
217407
|
-
const lambda_1 =
|
217408
|
-
const _1 =
|
217338
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_914330__(5392));
|
217339
|
+
const path_1 = __nested_webpack_require_914330__(5622);
|
217340
|
+
const glob_1 = __importDefault(__nested_webpack_require_914330__(4240));
|
217341
|
+
const normalize_path_1 = __nested_webpack_require_914330__(6261);
|
217342
|
+
const lambda_1 = __nested_webpack_require_914330__(6721);
|
217343
|
+
const _1 = __nested_webpack_require_914330__(2855);
|
217409
217344
|
// `.output` was already created by the Build Command, so we have
|
217410
217345
|
// to ensure its contents don't get bundled into the Lambda. Similarily,
|
217411
217346
|
// we don't want to bundle anything from `.vercel` either. Lastly,
|
@@ -217466,17 +217401,15 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217466
217401
|
}
|
217467
217402
|
const pages = {};
|
217468
217403
|
const pluginName = packageName.replace('vercel-plugin-', '');
|
217469
|
-
const
|
217404
|
+
const outputPath = path_1.join(workPath, '.output');
|
217405
|
+
const traceDir = path_1.join(outputPath, `inputs`,
|
217470
217406
|
// Legacy Runtimes can only provide API Routes, so that's
|
217471
217407
|
// why we can use this prefix for all of them. Here, we have to
|
217472
217408
|
// make sure to not use a cryptic hash name, because people
|
217473
217409
|
// need to be able to easily inspect the output.
|
217474
217410
|
`api-routes-${pluginName}`);
|
217475
217411
|
await fs_extra_1.default.ensureDir(traceDir);
|
217476
|
-
|
217477
|
-
let linkersRuntime = [];
|
217478
|
-
const entryDir = path_1.join('.output', 'server', 'pages');
|
217479
|
-
const entryRoot = path_1.join(workPath, entryDir);
|
217412
|
+
const entryRoot = path_1.join(outputPath, 'server', 'pages');
|
217480
217413
|
for (const entrypoint of Object.keys(entrypoints)) {
|
217481
217414
|
const { output } = await buildRuntime({
|
217482
217415
|
files: sourceFilesPreBuild,
|
@@ -217487,15 +217420,9 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217487
217420
|
},
|
217488
217421
|
meta: {
|
217489
217422
|
avoidTopLevelInstall: true,
|
217423
|
+
skipDownload: true,
|
217490
217424
|
},
|
217491
217425
|
});
|
217492
|
-
// Legacy Runtimes tend to pollute the `workPath` with compiled results,
|
217493
|
-
// because the `workPath` used to be a place that was a place where they could
|
217494
|
-
// just put anything, but nowadays it's the working directory of the `vercel build`
|
217495
|
-
// command, which is the place where the developer keeps their source files,
|
217496
|
-
// so we don't want to pollute this space unnecessarily. That means we have to clean
|
217497
|
-
// up files that were created by the build, which is done further below.
|
217498
|
-
const sourceFilesAfterBuild = await getSourceFiles(workPath, ignoreFilter);
|
217499
217426
|
// @ts-ignore This symbol is a private API
|
217500
217427
|
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
217501
217428
|
// When deploying, the `files` that are passed to the Legacy Runtimes already
|
@@ -217509,6 +217436,7 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217509
217436
|
}
|
217510
217437
|
let handlerFileBase = output.handler;
|
217511
217438
|
let handlerFile = lambdaFiles[handlerFileBase];
|
217439
|
+
let handlerHasImport = false;
|
217512
217440
|
const { handler } = output;
|
217513
217441
|
const handlerMethod = handler.split('.').pop();
|
217514
217442
|
const handlerFileName = handler.replace(`.${handlerMethod}`, '');
|
@@ -217520,6 +217448,7 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217520
217448
|
if (!handlerFile) {
|
217521
217449
|
handlerFileBase = handlerFileName + ext;
|
217522
217450
|
handlerFile = lambdaFiles[handlerFileBase];
|
217451
|
+
handlerHasImport = true;
|
217523
217452
|
}
|
217524
217453
|
if (!handlerFile || !handlerFile.fsPath) {
|
217525
217454
|
throw new Error(`Could not find a handler file. Please ensure that \`files\` for the returned \`Lambda\` contains an \`FileFsRef\` named "${handlerFileBase}" with a valid \`fsPath\`.`);
|
@@ -217528,119 +217457,83 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217528
217457
|
const entryBase = path_1.basename(entrypoint).replace(ext, handlerExtName);
|
217529
217458
|
const entryPath = path_1.join(path_1.dirname(entrypoint), entryBase);
|
217530
217459
|
const entry = path_1.join(entryRoot, entryPath);
|
217531
|
-
//
|
217532
|
-
//
|
217533
|
-
// every build for every entrypoint overwrites the launcher of the previous
|
217534
|
-
// one, so linking would end with a broken reference.
|
217460
|
+
// Create the parent directory of the API Route that will be created
|
217461
|
+
// for the current entrypoint inside of `.output/server/pages/api`.
|
217535
217462
|
await fs_extra_1.default.ensureDir(path_1.dirname(entry));
|
217536
|
-
|
217537
|
-
|
217538
|
-
|
217539
|
-
|
217540
|
-
|
217541
|
-
|
217542
|
-
//
|
217543
|
-
//
|
217544
|
-
|
217545
|
-
|
217546
|
-
|
217547
|
-
|
217548
|
-
|
217549
|
-
|
217550
|
-
|
217551
|
-
|
217552
|
-
|
217553
|
-
|
217554
|
-
//
|
217555
|
-
|
217556
|
-
|
217557
|
-
|
217558
|
-
|
217559
|
-
|
217560
|
-
|
217561
|
-
//
|
217562
|
-
|
217563
|
-
|
217564
|
-
|
217565
|
-
|
217566
|
-
|
217567
|
-
|
217568
|
-
// looking at, we don't need to add more entries to the list
|
217569
|
-
// because when the parent will get removed in the future,
|
217570
|
-
// all of its children (and therefore the path we're looking at)
|
217571
|
-
// will automatically get removed anyways.
|
217572
|
-
if (hasParentDir) {
|
217573
|
-
continue;
|
217574
|
-
}
|
217575
|
-
if (isNewDir) {
|
217576
|
-
newDirectoriesEntrypoint.push(dirPath);
|
217577
|
-
}
|
217578
|
-
else {
|
217579
|
-
newFilesEntrypoint.push(path);
|
217580
|
-
}
|
217581
|
-
}
|
217582
|
-
}
|
217583
|
-
const tracedFiles = [];
|
217584
|
-
const linkers = Object.entries(lambdaFiles).map(async ([relPath, file]) => {
|
217585
|
-
const newPath = path_1.join(traceDir, relPath);
|
217586
|
-
// The handler was already moved into position above.
|
217587
|
-
if (relPath === handlerFileBase) {
|
217588
|
-
return;
|
217589
|
-
}
|
217590
|
-
tracedFiles.push({ absolutePath: newPath, relativePath: relPath });
|
217591
|
-
const { fsPath, type } = file;
|
217592
|
-
if (fsPath) {
|
217593
|
-
await fs_extra_1.default.ensureDir(path_1.dirname(newPath));
|
217594
|
-
const isNewFile = newFilesEntrypoint.includes(fsPath);
|
217595
|
-
const isInsideNewDirectory = newDirectoriesEntrypoint.some(dirPath => {
|
217596
|
-
return fsPath.startsWith(dirPath);
|
217463
|
+
// For compiled languages, the launcher file will be binary and therefore
|
217464
|
+
// won't try to import a user-provided request handler (instead, it will
|
217465
|
+
// contain it). But for interpreted languages, the launcher might try to
|
217466
|
+
// load a user-provided request handler from the source file instead of bundling
|
217467
|
+
// it, so we have to adjust the import statement inside the launcher to point
|
217468
|
+
// to the respective source file. Previously, Legacy Runtimes simply expected
|
217469
|
+
// the user-provided request-handler to be copied right next to the launcher,
|
217470
|
+
// but with the new File System API, files won't be moved around unnecessarily.
|
217471
|
+
if (handlerHasImport) {
|
217472
|
+
const { fsPath } = handlerFile;
|
217473
|
+
const encoding = 'utf-8';
|
217474
|
+
// This is the true directory of the user-provided request handler in the
|
217475
|
+
// source files, so that's what we will use as an import path in the launcher.
|
217476
|
+
const locationPrefix = path_1.relative(entry, outputPath);
|
217477
|
+
let handlerContent = await fs_extra_1.default.readFile(fsPath, encoding);
|
217478
|
+
const importPaths = [
|
217479
|
+
// This is the full entrypoint path, like `./api/test.py`
|
217480
|
+
`./${entrypoint}`,
|
217481
|
+
// This is the entrypoint path without extension, like `api/test`
|
217482
|
+
entrypoint.slice(0, -ext.length),
|
217483
|
+
];
|
217484
|
+
// Generate a list of regular expressions that we can use for
|
217485
|
+
// finding matches, but only allow matches if the import path is
|
217486
|
+
// wrapped inside single (') or double quotes (").
|
217487
|
+
const patterns = importPaths.map(path => {
|
217488
|
+
// eslint-disable-next-line no-useless-escape
|
217489
|
+
return new RegExp(`('|")(${path.replace(/\./g, '\\.')})('|")`, 'g');
|
217490
|
+
});
|
217491
|
+
let replacedMatch = null;
|
217492
|
+
for (const pattern of patterns) {
|
217493
|
+
const newContent = handlerContent.replace(pattern, (_, p1, p2, p3) => {
|
217494
|
+
return `${p1}${path_1.join(locationPrefix, p2)}${p3}`;
|
217597
217495
|
});
|
217598
|
-
|
217599
|
-
|
217600
|
-
|
217601
|
-
|
217602
|
-
// by the Legacy Runtimes are always copied, because their link destinations
|
217603
|
-
// are likely to be overwritten every time an entrypoint is processed by
|
217604
|
-
// the Legacy Runtime. This is likely to overwrite the destination on subsequent
|
217605
|
-
// runs, but that's also how `workPath` used to work originally, without
|
217606
|
-
// the File System API (meaning that there was one `workPath` for all entrypoints).
|
217607
|
-
if (isNewFile || isInsideNewDirectory) {
|
217608
|
-
_1.debug(`Copying from ${fsPath} to ${newPath}`);
|
217609
|
-
await fs_extra_1.default.copy(fsPath, newPath);
|
217610
|
-
}
|
217611
|
-
else {
|
217612
|
-
await linkOrCopy(fsPath, newPath);
|
217496
|
+
if (newContent !== handlerContent) {
|
217497
|
+
_1.debug(`Replaced "${pattern}" inside "${entry}" to ensure correct import of user-provided request handler`);
|
217498
|
+
handlerContent = newContent;
|
217499
|
+
replacedMatch = true;
|
217613
217500
|
}
|
217614
217501
|
}
|
217615
|
-
|
217616
|
-
|
217617
|
-
await fs_extra_1.default.writeFile(newPath, data, { mode });
|
217618
|
-
}
|
217619
|
-
else {
|
217620
|
-
throw new Error(`Unknown file type: ${type}`);
|
217502
|
+
if (!replacedMatch) {
|
217503
|
+
new Error(`No replacable matches for "${importPaths[0]}" or "${importPaths[1]}" found in "${fsPath}"`);
|
217621
217504
|
}
|
217622
|
-
|
217623
|
-
|
217505
|
+
await fs_extra_1.default.writeFile(entry, handlerContent, encoding);
|
217506
|
+
}
|
217507
|
+
else {
|
217508
|
+
await fs_extra_1.default.copy(handlerFile.fsPath, entry);
|
217509
|
+
}
|
217510
|
+
// Legacy Runtimes based on interpreted languages will create a new launcher file
|
217511
|
+
// for every entrypoint, but they will create each one inside `workPath`, which means that
|
217512
|
+
// the launcher for one entrypoint will overwrite the launcher provided for the previous
|
217513
|
+
// entrypoint. That's why, above, we copy the file contents into the new destination (and
|
217514
|
+
// optionally transform them along the way), instead of linking. We then also want to remove
|
217515
|
+
// the copy origin right here, so that the `workPath` doesn't contain a useless launcher file
|
217516
|
+
// once the build has finished running.
|
217517
|
+
await fs_extra_1.default.remove(handlerFile.fsPath);
|
217518
|
+
_1.debug(`Removed temporary file "${handlerFile.fsPath}"`);
|
217624
217519
|
const nft = `${entry}.nft.json`;
|
217625
217520
|
const json = JSON.stringify({
|
217626
|
-
version:
|
217627
|
-
files:
|
217628
|
-
|
217629
|
-
|
217630
|
-
|
217631
|
-
|
217632
|
-
|
217521
|
+
version: 2,
|
217522
|
+
files: Object.keys(lambdaFiles)
|
217523
|
+
.map(file => {
|
217524
|
+
const { fsPath } = lambdaFiles[file];
|
217525
|
+
if (!fsPath) {
|
217526
|
+
throw new Error(`File "${file}" is missing valid \`fsPath\` property`);
|
217527
|
+
}
|
217528
|
+
// The handler was already moved into position above.
|
217529
|
+
if (file === handlerFileBase) {
|
217530
|
+
return;
|
217531
|
+
}
|
217532
|
+
return normalize_path_1.normalizePath(path_1.relative(path_1.dirname(nft), fsPath));
|
217533
|
+
})
|
217534
|
+
.filter(Boolean),
|
217633
217535
|
});
|
217634
|
-
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
217635
217536
|
await fs_extra_1.default.writeFile(nft, json);
|
217636
|
-
// Extend the list of directories and files that were created by the
|
217637
|
-
// Legacy Runtime with the list of directories and files that were
|
217638
|
-
// created for the entrypoint that was just processed above.
|
217639
|
-
newPathsRuntime = new Set([
|
217640
|
-
...newPathsRuntime,
|
217641
|
-
...newFilesEntrypoint,
|
217642
|
-
...newDirectoriesEntrypoint,
|
217643
|
-
]);
|
217644
217537
|
// Add an entry that will later on be added to the `functions-manifest.json`
|
217645
217538
|
// file that is placed inside of the `.output` directory.
|
217646
217539
|
pages[normalize_path_1.normalizePath(entryPath)] = {
|
@@ -217656,32 +217549,12 @@ function convertRuntimeToPlugin(buildRuntime, packageName, ext) {
|
|
217656
217549
|
allowQuery: output.allowQuery,
|
217657
217550
|
};
|
217658
217551
|
}
|
217659
|
-
// Instead of of waiting for all of the linking to be done for every
|
217660
|
-
// entrypoint before processing the next one, we immediately handle all
|
217661
|
-
// of them one after the other, while then waiting for the linking
|
217662
|
-
// to finish right here, before we clean up newly created files below.
|
217663
|
-
await Promise.all(linkersRuntime);
|
217664
|
-
// A list of all the files that were created by the Legacy Runtime,
|
217665
|
-
// which we'd like to remove from the File System.
|
217666
|
-
const toRemove = Array.from(newPathsRuntime).map(path => {
|
217667
|
-
_1.debug(`Removing ${path} as part of cleanup`);
|
217668
|
-
return fs_extra_1.default.remove(path);
|
217669
|
-
});
|
217670
|
-
// Once all the entrypoints have been processed, we'd like to
|
217671
|
-
// remove all the files from `workPath` that originally weren't present
|
217672
|
-
// before the Legacy Runtime began running, because the `workPath`
|
217673
|
-
// is nowadays the directory in which the user keeps their source code, since
|
217674
|
-
// we're no longer running separate parallel builds for every Legacy Runtime.
|
217675
|
-
await Promise.all(toRemove);
|
217676
217552
|
// Add any Serverless Functions that were exposed by the Legacy Runtime
|
217677
217553
|
// to the `functions-manifest.json` file provided in `.output`.
|
217678
217554
|
await updateFunctionsManifest({ workPath, pages });
|
217679
217555
|
};
|
217680
217556
|
}
|
217681
217557
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
217682
|
-
async function linkOrCopy(existingPath, newPath) {
|
217683
|
-
await fs_extra_1.default.copyFile(existingPath, newPath);
|
217684
|
-
}
|
217685
217558
|
async function readJson(filePath) {
|
217686
217559
|
try {
|
217687
217560
|
const str = await fs_extra_1.default.readFile(filePath, 'utf8');
|
@@ -217702,7 +217575,7 @@ async function updateFunctionsManifest({ workPath, pages, }) {
|
|
217702
217575
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
217703
217576
|
const functionsManifest = await readJson(functionsManifestPath);
|
217704
217577
|
if (!functionsManifest.version)
|
217705
|
-
functionsManifest.version =
|
217578
|
+
functionsManifest.version = 2;
|
217706
217579
|
if (!functionsManifest.pages)
|
217707
217580
|
functionsManifest.pages = {};
|
217708
217581
|
for (const [pageKey, pageConfig] of Object.entries(pages)) {
|
@@ -217755,12 +217628,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217755
217628
|
/***/ }),
|
217756
217629
|
|
217757
217630
|
/***/ 1868:
|
217758
|
-
/***/ ((__unused_webpack_module, exports,
|
217631
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_929744__) => {
|
217759
217632
|
|
217760
217633
|
"use strict";
|
217761
217634
|
|
217762
217635
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217763
|
-
const _1 =
|
217636
|
+
const _1 = __nested_webpack_require_929744__(2855);
|
217764
217637
|
function debug(message, ...additional) {
|
217765
217638
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217766
217639
|
console.log(message, ...additional);
|
@@ -217772,7 +217645,7 @@ exports.default = debug;
|
|
217772
217645
|
/***/ }),
|
217773
217646
|
|
217774
217647
|
/***/ 4246:
|
217775
|
-
/***/ (function(__unused_webpack_module, exports,
|
217648
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_930129__) {
|
217776
217649
|
|
217777
217650
|
"use strict";
|
217778
217651
|
|
@@ -217781,11 +217654,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217781
217654
|
};
|
217782
217655
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217783
217656
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217784
|
-
const minimatch_1 = __importDefault(
|
217785
|
-
const semver_1 =
|
217786
|
-
const path_1 =
|
217787
|
-
const frameworks_1 = __importDefault(
|
217788
|
-
const _1 =
|
217657
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_930129__(9566));
|
217658
|
+
const semver_1 = __nested_webpack_require_930129__(2879);
|
217659
|
+
const path_1 = __nested_webpack_require_930129__(5622);
|
217660
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_930129__(8438));
|
217661
|
+
const _1 = __nested_webpack_require_930129__(2855);
|
217789
217662
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217790
217663
|
// We need to sort the file paths by alphabet to make
|
217791
217664
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -218844,7 +218717,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218844
218717
|
/***/ }),
|
218845
218718
|
|
218846
218719
|
/***/ 2397:
|
218847
|
-
/***/ (function(__unused_webpack_module, exports,
|
218720
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_969513__) {
|
218848
218721
|
|
218849
218722
|
"use strict";
|
218850
218723
|
|
@@ -218852,8 +218725,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218852
218725
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218853
218726
|
};
|
218854
218727
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218855
|
-
const assert_1 = __importDefault(
|
218856
|
-
const into_stream_1 = __importDefault(
|
218728
|
+
const assert_1 = __importDefault(__nested_webpack_require_969513__(2357));
|
218729
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_969513__(6130));
|
218857
218730
|
class FileBlob {
|
218858
218731
|
constructor({ mode = 0o100644, contentType, data }) {
|
218859
218732
|
assert_1.default(typeof mode === 'number');
|
@@ -218885,7 +218758,7 @@ exports.default = FileBlob;
|
|
218885
218758
|
/***/ }),
|
218886
218759
|
|
218887
218760
|
/***/ 9331:
|
218888
|
-
/***/ (function(__unused_webpack_module, exports,
|
218761
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970965__) {
|
218889
218762
|
|
218890
218763
|
"use strict";
|
218891
218764
|
|
@@ -218893,11 +218766,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218893
218766
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218894
218767
|
};
|
218895
218768
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218896
|
-
const assert_1 = __importDefault(
|
218897
|
-
const fs_extra_1 = __importDefault(
|
218898
|
-
const multistream_1 = __importDefault(
|
218899
|
-
const path_1 = __importDefault(
|
218900
|
-
const async_sema_1 = __importDefault(
|
218769
|
+
const assert_1 = __importDefault(__nested_webpack_require_970965__(2357));
|
218770
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_970965__(5392));
|
218771
|
+
const multistream_1 = __importDefault(__nested_webpack_require_970965__(8179));
|
218772
|
+
const path_1 = __importDefault(__nested_webpack_require_970965__(5622));
|
218773
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_970965__(5758));
|
218901
218774
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218902
218775
|
class FileFsRef {
|
218903
218776
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218963,7 +218836,7 @@ exports.default = FileFsRef;
|
|
218963
218836
|
/***/ }),
|
218964
218837
|
|
218965
218838
|
/***/ 5187:
|
218966
|
-
/***/ (function(__unused_webpack_module, exports,
|
218839
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_973769__) {
|
218967
218840
|
|
218968
218841
|
"use strict";
|
218969
218842
|
|
@@ -218971,11 +218844,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218971
218844
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218972
218845
|
};
|
218973
218846
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218974
|
-
const assert_1 = __importDefault(
|
218975
|
-
const node_fetch_1 = __importDefault(
|
218976
|
-
const multistream_1 = __importDefault(
|
218977
|
-
const async_retry_1 = __importDefault(
|
218978
|
-
const async_sema_1 = __importDefault(
|
218847
|
+
const assert_1 = __importDefault(__nested_webpack_require_973769__(2357));
|
218848
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_973769__(2197));
|
218849
|
+
const multistream_1 = __importDefault(__nested_webpack_require_973769__(8179));
|
218850
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_973769__(3691));
|
218851
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_973769__(5758));
|
218979
218852
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218980
218853
|
class BailableError extends Error {
|
218981
218854
|
constructor(...args) {
|
@@ -219056,7 +218929,7 @@ exports.default = FileRef;
|
|
219056
218929
|
/***/ }),
|
219057
218930
|
|
219058
218931
|
/***/ 1611:
|
219059
|
-
/***/ (function(__unused_webpack_module, exports,
|
218932
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_977170__) {
|
219060
218933
|
|
219061
218934
|
"use strict";
|
219062
218935
|
|
@@ -219065,10 +218938,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219065
218938
|
};
|
219066
218939
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219067
218940
|
exports.isSymbolicLink = void 0;
|
219068
|
-
const path_1 = __importDefault(
|
219069
|
-
const debug_1 = __importDefault(
|
219070
|
-
const file_fs_ref_1 = __importDefault(
|
219071
|
-
const fs_extra_1 =
|
218941
|
+
const path_1 = __importDefault(__nested_webpack_require_977170__(5622));
|
218942
|
+
const debug_1 = __importDefault(__nested_webpack_require_977170__(1868));
|
218943
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_977170__(9331));
|
218944
|
+
const fs_extra_1 = __nested_webpack_require_977170__(5392);
|
219072
218945
|
const S_IFMT = 61440; /* 0170000 type of file */
|
219073
218946
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
219074
218947
|
function isSymbolicLink(mode) {
|
@@ -219130,14 +219003,14 @@ exports.default = download;
|
|
219130
219003
|
/***/ }),
|
219131
219004
|
|
219132
219005
|
/***/ 3838:
|
219133
|
-
/***/ ((__unused_webpack_module, exports,
|
219006
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_979995__) => {
|
219134
219007
|
|
219135
219008
|
"use strict";
|
219136
219009
|
|
219137
219010
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219138
|
-
const path_1 =
|
219139
|
-
const os_1 =
|
219140
|
-
const fs_extra_1 =
|
219011
|
+
const path_1 = __nested_webpack_require_979995__(5622);
|
219012
|
+
const os_1 = __nested_webpack_require_979995__(2087);
|
219013
|
+
const fs_extra_1 = __nested_webpack_require_979995__(5392);
|
219141
219014
|
async function getWritableDirectory() {
|
219142
219015
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
219143
219016
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -219150,7 +219023,7 @@ exports.default = getWritableDirectory;
|
|
219150
219023
|
/***/ }),
|
219151
219024
|
|
219152
219025
|
/***/ 4240:
|
219153
|
-
/***/ (function(__unused_webpack_module, exports,
|
219026
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_980575__) {
|
219154
219027
|
|
219155
219028
|
"use strict";
|
219156
219029
|
|
@@ -219158,13 +219031,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219158
219031
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219159
219032
|
};
|
219160
219033
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219161
|
-
const path_1 = __importDefault(
|
219162
|
-
const assert_1 = __importDefault(
|
219163
|
-
const glob_1 = __importDefault(
|
219164
|
-
const util_1 =
|
219165
|
-
const fs_extra_1 =
|
219166
|
-
const normalize_path_1 =
|
219167
|
-
const file_fs_ref_1 = __importDefault(
|
219034
|
+
const path_1 = __importDefault(__nested_webpack_require_980575__(5622));
|
219035
|
+
const assert_1 = __importDefault(__nested_webpack_require_980575__(2357));
|
219036
|
+
const glob_1 = __importDefault(__nested_webpack_require_980575__(1104));
|
219037
|
+
const util_1 = __nested_webpack_require_980575__(1669);
|
219038
|
+
const fs_extra_1 = __nested_webpack_require_980575__(5392);
|
219039
|
+
const normalize_path_1 = __nested_webpack_require_980575__(6261);
|
219040
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_980575__(9331));
|
219168
219041
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
219169
219042
|
async function glob(pattern, opts, mountpoint) {
|
219170
219043
|
let options;
|
@@ -219210,7 +219083,7 @@ exports.default = glob;
|
|
219210
219083
|
/***/ }),
|
219211
219084
|
|
219212
219085
|
/***/ 7903:
|
219213
|
-
/***/ (function(__unused_webpack_module, exports,
|
219086
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_982771__) {
|
219214
219087
|
|
219215
219088
|
"use strict";
|
219216
219089
|
|
@@ -219219,9 +219092,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219219
219092
|
};
|
219220
219093
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219221
219094
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
219222
|
-
const semver_1 =
|
219223
|
-
const errors_1 =
|
219224
|
-
const debug_1 = __importDefault(
|
219095
|
+
const semver_1 = __nested_webpack_require_982771__(2879);
|
219096
|
+
const errors_1 = __nested_webpack_require_982771__(3983);
|
219097
|
+
const debug_1 = __importDefault(__nested_webpack_require_982771__(1868));
|
219225
219098
|
const allOptions = [
|
219226
219099
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
219227
219100
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -219315,7 +219188,7 @@ exports.normalizePath = normalizePath;
|
|
219315
219188
|
/***/ }),
|
219316
219189
|
|
219317
219190
|
/***/ 7792:
|
219318
|
-
/***/ (function(__unused_webpack_module, exports,
|
219191
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986639__) {
|
219319
219192
|
|
219320
219193
|
"use strict";
|
219321
219194
|
|
@@ -219324,9 +219197,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219324
219197
|
};
|
219325
219198
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219326
219199
|
exports.readConfigFile = void 0;
|
219327
|
-
const js_yaml_1 = __importDefault(
|
219328
|
-
const toml_1 = __importDefault(
|
219329
|
-
const fs_extra_1 =
|
219200
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_986639__(6540));
|
219201
|
+
const toml_1 = __importDefault(__nested_webpack_require_986639__(9434));
|
219202
|
+
const fs_extra_1 = __nested_webpack_require_986639__(5392);
|
219330
219203
|
async function readFileOrNull(file) {
|
219331
219204
|
try {
|
219332
219205
|
const data = await fs_extra_1.readFile(file);
|
@@ -219381,7 +219254,7 @@ exports.default = rename;
|
|
219381
219254
|
/***/ }),
|
219382
219255
|
|
219383
219256
|
/***/ 1442:
|
219384
|
-
/***/ (function(__unused_webpack_module, exports,
|
219257
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_988432__) {
|
219385
219258
|
|
219386
219259
|
"use strict";
|
219387
219260
|
|
@@ -219390,14 +219263,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219390
219263
|
};
|
219391
219264
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219392
219265
|
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;
|
219393
|
-
const assert_1 = __importDefault(
|
219394
|
-
const fs_extra_1 = __importDefault(
|
219395
|
-
const path_1 = __importDefault(
|
219396
|
-
const debug_1 = __importDefault(
|
219397
|
-
const cross_spawn_1 = __importDefault(
|
219398
|
-
const util_1 =
|
219399
|
-
const errors_1 =
|
219400
|
-
const node_version_1 =
|
219266
|
+
const assert_1 = __importDefault(__nested_webpack_require_988432__(2357));
|
219267
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_988432__(5392));
|
219268
|
+
const path_1 = __importDefault(__nested_webpack_require_988432__(5622));
|
219269
|
+
const debug_1 = __importDefault(__nested_webpack_require_988432__(1868));
|
219270
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_988432__(7618));
|
219271
|
+
const util_1 = __nested_webpack_require_988432__(1669);
|
219272
|
+
const errors_1 = __nested_webpack_require_988432__(3983);
|
219273
|
+
const node_version_1 = __nested_webpack_require_988432__(7903);
|
219401
219274
|
function spawnAsync(command, args, opts = {}) {
|
219402
219275
|
return new Promise((resolve, reject) => {
|
219403
219276
|
const stderrLogs = [];
|
@@ -219708,7 +219581,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219708
219581
|
/***/ }),
|
219709
219582
|
|
219710
219583
|
/***/ 2560:
|
219711
|
-
/***/ (function(__unused_webpack_module, exports,
|
219584
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1002422__) {
|
219712
219585
|
|
219713
219586
|
"use strict";
|
219714
219587
|
|
@@ -219716,7 +219589,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219716
219589
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219717
219590
|
};
|
219718
219591
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219719
|
-
const end_of_stream_1 = __importDefault(
|
219592
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1002422__(687));
|
219720
219593
|
function streamToBuffer(stream) {
|
219721
219594
|
return new Promise((resolve, reject) => {
|
219722
219595
|
const buffers = [];
|
@@ -219745,7 +219618,7 @@ exports.default = streamToBuffer;
|
|
219745
219618
|
/***/ }),
|
219746
219619
|
|
219747
219620
|
/***/ 1148:
|
219748
|
-
/***/ (function(__unused_webpack_module, exports,
|
219621
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1003490__) {
|
219749
219622
|
|
219750
219623
|
"use strict";
|
219751
219624
|
|
@@ -219753,9 +219626,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219753
219626
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219754
219627
|
};
|
219755
219628
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219756
|
-
const path_1 = __importDefault(
|
219757
|
-
const fs_extra_1 = __importDefault(
|
219758
|
-
const ignore_1 = __importDefault(
|
219629
|
+
const path_1 = __importDefault(__nested_webpack_require_1003490__(5622));
|
219630
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1003490__(5392));
|
219631
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1003490__(3556));
|
219759
219632
|
function isCodedError(error) {
|
219760
219633
|
return (error !== null &&
|
219761
219634
|
error !== undefined &&
|
@@ -219812,7 +219685,7 @@ exports.default = default_1;
|
|
219812
219685
|
/***/ }),
|
219813
219686
|
|
219814
219687
|
/***/ 2855:
|
219815
|
-
/***/ (function(__unused_webpack_module, exports,
|
219688
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1005872__) {
|
219816
219689
|
|
219817
219690
|
"use strict";
|
219818
219691
|
|
@@ -219843,29 +219716,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219843
219716
|
};
|
219844
219717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219845
219718
|
exports.getInputHash = 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.getIgnoreFilter = 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;
|
219846
|
-
const crypto_1 =
|
219847
|
-
const file_blob_1 = __importDefault(
|
219719
|
+
const crypto_1 = __nested_webpack_require_1005872__(6417);
|
219720
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1005872__(2397));
|
219848
219721
|
exports.FileBlob = file_blob_1.default;
|
219849
|
-
const file_fs_ref_1 = __importDefault(
|
219722
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1005872__(9331));
|
219850
219723
|
exports.FileFsRef = file_fs_ref_1.default;
|
219851
|
-
const file_ref_1 = __importDefault(
|
219724
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1005872__(5187));
|
219852
219725
|
exports.FileRef = file_ref_1.default;
|
219853
|
-
const lambda_1 =
|
219726
|
+
const lambda_1 = __nested_webpack_require_1005872__(6721);
|
219854
219727
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219855
219728
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219856
219729
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219857
|
-
const prerender_1 =
|
219730
|
+
const prerender_1 = __nested_webpack_require_1005872__(2850);
|
219858
219731
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219859
|
-
const download_1 = __importStar(
|
219732
|
+
const download_1 = __importStar(__nested_webpack_require_1005872__(1611));
|
219860
219733
|
exports.download = download_1.default;
|
219861
219734
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219862
|
-
const get_writable_directory_1 = __importDefault(
|
219735
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1005872__(3838));
|
219863
219736
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219864
|
-
const glob_1 = __importDefault(
|
219737
|
+
const glob_1 = __importDefault(__nested_webpack_require_1005872__(4240));
|
219865
219738
|
exports.glob = glob_1.default;
|
219866
|
-
const rename_1 = __importDefault(
|
219739
|
+
const rename_1 = __importDefault(__nested_webpack_require_1005872__(6718));
|
219867
219740
|
exports.rename = rename_1.default;
|
219868
|
-
const run_user_scripts_1 =
|
219741
|
+
const run_user_scripts_1 = __nested_webpack_require_1005872__(1442);
|
219869
219742
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219870
219743
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219871
219744
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219882,38 +219755,38 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219882
219755
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219883
219756
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219884
219757
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219885
|
-
const node_version_1 =
|
219758
|
+
const node_version_1 = __nested_webpack_require_1005872__(7903);
|
219886
219759
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219887
219760
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219888
|
-
const errors_1 =
|
219889
|
-
const stream_to_buffer_1 = __importDefault(
|
219761
|
+
const errors_1 = __nested_webpack_require_1005872__(3983);
|
219762
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1005872__(2560));
|
219890
219763
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219891
|
-
const should_serve_1 = __importDefault(
|
219764
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1005872__(2564));
|
219892
219765
|
exports.shouldServe = should_serve_1.default;
|
219893
|
-
const debug_1 = __importDefault(
|
219766
|
+
const debug_1 = __importDefault(__nested_webpack_require_1005872__(1868));
|
219894
219767
|
exports.debug = debug_1.default;
|
219895
|
-
const get_ignore_filter_1 = __importDefault(
|
219768
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1005872__(1148));
|
219896
219769
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
219897
|
-
var detect_builders_1 =
|
219770
|
+
var detect_builders_1 = __nested_webpack_require_1005872__(4246);
|
219898
219771
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219899
219772
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219900
219773
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219901
219774
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219902
|
-
var detect_framework_1 =
|
219775
|
+
var detect_framework_1 = __nested_webpack_require_1005872__(5224);
|
219903
219776
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219904
|
-
var filesystem_1 =
|
219777
|
+
var filesystem_1 = __nested_webpack_require_1005872__(461);
|
219905
219778
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219906
|
-
var read_config_file_1 =
|
219779
|
+
var read_config_file_1 = __nested_webpack_require_1005872__(7792);
|
219907
219780
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219908
|
-
var normalize_path_1 =
|
219781
|
+
var normalize_path_1 = __nested_webpack_require_1005872__(6261);
|
219909
219782
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219910
|
-
var convert_runtime_to_plugin_1 =
|
219783
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_1005872__(7276);
|
219911
219784
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219912
219785
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219913
219786
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219914
|
-
__exportStar(
|
219915
|
-
__exportStar(
|
219916
|
-
__exportStar(
|
219787
|
+
__exportStar(__nested_webpack_require_1005872__(2416), exports);
|
219788
|
+
__exportStar(__nested_webpack_require_1005872__(5748), exports);
|
219789
|
+
__exportStar(__nested_webpack_require_1005872__(3983), exports);
|
219917
219790
|
/**
|
219918
219791
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219919
219792
|
*/
|
@@ -219966,7 +219839,7 @@ exports.getInputHash = getInputHash;
|
|
219966
219839
|
/***/ }),
|
219967
219840
|
|
219968
219841
|
/***/ 6721:
|
219969
|
-
/***/ (function(__unused_webpack_module, exports,
|
219842
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1016850__) {
|
219970
219843
|
|
219971
219844
|
"use strict";
|
219972
219845
|
|
@@ -219975,13 +219848,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219975
219848
|
};
|
219976
219849
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219977
219850
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
219978
|
-
const assert_1 = __importDefault(
|
219979
|
-
const async_sema_1 = __importDefault(
|
219980
|
-
const yazl_1 =
|
219981
|
-
const minimatch_1 = __importDefault(
|
219982
|
-
const fs_extra_1 =
|
219983
|
-
const download_1 =
|
219984
|
-
const stream_to_buffer_1 = __importDefault(
|
219851
|
+
const assert_1 = __importDefault(__nested_webpack_require_1016850__(2357));
|
219852
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1016850__(5758));
|
219853
|
+
const yazl_1 = __nested_webpack_require_1016850__(1223);
|
219854
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1016850__(9566));
|
219855
|
+
const fs_extra_1 = __nested_webpack_require_1016850__(5392);
|
219856
|
+
const download_1 = __nested_webpack_require_1016850__(1611);
|
219857
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1016850__(2560));
|
219985
219858
|
exports.FILES_SYMBOL = Symbol('files');
|
219986
219859
|
class Lambda {
|
219987
219860
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -220210,12 +220083,12 @@ exports.buildsSchema = {
|
|
220210
220083
|
/***/ }),
|
220211
220084
|
|
220212
220085
|
/***/ 2564:
|
220213
|
-
/***/ ((__unused_webpack_module, exports,
|
220086
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1025360__) => {
|
220214
220087
|
|
220215
220088
|
"use strict";
|
220216
220089
|
|
220217
220090
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
220218
|
-
const path_1 =
|
220091
|
+
const path_1 = __nested_webpack_require_1025360__(5622);
|
220219
220092
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
220220
220093
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
220221
220094
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -220452,7 +220325,7 @@ module.exports = __webpack_require__(78761);
|
|
220452
220325
|
/******/ var __webpack_module_cache__ = {};
|
220453
220326
|
/******/
|
220454
220327
|
/******/ // The require function
|
220455
|
-
/******/ function
|
220328
|
+
/******/ function __nested_webpack_require_1125095__(moduleId) {
|
220456
220329
|
/******/ // Check if module is in cache
|
220457
220330
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
220458
220331
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -220467,7 +220340,7 @@ module.exports = __webpack_require__(78761);
|
|
220467
220340
|
/******/ // Execute the module function
|
220468
220341
|
/******/ var threw = true;
|
220469
220342
|
/******/ try {
|
220470
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
220343
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1125095__);
|
220471
220344
|
/******/ threw = false;
|
220472
220345
|
/******/ } finally {
|
220473
220346
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -220480,11 +220353,11 @@ module.exports = __webpack_require__(78761);
|
|
220480
220353
|
/************************************************************************/
|
220481
220354
|
/******/ /* webpack/runtime/compat */
|
220482
220355
|
/******/
|
220483
|
-
/******/
|
220356
|
+
/******/ __nested_webpack_require_1125095__.ab = __dirname + "/";/************************************************************************/
|
220484
220357
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
220485
220358
|
/******/ // startup
|
220486
220359
|
/******/ // Load entry module and return exports
|
220487
|
-
/******/ return
|
220360
|
+
/******/ return __nested_webpack_require_1125095__(2855);
|
220488
220361
|
/******/ })()
|
220489
220362
|
;
|
220490
220363
|
|
@@ -242784,7 +242657,6 @@ exports.frameworks = [
|
|
242784
242657
|
},
|
242785
242658
|
dependency: 'gatsby',
|
242786
242659
|
getOutputDirName: async () => 'public',
|
242787
|
-
getFsOutputDir: async () => 'public',
|
242788
242660
|
defaultRoutes: async (dirPrefix) => {
|
242789
242661
|
// This file could be generated by gatsby-plugin-now or gatsby-plugin-zeit-now
|
242790
242662
|
try {
|
@@ -242865,7 +242737,6 @@ exports.frameworks = [
|
|
242865
242737
|
},
|
242866
242738
|
},
|
242867
242739
|
dependency: 'remix',
|
242868
|
-
getFsOutputDir: async () => 'public',
|
242869
242740
|
getOutputDirName: async () => 'public',
|
242870
242741
|
defaultRoutes: [
|
242871
242742
|
{
|
@@ -242893,10 +242764,13 @@ exports.frameworks = [
|
|
242893
242764
|
source: '/build/(.*)',
|
242894
242765
|
regex: '/build/(.*)',
|
242895
242766
|
headers: [
|
242896
|
-
{
|
242767
|
+
{
|
242768
|
+
key: 'cache-control',
|
242769
|
+
value: 'public, max-age=31536000, immutable',
|
242770
|
+
},
|
242897
242771
|
],
|
242898
242772
|
},
|
242899
|
-
]
|
242773
|
+
],
|
242900
242774
|
},
|
242901
242775
|
{
|
242902
242776
|
name: 'Hexo',
|
@@ -242931,7 +242805,6 @@ exports.frameworks = [
|
|
242931
242805
|
},
|
242932
242806
|
},
|
242933
242807
|
dependency: 'hexo',
|
242934
|
-
getFsOutputDir: async () => 'public',
|
242935
242808
|
getOutputDirName: async () => 'public',
|
242936
242809
|
},
|
242937
242810
|
{
|
@@ -242967,7 +242840,6 @@ exports.frameworks = [
|
|
242967
242840
|
},
|
242968
242841
|
},
|
242969
242842
|
dependency: '@11ty/eleventy',
|
242970
|
-
getFsOutputDir: async () => '_site',
|
242971
242843
|
getOutputDirName: async () => '_site',
|
242972
242844
|
cachePattern: '.cache/**',
|
242973
242845
|
},
|
@@ -243004,21 +242876,6 @@ exports.frameworks = [
|
|
243004
242876
|
},
|
243005
242877
|
},
|
243006
242878
|
dependency: '@docusaurus/core',
|
243007
|
-
getFsOutputDir: async (dirPrefix) => {
|
243008
|
-
const base = 'build';
|
243009
|
-
try {
|
243010
|
-
const location = path_1.join(dirPrefix, base);
|
243011
|
-
const content = await readdir(location, { withFileTypes: true });
|
243012
|
-
// If there is only one file in it that is a dir we'll use it as dist dir
|
243013
|
-
if (content.length === 1 && content[0].isDirectory()) {
|
243014
|
-
return path_1.join(base, content[0].name);
|
243015
|
-
}
|
243016
|
-
}
|
243017
|
-
catch (error) {
|
243018
|
-
console.error(`Error detecting output directory: `, error);
|
243019
|
-
}
|
243020
|
-
return base;
|
243021
|
-
},
|
243022
242879
|
getOutputDirName: async (dirPrefix) => {
|
243023
242880
|
const base = 'build';
|
243024
242881
|
try {
|
@@ -243148,21 +243005,6 @@ exports.frameworks = [
|
|
243148
243005
|
},
|
243149
243006
|
},
|
243150
243007
|
dependency: 'docusaurus',
|
243151
|
-
getFsOutputDir: async (dirPrefix) => {
|
243152
|
-
const base = 'build';
|
243153
|
-
try {
|
243154
|
-
const location = path_1.join(dirPrefix, base);
|
243155
|
-
const content = await readdir(location, { withFileTypes: true });
|
243156
|
-
// If there is only one file in it that is a dir we'll use it as dist dir
|
243157
|
-
if (content.length === 1 && content[0].isDirectory()) {
|
243158
|
-
return path_1.join(base, content[0].name);
|
243159
|
-
}
|
243160
|
-
}
|
243161
|
-
catch (error) {
|
243162
|
-
console.error(`Error detecting output directory: `, error);
|
243163
|
-
}
|
243164
|
-
return base;
|
243165
|
-
},
|
243166
243008
|
getOutputDirName: async (dirPrefix) => {
|
243167
243009
|
const base = 'build';
|
243168
243010
|
try {
|
@@ -243212,7 +243054,6 @@ exports.frameworks = [
|
|
243212
243054
|
},
|
243213
243055
|
},
|
243214
243056
|
dependency: 'preact-cli',
|
243215
|
-
getFsOutputDir: async () => 'build',
|
243216
243057
|
getOutputDirName: async () => 'build',
|
243217
243058
|
defaultRoutes: [
|
243218
243059
|
{
|
@@ -243267,7 +243108,6 @@ exports.frameworks = [
|
|
243267
243108
|
},
|
243268
243109
|
},
|
243269
243110
|
dependency: '@dojo/cli',
|
243270
|
-
getFsOutputDir: async () => 'output/dist',
|
243271
243111
|
getOutputDirName: async () => path_1.join('output', 'dist'),
|
243272
243112
|
defaultRoutes: [
|
243273
243113
|
{
|
@@ -243332,7 +243172,6 @@ exports.frameworks = [
|
|
243332
243172
|
},
|
243333
243173
|
},
|
243334
243174
|
dependency: 'ember-cli',
|
243335
|
-
getFsOutputDir: async () => 'dist',
|
243336
243175
|
getOutputDirName: async () => 'dist',
|
243337
243176
|
defaultRoutes: [
|
243338
243177
|
{
|
@@ -243385,7 +243224,6 @@ exports.frameworks = [
|
|
243385
243224
|
},
|
243386
243225
|
},
|
243387
243226
|
dependency: '@vue/cli-service',
|
243388
|
-
getFsOutputDir: async () => 'dist',
|
243389
243227
|
getOutputDirName: async () => 'dist',
|
243390
243228
|
defaultRoutes: [
|
243391
243229
|
{
|
@@ -243461,7 +243299,6 @@ exports.frameworks = [
|
|
243461
243299
|
},
|
243462
243300
|
},
|
243463
243301
|
dependency: '@scullyio/init',
|
243464
|
-
getFsOutputDir: async () => 'dist',
|
243465
243302
|
getOutputDirName: async () => 'dist/static',
|
243466
243303
|
},
|
243467
243304
|
{
|
@@ -243496,7 +243333,6 @@ exports.frameworks = [
|
|
243496
243333
|
},
|
243497
243334
|
},
|
243498
243335
|
dependency: '@ionic/angular',
|
243499
|
-
getFsOutputDir: async () => 'www',
|
243500
243336
|
getOutputDirName: async () => 'www',
|
243501
243337
|
defaultRoutes: [
|
243502
243338
|
{
|
@@ -243548,7 +243384,6 @@ exports.frameworks = [
|
|
243548
243384
|
},
|
243549
243385
|
},
|
243550
243386
|
dependency: '@angular/cli',
|
243551
|
-
getFsOutputDir: async () => 'dist',
|
243552
243387
|
getOutputDirName: async (dirPrefix) => {
|
243553
243388
|
const base = 'dist';
|
243554
243389
|
try {
|
@@ -243614,7 +243449,6 @@ exports.frameworks = [
|
|
243614
243449
|
},
|
243615
243450
|
},
|
243616
243451
|
dependency: 'polymer-cli',
|
243617
|
-
getFsOutputDir: async () => 'build',
|
243618
243452
|
getOutputDirName: async (dirPrefix) => {
|
243619
243453
|
const base = 'build';
|
243620
243454
|
try {
|
@@ -243682,7 +243516,6 @@ exports.frameworks = [
|
|
243682
243516
|
},
|
243683
243517
|
},
|
243684
243518
|
dependency: 'sirv-cli',
|
243685
|
-
getFsOutputDir: async () => 'public',
|
243686
243519
|
getOutputDirName: async () => 'public',
|
243687
243520
|
defaultRoutes: [
|
243688
243521
|
{
|
@@ -243730,10 +243563,9 @@ exports.frameworks = [
|
|
243730
243563
|
placeholder: 'svelte-kit dev',
|
243731
243564
|
},
|
243732
243565
|
outputDirectory: {
|
243733
|
-
|
243566
|
+
value: 'public',
|
243734
243567
|
},
|
243735
243568
|
},
|
243736
|
-
getFsOutputDir: async () => '.output',
|
243737
243569
|
getOutputDirName: async () => 'public',
|
243738
243570
|
},
|
243739
243571
|
{
|
@@ -243768,7 +243600,6 @@ exports.frameworks = [
|
|
243768
243600
|
},
|
243769
243601
|
},
|
243770
243602
|
dependency: '@ionic/react',
|
243771
|
-
getFsOutputDir: async () => 'build',
|
243772
243603
|
getOutputDirName: async () => 'build',
|
243773
243604
|
defaultRoutes: [
|
243774
243605
|
{
|
@@ -243873,7 +243704,6 @@ exports.frameworks = [
|
|
243873
243704
|
},
|
243874
243705
|
},
|
243875
243706
|
dependency: 'react-scripts',
|
243876
|
-
getFsOutputDir: async () => 'build',
|
243877
243707
|
getOutputDirName: async () => 'build',
|
243878
243708
|
defaultRoutes: [
|
243879
243709
|
{
|
@@ -243973,7 +243803,6 @@ exports.frameworks = [
|
|
243973
243803
|
},
|
243974
243804
|
},
|
243975
243805
|
dependency: 'gridsome',
|
243976
|
-
getFsOutputDir: async () => 'dist',
|
243977
243806
|
getOutputDirName: async () => 'dist',
|
243978
243807
|
},
|
243979
243808
|
{
|
@@ -244009,7 +243838,6 @@ exports.frameworks = [
|
|
244009
243838
|
},
|
244010
243839
|
},
|
244011
243840
|
dependency: 'umi',
|
244012
|
-
getFsOutputDir: async () => 'dist',
|
244013
243841
|
getOutputDirName: async () => 'dist',
|
244014
243842
|
defaultRoutes: [
|
244015
243843
|
{
|
@@ -244061,7 +243889,6 @@ exports.frameworks = [
|
|
244061
243889
|
},
|
244062
243890
|
},
|
244063
243891
|
dependency: 'sapper',
|
244064
|
-
getFsOutputDir: async () => '__sapper__/export',
|
244065
243892
|
getOutputDirName: async () => '__sapper__/export',
|
244066
243893
|
},
|
244067
243894
|
{
|
@@ -244097,7 +243924,6 @@ exports.frameworks = [
|
|
244097
243924
|
},
|
244098
243925
|
},
|
244099
243926
|
dependency: 'saber',
|
244100
|
-
getFsOutputDir: async () => 'public',
|
244101
243927
|
getOutputDirName: async () => 'public',
|
244102
243928
|
defaultRoutes: [
|
244103
243929
|
{
|
@@ -244164,7 +243990,6 @@ exports.frameworks = [
|
|
244164
243990
|
},
|
244165
243991
|
},
|
244166
243992
|
dependency: '@stencil/core',
|
244167
|
-
getFsOutputDir: async () => 'www',
|
244168
243993
|
getOutputDirName: async () => 'www',
|
244169
243994
|
defaultRoutes: [
|
244170
243995
|
{
|
@@ -244251,7 +244076,6 @@ exports.frameworks = [
|
|
244251
244076
|
},
|
244252
244077
|
},
|
244253
244078
|
dependency: 'nuxt',
|
244254
|
-
getFsOutputDir: async () => '.output',
|
244255
244079
|
getOutputDirName: async () => 'dist',
|
244256
244080
|
cachePattern: '.nuxt/**',
|
244257
244081
|
defaultRoutes: [
|
@@ -244308,7 +244132,6 @@ exports.frameworks = [
|
|
244308
244132
|
placeholder: 'RedwoodJS default',
|
244309
244133
|
},
|
244310
244134
|
},
|
244311
|
-
getFsOutputDir: async () => 'public',
|
244312
244135
|
getOutputDirName: async () => 'public',
|
244313
244136
|
},
|
244314
244137
|
{
|
@@ -244351,12 +244174,6 @@ exports.frameworks = [
|
|
244351
244174
|
placeholder: '`public` or `publishDir` from the `config` file',
|
244352
244175
|
},
|
244353
244176
|
},
|
244354
|
-
getFsOutputDir: async (dirPrefix) => {
|
244355
|
-
const config = await read_config_file_1.readConfigFile(['config.json', 'config.yaml', 'config.toml'].map(fileName => {
|
244356
|
-
return path_1.join(dirPrefix, fileName);
|
244357
|
-
}));
|
244358
|
-
return (config && config.publishDir) || 'public';
|
244359
|
-
},
|
244360
244177
|
getOutputDirName: async (dirPrefix) => {
|
244361
244178
|
const config = await read_config_file_1.readConfigFile(['config.json', 'config.yaml', 'config.toml'].map(fileName => {
|
244362
244179
|
return path_1.join(dirPrefix, fileName);
|
@@ -244396,10 +244213,6 @@ exports.frameworks = [
|
|
244396
244213
|
placeholder: '`_site` or `destination` from `_config.yml`',
|
244397
244214
|
},
|
244398
244215
|
},
|
244399
|
-
getFsOutputDir: async (dirPrefix) => {
|
244400
|
-
const config = await read_config_file_1.readConfigFile(path_1.join(dirPrefix, '_config.yml'));
|
244401
|
-
return (config && config.destination) || '_site';
|
244402
|
-
},
|
244403
244216
|
getOutputDirName: async (dirPrefix) => {
|
244404
244217
|
const config = await read_config_file_1.readConfigFile(path_1.join(dirPrefix, '_config.yml'));
|
244405
244218
|
return (config && config.destination) || '_site';
|
@@ -244437,7 +244250,6 @@ exports.frameworks = [
|
|
244437
244250
|
value: 'public',
|
244438
244251
|
},
|
244439
244252
|
},
|
244440
|
-
getFsOutputDir: async () => 'public',
|
244441
244253
|
getOutputDirName: async () => 'public',
|
244442
244254
|
},
|
244443
244255
|
{
|
@@ -244471,7 +244283,6 @@ exports.frameworks = [
|
|
244471
244283
|
value: 'build',
|
244472
244284
|
},
|
244473
244285
|
},
|
244474
|
-
getFsOutputDir: async () => 'build',
|
244475
244286
|
getOutputDirName: async () => 'build',
|
244476
244287
|
cachePattern: '{vendor/bin,vendor/cache,vendor/bundle}/**',
|
244477
244288
|
},
|
@@ -244506,7 +244317,6 @@ exports.frameworks = [
|
|
244506
244317
|
value: 'public',
|
244507
244318
|
},
|
244508
244319
|
},
|
244509
|
-
getFsOutputDir: async () => 'public',
|
244510
244320
|
getOutputDirName: async () => 'public',
|
244511
244321
|
defaultVersion: '0.13.0',
|
244512
244322
|
},
|
@@ -244544,7 +244354,6 @@ exports.frameworks = [
|
|
244544
244354
|
},
|
244545
244355
|
},
|
244546
244356
|
dependency: 'vite',
|
244547
|
-
getFsOutputDir: async () => 'dist',
|
244548
244357
|
getOutputDirName: async () => 'dist',
|
244549
244358
|
},
|
244550
244359
|
{
|
@@ -244580,7 +244389,6 @@ exports.frameworks = [
|
|
244580
244389
|
},
|
244581
244390
|
},
|
244582
244391
|
dependency: 'parcel',
|
244583
|
-
getFsOutputDir: async () => 'dist',
|
244584
244392
|
getOutputDirName: async () => 'dist',
|
244585
244393
|
defaultRoutes: [
|
244586
244394
|
{
|
@@ -250461,7 +250269,6 @@ const nft_1 = __webpack_require__(49280);
|
|
250461
250269
|
const async_sema_1 = __importDefault(__webpack_require__(45758));
|
250462
250270
|
const chalk_1 = __importDefault(__webpack_require__(961));
|
250463
250271
|
const console_1 = __webpack_require__(57082);
|
250464
|
-
const crypto_1 = __webpack_require__(76417);
|
250465
250272
|
const fs_extra_1 = __importDefault(__webpack_require__(45392));
|
250466
250273
|
const glob_1 = __importDefault(__webpack_require__(91104));
|
250467
250274
|
const path_1 = __webpack_require__(85622);
|
@@ -250701,16 +250508,17 @@ async function main(client) {
|
|
250701
250508
|
client.output.debug(`Found ${param_1.default('.next')} directory.`);
|
250702
250509
|
}
|
250703
250510
|
// We cannot rely on the `framework` alone, as it might be a static export,
|
250704
|
-
// and the current build might use a
|
250511
|
+
// and the current build might use a different project that's not in the settings.
|
250705
250512
|
const isNextOutput = Boolean(dotNextDir);
|
250706
250513
|
const nextExport = await getNextExportStatus(dotNextDir);
|
250707
250514
|
const outputDir = isNextOutput && !nextExport ? OUTPUT_DIR : path_1.join(OUTPUT_DIR, 'static');
|
250515
|
+
const getDistDir = framework.getFsOutputDir || framework.getOutputDirName;
|
250708
250516
|
const distDir = ((nextExport === null || nextExport === void 0 ? void 0 : nextExport.exportDetail.outDirectory)
|
250709
250517
|
? path_1.relative(cwd, nextExport.exportDetail.outDirectory)
|
250710
250518
|
: false) ||
|
250711
250519
|
dotNextDir ||
|
250712
250520
|
userOutputDirectory ||
|
250713
|
-
(await
|
250521
|
+
(await getDistDir(cwd));
|
250714
250522
|
await fs_extra_1.default.ensureDir(path_1.join(cwd, outputDir));
|
250715
250523
|
const copyStamp = stamp_1.default();
|
250716
250524
|
client.output.spinner(`Copying files from ${param_1.default(distDir)} to ${param_1.default(outputDir)}`);
|
@@ -250890,29 +250698,11 @@ async function main(client) {
|
|
250890
250698
|
],
|
250891
250699
|
});
|
250892
250700
|
fileList.delete(path_1.relative(cwd, f));
|
250893
|
-
|
250894
|
-
|
250895
|
-
|
250896
|
-
|
250897
|
-
|
250898
|
-
distDir,
|
250899
|
-
nft: {
|
250900
|
-
version: 1,
|
250901
|
-
files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
|
250902
|
-
},
|
250903
|
-
});
|
250904
|
-
}
|
250905
|
-
}
|
250906
|
-
else {
|
250907
|
-
for (let f of nftFiles) {
|
250908
|
-
const json = await fs_extra_1.default.readJson(f);
|
250909
|
-
await resolveNftToOutput({
|
250910
|
-
client,
|
250911
|
-
baseDir,
|
250912
|
-
outputDir: OUTPUT_DIR,
|
250913
|
-
nftFileName: f,
|
250914
|
-
nft: json,
|
250915
|
-
distDir,
|
250701
|
+
const nftFileName = f.replace(ext, '.js.nft.json');
|
250702
|
+
client.output.debug(`Creating ${nftFileName}`);
|
250703
|
+
await fs_extra_1.default.writeJSON(nftFileName, {
|
250704
|
+
version: 2,
|
250705
|
+
files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
|
250916
250706
|
});
|
250917
250707
|
}
|
250918
250708
|
}
|
@@ -250926,14 +250716,7 @@ async function main(client) {
|
|
250926
250716
|
files: requiredServerFilesJson.files.map((i) => {
|
250927
250717
|
const originalPath = path_1.join(requiredServerFilesJson.appDir, i);
|
250928
250718
|
const relPath = path_1.join(OUTPUT_DIR, path_1.relative(distDir, originalPath));
|
250929
|
-
|
250930
|
-
const output = path_1.relative(baseDir, absolutePath);
|
250931
|
-
return relPath === output
|
250932
|
-
? relPath
|
250933
|
-
: {
|
250934
|
-
input: relPath,
|
250935
|
-
output,
|
250936
|
-
};
|
250719
|
+
return relPath;
|
250937
250720
|
}),
|
250938
250721
|
});
|
250939
250722
|
}
|
@@ -251058,61 +250841,6 @@ async function glob(pattern, options) {
|
|
251058
250841
|
});
|
251059
250842
|
});
|
251060
250843
|
}
|
251061
|
-
/**
|
251062
|
-
* Computes a hash for the given buf.
|
251063
|
-
*
|
251064
|
-
* @param {Buffer} file data
|
251065
|
-
* @return {String} hex digest
|
251066
|
-
*/
|
251067
|
-
function hash(buf) {
|
251068
|
-
return crypto_1.createHash('sha1').update(buf).digest('hex');
|
251069
|
-
}
|
251070
|
-
// resolveNftToOutput takes nft file and moves all of its trace files
|
251071
|
-
// into the specified directory + `inputs`, (renaming them to their hash + ext) and
|
251072
|
-
// subsequently updating the original nft file accordingly. This is done
|
251073
|
-
// to make the `.output` directory be self-contained, so that it works
|
251074
|
-
// properly with `vc --prebuilt`.
|
251075
|
-
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, distDir, nft, }) {
|
251076
|
-
client.output.debug(`Processing and resolving ${nftFileName}`);
|
251077
|
-
await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
|
251078
|
-
const newFilesList = [];
|
251079
|
-
// If `distDir` is a subdirectory, then the input has to be resolved to where the `.output` directory will be.
|
251080
|
-
const relNftFileName = path_1.relative(outputDir, nftFileName);
|
251081
|
-
const origNftFilename = path_1.join(distDir, relNftFileName);
|
251082
|
-
if (relNftFileName.startsWith('cache/')) {
|
251083
|
-
// No need to process the `cache/` directory.
|
251084
|
-
// Paths in it might also not be relative to `cache` itself.
|
251085
|
-
return;
|
251086
|
-
}
|
251087
|
-
for (let fileEntity of nft.files) {
|
251088
|
-
const relativeInput = typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
|
251089
|
-
const fullInput = path_1.resolve(path_1.join(path_1.parse(origNftFilename).dir, relativeInput));
|
251090
|
-
// if the resolved path is NOT in the .output directory we move in it there
|
251091
|
-
if (!fullInput.includes(distDir)) {
|
251092
|
-
const { ext } = path_1.parse(fullInput);
|
251093
|
-
const raw = await fs_extra_1.default.readFile(fullInput);
|
251094
|
-
const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
|
251095
|
-
smartCopy(client, fullInput, newFilePath);
|
251096
|
-
// We have to use `baseDir` instead of `cwd`, because we want to
|
251097
|
-
// mount everything from there (especially `node_modules`).
|
251098
|
-
// This is important for NPM Workspaces where `node_modules` is not
|
251099
|
-
// in the directory of the workspace.
|
251100
|
-
const output = path_1.relative(baseDir, fullInput).replace('.output', '.next');
|
251101
|
-
newFilesList.push({
|
251102
|
-
input: path_1.relative(path_1.parse(nftFileName).dir, newFilePath),
|
251103
|
-
output,
|
251104
|
-
});
|
251105
|
-
}
|
251106
|
-
else {
|
251107
|
-
newFilesList.push(relativeInput);
|
251108
|
-
}
|
251109
|
-
}
|
251110
|
-
// Update the .nft.json with new input and output mapping
|
251111
|
-
await fs_extra_1.default.writeJSON(nftFileName, {
|
251112
|
-
...nft,
|
251113
|
-
files: newFilesList,
|
251114
|
-
});
|
251115
|
-
}
|
251116
250844
|
/**
|
251117
250845
|
* Files will only exist when `next export` was used.
|
251118
250846
|
*/
|
@@ -271316,7 +271044,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
271316
271044
|
/***/ ((module) => {
|
271317
271045
|
|
271318
271046
|
"use strict";
|
271319
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
271047
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.64\",\"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.41\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.7\",\"@vercel/python\":\"2.1.2-canary.1\",\"@vercel/ruby\":\"1.2.10-canary.0\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.17\",\"vercel-plugin-node\":\"1.12.2-canary.33\"},\"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.17\",\"@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\":\"35c8fc272905524eeb83268bdc09edb165d3382a\"}");
|
271320
271048
|
|
271321
271049
|
/***/ }),
|
271322
271050
|
|
@@ -271332,7 +271060,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
271332
271060
|
/***/ ((module) => {
|
271333
271061
|
|
271334
271062
|
"use strict";
|
271335
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
271063
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.42\",\"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.41\",\"@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\":\"35c8fc272905524eeb83268bdc09edb165d3382a\"}");
|
271336
271064
|
|
271337
271065
|
/***/ }),
|
271338
271066
|
|