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