From bc48d4dfffb03e96b1cb71e2ef7fc07148f8113b Mon Sep 17 00:00:00 2001 From: Julien Catania Date: Fri, 22 Sep 2023 20:55:15 +0200 Subject: [PATCH] fixing package script --- dist/index.js | 3063 ++++++++++++++++++++------------------------- dist/licenses.txt | 25 - package.json | 2 +- 3 files changed, 1383 insertions(+), 1707 deletions(-) diff --git a/dist/index.js b/dist/index.js index ccfea88..e9890b6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,20 +1,8 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 283: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - -/***/ 283: -/***/ ((module, __unused_webpack_exports, __nccwpck_require2_) => { - -/******/ (() => { // webpackBootstrap -/******/ var __webpack_modules__ = ({ - /***/ 7171: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -55,11 +43,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ArtifactProvider = void 0; -const core = __importStar(__nccwpck_require3_(2186)); -const github = __importStar(__nccwpck_require3_(5438)); -const adm_zip_1 = __importDefault(__nccwpck_require3_(6761)); -const picomatch_1 = __importDefault(__nccwpck_require3_(8569)); -const github_utils_1 = __nccwpck_require3_(3522); +const core = __importStar(__nccwpck_require__(2186)); +const github = __importStar(__nccwpck_require__(5438)); +const adm_zip_1 = __importDefault(__nccwpck_require__(6761)); +const picomatch_1 = __importDefault(__nccwpck_require__(8569)); +const github_utils_1 = __nccwpck_require__(3522); class ArtifactProvider { constructor(octokit, artifact, name, pattern, sha, runId, token) { this.octokit = octokit; @@ -155,7 +143,7 @@ exports.ArtifactProvider = ArtifactProvider; /***/ }), /***/ 9399: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -196,9 +184,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.LocalFileProvider = void 0; -const fs = __importStar(__nccwpck_require3_(7147)); -const fast_glob_1 = __importDefault(__nccwpck_require3_(3664)); -const git_1 = __nccwpck_require3_(9844); +const fs = __importStar(__nccwpck_require__(7147)); +const fast_glob_1 = __importDefault(__nccwpck_require__(3664)); +const git_1 = __nccwpck_require__(9844); class LocalFileProvider { constructor(name, pattern) { this.name = name; @@ -229,7 +217,7 @@ exports.LocalFileProvider = LocalFileProvider; /***/ }), /***/ 3109: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -266,20 +254,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -const core = __importStar(__nccwpck_require3_(2186)); -const github = __importStar(__nccwpck_require3_(5438)); -const artifact_provider_1 = __nccwpck_require3_(7171); -const local_file_provider_1 = __nccwpck_require3_(9399); -const get_annotations_1 = __nccwpck_require3_(5867); -const get_report_1 = __nccwpck_require3_(3737); -const dart_json_parser_1 = __nccwpck_require3_(4528); -const dotnet_trx_parser_1 = __nccwpck_require3_(2664); -const java_junit_parser_1 = __nccwpck_require3_(676); -const jest_junit_parser_1 = __nccwpck_require3_(1113); -const mocha_json_parser_1 = __nccwpck_require3_(6043); -const path_utils_1 = __nccwpck_require3_(4070); -const github_utils_1 = __nccwpck_require3_(3522); -const markdown_utils_1 = __nccwpck_require3_(6482); +const core = __importStar(__nccwpck_require__(2186)); +const github = __importStar(__nccwpck_require__(5438)); +const artifact_provider_1 = __nccwpck_require__(7171); +const local_file_provider_1 = __nccwpck_require__(9399); +const get_annotations_1 = __nccwpck_require__(5867); +const get_report_1 = __nccwpck_require__(3737); +const dart_json_parser_1 = __nccwpck_require__(4528); +const dotnet_trx_parser_1 = __nccwpck_require__(2664); +const java_junit_parser_1 = __nccwpck_require__(676); +const jest_junit_parser_1 = __nccwpck_require__(1113); +const mocha_json_parser_1 = __nccwpck_require__(6043); +const path_utils_1 = __nccwpck_require__(4070); +const github_utils_1 = __nccwpck_require__(3522); +const markdown_utils_1 = __nccwpck_require__(6482); function main() { return __awaiter(this, void 0, void 0, function* () { try { @@ -451,7 +439,7 @@ main(); /***/ }), /***/ 4528: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -466,9 +454,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DartJsonParser = void 0; -const path_utils_1 = __nccwpck_require3_(4070); -const dart_json_types_1 = __nccwpck_require3_(7887); -const test_results_1 = __nccwpck_require3_(2768); +const path_utils_1 = __nccwpck_require__(4070); +const dart_json_types_1 = __nccwpck_require__(7887); +const test_results_1 = __nccwpck_require__(2768); class TestRun { constructor(path, suites, success, time) { this.path = path; @@ -724,7 +712,7 @@ exports.isMessageEvent = isMessageEvent; /***/ }), /***/ 2664: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -739,10 +727,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DotnetTrxParser = void 0; -const xml2js_1 = __nccwpck_require3_(6189); -const path_utils_1 = __nccwpck_require3_(4070); -const parse_utils_1 = __nccwpck_require3_(7811); -const test_results_1 = __nccwpck_require3_(2768); +const xml2js_1 = __nccwpck_require__(6189); +const path_utils_1 = __nccwpck_require__(4070); +const parse_utils_1 = __nccwpck_require__(7811); +const test_results_1 = __nccwpck_require__(2768); class TestClass { constructor(name) { this.name = name; @@ -905,7 +893,7 @@ exports.DotnetTrxParser = DotnetTrxParser; /***/ }), /***/ 676: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -943,11 +931,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.JavaJunitParser = void 0; -const path = __importStar(__nccwpck_require3_(1017)); -const xml2js_1 = __nccwpck_require3_(6189); -const java_stack_trace_element_parser_1 = __nccwpck_require3_(5775); -const path_utils_1 = __nccwpck_require3_(4070); -const test_results_1 = __nccwpck_require3_(2768); +const path = __importStar(__nccwpck_require__(1017)); +const xml2js_1 = __nccwpck_require__(6189); +const java_stack_trace_element_parser_1 = __nccwpck_require__(5775); +const path_utils_1 = __nccwpck_require__(4070); +const test_results_1 = __nccwpck_require__(2768); class JavaJunitParser { constructor(options) { var _a; @@ -1175,7 +1163,7 @@ function parseClassLoaderAndModule(maybeClassLoaderAndModuleNameAndVersion) { /***/ }), /***/ 1113: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1190,10 +1178,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.JestJunitParser = void 0; -const xml2js_1 = __nccwpck_require3_(6189); -const node_utils_1 = __nccwpck_require3_(5824); -const path_utils_1 = __nccwpck_require3_(4070); -const test_results_1 = __nccwpck_require3_(2768); +const xml2js_1 = __nccwpck_require__(6189); +const node_utils_1 = __nccwpck_require__(5824); +const path_utils_1 = __nccwpck_require__(4070); +const test_results_1 = __nccwpck_require__(2768); class JestJunitParser { constructor(options) { this.options = options; @@ -1294,7 +1282,7 @@ exports.JestJunitParser = JestJunitParser; /***/ }), /***/ 6043: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1309,9 +1297,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MochaJsonParser = void 0; -const test_results_1 = __nccwpck_require3_(2768); -const node_utils_1 = __nccwpck_require3_(5824); -const path_utils_1 = __nccwpck_require3_(4070); +const test_results_1 = __nccwpck_require__(2768); +const node_utils_1 = __nccwpck_require__(5824); +const path_utils_1 = __nccwpck_require__(4070); class MochaJsonParser { constructor(options) { this.options = options; @@ -1407,14 +1395,14 @@ exports.MochaJsonParser = MochaJsonParser; /***/ }), /***/ 5867: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getAnnotations = void 0; -const markdown_utils_1 = __nccwpck_require3_(6482); -const parse_utils_1 = __nccwpck_require3_(7811); +const markdown_utils_1 = __nccwpck_require__(6482); +const parse_utils_1 = __nccwpck_require__(7811); function getAnnotations(results, maxCount) { var _a, _b, _c, _d; if (maxCount === 0) { @@ -1495,7 +1483,7 @@ function ident(text, prefix) { /***/ }), /***/ 3737: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1524,11 +1512,11 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getReport = void 0; -const core = __importStar(__nccwpck_require3_(2186)); -const markdown_utils_1 = __nccwpck_require3_(6482); -const node_utils_1 = __nccwpck_require3_(5824); -const parse_utils_1 = __nccwpck_require3_(7811); -const slugger_1 = __nccwpck_require3_(3328); +const core = __importStar(__nccwpck_require__(2186)); +const markdown_utils_1 = __nccwpck_require__(6482); +const node_utils_1 = __nccwpck_require__(5824); +const parse_utils_1 = __nccwpck_require__(7811); +const slugger_1 = __nccwpck_require__(3328); const MAX_REPORT_LENGTH = 65535; const defaultOptions = { listSuites: 'all', @@ -1746,13 +1734,13 @@ function getResultIcon(result) { /***/ }), /***/ 2768: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TestCaseResult = exports.TestGroupResult = exports.TestSuiteResult = exports.TestRunResult = void 0; -const node_utils_1 = __nccwpck_require3_(5824); +const node_utils_1 = __nccwpck_require__(5824); class TestRunResult { constructor(path, suites, totalTime) { this.path = path; @@ -1871,7 +1859,7 @@ exports.TestCaseResult = TestCaseResult; /***/ }), /***/ 9844: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1909,8 +1897,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.listFiles = void 0; -const core = __importStar(__nccwpck_require3_(2186)); -const exec_1 = __nccwpck_require3_(1514); +const core = __importStar(__nccwpck_require__(2186)); +const exec_1 = __nccwpck_require__(1514); function listFiles() { return __awaiter(this, void 0, void 0, function* () { core.startGroup('Listing all files tracked by git'); @@ -1937,7 +1925,7 @@ function fixStdOutNullTermination() { /***/ }), /***/ 3522: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -1978,12 +1966,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.listFiles = exports.downloadArtifact = exports.getCheckRunContext = void 0; -const fs_1 = __nccwpck_require3_(7147); -const core = __importStar(__nccwpck_require3_(2186)); -const github = __importStar(__nccwpck_require3_(5438)); -const stream = __importStar(__nccwpck_require3_(2781)); -const util_1 = __nccwpck_require3_(3837); -const got_1 = __importDefault(__nccwpck_require3_(3061)); +const fs_1 = __nccwpck_require__(7147); +const core = __importStar(__nccwpck_require__(2186)); +const github = __importStar(__nccwpck_require__(5438)); +const stream = __importStar(__nccwpck_require__(2781)); +const util_1 = __nccwpck_require__(3837); +const got_1 = __importDefault(__nccwpck_require__(3061)); const asyncStream = (0, util_1.promisify)(stream.pipeline); function getCheckRunContext() { if (github.context.eventName === 'workflow_run') { @@ -2146,13 +2134,13 @@ exports.formatTime = formatTime; /***/ }), /***/ 5824: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getExceptionSource = exports.DEFAULT_LOCALE = void 0; -const path_utils_1 = __nccwpck_require3_(4070); +const path_utils_1 = __nccwpck_require__(4070); exports.DEFAULT_LOCALE = 'en-US'; function getExceptionSource(stackTrace, trackedFiles, getRelativePath) { const lines = stackTrace.split(/\r?\n/); @@ -2287,7 +2275,7 @@ exports.slug = slug; /***/ }), /***/ 7351: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2312,8 +2300,8 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.issue = exports.issueCommand = void 0; -const os = __importStar(__nccwpck_require3_(2037)); -const utils_1 = __nccwpck_require3_(5278); +const os = __importStar(__nccwpck_require__(2037)); +const utils_1 = __nccwpck_require__(5278); /** * Commands * @@ -2386,7 +2374,7 @@ function escapeProperty(s) { /***/ }), /***/ 2186: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2420,12 +2408,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; -const command_1 = __nccwpck_require3_(7351); -const file_command_1 = __nccwpck_require3_(717); -const utils_1 = __nccwpck_require3_(5278); -const os = __importStar(__nccwpck_require3_(2037)); -const path = __importStar(__nccwpck_require3_(1017)); -const oidc_utils_1 = __nccwpck_require3_(8041); +const command_1 = __nccwpck_require__(7351); +const file_command_1 = __nccwpck_require__(717); +const utils_1 = __nccwpck_require__(5278); +const os = __importStar(__nccwpck_require__(2037)); +const path = __importStar(__nccwpck_require__(1017)); +const oidc_utils_1 = __nccwpck_require__(8041); /** * The code to exit an action */ @@ -2710,17 +2698,17 @@ exports.getIDToken = getIDToken; /** * Summary exports */ -var summary_1 = __nccwpck_require3_(1327); +var summary_1 = __nccwpck_require__(1327); Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); /** * @deprecated use core.summary */ -var summary_2 = __nccwpck_require3_(1327); +var summary_2 = __nccwpck_require__(1327); Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); /** * Path exports */ -var path_utils_1 = __nccwpck_require3_(2981); +var path_utils_1 = __nccwpck_require__(2981); Object.defineProperty(exports, "toPosixPath", ({ enumerable: true, get: function () { return path_utils_1.toPosixPath; } })); Object.defineProperty(exports, "toWin32Path", ({ enumerable: true, get: function () { return path_utils_1.toWin32Path; } })); Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: function () { return path_utils_1.toPlatformPath; } })); @@ -2729,7 +2717,7 @@ Object.defineProperty(exports, "toPlatformPath", ({ enumerable: true, get: funct /***/ }), /***/ 717: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2757,10 +2745,10 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.prepareKeyValueMessage = exports.issueFileCommand = void 0; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ -const fs = __importStar(__nccwpck_require3_(7147)); -const os = __importStar(__nccwpck_require3_(2037)); -const uuid_1 = __nccwpck_require3_(5840); -const utils_1 = __nccwpck_require3_(5278); +const fs = __importStar(__nccwpck_require__(7147)); +const os = __importStar(__nccwpck_require__(2037)); +const uuid_1 = __nccwpck_require__(5840); +const utils_1 = __nccwpck_require__(5278); function issueFileCommand(command, message) { const filePath = process.env[`GITHUB_${command}`]; if (!filePath) { @@ -2794,7 +2782,7 @@ exports.prepareKeyValueMessage = prepareKeyValueMessage; /***/ }), /***/ 8041: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2809,9 +2797,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OidcClient = void 0; -const http_client_1 = __nccwpck_require3_(6255); -const auth_1 = __nccwpck_require3_(5526); -const core_1 = __nccwpck_require3_(2186); +const http_client_1 = __nccwpck_require__(6255); +const auth_1 = __nccwpck_require__(5526); +const core_1 = __nccwpck_require__(2186); class OidcClient { static createHttpClient(allowRetry = true, maxRetry = 10) { const requestOptions = { @@ -2843,7 +2831,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { @@ -2878,7 +2866,7 @@ exports.OidcClient = OidcClient; /***/ }), /***/ 2981: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2903,7 +2891,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.toPlatformPath = exports.toWin32Path = exports.toPosixPath = void 0; -const path = __importStar(__nccwpck_require3_(1017)); +const path = __importStar(__nccwpck_require__(1017)); /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be * replaced with /. @@ -2943,7 +2931,7 @@ exports.toPlatformPath = toPlatformPath; /***/ }), /***/ 1327: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -2958,8 +2946,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; -const os_1 = __nccwpck_require3_(2037); -const fs_1 = __nccwpck_require3_(7147); +const os_1 = __nccwpck_require__(2037); +const fs_1 = __nccwpck_require__(7147); const { access, appendFile, writeFile } = fs_1.promises; exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; @@ -3280,7 +3268,7 @@ exports.toCommandProperties = toCommandProperties; /***/ }), /***/ 1514: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -3314,8 +3302,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getExecOutput = exports.exec = void 0; -const string_decoder_1 = __nccwpck_require3_(1576); -const tr = __importStar(__nccwpck_require3_(8159)); +const string_decoder_1 = __nccwpck_require__(1576); +const tr = __importStar(__nccwpck_require__(8159)); /** * Exec a command. * Output will be streamed to the live console. @@ -3390,7 +3378,7 @@ exports.getExecOutput = getExecOutput; /***/ }), /***/ 8159: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -3424,13 +3412,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.argStringToArray = exports.ToolRunner = void 0; -const os = __importStar(__nccwpck_require3_(2037)); -const events = __importStar(__nccwpck_require3_(2361)); -const child = __importStar(__nccwpck_require3_(2081)); -const path = __importStar(__nccwpck_require3_(1017)); -const io = __importStar(__nccwpck_require3_(7436)); -const ioUtil = __importStar(__nccwpck_require3_(1962)); -const timers_1 = __nccwpck_require3_(9512); +const os = __importStar(__nccwpck_require__(2037)); +const events = __importStar(__nccwpck_require__(2361)); +const child = __importStar(__nccwpck_require__(2081)); +const path = __importStar(__nccwpck_require__(1017)); +const io = __importStar(__nccwpck_require__(7436)); +const ioUtil = __importStar(__nccwpck_require__(1962)); +const timers_1 = __nccwpck_require__(9512); /* eslint-disable @typescript-eslint/unbound-method */ const IS_WINDOWS = process.platform === 'win32'; /* @@ -4015,14 +4003,14 @@ class ExecState extends events.EventEmitter { /***/ }), /***/ 4087: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Context = void 0; -const fs_1 = __nccwpck_require3_(7147); -const os_1 = __nccwpck_require3_(2037); +const fs_1 = __nccwpck_require__(7147); +const os_1 = __nccwpck_require__(2037); class Context { /** * Hydrate the context from the environment @@ -4076,7 +4064,7 @@ exports.Context = Context; /***/ }), /***/ 5438: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4101,8 +4089,8 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getOctokit = exports.context = void 0; -const Context = __importStar(__nccwpck_require3_(4087)); -const utils_1 = __nccwpck_require3_(3030); +const Context = __importStar(__nccwpck_require__(4087)); +const utils_1 = __nccwpck_require__(3030); exports.context = new Context.Context(); /** * Returns a hydrated octokit ready to use for GitHub Actions @@ -4110,8 +4098,9 @@ exports.context = new Context.Context(); * @param token the repo PAT or GITHUB_TOKEN * @param options other options to set */ -function getOctokit(token, options) { - return new utils_1.GitHub(utils_1.getOctokitOptions(token, options)); +function getOctokit(token, options, ...additionalPlugins) { + const GitHubWithPlugins = utils_1.GitHub.plugin(...additionalPlugins); + return new GitHubWithPlugins(utils_1.getOctokitOptions(token, options)); } exports.getOctokit = getOctokit; //# sourceMappingURL=github.js.map @@ -4119,7 +4108,7 @@ exports.getOctokit = getOctokit; /***/ }), /***/ 7914: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4144,7 +4133,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getApiBaseUrl = exports.getProxyAgent = exports.getAuthString = void 0; -const httpClient = __importStar(__nccwpck_require3_(6255)); +const httpClient = __importStar(__nccwpck_require__(6255)); function getAuthString(token, options) { if (!token && !options.auth) { throw new Error('Parameter token or opts.auth is required'); @@ -4169,7 +4158,7 @@ exports.getApiBaseUrl = getApiBaseUrl; /***/ }), /***/ 3030: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4193,22 +4182,22 @@ var __importStar = (this && this.__importStar) || function (mod) { return result; }; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getOctokitOptions = exports.GitHub = exports.context = void 0; -const Context = __importStar(__nccwpck_require3_(4087)); -const Utils = __importStar(__nccwpck_require3_(7914)); +exports.getOctokitOptions = exports.GitHub = exports.defaults = exports.context = void 0; +const Context = __importStar(__nccwpck_require__(4087)); +const Utils = __importStar(__nccwpck_require__(7914)); // octokit + plugins -const core_1 = __nccwpck_require3_(6762); -const plugin_rest_endpoint_methods_1 = __nccwpck_require3_(3044); -const plugin_paginate_rest_1 = __nccwpck_require3_(4193); +const core_1 = __nccwpck_require__(6762); +const plugin_rest_endpoint_methods_1 = __nccwpck_require__(3044); +const plugin_paginate_rest_1 = __nccwpck_require__(4193); exports.context = new Context.Context(); const baseUrl = Utils.getApiBaseUrl(); -const defaults = { +exports.defaults = { baseUrl, request: { agent: Utils.getProxyAgent(baseUrl) } }; -exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(defaults); +exports.GitHub = core_1.Octokit.plugin(plugin_rest_endpoint_methods_1.restEndpointMethods, plugin_paginate_rest_1.paginateRest).defaults(exports.defaults); /** * Convience function to correctly format Octokit Options to pass into the constructor. * @@ -4318,7 +4307,7 @@ exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHand /***/ }), /***/ 6255: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -4353,10 +4342,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; -const http = __importStar(__nccwpck_require3_(3685)); -const https = __importStar(__nccwpck_require3_(5687)); -const pm = __importStar(__nccwpck_require3_(9835)); -const tunnel = __importStar(__nccwpck_require3_(4294)); +const http = __importStar(__nccwpck_require__(3685)); +const https = __importStar(__nccwpck_require__(5687)); +const pm = __importStar(__nccwpck_require__(9835)); +const tunnel = __importStar(__nccwpck_require__(4294)); var HttpCodes; (function (HttpCodes) { HttpCodes[HttpCodes["OK"] = 200] = "OK"; @@ -4446,6 +4435,19 @@ class HttpClientResponse { })); }); } + readBodyBuffer() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + const chunks = []; + this.message.on('data', (chunk) => { + chunks.push(chunk); + }); + this.message.on('end', () => { + resolve(Buffer.concat(chunks)); + }); + })); + }); + } } exports.HttpClientResponse = HttpClientResponse; function isHttps(requestUrl) { @@ -4950,7 +4952,13 @@ function getProxyUrl(reqUrl) { } })(); if (proxyVar) { - return new URL(proxyVar); + try { + return new URL(proxyVar); + } + catch (_a) { + if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) + return new URL(`http://${proxyVar}`); + } } else { return undefined; @@ -4961,6 +4969,10 @@ function checkBypass(reqUrl) { if (!reqUrl.hostname) { return false; } + const reqHost = reqUrl.hostname; + if (isLoopbackAddress(reqHost)) { + return true; + } const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; if (!noProxy) { return false; @@ -4986,19 +4998,30 @@ function checkBypass(reqUrl) { .split(',') .map(x => x.trim().toUpperCase()) .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { + if (upperNoProxyItem === '*' || + upperReqHosts.some(x => x === upperNoProxyItem || + x.endsWith(`.${upperNoProxyItem}`) || + (upperNoProxyItem.startsWith('.') && + x.endsWith(`${upperNoProxyItem}`)))) { return true; } } return false; } exports.checkBypass = checkBypass; +function isLoopbackAddress(host) { + const hostLower = host.toLowerCase(); + return (hostLower === 'localhost' || + hostLower.startsWith('127.') || + hostLower.startsWith('[::1]') || + hostLower.startsWith('[0:0:0:0:0:0:0:1]')); +} //# sourceMappingURL=proxy.js.map /***/ }), /***/ 1962: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -5032,11 +5055,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rename = exports.readlink = exports.readdir = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; -const fs = __importStar(__nccwpck_require3_(7147)); -const path = __importStar(__nccwpck_require3_(1017)); -_a = fs.promises, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +exports.getCmdPath = exports.tryGetExecutablePath = exports.isRooted = exports.isDirectory = exports.exists = exports.READONLY = exports.UV_FS_O_EXLOCK = exports.IS_WINDOWS = exports.unlink = exports.symlink = exports.stat = exports.rmdir = exports.rm = exports.rename = exports.readlink = exports.readdir = exports.open = exports.mkdir = exports.lstat = exports.copyFile = exports.chmod = void 0; +const fs = __importStar(__nccwpck_require__(7147)); +const path = __importStar(__nccwpck_require__(1017)); +_a = fs.promises +// export const {open} = 'fs' +, exports.chmod = _a.chmod, exports.copyFile = _a.copyFile, exports.lstat = _a.lstat, exports.mkdir = _a.mkdir, exports.open = _a.open, exports.readdir = _a.readdir, exports.readlink = _a.readlink, exports.rename = _a.rename, exports.rm = _a.rm, exports.rmdir = _a.rmdir, exports.stat = _a.stat, exports.symlink = _a.symlink, exports.unlink = _a.unlink; +// export const {open} = 'fs' exports.IS_WINDOWS = process.platform === 'win32'; +// See https://github.com/nodejs/node/blob/d0153aee367422d0858105abec186da4dff0a0c5/deps/uv/include/uv/win.h#L691 +exports.UV_FS_O_EXLOCK = 0x10000000; +exports.READONLY = fs.constants.O_RDONLY; function exists(fsPath) { return __awaiter(this, void 0, void 0, function* () { try { @@ -5182,7 +5211,7 @@ exports.getCmdPath = getCmdPath; /***/ }), /***/ 7436: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -5216,13 +5245,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findInPath = exports.which = exports.mkdirP = exports.rmRF = exports.mv = exports.cp = void 0; -const assert_1 = __nccwpck_require3_(9491); -const childProcess = __importStar(__nccwpck_require3_(2081)); -const path = __importStar(__nccwpck_require3_(1017)); -const util_1 = __nccwpck_require3_(3837); -const ioUtil = __importStar(__nccwpck_require3_(1962)); -const exec = util_1.promisify(childProcess.exec); -const execFile = util_1.promisify(childProcess.execFile); +const assert_1 = __nccwpck_require__(9491); +const path = __importStar(__nccwpck_require__(1017)); +const ioUtil = __importStar(__nccwpck_require__(1962)); /** * Copies a file or folder. * Based off of shelljs - https://github.com/shelljs/shelljs/blob/9237f66c52e5daa40458f94f9565e18e8132f5a6/src/cp.js @@ -5303,61 +5328,23 @@ exports.mv = mv; function rmRF(inputPath) { return __awaiter(this, void 0, void 0, function* () { if (ioUtil.IS_WINDOWS) { - // Node doesn't provide a delete operation, only an unlink function. This means that if the file is being used by another - // program (e.g. antivirus), it won't be deleted. To address this, we shell out the work to rd/del. // Check for invalid characters // https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file if (/[*"<>|]/.test(inputPath)) { throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows'); } - try { - const cmdPath = ioUtil.getCmdPath(); - if (yield ioUtil.isDirectory(inputPath, true)) { - yield exec(`${cmdPath} /s /c "rd /s /q "%inputPath%""`, { - env: { inputPath } - }); - } - else { - yield exec(`${cmdPath} /s /c "del /f /a "%inputPath%""`, { - env: { inputPath } - }); - } - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - } - // Shelling out fails to remove a symlink folder with missing source, this unlink catches that - try { - yield ioUtil.unlink(inputPath); - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - } } - else { - let isDir = false; - try { - isDir = yield ioUtil.isDirectory(inputPath); - } - catch (err) { - // if you try to delete a file that doesn't exist, desired result is achieved - // other errors are valid - if (err.code !== 'ENOENT') - throw err; - return; - } - if (isDir) { - yield execFile(`rm`, [`-rf`, `${inputPath}`]); - } - else { - yield ioUtil.unlink(inputPath); - } + try { + // note if path does not exist, error is silent + yield ioUtil.rm(inputPath, { + force: true, + maxRetries: 3, + recursive: true, + retryDelay: 300 + }); + } + catch (err) { + throw new Error(`File was unable to be removed ${err}`); } }); } @@ -5530,13 +5517,13 @@ function copyFile(srcFile, destFile, force) { /***/ }), /***/ 3803: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; -const fs = __nccwpck_require3_(7147); +const fs = __nccwpck_require__(7147); exports.FILE_SYSTEM_ADAPTER = { lstat: fs.lstat, stat: fs.stat, @@ -5582,15 +5569,15 @@ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_B /***/ }), /***/ 5667: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Settings = exports.scandirSync = exports.scandir = void 0; -const async = __nccwpck_require3_(4507); -const sync = __nccwpck_require3_(9560); -const settings_1 = __nccwpck_require3_(8662); +const async = __nccwpck_require__(4507); +const sync = __nccwpck_require__(9560); +const settings_1 = __nccwpck_require__(8662); exports.Settings = settings_1.default; function scandir(path, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -5616,17 +5603,17 @@ function getSettings(settingsOrOptions = {}) { /***/ }), /***/ 4507: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; -const fsStat = __nccwpck_require3_(109); -const rpl = __nccwpck_require3_(5288); -const constants_1 = __nccwpck_require3_(8838); -const utils = __nccwpck_require3_(6297); -const common = __nccwpck_require3_(3847); +const fsStat = __nccwpck_require__(109); +const rpl = __nccwpck_require__(5288); +const constants_1 = __nccwpck_require__(8838); +const utils = __nccwpck_require__(6297); +const common = __nccwpck_require__(3847); function read(directory, settings, callback) { if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { readdirWithFileTypes(directory, settings, callback); @@ -5749,16 +5736,16 @@ exports.joinPathSegments = joinPathSegments; /***/ }), /***/ 9560: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; -const fsStat = __nccwpck_require3_(109); -const constants_1 = __nccwpck_require3_(8838); -const utils = __nccwpck_require3_(6297); -const common = __nccwpck_require3_(3847); +const fsStat = __nccwpck_require__(109); +const constants_1 = __nccwpck_require__(8838); +const utils = __nccwpck_require__(6297); +const common = __nccwpck_require__(3847); function read(directory, settings) { if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { return readdirWithFileTypes(directory, settings); @@ -5811,14 +5798,14 @@ exports.readdir = readdir; /***/ }), /***/ 8662: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const path = __nccwpck_require3_(1017); -const fsStat = __nccwpck_require3_(109); -const fs = __nccwpck_require3_(3803); +const path = __nccwpck_require__(1017); +const fsStat = __nccwpck_require__(109); +const fs = __nccwpck_require__(3803); class Settings { constructor(_options = {}) { this._options = _options; @@ -5870,26 +5857,26 @@ exports.createDirentFromStats = createDirentFromStats; /***/ }), /***/ 6297: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.fs = void 0; -const fs = __nccwpck_require3_(883); +const fs = __nccwpck_require__(883); exports.fs = fs; /***/ }), /***/ 2987: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; -const fs = __nccwpck_require3_(7147); +const fs = __nccwpck_require__(7147); exports.FILE_SYSTEM_ADAPTER = { lstat: fs.lstat, stat: fs.stat, @@ -5908,15 +5895,15 @@ exports.createFileSystemAdapter = createFileSystemAdapter; /***/ }), /***/ 109: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.statSync = exports.stat = exports.Settings = void 0; -const async = __nccwpck_require3_(4147); -const sync = __nccwpck_require3_(4527); -const settings_1 = __nccwpck_require3_(2410); +const async = __nccwpck_require__(4147); +const sync = __nccwpck_require__(4527); +const settings_1 = __nccwpck_require__(2410); exports.Settings = settings_1.default; function stat(path, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -6017,12 +6004,12 @@ exports.read = read; /***/ }), /***/ 2410: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const fs = __nccwpck_require3_(2987); +const fs = __nccwpck_require__(2987); class Settings { constructor(_options = {}) { this._options = _options; @@ -6041,16 +6028,16 @@ exports["default"] = Settings; /***/ }), /***/ 6026: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; -const async_1 = __nccwpck_require3_(7523); -const stream_1 = __nccwpck_require3_(6737); -const sync_1 = __nccwpck_require3_(3068); -const settings_1 = __nccwpck_require3_(141); +const async_1 = __nccwpck_require__(7523); +const stream_1 = __nccwpck_require__(6737); +const sync_1 = __nccwpck_require__(3068); +const settings_1 = __nccwpck_require__(141); exports.Settings = settings_1.default; function walk(directory, optionsOrSettingsOrCallback, callback) { if (typeof optionsOrSettingsOrCallback === 'function') { @@ -6083,12 +6070,12 @@ function getSettings(settingsOrOptions = {}) { /***/ }), /***/ 7523: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const async_1 = __nccwpck_require3_(5732); +const async_1 = __nccwpck_require__(5732); class AsyncProvider { constructor(_root, _settings) { this._root = _root; @@ -6121,13 +6108,13 @@ function callSuccessCallback(callback, entries) { /***/ }), /***/ 6737: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const stream_1 = __nccwpck_require3_(2781); -const async_1 = __nccwpck_require3_(5732); +const stream_1 = __nccwpck_require__(2781); +const async_1 = __nccwpck_require__(5732); class StreamProvider { constructor(_root, _settings) { this._root = _root; @@ -6163,12 +6150,12 @@ exports["default"] = StreamProvider; /***/ }), /***/ 3068: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const sync_1 = __nccwpck_require3_(3595); +const sync_1 = __nccwpck_require__(3595); class SyncProvider { constructor(_root, _settings) { this._root = _root; @@ -6185,16 +6172,16 @@ exports["default"] = SyncProvider; /***/ }), /***/ 5732: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const events_1 = __nccwpck_require3_(2361); -const fsScandir = __nccwpck_require3_(5667); -const fastq = __nccwpck_require3_(7340); -const common = __nccwpck_require3_(7988); -const reader_1 = __nccwpck_require3_(8311); +const events_1 = __nccwpck_require__(2361); +const fsScandir = __nccwpck_require__(5667); +const fastq = __nccwpck_require__(7340); +const common = __nccwpck_require__(7988); +const reader_1 = __nccwpck_require__(8311); class AsyncReader extends reader_1.default { constructor(_root, _settings) { super(_root, _settings); @@ -6329,12 +6316,12 @@ exports.joinPathSegments = joinPathSegments; /***/ }), /***/ 8311: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const common = __nccwpck_require3_(7988); +const common = __nccwpck_require__(7988); class Reader { constructor(_root, _settings) { this._root = _root; @@ -6348,14 +6335,14 @@ exports["default"] = Reader; /***/ }), /***/ 3595: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const fsScandir = __nccwpck_require3_(5667); -const common = __nccwpck_require3_(7988); -const reader_1 = __nccwpck_require3_(8311); +const fsScandir = __nccwpck_require__(5667); +const common = __nccwpck_require__(7988); +const reader_1 = __nccwpck_require__(8311); class SyncReader extends reader_1.default { constructor() { super(...arguments); @@ -6415,13 +6402,13 @@ exports["default"] = SyncReader; /***/ }), /***/ 141: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const path = __nccwpck_require3_(1017); -const fsScandir = __nccwpck_require3_(5667); +const path = __nccwpck_require__(1017); +const fsScandir = __nccwpck_require__(5667); class Settings { constructor(_options = {}) { this._options = _options; @@ -6512,18 +6499,18 @@ exports.createTokenAuth = createTokenAuth; /***/ }), /***/ 6762: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -var universalUserAgent = __nccwpck_require3_(5030); -var beforeAfterHook = __nccwpck_require3_(3682); -var request = __nccwpck_require3_(6234); -var graphql = __nccwpck_require3_(8467); -var authToken = __nccwpck_require3_(334); +var universalUserAgent = __nccwpck_require__(5030); +var beforeAfterHook = __nccwpck_require__(3682); +var request = __nccwpck_require__(6234); +var graphql = __nccwpck_require__(8467); +var authToken = __nccwpck_require__(334); function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; @@ -6696,15 +6683,15 @@ exports.Octokit = Octokit; /***/ }), /***/ 9440: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -var isPlainObject = __nccwpck_require3_(3287); -var universalUserAgent = __nccwpck_require3_(5030); +var isPlainObject = __nccwpck_require__(3287); +var universalUserAgent = __nccwpck_require__(5030); function lowercaseKeys(object) { if (!object) { @@ -7094,15 +7081,15 @@ exports.endpoint = endpoint; /***/ }), /***/ 8467: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -var request = __nccwpck_require3_(6234); -var universalUserAgent = __nccwpck_require3_(5030); +var request = __nccwpck_require__(6234); +var universalUserAgent = __nccwpck_require__(5030); const VERSION = "4.8.0"; @@ -8548,7 +8535,7 @@ exports.restEndpointMethods = restEndpointMethods; /***/ }), /***/ 537: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -8557,8 +8544,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var deprecation = __nccwpck_require3_(8932); -var once = _interopDefault(__nccwpck_require3_(1223)); +var deprecation = __nccwpck_require__(8932); +var once = _interopDefault(__nccwpck_require__(1223)); const logOnceCode = once(deprecation => console.warn(deprecation)); const logOnceHeaders = once(deprecation => console.warn(deprecation)); @@ -8630,7 +8617,7 @@ exports.RequestError = RequestError; /***/ }), /***/ 6234: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -8639,11 +8626,11 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var endpoint = __nccwpck_require3_(9440); -var universalUserAgent = __nccwpck_require3_(5030); -var isPlainObject = __nccwpck_require3_(3287); -var nodeFetch = _interopDefault(__nccwpck_require3_(467)); -var requestError = __nccwpck_require3_(537); +var endpoint = __nccwpck_require__(9440); +var universalUserAgent = __nccwpck_require__(5030); +var isPlainObject = __nccwpck_require__(3287); +var nodeFetch = _interopDefault(__nccwpck_require__(467)); +var requestError = __nccwpck_require__(537); const VERSION = "5.6.3"; @@ -9257,13 +9244,13 @@ module.exports.assert = exports.assert; /***/ }), /***/ 8097: -/***/ ((module, exports, __nccwpck_require3_) => { +/***/ ((module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const defer_to_connect_1 = __nccwpck_require3_(6214); -const util_1 = __nccwpck_require3_(3837); +const defer_to_connect_1 = __nccwpck_require__(6214); +const util_1 = __nccwpck_require__(3837); const nodejsMajorVersion = Number(process.versions.node.split('.')[0]); const timer = (request) => { if (request.timings) { @@ -9391,12 +9378,12 @@ module.exports["default"] = timer; /***/ }), /***/ 6761: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const Utils = __nccwpck_require3_(5182); -const pth = __nccwpck_require3_(1017); -const ZipEntry = __nccwpck_require3_(4057); -const ZipFile = __nccwpck_require3_(7744); +const Utils = __nccwpck_require__(5182); +const pth = __nccwpck_require__(1017); +const ZipEntry = __nccwpck_require__(4057); +const ZipFile = __nccwpck_require__(7744); const get_Bool = (val, def) => (typeof val === "boolean" ? val : def); const get_Str = (val, def) => (typeof val === "string" ? val : def); @@ -9661,8 +9648,9 @@ module.exports = function (/**String*/ input, /** object */ options) { * @param zipPath optional path inside zip * @param filter optional RegExp or Function if files match will * be included. + * @param {number | object} attr - number as unix file permissions, object as filesystem Stats object */ - addLocalFolder: function (/**String*/ localPath, /**String=*/ zipPath, /**=RegExp|Function*/ filter) { + addLocalFolder: function (/**String*/ localPath, /**String=*/ zipPath, /**=RegExp|Function*/ filter, /**=number|object*/ attr) { // Prepare filter if (filter instanceof RegExp) { // if filter is RegExp wrap it @@ -9694,9 +9682,9 @@ module.exports = function (/**String*/ input, /** object */ options) { if (filter(p)) { var stats = filetools.fs.statSync(filepath); if (stats.isFile()) { - self.addFile(zipPath + p, filetools.fs.readFileSync(filepath), "", stats); + self.addFile(zipPath + p, filetools.fs.readFileSync(filepath), "", attr ? attr : stats); } else { - self.addFile(zipPath + p + "/", Buffer.alloc(0), "", stats); + self.addFile(zipPath + p + "/", Buffer.alloc(0), "", attr ? attr : stats); } } }); @@ -9770,7 +9758,9 @@ module.exports = function (/**String*/ input, /** object */ options) { } }); } else { - next(); + process.nextTick(() => { + next(); + }); } } else { callback(true, undefined); @@ -9836,24 +9826,22 @@ module.exports = function (/**String*/ input, /** object */ options) { var fileattr = entry.isDirectory ? 0x10 : 0; // (MS-DOS directory flag) // extended attributes field for Unix - if (!Utils.isWin) { - // set file type either S_IFDIR / S_IFREG - let unix = entry.isDirectory ? 0x4000 : 0x8000; - - if (isStat) { - // File attributes from file stats - unix |= 0xfff & attr.mode; - } else if ("number" === typeof attr) { - // attr from given attr values - unix |= 0xfff & attr; - } else { - // Default values: - unix |= entry.isDirectory ? 0o755 : 0o644; // permissions (drwxr-xr-x) or (-r-wr--r--) - } + // set file type either S_IFDIR / S_IFREG + let unix = entry.isDirectory ? 0x4000 : 0x8000; - fileattr = (fileattr | (unix << 16)) >>> 0; // add attributes + if (isStat) { + // File attributes from file stats + unix |= 0xfff & attr.mode; + } else if ("number" === typeof attr) { + // attr from given attr values + unix |= 0xfff & attr; + } else { + // Default values: + unix |= entry.isDirectory ? 0o755 : 0o644; // permissions (drwxr-xr-x) or (-r-wr--r--) } + fileattr = (fileattr | (unix << 16)) >>> 0; // add attributes + entry.attr = fileattr; entry.setData(content); @@ -10028,12 +10016,14 @@ module.exports = function (/**String*/ input, /** object */ options) { * @param callback The callback will be executed when all entries are extracted successfully or any error is thrown. */ extractAllToAsync: function (/**String*/ targetPath, /**Boolean*/ overwrite, /**Boolean*/ keepOriginalPermission, /**Function*/ callback) { - if (!callback) { - callback = function () {}; - } overwrite = get_Bool(overwrite, false); if (typeof keepOriginalPermission === "function" && !callback) callback = keepOriginalPermission; keepOriginalPermission = get_Bool(keepOriginalPermission, false); + if (!callback) { + callback = function (err) { + throw new Error(err); + }; + } if (!_zip) { callback(new Error(Utils.Errors.NO_ZIP)); return; @@ -10181,9 +10171,9 @@ module.exports = function (/**String*/ input, /** object */ options) { /***/ }), /***/ 9032: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var Utils = __nccwpck_require3_(5182), +var Utils = __nccwpck_require__(5182), Constants = Utils.Constants; /* The central directory file header */ @@ -10526,18 +10516,18 @@ module.exports = function () { /***/ }), /***/ 4958: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -exports.EntryHeader = __nccwpck_require3_(9032); -exports.MainHeader = __nccwpck_require3_(4408); +exports.EntryHeader = __nccwpck_require__(9032); +exports.MainHeader = __nccwpck_require__(4408); /***/ }), /***/ 4408: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var Utils = __nccwpck_require3_(5182), +var Utils = __nccwpck_require__(5182), Constants = Utils.Constants; /* The entries in the end of central directory */ @@ -10615,7 +10605,7 @@ module.exports = function () { // total number of entries _totalEntries = Utils.readBigUInt64LE(data, Constants.ZIP64TOT); // central directory size in bytes - _size = Utils.readBigUInt64LE(data, Constants.ZIP64SIZ); + _size = Utils.readBigUInt64LE(data, Constants.ZIP64SIZE); // offset of first CEN header _offset = Utils.readBigUInt64LE(data, Constants.ZIP64OFF); @@ -10666,15 +10656,15 @@ module.exports = function () { } }; }; - + // Misspelled /***/ }), /***/ 7686: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { module.exports = function (/*Buffer*/ inbuf) { - var zlib = __nccwpck_require3_(9796); + var zlib = __nccwpck_require__(9796); var opts = { chunkSize: (parseInt(inbuf.length / 1024) + 1) * 1024 }; @@ -10711,20 +10701,20 @@ module.exports = function (/*Buffer*/ inbuf) { /***/ }), /***/ 3928: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { -exports.Deflater = __nccwpck_require3_(7686); -exports.Inflater = __nccwpck_require3_(2153); -exports.ZipCrypto = __nccwpck_require3_(3228); +exports.Deflater = __nccwpck_require__(7686); +exports.Inflater = __nccwpck_require__(2153); +exports.ZipCrypto = __nccwpck_require__(3228); /***/ }), /***/ 2153: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { module.exports = function (/*Buffer*/ inbuf) { - var zlib = __nccwpck_require3_(9796); + var zlib = __nccwpck_require__(9796); return { inflate: function () { @@ -10759,14 +10749,14 @@ module.exports = function (/*Buffer*/ inbuf) { /***/ }), /***/ 3228: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; // node crypt, we use it for generate salt // eslint-disable-next-line node/no-unsupported-features/node-builtins -const { randomFillSync } = __nccwpck_require3_(6113); +const { randomFillSync } = __nccwpck_require__(6113); // generate CRC32 lookup table const crctable = new Uint32Array(256).map((t, crc) => { @@ -11128,10 +11118,10 @@ module.exports = { /***/ }), /***/ 8321: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const fs = (__nccwpck_require3_(2895).require)(); -const pth = __nccwpck_require3_(1017); +const fs = (__nccwpck_require__(2895).require)(); +const pth = __nccwpck_require__(1017); fs.existsSync = fs.existsSync || pth.existsSync; @@ -11214,40 +11204,41 @@ module.exports = function (/*String*/ path) { /***/ }), /***/ 2895: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { exports.require = function () { if (typeof process === "object" && process.versions && process.versions["electron"]) { try { - const originalFs = __nccwpck_require3_(2941); + const originalFs = __nccwpck_require__(2941); if (Object.keys(originalFs).length > 0) { return originalFs; } } catch (e) {} } - return __nccwpck_require3_(7147); + return __nccwpck_require__(7147); }; /***/ }), /***/ 5182: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -module.exports = __nccwpck_require3_(1291); -module.exports.Constants = __nccwpck_require3_(4522); -module.exports.Errors = __nccwpck_require3_(1255); -module.exports.FileAttr = __nccwpck_require3_(8321); +module.exports = __nccwpck_require__(1291); +module.exports.Constants = __nccwpck_require__(4522); +module.exports.Errors = __nccwpck_require__(1255); +module.exports.FileAttr = __nccwpck_require__(8321); /***/ }), /***/ 1291: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const fsystem = (__nccwpck_require3_(2895).require)(); -const pth = __nccwpck_require3_(1017); -const Constants = __nccwpck_require3_(4522); +const fsystem = (__nccwpck_require__(2895).require)(); +const pth = __nccwpck_require__(1017); +const Constants = __nccwpck_require__(4522); +const Errors = __nccwpck_require__(1255); const isWin = typeof process === "object" && "win32" === process.platform; const is_Obj = (obj) => obj && typeof obj === "object"; @@ -11496,12 +11487,12 @@ Utils.crcTable = crcTable; /***/ }), /***/ 4057: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var Utils = __nccwpck_require3_(5182), - Headers = __nccwpck_require3_(4958), +var Utils = __nccwpck_require__(5182), + Headers = __nccwpck_require__(4958), Constants = Utils.Constants, - Methods = __nccwpck_require3_(3928); + Methods = __nccwpck_require__(3928); module.exports = function (/*Buffer*/ input) { var _entryHeader = new Headers.EntryHeader(), @@ -11836,11 +11827,11 @@ module.exports = function (/*Buffer*/ input) { /***/ }), /***/ 7744: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const ZipEntry = __nccwpck_require3_(4057); -const Headers = __nccwpck_require3_(4958); -const Utils = __nccwpck_require3_(5182); +const ZipEntry = __nccwpck_require__(4057); +const Headers = __nccwpck_require__(4958); +const Utils = __nccwpck_require__(5182); module.exports = function (/*Buffer|null*/ inBuffer, /** object */ options) { var entryList = [], @@ -12227,65 +12218,69 @@ module.exports = function (/*Buffer|null*/ inBuffer, /** object */ options) { /***/ }), /***/ 3682: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var register = __nccwpck_require3_(4670) -var addHook = __nccwpck_require3_(5549) -var removeHook = __nccwpck_require3_(6819) +var register = __nccwpck_require__(4670); +var addHook = __nccwpck_require__(5549); +var removeHook = __nccwpck_require__(6819); // bind with array of arguments: https://stackoverflow.com/a/21792913 -var bind = Function.bind -var bindable = bind.bind(bind) - -function bindApi (hook, state, name) { - var removeHookRef = bindable(removeHook, null).apply(null, name ? [state, name] : [state]) - hook.api = { remove: removeHookRef } - hook.remove = removeHookRef - - ;['before', 'error', 'after', 'wrap'].forEach(function (kind) { - var args = name ? [state, kind, name] : [state, kind] - hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args) - }) +var bind = Function.bind; +var bindable = bind.bind(bind); + +function bindApi(hook, state, name) { + var removeHookRef = bindable(removeHook, null).apply( + null, + name ? [state, name] : [state] + ); + hook.api = { remove: removeHookRef }; + hook.remove = removeHookRef; + ["before", "error", "after", "wrap"].forEach(function (kind) { + var args = name ? [state, kind, name] : [state, kind]; + hook[kind] = hook.api[kind] = bindable(addHook, null).apply(null, args); + }); } -function HookSingular () { - var singularHookName = 'h' +function HookSingular() { + var singularHookName = "h"; var singularHookState = { - registry: {} - } - var singularHook = register.bind(null, singularHookState, singularHookName) - bindApi(singularHook, singularHookState, singularHookName) - return singularHook + registry: {}, + }; + var singularHook = register.bind(null, singularHookState, singularHookName); + bindApi(singularHook, singularHookState, singularHookName); + return singularHook; } -function HookCollection () { +function HookCollection() { var state = { - registry: {} - } + registry: {}, + }; - var hook = register.bind(null, state) - bindApi(hook, state) + var hook = register.bind(null, state); + bindApi(hook, state); - return hook + return hook; } -var collectionHookDeprecationMessageDisplayed = false -function Hook () { +var collectionHookDeprecationMessageDisplayed = false; +function Hook() { if (!collectionHookDeprecationMessageDisplayed) { - console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4') - collectionHookDeprecationMessageDisplayed = true + console.warn( + '[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4' + ); + collectionHookDeprecationMessageDisplayed = true; } - return HookCollection() + return HookCollection(); } -Hook.Singular = HookSingular.bind() -Hook.Collection = HookCollection.bind() +Hook.Singular = HookSingular.bind(); +Hook.Collection = HookCollection.bind(); -module.exports = Hook +module.exports = Hook; // expose constructors as a named property for TypeScript -module.exports.Hook = Hook -module.exports.Singular = Hook.Singular -module.exports.Collection = Hook.Collection +module.exports.Hook = Hook; +module.exports.Singular = Hook.Singular; +module.exports.Collection = Hook.Collection; /***/ }), @@ -12404,15 +12399,15 @@ function removeHook(state, name, method) { /***/ }), /***/ 610: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const stringify = __nccwpck_require3_(8750); -const compile = __nccwpck_require3_(9434); -const expand = __nccwpck_require3_(5873); -const parse = __nccwpck_require3_(6477); +const stringify = __nccwpck_require__(8750); +const compile = __nccwpck_require__(9434); +const expand = __nccwpck_require__(5873); +const parse = __nccwpck_require__(6477); /** * Expand the given pattern or create a regex-compatible string. @@ -12582,13 +12577,13 @@ module.exports = braces; /***/ }), /***/ 9434: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const fill = __nccwpck_require3_(6330); -const utils = __nccwpck_require3_(5207); +const fill = __nccwpck_require__(6330); +const utils = __nccwpck_require__(5207); const compile = (ast, options = {}) => { let walk = (node, parent = {}) => { @@ -12712,14 +12707,14 @@ module.exports = { /***/ }), /***/ 5873: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const fill = __nccwpck_require3_(6330); -const stringify = __nccwpck_require3_(8750); -const utils = __nccwpck_require3_(5207); +const fill = __nccwpck_require__(6330); +const stringify = __nccwpck_require__(8750); +const utils = __nccwpck_require__(5207); const append = (queue = '', stash = '', enclose = false) => { let result = []; @@ -12833,12 +12828,12 @@ module.exports = expand; /***/ }), /***/ 6477: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const stringify = __nccwpck_require3_(8750); +const stringify = __nccwpck_require__(8750); /** * Constants @@ -12860,7 +12855,7 @@ const { CHAR_SINGLE_QUOTE, /* ' */ CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE -} = __nccwpck_require3_(8774); +} = __nccwpck_require__(8774); /** * parse @@ -13174,12 +13169,12 @@ module.exports = parse; /***/ }), /***/ 8750: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const utils = __nccwpck_require3_(5207); +const utils = __nccwpck_require__(5207); module.exports = (ast, options = {}) => { let stringify = (node, parent = {}) => { @@ -13334,7 +13329,7 @@ exports.flatten = (...args) => { /***/ }), /***/ 2286: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -13346,9 +13341,9 @@ const { Resolver: AsyncResolver }, lookup: dnsLookup -} = __nccwpck_require3_(9523); -const {promisify} = __nccwpck_require3_(3837); -const os = __nccwpck_require3_(2037); +} = __nccwpck_require__(9523); +const {promisify} = __nccwpck_require__(3837); +const os = __nccwpck_require__(2037); const kCacheableLookupCreateConnection = Symbol('cacheableLookupCreateConnection'); const kCacheableLookupInstance = Symbol('cacheableLookupInstance'); @@ -13775,151 +13770,23 @@ module.exports = CacheableLookup; module.exports["default"] = CacheableLookup; -/***/ }), - -/***/ 4340: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { - -"use strict"; - -const {PassThrough: PassThroughStream} = __nccwpck_require3_(2781); - -module.exports = options => { - options = {...options}; - - const {array} = options; - let {encoding} = options; - const isBuffer = encoding === 'buffer'; - let objectMode = false; - - if (array) { - objectMode = !(encoding || isBuffer); - } else { - encoding = encoding || 'utf8'; - } - - if (isBuffer) { - encoding = null; - } - - const stream = new PassThroughStream({objectMode}); - - if (encoding) { - stream.setEncoding(encoding); - } - - let length = 0; - const chunks = []; - - stream.on('data', chunk => { - chunks.push(chunk); - - if (objectMode) { - length = chunks.length; - } else { - length += chunk.length; - } - }); - - stream.getBufferedValue = () => { - if (array) { - return chunks; - } - - return isBuffer ? Buffer.concat(chunks, length) : chunks.join(''); - }; - - stream.getBufferedLength = () => length; - - return stream; -}; - - -/***/ }), - -/***/ 7040: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { - -"use strict"; - -const {constants: BufferConstants} = __nccwpck_require3_(4300); -const pump = __nccwpck_require3_(8341); -const bufferStream = __nccwpck_require3_(4340); - -class MaxBufferError extends Error { - constructor() { - super('maxBuffer exceeded'); - this.name = 'MaxBufferError'; - } -} - -async function getStream(inputStream, options) { - if (!inputStream) { - return Promise.reject(new Error('Expected a stream')); - } - - options = { - maxBuffer: Infinity, - ...options - }; - - const {maxBuffer} = options; - - let stream; - await new Promise((resolve, reject) => { - const rejectPromise = error => { - // Don't retrieve an oversized buffer. - if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) { - error.bufferedData = stream.getBufferedValue(); - } - - reject(error); - }; - - stream = pump(inputStream, bufferStream(options), error => { - if (error) { - rejectPromise(error); - return; - } - - resolve(); - }); - - stream.on('data', () => { - if (stream.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()); - } - }); - }); - - return stream.getBufferedValue(); -} - -module.exports = getStream; -// TODO: Remove this for the next major release -module.exports["default"] = getStream; -module.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'}); -module.exports.array = (stream, options) => getStream(stream, {...options, array: true}); -module.exports.MaxBufferError = MaxBufferError; - - /***/ }), /***/ 8116: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const EventEmitter = __nccwpck_require3_(2361); -const urlLib = __nccwpck_require3_(7310); -const normalizeUrl = __nccwpck_require3_(7952); -const getStream = __nccwpck_require3_(7040); -const CachePolicy = __nccwpck_require3_(1002); -const Response = __nccwpck_require3_(9004); -const lowercaseKeys = __nccwpck_require3_(9662); -const cloneResponse = __nccwpck_require3_(1312); -const Keyv = __nccwpck_require3_(1531); +const EventEmitter = __nccwpck_require__(2361); +const urlLib = __nccwpck_require__(7310); +const normalizeUrl = __nccwpck_require__(7952); +const getStream = __nccwpck_require__(1766); +const CachePolicy = __nccwpck_require__(1002); +const Response = __nccwpck_require__(9004); +const lowercaseKeys = __nccwpck_require__(9662); +const cloneResponse = __nccwpck_require__(1312); +const Keyv = __nccwpck_require__(1531); class CacheableRequest { constructor(request, cacheAdapter) { @@ -14165,13 +14032,13 @@ module.exports = CacheableRequest; /***/ }), /***/ 1312: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const PassThrough = (__nccwpck_require3_(2781).PassThrough); -const mimicResponse = __nccwpck_require3_(2610); +const PassThrough = (__nccwpck_require__(2781).PassThrough); +const mimicResponse = __nccwpck_require__(2610); const cloneResponse = response => { if (!(response && response.pipe)) { @@ -14187,95 +14054,16 @@ const cloneResponse = response => { module.exports = cloneResponse; -/***/ }), - -/***/ 5728: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { - -"use strict"; - - -const { promisify } = __nccwpck_require3_(3837) -const JSONB = __nccwpck_require3_(2820) -const zlib = __nccwpck_require3_(9796) - -const mergeOptions = __nccwpck_require3_(4968) - -const compress = promisify(zlib.brotliCompress) - -const decompress = promisify(zlib.brotliDecompress) - -const identity = val => val - -const createCompress = ({ - enable = true, - serialize = JSONB.stringify, - deserialize = JSONB.parse, - compressOptions, - decompressOptions -} = {}) => { - if (!enable) { - return { serialize, deserialize, decompress: identity, compress: identity } - } - - return { - serialize, - deserialize, - compress: async (data, options = {}) => { - if (data === undefined) return data - const serializedData = serialize(data) - return compress(serializedData, mergeOptions(compressOptions, options)) - }, - decompress: async (data, options = {}) => { - if (data === undefined) return data - return deserialize( - await decompress(data, mergeOptions(decompressOptions, options)) - ) - } - } -} - -module.exports = createCompress -module.exports.stringify = JSONB.stringify -module.exports.parse = JSONB.parse - - -/***/ }), - -/***/ 4968: -/***/ ((module) => { - -"use strict"; - - -module.exports = (defaultOptions = {}, options = {}) => { - const params = { - ...(defaultOptions.params || {}), - ...(options.params || {}) - } - - return { - ...defaultOptions, - ...options, - ...(Object.keys(params).length - ? { - params - } - : {}) - } -} - - /***/ }), /***/ 2391: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const {Transform, PassThrough} = __nccwpck_require3_(2781); -const zlib = __nccwpck_require3_(9796); -const mimicResponse = __nccwpck_require3_(3877); +const {Transform, PassThrough} = __nccwpck_require__(2781); +const zlib = __nccwpck_require__(9796); +const mimicResponse = __nccwpck_require__(3877); module.exports = response => { const contentEncoding = (response.headers['content-encoding'] || '').toLowerCase(); @@ -14503,9 +14291,9 @@ exports.Deprecation = Deprecation; /***/ }), /***/ 1205: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var once = __nccwpck_require3_(1223); +var once = __nccwpck_require__(1223); var noop = function() {}; @@ -14604,14 +14392,14 @@ module.exports = eos; /***/ }), /***/ 4460: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -var isGlob = __nccwpck_require3_(4466); -var pathPosixDirname = (__nccwpck_require3_(1017).posix.dirname); -var isWin32 = (__nccwpck_require3_(2037).platform)() === 'win32'; +var isGlob = __nccwpck_require__(4466); +var pathPosixDirname = (__nccwpck_require__(1017).posix.dirname); +var isWin32 = (__nccwpck_require__(2037).platform)() === 'win32'; var slash = '/'; var backslash = /\\/g; @@ -14654,17 +14442,16 @@ module.exports = function globParent(str, opts) { /***/ }), /***/ 3664: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const taskManager = __nccwpck_require3_(2708); -const patternManager = __nccwpck_require3_(8306); -const async_1 = __nccwpck_require3_(5679); -const stream_1 = __nccwpck_require3_(4630); -const sync_1 = __nccwpck_require3_(2405); -const settings_1 = __nccwpck_require3_(952); -const utils = __nccwpck_require3_(5444); +const taskManager = __nccwpck_require__(2708); +const async_1 = __nccwpck_require__(5679); +const stream_1 = __nccwpck_require__(4630); +const sync_1 = __nccwpck_require__(2405); +const settings_1 = __nccwpck_require__(952); +const utils = __nccwpck_require__(5444); async function FastGlob(source, options) { assertPatternsInput(source); const works = getWorks(source, async_1.default, options); @@ -14674,6 +14461,10 @@ async function FastGlob(source, options) { // https://github.com/typescript-eslint/typescript-eslint/issues/60 // eslint-disable-next-line no-redeclare (function (FastGlob) { + FastGlob.glob = FastGlob; + FastGlob.globSync = sync; + FastGlob.globStream = stream; + FastGlob.async = FastGlob; function sync(source, options) { assertPatternsInput(source); const works = getWorks(source, sync_1.default, options); @@ -14693,7 +14484,7 @@ async function FastGlob(source, options) { FastGlob.stream = stream; function generateTasks(source, options) { assertPatternsInput(source); - const patterns = patternManager.transform([].concat(source)); + const patterns = [].concat(source); const settings = new settings_1.default(options); return taskManager.generate(patterns, settings); } @@ -14709,9 +14500,40 @@ async function FastGlob(source, options) { return utils.path.escape(source); } FastGlob.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertPathToPattern(source); + } + FastGlob.convertPathToPattern = convertPathToPattern; + let posix; + (function (posix) { + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escapePosixPath(source); + } + posix.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertPosixPathToPattern(source); + } + posix.convertPathToPattern = convertPathToPattern; + })(posix = FastGlob.posix || (FastGlob.posix = {})); + let win32; + (function (win32) { + function escapePath(source) { + assertPatternsInput(source); + return utils.path.escapeWindowsPath(source); + } + win32.escapePath = escapePath; + function convertPathToPattern(source) { + assertPatternsInput(source); + return utils.path.convertWindowsPathToPattern(source); + } + win32.convertPathToPattern = convertPathToPattern; + })(win32 = FastGlob.win32 || (FastGlob.win32 = {})); })(FastGlob || (FastGlob = {})); function getWorks(source, _Provider, options) { - const patterns = patternManager.transform([].concat(source)); + const patterns = [].concat(source); const settings = new settings_1.default(options); const tasks = taskManager.generate(patterns, settings); const provider = new _Provider(settings); @@ -14727,48 +14549,21 @@ function assertPatternsInput(input) { module.exports = FastGlob; -/***/ }), - -/***/ 8306: -/***/ ((__unused_webpack_module, exports) => { - -"use strict"; - -Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.removeDuplicateSlashes = exports.transform = void 0; -/** - * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string. - * The latter is due to the presence of the device path at the beginning of the UNC path. - * @todo rewrite to negative lookbehind with the next major release. - */ -const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; -function transform(patterns) { - return patterns.map((pattern) => removeDuplicateSlashes(pattern)); -} -exports.transform = transform; -/** - * This package only works with forward slashes as a path separator. - * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. - */ -function removeDuplicateSlashes(pattern) { - return pattern.replace(DOUBLE_SLASH_RE, '/'); -} -exports.removeDuplicateSlashes = removeDuplicateSlashes; - - /***/ }), /***/ 2708: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0; -const utils = __nccwpck_require3_(5444); -function generate(patterns, settings) { +const utils = __nccwpck_require__(5444); +function generate(input, settings) { + const patterns = processPatterns(input, settings); + const ignore = processPatterns(settings.ignore, settings); const positivePatterns = getPositivePatterns(patterns); - const negativePatterns = getNegativePatternsAsPositive(patterns, settings.ignore); + const negativePatterns = getNegativePatternsAsPositive(patterns, ignore); const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)); const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)); const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false); @@ -14776,6 +14571,34 @@ function generate(patterns, settings) { return staticTasks.concat(dynamicTasks); } exports.generate = generate; +function processPatterns(input, settings) { + let patterns = input; + /** + * The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry + * and some problems with the micromatch package (see fast-glob issues: #365, #394). + * + * To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown + * in matching in the case of a large set of patterns after expansion. + */ + if (settings.braceExpansion) { + patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns); + } + /** + * If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used + * at any nesting level. + * + * We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change + * the pattern in the filter before creating a regular expression. There is no need to change the patterns + * in the application. Only on the input. + */ + if (settings.baseNameMatch) { + patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`); + } + /** + * This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion. + */ + return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern)); +} /** * Returns tasks grouped by basic pattern directories. * @@ -14847,28 +14670,23 @@ exports.convertPatternGroupToTask = convertPatternGroupToTask; /***/ }), /***/ 5679: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const stream_1 = __nccwpck_require3_(2083); -const provider_1 = __nccwpck_require3_(257); +const async_1 = __nccwpck_require__(7747); +const provider_1 = __nccwpck_require__(257); class ProviderAsync extends provider_1.default { constructor() { super(...arguments); - this._reader = new stream_1.default(this._settings); + this._reader = new async_1.default(this._settings); } - read(task) { + async read(task) { const root = this._getRootDirectory(task); const options = this._getReaderOptions(task); - const entries = []; - return new Promise((resolve, reject) => { - const stream = this.api(root, task, options); - stream.once('error', reject); - stream.on('data', (entry) => entries.push(options.transform(entry))); - stream.once('end', () => resolve(entries)); - }); + const entries = await this.api(root, task, options); + return entries.map((entry) => options.transform(entry)); } api(root, task, options) { if (task.dynamic) { @@ -14883,13 +14701,13 @@ exports["default"] = ProviderAsync; /***/ }), /***/ 6983: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils = __nccwpck_require3_(5444); -const partial_1 = __nccwpck_require3_(5295); +const utils = __nccwpck_require__(5444); +const partial_1 = __nccwpck_require__(5295); class DeepFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -14953,12 +14771,12 @@ exports["default"] = DeepFilter; /***/ }), /***/ 1343: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils = __nccwpck_require3_(5444); +const utils = __nccwpck_require__(5444); class EntryFilter { constructor(_settings, _micromatchOptions) { this._settings = _settings; @@ -14967,31 +14785,32 @@ class EntryFilter { } getFilter(positive, negative) { const positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions); - const negativeRe = utils.pattern.convertPatternsToRe(negative, this._micromatchOptions); + const negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })); return (entry) => this._filter(entry, positiveRe, negativeRe); } _filter(entry, positiveRe, negativeRe) { - if (this._settings.unique && this._isDuplicateEntry(entry)) { + const filepath = utils.path.removeLeadingDotSegment(entry.path); + if (this._settings.unique && this._isDuplicateEntry(filepath)) { return false; } if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) { return false; } - if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) { + if (this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe)) { return false; } - const filepath = this._settings.baseNameMatch ? entry.name : entry.path; - const isMatched = this._isMatchToPatterns(filepath, positiveRe) && !this._isMatchToPatterns(entry.path, negativeRe); + const isDirectory = entry.dirent.isDirectory(); + const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory); if (this._settings.unique && isMatched) { - this._createIndexRecord(entry); + this._createIndexRecord(filepath); } return isMatched; } - _isDuplicateEntry(entry) { - return this.index.has(entry.path); + _isDuplicateEntry(filepath) { + return this.index.has(filepath); } - _createIndexRecord(entry) { - this.index.set(entry.path, undefined); + _createIndexRecord(filepath) { + this.index.set(filepath, undefined); } _onlyFileFilter(entry) { return this._settings.onlyFiles && !entry.dirent.isFile(); @@ -15006,13 +14825,15 @@ class EntryFilter { const fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath); return utils.pattern.matchAny(fullpath, patternsRe); } - /** - * First, just trying to apply patterns to the path. - * Second, trying to apply patterns to the path with final slash. - */ - _isMatchToPatterns(entryPath, patternsRe) { - const filepath = utils.path.removeLeadingDotSegment(entryPath); - return utils.pattern.matchAny(filepath, patternsRe) || utils.pattern.matchAny(filepath + '/', patternsRe); + _isMatchToPatterns(filepath, patternsRe, isDirectory) { + // Trying to match files and directories by patterns. + const isMatched = utils.pattern.matchAny(filepath, patternsRe); + // A pattern with a trailling slash can be used for directory matching. + // To apply such pattern, we need to add a tralling slash to the path. + if (!isMatched && isDirectory) { + return utils.pattern.matchAny(filepath + '/', patternsRe); + } + return isMatched; } } exports["default"] = EntryFilter; @@ -15021,12 +14842,12 @@ exports["default"] = EntryFilter; /***/ }), /***/ 6654: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils = __nccwpck_require3_(5444); +const utils = __nccwpck_require__(5444); class ErrorFilter { constructor(_settings) { this._settings = _settings; @@ -15044,12 +14865,12 @@ exports["default"] = ErrorFilter; /***/ }), /***/ 2576: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils = __nccwpck_require3_(5444); +const utils = __nccwpck_require__(5444); class Matcher { constructor(_patterns, _settings, _micromatchOptions) { this._patterns = _patterns; @@ -15059,12 +14880,7 @@ class Matcher { this._fillStorage(); } _fillStorage() { - /** - * The original pattern may include `{,*,**,a/*}`, which will lead to problems with matching (unresolved level). - * So, before expand patterns with brace expansion into separated patterns. - */ - const patterns = utils.pattern.expandPatternsWithBraceExpansion(this._patterns); - for (const pattern of patterns) { + for (const pattern of this._patterns) { const segments = this._getPatternSegments(pattern); const sections = this._splitSegmentsIntoSections(segments); this._storage.push({ @@ -15102,12 +14918,12 @@ exports["default"] = Matcher; /***/ }), /***/ 5295: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const matcher_1 = __nccwpck_require3_(2576); +const matcher_1 = __nccwpck_require__(2576); class PartialMatcher extends matcher_1.default { match(filepath) { const parts = filepath.split('/'); @@ -15148,16 +14964,16 @@ exports["default"] = PartialMatcher; /***/ }), /***/ 257: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const path = __nccwpck_require3_(1017); -const deep_1 = __nccwpck_require3_(6983); -const entry_1 = __nccwpck_require3_(1343); -const error_1 = __nccwpck_require3_(6654); -const entry_2 = __nccwpck_require3_(4029); +const path = __nccwpck_require__(1017); +const deep_1 = __nccwpck_require__(6983); +const entry_1 = __nccwpck_require__(1343); +const error_1 = __nccwpck_require__(6654); +const entry_2 = __nccwpck_require__(4029); class Provider { constructor(_settings) { this._settings = _settings; @@ -15204,14 +15020,14 @@ exports["default"] = Provider; /***/ }), /***/ 4630: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const stream_1 = __nccwpck_require3_(2781); -const stream_2 = __nccwpck_require3_(2083); -const provider_1 = __nccwpck_require3_(257); +const stream_1 = __nccwpck_require__(2781); +const stream_2 = __nccwpck_require__(2083); +const provider_1 = __nccwpck_require__(257); class ProviderStream extends provider_1.default { constructor() { super(...arguments); @@ -15243,13 +15059,13 @@ exports["default"] = ProviderStream; /***/ }), /***/ 2405: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const sync_1 = __nccwpck_require3_(8821); -const provider_1 = __nccwpck_require3_(257); +const sync_1 = __nccwpck_require__(8821); +const provider_1 = __nccwpck_require__(257); class ProviderSync extends provider_1.default { constructor() { super(...arguments); @@ -15274,12 +15090,12 @@ exports["default"] = ProviderSync; /***/ }), /***/ 4029: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const utils = __nccwpck_require3_(5444); +const utils = __nccwpck_require__(5444); class EntryTransformer { constructor(_settings) { this._settings = _settings; @@ -15305,17 +15121,60 @@ class EntryTransformer { exports["default"] = EntryTransformer; +/***/ }), + +/***/ 7747: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +const fsWalk = __nccwpck_require__(6026); +const reader_1 = __nccwpck_require__(5582); +const stream_1 = __nccwpck_require__(2083); +class ReaderAsync extends reader_1.default { + constructor() { + super(...arguments); + this._walkAsync = fsWalk.walk; + this._readerStream = new stream_1.default(this._settings); + } + dynamic(root, options) { + return new Promise((resolve, reject) => { + this._walkAsync(root, options, (error, entries) => { + if (error === null) { + resolve(entries); + } + else { + reject(error); + } + }); + }); + } + async static(patterns, options) { + const entries = []; + const stream = this._readerStream.static(patterns, options); + // After #235, replace it with an asynchronous iterator. + return new Promise((resolve, reject) => { + stream.once('error', reject); + stream.on('data', (entry) => entries.push(entry)); + stream.once('end', () => resolve(entries)); + }); + } +} +exports["default"] = ReaderAsync; + + /***/ }), /***/ 5582: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const path = __nccwpck_require3_(1017); -const fsStat = __nccwpck_require3_(109); -const utils = __nccwpck_require3_(5444); +const path = __nccwpck_require__(1017); +const fsStat = __nccwpck_require__(109); +const utils = __nccwpck_require__(5444); class Reader { constructor(_settings) { this._settings = _settings; @@ -15349,15 +15208,15 @@ exports["default"] = Reader; /***/ }), /***/ 2083: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const stream_1 = __nccwpck_require3_(2781); -const fsStat = __nccwpck_require3_(109); -const fsWalk = __nccwpck_require3_(6026); -const reader_1 = __nccwpck_require3_(5582); +const stream_1 = __nccwpck_require__(2781); +const fsStat = __nccwpck_require__(109); +const fsWalk = __nccwpck_require__(6026); +const reader_1 = __nccwpck_require__(5582); class ReaderStream extends reader_1.default { constructor() { super(...arguments); @@ -15412,14 +15271,14 @@ exports["default"] = ReaderStream; /***/ }), /***/ 8821: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const fsStat = __nccwpck_require3_(109); -const fsWalk = __nccwpck_require3_(6026); -const reader_1 = __nccwpck_require3_(5582); +const fsStat = __nccwpck_require__(109); +const fsWalk = __nccwpck_require__(6026); +const reader_1 = __nccwpck_require__(5582); class ReaderSync extends reader_1.default { constructor() { super(...arguments); @@ -15463,14 +15322,14 @@ exports["default"] = ReaderSync; /***/ }), /***/ 952: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0; -const fs = __nccwpck_require3_(7147); -const os = __nccwpck_require3_(2037); +const fs = __nccwpck_require__(7147); +const os = __nccwpck_require__(2037); /** * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero. * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107 @@ -15514,6 +15373,8 @@ class Settings { if (this.stats) { this.objectMode = true; } + // Remove the cast to the array in the next major (#404). + this.ignore = [].concat(this.ignore); } _getValue(option, value) { return option === undefined ? value : option; @@ -15600,40 +15461,59 @@ exports.createDirentFromStats = createDirentFromStats; /***/ }), /***/ 5444: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0; -const array = __nccwpck_require3_(5325); +const array = __nccwpck_require__(5325); exports.array = array; -const errno = __nccwpck_require3_(1230); +const errno = __nccwpck_require__(1230); exports.errno = errno; -const fs = __nccwpck_require3_(7543); +const fs = __nccwpck_require__(7543); exports.fs = fs; -const path = __nccwpck_require3_(3873); +const path = __nccwpck_require__(3873); exports.path = path; -const pattern = __nccwpck_require3_(1221); +const pattern = __nccwpck_require__(1221); exports.pattern = pattern; -const stream = __nccwpck_require3_(8382); +const stream = __nccwpck_require__(8382); exports.stream = stream; -const string = __nccwpck_require3_(2203); +const string = __nccwpck_require__(2203); exports.string = string; /***/ }), /***/ 3873: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.removeLeadingDotSegment = exports.escape = exports.makeAbsolute = exports.unixify = void 0; -const path = __nccwpck_require3_(1017); +exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0; +const os = __nccwpck_require__(2037); +const path = __nccwpck_require__(1017); +const IS_WINDOWS_PLATFORM = os.platform() === 'win32'; const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\ -const UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g; +/** + * All non-escaped special characters. + * Posix: ()*?[\]{|}, !+@ before (, ! at the beginning, \\ before non-special characters. + * Windows: (){}, !+@ before (, ! at the beginning. + */ +const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g; +const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g; +/** + * The device path (\\.\ or \\?\). + * https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths + */ +const DOS_DEVICE_PATH_RE = /^\\\\([.?])/; +/** + * All backslashes except those escaping special characters. + * Windows: !()+@{} + * https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions + */ +const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g; /** * Designed to work only with simple paths: `dir\\file`. */ @@ -15645,10 +15525,6 @@ function makeAbsolute(cwd, filepath) { return path.resolve(cwd, filepath); } exports.makeAbsolute = makeAbsolute; -function escape(pattern) { - return pattern.replace(UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); -} -exports.escape = escape; function removeLeadingDotSegment(entry) { // We do not use `startsWith` because this is 10x slower than current implementation for some cases. // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with @@ -15661,20 +15537,40 @@ function removeLeadingDotSegment(entry) { return entry; } exports.removeLeadingDotSegment = removeLeadingDotSegment; +exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath; +function escapeWindowsPath(pattern) { + return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); +} +exports.escapeWindowsPath = escapeWindowsPath; +function escapePosixPath(pattern) { + return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2'); +} +exports.escapePosixPath = escapePosixPath; +exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern; +function convertWindowsPathToPattern(filepath) { + return escapeWindowsPath(filepath) + .replace(DOS_DEVICE_PATH_RE, '//$1') + .replace(WINDOWS_BACKSLASHES_RE, '/'); +} +exports.convertWindowsPathToPattern = convertWindowsPathToPattern; +function convertPosixPathToPattern(filepath) { + return escapePosixPath(filepath); +} +exports.convertPosixPathToPattern = convertPosixPathToPattern; /***/ }), /***/ 1221: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; -const path = __nccwpck_require3_(1017); -const globParent = __nccwpck_require3_(4460); -const micromatch = __nccwpck_require3_(6228); +exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0; +const path = __nccwpck_require__(1017); +const globParent = __nccwpck_require__(4460); +const micromatch = __nccwpck_require__(6228); const GLOBSTAR = '**'; const ESCAPE_SYMBOL = '\\'; const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/; @@ -15682,6 +15578,11 @@ const REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/; const REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/; const GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/; const BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./; +/** + * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string. + * The latter is due to the presence of the device path at the beginning of the UNC path. + */ +const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g; function isStaticPattern(pattern, options = {}) { return !isDynamicPattern(pattern, options); } @@ -15800,10 +15701,16 @@ function expandPatternsWithBraceExpansion(patterns) { } exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion; function expandBraceExpansion(pattern) { - return micromatch.braces(pattern, { - expand: true, - nodupes: true - }); + const patterns = micromatch.braces(pattern, { expand: true, nodupes: true }); + /** + * Sort the patterns by length so that the same depth patterns are processed side by side. + * `a/{b,}/{c,}/*` – `['a///*', 'a/b//*', 'a//c/*', 'a/b/c/*']` + */ + patterns.sort((a, b) => a.length - b.length); + /** + * Micromatch can return an empty string in the case of patterns like `{a,}`. + */ + return patterns.filter((pattern) => pattern !== ''); } exports.expandBraceExpansion = expandBraceExpansion; function getPatternParts(pattern, options) { @@ -15838,18 +15745,26 @@ function matchAny(entry, patternsRe) { return patternsRe.some((patternRe) => patternRe.test(entry)); } exports.matchAny = matchAny; +/** + * This package only works with forward slashes as a path separator. + * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes. + */ +function removeDuplicateSlashes(pattern) { + return pattern.replace(DOUBLE_SLASH_RE, '/'); +} +exports.removeDuplicateSlashes = removeDuplicateSlashes; /***/ }), /***/ 8382: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.merge = void 0; -const merge2 = __nccwpck_require3_(2578); +const merge2 = __nccwpck_require__(2578); function merge(streams) { const mergedStream = merge2(streams); streams.forEach((stream) => { @@ -15887,14 +15802,14 @@ exports.isEmpty = isEmpty; /***/ }), /***/ 7340: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; /* eslint-disable no-var */ -var reusify = __nccwpck_require3_(2113) +var reusify = __nccwpck_require__(2113) function fastqueue (context, worker, concurrency) { if (typeof context === 'function') { @@ -16158,6 +16073,12 @@ function queueAsPromised (context, worker, concurrency) { } function drained () { + if (queue.idle()) { + return new Promise(function (resolve) { + resolve() + }) + } + var previousDrain = queue.drain var p = new Promise(function (resolve) { @@ -16178,7 +16099,7 @@ module.exports.promise = queueAsPromised /***/ }), /***/ 6330: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; /*! @@ -16190,8 +16111,8 @@ module.exports.promise = queueAsPromised -const util = __nccwpck_require3_(3837); -const toRegexRange = __nccwpck_require3_(1861); +const util = __nccwpck_require__(3837); +const toRegexRange = __nccwpck_require__(1861); const isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); @@ -16432,15 +16353,143 @@ const fill = (start, end, step, options = {}) => { module.exports = fill; +/***/ }), + +/***/ 1585: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const {PassThrough: PassThroughStream} = __nccwpck_require__(2781); + +module.exports = options => { + options = {...options}; + + const {array} = options; + let {encoding} = options; + const isBuffer = encoding === 'buffer'; + let objectMode = false; + + if (array) { + objectMode = !(encoding || isBuffer); + } else { + encoding = encoding || 'utf8'; + } + + if (isBuffer) { + encoding = null; + } + + const stream = new PassThroughStream({objectMode}); + + if (encoding) { + stream.setEncoding(encoding); + } + + let length = 0; + const chunks = []; + + stream.on('data', chunk => { + chunks.push(chunk); + + if (objectMode) { + length = chunks.length; + } else { + length += chunk.length; + } + }); + + stream.getBufferedValue = () => { + if (array) { + return chunks; + } + + return isBuffer ? Buffer.concat(chunks, length) : chunks.join(''); + }; + + stream.getBufferedLength = () => length; + + return stream; +}; + + +/***/ }), + +/***/ 1766: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const {constants: BufferConstants} = __nccwpck_require__(4300); +const pump = __nccwpck_require__(8341); +const bufferStream = __nccwpck_require__(1585); + +class MaxBufferError extends Error { + constructor() { + super('maxBuffer exceeded'); + this.name = 'MaxBufferError'; + } +} + +async function getStream(inputStream, options) { + if (!inputStream) { + return Promise.reject(new Error('Expected a stream')); + } + + options = { + maxBuffer: Infinity, + ...options + }; + + const {maxBuffer} = options; + + let stream; + await new Promise((resolve, reject) => { + const rejectPromise = error => { + // Don't retrieve an oversized buffer. + if (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) { + error.bufferedData = stream.getBufferedValue(); + } + + reject(error); + }; + + stream = pump(inputStream, bufferStream(options), error => { + if (error) { + rejectPromise(error); + return; + } + + resolve(); + }); + + stream.on('data', () => { + if (stream.getBufferedLength() > maxBuffer) { + rejectPromise(new MaxBufferError()); + } + }); + }); + + return stream.getBufferedValue(); +} + +module.exports = getStream; +// TODO: Remove this for the next major release +module.exports["default"] = getStream; +module.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'}); +module.exports.array = (stream, options) => getStream(stream, {...options, array: true}); +module.exports.MaxBufferError = MaxBufferError; + + /***/ }), /***/ 6457: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const types_1 = __nccwpck_require3_(4597); +const types_1 = __nccwpck_require__(4597); function createRejection(error, ...beforeErrorGroups) { const promise = (async () => { if (error instanceof types_1.RequestError) { @@ -16473,7 +16522,7 @@ exports["default"] = createRejection; /***/ }), /***/ 6056: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -16488,15 +16537,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -const events_1 = __nccwpck_require3_(2361); -const is_1 = __nccwpck_require3_(7678); -const PCancelable = __nccwpck_require3_(9072); -const types_1 = __nccwpck_require3_(4597); -const parse_body_1 = __nccwpck_require3_(8220); -const core_1 = __nccwpck_require3_(94); -const proxy_events_1 = __nccwpck_require3_(3021); -const get_buffer_1 = __nccwpck_require3_(4500); -const is_response_ok_1 = __nccwpck_require3_(9298); +const events_1 = __nccwpck_require__(2361); +const is_1 = __nccwpck_require__(7678); +const PCancelable = __nccwpck_require__(9072); +const types_1 = __nccwpck_require__(4597); +const parse_body_1 = __nccwpck_require__(8220); +const core_1 = __nccwpck_require__(94); +const proxy_events_1 = __nccwpck_require__(3021); +const get_buffer_1 = __nccwpck_require__(4500); +const is_response_ok_1 = __nccwpck_require__(9298); const proxiedRequestEvents = [ 'request', 'response', @@ -16596,6 +16645,7 @@ function asPromise(normalizedOptions) { request._beforeError(new types_1.HTTPError(response)); return; } + request.destroy(); resolve(request.options.resolveBodyOnly ? response.body : response); }); const onError = (error) => { @@ -16650,18 +16700,18 @@ function asPromise(normalizedOptions) { return promise; } exports["default"] = asPromise; -__exportStar(__nccwpck_require3_(4597), exports); +__exportStar(__nccwpck_require__(4597), exports); /***/ }), /***/ 1048: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const is_1 = __nccwpck_require3_(7678); +const is_1 = __nccwpck_require__(7678); const normalizeArguments = (options, defaults) => { if (is_1.default.null_(options.encoding)) { throw new TypeError('To get a Buffer, set `options.responseType` to `buffer` instead'); @@ -16742,12 +16792,12 @@ exports["default"] = normalizeArguments; /***/ }), /***/ 8220: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const types_1 = __nccwpck_require3_(4597); +const types_1 = __nccwpck_require__(4597); const parseBody = (response, responseType, parseJson, encoding) => { const { rawBody } = response; try { @@ -16775,7 +16825,7 @@ exports["default"] = parseBody; /***/ }), /***/ 4597: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -16791,7 +16841,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CancelError = exports.ParseError = void 0; -const core_1 = __nccwpck_require3_(94); +const core_1 = __nccwpck_require__(94); /** An error to be thrown when server response code is 2xx, and parsing body fails. Includes a `response` property. @@ -16819,7 +16869,7 @@ class CancelError extends core_1.RequestError { } } exports.CancelError = CancelError; -__exportStar(__nccwpck_require3_(94), exports); +__exportStar(__nccwpck_require__(94), exports); /***/ }), @@ -16862,40 +16912,40 @@ exports["default"] = calculateRetryDelay; /***/ }), /***/ 94: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.UnsupportedProtocolError = exports.ReadError = exports.TimeoutError = exports.UploadError = exports.CacheError = exports.HTTPError = exports.MaxRedirectsError = exports.RequestError = exports.setNonEnumerableProperties = exports.knownHookEvents = exports.withoutBody = exports.kIsNormalizedAlready = void 0; -const util_1 = __nccwpck_require3_(3837); -const stream_1 = __nccwpck_require3_(2781); -const fs_1 = __nccwpck_require3_(7147); -const url_1 = __nccwpck_require3_(7310); -const http = __nccwpck_require3_(3685); -const http_1 = __nccwpck_require3_(3685); -const https = __nccwpck_require3_(5687); -const http_timer_1 = __nccwpck_require3_(8097); -const cacheable_lookup_1 = __nccwpck_require3_(2286); -const CacheableRequest = __nccwpck_require3_(8116); -const decompressResponse = __nccwpck_require3_(2391); +const util_1 = __nccwpck_require__(3837); +const stream_1 = __nccwpck_require__(2781); +const fs_1 = __nccwpck_require__(7147); +const url_1 = __nccwpck_require__(7310); +const http = __nccwpck_require__(3685); +const http_1 = __nccwpck_require__(3685); +const https = __nccwpck_require__(5687); +const http_timer_1 = __nccwpck_require__(8097); +const cacheable_lookup_1 = __nccwpck_require__(2286); +const CacheableRequest = __nccwpck_require__(8116); +const decompressResponse = __nccwpck_require__(2391); // @ts-expect-error Missing types -const http2wrapper = __nccwpck_require3_(4645); -const lowercaseKeys = __nccwpck_require3_(9662); -const is_1 = __nccwpck_require3_(7678); -const get_body_size_1 = __nccwpck_require3_(4564); -const is_form_data_1 = __nccwpck_require3_(40); -const proxy_events_1 = __nccwpck_require3_(3021); -const timed_out_1 = __nccwpck_require3_(2454); -const url_to_options_1 = __nccwpck_require3_(8026); -const options_to_url_1 = __nccwpck_require3_(9219); -const weakable_map_1 = __nccwpck_require3_(7288); -const get_buffer_1 = __nccwpck_require3_(4500); -const dns_ip_version_1 = __nccwpck_require3_(4993); -const is_response_ok_1 = __nccwpck_require3_(9298); -const deprecation_warning_1 = __nccwpck_require3_(397); -const normalize_arguments_1 = __nccwpck_require3_(1048); -const calculate_retry_delay_1 = __nccwpck_require3_(3462); +const http2wrapper = __nccwpck_require__(4645); +const lowercaseKeys = __nccwpck_require__(9662); +const is_1 = __nccwpck_require__(7678); +const get_body_size_1 = __nccwpck_require__(4564); +const is_form_data_1 = __nccwpck_require__(40); +const proxy_events_1 = __nccwpck_require__(3021); +const timed_out_1 = __nccwpck_require__(2454); +const url_to_options_1 = __nccwpck_require__(8026); +const options_to_url_1 = __nccwpck_require__(9219); +const weakable_map_1 = __nccwpck_require__(7288); +const get_buffer_1 = __nccwpck_require__(4500); +const dns_ip_version_1 = __nccwpck_require__(4993); +const is_response_ok_1 = __nccwpck_require__(9298); +const deprecation_warning_1 = __nccwpck_require__(397); +const normalize_arguments_1 = __nccwpck_require__(1048); +const calculate_retry_delay_1 = __nccwpck_require__(3462); let globalDnsCache; const kRequest = Symbol('request'); const kResponse = Symbol('response'); @@ -18400,15 +18450,15 @@ exports.dnsLookupIpVersionToFamily = (dnsLookupIpVersion) => { /***/ }), /***/ 4564: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const fs_1 = __nccwpck_require3_(7147); -const util_1 = __nccwpck_require3_(3837); -const is_1 = __nccwpck_require3_(7678); -const is_form_data_1 = __nccwpck_require3_(40); +const fs_1 = __nccwpck_require__(7147); +const util_1 = __nccwpck_require__(3837); +const is_1 = __nccwpck_require__(7678); +const is_form_data_1 = __nccwpck_require__(40); const statAsync = util_1.promisify(fs_1.stat); exports["default"] = async (body, headers) => { if (headers && 'content-length' in headers) { @@ -18464,12 +18514,12 @@ exports["default"] = getBuffer; /***/ }), /***/ 40: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const is_1 = __nccwpck_require3_(7678); +const is_1 = __nccwpck_require__(7678); exports["default"] = (body) => is_1.default.nodeStream(body) && is_1.default.function_(body.getBoundary); @@ -18492,13 +18542,13 @@ exports.isResponseOk = (response) => { /***/ }), /***/ 9219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); /* istanbul ignore file: deprecated */ -const url_1 = __nccwpck_require3_(7310); +const url_1 = __nccwpck_require__(7310); const keys = [ 'protocol', 'host', @@ -18578,14 +18628,14 @@ exports["default"] = default_1; /***/ }), /***/ 2454: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TimeoutError = void 0; -const net = __nccwpck_require3_(1808); -const unhandle_1 = __nccwpck_require3_(1593); +const net = __nccwpck_require__(1808); +const unhandle_1 = __nccwpck_require__(1593); const reentry = Symbol('reentry'); const noop = () => { }; class TimeoutError extends Error { @@ -18737,12 +18787,12 @@ exports["default"] = () => { /***/ }), /***/ 8026: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const is_1 = __nccwpck_require3_(7678); +const is_1 = __nccwpck_require__(7678); exports["default"] = (url) => { // Cast to URL url = url; @@ -18806,7 +18856,7 @@ exports["default"] = WeakableMap; /***/ }), /***/ 4337: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -18822,11 +18872,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultHandler = void 0; -const is_1 = __nccwpck_require3_(7678); -const as_promise_1 = __nccwpck_require3_(6056); -const create_rejection_1 = __nccwpck_require3_(6457); -const core_1 = __nccwpck_require3_(94); -const deep_freeze_1 = __nccwpck_require3_(285); +const is_1 = __nccwpck_require__(7678); +const as_promise_1 = __nccwpck_require__(6056); +const create_rejection_1 = __nccwpck_require__(6457); +const core_1 = __nccwpck_require__(94); +const deep_freeze_1 = __nccwpck_require__(285); const errors = { RequestError: as_promise_1.RequestError, CacheError: as_promise_1.CacheError, @@ -19048,13 +19098,13 @@ const create = (defaults) => { return got; }; exports["default"] = create; -__exportStar(__nccwpck_require3_(2613), exports); +__exportStar(__nccwpck_require__(2613), exports); /***/ }), /***/ 3061: -/***/ (function(module, exports, __nccwpck_require3_) { +/***/ (function(module, exports, __nccwpck_require__) { "use strict"; @@ -19069,8 +19119,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", ({ value: true })); -const url_1 = __nccwpck_require3_(7310); -const create_1 = __nccwpck_require3_(4337); +const url_1 = __nccwpck_require__(7310); +const create_1 = __nccwpck_require__(4337); const defaults = { options: { method: 'GET', @@ -19187,8 +19237,8 @@ exports["default"] = got; module.exports = got; module.exports["default"] = got; module.exports.__esModule = true; // Workaround for TS issue: https://github.com/sindresorhus/got/pull/1267 -__exportStar(__nccwpck_require3_(4337), exports); -__exportStar(__nccwpck_require3_(6056), exports); +__exportStar(__nccwpck_require__(4337), exports); +__exportStar(__nccwpck_require__(6056), exports); /***/ }), @@ -19204,12 +19254,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); /***/ }), /***/ 285: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); -const is_1 = __nccwpck_require3_(7678); +const is_1 = __nccwpck_require__(7678); function deepFreeze(object) { for (const value of Object.values(object)) { if (is_1.default.plainObject(value) || is_1.default.array(value)) { @@ -19257,6 +19307,7 @@ const statusCodeCacheableByDefault = new Set([ 206, 300, 301, + 308, 404, 405, 410, @@ -19329,10 +19380,10 @@ function parseCacheControl(header) { // TODO: When there is more than one value present for a given directive (e.g., two Expires header fields, multiple Cache-Control: max-age directives), // the directive's value is considered invalid. Caches are encouraged to consider responses that have invalid freshness information to be stale - const parts = header.trim().split(/\s*,\s*/); // TODO: lame parsing + const parts = header.trim().split(/,/); for (const part of parts) { - const [k, v] = part.split(/\s*=\s*/, 2); - cc[k] = v === undefined ? true : v.replace(/^"|"$/g, ''); // TODO: lame unquoting + const [k, v] = part.split(/=/, 2); + cc[k.trim()] = v === undefined ? true : v.trim().replace(/^"|"$/g, ''); } return cc; @@ -19926,14 +19977,14 @@ module.exports = class CachePolicy { /***/ }), /***/ 9898: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const EventEmitter = __nccwpck_require3_(2361); -const tls = __nccwpck_require3_(4404); -const http2 = __nccwpck_require3_(5158); -const QuickLRU = __nccwpck_require3_(9273); +const EventEmitter = __nccwpck_require__(2361); +const tls = __nccwpck_require__(4404); +const http2 = __nccwpck_require__(5158); +const QuickLRU = __nccwpck_require__(9273); const kCurrentStreamsCount = Symbol('currentStreamsCount'); const kRequest = Symbol('request'); @@ -20604,17 +20655,17 @@ module.exports = { /***/ }), /***/ 7167: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const http = __nccwpck_require3_(3685); -const https = __nccwpck_require3_(5687); -const resolveALPN = __nccwpck_require3_(6624); -const QuickLRU = __nccwpck_require3_(9273); -const Http2ClientRequest = __nccwpck_require3_(9632); -const calculateServerName = __nccwpck_require3_(1982); -const urlToOptions = __nccwpck_require3_(2686); +const http = __nccwpck_require__(3685); +const https = __nccwpck_require__(5687); +const resolveALPN = __nccwpck_require__(6624); +const QuickLRU = __nccwpck_require__(9273); +const Http2ClientRequest = __nccwpck_require__(9632); +const calculateServerName = __nccwpck_require__(1982); +const urlToOptions = __nccwpck_require__(2686); const cache = new QuickLRU({maxSize: 100}); const queue = new Map(); @@ -20761,17 +20812,17 @@ module.exports.protocolCache = cache; /***/ }), /***/ 9632: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const http2 = __nccwpck_require3_(5158); -const {Writable} = __nccwpck_require3_(2781); -const {Agent, globalAgent} = __nccwpck_require3_(9898); -const IncomingMessage = __nccwpck_require3_(2575); -const urlToOptions = __nccwpck_require3_(2686); -const proxyEvents = __nccwpck_require3_(1818); -const isRequestPseudoHeader = __nccwpck_require3_(1199); +const http2 = __nccwpck_require__(5158); +const {Writable} = __nccwpck_require__(2781); +const {Agent, globalAgent} = __nccwpck_require__(9898); +const IncomingMessage = __nccwpck_require__(2575); +const urlToOptions = __nccwpck_require__(2686); +const proxyEvents = __nccwpck_require__(1818); +const isRequestPseudoHeader = __nccwpck_require__(1199); const { ERR_INVALID_ARG_TYPE, ERR_INVALID_PROTOCOL, @@ -20779,7 +20830,7 @@ const { ERR_INVALID_HTTP_TOKEN, ERR_HTTP_INVALID_HEADER_VALUE, ERR_INVALID_CHAR -} = __nccwpck_require3_(7087); +} = __nccwpck_require__(7087); const { HTTP2_HEADER_STATUS, @@ -21214,11 +21265,11 @@ module.exports = ClientRequest; /***/ }), /***/ 2575: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const {Readable} = __nccwpck_require3_(2781); +const {Readable} = __nccwpck_require__(2781); class IncomingMessage extends Readable { constructor(socket, highWaterMark) { @@ -21280,15 +21331,15 @@ module.exports = IncomingMessage; /***/ }), /***/ 4645: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const http2 = __nccwpck_require3_(5158); -const agent = __nccwpck_require3_(9898); -const ClientRequest = __nccwpck_require3_(9632); -const IncomingMessage = __nccwpck_require3_(2575); -const auto = __nccwpck_require3_(7167); +const http2 = __nccwpck_require__(5158); +const agent = __nccwpck_require__(9898); +const ClientRequest = __nccwpck_require__(9632); +const IncomingMessage = __nccwpck_require__(2575); +const auto = __nccwpck_require__(7167); const request = (url, options, callback) => { return new ClientRequest(url, options, callback); @@ -21316,11 +21367,11 @@ module.exports = { /***/ }), /***/ 1982: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const net = __nccwpck_require3_(1808); +const net = __nccwpck_require__(1808); /* istanbul ignore file: https://github.com/nodejs/node/blob/v13.0.1/lib/_http_agent.js */ module.exports = options => { @@ -21500,7 +21551,7 @@ module.exports = function isExtglob(str) { /***/ }), /***/ 4466: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /*! * is-glob @@ -21509,7 +21560,7 @@ module.exports = function isExtglob(str) { * Released under the MIT License. */ -var isExtglob = __nccwpck_require3_(6435); +var isExtglob = __nccwpck_require__(6435); var chars = { '{': '}', '(': ')', '[': ']'}; var strictCheck = function(str) { if (str[0] === '!') { @@ -21794,14 +21845,13 @@ exports.parse = function (s) { /***/ }), /***/ 1531: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const EventEmitter = __nccwpck_require3_(2361); -const JSONB = __nccwpck_require3_(2820); -const compressBrotli = __nccwpck_require3_(5728); +const EventEmitter = __nccwpck_require__(2361); +const JSONB = __nccwpck_require__(2820); const loadStore = options => { const adapters = { @@ -21850,13 +21900,10 @@ class Keyv extends EventEmitter { this.opts.store = loadStore(adapterOptions); } - if (this.opts.compress) { - const brotli = compressBrotli(this.opts.compress.opts); - this.opts.serialize = async ({value, expires}) => brotli.serialize({value: await brotli.compress(value), expires}); - this.opts.deserialize = async data => { - const {value, expires} = brotli.deserialize(data); - return {value: await brotli.decompress(value), expires}; - }; + if (this.opts.compression) { + const compression = this.opts.compression; + this.opts.serialize = compression.serialize.bind(compression); + this.opts.deserialize = compression.deserialize.bind(compression); } if (typeof this.opts.store.on === 'function' && emitErrors) { @@ -21869,7 +21916,7 @@ class Keyv extends EventEmitter { for await (const [key, raw] of typeof iterator === 'function' ? iterator(this.opts.store.namespace) : iterator) { - const data = this.opts.deserialize(raw); + const data = await this.opts.deserialize(raw); if (this.opts.store.namespace && !key.includes(this.opts.store.namespace)) { continue; } @@ -21921,7 +21968,7 @@ class Keyv extends EventEmitter { for (const key of keyPrefixed) { promises.push(Promise.resolve() .then(() => store.get(key)) - .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : data) + .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data)) .then(data => { if (data === undefined || data === null) { return undefined; @@ -21943,13 +21990,13 @@ class Keyv extends EventEmitter { data.push(value.value); } - return data.every(x => x === undefined) ? [] : data; + return data; }); } return Promise.resolve() .then(() => isArray ? store.getMany(keyPrefixed) : store.get(keyPrefixed)) - .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : data) + .then(data => (typeof data === 'string') ? this.opts.deserialize(data) : (this.opts.compression ? this.opts.deserialize(data) : data)) .then(data => { if (data === undefined || data === null) { return undefined; @@ -21958,10 +22005,6 @@ class Keyv extends EventEmitter { if (isArray) { const result = []; - if (data.length === 0) { - return []; - } - for (let row of data) { if ((typeof row === 'string')) { row = this.opts.deserialize(row); @@ -21980,7 +22023,7 @@ class Keyv extends EventEmitter { } } - return result.every(x => x === undefined) ? [] : result; + return result; } if (typeof data.expires === 'number' && Date.now() > data.expires) { @@ -22092,7 +22135,7 @@ module.exports = object => { /***/ }), /***/ 2578: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -22103,7 +22146,7 @@ module.exports = object => { * Copyright (c) 2014-2020 Teambition * Licensed under the MIT license. */ -const Stream = __nccwpck_require3_(2781) +const Stream = __nccwpck_require__(2781) const PassThrough = Stream.PassThrough const slice = Array.prototype.slice @@ -22244,15 +22287,15 @@ function pauseStreams (streams, options) { /***/ }), /***/ 6228: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const util = __nccwpck_require3_(3837); -const braces = __nccwpck_require3_(610); -const picomatch = __nccwpck_require3_(8569); -const utils = __nccwpck_require3_(479); +const util = __nccwpck_require__(3837); +const braces = __nccwpck_require__(610); +const picomatch = __nccwpck_require__(8569); +const utils = __nccwpck_require__(479); const isEmptyString = val => val === '' || val === './'; /** @@ -22759,7 +22802,7 @@ module.exports = (fromStream, toStream) => { /***/ }), /***/ 467: -/***/ ((module, exports, __nccwpck_require3_) => { +/***/ ((module, exports, __nccwpck_require__) => { "use strict"; @@ -22768,12 +22811,12 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var Stream = _interopDefault(__nccwpck_require3_(2781)); -var http = _interopDefault(__nccwpck_require3_(3685)); -var Url = _interopDefault(__nccwpck_require3_(7310)); -var whatwgUrl = _interopDefault(__nccwpck_require3_(8665)); -var https = _interopDefault(__nccwpck_require3_(5687)); -var zlib = _interopDefault(__nccwpck_require3_(9796)); +var Stream = _interopDefault(__nccwpck_require__(2781)); +var http = _interopDefault(__nccwpck_require__(3685)); +var Url = _interopDefault(__nccwpck_require__(7310)); +var whatwgUrl = _interopDefault(__nccwpck_require__(8665)); +var https = _interopDefault(__nccwpck_require__(5687)); +var zlib = _interopDefault(__nccwpck_require__(9796)); // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js @@ -22924,7 +22967,7 @@ FetchError.prototype.name = 'FetchError'; let convert; try { - convert = (__nccwpck_require3_(2877).convert); + convert = (__nccwpck_require__(2877).convert); } catch (e) {} const INTERNALS = Symbol('Body internals'); @@ -24129,10 +24172,6 @@ function getNodeRequestOptions(request) { agent = agent(parsedURL); } - if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close'); - } - // HTTP-network fetch step 4.2 // chunked encoding is handled by Node.js @@ -24181,6 +24220,20 @@ const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); }; +/** + * isSameProtocol reports whether the two provided URLs use the same protocol. + * + * Both domains must already be in canonical form. + * @param {string|URL} original + * @param {string|URL} destination + */ +const isSameProtocol = function isSameProtocol(destination, original) { + const orig = new URL$1(original).protocol; + const dest = new URL$1(destination).protocol; + + return orig === dest; +}; + /** * Fetch function * @@ -24212,7 +24265,7 @@ function fetch(url, opts) { let error = new AbortError('The user aborted a request.'); reject(error); if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error); + destroyStream(request.body, error); } if (!response || !response.body) return; response.body.emit('error', error); @@ -24253,9 +24306,43 @@ function fetch(url, opts) { req.on('error', function (err) { reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + + if (response && response.body) { + destroyStream(response.body, err); + } + finalize(); }); + fixResponseChunkedTransferBadEnding(req, function (err) { + if (signal && signal.aborted) { + return; + } + + if (response && response.body) { + destroyStream(response.body, err); + } + }); + + /* c8 ignore next 18 */ + if (parseInt(process.version.substring(1)) < 14) { + // Before Node.js 14, pipeline() does not fully support async iterators and does not always + // properly handle when the socket close/end events are out of order. + req.on('socket', function (s) { + s.addListener('close', function (hadError) { + // if a data listener is still present we didn't end cleanly + const hasDataListener = s.listenerCount('data') > 0; + + // if end happened before close but the socket didn't emit an error, do it now + if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + response.body.emit('error', err); + } + }); + }); + } + req.on('response', function (res) { clearTimeout(reqTimeout); @@ -24327,7 +24414,7 @@ function fetch(url, opts) { size: request.size }; - if (!isDomainOrSubdomain(request.url, locationURL)) { + if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { requestOpts.headers.delete(name); } @@ -24420,6 +24507,13 @@ function fetch(url, opts) { response = new Response(body, response_options); resolve(response); }); + raw.on('end', function () { + // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. + if (!response) { + response = new Response(body, response_options); + resolve(response); + } + }); return; } @@ -24439,6 +24533,44 @@ function fetch(url, opts) { writeToStream(req, request); }); } +function fixResponseChunkedTransferBadEnding(request, errorCallback) { + let socket; + + request.on('socket', function (s) { + socket = s; + }); + + request.on('response', function (response) { + const headers = response.headers; + + if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { + response.once('close', function (hadError) { + // tests for socket presence, as in some situations the + // the 'socket' event is not triggered for the request + // (happens in deno), avoids `TypeError` + // if a data listener is still present we didn't end cleanly + const hasDataListener = socket && socket.listenerCount('data') > 0; + + if (hasDataListener && !hadError) { + const err = new Error('Premature close'); + err.code = 'ERR_STREAM_PREMATURE_CLOSE'; + errorCallback(err); + } + }); + } + }); +} + +function destroyStream(stream, err) { + if (stream.destroy) { + stream.destroy(err); + } else { + // node < 8 + stream.emit('error', err); + stream.end(); + } +} + /** * Redirect code matching * @@ -24459,6 +24591,7 @@ exports.Headers = Headers; exports.Request = Request; exports.Response = Response; exports.FetchError = FetchError; +exports.AbortError = AbortError; /***/ }), @@ -24688,9 +24821,9 @@ module.exports = normalizeUrl; /***/ }), /***/ 1223: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var wrappy = __nccwpck_require3_(2940) +var wrappy = __nccwpck_require__(2940) module.exports = wrappy(once) module.exports.strict = wrappy(onceStrict) @@ -24856,23 +24989,23 @@ module.exports.CancelError = CancelError; /***/ }), /***/ 8569: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -module.exports = __nccwpck_require3_(3322); +module.exports = __nccwpck_require__(3322); /***/ }), /***/ 6099: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const path = __nccwpck_require3_(1017); +const path = __nccwpck_require__(1017); const WIN_SLASH = '\\\\/'; const WIN_NO_SLASH = `[^${WIN_SLASH}]`; @@ -25054,13 +25187,13 @@ module.exports = { /***/ }), /***/ 2139: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const constants = __nccwpck_require3_(6099); -const utils = __nccwpck_require3_(479); +const constants = __nccwpck_require__(6099); +const utils = __nccwpck_require__(479); /** * Constants @@ -26153,16 +26286,16 @@ module.exports = parse; /***/ }), /***/ 3322: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const path = __nccwpck_require3_(1017); -const scan = __nccwpck_require3_(2429); -const parse = __nccwpck_require3_(2139); -const utils = __nccwpck_require3_(479); -const constants = __nccwpck_require3_(6099); +const path = __nccwpck_require__(1017); +const scan = __nccwpck_require__(2429); +const parse = __nccwpck_require__(2139); +const utils = __nccwpck_require__(479); +const constants = __nccwpck_require__(6099); const isObject = val => val && typeof val === 'object' && !Array.isArray(val); /** @@ -26503,12 +26636,12 @@ module.exports = picomatch; /***/ }), /***/ 2429: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const utils = __nccwpck_require3_(479); +const utils = __nccwpck_require__(479); const { CHAR_ASTERISK, /* * */ CHAR_AT, /* @ */ @@ -26525,7 +26658,7 @@ const { CHAR_RIGHT_CURLY_BRACE, /* } */ CHAR_RIGHT_PARENTHESES, /* ) */ CHAR_RIGHT_SQUARE_BRACKET /* ] */ -} = __nccwpck_require3_(6099); +} = __nccwpck_require__(6099); const isPathSeparator = code => { return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH; @@ -26902,19 +27035,19 @@ module.exports = scan; /***/ }), /***/ 479: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const path = __nccwpck_require3_(1017); +const path = __nccwpck_require__(1017); const win32 = process.platform === 'win32'; const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL -} = __nccwpck_require3_(6099); +} = __nccwpck_require__(6099); exports.isObject = val => val !== null && typeof val === 'object' && !Array.isArray(val); exports.hasRegexChars = str => REGEX_SPECIAL_CHARS.test(str); @@ -26974,11 +27107,11 @@ exports.wrapOutput = (input, state = {}, options = {}) => { /***/ }), /***/ 8341: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -var once = __nccwpck_require3_(1223) -var eos = __nccwpck_require3_(1205) -var fs = __nccwpck_require3_(7147) // we only need fs to get the ReadStream and WriteStream prototypes +var once = __nccwpck_require__(1223) +var eos = __nccwpck_require__(1205) +var fs = __nccwpck_require__(7147) // we only need fs to get the ReadStream and WriteStream prototypes var noop = function () {} var ancient = /^v?\.0/.test(process.version) @@ -27210,11 +27343,11 @@ module.exports = QuickLRU; /***/ }), /***/ 6624: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const tls = __nccwpck_require3_(4404); +const tls = __nccwpck_require__(4404); module.exports = (options = {}, connect = tls.connect) => new Promise((resolve, reject) => { let timeout = false; @@ -27261,13 +27394,13 @@ module.exports = (options = {}, connect = tls.connect) => new Promise((resolve, /***/ }), /***/ 9004: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const Readable = (__nccwpck_require3_(2781).Readable); -const lowercaseKeys = __nccwpck_require3_(9662); +const Readable = (__nccwpck_require__(2781).Readable); +const lowercaseKeys = __nccwpck_require__(9662); class Response extends Readable { constructor(statusCode, headers, body, url) { @@ -27344,12 +27477,12 @@ module.exports = reusify /***/ }), /***/ 5288: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /*! run-parallel. MIT License. Feross Aboukhadijeh */ module.exports = runParallel -const queueMicrotask = __nccwpck_require3_(9795) +const queueMicrotask = __nccwpck_require__(9795) function runParallel (tasks, cb) { let results, pending, keys @@ -27402,7 +27535,7 @@ function runParallel (tasks, cb) { /***/ }), /***/ 2043: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { ;(function (sax) { // wrapper for non-node envs sax.parser = function (strict, opt) { return new SAXParser(strict, opt) } @@ -27566,7 +27699,7 @@ function runParallel (tasks, cb) { var Stream try { - Stream = (__nccwpck_require3_(2781).Stream) + Stream = (__nccwpck_require__(2781).Stream) } catch (ex) { Stream = function () {} } @@ -27636,7 +27769,7 @@ function runParallel (tasks, cb) { typeof Buffer.isBuffer === 'function' && Buffer.isBuffer(data)) { if (!this._decoder) { - var SD = (__nccwpck_require3_(1576).StringDecoder) + var SD = (__nccwpck_require__(1576).StringDecoder) this._decoder = new SD('utf8') } data = this._decoder.write(data) @@ -28968,13 +29101,13 @@ function runParallel (tasks, cb) { } }()) } -})( false ? 0 : exports) +})( false ? 0 : exports) /***/ }), /***/ 1861: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; /*! @@ -28986,7 +29119,7 @@ function runParallel (tasks, cb) { -const isNumber = __nccwpck_require3_(5680); +const isNumber = __nccwpck_require__(5680); const toRegexRange = (min, max, options) => { if (isNumber(min) === false) { @@ -29270,13 +29403,13 @@ module.exports = toRegexRange; /***/ }), /***/ 4256: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -var punycode = __nccwpck_require3_(5477); -var mappingTable = __nccwpck_require3_(2020); +var punycode = __nccwpck_require__(5477); +var mappingTable = __nccwpck_require__(2020); var PROCESSING_OPTIONS = { TRANSITIONAL: 0, @@ -29471,26 +29604,26 @@ module.exports.PROCESSING_OPTIONS = PROCESSING_OPTIONS; /***/ }), /***/ 4294: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -module.exports = __nccwpck_require3_(4219); +module.exports = __nccwpck_require__(4219); /***/ }), /***/ 4219: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -var net = __nccwpck_require3_(1808); -var tls = __nccwpck_require3_(4404); -var http = __nccwpck_require3_(3685); -var https = __nccwpck_require3_(5687); -var events = __nccwpck_require3_(2361); -var assert = __nccwpck_require3_(9491); -var util = __nccwpck_require3_(3837); +var net = __nccwpck_require__(1808); +var tls = __nccwpck_require__(4404); +var http = __nccwpck_require__(3685); +var https = __nccwpck_require__(5687); +var events = __nccwpck_require__(2361); +var assert = __nccwpck_require__(9491); +var util = __nccwpck_require__(3837); exports.httpOverHttp = httpOverHttp; @@ -29777,7 +29910,7 @@ exports.getUserAgent = getUserAgent; /***/ }), /***/ 5840: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29840,30 +29973,30 @@ Object.defineProperty(exports, "parse", ({ } })); -var _v = _interopRequireDefault(__nccwpck_require3_(8628)); +var _v = _interopRequireDefault(__nccwpck_require__(8628)); -var _v2 = _interopRequireDefault(__nccwpck_require3_(6409)); +var _v2 = _interopRequireDefault(__nccwpck_require__(6409)); -var _v3 = _interopRequireDefault(__nccwpck_require3_(5122)); +var _v3 = _interopRequireDefault(__nccwpck_require__(5122)); -var _v4 = _interopRequireDefault(__nccwpck_require3_(9120)); +var _v4 = _interopRequireDefault(__nccwpck_require__(9120)); -var _nil = _interopRequireDefault(__nccwpck_require3_(5332)); +var _nil = _interopRequireDefault(__nccwpck_require__(5332)); -var _version = _interopRequireDefault(__nccwpck_require3_(1595)); +var _version = _interopRequireDefault(__nccwpck_require__(1595)); -var _validate = _interopRequireDefault(__nccwpck_require3_(6900)); +var _validate = _interopRequireDefault(__nccwpck_require__(6900)); -var _stringify = _interopRequireDefault(__nccwpck_require3_(8950)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8950)); -var _parse = _interopRequireDefault(__nccwpck_require3_(2746)); +var _parse = _interopRequireDefault(__nccwpck_require__(2746)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /***/ }), /***/ 4569: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29873,7 +30006,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _crypto = _interopRequireDefault(__nccwpck_require3_(6113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -29908,7 +30041,7 @@ exports["default"] = _default; /***/ }), /***/ 2746: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29918,7 +30051,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require3_(6900)); +var _validate = _interopRequireDefault(__nccwpck_require__(6900)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -29975,7 +30108,7 @@ exports["default"] = _default; /***/ }), /***/ 807: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -29985,7 +30118,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = rng; -var _crypto = _interopRequireDefault(__nccwpck_require3_(6113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30006,7 +30139,7 @@ function rng() { /***/ }), /***/ 5274: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30016,7 +30149,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _crypto = _interopRequireDefault(__nccwpck_require3_(6113)); +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30036,7 +30169,7 @@ exports["default"] = _default; /***/ }), /***/ 8950: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30046,7 +30179,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require3_(6900)); +var _validate = _interopRequireDefault(__nccwpck_require__(6900)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30082,7 +30215,7 @@ exports["default"] = _default; /***/ }), /***/ 8628: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30092,9 +30225,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _rng = _interopRequireDefault(__nccwpck_require3_(807)); +var _rng = _interopRequireDefault(__nccwpck_require__(807)); -var _stringify = _interopRequireDefault(__nccwpck_require3_(8950)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8950)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30196,7 +30329,7 @@ exports["default"] = _default; /***/ }), /***/ 6409: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30206,9 +30339,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _v = _interopRequireDefault(__nccwpck_require3_(5998)); +var _v = _interopRequireDefault(__nccwpck_require__(5998)); -var _md = _interopRequireDefault(__nccwpck_require3_(4569)); +var _md = _interopRequireDefault(__nccwpck_require__(4569)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30219,7 +30352,7 @@ exports["default"] = _default; /***/ }), /***/ 5998: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30230,9 +30363,9 @@ Object.defineProperty(exports, "__esModule", ({ exports["default"] = _default; exports.URL = exports.DNS = void 0; -var _stringify = _interopRequireDefault(__nccwpck_require3_(8950)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8950)); -var _parse = _interopRequireDefault(__nccwpck_require3_(2746)); +var _parse = _interopRequireDefault(__nccwpck_require__(2746)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30304,7 +30437,7 @@ function _default(name, version, hashfunc) { /***/ }), /***/ 5122: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30314,9 +30447,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _rng = _interopRequireDefault(__nccwpck_require3_(807)); +var _rng = _interopRequireDefault(__nccwpck_require__(807)); -var _stringify = _interopRequireDefault(__nccwpck_require3_(8950)); +var _stringify = _interopRequireDefault(__nccwpck_require__(8950)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30348,7 +30481,7 @@ exports["default"] = _default; /***/ }), /***/ 9120: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30358,9 +30491,9 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _v = _interopRequireDefault(__nccwpck_require3_(5998)); +var _v = _interopRequireDefault(__nccwpck_require__(5998)); -var _sha = _interopRequireDefault(__nccwpck_require3_(5274)); +var _sha = _interopRequireDefault(__nccwpck_require__(5274)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30371,7 +30504,7 @@ exports["default"] = _default; /***/ }), /***/ 6900: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30381,7 +30514,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _regex = _interopRequireDefault(__nccwpck_require3_(814)); +var _regex = _interopRequireDefault(__nccwpck_require__(814)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30395,7 +30528,7 @@ exports["default"] = _default; /***/ }), /***/ 1595: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -30405,7 +30538,7 @@ Object.defineProperty(exports, "__esModule", ({ })); exports["default"] = void 0; -var _validate = _interopRequireDefault(__nccwpck_require3_(6900)); +var _validate = _interopRequireDefault(__nccwpck_require__(6900)); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -30620,11 +30753,11 @@ conversions["RegExp"] = function (V, opts) { /***/ }), /***/ 7537: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -const usm = __nccwpck_require3_(2158); +const usm = __nccwpck_require__(2158); exports.implementation = class URLImpl { constructor(constructorArgs) { @@ -30828,14 +30961,14 @@ exports.implementation = class URLImpl { /***/ }), /***/ 3394: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const conversions = __nccwpck_require3_(4886); -const utils = __nccwpck_require3_(3185); -const Impl = __nccwpck_require3_(7537); +const conversions = __nccwpck_require__(4886); +const utils = __nccwpck_require__(3185); +const Impl = __nccwpck_require__(7537); const impl = utils.implSymbol; @@ -31032,31 +31165,31 @@ module.exports = { /***/ }), /***/ 8665: -/***/ ((__unused_webpack_module, exports, __nccwpck_require3_) => { +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; -exports.URL = __nccwpck_require3_(3394)["interface"]; -exports.serializeURL = __nccwpck_require3_(2158).serializeURL; -exports.serializeURLOrigin = __nccwpck_require3_(2158).serializeURLOrigin; -exports.basicURLParse = __nccwpck_require3_(2158).basicURLParse; -exports.setTheUsername = __nccwpck_require3_(2158).setTheUsername; -exports.setThePassword = __nccwpck_require3_(2158).setThePassword; -exports.serializeHost = __nccwpck_require3_(2158).serializeHost; -exports.serializeInteger = __nccwpck_require3_(2158).serializeInteger; -exports.parseURL = __nccwpck_require3_(2158).parseURL; +exports.URL = __nccwpck_require__(3394)["interface"]; +exports.serializeURL = __nccwpck_require__(2158).serializeURL; +exports.serializeURLOrigin = __nccwpck_require__(2158).serializeURLOrigin; +exports.basicURLParse = __nccwpck_require__(2158).basicURLParse; +exports.setTheUsername = __nccwpck_require__(2158).setTheUsername; +exports.setThePassword = __nccwpck_require__(2158).setThePassword; +exports.serializeHost = __nccwpck_require__(2158).serializeHost; +exports.serializeInteger = __nccwpck_require__(2158).serializeInteger; +exports.parseURL = __nccwpck_require__(2158).parseURL; /***/ }), /***/ 2158: -/***/ ((module, __unused_webpack_exports, __nccwpck_require3_) => { +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const punycode = __nccwpck_require3_(5477); -const tr46 = __nccwpck_require3_(4256); +const punycode = __nccwpck_require__(5477); +const tr46 = __nccwpck_require__(4256); const specialSchemes = { ftp: 21, @@ -32443,7 +32576,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 3337: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -32451,9 +32584,9 @@ function wrappy (fn, cb) { var builder, defaults, escapeCDATA, requiresCDATA, wrapCDATA, hasProp = {}.hasOwnProperty; - builder = __nccwpck_require3_(2958); + builder = __nccwpck_require__(2958); - defaults = (__nccwpck_require3_(7251).defaults); + defaults = (__nccwpck_require__(7251).defaults); requiresCDATA = function(entry) { return typeof entry === "string" && (entry.indexOf('&') >= 0 || entry.indexOf('>') >= 0 || entry.indexOf('<') >= 0); @@ -32656,7 +32789,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 3314: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -32666,17 +32799,17 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - sax = __nccwpck_require3_(2043); + sax = __nccwpck_require__(2043); - events = __nccwpck_require3_(2361); + events = __nccwpck_require__(2361); - bom = __nccwpck_require3_(2624); + bom = __nccwpck_require__(2624); - processors = __nccwpck_require3_(9236); + processors = __nccwpck_require__(9236); - setImmediate = (__nccwpck_require3_(9512).setImmediate); + setImmediate = (__nccwpck_require__(9512).setImmediate); - defaults = (__nccwpck_require3_(7251).defaults); + defaults = (__nccwpck_require__(7251).defaults); isEmpty = function(thing) { return typeof thing === "object" && (thing != null) && Object.keys(thing).length === 0; @@ -32801,14 +32934,14 @@ function wrappy (fn, cb) { this.saxParser.onopentag = (function(_this) { return function(node) { var key, newValue, obj, processedKey, ref; - obj = {}; + obj = Object.create(null); obj[charkey] = ""; if (!_this.options.ignoreAttrs) { ref = node.attributes; for (key in ref) { if (!hasProp.call(ref, key)) continue; if (!(attrkey in obj) && !_this.options.mergeAttrs) { - obj[attrkey] = {}; + obj[attrkey] = Object.create(null); } newValue = _this.options.attrValueProcessors ? processItem(_this.options.attrValueProcessors, node.attributes[key], key) : node.attributes[key]; processedKey = _this.options.attrNameProcessors ? processItem(_this.options.attrNameProcessors, key) : key; @@ -32858,7 +32991,11 @@ function wrappy (fn, cb) { } } if (isEmpty(obj)) { - obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr; + if (typeof _this.options.emptyTag === 'function') { + obj = _this.options.emptyTag(); + } else { + obj = _this.options.emptyTag !== '' ? _this.options.emptyTag : emptyStr; + } } if (_this.options.validator != null) { xpath = "/" + ((function() { @@ -32882,7 +33019,7 @@ function wrappy (fn, cb) { } if (_this.options.explicitChildren && !_this.options.mergeAttrs && typeof obj === 'object') { if (!_this.options.preserveChildrenOrder) { - node = {}; + node = Object.create(null); if (_this.options.attrkey in obj) { node[_this.options.attrkey] = obj[_this.options.attrkey]; delete obj[_this.options.attrkey]; @@ -32897,7 +33034,7 @@ function wrappy (fn, cb) { obj = node; } else if (s) { s[_this.options.childkey] = s[_this.options.childkey] || []; - objClone = {}; + objClone = Object.create(null); for (key in obj) { if (!hasProp.call(obj, key)) continue; objClone[key] = obj[key]; @@ -32914,7 +33051,7 @@ function wrappy (fn, cb) { } else { if (_this.options.explicitRoot) { old = obj; - obj = {}; + obj = Object.create(null); obj[nodeName] = old; } _this.resultObject = obj; @@ -33085,7 +33222,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 6189: -/***/ (function(__unused_webpack_module, exports, __nccwpck_require3_) { +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33094,13 +33231,13 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - defaults = __nccwpck_require3_(7251); + defaults = __nccwpck_require__(7251); - builder = __nccwpck_require3_(3337); + builder = __nccwpck_require__(3337); - parser = __nccwpck_require3_(3314); + parser = __nccwpck_require__(3314); - processors = __nccwpck_require3_(9236); + processors = __nccwpck_require__(9236); exports.defaults = defaults.defaults; @@ -33287,15 +33424,15 @@ function wrappy (fn, cb) { /***/ }), /***/ 8376: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, XMLAttribute, XMLNode; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); module.exports = XMLAttribute = (function() { function XMLAttribute(parent, name, value) { @@ -33402,7 +33539,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 333: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33410,9 +33547,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLCharacterData = __nccwpck_require3_(7709); + XMLCharacterData = __nccwpck_require__(7709); module.exports = XMLCData = (function(superClass) { extend(XMLCData, superClass); @@ -33445,7 +33582,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 7709: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33453,7 +33590,7 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); module.exports = XMLCharacterData = (function(superClass) { extend(XMLCharacterData, superClass); @@ -33531,7 +33668,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 4407: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33539,9 +33676,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLCharacterData = __nccwpck_require3_(7709); + XMLCharacterData = __nccwpck_require__(7709); module.exports = XMLComment = (function(superClass) { extend(XMLComment, superClass); @@ -33574,15 +33711,15 @@ function wrappy (fn, cb) { /***/ }), /***/ 7465: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var XMLDOMConfiguration, XMLDOMErrorHandler, XMLDOMStringList; - XMLDOMErrorHandler = __nccwpck_require3_(6744); + XMLDOMErrorHandler = __nccwpck_require__(6744); - XMLDOMStringList = __nccwpck_require3_(7028); + XMLDOMStringList = __nccwpck_require__(7028); module.exports = XMLDOMConfiguration = (function() { function XMLDOMConfiguration() { @@ -33742,7 +33879,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 1015: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33750,9 +33887,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDTDAttList = (function(superClass) { extend(XMLDTDAttList, superClass); @@ -33804,7 +33941,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 2421: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33812,9 +33949,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDTDElement = (function(superClass) { extend(XMLDTDElement, superClass); @@ -33849,7 +33986,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 53: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33857,11 +33994,11 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require3_(8229).isObject); + isObject = (__nccwpck_require__(8229).isObject); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDTDEntity = (function(superClass) { extend(XMLDTDEntity, superClass); @@ -33953,7 +34090,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 2837: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -33961,9 +34098,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDTDNotation = (function(superClass) { extend(XMLDTDNotation, superClass); @@ -34012,7 +34149,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 6364: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -34020,11 +34157,11 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require3_(8229).isObject); + isObject = (__nccwpck_require__(8229).isObject); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDeclaration = (function(superClass) { extend(XMLDeclaration, superClass); @@ -34062,7 +34199,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 1801: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -34070,21 +34207,21 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isObject = (__nccwpck_require3_(8229).isObject); + isObject = (__nccwpck_require__(8229).isObject); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLDTDAttList = __nccwpck_require3_(1015); + XMLDTDAttList = __nccwpck_require__(1015); - XMLDTDEntity = __nccwpck_require3_(53); + XMLDTDEntity = __nccwpck_require__(53); - XMLDTDElement = __nccwpck_require3_(2421); + XMLDTDElement = __nccwpck_require__(2421); - XMLDTDNotation = __nccwpck_require3_(2837); + XMLDTDNotation = __nccwpck_require__(2837); - XMLNamedNodeMap = __nccwpck_require3_(4361); + XMLNamedNodeMap = __nccwpck_require__(4361); module.exports = XMLDocType = (function(superClass) { extend(XMLDocType, superClass); @@ -34255,7 +34392,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 3730: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -34263,19 +34400,19 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - isPlainObject = (__nccwpck_require3_(8229).isPlainObject); + isPlainObject = (__nccwpck_require__(8229).isPlainObject); - XMLDOMImplementation = __nccwpck_require3_(8310); + XMLDOMImplementation = __nccwpck_require__(8310); - XMLDOMConfiguration = __nccwpck_require3_(7465); + XMLDOMConfiguration = __nccwpck_require__(7465); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLStringifier = __nccwpck_require3_(8594); + XMLStringifier = __nccwpck_require__(8594); - XMLStringWriter = __nccwpck_require3_(5913); + XMLStringWriter = __nccwpck_require__(5913); module.exports = XMLDocument = (function(superClass) { extend(XMLDocument, superClass); @@ -34504,50 +34641,50 @@ function wrappy (fn, cb) { /***/ }), /***/ 7356: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, WriterState, XMLAttribute, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDocument, XMLDocumentCB, XMLElement, XMLProcessingInstruction, XMLRaw, XMLStringWriter, XMLStringifier, XMLText, getValue, isFunction, isObject, isPlainObject, ref, hasProp = {}.hasOwnProperty; - ref = __nccwpck_require3_(8229), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue; + ref = __nccwpck_require__(8229), isObject = ref.isObject, isFunction = ref.isFunction, isPlainObject = ref.isPlainObject, getValue = ref.getValue; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLDocument = __nccwpck_require3_(3730); + XMLDocument = __nccwpck_require__(3730); - XMLElement = __nccwpck_require3_(9437); + XMLElement = __nccwpck_require__(9437); - XMLCData = __nccwpck_require3_(333); + XMLCData = __nccwpck_require__(333); - XMLComment = __nccwpck_require3_(4407); + XMLComment = __nccwpck_require__(4407); - XMLRaw = __nccwpck_require3_(6329); + XMLRaw = __nccwpck_require__(6329); - XMLText = __nccwpck_require3_(1318); + XMLText = __nccwpck_require__(1318); - XMLProcessingInstruction = __nccwpck_require3_(6939); + XMLProcessingInstruction = __nccwpck_require__(6939); - XMLDeclaration = __nccwpck_require3_(6364); + XMLDeclaration = __nccwpck_require__(6364); - XMLDocType = __nccwpck_require3_(1801); + XMLDocType = __nccwpck_require__(1801); - XMLDTDAttList = __nccwpck_require3_(1015); + XMLDTDAttList = __nccwpck_require__(1015); - XMLDTDEntity = __nccwpck_require3_(53); + XMLDTDEntity = __nccwpck_require__(53); - XMLDTDElement = __nccwpck_require3_(2421); + XMLDTDElement = __nccwpck_require__(2421); - XMLDTDNotation = __nccwpck_require3_(2837); + XMLDTDNotation = __nccwpck_require__(2837); - XMLAttribute = __nccwpck_require3_(8376); + XMLAttribute = __nccwpck_require__(8376); - XMLStringifier = __nccwpck_require3_(8594); + XMLStringifier = __nccwpck_require__(8594); - XMLStringWriter = __nccwpck_require3_(5913); + XMLStringWriter = __nccwpck_require__(5913); - WriterState = __nccwpck_require3_(9766); + WriterState = __nccwpck_require__(9766); module.exports = XMLDocumentCB = (function() { function XMLDocumentCB(options, onData, onEnd) { @@ -35039,7 +35176,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 3590: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -35047,9 +35184,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); module.exports = XMLDummy = (function(superClass) { extend(XMLDummy, superClass); @@ -35077,7 +35214,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 9437: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -35085,15 +35222,15 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - ref = __nccwpck_require3_(8229), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue; + ref = __nccwpck_require__(8229), isObject = ref.isObject, isFunction = ref.isFunction, getValue = ref.getValue; - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLAttribute = __nccwpck_require3_(8376); + XMLAttribute = __nccwpck_require__(8376); - XMLNamedNodeMap = __nccwpck_require3_(4361); + XMLNamedNodeMap = __nccwpck_require__(4361); module.exports = XMLElement = (function(superClass) { extend(XMLElement, superClass); @@ -35447,14 +35584,14 @@ function wrappy (fn, cb) { /***/ }), /***/ 7608: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var DocumentPosition, NodeType, XMLCData, XMLComment, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLNamedNodeMap, XMLNode, XMLNodeList, XMLProcessingInstruction, XMLRaw, XMLText, getValue, isEmpty, isFunction, isObject, ref1, hasProp = {}.hasOwnProperty; - ref1 = __nccwpck_require3_(8229), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue; + ref1 = __nccwpck_require__(8229), isObject = ref1.isObject, isFunction = ref1.isFunction, isEmpty = ref1.isEmpty, getValue = ref1.getValue; XMLElement = null; @@ -35493,19 +35630,19 @@ function wrappy (fn, cb) { this.children = []; this.baseURI = null; if (!XMLElement) { - XMLElement = __nccwpck_require3_(9437); - XMLCData = __nccwpck_require3_(333); - XMLComment = __nccwpck_require3_(4407); - XMLDeclaration = __nccwpck_require3_(6364); - XMLDocType = __nccwpck_require3_(1801); - XMLRaw = __nccwpck_require3_(6329); - XMLText = __nccwpck_require3_(1318); - XMLProcessingInstruction = __nccwpck_require3_(6939); - XMLDummy = __nccwpck_require3_(3590); - NodeType = __nccwpck_require3_(9267); - XMLNodeList = __nccwpck_require3_(6768); - XMLNamedNodeMap = __nccwpck_require3_(4361); - DocumentPosition = __nccwpck_require3_(2839); + XMLElement = __nccwpck_require__(9437); + XMLCData = __nccwpck_require__(333); + XMLComment = __nccwpck_require__(4407); + XMLDeclaration = __nccwpck_require__(6364); + XMLDocType = __nccwpck_require__(1801); + XMLRaw = __nccwpck_require__(6329); + XMLText = __nccwpck_require__(1318); + XMLProcessingInstruction = __nccwpck_require__(6939); + XMLDummy = __nccwpck_require__(3590); + NodeType = __nccwpck_require__(9267); + XMLNodeList = __nccwpck_require__(6768); + XMLNamedNodeMap = __nccwpck_require__(4361); + DocumentPosition = __nccwpck_require__(2839); } } @@ -36274,7 +36411,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 6939: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -36282,9 +36419,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLCharacterData = __nccwpck_require3_(7709); + XMLCharacterData = __nccwpck_require__(7709); module.exports = XMLProcessingInstruction = (function(superClass) { extend(XMLProcessingInstruction, superClass); @@ -36330,7 +36467,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 6329: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -36338,9 +36475,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLNode = __nccwpck_require3_(7608); + XMLNode = __nccwpck_require__(7608); module.exports = XMLRaw = (function(superClass) { extend(XMLRaw, superClass); @@ -36372,7 +36509,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 8601: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -36380,11 +36517,11 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLWriterBase = __nccwpck_require3_(6752); + XMLWriterBase = __nccwpck_require__(6752); - WriterState = __nccwpck_require3_(9766); + WriterState = __nccwpck_require__(9766); module.exports = XMLStreamWriter = (function(superClass) { extend(XMLStreamWriter, superClass); @@ -36555,7 +36692,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 5913: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -36563,7 +36700,7 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - XMLWriterBase = __nccwpck_require3_(6752); + XMLWriterBase = __nccwpck_require__(6752); module.exports = XMLStringWriter = (function(superClass) { extend(XMLStringWriter, superClass); @@ -36844,7 +36981,7 @@ function wrappy (fn, cb) { /***/ }), /***/ 1318: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { @@ -36852,9 +36989,9 @@ function wrappy (fn, cb) { extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLCharacterData = __nccwpck_require3_(7709); + XMLCharacterData = __nccwpck_require__(7709); module.exports = XMLText = (function(superClass) { extend(XMLText, superClass); @@ -36920,44 +37057,44 @@ function wrappy (fn, cb) { /***/ }), /***/ 6752: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, WriterState, XMLCData, XMLComment, XMLDTDAttList, XMLDTDElement, XMLDTDEntity, XMLDTDNotation, XMLDeclaration, XMLDocType, XMLDummy, XMLElement, XMLProcessingInstruction, XMLRaw, XMLText, XMLWriterBase, assign, hasProp = {}.hasOwnProperty; - assign = (__nccwpck_require3_(8229).assign); + assign = (__nccwpck_require__(8229).assign); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - XMLDeclaration = __nccwpck_require3_(6364); + XMLDeclaration = __nccwpck_require__(6364); - XMLDocType = __nccwpck_require3_(1801); + XMLDocType = __nccwpck_require__(1801); - XMLCData = __nccwpck_require3_(333); + XMLCData = __nccwpck_require__(333); - XMLComment = __nccwpck_require3_(4407); + XMLComment = __nccwpck_require__(4407); - XMLElement = __nccwpck_require3_(9437); + XMLElement = __nccwpck_require__(9437); - XMLRaw = __nccwpck_require3_(6329); + XMLRaw = __nccwpck_require__(6329); - XMLText = __nccwpck_require3_(1318); + XMLText = __nccwpck_require__(1318); - XMLProcessingInstruction = __nccwpck_require3_(6939); + XMLProcessingInstruction = __nccwpck_require__(6939); - XMLDummy = __nccwpck_require3_(3590); + XMLDummy = __nccwpck_require__(3590); - XMLDTDAttList = __nccwpck_require3_(1015); + XMLDTDAttList = __nccwpck_require__(1015); - XMLDTDElement = __nccwpck_require3_(2421); + XMLDTDElement = __nccwpck_require__(2421); - XMLDTDEntity = __nccwpck_require3_(53); + XMLDTDEntity = __nccwpck_require__(53); - XMLDTDNotation = __nccwpck_require3_(2837); + XMLDTDNotation = __nccwpck_require__(2837); - WriterState = __nccwpck_require3_(9766); + WriterState = __nccwpck_require__(9766); module.exports = XMLWriterBase = (function() { function XMLWriterBase(options) { @@ -37355,27 +37492,27 @@ function wrappy (fn, cb) { /***/ }), /***/ 2958: -/***/ (function(module, __unused_webpack_exports, __nccwpck_require3_) { +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { // Generated by CoffeeScript 1.12.7 (function() { var NodeType, WriterState, XMLDOMImplementation, XMLDocument, XMLDocumentCB, XMLStreamWriter, XMLStringWriter, assign, isFunction, ref; - ref = __nccwpck_require3_(8229), assign = ref.assign, isFunction = ref.isFunction; + ref = __nccwpck_require__(8229), assign = ref.assign, isFunction = ref.isFunction; - XMLDOMImplementation = __nccwpck_require3_(8310); + XMLDOMImplementation = __nccwpck_require__(8310); - XMLDocument = __nccwpck_require3_(3730); + XMLDocument = __nccwpck_require__(3730); - XMLDocumentCB = __nccwpck_require3_(7356); + XMLDocumentCB = __nccwpck_require__(7356); - XMLStringWriter = __nccwpck_require3_(5913); + XMLStringWriter = __nccwpck_require__(5913); - XMLStreamWriter = __nccwpck_require3_(8601); + XMLStreamWriter = __nccwpck_require__(8601); - NodeType = __nccwpck_require3_(9267); + NodeType = __nccwpck_require__(9267); - WriterState = __nccwpck_require3_(9766); + WriterState = __nccwpck_require__(9766); module.exports.create = function(name, xmldec, doctype, options) { var doc, root; @@ -37446,7 +37583,7 @@ module.exports = eval("require")("original-fs"); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(491); +module.exports = require("assert"); /***/ }), @@ -37454,7 +37591,7 @@ module.exports = __nccwpck_require2_(491); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(300); +module.exports = require("buffer"); /***/ }), @@ -37462,7 +37599,7 @@ module.exports = __nccwpck_require2_(300); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(81); +module.exports = require("child_process"); /***/ }), @@ -37470,7 +37607,7 @@ module.exports = __nccwpck_require2_(81); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(113); +module.exports = require("crypto"); /***/ }), @@ -37478,7 +37615,7 @@ module.exports = __nccwpck_require2_(113); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(523); +module.exports = require("dns"); /***/ }), @@ -37486,7 +37623,7 @@ module.exports = __nccwpck_require2_(523); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(361); +module.exports = require("events"); /***/ }), @@ -37494,7 +37631,7 @@ module.exports = __nccwpck_require2_(361); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(147); +module.exports = require("fs"); /***/ }), @@ -37502,7 +37639,7 @@ module.exports = __nccwpck_require2_(147); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(685); +module.exports = require("http"); /***/ }), @@ -37510,7 +37647,7 @@ module.exports = __nccwpck_require2_(685); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(158); +module.exports = require("http2"); /***/ }), @@ -37518,7 +37655,7 @@ module.exports = __nccwpck_require2_(158); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(687); +module.exports = require("https"); /***/ }), @@ -37526,7 +37663,7 @@ module.exports = __nccwpck_require2_(687); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(808); +module.exports = require("net"); /***/ }), @@ -37534,7 +37671,7 @@ module.exports = __nccwpck_require2_(808); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(37); +module.exports = require("os"); /***/ }), @@ -37542,7 +37679,7 @@ module.exports = __nccwpck_require2_(37); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(17); +module.exports = require("path"); /***/ }), @@ -37550,7 +37687,7 @@ module.exports = __nccwpck_require2_(17); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(477); +module.exports = require("punycode"); /***/ }), @@ -37558,7 +37695,7 @@ module.exports = __nccwpck_require2_(477); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(781); +module.exports = require("stream"); /***/ }), @@ -37566,7 +37703,7 @@ module.exports = __nccwpck_require2_(781); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(576); +module.exports = require("string_decoder"); /***/ }), @@ -37574,7 +37711,7 @@ module.exports = __nccwpck_require2_(576); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(512); +module.exports = require("timers"); /***/ }), @@ -37582,7 +37719,7 @@ module.exports = __nccwpck_require2_(512); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(404); +module.exports = require("tls"); /***/ }), @@ -37590,7 +37727,7 @@ module.exports = __nccwpck_require2_(404); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(310); +module.exports = require("url"); /***/ }), @@ -37598,7 +37735,7 @@ module.exports = __nccwpck_require2_(310); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(837); +module.exports = require("util"); /***/ }), @@ -37606,7 +37743,7 @@ module.exports = __nccwpck_require2_(837); /***/ ((module) => { "use strict"; -module.exports = __nccwpck_require2_(796); +module.exports = require("zlib"); /***/ }), @@ -37618,442 +37755,6 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /***/ }) -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require3_(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require3_); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require3_ !== 'undefined') __nccwpck_require3_.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require3_(3109); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; - -/***/ }), - -/***/ 491: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(491); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(300); - -/***/ }), - -/***/ 81: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(81); - -/***/ }), - -/***/ 113: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(113); - -/***/ }), - -/***/ 523: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(523); - -/***/ }), - -/***/ 361: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(361); - -/***/ }), - -/***/ 147: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(147); - -/***/ }), - -/***/ 685: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(685); - -/***/ }), - -/***/ 158: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(158); - -/***/ }), - -/***/ 687: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(687); - -/***/ }), - -/***/ 808: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(808); - -/***/ }), - -/***/ 37: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(37); - -/***/ }), - -/***/ 17: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(17); - -/***/ }), - -/***/ 477: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(477); - -/***/ }), - -/***/ 781: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(781); - -/***/ }), - -/***/ 576: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(576); - -/***/ }), - -/***/ 512: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(512); - -/***/ }), - -/***/ 404: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(404); - -/***/ }), - -/***/ 310: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(310); - -/***/ }), - -/***/ 837: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(837); - -/***/ }), - -/***/ 796: -/***/ ((module) => { - -"use strict"; -module.exports = __nccwpck_require__(796); - -/***/ }) - -/******/ }); -/************************************************************************/ -/******/ // The module cache -/******/ var __webpack_module_cache__ = {}; -/******/ -/******/ // The require function -/******/ function __nccwpck_require2_(moduleId) { -/******/ // Check if module is in cache -/******/ var cachedModule = __webpack_module_cache__[moduleId]; -/******/ if (cachedModule !== undefined) { -/******/ return cachedModule.exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = __webpack_module_cache__[moduleId] = { -/******/ // no module.id needed -/******/ // no module.loaded needed -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ var threw = true; -/******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require2_); -/******/ threw = false; -/******/ } finally { -/******/ if(threw) delete __webpack_module_cache__[moduleId]; -/******/ } -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/************************************************************************/ -/******/ /* webpack/runtime/compat */ -/******/ -/******/ if (typeof __nccwpck_require2_ !== 'undefined') __nccwpck_require2_.ab = __dirname + "/"; -/******/ -/************************************************************************/ -/******/ -/******/ // startup -/******/ // Load entry module and return exports -/******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require2_(283); -/******/ module.exports = __webpack_exports__; -/******/ -/******/ })() -; - -/***/ }), - -/***/ 491: -/***/ ((module) => { - -"use strict"; -module.exports = require("assert"); - -/***/ }), - -/***/ 300: -/***/ ((module) => { - -"use strict"; -module.exports = require("buffer"); - -/***/ }), - -/***/ 81: -/***/ ((module) => { - -"use strict"; -module.exports = require("child_process"); - -/***/ }), - -/***/ 113: -/***/ ((module) => { - -"use strict"; -module.exports = require("crypto"); - -/***/ }), - -/***/ 523: -/***/ ((module) => { - -"use strict"; -module.exports = require("dns"); - -/***/ }), - -/***/ 361: -/***/ ((module) => { - -"use strict"; -module.exports = require("events"); - -/***/ }), - -/***/ 147: -/***/ ((module) => { - -"use strict"; -module.exports = require("fs"); - -/***/ }), - -/***/ 685: -/***/ ((module) => { - -"use strict"; -module.exports = require("http"); - -/***/ }), - -/***/ 158: -/***/ ((module) => { - -"use strict"; -module.exports = require("http2"); - -/***/ }), - -/***/ 687: -/***/ ((module) => { - -"use strict"; -module.exports = require("https"); - -/***/ }), - -/***/ 808: -/***/ ((module) => { - -"use strict"; -module.exports = require("net"); - -/***/ }), - -/***/ 37: -/***/ ((module) => { - -"use strict"; -module.exports = require("os"); - -/***/ }), - -/***/ 17: -/***/ ((module) => { - -"use strict"; -module.exports = require("path"); - -/***/ }), - -/***/ 477: -/***/ ((module) => { - -"use strict"; -module.exports = require("punycode"); - -/***/ }), - -/***/ 781: -/***/ ((module) => { - -"use strict"; -module.exports = require("stream"); - -/***/ }), - -/***/ 576: -/***/ ((module) => { - -"use strict"; -module.exports = require("string_decoder"); - -/***/ }), - -/***/ 512: -/***/ ((module) => { - -"use strict"; -module.exports = require("timers"); - -/***/ }), - -/***/ 404: -/***/ ((module) => { - -"use strict"; -module.exports = require("tls"); - -/***/ }), - -/***/ 310: -/***/ ((module) => { - -"use strict"; -module.exports = require("url"); - -/***/ }), - -/***/ 837: -/***/ ((module) => { - -"use strict"; -module.exports = require("util"); - -/***/ }), - -/***/ 796: -/***/ ((module) => { - -"use strict"; -module.exports = require("zlib"); - -/***/ }) - /******/ }); /************************************************************************/ /******/ // The module cache @@ -38076,7 +37777,7 @@ module.exports = require("zlib"); /******/ // Execute the module function /******/ var threw = true; /******/ try { -/******/ __webpack_modules__[moduleId](module, module.exports, __nccwpck_require__); +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); /******/ threw = false; /******/ } finally { /******/ if(threw) delete __webpack_module_cache__[moduleId]; @@ -38096,7 +37797,7 @@ module.exports = require("zlib"); /******/ // startup /******/ // Load entry module and return exports /******/ // This entry module is referenced by other modules so it can't be inlined -/******/ var __webpack_exports__ = __nccwpck_require__(283); +/******/ var __webpack_exports__ = __nccwpck_require__(3109); /******/ module.exports = __webpack_exports__; /******/ /******/ })() diff --git a/dist/licenses.txt b/dist/licenses.txt index 02c6588..452b9cb 100644 --- a/dist/licenses.txt +++ b/dist/licenses.txt @@ -696,31 +696,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -compress-brotli -MIT -The MIT License (MIT) - -Copyright © 2019 Kiko Beats (kikobeats.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - decompress-response MIT MIT License diff --git a/package.json b/package.json index b7086d8..7dfc7c5 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "private": true, "description": "Presents test results from popular testing frameworks as Github check run", - "main": "dist/index.js", + "main": "lib/main.js", "scripts": { "build": "tsc", "format": "prettier --write **/*.ts",