@vercel/node 1.15.4-canary.0 → 1.15.4
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 +8 -294
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -63084,6 +63084,13 @@ const visitors = {
|
|
|
63084
63084
|
}
|
|
63085
63085
|
return { value: obj };
|
|
63086
63086
|
},
|
|
63087
|
+
'SequenceExpression': async function SequenceExpression(node, walk) {
|
|
63088
|
+
if ('expressions' in node && node.expressions.length === 2 && node.expressions[0].type === 'Literal' && node.expressions[0].value === 0 && node.expressions[1].type === 'MemberExpression') {
|
|
63089
|
+
const arg = await walk(node.expressions[1]);
|
|
63090
|
+
return arg;
|
|
63091
|
+
}
|
|
63092
|
+
return undefined;
|
|
63093
|
+
},
|
|
63087
63094
|
'TemplateLiteral': async function TemplateLiteral(node, walk) {
|
|
63088
63095
|
let val = { value: '' };
|
|
63089
63096
|
for (var i = 0; i < node.expressions.length; i++) {
|
|
@@ -79259,297 +79266,6 @@ function regExpEscape (s) {
|
|
|
79259
79266
|
}
|
|
79260
79267
|
|
|
79261
79268
|
|
|
79262
|
-
/***/ }),
|
|
79263
|
-
|
|
79264
|
-
/***/ 13578:
|
|
79265
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79266
|
-
|
|
79267
|
-
"use strict";
|
|
79268
|
-
|
|
79269
|
-
|
|
79270
|
-
const mkdirp = __webpack_require__(71856)
|
|
79271
|
-
|
|
79272
|
-
module.exports = function (dir, opts) {
|
|
79273
|
-
return new Promise((resolve, reject) => {
|
|
79274
|
-
mkdirp(dir, opts, (err, made) => err === null ? resolve(made) : reject(err))
|
|
79275
|
-
})
|
|
79276
|
-
}
|
|
79277
|
-
|
|
79278
|
-
|
|
79279
|
-
/***/ }),
|
|
79280
|
-
|
|
79281
|
-
/***/ 71856:
|
|
79282
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79283
|
-
|
|
79284
|
-
const optsArg = __webpack_require__(67808)
|
|
79285
|
-
const pathArg = __webpack_require__(1756)
|
|
79286
|
-
|
|
79287
|
-
const {mkdirpNative, mkdirpNativeSync} = __webpack_require__(96294)
|
|
79288
|
-
const {mkdirpManual, mkdirpManualSync} = __webpack_require__(42318)
|
|
79289
|
-
const {useNative, useNativeSync} = __webpack_require__(93530)
|
|
79290
|
-
|
|
79291
|
-
|
|
79292
|
-
const mkdirp = (path, opts) => {
|
|
79293
|
-
path = pathArg(path)
|
|
79294
|
-
opts = optsArg(opts)
|
|
79295
|
-
return useNative(opts)
|
|
79296
|
-
? mkdirpNative(path, opts)
|
|
79297
|
-
: mkdirpManual(path, opts)
|
|
79298
|
-
}
|
|
79299
|
-
|
|
79300
|
-
const mkdirpSync = (path, opts) => {
|
|
79301
|
-
path = pathArg(path)
|
|
79302
|
-
opts = optsArg(opts)
|
|
79303
|
-
return useNativeSync(opts)
|
|
79304
|
-
? mkdirpNativeSync(path, opts)
|
|
79305
|
-
: mkdirpManualSync(path, opts)
|
|
79306
|
-
}
|
|
79307
|
-
|
|
79308
|
-
mkdirp.sync = mkdirpSync
|
|
79309
|
-
mkdirp.native = (path, opts) => mkdirpNative(pathArg(path), optsArg(opts))
|
|
79310
|
-
mkdirp.manual = (path, opts) => mkdirpManual(pathArg(path), optsArg(opts))
|
|
79311
|
-
mkdirp.nativeSync = (path, opts) => mkdirpNativeSync(pathArg(path), optsArg(opts))
|
|
79312
|
-
mkdirp.manualSync = (path, opts) => mkdirpManualSync(pathArg(path), optsArg(opts))
|
|
79313
|
-
|
|
79314
|
-
module.exports = mkdirp
|
|
79315
|
-
|
|
79316
|
-
|
|
79317
|
-
/***/ }),
|
|
79318
|
-
|
|
79319
|
-
/***/ 28187:
|
|
79320
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79321
|
-
|
|
79322
|
-
const {dirname} = __webpack_require__(85622)
|
|
79323
|
-
|
|
79324
|
-
const findMade = (opts, parent, path = undefined) => {
|
|
79325
|
-
// we never want the 'made' return value to be a root directory
|
|
79326
|
-
if (path === parent)
|
|
79327
|
-
return Promise.resolve()
|
|
79328
|
-
|
|
79329
|
-
return opts.statAsync(parent).then(
|
|
79330
|
-
st => st.isDirectory() ? path : undefined, // will fail later
|
|
79331
|
-
er => er.code === 'ENOENT'
|
|
79332
|
-
? findMade(opts, dirname(parent), parent)
|
|
79333
|
-
: undefined
|
|
79334
|
-
)
|
|
79335
|
-
}
|
|
79336
|
-
|
|
79337
|
-
const findMadeSync = (opts, parent, path = undefined) => {
|
|
79338
|
-
if (path === parent)
|
|
79339
|
-
return undefined
|
|
79340
|
-
|
|
79341
|
-
try {
|
|
79342
|
-
return opts.statSync(parent).isDirectory() ? path : undefined
|
|
79343
|
-
} catch (er) {
|
|
79344
|
-
return er.code === 'ENOENT'
|
|
79345
|
-
? findMadeSync(opts, dirname(parent), parent)
|
|
79346
|
-
: undefined
|
|
79347
|
-
}
|
|
79348
|
-
}
|
|
79349
|
-
|
|
79350
|
-
module.exports = {findMade, findMadeSync}
|
|
79351
|
-
|
|
79352
|
-
|
|
79353
|
-
/***/ }),
|
|
79354
|
-
|
|
79355
|
-
/***/ 42318:
|
|
79356
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79357
|
-
|
|
79358
|
-
const {dirname} = __webpack_require__(85622)
|
|
79359
|
-
|
|
79360
|
-
const mkdirpManual = (path, opts, made) => {
|
|
79361
|
-
opts.recursive = false
|
|
79362
|
-
const parent = dirname(path)
|
|
79363
|
-
if (parent === path) {
|
|
79364
|
-
return opts.mkdirAsync(path, opts).catch(er => {
|
|
79365
|
-
// swallowed by recursive implementation on posix systems
|
|
79366
|
-
// any other error is a failure
|
|
79367
|
-
if (er.code !== 'EISDIR')
|
|
79368
|
-
throw er
|
|
79369
|
-
})
|
|
79370
|
-
}
|
|
79371
|
-
|
|
79372
|
-
return opts.mkdirAsync(path, opts).then(() => made || path, er => {
|
|
79373
|
-
if (er.code === 'ENOENT')
|
|
79374
|
-
return mkdirpManual(parent, opts)
|
|
79375
|
-
.then(made => mkdirpManual(path, opts, made))
|
|
79376
|
-
if (er.code !== 'EEXIST' && er.code !== 'EROFS')
|
|
79377
|
-
throw er
|
|
79378
|
-
return opts.statAsync(path).then(st => {
|
|
79379
|
-
if (st.isDirectory())
|
|
79380
|
-
return made
|
|
79381
|
-
else
|
|
79382
|
-
throw er
|
|
79383
|
-
}, () => { throw er })
|
|
79384
|
-
})
|
|
79385
|
-
}
|
|
79386
|
-
|
|
79387
|
-
const mkdirpManualSync = (path, opts, made) => {
|
|
79388
|
-
const parent = dirname(path)
|
|
79389
|
-
opts.recursive = false
|
|
79390
|
-
|
|
79391
|
-
if (parent === path) {
|
|
79392
|
-
try {
|
|
79393
|
-
return opts.mkdirSync(path, opts)
|
|
79394
|
-
} catch (er) {
|
|
79395
|
-
// swallowed by recursive implementation on posix systems
|
|
79396
|
-
// any other error is a failure
|
|
79397
|
-
if (er.code !== 'EISDIR')
|
|
79398
|
-
throw er
|
|
79399
|
-
else
|
|
79400
|
-
return
|
|
79401
|
-
}
|
|
79402
|
-
}
|
|
79403
|
-
|
|
79404
|
-
try {
|
|
79405
|
-
opts.mkdirSync(path, opts)
|
|
79406
|
-
return made || path
|
|
79407
|
-
} catch (er) {
|
|
79408
|
-
if (er.code === 'ENOENT')
|
|
79409
|
-
return mkdirpManualSync(path, opts, mkdirpManualSync(parent, opts, made))
|
|
79410
|
-
if (er.code !== 'EEXIST' && er.code !== 'EROFS')
|
|
79411
|
-
throw er
|
|
79412
|
-
try {
|
|
79413
|
-
if (!opts.statSync(path).isDirectory())
|
|
79414
|
-
throw er
|
|
79415
|
-
} catch (_) {
|
|
79416
|
-
throw er
|
|
79417
|
-
}
|
|
79418
|
-
}
|
|
79419
|
-
}
|
|
79420
|
-
|
|
79421
|
-
module.exports = {mkdirpManual, mkdirpManualSync}
|
|
79422
|
-
|
|
79423
|
-
|
|
79424
|
-
/***/ }),
|
|
79425
|
-
|
|
79426
|
-
/***/ 96294:
|
|
79427
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79428
|
-
|
|
79429
|
-
const {dirname} = __webpack_require__(85622)
|
|
79430
|
-
const {findMade, findMadeSync} = __webpack_require__(28187)
|
|
79431
|
-
const {mkdirpManual, mkdirpManualSync} = __webpack_require__(42318)
|
|
79432
|
-
|
|
79433
|
-
const mkdirpNative = (path, opts) => {
|
|
79434
|
-
opts.recursive = true
|
|
79435
|
-
const parent = dirname(path)
|
|
79436
|
-
if (parent === path)
|
|
79437
|
-
return opts.mkdirAsync(path, opts)
|
|
79438
|
-
|
|
79439
|
-
return findMade(opts, path).then(made =>
|
|
79440
|
-
opts.mkdirAsync(path, opts).then(() => made)
|
|
79441
|
-
.catch(er => {
|
|
79442
|
-
if (er.code === 'ENOENT')
|
|
79443
|
-
return mkdirpManual(path, opts)
|
|
79444
|
-
else
|
|
79445
|
-
throw er
|
|
79446
|
-
}))
|
|
79447
|
-
}
|
|
79448
|
-
|
|
79449
|
-
const mkdirpNativeSync = (path, opts) => {
|
|
79450
|
-
opts.recursive = true
|
|
79451
|
-
const parent = dirname(path)
|
|
79452
|
-
if (parent === path)
|
|
79453
|
-
return opts.mkdirSync(path, opts)
|
|
79454
|
-
|
|
79455
|
-
const made = findMadeSync(opts, path)
|
|
79456
|
-
try {
|
|
79457
|
-
opts.mkdirSync(path, opts)
|
|
79458
|
-
return made
|
|
79459
|
-
} catch (er) {
|
|
79460
|
-
if (er.code === 'ENOENT')
|
|
79461
|
-
return mkdirpManualSync(path, opts)
|
|
79462
|
-
else
|
|
79463
|
-
throw er
|
|
79464
|
-
}
|
|
79465
|
-
}
|
|
79466
|
-
|
|
79467
|
-
module.exports = {mkdirpNative, mkdirpNativeSync}
|
|
79468
|
-
|
|
79469
|
-
|
|
79470
|
-
/***/ }),
|
|
79471
|
-
|
|
79472
|
-
/***/ 67808:
|
|
79473
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79474
|
-
|
|
79475
|
-
const { promisify } = __webpack_require__(31669)
|
|
79476
|
-
const fs = __webpack_require__(35747)
|
|
79477
|
-
const optsArg = opts => {
|
|
79478
|
-
if (!opts)
|
|
79479
|
-
opts = { mode: 0o777, fs }
|
|
79480
|
-
else if (typeof opts === 'object')
|
|
79481
|
-
opts = { mode: 0o777, fs, ...opts }
|
|
79482
|
-
else if (typeof opts === 'number')
|
|
79483
|
-
opts = { mode: opts, fs }
|
|
79484
|
-
else if (typeof opts === 'string')
|
|
79485
|
-
opts = { mode: parseInt(opts, 8), fs }
|
|
79486
|
-
else
|
|
79487
|
-
throw new TypeError('invalid options argument')
|
|
79488
|
-
|
|
79489
|
-
opts.mkdir = opts.mkdir || opts.fs.mkdir || fs.mkdir
|
|
79490
|
-
opts.mkdirAsync = promisify(opts.mkdir)
|
|
79491
|
-
opts.stat = opts.stat || opts.fs.stat || fs.stat
|
|
79492
|
-
opts.statAsync = promisify(opts.stat)
|
|
79493
|
-
opts.statSync = opts.statSync || opts.fs.statSync || fs.statSync
|
|
79494
|
-
opts.mkdirSync = opts.mkdirSync || opts.fs.mkdirSync || fs.mkdirSync
|
|
79495
|
-
return opts
|
|
79496
|
-
}
|
|
79497
|
-
module.exports = optsArg
|
|
79498
|
-
|
|
79499
|
-
|
|
79500
|
-
/***/ }),
|
|
79501
|
-
|
|
79502
|
-
/***/ 1756:
|
|
79503
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79504
|
-
|
|
79505
|
-
const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform
|
|
79506
|
-
const { resolve, parse } = __webpack_require__(85622)
|
|
79507
|
-
const pathArg = path => {
|
|
79508
|
-
if (/\0/.test(path)) {
|
|
79509
|
-
// simulate same failure that node raises
|
|
79510
|
-
throw Object.assign(
|
|
79511
|
-
new TypeError('path must be a string without null bytes'),
|
|
79512
|
-
{
|
|
79513
|
-
path,
|
|
79514
|
-
code: 'ERR_INVALID_ARG_VALUE',
|
|
79515
|
-
}
|
|
79516
|
-
)
|
|
79517
|
-
}
|
|
79518
|
-
|
|
79519
|
-
path = resolve(path)
|
|
79520
|
-
if (platform === 'win32') {
|
|
79521
|
-
const badWinChars = /[*|"<>?:]/
|
|
79522
|
-
const {root} = parse(path)
|
|
79523
|
-
if (badWinChars.test(path.substr(root.length))) {
|
|
79524
|
-
throw Object.assign(new Error('Illegal characters in path.'), {
|
|
79525
|
-
path,
|
|
79526
|
-
code: 'EINVAL',
|
|
79527
|
-
})
|
|
79528
|
-
}
|
|
79529
|
-
}
|
|
79530
|
-
|
|
79531
|
-
return path
|
|
79532
|
-
}
|
|
79533
|
-
module.exports = pathArg
|
|
79534
|
-
|
|
79535
|
-
|
|
79536
|
-
/***/ }),
|
|
79537
|
-
|
|
79538
|
-
/***/ 93530:
|
|
79539
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
79540
|
-
|
|
79541
|
-
const fs = __webpack_require__(35747)
|
|
79542
|
-
|
|
79543
|
-
const version = process.env.__TESTING_MKDIRP_NODE_VERSION__ || process.version
|
|
79544
|
-
const versArr = version.replace(/^v/, '').split('.')
|
|
79545
|
-
const hasNative = +versArr[0] > 10 || +versArr[0] === 10 && +versArr[1] >= 12
|
|
79546
|
-
|
|
79547
|
-
const useNative = !hasNative ? () => false : opts => opts.mkdir === fs.mkdir
|
|
79548
|
-
const useNativeSync = !hasNative ? () => false : opts => opts.mkdirSync === fs.mkdirSync
|
|
79549
|
-
|
|
79550
|
-
module.exports = {useNative, useNativeSync}
|
|
79551
|
-
|
|
79552
|
-
|
|
79553
79269
|
/***/ }),
|
|
79554
79270
|
|
|
79555
79271
|
/***/ 80040:
|
|
@@ -104275,8 +103991,6 @@ exports.startDevServer = exports.prepareCache = exports.build = exports.version
|
|
|
104275
103991
|
const child_process_1 = __webpack_require__(63129);
|
|
104276
103992
|
const fs_1 = __webpack_require__(35747);
|
|
104277
103993
|
const path_1 = __webpack_require__(85622);
|
|
104278
|
-
// @ts-ignore - `@types/mkdirp-promise` is broken
|
|
104279
|
-
const mkdirp_promise_1 = __importDefault(__webpack_require__(13578));
|
|
104280
103994
|
const once_1 = __importDefault(__webpack_require__(8478));
|
|
104281
103995
|
const nft_1 = __webpack_require__(39582);
|
|
104282
103996
|
const build_utils_1 = __webpack_require__(63445);
|
|
@@ -104594,7 +104308,7 @@ async function doTypeCheck({ entrypoint, workPath, meta = {} }, projectTsConfig)
|
|
|
104594
104308
|
};
|
|
104595
104309
|
try {
|
|
104596
104310
|
const json = JSON.stringify(tsconfig, null, '\t');
|
|
104597
|
-
await
|
|
104311
|
+
await fs_1.promises.mkdir(entrypointCacheDir, { recursive: true });
|
|
104598
104312
|
await fs_1.promises.writeFile(tsconfigPath, json, { flag: 'wx' });
|
|
104599
104313
|
}
|
|
104600
104314
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/node",
|
|
3
|
-
"version": "1.15.4
|
|
3
|
+
"version": "1.15.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
|
|
@@ -45,16 +45,15 @@
|
|
|
45
45
|
"@types/etag": "1.8.0",
|
|
46
46
|
"@types/jest": "27.4.1",
|
|
47
47
|
"@types/test-listen": "1.1.0",
|
|
48
|
-
"@vercel/build-utils": "3.1.1
|
|
48
|
+
"@vercel/build-utils": "3.1.1",
|
|
49
49
|
"@vercel/ncc": "0.24.0",
|
|
50
|
-
"@vercel/nft": "0.19.
|
|
50
|
+
"@vercel/nft": "0.19.1",
|
|
51
51
|
"content-type": "1.0.4",
|
|
52
52
|
"cookie": "0.4.0",
|
|
53
53
|
"etag": "1.8.1",
|
|
54
|
-
"mkdirp-promise": "5.0.1",
|
|
55
54
|
"node-fetch": "2.6.1",
|
|
56
55
|
"source-map-support": "0.5.12",
|
|
57
56
|
"test-listen": "1.1.0"
|
|
58
57
|
},
|
|
59
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "ad436313e155b0e07cb14475e11c5c12e1b36f75"
|
|
60
59
|
}
|