vercel 25.1.1-canary.10 → 25.1.1-canary.11
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 +112 -112
- package/package.json +3 -3
package/dist/index.js
CHANGED
@@ -28433,116 +28433,6 @@ function tryAutoDetect(){
|
|
28433
28433
|
}
|
28434
28434
|
|
28435
28435
|
|
28436
|
-
/***/ }),
|
28437
|
-
|
28438
|
-
/***/ 52056:
|
28439
|
-
/***/ ((module, exports, __webpack_require__) => {
|
28440
|
-
|
28441
|
-
"use strict";
|
28442
|
-
|
28443
|
-
|
28444
|
-
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
28445
|
-
|
28446
|
-
const picomatch = __webpack_require__(9138);
|
28447
|
-
const normalizePath = __webpack_require__(34458);
|
28448
|
-
|
28449
|
-
/**
|
28450
|
-
* @typedef {(testString: string) => boolean} AnymatchFn
|
28451
|
-
* @typedef {string|RegExp|AnymatchFn} AnymatchPattern
|
28452
|
-
* @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher
|
28453
|
-
*/
|
28454
|
-
const BANG = '!';
|
28455
|
-
const DEFAULT_OPTIONS = {returnIndex: false};
|
28456
|
-
const arrify = (item) => Array.isArray(item) ? item : [item];
|
28457
|
-
|
28458
|
-
/**
|
28459
|
-
* @param {AnymatchPattern} matcher
|
28460
|
-
* @param {object} options
|
28461
|
-
* @returns {AnymatchFn}
|
28462
|
-
*/
|
28463
|
-
const createPattern = (matcher, options) => {
|
28464
|
-
if (typeof matcher === 'function') {
|
28465
|
-
return matcher;
|
28466
|
-
}
|
28467
|
-
if (typeof matcher === 'string') {
|
28468
|
-
const glob = picomatch(matcher, options);
|
28469
|
-
return (string) => matcher === string || glob(string);
|
28470
|
-
}
|
28471
|
-
if (matcher instanceof RegExp) {
|
28472
|
-
return (string) => matcher.test(string);
|
28473
|
-
}
|
28474
|
-
return (string) => false;
|
28475
|
-
};
|
28476
|
-
|
28477
|
-
/**
|
28478
|
-
* @param {Array<Function>} patterns
|
28479
|
-
* @param {Array<Function>} negPatterns
|
28480
|
-
* @param {String|Array} args
|
28481
|
-
* @param {Boolean} returnIndex
|
28482
|
-
* @returns {boolean|number}
|
28483
|
-
*/
|
28484
|
-
const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
|
28485
|
-
const isList = Array.isArray(args);
|
28486
|
-
const _path = isList ? args[0] : args;
|
28487
|
-
if (!isList && typeof _path !== 'string') {
|
28488
|
-
throw new TypeError('anymatch: second argument must be a string: got ' +
|
28489
|
-
Object.prototype.toString.call(_path))
|
28490
|
-
}
|
28491
|
-
const path = normalizePath(_path);
|
28492
|
-
|
28493
|
-
for (let index = 0; index < negPatterns.length; index++) {
|
28494
|
-
const nglob = negPatterns[index];
|
28495
|
-
if (nglob(path)) {
|
28496
|
-
return returnIndex ? -1 : false;
|
28497
|
-
}
|
28498
|
-
}
|
28499
|
-
|
28500
|
-
const applied = isList && [path].concat(args.slice(1));
|
28501
|
-
for (let index = 0; index < patterns.length; index++) {
|
28502
|
-
const pattern = patterns[index];
|
28503
|
-
if (isList ? pattern(...applied) : pattern(path)) {
|
28504
|
-
return returnIndex ? index : true;
|
28505
|
-
}
|
28506
|
-
}
|
28507
|
-
|
28508
|
-
return returnIndex ? -1 : false;
|
28509
|
-
};
|
28510
|
-
|
28511
|
-
/**
|
28512
|
-
* @param {AnymatchMatcher} matchers
|
28513
|
-
* @param {Array|string} testString
|
28514
|
-
* @param {object} options
|
28515
|
-
* @returns {boolean|number|Function}
|
28516
|
-
*/
|
28517
|
-
const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
|
28518
|
-
if (matchers == null) {
|
28519
|
-
throw new TypeError('anymatch: specify first argument');
|
28520
|
-
}
|
28521
|
-
const opts = typeof options === 'boolean' ? {returnIndex: options} : options;
|
28522
|
-
const returnIndex = opts.returnIndex || false;
|
28523
|
-
|
28524
|
-
// Early cache for matchers.
|
28525
|
-
const mtchers = arrify(matchers);
|
28526
|
-
const negatedGlobs = mtchers
|
28527
|
-
.filter(item => typeof item === 'string' && item.charAt(0) === BANG)
|
28528
|
-
.map(item => item.slice(1))
|
28529
|
-
.map(item => picomatch(item, opts));
|
28530
|
-
const patterns = mtchers.map(matcher => createPattern(matcher, opts));
|
28531
|
-
|
28532
|
-
if (testString == null) {
|
28533
|
-
return (testString, ri = false) => {
|
28534
|
-
const returnIndex = typeof ri === 'boolean' ? ri : false;
|
28535
|
-
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
|
28536
|
-
}
|
28537
|
-
}
|
28538
|
-
|
28539
|
-
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
|
28540
|
-
};
|
28541
|
-
|
28542
|
-
anymatch.default = anymatch;
|
28543
|
-
module.exports = anymatch;
|
28544
|
-
|
28545
|
-
|
28546
28436
|
/***/ }),
|
28547
28437
|
|
28548
28438
|
/***/ 57193:
|
@@ -41608,7 +41498,7 @@ const fs = __webpack_require__(35747);
|
|
41608
41498
|
const sysPath = __webpack_require__(85622);
|
41609
41499
|
const { promisify } = __webpack_require__(31669);
|
41610
41500
|
const readdirp = __webpack_require__(85316);
|
41611
|
-
const anymatch = __webpack_require__(
|
41501
|
+
const anymatch = __webpack_require__(3140).default;
|
41612
41502
|
const globParent = __webpack_require__(97507);
|
41613
41503
|
const isGlob = __webpack_require__(24042);
|
41614
41504
|
const braces = __webpack_require__(40538);
|
@@ -43776,6 +43666,116 @@ async _addToNodeFs(path, initialAdd, priorWh, depth, target) {
|
|
43776
43666
|
module.exports = NodeFsHandler;
|
43777
43667
|
|
43778
43668
|
|
43669
|
+
/***/ }),
|
43670
|
+
|
43671
|
+
/***/ 3140:
|
43672
|
+
/***/ ((module, exports, __webpack_require__) => {
|
43673
|
+
|
43674
|
+
"use strict";
|
43675
|
+
|
43676
|
+
|
43677
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
43678
|
+
|
43679
|
+
const picomatch = __webpack_require__(9138);
|
43680
|
+
const normalizePath = __webpack_require__(34458);
|
43681
|
+
|
43682
|
+
/**
|
43683
|
+
* @typedef {(testString: string) => boolean} AnymatchFn
|
43684
|
+
* @typedef {string|RegExp|AnymatchFn} AnymatchPattern
|
43685
|
+
* @typedef {AnymatchPattern|AnymatchPattern[]} AnymatchMatcher
|
43686
|
+
*/
|
43687
|
+
const BANG = '!';
|
43688
|
+
const DEFAULT_OPTIONS = {returnIndex: false};
|
43689
|
+
const arrify = (item) => Array.isArray(item) ? item : [item];
|
43690
|
+
|
43691
|
+
/**
|
43692
|
+
* @param {AnymatchPattern} matcher
|
43693
|
+
* @param {object} options
|
43694
|
+
* @returns {AnymatchFn}
|
43695
|
+
*/
|
43696
|
+
const createPattern = (matcher, options) => {
|
43697
|
+
if (typeof matcher === 'function') {
|
43698
|
+
return matcher;
|
43699
|
+
}
|
43700
|
+
if (typeof matcher === 'string') {
|
43701
|
+
const glob = picomatch(matcher, options);
|
43702
|
+
return (string) => matcher === string || glob(string);
|
43703
|
+
}
|
43704
|
+
if (matcher instanceof RegExp) {
|
43705
|
+
return (string) => matcher.test(string);
|
43706
|
+
}
|
43707
|
+
return (string) => false;
|
43708
|
+
};
|
43709
|
+
|
43710
|
+
/**
|
43711
|
+
* @param {Array<Function>} patterns
|
43712
|
+
* @param {Array<Function>} negPatterns
|
43713
|
+
* @param {String|Array} args
|
43714
|
+
* @param {Boolean} returnIndex
|
43715
|
+
* @returns {boolean|number}
|
43716
|
+
*/
|
43717
|
+
const matchPatterns = (patterns, negPatterns, args, returnIndex) => {
|
43718
|
+
const isList = Array.isArray(args);
|
43719
|
+
const _path = isList ? args[0] : args;
|
43720
|
+
if (!isList && typeof _path !== 'string') {
|
43721
|
+
throw new TypeError('anymatch: second argument must be a string: got ' +
|
43722
|
+
Object.prototype.toString.call(_path))
|
43723
|
+
}
|
43724
|
+
const path = normalizePath(_path);
|
43725
|
+
|
43726
|
+
for (let index = 0; index < negPatterns.length; index++) {
|
43727
|
+
const nglob = negPatterns[index];
|
43728
|
+
if (nglob(path)) {
|
43729
|
+
return returnIndex ? -1 : false;
|
43730
|
+
}
|
43731
|
+
}
|
43732
|
+
|
43733
|
+
const applied = isList && [path].concat(args.slice(1));
|
43734
|
+
for (let index = 0; index < patterns.length; index++) {
|
43735
|
+
const pattern = patterns[index];
|
43736
|
+
if (isList ? pattern(...applied) : pattern(path)) {
|
43737
|
+
return returnIndex ? index : true;
|
43738
|
+
}
|
43739
|
+
}
|
43740
|
+
|
43741
|
+
return returnIndex ? -1 : false;
|
43742
|
+
};
|
43743
|
+
|
43744
|
+
/**
|
43745
|
+
* @param {AnymatchMatcher} matchers
|
43746
|
+
* @param {Array|string} testString
|
43747
|
+
* @param {object} options
|
43748
|
+
* @returns {boolean|number|Function}
|
43749
|
+
*/
|
43750
|
+
const anymatch = (matchers, testString, options = DEFAULT_OPTIONS) => {
|
43751
|
+
if (matchers == null) {
|
43752
|
+
throw new TypeError('anymatch: specify first argument');
|
43753
|
+
}
|
43754
|
+
const opts = typeof options === 'boolean' ? {returnIndex: options} : options;
|
43755
|
+
const returnIndex = opts.returnIndex || false;
|
43756
|
+
|
43757
|
+
// Early cache for matchers.
|
43758
|
+
const mtchers = arrify(matchers);
|
43759
|
+
const negatedGlobs = mtchers
|
43760
|
+
.filter(item => typeof item === 'string' && item.charAt(0) === BANG)
|
43761
|
+
.map(item => item.slice(1))
|
43762
|
+
.map(item => picomatch(item, opts));
|
43763
|
+
const patterns = mtchers.map(matcher => createPattern(matcher, opts));
|
43764
|
+
|
43765
|
+
if (testString == null) {
|
43766
|
+
return (testString, ri = false) => {
|
43767
|
+
const returnIndex = typeof ri === 'boolean' ? ri : false;
|
43768
|
+
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
|
43769
|
+
}
|
43770
|
+
}
|
43771
|
+
|
43772
|
+
return matchPatterns(patterns, negatedGlobs, testString, returnIndex);
|
43773
|
+
};
|
43774
|
+
|
43775
|
+
anymatch.default = anymatch;
|
43776
|
+
module.exports = anymatch;
|
43777
|
+
|
43778
|
+
|
43779
43779
|
/***/ }),
|
43780
43780
|
|
43781
43781
|
/***/ 5952:
|
@@ -252428,7 +252428,7 @@ module.exports = JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source
|
|
252428
252428
|
/***/ ((module) => {
|
252429
252429
|
|
252430
252430
|
"use strict";
|
252431
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.1.1-canary.
|
252431
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"25.1.1-canary.11\",\"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 --env node --verbose --runInBand --bail --forceExit\",\"test-unit\":\"yarn test test/unit/\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"yarn test test/dev/\",\"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\":{\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 14\"},\"dependencies\":{\"@vercel/build-utils\":\"4.1.1-canary.1\",\"@vercel/go\":\"2.0.2-canary.1\",\"@vercel/next\":\"3.0.5-canary.1\",\"@vercel/node\":\"2.2.1-canary.1\",\"@vercel/python\":\"3.0.2-canary.1\",\"@vercel/redwood\":\"1.0.2-canary.1\",\"@vercel/remix\":\"1.0.2-canary.1\",\"@vercel/ruby\":\"1.3.10-canary.1\",\"@vercel/static-build\":\"1.0.2-canary.1\",\"update-notifier\":\"5.1.0\"},\"devDependencies\":{\"@alex_neo/jest-expect-message\":\"1.0.5\",\"@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/ini\":\"1.3.31\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.4.1\",\"@types/jest-expect-message\":\"1.0.3\",\"@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\",\"@types/yauzl-promise\":\"2.1.0\",\"@vercel/client\":\"12.0.2-canary.1\",\"@vercel/frameworks\":\"1.0.2-canary.0\",\"@vercel/ncc\":\"0.24.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\",\"git-last-commit\":\"1.0.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"ini\":\"3.0.0\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.1.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.4.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-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\",\"yauzl-promise\":\"2.1.3\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"setupFilesAfterEnv\":[\"@alex_neo/jest-expect-message\"],\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"570fd24e29f5e8abb9e01e0ddb2a6c751dd4adfe\"}");
|
252432
252432
|
|
252433
252433
|
/***/ }),
|
252434
252434
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "vercel",
|
3
|
-
"version": "25.1.1-canary.
|
3
|
+
"version": "25.1.1-canary.11",
|
4
4
|
"preferGlobal": true,
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"description": "The command-line interface for Vercel",
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"dependencies": {
|
45
45
|
"@vercel/build-utils": "4.1.1-canary.1",
|
46
46
|
"@vercel/go": "2.0.2-canary.1",
|
47
|
-
"@vercel/next": "3.0.5-canary.
|
47
|
+
"@vercel/next": "3.0.5-canary.1",
|
48
48
|
"@vercel/node": "2.2.1-canary.1",
|
49
49
|
"@vercel/python": "3.0.2-canary.1",
|
50
50
|
"@vercel/redwood": "1.0.2-canary.1",
|
@@ -194,5 +194,5 @@
|
|
194
194
|
"<rootDir>/test/**/*.test.ts"
|
195
195
|
]
|
196
196
|
},
|
197
|
-
"gitHead": "
|
197
|
+
"gitHead": "570fd24e29f5e8abb9e01e0ddb2a6c751dd4adfe"
|
198
198
|
}
|