vercel 24.0.1-canary.5 → 24.0.1-canary.6
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 +1549 -377
- package/package.json +9 -9
package/dist/index.js
CHANGED
@@ -74868,43 +74868,6 @@ module.exports = function (x) {
|
|
74868
74868
|
};
|
74869
74869
|
|
74870
74870
|
|
74871
|
-
/***/ }),
|
74872
|
-
|
74873
|
-
/***/ 80153:
|
74874
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
74875
|
-
|
74876
|
-
"use strict";
|
74877
|
-
|
74878
|
-
const net = __webpack_require__(11631);
|
74879
|
-
|
74880
|
-
module.exports = async (port, {timeout = 1000, host} = {}) => {
|
74881
|
-
const promise = new Promise(((resolve, reject) => {
|
74882
|
-
const socket = new net.Socket();
|
74883
|
-
|
74884
|
-
const onError = () => {
|
74885
|
-
socket.destroy();
|
74886
|
-
reject();
|
74887
|
-
};
|
74888
|
-
|
74889
|
-
socket.setTimeout(timeout);
|
74890
|
-
socket.once('error', onError);
|
74891
|
-
socket.once('timeout', onError);
|
74892
|
-
|
74893
|
-
socket.connect(port, host, () => {
|
74894
|
-
socket.end();
|
74895
|
-
resolve();
|
74896
|
-
});
|
74897
|
-
}));
|
74898
|
-
|
74899
|
-
try {
|
74900
|
-
await promise;
|
74901
|
-
return true;
|
74902
|
-
} catch (_) {
|
74903
|
-
return false;
|
74904
|
-
}
|
74905
|
-
};
|
74906
|
-
|
74907
|
-
|
74908
74871
|
/***/ }),
|
74909
74872
|
|
74910
74873
|
/***/ 1381:
|
@@ -116878,109 +116841,6 @@ readdirp.default = readdirp;
|
|
116878
116841
|
module.exports = readdirp;
|
116879
116842
|
|
116880
116843
|
|
116881
|
-
/***/ }),
|
116882
|
-
|
116883
|
-
/***/ 37471:
|
116884
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
116885
|
-
|
116886
|
-
var fs = __webpack_require__(35747);
|
116887
|
-
var p = __webpack_require__(85622);
|
116888
|
-
var minimatch = __webpack_require__(99566);
|
116889
|
-
|
116890
|
-
function patternMatcher(pattern) {
|
116891
|
-
return function(path, stats) {
|
116892
|
-
var minimatcher = new minimatch.Minimatch(pattern, { matchBase: true });
|
116893
|
-
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(path);
|
116894
|
-
};
|
116895
|
-
}
|
116896
|
-
|
116897
|
-
function toMatcherFunction(ignoreEntry) {
|
116898
|
-
if (typeof ignoreEntry == "function") {
|
116899
|
-
return ignoreEntry;
|
116900
|
-
} else {
|
116901
|
-
return patternMatcher(ignoreEntry);
|
116902
|
-
}
|
116903
|
-
}
|
116904
|
-
|
116905
|
-
function readdir(path, ignores, callback) {
|
116906
|
-
if (typeof ignores == "function") {
|
116907
|
-
callback = ignores;
|
116908
|
-
ignores = [];
|
116909
|
-
}
|
116910
|
-
|
116911
|
-
if (!callback) {
|
116912
|
-
return new Promise(function(resolve, reject) {
|
116913
|
-
readdir(path, ignores || [], function(err, data) {
|
116914
|
-
if (err) {
|
116915
|
-
reject(err);
|
116916
|
-
} else {
|
116917
|
-
resolve(data);
|
116918
|
-
}
|
116919
|
-
});
|
116920
|
-
});
|
116921
|
-
}
|
116922
|
-
|
116923
|
-
ignores = ignores.map(toMatcherFunction);
|
116924
|
-
|
116925
|
-
var list = [];
|
116926
|
-
|
116927
|
-
fs.readdir(path, function(err, files) {
|
116928
|
-
if (err) {
|
116929
|
-
return callback(err);
|
116930
|
-
}
|
116931
|
-
|
116932
|
-
var pending = files.length;
|
116933
|
-
if (!pending) {
|
116934
|
-
// we are done, woop woop
|
116935
|
-
return callback(null, list);
|
116936
|
-
}
|
116937
|
-
|
116938
|
-
files.forEach(function(file) {
|
116939
|
-
var filePath = p.join(path, file);
|
116940
|
-
fs.stat(filePath, function(_err, stats) {
|
116941
|
-
if (_err) {
|
116942
|
-
return callback(_err);
|
116943
|
-
}
|
116944
|
-
|
116945
|
-
if (
|
116946
|
-
ignores.some(function(matcher) {
|
116947
|
-
return matcher(filePath, stats);
|
116948
|
-
})
|
116949
|
-
) {
|
116950
|
-
pending -= 1;
|
116951
|
-
if (!pending) {
|
116952
|
-
return callback(null, list);
|
116953
|
-
}
|
116954
|
-
return null;
|
116955
|
-
}
|
116956
|
-
|
116957
|
-
if (stats.isDirectory()) {
|
116958
|
-
readdir(filePath, ignores, function(__err, res) {
|
116959
|
-
if (__err) {
|
116960
|
-
return callback(__err);
|
116961
|
-
}
|
116962
|
-
|
116963
|
-
list = list.concat(res);
|
116964
|
-
pending -= 1;
|
116965
|
-
if (!pending) {
|
116966
|
-
return callback(null, list);
|
116967
|
-
}
|
116968
|
-
});
|
116969
|
-
} else {
|
116970
|
-
list.push(filePath);
|
116971
|
-
pending -= 1;
|
116972
|
-
if (!pending) {
|
116973
|
-
return callback(null, list);
|
116974
|
-
}
|
116975
|
-
}
|
116976
|
-
});
|
116977
|
-
});
|
116978
|
-
});
|
116979
|
-
}
|
116980
|
-
|
116981
|
-
module.exports = readdir;
|
116982
|
-
|
116983
|
-
|
116984
116844
|
/***/ }),
|
116985
116845
|
|
116986
116846
|
/***/ 51967:
|
@@ -189285,6 +189145,7 @@ exports.frameworks = [
|
|
189285
189145
|
slug: 'nextjs',
|
189286
189146
|
demo: 'https://nextjs-template.vercel.app',
|
189287
189147
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/next.svg',
|
189148
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/nextjs.png',
|
189288
189149
|
tagline: 'Next.js makes you productive with React instantly — whether you want to build static or dynamic sites.',
|
189289
189150
|
description: 'A Next.js app and a Serverless Function API.',
|
189290
189151
|
website: 'https://nextjs.org',
|
@@ -190281,6 +190142,7 @@ exports.frameworks = [
|
|
190281
190142
|
slug: 'sveltekit',
|
190282
190143
|
demo: 'https://sveltekit-template.vercel.app',
|
190283
190144
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
190145
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/sveltekit.png',
|
190284
190146
|
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
190285
190147
|
description: 'A SvelteKit app optimized Edge-first.',
|
190286
190148
|
website: 'https://kit.svelte.dev',
|
@@ -190790,6 +190652,7 @@ exports.frameworks = [
|
|
190790
190652
|
slug: 'nuxtjs',
|
190791
190653
|
demo: 'https://nuxtjs-template.vercel.app',
|
190792
190654
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/nuxt.svg',
|
190655
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/nuxtjs.png',
|
190793
190656
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
190794
190657
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
190795
190658
|
website: 'https://nuxtjs.org',
|
@@ -191243,7 +191106,7 @@ exports.default = def;
|
|
191243
191106
|
/***/ }),
|
191244
191107
|
|
191245
191108
|
/***/ 3734:
|
191246
|
-
/***/ (function(__unused_webpack_module, exports,
|
191109
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_807361__) {
|
191247
191110
|
|
191248
191111
|
"use strict";
|
191249
191112
|
|
@@ -191252,9 +191115,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
191252
191115
|
};
|
191253
191116
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
191254
191117
|
exports.readConfigFile = void 0;
|
191255
|
-
const js_yaml_1 = __importDefault(
|
191256
|
-
const toml_1 = __importDefault(
|
191257
|
-
const fs_1 =
|
191118
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_807361__(641));
|
191119
|
+
const toml_1 = __importDefault(__nested_webpack_require_807361__(9434));
|
191120
|
+
const fs_1 = __nested_webpack_require_807361__(5747);
|
191258
191121
|
const { readFile } = fs_1.promises;
|
191259
191122
|
async function readFileOrNull(file) {
|
191260
191123
|
try {
|
@@ -191303,13 +191166,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
191303
191166
|
/***/ }),
|
191304
191167
|
|
191305
191168
|
/***/ 641:
|
191306
|
-
/***/ ((module, __unused_webpack_exports,
|
191169
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_808967__) => {
|
191307
191170
|
|
191308
191171
|
"use strict";
|
191309
191172
|
|
191310
191173
|
|
191311
191174
|
|
191312
|
-
var yaml =
|
191175
|
+
var yaml = __nested_webpack_require_808967__(9633);
|
191313
191176
|
|
191314
191177
|
|
191315
191178
|
module.exports = yaml;
|
@@ -191318,14 +191181,14 @@ module.exports = yaml;
|
|
191318
191181
|
/***/ }),
|
191319
191182
|
|
191320
191183
|
/***/ 9633:
|
191321
|
-
/***/ ((module, __unused_webpack_exports,
|
191184
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_809141__) => {
|
191322
191185
|
|
191323
191186
|
"use strict";
|
191324
191187
|
|
191325
191188
|
|
191326
191189
|
|
191327
|
-
var loader =
|
191328
|
-
var dumper =
|
191190
|
+
var loader = __nested_webpack_require_809141__(4349);
|
191191
|
+
var dumper = __nested_webpack_require_809141__(8047);
|
191329
191192
|
|
191330
191193
|
|
191331
191194
|
function deprecated(name) {
|
@@ -191335,25 +191198,25 @@ function deprecated(name) {
|
|
191335
191198
|
}
|
191336
191199
|
|
191337
191200
|
|
191338
|
-
module.exports.Type =
|
191339
|
-
module.exports.Schema =
|
191340
|
-
module.exports.FAILSAFE_SCHEMA =
|
191341
|
-
module.exports.JSON_SCHEMA =
|
191342
|
-
module.exports.CORE_SCHEMA =
|
191343
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
191344
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
191201
|
+
module.exports.Type = __nested_webpack_require_809141__(6876);
|
191202
|
+
module.exports.Schema = __nested_webpack_require_809141__(6105);
|
191203
|
+
module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_809141__(8441);
|
191204
|
+
module.exports.JSON_SCHEMA = __nested_webpack_require_809141__(1486);
|
191205
|
+
module.exports.CORE_SCHEMA = __nested_webpack_require_809141__(1112);
|
191206
|
+
module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_809141__(596);
|
191207
|
+
module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_809141__(9647);
|
191345
191208
|
module.exports.load = loader.load;
|
191346
191209
|
module.exports.loadAll = loader.loadAll;
|
191347
191210
|
module.exports.safeLoad = loader.safeLoad;
|
191348
191211
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
191349
191212
|
module.exports.dump = dumper.dump;
|
191350
191213
|
module.exports.safeDump = dumper.safeDump;
|
191351
|
-
module.exports.YAMLException =
|
191214
|
+
module.exports.YAMLException = __nested_webpack_require_809141__(3237);
|
191352
191215
|
|
191353
191216
|
// Deprecated schema names from JS-YAML 2.0.x
|
191354
|
-
module.exports.MINIMAL_SCHEMA =
|
191355
|
-
module.exports.SAFE_SCHEMA =
|
191356
|
-
module.exports.DEFAULT_SCHEMA =
|
191217
|
+
module.exports.MINIMAL_SCHEMA = __nested_webpack_require_809141__(8441);
|
191218
|
+
module.exports.SAFE_SCHEMA = __nested_webpack_require_809141__(596);
|
191219
|
+
module.exports.DEFAULT_SCHEMA = __nested_webpack_require_809141__(9647);
|
191357
191220
|
|
191358
191221
|
// Deprecated functions from JS-YAML 1.x.x
|
191359
191222
|
module.exports.scan = deprecated('scan');
|
@@ -191432,17 +191295,17 @@ module.exports.extend = extend;
|
|
191432
191295
|
/***/ }),
|
191433
191296
|
|
191434
191297
|
/***/ 8047:
|
191435
|
-
/***/ ((module, __unused_webpack_exports,
|
191298
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_811959__) => {
|
191436
191299
|
|
191437
191300
|
"use strict";
|
191438
191301
|
|
191439
191302
|
|
191440
191303
|
/*eslint-disable no-use-before-define*/
|
191441
191304
|
|
191442
|
-
var common =
|
191443
|
-
var YAMLException =
|
191444
|
-
var DEFAULT_FULL_SCHEMA =
|
191445
|
-
var DEFAULT_SAFE_SCHEMA =
|
191305
|
+
var common = __nested_webpack_require_811959__(903);
|
191306
|
+
var YAMLException = __nested_webpack_require_811959__(3237);
|
191307
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_811959__(9647);
|
191308
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_811959__(596);
|
191446
191309
|
|
191447
191310
|
var _toString = Object.prototype.toString;
|
191448
191311
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -192318,18 +192181,18 @@ module.exports = YAMLException;
|
|
192318
192181
|
/***/ }),
|
192319
192182
|
|
192320
192183
|
/***/ 4349:
|
192321
|
-
/***/ ((module, __unused_webpack_exports,
|
192184
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_839663__) => {
|
192322
192185
|
|
192323
192186
|
"use strict";
|
192324
192187
|
|
192325
192188
|
|
192326
192189
|
/*eslint-disable max-len,no-use-before-define*/
|
192327
192190
|
|
192328
|
-
var common =
|
192329
|
-
var YAMLException =
|
192330
|
-
var Mark =
|
192331
|
-
var DEFAULT_SAFE_SCHEMA =
|
192332
|
-
var DEFAULT_FULL_SCHEMA =
|
192191
|
+
var common = __nested_webpack_require_839663__(903);
|
192192
|
+
var YAMLException = __nested_webpack_require_839663__(3237);
|
192193
|
+
var Mark = __nested_webpack_require_839663__(4926);
|
192194
|
+
var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_839663__(596);
|
192195
|
+
var DEFAULT_FULL_SCHEMA = __nested_webpack_require_839663__(9647);
|
192333
192196
|
|
192334
192197
|
|
192335
192198
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -193951,13 +193814,13 @@ module.exports.safeLoad = safeLoad;
|
|
193951
193814
|
/***/ }),
|
193952
193815
|
|
193953
193816
|
/***/ 4926:
|
193954
|
-
/***/ ((module, __unused_webpack_exports,
|
193817
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_883530__) => {
|
193955
193818
|
|
193956
193819
|
"use strict";
|
193957
193820
|
|
193958
193821
|
|
193959
193822
|
|
193960
|
-
var common =
|
193823
|
+
var common = __nested_webpack_require_883530__(903);
|
193961
193824
|
|
193962
193825
|
|
193963
193826
|
function Mark(name, buffer, position, line, column) {
|
@@ -194035,16 +193898,16 @@ module.exports = Mark;
|
|
194035
193898
|
/***/ }),
|
194036
193899
|
|
194037
193900
|
/***/ 6105:
|
194038
|
-
/***/ ((module, __unused_webpack_exports,
|
193901
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_885192__) => {
|
194039
193902
|
|
194040
193903
|
"use strict";
|
194041
193904
|
|
194042
193905
|
|
194043
193906
|
/*eslint-disable max-len*/
|
194044
193907
|
|
194045
|
-
var common =
|
194046
|
-
var YAMLException =
|
194047
|
-
var Type =
|
193908
|
+
var common = __nested_webpack_require_885192__(903);
|
193909
|
+
var YAMLException = __nested_webpack_require_885192__(3237);
|
193910
|
+
var Type = __nested_webpack_require_885192__(6876);
|
194048
193911
|
|
194049
193912
|
|
194050
193913
|
function compileList(schema, name, result) {
|
@@ -194151,7 +194014,7 @@ module.exports = Schema;
|
|
194151
194014
|
/***/ }),
|
194152
194015
|
|
194153
194016
|
/***/ 1112:
|
194154
|
-
/***/ ((module, __unused_webpack_exports,
|
194017
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888056__) => {
|
194155
194018
|
|
194156
194019
|
"use strict";
|
194157
194020
|
// Standard YAML's Core schema.
|
@@ -194164,12 +194027,12 @@ module.exports = Schema;
|
|
194164
194027
|
|
194165
194028
|
|
194166
194029
|
|
194167
|
-
var Schema =
|
194030
|
+
var Schema = __nested_webpack_require_888056__(6105);
|
194168
194031
|
|
194169
194032
|
|
194170
194033
|
module.exports = new Schema({
|
194171
194034
|
include: [
|
194172
|
-
|
194035
|
+
__nested_webpack_require_888056__(1486)
|
194173
194036
|
]
|
194174
194037
|
});
|
194175
194038
|
|
@@ -194177,7 +194040,7 @@ module.exports = new Schema({
|
|
194177
194040
|
/***/ }),
|
194178
194041
|
|
194179
194042
|
/***/ 9647:
|
194180
|
-
/***/ ((module, __unused_webpack_exports,
|
194043
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888526__) => {
|
194181
194044
|
|
194182
194045
|
"use strict";
|
194183
194046
|
// JS-YAML's default schema for `load` function.
|
@@ -194192,17 +194055,17 @@ module.exports = new Schema({
|
|
194192
194055
|
|
194193
194056
|
|
194194
194057
|
|
194195
|
-
var Schema =
|
194058
|
+
var Schema = __nested_webpack_require_888526__(6105);
|
194196
194059
|
|
194197
194060
|
|
194198
194061
|
module.exports = Schema.DEFAULT = new Schema({
|
194199
194062
|
include: [
|
194200
|
-
|
194063
|
+
__nested_webpack_require_888526__(596)
|
194201
194064
|
],
|
194202
194065
|
explicit: [
|
194203
|
-
|
194204
|
-
|
194205
|
-
|
194066
|
+
__nested_webpack_require_888526__(5836),
|
194067
|
+
__nested_webpack_require_888526__(6841),
|
194068
|
+
__nested_webpack_require_888526__(8750)
|
194206
194069
|
]
|
194207
194070
|
});
|
194208
194071
|
|
@@ -194210,7 +194073,7 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
194210
194073
|
/***/ }),
|
194211
194074
|
|
194212
194075
|
/***/ 596:
|
194213
|
-
/***/ ((module, __unused_webpack_exports,
|
194076
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_889220__) => {
|
194214
194077
|
|
194215
194078
|
"use strict";
|
194216
194079
|
// JS-YAML's default schema for `safeLoad` function.
|
@@ -194223,22 +194086,22 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
194223
194086
|
|
194224
194087
|
|
194225
194088
|
|
194226
|
-
var Schema =
|
194089
|
+
var Schema = __nested_webpack_require_889220__(6105);
|
194227
194090
|
|
194228
194091
|
|
194229
194092
|
module.exports = new Schema({
|
194230
194093
|
include: [
|
194231
|
-
|
194094
|
+
__nested_webpack_require_889220__(1112)
|
194232
194095
|
],
|
194233
194096
|
implicit: [
|
194234
|
-
|
194235
|
-
|
194097
|
+
__nested_webpack_require_889220__(7028),
|
194098
|
+
__nested_webpack_require_889220__(7841)
|
194236
194099
|
],
|
194237
194100
|
explicit: [
|
194238
|
-
|
194239
|
-
|
194240
|
-
|
194241
|
-
|
194101
|
+
__nested_webpack_require_889220__(8675),
|
194102
|
+
__nested_webpack_require_889220__(3498),
|
194103
|
+
__nested_webpack_require_889220__(679),
|
194104
|
+
__nested_webpack_require_889220__(7205)
|
194242
194105
|
]
|
194243
194106
|
});
|
194244
194107
|
|
@@ -194246,7 +194109,7 @@ module.exports = new Schema({
|
|
194246
194109
|
/***/ }),
|
194247
194110
|
|
194248
194111
|
/***/ 8441:
|
194249
|
-
/***/ ((module, __unused_webpack_exports,
|
194112
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_889932__) => {
|
194250
194113
|
|
194251
194114
|
"use strict";
|
194252
194115
|
// Standard YAML's Failsafe schema.
|
@@ -194256,14 +194119,14 @@ module.exports = new Schema({
|
|
194256
194119
|
|
194257
194120
|
|
194258
194121
|
|
194259
|
-
var Schema =
|
194122
|
+
var Schema = __nested_webpack_require_889932__(6105);
|
194260
194123
|
|
194261
194124
|
|
194262
194125
|
module.exports = new Schema({
|
194263
194126
|
explicit: [
|
194264
|
-
|
194265
|
-
|
194266
|
-
|
194127
|
+
__nested_webpack_require_889932__(5348),
|
194128
|
+
__nested_webpack_require_889932__(7330),
|
194129
|
+
__nested_webpack_require_889932__(293)
|
194267
194130
|
]
|
194268
194131
|
});
|
194269
194132
|
|
@@ -194271,7 +194134,7 @@ module.exports = new Schema({
|
|
194271
194134
|
/***/ }),
|
194272
194135
|
|
194273
194136
|
/***/ 1486:
|
194274
|
-
/***/ ((module, __unused_webpack_exports,
|
194137
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_890318__) => {
|
194275
194138
|
|
194276
194139
|
"use strict";
|
194277
194140
|
// Standard YAML's JSON schema.
|
@@ -194285,18 +194148,18 @@ module.exports = new Schema({
|
|
194285
194148
|
|
194286
194149
|
|
194287
194150
|
|
194288
|
-
var Schema =
|
194151
|
+
var Schema = __nested_webpack_require_890318__(6105);
|
194289
194152
|
|
194290
194153
|
|
194291
194154
|
module.exports = new Schema({
|
194292
194155
|
include: [
|
194293
|
-
|
194156
|
+
__nested_webpack_require_890318__(8441)
|
194294
194157
|
],
|
194295
194158
|
implicit: [
|
194296
|
-
|
194297
|
-
|
194298
|
-
|
194299
|
-
|
194159
|
+
__nested_webpack_require_890318__(9074),
|
194160
|
+
__nested_webpack_require_890318__(4308),
|
194161
|
+
__nested_webpack_require_890318__(1167),
|
194162
|
+
__nested_webpack_require_890318__(7862)
|
194300
194163
|
]
|
194301
194164
|
});
|
194302
194165
|
|
@@ -194304,12 +194167,12 @@ module.exports = new Schema({
|
|
194304
194167
|
/***/ }),
|
194305
194168
|
|
194306
194169
|
/***/ 6876:
|
194307
|
-
/***/ ((module, __unused_webpack_exports,
|
194170
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_891016__) => {
|
194308
194171
|
|
194309
194172
|
"use strict";
|
194310
194173
|
|
194311
194174
|
|
194312
|
-
var YAMLException =
|
194175
|
+
var YAMLException = __nested_webpack_require_891016__(3237);
|
194313
194176
|
|
194314
194177
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
194315
194178
|
'kind',
|
@@ -194373,7 +194236,7 @@ module.exports = Type;
|
|
194373
194236
|
/***/ }),
|
194374
194237
|
|
194375
194238
|
/***/ 8675:
|
194376
|
-
/***/ ((module, __unused_webpack_exports,
|
194239
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_892700__) => {
|
194377
194240
|
|
194378
194241
|
"use strict";
|
194379
194242
|
|
@@ -194388,7 +194251,7 @@ try {
|
|
194388
194251
|
NodeBuffer = _require('buffer').Buffer;
|
194389
194252
|
} catch (__) {}
|
194390
194253
|
|
194391
|
-
var Type =
|
194254
|
+
var Type = __nested_webpack_require_892700__(6876);
|
194392
194255
|
|
194393
194256
|
|
194394
194257
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
@@ -194519,12 +194382,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
|
|
194519
194382
|
/***/ }),
|
194520
194383
|
|
194521
194384
|
/***/ 4308:
|
194522
|
-
/***/ ((module, __unused_webpack_exports,
|
194385
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_896092__) => {
|
194523
194386
|
|
194524
194387
|
"use strict";
|
194525
194388
|
|
194526
194389
|
|
194527
|
-
var Type =
|
194390
|
+
var Type = __nested_webpack_require_896092__(6876);
|
194528
194391
|
|
194529
194392
|
function resolveYamlBoolean(data) {
|
194530
194393
|
if (data === null) return false;
|
@@ -194562,13 +194425,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
|
|
194562
194425
|
/***/ }),
|
194563
194426
|
|
194564
194427
|
/***/ 7862:
|
194565
|
-
/***/ ((module, __unused_webpack_exports,
|
194428
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_897165__) => {
|
194566
194429
|
|
194567
194430
|
"use strict";
|
194568
194431
|
|
194569
194432
|
|
194570
|
-
var common =
|
194571
|
-
var Type =
|
194433
|
+
var common = __nested_webpack_require_897165__(903);
|
194434
|
+
var Type = __nested_webpack_require_897165__(6876);
|
194572
194435
|
|
194573
194436
|
var YAML_FLOAT_PATTERN = new RegExp(
|
194574
194437
|
// 2.5e4, 2.5 and integers
|
@@ -194686,13 +194549,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
|
|
194686
194549
|
/***/ }),
|
194687
194550
|
|
194688
194551
|
/***/ 1167:
|
194689
|
-
/***/ ((module, __unused_webpack_exports,
|
194552
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_900111__) => {
|
194690
194553
|
|
194691
194554
|
"use strict";
|
194692
194555
|
|
194693
194556
|
|
194694
|
-
var common =
|
194695
|
-
var Type =
|
194557
|
+
var common = __nested_webpack_require_900111__(903);
|
194558
|
+
var Type = __nested_webpack_require_900111__(6876);
|
194696
194559
|
|
194697
194560
|
function isHexCode(c) {
|
194698
194561
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
@@ -194867,7 +194730,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
|
|
194867
194730
|
/***/ }),
|
194868
194731
|
|
194869
194732
|
/***/ 8750:
|
194870
|
-
/***/ ((module, __unused_webpack_exports,
|
194733
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_904283__) => {
|
194871
194734
|
|
194872
194735
|
"use strict";
|
194873
194736
|
|
@@ -194890,7 +194753,7 @@ try {
|
|
194890
194753
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
194891
194754
|
}
|
194892
194755
|
|
194893
|
-
var Type =
|
194756
|
+
var Type = __nested_webpack_require_904283__(6876);
|
194894
194757
|
|
194895
194758
|
function resolveJavascriptFunction(data) {
|
194896
194759
|
if (data === null) return false;
|
@@ -194967,12 +194830,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
|
|
194967
194830
|
/***/ }),
|
194968
194831
|
|
194969
194832
|
/***/ 6841:
|
194970
|
-
/***/ ((module, __unused_webpack_exports,
|
194833
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_907180__) => {
|
194971
194834
|
|
194972
194835
|
"use strict";
|
194973
194836
|
|
194974
194837
|
|
194975
|
-
var Type =
|
194838
|
+
var Type = __nested_webpack_require_907180__(6876);
|
194976
194839
|
|
194977
194840
|
function resolveJavascriptRegExp(data) {
|
194978
194841
|
if (data === null) return false;
|
@@ -195035,12 +194898,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
|
195035
194898
|
/***/ }),
|
195036
194899
|
|
195037
194900
|
/***/ 5836:
|
195038
|
-
/***/ ((module, __unused_webpack_exports,
|
194901
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_908851__) => {
|
195039
194902
|
|
195040
194903
|
"use strict";
|
195041
194904
|
|
195042
194905
|
|
195043
|
-
var Type =
|
194906
|
+
var Type = __nested_webpack_require_908851__(6876);
|
195044
194907
|
|
195045
194908
|
function resolveJavascriptUndefined() {
|
195046
194909
|
return true;
|
@@ -195071,12 +194934,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
|
195071
194934
|
/***/ }),
|
195072
194935
|
|
195073
194936
|
/***/ 293:
|
195074
|
-
/***/ ((module, __unused_webpack_exports,
|
194937
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_909522__) => {
|
195075
194938
|
|
195076
194939
|
"use strict";
|
195077
194940
|
|
195078
194941
|
|
195079
|
-
var Type =
|
194942
|
+
var Type = __nested_webpack_require_909522__(6876);
|
195080
194943
|
|
195081
194944
|
module.exports = new Type('tag:yaml.org,2002:map', {
|
195082
194945
|
kind: 'mapping',
|
@@ -195087,12 +194950,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
|
|
195087
194950
|
/***/ }),
|
195088
194951
|
|
195089
194952
|
/***/ 7841:
|
195090
|
-
/***/ ((module, __unused_webpack_exports,
|
194953
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_909814__) => {
|
195091
194954
|
|
195092
194955
|
"use strict";
|
195093
194956
|
|
195094
194957
|
|
195095
|
-
var Type =
|
194958
|
+
var Type = __nested_webpack_require_909814__(6876);
|
195096
194959
|
|
195097
194960
|
function resolveYamlMerge(data) {
|
195098
194961
|
return data === '<<' || data === null;
|
@@ -195107,12 +194970,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
|
|
195107
194970
|
/***/ }),
|
195108
194971
|
|
195109
194972
|
/***/ 9074:
|
195110
|
-
/***/ ((module, __unused_webpack_exports,
|
194973
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_910146__) => {
|
195111
194974
|
|
195112
194975
|
"use strict";
|
195113
194976
|
|
195114
194977
|
|
195115
|
-
var Type =
|
194978
|
+
var Type = __nested_webpack_require_910146__(6876);
|
195116
194979
|
|
195117
194980
|
function resolveYamlNull(data) {
|
195118
194981
|
if (data === null) return true;
|
@@ -195149,12 +195012,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
|
|
195149
195012
|
/***/ }),
|
195150
195013
|
|
195151
195014
|
/***/ 3498:
|
195152
|
-
/***/ ((module, __unused_webpack_exports,
|
195015
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_911009__) => {
|
195153
195016
|
|
195154
195017
|
"use strict";
|
195155
195018
|
|
195156
195019
|
|
195157
|
-
var Type =
|
195020
|
+
var Type = __nested_webpack_require_911009__(6876);
|
195158
195021
|
|
195159
195022
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
195160
195023
|
var _toString = Object.prototype.toString;
|
@@ -195201,12 +195064,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
|
|
195201
195064
|
/***/ }),
|
195202
195065
|
|
195203
195066
|
/***/ 679:
|
195204
|
-
/***/ ((module, __unused_webpack_exports,
|
195067
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_912133__) => {
|
195205
195068
|
|
195206
195069
|
"use strict";
|
195207
195070
|
|
195208
195071
|
|
195209
|
-
var Type =
|
195072
|
+
var Type = __nested_webpack_require_912133__(6876);
|
195210
195073
|
|
195211
195074
|
var _toString = Object.prototype.toString;
|
195212
195075
|
|
@@ -195262,12 +195125,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
|
|
195262
195125
|
/***/ }),
|
195263
195126
|
|
195264
195127
|
/***/ 7330:
|
195265
|
-
/***/ ((module, __unused_webpack_exports,
|
195128
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_913319__) => {
|
195266
195129
|
|
195267
195130
|
"use strict";
|
195268
195131
|
|
195269
195132
|
|
195270
|
-
var Type =
|
195133
|
+
var Type = __nested_webpack_require_913319__(6876);
|
195271
195134
|
|
195272
195135
|
module.exports = new Type('tag:yaml.org,2002:seq', {
|
195273
195136
|
kind: 'sequence',
|
@@ -195278,12 +195141,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
|
|
195278
195141
|
/***/ }),
|
195279
195142
|
|
195280
195143
|
/***/ 7205:
|
195281
|
-
/***/ ((module, __unused_webpack_exports,
|
195144
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_913612__) => {
|
195282
195145
|
|
195283
195146
|
"use strict";
|
195284
195147
|
|
195285
195148
|
|
195286
|
-
var Type =
|
195149
|
+
var Type = __nested_webpack_require_913612__(6876);
|
195287
195150
|
|
195288
195151
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
195289
195152
|
|
@@ -195315,12 +195178,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
|
|
195315
195178
|
/***/ }),
|
195316
195179
|
|
195317
195180
|
/***/ 5348:
|
195318
|
-
/***/ ((module, __unused_webpack_exports,
|
195181
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_914261__) => {
|
195319
195182
|
|
195320
195183
|
"use strict";
|
195321
195184
|
|
195322
195185
|
|
195323
|
-
var Type =
|
195186
|
+
var Type = __nested_webpack_require_914261__(6876);
|
195324
195187
|
|
195325
195188
|
module.exports = new Type('tag:yaml.org,2002:str', {
|
195326
195189
|
kind: 'scalar',
|
@@ -195331,12 +195194,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
|
|
195331
195194
|
/***/ }),
|
195332
195195
|
|
195333
195196
|
/***/ 7028:
|
195334
|
-
/***/ ((module, __unused_webpack_exports,
|
195197
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_914552__) => {
|
195335
195198
|
|
195336
195199
|
"use strict";
|
195337
195200
|
|
195338
195201
|
|
195339
|
-
var Type =
|
195202
|
+
var Type = __nested_webpack_require_914552__(6876);
|
195340
195203
|
|
195341
195204
|
var YAML_DATE_REGEXP = new RegExp(
|
195342
195205
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
@@ -195427,12 +195290,12 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
195427
195290
|
/***/ }),
|
195428
195291
|
|
195429
195292
|
/***/ 1868:
|
195430
|
-
/***/ ((__unused_webpack_module, exports,
|
195293
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_917225__) => {
|
195431
195294
|
|
195432
195295
|
"use strict";
|
195433
195296
|
|
195434
195297
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195435
|
-
const get_platform_env_1 =
|
195298
|
+
const get_platform_env_1 = __nested_webpack_require_917225__(4678);
|
195436
195299
|
function debug(message, ...additional) {
|
195437
195300
|
if (get_platform_env_1.getPlatformEnv('BUILDER_DEBUG')) {
|
195438
195301
|
console.log(message, ...additional);
|
@@ -195444,7 +195307,7 @@ exports.default = debug;
|
|
195444
195307
|
/***/ }),
|
195445
195308
|
|
195446
195309
|
/***/ 4246:
|
195447
|
-
/***/ (function(__unused_webpack_module, exports,
|
195310
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_917642__) {
|
195448
195311
|
|
195449
195312
|
"use strict";
|
195450
195313
|
|
@@ -195453,11 +195316,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
195453
195316
|
};
|
195454
195317
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
195455
195318
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
195456
|
-
const minimatch_1 = __importDefault(
|
195457
|
-
const semver_1 =
|
195458
|
-
const path_1 =
|
195459
|
-
const frameworks_1 = __importDefault(
|
195460
|
-
const _1 =
|
195319
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_917642__(9566));
|
195320
|
+
const semver_1 = __nested_webpack_require_917642__(2879);
|
195321
|
+
const path_1 = __nested_webpack_require_917642__(5622);
|
195322
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_917642__(8438));
|
195323
|
+
const _1 = __nested_webpack_require_917642__(2855);
|
195461
195324
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
195462
195325
|
// We need to sort the file paths by alphabet to make
|
195463
195326
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -196286,7 +196149,7 @@ function sortFilesBySegmentCount(fileA, fileB) {
|
|
196286
196149
|
/***/ }),
|
196287
196150
|
|
196288
196151
|
/***/ 1182:
|
196289
|
-
/***/ (function(__unused_webpack_module, exports,
|
196152
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_949650__) {
|
196290
196153
|
|
196291
196154
|
"use strict";
|
196292
196155
|
|
@@ -196295,8 +196158,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196295
196158
|
};
|
196296
196159
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196297
196160
|
exports.detectFileSystemAPI = void 0;
|
196298
|
-
const semver_1 = __importDefault(
|
196299
|
-
const _1 =
|
196161
|
+
const semver_1 = __importDefault(__nested_webpack_require_949650__(2879));
|
196162
|
+
const _1 = __nested_webpack_require_949650__(2855);
|
196300
196163
|
const enableFileSystemApiFrameworks = new Set(['solidstart']);
|
196301
196164
|
/**
|
196302
196165
|
* If the Deployment can be built with the new File System API,
|
@@ -196722,7 +196585,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
196722
196585
|
/***/ }),
|
196723
196586
|
|
196724
196587
|
/***/ 2397:
|
196725
|
-
/***/ (function(__unused_webpack_module, exports,
|
196588
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_965311__) {
|
196726
196589
|
|
196727
196590
|
"use strict";
|
196728
196591
|
|
@@ -196730,8 +196593,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196730
196593
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
196731
196594
|
};
|
196732
196595
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196733
|
-
const assert_1 = __importDefault(
|
196734
|
-
const into_stream_1 = __importDefault(
|
196596
|
+
const assert_1 = __importDefault(__nested_webpack_require_965311__(2357));
|
196597
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_965311__(6130));
|
196735
196598
|
class FileBlob {
|
196736
196599
|
constructor({ mode = 0o100644, contentType, data }) {
|
196737
196600
|
assert_1.default(typeof mode === 'number');
|
@@ -196753,6 +196616,9 @@ class FileBlob {
|
|
196753
196616
|
const data = Buffer.concat(chunks);
|
196754
196617
|
return new FileBlob({ mode, contentType, data });
|
196755
196618
|
}
|
196619
|
+
async toStreamAsync() {
|
196620
|
+
return this.toStream();
|
196621
|
+
}
|
196756
196622
|
toStream() {
|
196757
196623
|
return into_stream_1.default(this.data);
|
196758
196624
|
}
|
@@ -196763,7 +196629,7 @@ exports.default = FileBlob;
|
|
196763
196629
|
/***/ }),
|
196764
196630
|
|
196765
196631
|
/***/ 9331:
|
196766
|
-
/***/ (function(__unused_webpack_module, exports,
|
196632
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966829__) {
|
196767
196633
|
|
196768
196634
|
"use strict";
|
196769
196635
|
|
@@ -196771,11 +196637,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196771
196637
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
196772
196638
|
};
|
196773
196639
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196774
|
-
const assert_1 = __importDefault(
|
196775
|
-
const fs_extra_1 = __importDefault(
|
196776
|
-
const multistream_1 = __importDefault(
|
196777
|
-
const path_1 = __importDefault(
|
196778
|
-
const async_sema_1 = __importDefault(
|
196640
|
+
const assert_1 = __importDefault(__nested_webpack_require_966829__(2357));
|
196641
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_966829__(5392));
|
196642
|
+
const multistream_1 = __importDefault(__nested_webpack_require_966829__(8179));
|
196643
|
+
const path_1 = __importDefault(__nested_webpack_require_966829__(5622));
|
196644
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_966829__(5758));
|
196779
196645
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
196780
196646
|
class FileFsRef {
|
196781
196647
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -196841,7 +196707,7 @@ exports.default = FileFsRef;
|
|
196841
196707
|
/***/ }),
|
196842
196708
|
|
196843
196709
|
/***/ 5187:
|
196844
|
-
/***/ (function(__unused_webpack_module, exports,
|
196710
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_969633__) {
|
196845
196711
|
|
196846
196712
|
"use strict";
|
196847
196713
|
|
@@ -196849,11 +196715,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196849
196715
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
196850
196716
|
};
|
196851
196717
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196852
|
-
const assert_1 = __importDefault(
|
196853
|
-
const node_fetch_1 = __importDefault(
|
196854
|
-
const multistream_1 = __importDefault(
|
196855
|
-
const async_retry_1 = __importDefault(
|
196856
|
-
const async_sema_1 = __importDefault(
|
196718
|
+
const assert_1 = __importDefault(__nested_webpack_require_969633__(2357));
|
196719
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_969633__(2197));
|
196720
|
+
const multistream_1 = __importDefault(__nested_webpack_require_969633__(8179));
|
196721
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_969633__(3691));
|
196722
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_969633__(5758));
|
196857
196723
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
196858
196724
|
class BailableError extends Error {
|
196859
196725
|
constructor(...args) {
|
@@ -196934,7 +196800,7 @@ exports.default = FileRef;
|
|
196934
196800
|
/***/ }),
|
196935
196801
|
|
196936
196802
|
/***/ 1611:
|
196937
|
-
/***/ (function(__unused_webpack_module, exports,
|
196803
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_973034__) {
|
196938
196804
|
|
196939
196805
|
"use strict";
|
196940
196806
|
|
@@ -196943,30 +196809,42 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
196943
196809
|
};
|
196944
196810
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
196945
196811
|
exports.isSymbolicLink = void 0;
|
196946
|
-
const path_1 = __importDefault(
|
196947
|
-
const debug_1 = __importDefault(
|
196948
|
-
const file_fs_ref_1 = __importDefault(
|
196949
|
-
const fs_extra_1 =
|
196812
|
+
const path_1 = __importDefault(__nested_webpack_require_973034__(5622));
|
196813
|
+
const debug_1 = __importDefault(__nested_webpack_require_973034__(1868));
|
196814
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_973034__(9331));
|
196815
|
+
const fs_extra_1 = __nested_webpack_require_973034__(5392);
|
196816
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_973034__(2560));
|
196950
196817
|
const S_IFMT = 61440; /* 0170000 type of file */
|
196951
196818
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
196952
196819
|
function isSymbolicLink(mode) {
|
196953
196820
|
return (mode & S_IFMT) === S_IFLNK;
|
196954
196821
|
}
|
196955
196822
|
exports.isSymbolicLink = isSymbolicLink;
|
196823
|
+
async function prepareSymlinkTarget(file, fsPath) {
|
196824
|
+
const mkdirPromise = fs_extra_1.mkdirp(path_1.default.dirname(fsPath));
|
196825
|
+
if (file.type === 'FileFsRef') {
|
196826
|
+
const [target] = await Promise.all([fs_extra_1.readlink(file.fsPath), mkdirPromise]);
|
196827
|
+
return target;
|
196828
|
+
}
|
196829
|
+
if (file.type === 'FileRef' || file.type === 'FileBlob') {
|
196830
|
+
const targetPathBufferPromise = await stream_to_buffer_1.default(await file.toStreamAsync());
|
196831
|
+
const [targetPathBuffer] = await Promise.all([
|
196832
|
+
targetPathBufferPromise,
|
196833
|
+
mkdirPromise,
|
196834
|
+
]);
|
196835
|
+
return targetPathBuffer.toString('utf8');
|
196836
|
+
}
|
196837
|
+
throw new Error(`file.type "${file.type}" not supported for symlink`);
|
196838
|
+
}
|
196956
196839
|
async function downloadFile(file, fsPath) {
|
196957
196840
|
const { mode } = file;
|
196958
|
-
if (
|
196959
|
-
const
|
196960
|
-
fs_extra_1.readlink(file.fsPath),
|
196961
|
-
fs_extra_1.mkdirp(path_1.default.dirname(fsPath)),
|
196962
|
-
]);
|
196841
|
+
if (isSymbolicLink(mode)) {
|
196842
|
+
const target = await prepareSymlinkTarget(file, fsPath);
|
196963
196843
|
await fs_extra_1.symlink(target, fsPath);
|
196964
196844
|
return file_fs_ref_1.default.fromFsPath({ mode, fsPath });
|
196965
196845
|
}
|
196966
|
-
|
196967
|
-
|
196968
|
-
return file_fs_ref_1.default.fromStream({ mode, stream, fsPath });
|
196969
|
-
}
|
196846
|
+
const stream = file.toStream();
|
196847
|
+
return file_fs_ref_1.default.fromStream({ mode, stream, fsPath });
|
196970
196848
|
}
|
196971
196849
|
async function removeFile(basePath, fileMatched) {
|
196972
196850
|
const file = path_1.default.join(basePath, fileMatched);
|
@@ -197008,14 +196886,14 @@ exports.default = download;
|
|
197008
196886
|
/***/ }),
|
197009
196887
|
|
197010
196888
|
/***/ 3838:
|
197011
|
-
/***/ ((__unused_webpack_module, exports,
|
196889
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_976483__) => {
|
197012
196890
|
|
197013
196891
|
"use strict";
|
197014
196892
|
|
197015
196893
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197016
|
-
const path_1 =
|
197017
|
-
const os_1 =
|
197018
|
-
const fs_extra_1 =
|
196894
|
+
const path_1 = __nested_webpack_require_976483__(5622);
|
196895
|
+
const os_1 = __nested_webpack_require_976483__(2087);
|
196896
|
+
const fs_extra_1 = __nested_webpack_require_976483__(5392);
|
197019
196897
|
async function getWritableDirectory() {
|
197020
196898
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
197021
196899
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -197028,7 +196906,7 @@ exports.default = getWritableDirectory;
|
|
197028
196906
|
/***/ }),
|
197029
196907
|
|
197030
196908
|
/***/ 4240:
|
197031
|
-
/***/ (function(__unused_webpack_module, exports,
|
196909
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_977063__) {
|
197032
196910
|
|
197033
196911
|
"use strict";
|
197034
196912
|
|
@@ -197036,13 +196914,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197036
196914
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
197037
196915
|
};
|
197038
196916
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197039
|
-
const path_1 = __importDefault(
|
197040
|
-
const assert_1 = __importDefault(
|
197041
|
-
const glob_1 = __importDefault(
|
197042
|
-
const util_1 =
|
197043
|
-
const fs_extra_1 =
|
197044
|
-
const normalize_path_1 =
|
197045
|
-
const file_fs_ref_1 = __importDefault(
|
196917
|
+
const path_1 = __importDefault(__nested_webpack_require_977063__(5622));
|
196918
|
+
const assert_1 = __importDefault(__nested_webpack_require_977063__(2357));
|
196919
|
+
const glob_1 = __importDefault(__nested_webpack_require_977063__(1104));
|
196920
|
+
const util_1 = __nested_webpack_require_977063__(1669);
|
196921
|
+
const fs_extra_1 = __nested_webpack_require_977063__(5392);
|
196922
|
+
const normalize_path_1 = __nested_webpack_require_977063__(6261);
|
196923
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_977063__(9331));
|
197046
196924
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
197047
196925
|
async function glob(pattern, opts, mountpoint) {
|
197048
196926
|
let options;
|
@@ -197088,7 +196966,7 @@ exports.default = glob;
|
|
197088
196966
|
/***/ }),
|
197089
196967
|
|
197090
196968
|
/***/ 7903:
|
197091
|
-
/***/ (function(__unused_webpack_module, exports,
|
196969
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_979259__) {
|
197092
196970
|
|
197093
196971
|
"use strict";
|
197094
196972
|
|
@@ -197097,9 +196975,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197097
196975
|
};
|
197098
196976
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197099
196977
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
197100
|
-
const semver_1 =
|
197101
|
-
const errors_1 =
|
197102
|
-
const debug_1 = __importDefault(
|
196978
|
+
const semver_1 = __nested_webpack_require_979259__(2879);
|
196979
|
+
const errors_1 = __nested_webpack_require_979259__(3983);
|
196980
|
+
const debug_1 = __importDefault(__nested_webpack_require_979259__(1868));
|
197103
196981
|
const allOptions = [
|
197104
196982
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
197105
196983
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -197193,7 +197071,7 @@ exports.normalizePath = normalizePath;
|
|
197193
197071
|
/***/ }),
|
197194
197072
|
|
197195
197073
|
/***/ 7792:
|
197196
|
-
/***/ (function(__unused_webpack_module, exports,
|
197074
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_983127__) {
|
197197
197075
|
|
197198
197076
|
"use strict";
|
197199
197077
|
|
@@ -197202,9 +197080,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197202
197080
|
};
|
197203
197081
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197204
197082
|
exports.readConfigFile = void 0;
|
197205
|
-
const js_yaml_1 = __importDefault(
|
197206
|
-
const toml_1 = __importDefault(
|
197207
|
-
const fs_extra_1 =
|
197083
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_983127__(6540));
|
197084
|
+
const toml_1 = __importDefault(__nested_webpack_require_983127__(9434));
|
197085
|
+
const fs_extra_1 = __nested_webpack_require_983127__(5392);
|
197208
197086
|
async function readFileOrNull(file) {
|
197209
197087
|
try {
|
197210
197088
|
const data = await fs_extra_1.readFile(file);
|
@@ -197259,7 +197137,7 @@ exports.default = rename;
|
|
197259
197137
|
/***/ }),
|
197260
197138
|
|
197261
197139
|
/***/ 1442:
|
197262
|
-
/***/ (function(__unused_webpack_module, exports,
|
197140
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_984920__) {
|
197263
197141
|
|
197264
197142
|
"use strict";
|
197265
197143
|
|
@@ -197268,15 +197146,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197268
197146
|
};
|
197269
197147
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197270
197148
|
exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runCustomInstallCommand = exports.getEnvForPackageManager = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
|
197271
|
-
const assert_1 = __importDefault(
|
197272
|
-
const fs_extra_1 = __importDefault(
|
197273
|
-
const path_1 = __importDefault(
|
197274
|
-
const debug_1 = __importDefault(
|
197275
|
-
const cross_spawn_1 = __importDefault(
|
197276
|
-
const util_1 =
|
197277
|
-
const errors_1 =
|
197278
|
-
const node_version_1 =
|
197279
|
-
const read_config_file_1 =
|
197149
|
+
const assert_1 = __importDefault(__nested_webpack_require_984920__(2357));
|
197150
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_984920__(5392));
|
197151
|
+
const path_1 = __importDefault(__nested_webpack_require_984920__(5622));
|
197152
|
+
const debug_1 = __importDefault(__nested_webpack_require_984920__(1868));
|
197153
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_984920__(7618));
|
197154
|
+
const util_1 = __nested_webpack_require_984920__(1669);
|
197155
|
+
const errors_1 = __nested_webpack_require_984920__(3983);
|
197156
|
+
const node_version_1 = __nested_webpack_require_984920__(7903);
|
197157
|
+
const read_config_file_1 = __nested_webpack_require_984920__(7792);
|
197280
197158
|
function spawnAsync(command, args, opts = {}) {
|
197281
197159
|
return new Promise((resolve, reject) => {
|
197282
197160
|
const stderrLogs = [];
|
@@ -197637,7 +197515,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
197637
197515
|
/***/ }),
|
197638
197516
|
|
197639
197517
|
/***/ 2560:
|
197640
|
-
/***/ (function(__unused_webpack_module, exports,
|
197518
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1000709__) {
|
197641
197519
|
|
197642
197520
|
"use strict";
|
197643
197521
|
|
@@ -197645,7 +197523,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197645
197523
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
197646
197524
|
};
|
197647
197525
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197648
|
-
const end_of_stream_1 = __importDefault(
|
197526
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_1000709__(687));
|
197649
197527
|
function streamToBuffer(stream) {
|
197650
197528
|
return new Promise((resolve, reject) => {
|
197651
197529
|
const buffers = [];
|
@@ -197674,7 +197552,7 @@ exports.default = streamToBuffer;
|
|
197674
197552
|
/***/ }),
|
197675
197553
|
|
197676
197554
|
/***/ 1148:
|
197677
|
-
/***/ (function(__unused_webpack_module, exports,
|
197555
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1001777__) {
|
197678
197556
|
|
197679
197557
|
"use strict";
|
197680
197558
|
|
@@ -197682,9 +197560,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197682
197560
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
197683
197561
|
};
|
197684
197562
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197685
|
-
const path_1 = __importDefault(
|
197686
|
-
const fs_extra_1 = __importDefault(
|
197687
|
-
const ignore_1 = __importDefault(
|
197563
|
+
const path_1 = __importDefault(__nested_webpack_require_1001777__(5622));
|
197564
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_1001777__(5392));
|
197565
|
+
const ignore_1 = __importDefault(__nested_webpack_require_1001777__(3556));
|
197688
197566
|
function isCodedError(error) {
|
197689
197567
|
return (error !== null &&
|
197690
197568
|
error !== undefined &&
|
@@ -197741,13 +197619,13 @@ exports.default = default_1;
|
|
197741
197619
|
/***/ }),
|
197742
197620
|
|
197743
197621
|
/***/ 4678:
|
197744
|
-
/***/ ((__unused_webpack_module, exports,
|
197622
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1004151__) => {
|
197745
197623
|
|
197746
197624
|
"use strict";
|
197747
197625
|
|
197748
197626
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197749
197627
|
exports.getPlatformEnv = void 0;
|
197750
|
-
const errors_1 =
|
197628
|
+
const errors_1 = __nested_webpack_require_1004151__(3983);
|
197751
197629
|
/**
|
197752
197630
|
* Helper function to support both `VERCEL_` and legacy `NOW_` env vars.
|
197753
197631
|
* Throws an error if *both* env vars are defined.
|
@@ -197775,7 +197653,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
197775
197653
|
/***/ }),
|
197776
197654
|
|
197777
197655
|
/***/ 2855:
|
197778
|
-
/***/ (function(__unused_webpack_module, exports,
|
197656
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1005188__) {
|
197779
197657
|
|
197780
197658
|
"use strict";
|
197781
197659
|
|
@@ -197806,30 +197684,30 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197806
197684
|
};
|
197807
197685
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197808
197686
|
exports.isStaticRuntime = exports.isOfficialRuntime = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectFileSystemAPI = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.EdgeFunction = exports.getIgnoreFilter = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getPlatformEnv = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.getEnvForPackageManager = exports.runCustomInstallCommand = 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.NodejsLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
|
197809
|
-
const file_blob_1 = __importDefault(
|
197687
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_1005188__(2397));
|
197810
197688
|
exports.FileBlob = file_blob_1.default;
|
197811
|
-
const file_fs_ref_1 = __importDefault(
|
197689
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_1005188__(9331));
|
197812
197690
|
exports.FileFsRef = file_fs_ref_1.default;
|
197813
|
-
const file_ref_1 = __importDefault(
|
197691
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_1005188__(5187));
|
197814
197692
|
exports.FileRef = file_ref_1.default;
|
197815
|
-
const lambda_1 =
|
197693
|
+
const lambda_1 = __nested_webpack_require_1005188__(6721);
|
197816
197694
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
197817
197695
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
197818
197696
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
197819
|
-
const nodejs_lambda_1 =
|
197697
|
+
const nodejs_lambda_1 = __nested_webpack_require_1005188__(7049);
|
197820
197698
|
Object.defineProperty(exports, "NodejsLambda", ({ enumerable: true, get: function () { return nodejs_lambda_1.NodejsLambda; } }));
|
197821
|
-
const prerender_1 =
|
197699
|
+
const prerender_1 = __nested_webpack_require_1005188__(2850);
|
197822
197700
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
197823
|
-
const download_1 = __importStar(
|
197701
|
+
const download_1 = __importStar(__nested_webpack_require_1005188__(1611));
|
197824
197702
|
exports.download = download_1.default;
|
197825
197703
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
197826
|
-
const get_writable_directory_1 = __importDefault(
|
197704
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_1005188__(3838));
|
197827
197705
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
197828
|
-
const glob_1 = __importDefault(
|
197706
|
+
const glob_1 = __importDefault(__nested_webpack_require_1005188__(4240));
|
197829
197707
|
exports.glob = glob_1.default;
|
197830
|
-
const rename_1 = __importDefault(
|
197708
|
+
const rename_1 = __importDefault(__nested_webpack_require_1005188__(6718));
|
197831
197709
|
exports.rename = rename_1.default;
|
197832
|
-
const run_user_scripts_1 =
|
197710
|
+
const run_user_scripts_1 = __nested_webpack_require_1005188__(1442);
|
197833
197711
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
197834
197712
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
197835
197713
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -197848,39 +197726,39 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
197848
197726
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
197849
197727
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
197850
197728
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
197851
|
-
const node_version_1 =
|
197729
|
+
const node_version_1 = __nested_webpack_require_1005188__(7903);
|
197852
197730
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
197853
197731
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
197854
|
-
const stream_to_buffer_1 = __importDefault(
|
197732
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1005188__(2560));
|
197855
197733
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
197856
|
-
const should_serve_1 = __importDefault(
|
197734
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_1005188__(2564));
|
197857
197735
|
exports.shouldServe = should_serve_1.default;
|
197858
|
-
const debug_1 = __importDefault(
|
197736
|
+
const debug_1 = __importDefault(__nested_webpack_require_1005188__(1868));
|
197859
197737
|
exports.debug = debug_1.default;
|
197860
|
-
const get_ignore_filter_1 = __importDefault(
|
197738
|
+
const get_ignore_filter_1 = __importDefault(__nested_webpack_require_1005188__(1148));
|
197861
197739
|
exports.getIgnoreFilter = get_ignore_filter_1.default;
|
197862
|
-
const get_platform_env_1 =
|
197740
|
+
const get_platform_env_1 = __nested_webpack_require_1005188__(4678);
|
197863
197741
|
Object.defineProperty(exports, "getPlatformEnv", ({ enumerable: true, get: function () { return get_platform_env_1.getPlatformEnv; } }));
|
197864
|
-
var edge_function_1 =
|
197742
|
+
var edge_function_1 = __nested_webpack_require_1005188__(8038);
|
197865
197743
|
Object.defineProperty(exports, "EdgeFunction", ({ enumerable: true, get: function () { return edge_function_1.EdgeFunction; } }));
|
197866
|
-
var detect_builders_1 =
|
197744
|
+
var detect_builders_1 = __nested_webpack_require_1005188__(4246);
|
197867
197745
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
197868
197746
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
197869
197747
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
197870
197748
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
197871
|
-
var detect_file_system_api_1 =
|
197749
|
+
var detect_file_system_api_1 = __nested_webpack_require_1005188__(1182);
|
197872
197750
|
Object.defineProperty(exports, "detectFileSystemAPI", ({ enumerable: true, get: function () { return detect_file_system_api_1.detectFileSystemAPI; } }));
|
197873
|
-
var detect_framework_1 =
|
197751
|
+
var detect_framework_1 = __nested_webpack_require_1005188__(5224);
|
197874
197752
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
197875
|
-
var filesystem_1 =
|
197753
|
+
var filesystem_1 = __nested_webpack_require_1005188__(461);
|
197876
197754
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
197877
|
-
var read_config_file_1 =
|
197755
|
+
var read_config_file_1 = __nested_webpack_require_1005188__(7792);
|
197878
197756
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
197879
|
-
var normalize_path_1 =
|
197757
|
+
var normalize_path_1 = __nested_webpack_require_1005188__(6261);
|
197880
197758
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
197881
|
-
__exportStar(
|
197882
|
-
__exportStar(
|
197883
|
-
__exportStar(
|
197759
|
+
__exportStar(__nested_webpack_require_1005188__(2416), exports);
|
197760
|
+
__exportStar(__nested_webpack_require_1005188__(5748), exports);
|
197761
|
+
__exportStar(__nested_webpack_require_1005188__(3983), exports);
|
197884
197762
|
/**
|
197885
197763
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
197886
197764
|
*/
|
@@ -197903,7 +197781,7 @@ exports.isStaticRuntime = isStaticRuntime;
|
|
197903
197781
|
/***/ }),
|
197904
197782
|
|
197905
197783
|
/***/ 6721:
|
197906
|
-
/***/ (function(__unused_webpack_module, exports,
|
197784
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_1015559__) {
|
197907
197785
|
|
197908
197786
|
"use strict";
|
197909
197787
|
|
@@ -197912,13 +197790,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
197912
197790
|
};
|
197913
197791
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
197914
197792
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = void 0;
|
197915
|
-
const assert_1 = __importDefault(
|
197916
|
-
const async_sema_1 = __importDefault(
|
197917
|
-
const yazl_1 =
|
197918
|
-
const minimatch_1 = __importDefault(
|
197919
|
-
const fs_extra_1 =
|
197920
|
-
const download_1 =
|
197921
|
-
const stream_to_buffer_1 = __importDefault(
|
197793
|
+
const assert_1 = __importDefault(__nested_webpack_require_1015559__(2357));
|
197794
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_1015559__(5758));
|
197795
|
+
const yazl_1 = __nested_webpack_require_1015559__(1223);
|
197796
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_1015559__(9566));
|
197797
|
+
const fs_extra_1 = __nested_webpack_require_1015559__(5392);
|
197798
|
+
const download_1 = __nested_webpack_require_1015559__(1611);
|
197799
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_1015559__(2560));
|
197922
197800
|
class Lambda {
|
197923
197801
|
constructor(opts) {
|
197924
197802
|
const { handler, runtime, maxDuration, memory, environment = {}, allowQuery, regions, supportsMultiPayloads, } = opts;
|
@@ -198040,13 +197918,13 @@ exports.getLambdaOptionsFromFunction = getLambdaOptionsFromFunction;
|
|
198040
197918
|
/***/ }),
|
198041
197919
|
|
198042
197920
|
/***/ 7049:
|
198043
|
-
/***/ ((__unused_webpack_module, exports,
|
197921
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1021063__) => {
|
198044
197922
|
|
198045
197923
|
"use strict";
|
198046
197924
|
|
198047
197925
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
198048
197926
|
exports.NodejsLambda = void 0;
|
198049
|
-
const lambda_1 =
|
197927
|
+
const lambda_1 = __nested_webpack_require_1021063__(6721);
|
198050
197928
|
class NodejsLambda extends lambda_1.Lambda {
|
198051
197929
|
constructor({ shouldAddHelpers, shouldAddSourcemapSupport, awsLambdaHandler, ...opts }) {
|
198052
197930
|
super(opts);
|
@@ -198183,12 +198061,12 @@ exports.buildsSchema = {
|
|
198183
198061
|
/***/ }),
|
198184
198062
|
|
198185
198063
|
/***/ 2564:
|
198186
|
-
/***/ ((__unused_webpack_module, exports,
|
198064
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1025408__) => {
|
198187
198065
|
|
198188
198066
|
"use strict";
|
198189
198067
|
|
198190
198068
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
198191
|
-
const path_1 =
|
198069
|
+
const path_1 = __nested_webpack_require_1025408__(5622);
|
198192
198070
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
198193
198071
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
198194
198072
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -198417,7 +198295,7 @@ module.exports = __webpack_require__(78761);
|
|
198417
198295
|
/******/ var __webpack_module_cache__ = {};
|
198418
198296
|
/******/
|
198419
198297
|
/******/ // The require function
|
198420
|
-
/******/ function
|
198298
|
+
/******/ function __nested_webpack_require_1125047__(moduleId) {
|
198421
198299
|
/******/ // Check if module is in cache
|
198422
198300
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
198423
198301
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -198432,7 +198310,7 @@ module.exports = __webpack_require__(78761);
|
|
198432
198310
|
/******/ // Execute the module function
|
198433
198311
|
/******/ var threw = true;
|
198434
198312
|
/******/ try {
|
198435
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
198313
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1125047__);
|
198436
198314
|
/******/ threw = false;
|
198437
198315
|
/******/ } finally {
|
198438
198316
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -198445,11 +198323,11 @@ module.exports = __webpack_require__(78761);
|
|
198445
198323
|
/************************************************************************/
|
198446
198324
|
/******/ /* webpack/runtime/compat */
|
198447
198325
|
/******/
|
198448
|
-
/******/
|
198326
|
+
/******/ __nested_webpack_require_1125047__.ab = __dirname + "/";/************************************************************************/
|
198449
198327
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
198450
198328
|
/******/ // startup
|
198451
198329
|
/******/ // Load entry module and return exports
|
198452
|
-
/******/ return
|
198330
|
+
/******/ return __nested_webpack_require_1125047__(2855);
|
198453
198331
|
/******/ })()
|
198454
198332
|
;
|
198455
198333
|
|
@@ -206105,6 +205983,43 @@ module.exports = isFullwidthCodePoint;
|
|
206105
205983
|
module.exports.default = isFullwidthCodePoint;
|
206106
205984
|
|
206107
205985
|
|
205986
|
+
/***/ }),
|
205987
|
+
|
205988
|
+
/***/ 74133:
|
205989
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
205990
|
+
|
205991
|
+
"use strict";
|
205992
|
+
|
205993
|
+
const net = __webpack_require__(11631);
|
205994
|
+
|
205995
|
+
module.exports = async (port, {timeout = 1000, host} = {}) => {
|
205996
|
+
const promise = new Promise(((resolve, reject) => {
|
205997
|
+
const socket = new net.Socket();
|
205998
|
+
|
205999
|
+
const onError = () => {
|
206000
|
+
socket.destroy();
|
206001
|
+
reject();
|
206002
|
+
};
|
206003
|
+
|
206004
|
+
socket.setTimeout(timeout);
|
206005
|
+
socket.once('error', onError);
|
206006
|
+
socket.once('timeout', onError);
|
206007
|
+
|
206008
|
+
socket.connect(port, host, () => {
|
206009
|
+
socket.end();
|
206010
|
+
resolve();
|
206011
|
+
});
|
206012
|
+
}));
|
206013
|
+
|
206014
|
+
try {
|
206015
|
+
await promise;
|
206016
|
+
return true;
|
206017
|
+
} catch (_) {
|
206018
|
+
return false;
|
206019
|
+
}
|
206020
|
+
};
|
206021
|
+
|
206022
|
+
|
206108
206023
|
/***/ }),
|
206109
206024
|
|
206110
206025
|
/***/ 25845:
|
@@ -211552,10 +211467,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
211552
211467
|
};
|
211553
211468
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
211554
211469
|
exports.upload = void 0;
|
211555
|
-
const fs_1 = __webpack_require__(35747);
|
211556
211470
|
const https_1 = __webpack_require__(57211);
|
211557
211471
|
const async_retry_1 = __importDefault(__webpack_require__(33691));
|
211558
211472
|
const async_sema_1 = __webpack_require__(30401);
|
211473
|
+
const fs_extra_1 = __importDefault(__webpack_require__(29394));
|
211559
211474
|
const utils_1 = __webpack_require__(52015);
|
211560
211475
|
const errors_1 = __webpack_require__(42054);
|
211561
211476
|
const deploy_1 = __webpack_require__(70824);
|
@@ -211615,7 +211530,14 @@ async function* upload(files, clientOptions, deploymentOptions) {
|
|
211615
211530
|
}
|
211616
211531
|
await semaphore.acquire();
|
211617
211532
|
const fPath = file.names[0];
|
211618
|
-
|
211533
|
+
let body = null;
|
211534
|
+
const stat = await fs_extra_1.default.lstat(fPath);
|
211535
|
+
if (stat.isSymbolicLink()) {
|
211536
|
+
body = await fs_extra_1.default.readlink(fPath);
|
211537
|
+
}
|
211538
|
+
else {
|
211539
|
+
body = fs_extra_1.default.createReadStream(fPath);
|
211540
|
+
}
|
211619
211541
|
const { data } = file;
|
211620
211542
|
let err;
|
211621
211543
|
let result;
|
@@ -211629,7 +211551,7 @@ async function* upload(files, clientOptions, deploymentOptions) {
|
|
211629
211551
|
'x-now-digest': sha,
|
211630
211552
|
'x-now-size': data.length,
|
211631
211553
|
},
|
211632
|
-
body
|
211554
|
+
body,
|
211633
211555
|
teamId,
|
211634
211556
|
apiUrl,
|
211635
211557
|
userAgent,
|
@@ -211659,8 +211581,10 @@ async function* upload(files, clientOptions, deploymentOptions) {
|
|
211659
211581
|
err = new Error(e);
|
211660
211582
|
}
|
211661
211583
|
finally {
|
211662
|
-
|
211663
|
-
|
211584
|
+
if (body && typeof body !== 'string') {
|
211585
|
+
body.close();
|
211586
|
+
body.destroy();
|
211587
|
+
}
|
211664
211588
|
}
|
211665
211589
|
semaphore.release();
|
211666
211590
|
if (err) {
|
@@ -211781,8 +211705,16 @@ async function hashes(files, map = new Map()) {
|
|
211781
211705
|
const semaphore = new async_sema_1.Sema(100);
|
211782
211706
|
await Promise.all(files.map(async (name) => {
|
211783
211707
|
await semaphore.acquire();
|
211784
|
-
const
|
211785
|
-
const
|
211708
|
+
const stat = await fs_extra_1.default.lstat(name);
|
211709
|
+
const mode = stat.mode;
|
211710
|
+
let data = null;
|
211711
|
+
if (stat.isSymbolicLink()) {
|
211712
|
+
const link = await fs_extra_1.default.readlink(name);
|
211713
|
+
data = Buffer.from(link, 'utf8');
|
211714
|
+
}
|
211715
|
+
else {
|
211716
|
+
data = await fs_extra_1.default.readFile(name);
|
211717
|
+
}
|
211786
211718
|
const h = hash(data);
|
211787
211719
|
const entry = map.get(h);
|
211788
211720
|
if (entry) {
|
@@ -211845,7 +211777,7 @@ const pkg_1 = __webpack_require__(51685);
|
|
211845
211777
|
const build_utils_1 = __webpack_require__(3131);
|
211846
211778
|
const async_sema_1 = __webpack_require__(30401);
|
211847
211779
|
const fs_extra_1 = __webpack_require__(29394);
|
211848
|
-
const
|
211780
|
+
const readdir_recursive_1 = __importDefault(__webpack_require__(37459));
|
211849
211781
|
const semaphore = new async_sema_1.Sema(10);
|
211850
211782
|
exports.API_FILES = '/v2/now/files';
|
211851
211783
|
const EVENTS_ARRAY = [
|
@@ -211920,7 +211852,7 @@ async function buildFileTree(path, { isDirectory, prebuilt, rootDirectory, }, de
|
|
211920
211852
|
}
|
211921
211853
|
return ignored;
|
211922
211854
|
};
|
211923
|
-
fileList = await
|
211855
|
+
fileList = await readdir_recursive_1.default(path, [ignores]);
|
211924
211856
|
debug(`Found ${fileList.length} files in the specified directory`);
|
211925
211857
|
}
|
211926
211858
|
else if (Array.isArray(path)) {
|
@@ -212103,6 +212035,114 @@ function generateQueryString(clientOptions) {
|
|
212103
212035
|
exports.generateQueryString = generateQueryString;
|
212104
212036
|
|
212105
212037
|
|
212038
|
+
/***/ }),
|
212039
|
+
|
212040
|
+
/***/ 37459:
|
212041
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
212042
|
+
|
212043
|
+
"use strict";
|
212044
|
+
|
212045
|
+
/*
|
212046
|
+
The MIT License (MIT)
|
212047
|
+
|
212048
|
+
Copyright (c) 2014 Jamison Dance
|
212049
|
+
|
212050
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
212051
|
+
of this software and associated documentation files (the "Software"), to deal
|
212052
|
+
in the Software without restriction, including without limitation the rights
|
212053
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
212054
|
+
copies of the Software, and to permit persons to whom the Software is
|
212055
|
+
furnished to do so, subject to the following conditions:
|
212056
|
+
|
212057
|
+
The above copyright notice and this permission notice shall be included in
|
212058
|
+
all copies or substantial portions of the Software.
|
212059
|
+
|
212060
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
212061
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
212062
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
212063
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
212064
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
212065
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
212066
|
+
THE SOFTWARE.
|
212067
|
+
*/
|
212068
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
212069
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
212070
|
+
};
|
212071
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
212072
|
+
/*
|
212073
|
+
based on https://github.com/jergason/recursive-readdir
|
212074
|
+
primary changes:
|
212075
|
+
- use `lstat` instead of `stat` so that symlinks are not followed
|
212076
|
+
*/
|
212077
|
+
const fs_1 = __importDefault(__webpack_require__(35747));
|
212078
|
+
const path_1 = __importDefault(__webpack_require__(85622));
|
212079
|
+
const minimatch_1 = __importDefault(__webpack_require__(59130));
|
212080
|
+
function patternMatcher(pattern) {
|
212081
|
+
return function (path, stats) {
|
212082
|
+
const minimatcher = new minimatch_1.default.Minimatch(pattern, { matchBase: true });
|
212083
|
+
return (!minimatcher.negate || stats.isFile()) && minimatcher.match(path);
|
212084
|
+
};
|
212085
|
+
}
|
212086
|
+
function toMatcherFunction(ignoreEntry) {
|
212087
|
+
if (typeof ignoreEntry === 'function') {
|
212088
|
+
return ignoreEntry;
|
212089
|
+
}
|
212090
|
+
else {
|
212091
|
+
return patternMatcher(ignoreEntry);
|
212092
|
+
}
|
212093
|
+
}
|
212094
|
+
function readdir(path, ignores) {
|
212095
|
+
ignores = ignores.map(toMatcherFunction);
|
212096
|
+
let list = [];
|
212097
|
+
return new Promise(function (resolve, reject) {
|
212098
|
+
fs_1.default.readdir(path, function (err, files) {
|
212099
|
+
if (err) {
|
212100
|
+
return reject(err);
|
212101
|
+
}
|
212102
|
+
let pending = files.length;
|
212103
|
+
if (!pending) {
|
212104
|
+
return resolve(list);
|
212105
|
+
}
|
212106
|
+
files.forEach(function (file) {
|
212107
|
+
const filePath = path_1.default.join(path, file);
|
212108
|
+
fs_1.default.lstat(filePath, function (_err, stats) {
|
212109
|
+
if (_err) {
|
212110
|
+
return reject(_err);
|
212111
|
+
}
|
212112
|
+
const matches = ignores.some(matcher => matcher(filePath, stats));
|
212113
|
+
if (matches) {
|
212114
|
+
pending -= 1;
|
212115
|
+
if (!pending) {
|
212116
|
+
return resolve(list);
|
212117
|
+
}
|
212118
|
+
return null;
|
212119
|
+
}
|
212120
|
+
if (stats.isDirectory()) {
|
212121
|
+
readdir(filePath, ignores)
|
212122
|
+
.then(function (res) {
|
212123
|
+
list = list.concat(res);
|
212124
|
+
pending -= 1;
|
212125
|
+
if (!pending) {
|
212126
|
+
return resolve(list);
|
212127
|
+
}
|
212128
|
+
})
|
212129
|
+
.catch(reject);
|
212130
|
+
}
|
212131
|
+
else {
|
212132
|
+
list.push(filePath);
|
212133
|
+
pending -= 1;
|
212134
|
+
if (!pending) {
|
212135
|
+
return resolve(list);
|
212136
|
+
}
|
212137
|
+
}
|
212138
|
+
});
|
212139
|
+
});
|
212140
|
+
});
|
212141
|
+
});
|
212142
|
+
}
|
212143
|
+
exports.default = readdir;
|
212144
|
+
|
212145
|
+
|
212106
212146
|
/***/ }),
|
212107
212147
|
|
212108
212148
|
/***/ 57471:
|
@@ -212389,6 +212429,216 @@ function RateLimit(rps, { timeUnit = 1000, uniformDistribution = false } = {}) {
|
|
212389
212429
|
exports.RateLimit = RateLimit;
|
212390
212430
|
|
212391
212431
|
|
212432
|
+
/***/ }),
|
212433
|
+
|
212434
|
+
/***/ 53358:
|
212435
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
212436
|
+
|
212437
|
+
var balanced = __webpack_require__(23353);
|
212438
|
+
|
212439
|
+
module.exports = expandTop;
|
212440
|
+
|
212441
|
+
var escSlash = '\0SLASH'+Math.random()+'\0';
|
212442
|
+
var escOpen = '\0OPEN'+Math.random()+'\0';
|
212443
|
+
var escClose = '\0CLOSE'+Math.random()+'\0';
|
212444
|
+
var escComma = '\0COMMA'+Math.random()+'\0';
|
212445
|
+
var escPeriod = '\0PERIOD'+Math.random()+'\0';
|
212446
|
+
|
212447
|
+
function numeric(str) {
|
212448
|
+
return parseInt(str, 10) == str
|
212449
|
+
? parseInt(str, 10)
|
212450
|
+
: str.charCodeAt(0);
|
212451
|
+
}
|
212452
|
+
|
212453
|
+
function escapeBraces(str) {
|
212454
|
+
return str.split('\\\\').join(escSlash)
|
212455
|
+
.split('\\{').join(escOpen)
|
212456
|
+
.split('\\}').join(escClose)
|
212457
|
+
.split('\\,').join(escComma)
|
212458
|
+
.split('\\.').join(escPeriod);
|
212459
|
+
}
|
212460
|
+
|
212461
|
+
function unescapeBraces(str) {
|
212462
|
+
return str.split(escSlash).join('\\')
|
212463
|
+
.split(escOpen).join('{')
|
212464
|
+
.split(escClose).join('}')
|
212465
|
+
.split(escComma).join(',')
|
212466
|
+
.split(escPeriod).join('.');
|
212467
|
+
}
|
212468
|
+
|
212469
|
+
|
212470
|
+
// Basically just str.split(","), but handling cases
|
212471
|
+
// where we have nested braced sections, which should be
|
212472
|
+
// treated as individual members, like {a,{b,c},d}
|
212473
|
+
function parseCommaParts(str) {
|
212474
|
+
if (!str)
|
212475
|
+
return [''];
|
212476
|
+
|
212477
|
+
var parts = [];
|
212478
|
+
var m = balanced('{', '}', str);
|
212479
|
+
|
212480
|
+
if (!m)
|
212481
|
+
return str.split(',');
|
212482
|
+
|
212483
|
+
var pre = m.pre;
|
212484
|
+
var body = m.body;
|
212485
|
+
var post = m.post;
|
212486
|
+
var p = pre.split(',');
|
212487
|
+
|
212488
|
+
p[p.length-1] += '{' + body + '}';
|
212489
|
+
var postParts = parseCommaParts(post);
|
212490
|
+
if (post.length) {
|
212491
|
+
p[p.length-1] += postParts.shift();
|
212492
|
+
p.push.apply(p, postParts);
|
212493
|
+
}
|
212494
|
+
|
212495
|
+
parts.push.apply(parts, p);
|
212496
|
+
|
212497
|
+
return parts;
|
212498
|
+
}
|
212499
|
+
|
212500
|
+
function expandTop(str) {
|
212501
|
+
if (!str)
|
212502
|
+
return [];
|
212503
|
+
|
212504
|
+
// I don't know why Bash 4.3 does this, but it does.
|
212505
|
+
// Anything starting with {} will have the first two bytes preserved
|
212506
|
+
// but *only* at the top level, so {},a}b will not expand to anything,
|
212507
|
+
// but a{},b}c will be expanded to [a}c,abc].
|
212508
|
+
// One could argue that this is a bug in Bash, but since the goal of
|
212509
|
+
// this module is to match Bash's rules, we escape a leading {}
|
212510
|
+
if (str.substr(0, 2) === '{}') {
|
212511
|
+
str = '\\{\\}' + str.substr(2);
|
212512
|
+
}
|
212513
|
+
|
212514
|
+
return expand(escapeBraces(str), true).map(unescapeBraces);
|
212515
|
+
}
|
212516
|
+
|
212517
|
+
function embrace(str) {
|
212518
|
+
return '{' + str + '}';
|
212519
|
+
}
|
212520
|
+
function isPadded(el) {
|
212521
|
+
return /^-?0\d/.test(el);
|
212522
|
+
}
|
212523
|
+
|
212524
|
+
function lte(i, y) {
|
212525
|
+
return i <= y;
|
212526
|
+
}
|
212527
|
+
function gte(i, y) {
|
212528
|
+
return i >= y;
|
212529
|
+
}
|
212530
|
+
|
212531
|
+
function expand(str, isTop) {
|
212532
|
+
var expansions = [];
|
212533
|
+
|
212534
|
+
var m = balanced('{', '}', str);
|
212535
|
+
if (!m) return [str];
|
212536
|
+
|
212537
|
+
// no need to expand pre, since it is guaranteed to be free of brace-sets
|
212538
|
+
var pre = m.pre;
|
212539
|
+
var post = m.post.length
|
212540
|
+
? expand(m.post, false)
|
212541
|
+
: [''];
|
212542
|
+
|
212543
|
+
if (/\$$/.test(m.pre)) {
|
212544
|
+
for (var k = 0; k < post.length; k++) {
|
212545
|
+
var expansion = pre+ '{' + m.body + '}' + post[k];
|
212546
|
+
expansions.push(expansion);
|
212547
|
+
}
|
212548
|
+
} else {
|
212549
|
+
var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
212550
|
+
var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
212551
|
+
var isSequence = isNumericSequence || isAlphaSequence;
|
212552
|
+
var isOptions = m.body.indexOf(',') >= 0;
|
212553
|
+
if (!isSequence && !isOptions) {
|
212554
|
+
// {a},b}
|
212555
|
+
if (m.post.match(/,.*\}/)) {
|
212556
|
+
str = m.pre + '{' + m.body + escClose + m.post;
|
212557
|
+
return expand(str);
|
212558
|
+
}
|
212559
|
+
return [str];
|
212560
|
+
}
|
212561
|
+
|
212562
|
+
var n;
|
212563
|
+
if (isSequence) {
|
212564
|
+
n = m.body.split(/\.\./);
|
212565
|
+
} else {
|
212566
|
+
n = parseCommaParts(m.body);
|
212567
|
+
if (n.length === 1) {
|
212568
|
+
// x{{a,b}}y ==> x{a}y x{b}y
|
212569
|
+
n = expand(n[0], false).map(embrace);
|
212570
|
+
if (n.length === 1) {
|
212571
|
+
return post.map(function(p) {
|
212572
|
+
return m.pre + n[0] + p;
|
212573
|
+
});
|
212574
|
+
}
|
212575
|
+
}
|
212576
|
+
}
|
212577
|
+
|
212578
|
+
// at this point, n is the parts, and we know it's not a comma set
|
212579
|
+
// with a single entry.
|
212580
|
+
var N;
|
212581
|
+
|
212582
|
+
if (isSequence) {
|
212583
|
+
var x = numeric(n[0]);
|
212584
|
+
var y = numeric(n[1]);
|
212585
|
+
var width = Math.max(n[0].length, n[1].length)
|
212586
|
+
var incr = n.length == 3
|
212587
|
+
? Math.abs(numeric(n[2]))
|
212588
|
+
: 1;
|
212589
|
+
var test = lte;
|
212590
|
+
var reverse = y < x;
|
212591
|
+
if (reverse) {
|
212592
|
+
incr *= -1;
|
212593
|
+
test = gte;
|
212594
|
+
}
|
212595
|
+
var pad = n.some(isPadded);
|
212596
|
+
|
212597
|
+
N = [];
|
212598
|
+
|
212599
|
+
for (var i = x; test(i, y); i += incr) {
|
212600
|
+
var c;
|
212601
|
+
if (isAlphaSequence) {
|
212602
|
+
c = String.fromCharCode(i);
|
212603
|
+
if (c === '\\')
|
212604
|
+
c = '';
|
212605
|
+
} else {
|
212606
|
+
c = String(i);
|
212607
|
+
if (pad) {
|
212608
|
+
var need = width - c.length;
|
212609
|
+
if (need > 0) {
|
212610
|
+
var z = new Array(need + 1).join('0');
|
212611
|
+
if (i < 0)
|
212612
|
+
c = '-' + z + c.slice(1);
|
212613
|
+
else
|
212614
|
+
c = z + c;
|
212615
|
+
}
|
212616
|
+
}
|
212617
|
+
}
|
212618
|
+
N.push(c);
|
212619
|
+
}
|
212620
|
+
} else {
|
212621
|
+
N = [];
|
212622
|
+
|
212623
|
+
for (var j = 0; j < n.length; j++) {
|
212624
|
+
N.push.apply(N, expand(n[j], false));
|
212625
|
+
}
|
212626
|
+
}
|
212627
|
+
|
212628
|
+
for (var j = 0; j < N.length; j++) {
|
212629
|
+
for (var k = 0; k < post.length; k++) {
|
212630
|
+
var expansion = pre + N[j] + post[k];
|
212631
|
+
if (!isTop || isSequence || expansion)
|
212632
|
+
expansions.push(expansion);
|
212633
|
+
}
|
212634
|
+
}
|
212635
|
+
}
|
212636
|
+
|
212637
|
+
return expansions;
|
212638
|
+
}
|
212639
|
+
|
212640
|
+
|
212641
|
+
|
212392
212642
|
/***/ }),
|
212393
212643
|
|
212394
212644
|
/***/ 47555:
|
@@ -215357,6 +215607,925 @@ module.exports = (flag, argv = process.argv) => {
|
|
215357
215607
|
};
|
215358
215608
|
|
215359
215609
|
|
215610
|
+
/***/ }),
|
215611
|
+
|
215612
|
+
/***/ 28459:
|
215613
|
+
/***/ ((module) => {
|
215614
|
+
|
215615
|
+
const isWindows = typeof process === 'object' &&
|
215616
|
+
process &&
|
215617
|
+
process.platform === 'win32'
|
215618
|
+
module.exports = isWindows ? { sep: '\\' } : { sep: '/' }
|
215619
|
+
|
215620
|
+
|
215621
|
+
/***/ }),
|
215622
|
+
|
215623
|
+
/***/ 59130:
|
215624
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
215625
|
+
|
215626
|
+
const minimatch = module.exports = (p, pattern, options = {}) => {
|
215627
|
+
assertValidPattern(pattern)
|
215628
|
+
|
215629
|
+
// shortcut: comments match nothing.
|
215630
|
+
if (!options.nocomment && pattern.charAt(0) === '#') {
|
215631
|
+
return false
|
215632
|
+
}
|
215633
|
+
|
215634
|
+
return new Minimatch(pattern, options).match(p)
|
215635
|
+
}
|
215636
|
+
|
215637
|
+
module.exports = minimatch
|
215638
|
+
|
215639
|
+
const path = __webpack_require__(28459)
|
215640
|
+
minimatch.sep = path.sep
|
215641
|
+
|
215642
|
+
const GLOBSTAR = Symbol('globstar **')
|
215643
|
+
minimatch.GLOBSTAR = GLOBSTAR
|
215644
|
+
const expand = __webpack_require__(53358)
|
215645
|
+
|
215646
|
+
const plTypes = {
|
215647
|
+
'!': { open: '(?:(?!(?:', close: '))[^/]*?)'},
|
215648
|
+
'?': { open: '(?:', close: ')?' },
|
215649
|
+
'+': { open: '(?:', close: ')+' },
|
215650
|
+
'*': { open: '(?:', close: ')*' },
|
215651
|
+
'@': { open: '(?:', close: ')' }
|
215652
|
+
}
|
215653
|
+
|
215654
|
+
// any single thing other than /
|
215655
|
+
// don't need to escape / when using new RegExp()
|
215656
|
+
const qmark = '[^/]'
|
215657
|
+
|
215658
|
+
// * => any number of characters
|
215659
|
+
const star = qmark + '*?'
|
215660
|
+
|
215661
|
+
// ** when dots are allowed. Anything goes, except .. and .
|
215662
|
+
// not (^ or / followed by one or two dots followed by $ or /),
|
215663
|
+
// followed by anything, any number of times.
|
215664
|
+
const twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?'
|
215665
|
+
|
215666
|
+
// not a ^ or / followed by a dot,
|
215667
|
+
// followed by anything, any number of times.
|
215668
|
+
const twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?'
|
215669
|
+
|
215670
|
+
// "abc" -> { a:true, b:true, c:true }
|
215671
|
+
const charSet = s => s.split('').reduce((set, c) => {
|
215672
|
+
set[c] = true
|
215673
|
+
return set
|
215674
|
+
}, {})
|
215675
|
+
|
215676
|
+
// characters that need to be escaped in RegExp.
|
215677
|
+
const reSpecials = charSet('().*{}+?[]^$\\!')
|
215678
|
+
|
215679
|
+
// characters that indicate we have to add the pattern start
|
215680
|
+
const addPatternStartSet = charSet('[.(')
|
215681
|
+
|
215682
|
+
// normalizes slashes.
|
215683
|
+
const slashSplit = /\/+/
|
215684
|
+
|
215685
|
+
minimatch.filter = (pattern, options = {}) =>
|
215686
|
+
(p, i, list) => minimatch(p, pattern, options)
|
215687
|
+
|
215688
|
+
const ext = (a, b = {}) => {
|
215689
|
+
const t = {}
|
215690
|
+
Object.keys(a).forEach(k => t[k] = a[k])
|
215691
|
+
Object.keys(b).forEach(k => t[k] = b[k])
|
215692
|
+
return t
|
215693
|
+
}
|
215694
|
+
|
215695
|
+
minimatch.defaults = def => {
|
215696
|
+
if (!def || typeof def !== 'object' || !Object.keys(def).length) {
|
215697
|
+
return minimatch
|
215698
|
+
}
|
215699
|
+
|
215700
|
+
const orig = minimatch
|
215701
|
+
|
215702
|
+
const m = (p, pattern, options) => orig(p, pattern, ext(def, options))
|
215703
|
+
m.Minimatch = class Minimatch extends orig.Minimatch {
|
215704
|
+
constructor (pattern, options) {
|
215705
|
+
super(pattern, ext(def, options))
|
215706
|
+
}
|
215707
|
+
}
|
215708
|
+
m.Minimatch.defaults = options => orig.defaults(ext(def, options)).Minimatch
|
215709
|
+
m.filter = (pattern, options) => orig.filter(pattern, ext(def, options))
|
215710
|
+
m.defaults = options => orig.defaults(ext(def, options))
|
215711
|
+
m.makeRe = (pattern, options) => orig.makeRe(pattern, ext(def, options))
|
215712
|
+
m.braceExpand = (pattern, options) => orig.braceExpand(pattern, ext(def, options))
|
215713
|
+
m.match = (list, pattern, options) => orig.match(list, pattern, ext(def, options))
|
215714
|
+
|
215715
|
+
return m
|
215716
|
+
}
|
215717
|
+
|
215718
|
+
|
215719
|
+
|
215720
|
+
|
215721
|
+
|
215722
|
+
// Brace expansion:
|
215723
|
+
// a{b,c}d -> abd acd
|
215724
|
+
// a{b,}c -> abc ac
|
215725
|
+
// a{0..3}d -> a0d a1d a2d a3d
|
215726
|
+
// a{b,c{d,e}f}g -> abg acdfg acefg
|
215727
|
+
// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg
|
215728
|
+
//
|
215729
|
+
// Invalid sets are not expanded.
|
215730
|
+
// a{2..}b -> a{2..}b
|
215731
|
+
// a{b}c -> a{b}c
|
215732
|
+
minimatch.braceExpand = (pattern, options) => braceExpand(pattern, options)
|
215733
|
+
|
215734
|
+
const braceExpand = (pattern, options = {}) => {
|
215735
|
+
assertValidPattern(pattern)
|
215736
|
+
|
215737
|
+
// Thanks to Yeting Li <https://github.com/yetingli> for
|
215738
|
+
// improving this regexp to avoid a ReDOS vulnerability.
|
215739
|
+
if (options.nobrace || !/\{(?:(?!\{).)*\}/.test(pattern)) {
|
215740
|
+
// shortcut. no need to expand.
|
215741
|
+
return [pattern]
|
215742
|
+
}
|
215743
|
+
|
215744
|
+
return expand(pattern)
|
215745
|
+
}
|
215746
|
+
|
215747
|
+
const MAX_PATTERN_LENGTH = 1024 * 64
|
215748
|
+
const assertValidPattern = pattern => {
|
215749
|
+
if (typeof pattern !== 'string') {
|
215750
|
+
throw new TypeError('invalid pattern')
|
215751
|
+
}
|
215752
|
+
|
215753
|
+
if (pattern.length > MAX_PATTERN_LENGTH) {
|
215754
|
+
throw new TypeError('pattern is too long')
|
215755
|
+
}
|
215756
|
+
}
|
215757
|
+
|
215758
|
+
// parse a component of the expanded set.
|
215759
|
+
// At this point, no pattern may contain "/" in it
|
215760
|
+
// so we're going to return a 2d array, where each entry is the full
|
215761
|
+
// pattern, split on '/', and then turned into a regular expression.
|
215762
|
+
// A regexp is made at the end which joins each array with an
|
215763
|
+
// escaped /, and another full one which joins each regexp with |.
|
215764
|
+
//
|
215765
|
+
// Following the lead of Bash 4.1, note that "**" only has special meaning
|
215766
|
+
// when it is the *only* thing in a path portion. Otherwise, any series
|
215767
|
+
// of * is equivalent to a single *. Globstar behavior is enabled by
|
215768
|
+
// default, and can be disabled by setting options.noglobstar.
|
215769
|
+
const SUBPARSE = Symbol('subparse')
|
215770
|
+
|
215771
|
+
minimatch.makeRe = (pattern, options) =>
|
215772
|
+
new Minimatch(pattern, options || {}).makeRe()
|
215773
|
+
|
215774
|
+
minimatch.match = (list, pattern, options = {}) => {
|
215775
|
+
const mm = new Minimatch(pattern, options)
|
215776
|
+
list = list.filter(f => mm.match(f))
|
215777
|
+
if (mm.options.nonull && !list.length) {
|
215778
|
+
list.push(pattern)
|
215779
|
+
}
|
215780
|
+
return list
|
215781
|
+
}
|
215782
|
+
|
215783
|
+
// replace stuff like \* with *
|
215784
|
+
const globUnescape = s => s.replace(/\\(.)/g, '$1')
|
215785
|
+
const regExpEscape = s => s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&')
|
215786
|
+
|
215787
|
+
class Minimatch {
|
215788
|
+
constructor (pattern, options) {
|
215789
|
+
assertValidPattern(pattern)
|
215790
|
+
|
215791
|
+
if (!options) options = {}
|
215792
|
+
|
215793
|
+
this.options = options
|
215794
|
+
this.set = []
|
215795
|
+
this.pattern = pattern
|
215796
|
+
this.regexp = null
|
215797
|
+
this.negate = false
|
215798
|
+
this.comment = false
|
215799
|
+
this.empty = false
|
215800
|
+
this.partial = !!options.partial
|
215801
|
+
|
215802
|
+
// make the set of regexps etc.
|
215803
|
+
this.make()
|
215804
|
+
}
|
215805
|
+
|
215806
|
+
debug () {}
|
215807
|
+
|
215808
|
+
make () {
|
215809
|
+
const pattern = this.pattern
|
215810
|
+
const options = this.options
|
215811
|
+
|
215812
|
+
// empty patterns and comments match nothing.
|
215813
|
+
if (!options.nocomment && pattern.charAt(0) === '#') {
|
215814
|
+
this.comment = true
|
215815
|
+
return
|
215816
|
+
}
|
215817
|
+
if (!pattern) {
|
215818
|
+
this.empty = true
|
215819
|
+
return
|
215820
|
+
}
|
215821
|
+
|
215822
|
+
// step 1: figure out negation, etc.
|
215823
|
+
this.parseNegate()
|
215824
|
+
|
215825
|
+
// step 2: expand braces
|
215826
|
+
let set = this.globSet = this.braceExpand()
|
215827
|
+
|
215828
|
+
if (options.debug) this.debug = (...args) => console.error(...args)
|
215829
|
+
|
215830
|
+
this.debug(this.pattern, set)
|
215831
|
+
|
215832
|
+
// step 3: now we have a set, so turn each one into a series of path-portion
|
215833
|
+
// matching patterns.
|
215834
|
+
// These will be regexps, except in the case of "**", which is
|
215835
|
+
// set to the GLOBSTAR object for globstar behavior,
|
215836
|
+
// and will not contain any / characters
|
215837
|
+
set = this.globParts = set.map(s => s.split(slashSplit))
|
215838
|
+
|
215839
|
+
this.debug(this.pattern, set)
|
215840
|
+
|
215841
|
+
// glob --> regexps
|
215842
|
+
set = set.map((s, si, set) => s.map(this.parse, this))
|
215843
|
+
|
215844
|
+
this.debug(this.pattern, set)
|
215845
|
+
|
215846
|
+
// filter out everything that didn't compile properly.
|
215847
|
+
set = set.filter(s => s.indexOf(false) === -1)
|
215848
|
+
|
215849
|
+
this.debug(this.pattern, set)
|
215850
|
+
|
215851
|
+
this.set = set
|
215852
|
+
}
|
215853
|
+
|
215854
|
+
parseNegate () {
|
215855
|
+
if (this.options.nonegate) return
|
215856
|
+
|
215857
|
+
const pattern = this.pattern
|
215858
|
+
let negate = false
|
215859
|
+
let negateOffset = 0
|
215860
|
+
|
215861
|
+
for (let i = 0; i < pattern.length && pattern.charAt(i) === '!'; i++) {
|
215862
|
+
negate = !negate
|
215863
|
+
negateOffset++
|
215864
|
+
}
|
215865
|
+
|
215866
|
+
if (negateOffset) this.pattern = pattern.substr(negateOffset)
|
215867
|
+
this.negate = negate
|
215868
|
+
}
|
215869
|
+
|
215870
|
+
// set partial to true to test if, for example,
|
215871
|
+
// "/a/b" matches the start of "/*/b/*/d"
|
215872
|
+
// Partial means, if you run out of file before you run
|
215873
|
+
// out of pattern, then that's fine, as long as all
|
215874
|
+
// the parts match.
|
215875
|
+
matchOne (file, pattern, partial) {
|
215876
|
+
var options = this.options
|
215877
|
+
|
215878
|
+
this.debug('matchOne',
|
215879
|
+
{ 'this': this, file: file, pattern: pattern })
|
215880
|
+
|
215881
|
+
this.debug('matchOne', file.length, pattern.length)
|
215882
|
+
|
215883
|
+
for (var fi = 0,
|
215884
|
+
pi = 0,
|
215885
|
+
fl = file.length,
|
215886
|
+
pl = pattern.length
|
215887
|
+
; (fi < fl) && (pi < pl)
|
215888
|
+
; fi++, pi++) {
|
215889
|
+
this.debug('matchOne loop')
|
215890
|
+
var p = pattern[pi]
|
215891
|
+
var f = file[fi]
|
215892
|
+
|
215893
|
+
this.debug(pattern, p, f)
|
215894
|
+
|
215895
|
+
// should be impossible.
|
215896
|
+
// some invalid regexp stuff in the set.
|
215897
|
+
/* istanbul ignore if */
|
215898
|
+
if (p === false) return false
|
215899
|
+
|
215900
|
+
if (p === GLOBSTAR) {
|
215901
|
+
this.debug('GLOBSTAR', [pattern, p, f])
|
215902
|
+
|
215903
|
+
// "**"
|
215904
|
+
// a/**/b/**/c would match the following:
|
215905
|
+
// a/b/x/y/z/c
|
215906
|
+
// a/x/y/z/b/c
|
215907
|
+
// a/b/x/b/x/c
|
215908
|
+
// a/b/c
|
215909
|
+
// To do this, take the rest of the pattern after
|
215910
|
+
// the **, and see if it would match the file remainder.
|
215911
|
+
// If so, return success.
|
215912
|
+
// If not, the ** "swallows" a segment, and try again.
|
215913
|
+
// This is recursively awful.
|
215914
|
+
//
|
215915
|
+
// a/**/b/**/c matching a/b/x/y/z/c
|
215916
|
+
// - a matches a
|
215917
|
+
// - doublestar
|
215918
|
+
// - matchOne(b/x/y/z/c, b/**/c)
|
215919
|
+
// - b matches b
|
215920
|
+
// - doublestar
|
215921
|
+
// - matchOne(x/y/z/c, c) -> no
|
215922
|
+
// - matchOne(y/z/c, c) -> no
|
215923
|
+
// - matchOne(z/c, c) -> no
|
215924
|
+
// - matchOne(c, c) yes, hit
|
215925
|
+
var fr = fi
|
215926
|
+
var pr = pi + 1
|
215927
|
+
if (pr === pl) {
|
215928
|
+
this.debug('** at the end')
|
215929
|
+
// a ** at the end will just swallow the rest.
|
215930
|
+
// We have found a match.
|
215931
|
+
// however, it will not swallow /.x, unless
|
215932
|
+
// options.dot is set.
|
215933
|
+
// . and .. are *never* matched by **, for explosively
|
215934
|
+
// exponential reasons.
|
215935
|
+
for (; fi < fl; fi++) {
|
215936
|
+
if (file[fi] === '.' || file[fi] === '..' ||
|
215937
|
+
(!options.dot && file[fi].charAt(0) === '.')) return false
|
215938
|
+
}
|
215939
|
+
return true
|
215940
|
+
}
|
215941
|
+
|
215942
|
+
// ok, let's see if we can swallow whatever we can.
|
215943
|
+
while (fr < fl) {
|
215944
|
+
var swallowee = file[fr]
|
215945
|
+
|
215946
|
+
this.debug('\nglobstar while', file, fr, pattern, pr, swallowee)
|
215947
|
+
|
215948
|
+
// XXX remove this slice. Just pass the start index.
|
215949
|
+
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {
|
215950
|
+
this.debug('globstar found match!', fr, fl, swallowee)
|
215951
|
+
// found a match.
|
215952
|
+
return true
|
215953
|
+
} else {
|
215954
|
+
// can't swallow "." or ".." ever.
|
215955
|
+
// can only swallow ".foo" when explicitly asked.
|
215956
|
+
if (swallowee === '.' || swallowee === '..' ||
|
215957
|
+
(!options.dot && swallowee.charAt(0) === '.')) {
|
215958
|
+
this.debug('dot detected!', file, fr, pattern, pr)
|
215959
|
+
break
|
215960
|
+
}
|
215961
|
+
|
215962
|
+
// ** swallows a segment, and continue.
|
215963
|
+
this.debug('globstar swallow a segment, and continue')
|
215964
|
+
fr++
|
215965
|
+
}
|
215966
|
+
}
|
215967
|
+
|
215968
|
+
// no match was found.
|
215969
|
+
// However, in partial mode, we can't say this is necessarily over.
|
215970
|
+
// If there's more *pattern* left, then
|
215971
|
+
/* istanbul ignore if */
|
215972
|
+
if (partial) {
|
215973
|
+
// ran out of file
|
215974
|
+
this.debug('\n>>> no match, partial?', file, fr, pattern, pr)
|
215975
|
+
if (fr === fl) return true
|
215976
|
+
}
|
215977
|
+
return false
|
215978
|
+
}
|
215979
|
+
|
215980
|
+
// something other than **
|
215981
|
+
// non-magic patterns just have to match exactly
|
215982
|
+
// patterns with magic have been turned into regexps.
|
215983
|
+
var hit
|
215984
|
+
if (typeof p === 'string') {
|
215985
|
+
hit = f === p
|
215986
|
+
this.debug('string match', p, f, hit)
|
215987
|
+
} else {
|
215988
|
+
hit = f.match(p)
|
215989
|
+
this.debug('pattern match', p, f, hit)
|
215990
|
+
}
|
215991
|
+
|
215992
|
+
if (!hit) return false
|
215993
|
+
}
|
215994
|
+
|
215995
|
+
// Note: ending in / means that we'll get a final ""
|
215996
|
+
// at the end of the pattern. This can only match a
|
215997
|
+
// corresponding "" at the end of the file.
|
215998
|
+
// If the file ends in /, then it can only match a
|
215999
|
+
// a pattern that ends in /, unless the pattern just
|
216000
|
+
// doesn't have any more for it. But, a/b/ should *not*
|
216001
|
+
// match "a/b/*", even though "" matches against the
|
216002
|
+
// [^/]*? pattern, except in partial mode, where it might
|
216003
|
+
// simply not be reached yet.
|
216004
|
+
// However, a/b/ should still satisfy a/*
|
216005
|
+
|
216006
|
+
// now either we fell off the end of the pattern, or we're done.
|
216007
|
+
if (fi === fl && pi === pl) {
|
216008
|
+
// ran out of pattern and filename at the same time.
|
216009
|
+
// an exact hit!
|
216010
|
+
return true
|
216011
|
+
} else if (fi === fl) {
|
216012
|
+
// ran out of file, but still had pattern left.
|
216013
|
+
// this is ok if we're doing the match as part of
|
216014
|
+
// a glob fs traversal.
|
216015
|
+
return partial
|
216016
|
+
} else /* istanbul ignore else */ if (pi === pl) {
|
216017
|
+
// ran out of pattern, still have file left.
|
216018
|
+
// this is only acceptable if we're on the very last
|
216019
|
+
// empty segment of a file with a trailing slash.
|
216020
|
+
// a/* should match a/b/
|
216021
|
+
return (fi === fl - 1) && (file[fi] === '')
|
216022
|
+
}
|
216023
|
+
|
216024
|
+
// should be unreachable.
|
216025
|
+
/* istanbul ignore next */
|
216026
|
+
throw new Error('wtf?')
|
216027
|
+
}
|
216028
|
+
|
216029
|
+
braceExpand () {
|
216030
|
+
return braceExpand(this.pattern, this.options)
|
216031
|
+
}
|
216032
|
+
|
216033
|
+
parse (pattern, isSub) {
|
216034
|
+
assertValidPattern(pattern)
|
216035
|
+
|
216036
|
+
const options = this.options
|
216037
|
+
|
216038
|
+
// shortcuts
|
216039
|
+
if (pattern === '**') {
|
216040
|
+
if (!options.noglobstar)
|
216041
|
+
return GLOBSTAR
|
216042
|
+
else
|
216043
|
+
pattern = '*'
|
216044
|
+
}
|
216045
|
+
if (pattern === '') return ''
|
216046
|
+
|
216047
|
+
let re = ''
|
216048
|
+
let hasMagic = !!options.nocase
|
216049
|
+
let escaping = false
|
216050
|
+
// ? => one single character
|
216051
|
+
const patternListStack = []
|
216052
|
+
const negativeLists = []
|
216053
|
+
let stateChar
|
216054
|
+
let inClass = false
|
216055
|
+
let reClassStart = -1
|
216056
|
+
let classStart = -1
|
216057
|
+
let cs
|
216058
|
+
let pl
|
216059
|
+
let sp
|
216060
|
+
// . and .. never match anything that doesn't start with .,
|
216061
|
+
// even when options.dot is set.
|
216062
|
+
const patternStart = pattern.charAt(0) === '.' ? '' // anything
|
216063
|
+
// not (start or / followed by . or .. followed by / or end)
|
216064
|
+
: options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))'
|
216065
|
+
: '(?!\\.)'
|
216066
|
+
|
216067
|
+
const clearStateChar = () => {
|
216068
|
+
if (stateChar) {
|
216069
|
+
// we had some state-tracking character
|
216070
|
+
// that wasn't consumed by this pass.
|
216071
|
+
switch (stateChar) {
|
216072
|
+
case '*':
|
216073
|
+
re += star
|
216074
|
+
hasMagic = true
|
216075
|
+
break
|
216076
|
+
case '?':
|
216077
|
+
re += qmark
|
216078
|
+
hasMagic = true
|
216079
|
+
break
|
216080
|
+
default:
|
216081
|
+
re += '\\' + stateChar
|
216082
|
+
break
|
216083
|
+
}
|
216084
|
+
this.debug('clearStateChar %j %j', stateChar, re)
|
216085
|
+
stateChar = false
|
216086
|
+
}
|
216087
|
+
}
|
216088
|
+
|
216089
|
+
for (let i = 0, c; (i < pattern.length) && (c = pattern.charAt(i)); i++) {
|
216090
|
+
this.debug('%s\t%s %s %j', pattern, i, re, c)
|
216091
|
+
|
216092
|
+
// skip over any that are escaped.
|
216093
|
+
if (escaping) {
|
216094
|
+
/* istanbul ignore next - completely not allowed, even escaped. */
|
216095
|
+
if (c === '/') {
|
216096
|
+
return false
|
216097
|
+
}
|
216098
|
+
|
216099
|
+
if (reSpecials[c]) {
|
216100
|
+
re += '\\'
|
216101
|
+
}
|
216102
|
+
re += c
|
216103
|
+
escaping = false
|
216104
|
+
continue
|
216105
|
+
}
|
216106
|
+
|
216107
|
+
switch (c) {
|
216108
|
+
/* istanbul ignore next */
|
216109
|
+
case '/': {
|
216110
|
+
// Should already be path-split by now.
|
216111
|
+
return false
|
216112
|
+
}
|
216113
|
+
|
216114
|
+
case '\\':
|
216115
|
+
clearStateChar()
|
216116
|
+
escaping = true
|
216117
|
+
continue
|
216118
|
+
|
216119
|
+
// the various stateChar values
|
216120
|
+
// for the "extglob" stuff.
|
216121
|
+
case '?':
|
216122
|
+
case '*':
|
216123
|
+
case '+':
|
216124
|
+
case '@':
|
216125
|
+
case '!':
|
216126
|
+
this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c)
|
216127
|
+
|
216128
|
+
// all of those are literals inside a class, except that
|
216129
|
+
// the glob [!a] means [^a] in regexp
|
216130
|
+
if (inClass) {
|
216131
|
+
this.debug(' in class')
|
216132
|
+
if (c === '!' && i === classStart + 1) c = '^'
|
216133
|
+
re += c
|
216134
|
+
continue
|
216135
|
+
}
|
216136
|
+
|
216137
|
+
// if we already have a stateChar, then it means
|
216138
|
+
// that there was something like ** or +? in there.
|
216139
|
+
// Handle the stateChar, then proceed with this one.
|
216140
|
+
this.debug('call clearStateChar %j', stateChar)
|
216141
|
+
clearStateChar()
|
216142
|
+
stateChar = c
|
216143
|
+
// if extglob is disabled, then +(asdf|foo) isn't a thing.
|
216144
|
+
// just clear the statechar *now*, rather than even diving into
|
216145
|
+
// the patternList stuff.
|
216146
|
+
if (options.noext) clearStateChar()
|
216147
|
+
continue
|
216148
|
+
|
216149
|
+
case '(':
|
216150
|
+
if (inClass) {
|
216151
|
+
re += '('
|
216152
|
+
continue
|
216153
|
+
}
|
216154
|
+
|
216155
|
+
if (!stateChar) {
|
216156
|
+
re += '\\('
|
216157
|
+
continue
|
216158
|
+
}
|
216159
|
+
|
216160
|
+
patternListStack.push({
|
216161
|
+
type: stateChar,
|
216162
|
+
start: i - 1,
|
216163
|
+
reStart: re.length,
|
216164
|
+
open: plTypes[stateChar].open,
|
216165
|
+
close: plTypes[stateChar].close
|
216166
|
+
})
|
216167
|
+
// negation is (?:(?!js)[^/]*)
|
216168
|
+
re += stateChar === '!' ? '(?:(?!(?:' : '(?:'
|
216169
|
+
this.debug('plType %j %j', stateChar, re)
|
216170
|
+
stateChar = false
|
216171
|
+
continue
|
216172
|
+
|
216173
|
+
case ')':
|
216174
|
+
if (inClass || !patternListStack.length) {
|
216175
|
+
re += '\\)'
|
216176
|
+
continue
|
216177
|
+
}
|
216178
|
+
|
216179
|
+
clearStateChar()
|
216180
|
+
hasMagic = true
|
216181
|
+
pl = patternListStack.pop()
|
216182
|
+
// negation is (?:(?!js)[^/]*)
|
216183
|
+
// The others are (?:<pattern>)<type>
|
216184
|
+
re += pl.close
|
216185
|
+
if (pl.type === '!') {
|
216186
|
+
negativeLists.push(pl)
|
216187
|
+
}
|
216188
|
+
pl.reEnd = re.length
|
216189
|
+
continue
|
216190
|
+
|
216191
|
+
case '|':
|
216192
|
+
if (inClass || !patternListStack.length) {
|
216193
|
+
re += '\\|'
|
216194
|
+
continue
|
216195
|
+
}
|
216196
|
+
|
216197
|
+
clearStateChar()
|
216198
|
+
re += '|'
|
216199
|
+
continue
|
216200
|
+
|
216201
|
+
// these are mostly the same in regexp and glob
|
216202
|
+
case '[':
|
216203
|
+
// swallow any state-tracking char before the [
|
216204
|
+
clearStateChar()
|
216205
|
+
|
216206
|
+
if (inClass) {
|
216207
|
+
re += '\\' + c
|
216208
|
+
continue
|
216209
|
+
}
|
216210
|
+
|
216211
|
+
inClass = true
|
216212
|
+
classStart = i
|
216213
|
+
reClassStart = re.length
|
216214
|
+
re += c
|
216215
|
+
continue
|
216216
|
+
|
216217
|
+
case ']':
|
216218
|
+
// a right bracket shall lose its special
|
216219
|
+
// meaning and represent itself in
|
216220
|
+
// a bracket expression if it occurs
|
216221
|
+
// first in the list. -- POSIX.2 2.8.3.2
|
216222
|
+
if (i === classStart + 1 || !inClass) {
|
216223
|
+
re += '\\' + c
|
216224
|
+
continue
|
216225
|
+
}
|
216226
|
+
|
216227
|
+
// handle the case where we left a class open.
|
216228
|
+
// "[z-a]" is valid, equivalent to "\[z-a\]"
|
216229
|
+
// split where the last [ was, make sure we don't have
|
216230
|
+
// an invalid re. if so, re-walk the contents of the
|
216231
|
+
// would-be class to re-translate any characters that
|
216232
|
+
// were passed through as-is
|
216233
|
+
// TODO: It would probably be faster to determine this
|
216234
|
+
// without a try/catch and a new RegExp, but it's tricky
|
216235
|
+
// to do safely. For now, this is safe and works.
|
216236
|
+
cs = pattern.substring(classStart + 1, i)
|
216237
|
+
try {
|
216238
|
+
RegExp('[' + cs + ']')
|
216239
|
+
} catch (er) {
|
216240
|
+
// not a valid class!
|
216241
|
+
sp = this.parse(cs, SUBPARSE)
|
216242
|
+
re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'
|
216243
|
+
hasMagic = hasMagic || sp[1]
|
216244
|
+
inClass = false
|
216245
|
+
continue
|
216246
|
+
}
|
216247
|
+
|
216248
|
+
// finish up the class.
|
216249
|
+
hasMagic = true
|
216250
|
+
inClass = false
|
216251
|
+
re += c
|
216252
|
+
continue
|
216253
|
+
|
216254
|
+
default:
|
216255
|
+
// swallow any state char that wasn't consumed
|
216256
|
+
clearStateChar()
|
216257
|
+
|
216258
|
+
if (reSpecials[c] && !(c === '^' && inClass)) {
|
216259
|
+
re += '\\'
|
216260
|
+
}
|
216261
|
+
|
216262
|
+
re += c
|
216263
|
+
break
|
216264
|
+
|
216265
|
+
} // switch
|
216266
|
+
} // for
|
216267
|
+
|
216268
|
+
// handle the case where we left a class open.
|
216269
|
+
// "[abc" is valid, equivalent to "\[abc"
|
216270
|
+
if (inClass) {
|
216271
|
+
// split where the last [ was, and escape it
|
216272
|
+
// this is a huge pita. We now have to re-walk
|
216273
|
+
// the contents of the would-be class to re-translate
|
216274
|
+
// any characters that were passed through as-is
|
216275
|
+
cs = pattern.substr(classStart + 1)
|
216276
|
+
sp = this.parse(cs, SUBPARSE)
|
216277
|
+
re = re.substr(0, reClassStart) + '\\[' + sp[0]
|
216278
|
+
hasMagic = hasMagic || sp[1]
|
216279
|
+
}
|
216280
|
+
|
216281
|
+
// handle the case where we had a +( thing at the *end*
|
216282
|
+
// of the pattern.
|
216283
|
+
// each pattern list stack adds 3 chars, and we need to go through
|
216284
|
+
// and escape any | chars that were passed through as-is for the regexp.
|
216285
|
+
// Go through and escape them, taking care not to double-escape any
|
216286
|
+
// | chars that were already escaped.
|
216287
|
+
for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {
|
216288
|
+
let tail
|
216289
|
+
tail = re.slice(pl.reStart + pl.open.length)
|
216290
|
+
this.debug('setting tail', re, pl)
|
216291
|
+
// maybe some even number of \, then maybe 1 \, followed by a |
|
216292
|
+
tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, (_, $1, $2) => {
|
216293
|
+
/* istanbul ignore else - should already be done */
|
216294
|
+
if (!$2) {
|
216295
|
+
// the | isn't already escaped, so escape it.
|
216296
|
+
$2 = '\\'
|
216297
|
+
}
|
216298
|
+
|
216299
|
+
// need to escape all those slashes *again*, without escaping the
|
216300
|
+
// one that we need for escaping the | character. As it works out,
|
216301
|
+
// escaping an even number of slashes can be done by simply repeating
|
216302
|
+
// it exactly after itself. That's why this trick works.
|
216303
|
+
//
|
216304
|
+
// I am sorry that you have to see this.
|
216305
|
+
return $1 + $1 + $2 + '|'
|
216306
|
+
})
|
216307
|
+
|
216308
|
+
this.debug('tail=%j\n %s', tail, tail, pl, re)
|
216309
|
+
const t = pl.type === '*' ? star
|
216310
|
+
: pl.type === '?' ? qmark
|
216311
|
+
: '\\' + pl.type
|
216312
|
+
|
216313
|
+
hasMagic = true
|
216314
|
+
re = re.slice(0, pl.reStart) + t + '\\(' + tail
|
216315
|
+
}
|
216316
|
+
|
216317
|
+
// handle trailing things that only matter at the very end.
|
216318
|
+
clearStateChar()
|
216319
|
+
if (escaping) {
|
216320
|
+
// trailing \\
|
216321
|
+
re += '\\\\'
|
216322
|
+
}
|
216323
|
+
|
216324
|
+
// only need to apply the nodot start if the re starts with
|
216325
|
+
// something that could conceivably capture a dot
|
216326
|
+
const addPatternStart = addPatternStartSet[re.charAt(0)]
|
216327
|
+
|
216328
|
+
// Hack to work around lack of negative lookbehind in JS
|
216329
|
+
// A pattern like: *.!(x).!(y|z) needs to ensure that a name
|
216330
|
+
// like 'a.xyz.yz' doesn't match. So, the first negative
|
216331
|
+
// lookahead, has to look ALL the way ahead, to the end of
|
216332
|
+
// the pattern.
|
216333
|
+
for (let n = negativeLists.length - 1; n > -1; n--) {
|
216334
|
+
const nl = negativeLists[n]
|
216335
|
+
|
216336
|
+
const nlBefore = re.slice(0, nl.reStart)
|
216337
|
+
const nlFirst = re.slice(nl.reStart, nl.reEnd - 8)
|
216338
|
+
let nlAfter = re.slice(nl.reEnd)
|
216339
|
+
const nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + nlAfter
|
216340
|
+
|
216341
|
+
// Handle nested stuff like *(*.js|!(*.json)), where open parens
|
216342
|
+
// mean that we should *not* include the ) in the bit that is considered
|
216343
|
+
// "after" the negated section.
|
216344
|
+
const openParensBefore = nlBefore.split('(').length - 1
|
216345
|
+
let cleanAfter = nlAfter
|
216346
|
+
for (let i = 0; i < openParensBefore; i++) {
|
216347
|
+
cleanAfter = cleanAfter.replace(/\)[+*?]?/, '')
|
216348
|
+
}
|
216349
|
+
nlAfter = cleanAfter
|
216350
|
+
|
216351
|
+
const dollar = nlAfter === '' && isSub !== SUBPARSE ? '$' : ''
|
216352
|
+
re = nlBefore + nlFirst + nlAfter + dollar + nlLast
|
216353
|
+
}
|
216354
|
+
|
216355
|
+
// if the re is not "" at this point, then we need to make sure
|
216356
|
+
// it doesn't match against an empty path part.
|
216357
|
+
// Otherwise a/* will match a/, which it should not.
|
216358
|
+
if (re !== '' && hasMagic) {
|
216359
|
+
re = '(?=.)' + re
|
216360
|
+
}
|
216361
|
+
|
216362
|
+
if (addPatternStart) {
|
216363
|
+
re = patternStart + re
|
216364
|
+
}
|
216365
|
+
|
216366
|
+
// parsing just a piece of a larger pattern.
|
216367
|
+
if (isSub === SUBPARSE) {
|
216368
|
+
return [re, hasMagic]
|
216369
|
+
}
|
216370
|
+
|
216371
|
+
// skip the regexp for non-magical patterns
|
216372
|
+
// unescape anything in it, though, so that it'll be
|
216373
|
+
// an exact match against a file etc.
|
216374
|
+
if (!hasMagic) {
|
216375
|
+
return globUnescape(pattern)
|
216376
|
+
}
|
216377
|
+
|
216378
|
+
const flags = options.nocase ? 'i' : ''
|
216379
|
+
try {
|
216380
|
+
return Object.assign(new RegExp('^' + re + '$', flags), {
|
216381
|
+
_glob: pattern,
|
216382
|
+
_src: re,
|
216383
|
+
})
|
216384
|
+
} catch (er) /* istanbul ignore next - should be impossible */ {
|
216385
|
+
// If it was an invalid regular expression, then it can't match
|
216386
|
+
// anything. This trick looks for a character after the end of
|
216387
|
+
// the string, which is of course impossible, except in multi-line
|
216388
|
+
// mode, but it's not a /m regex.
|
216389
|
+
return new RegExp('$.')
|
216390
|
+
}
|
216391
|
+
}
|
216392
|
+
|
216393
|
+
makeRe () {
|
216394
|
+
if (this.regexp || this.regexp === false) return this.regexp
|
216395
|
+
|
216396
|
+
// at this point, this.set is a 2d array of partial
|
216397
|
+
// pattern strings, or "**".
|
216398
|
+
//
|
216399
|
+
// It's better to use .match(). This function shouldn't
|
216400
|
+
// be used, really, but it's pretty convenient sometimes,
|
216401
|
+
// when you just want to work with a regex.
|
216402
|
+
const set = this.set
|
216403
|
+
|
216404
|
+
if (!set.length) {
|
216405
|
+
this.regexp = false
|
216406
|
+
return this.regexp
|
216407
|
+
}
|
216408
|
+
const options = this.options
|
216409
|
+
|
216410
|
+
const twoStar = options.noglobstar ? star
|
216411
|
+
: options.dot ? twoStarDot
|
216412
|
+
: twoStarNoDot
|
216413
|
+
const flags = options.nocase ? 'i' : ''
|
216414
|
+
|
216415
|
+
// coalesce globstars and regexpify non-globstar patterns
|
216416
|
+
// if it's the only item, then we just do one twoStar
|
216417
|
+
// if it's the first, and there are more, prepend (\/|twoStar\/)? to next
|
216418
|
+
// if it's the last, append (\/twoStar|) to previous
|
216419
|
+
// if it's in the middle, append (\/|\/twoStar\/) to previous
|
216420
|
+
// then filter out GLOBSTAR symbols
|
216421
|
+
let re = set.map(pattern => {
|
216422
|
+
pattern = pattern.map(p =>
|
216423
|
+
typeof p === 'string' ? regExpEscape(p)
|
216424
|
+
: p === GLOBSTAR ? GLOBSTAR
|
216425
|
+
: p._src
|
216426
|
+
).reduce((set, p) => {
|
216427
|
+
if (!(set[set.length - 1] === GLOBSTAR && p === GLOBSTAR)) {
|
216428
|
+
set.push(p)
|
216429
|
+
}
|
216430
|
+
return set
|
216431
|
+
}, [])
|
216432
|
+
pattern.forEach((p, i) => {
|
216433
|
+
if (p !== GLOBSTAR || pattern[i-1] === GLOBSTAR) {
|
216434
|
+
return
|
216435
|
+
}
|
216436
|
+
if (i === 0) {
|
216437
|
+
if (pattern.length > 1) {
|
216438
|
+
pattern[i+1] = '(?:\\\/|' + twoStar + '\\\/)?' + pattern[i+1]
|
216439
|
+
} else {
|
216440
|
+
pattern[i] = twoStar
|
216441
|
+
}
|
216442
|
+
} else if (i === pattern.length - 1) {
|
216443
|
+
pattern[i-1] += '(?:\\\/|' + twoStar + ')?'
|
216444
|
+
} else {
|
216445
|
+
pattern[i-1] += '(?:\\\/|\\\/' + twoStar + '\\\/)' + pattern[i+1]
|
216446
|
+
pattern[i+1] = GLOBSTAR
|
216447
|
+
}
|
216448
|
+
})
|
216449
|
+
return pattern.filter(p => p !== GLOBSTAR).join('/')
|
216450
|
+
}).join('|')
|
216451
|
+
|
216452
|
+
// must match entire pattern
|
216453
|
+
// ending in a * or ** will make it less strict.
|
216454
|
+
re = '^(?:' + re + ')$'
|
216455
|
+
|
216456
|
+
// can match anything, as long as it's not this.
|
216457
|
+
if (this.negate) re = '^(?!' + re + ').*$'
|
216458
|
+
|
216459
|
+
try {
|
216460
|
+
this.regexp = new RegExp(re, flags)
|
216461
|
+
} catch (ex) /* istanbul ignore next - should be impossible */ {
|
216462
|
+
this.regexp = false
|
216463
|
+
}
|
216464
|
+
return this.regexp
|
216465
|
+
}
|
216466
|
+
|
216467
|
+
match (f, partial = this.partial) {
|
216468
|
+
this.debug('match', f, this.pattern)
|
216469
|
+
// short-circuit in the case of busted things.
|
216470
|
+
// comments, etc.
|
216471
|
+
if (this.comment) return false
|
216472
|
+
if (this.empty) return f === ''
|
216473
|
+
|
216474
|
+
if (f === '/' && partial) return true
|
216475
|
+
|
216476
|
+
const options = this.options
|
216477
|
+
|
216478
|
+
// windows: need to use /, not \
|
216479
|
+
if (path.sep !== '/') {
|
216480
|
+
f = f.split(path.sep).join('/')
|
216481
|
+
}
|
216482
|
+
|
216483
|
+
// treat the test path as a set of pathparts.
|
216484
|
+
f = f.split(slashSplit)
|
216485
|
+
this.debug(this.pattern, 'split', f)
|
216486
|
+
|
216487
|
+
// just ONE of the pattern sets in this.set needs to match
|
216488
|
+
// in order for it to be valid. If negating, then just one
|
216489
|
+
// match means that we have failed.
|
216490
|
+
// Either way, return on the first hit.
|
216491
|
+
|
216492
|
+
const set = this.set
|
216493
|
+
this.debug(this.pattern, 'set', set)
|
216494
|
+
|
216495
|
+
// Find the basename of the path by looking for the last non-empty segment
|
216496
|
+
let filename
|
216497
|
+
for (let i = f.length - 1; i >= 0; i--) {
|
216498
|
+
filename = f[i]
|
216499
|
+
if (filename) break
|
216500
|
+
}
|
216501
|
+
|
216502
|
+
for (let i = 0; i < set.length; i++) {
|
216503
|
+
const pattern = set[i]
|
216504
|
+
let file = f
|
216505
|
+
if (options.matchBase && pattern.length === 1) {
|
216506
|
+
file = [filename]
|
216507
|
+
}
|
216508
|
+
const hit = this.matchOne(file, pattern, partial)
|
216509
|
+
if (hit) {
|
216510
|
+
if (options.flipNegate) return true
|
216511
|
+
return !this.negate
|
216512
|
+
}
|
216513
|
+
}
|
216514
|
+
|
216515
|
+
// didn't get any hits. this is success if it's a negative
|
216516
|
+
// pattern, failure otherwise.
|
216517
|
+
if (options.flipNegate) return false
|
216518
|
+
return this.negate
|
216519
|
+
}
|
216520
|
+
|
216521
|
+
static defaults (def) {
|
216522
|
+
return minimatch.defaults(def).Minimatch
|
216523
|
+
}
|
216524
|
+
}
|
216525
|
+
|
216526
|
+
minimatch.Minimatch = Minimatch
|
216527
|
+
|
216528
|
+
|
215360
216529
|
/***/ }),
|
215361
216530
|
|
215362
216531
|
/***/ 17879:
|
@@ -215577,6 +216746,7 @@ exports.frameworks = [
|
|
215577
216746
|
slug: 'nextjs',
|
215578
216747
|
demo: 'https://nextjs-template.vercel.app',
|
215579
216748
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/next.svg',
|
216749
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/nextjs.png',
|
215580
216750
|
tagline: 'Next.js makes you productive with React instantly — whether you want to build static or dynamic sites.',
|
215581
216751
|
description: 'A Next.js app and a Serverless Function API.',
|
215582
216752
|
website: 'https://nextjs.org',
|
@@ -216573,6 +217743,7 @@ exports.frameworks = [
|
|
216573
217743
|
slug: 'sveltekit',
|
216574
217744
|
demo: 'https://sveltekit-template.vercel.app',
|
216575
217745
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/svelte.svg',
|
217746
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/sveltekit.png',
|
216576
217747
|
tagline: 'SvelteKit is a framework for building web applications of all sizes.',
|
216577
217748
|
description: 'A SvelteKit app optimized Edge-first.',
|
216578
217749
|
website: 'https://kit.svelte.dev',
|
@@ -217082,6 +218253,7 @@ exports.frameworks = [
|
|
217082
218253
|
slug: 'nuxtjs',
|
217083
218254
|
demo: 'https://nuxtjs-template.vercel.app',
|
217084
218255
|
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/nuxt.svg',
|
218256
|
+
screenshot: 'https://assets.vercel.com/image/upload/v1647366075/front/import/nuxtjs.png',
|
217085
218257
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
217086
218258
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
217087
218259
|
website: 'https://nuxtjs.org',
|
@@ -233494,7 +234666,7 @@ const path_1 = __importStar(__webpack_require__(85622));
|
|
233494
234666
|
const once_1 = __importDefault(__webpack_require__(8478));
|
233495
234667
|
const directory_1 = __importDefault(__webpack_require__(52662));
|
233496
234668
|
const get_port_1 = __importDefault(__webpack_require__(24959));
|
233497
|
-
const is_port_reachable_1 = __importDefault(__webpack_require__(
|
234669
|
+
const is_port_reachable_1 = __importDefault(__webpack_require__(74133));
|
233498
234670
|
const fast_deep_equal_1 = __importDefault(__webpack_require__(27689));
|
233499
234671
|
const which_1 = __importDefault(__webpack_require__(36732));
|
233500
234672
|
const npm_package_arg_1 = __importDefault(__webpack_require__(79726));
|
@@ -243486,7 +244658,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
243486
244658
|
/***/ ((module) => {
|
243487
244659
|
|
243488
244660
|
"use strict";
|
243489
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.0.1-canary.
|
244661
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"24.0.1-canary.6\",\"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.14.1-canary.5\",\"@vercel/go\":\"1.3.1-canary.5\",\"@vercel/node\":\"1.13.1-canary.6\",\"@vercel/python\":\"2.2.1-canary.5\",\"@vercel/ruby\":\"1.3.1-canary.5\",\"update-notifier\":\"4.1.0\"},\"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/client\":\"10.3.1-canary.5\",\"@vercel/fetch-retry\":\"5.0.3\",\"@vercel/frameworks\":\"0.6.1-canary.4\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.5\",\"@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.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-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\":\"b3ccb5f3ef354da577eeff6ce63d8ee51cfb3e17\"}");
|
243490
244662
|
|
243491
244663
|
/***/ }),
|
243492
244664
|
|
@@ -243502,7 +244674,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
243502
244674
|
/***/ ((module) => {
|
243503
244675
|
|
243504
244676
|
"use strict";
|
243505
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.3.1-canary.
|
244677
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.3.1-canary.5\",\"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/minimatch\":\"3.0.5\",\"@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.14.1-canary.5\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"minimatch\":\"5.0.1\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"b3ccb5f3ef354da577eeff6ce63d8ee51cfb3e17\"}");
|
243506
244678
|
|
243507
244679
|
/***/ }),
|
243508
244680
|
|