From e8929686c3a00b02460b8add06c2e08038bdf699 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 5 Nov 2020 19:05:53 +0000 Subject: [PATCH] Restyled by prettier --- dist/__tests__/Utils.test.js | 60 +- dist/index.js | 17900 ++++++++++---------- dist/sourcemap-register.js | 2429 +-- dist/src/api/addLabel.js | 34 +- dist/src/api/createLabel.js | 36 +- dist/src/api/deleteLabel.js | 32 +- dist/src/api/getLabels.js | 38 +- dist/src/api/index.js | 36 +- dist/src/api/listFiles.js | 36 +- dist/src/api/removeLabel.js | 34 +- dist/src/api/updateLabel.js | 38 +- dist/src/applyLabels.js | 134 +- dist/src/conditions/creatorMatches.js | 16 +- dist/src/conditions/descriptionMatches.js | 16 +- dist/src/conditions/index.js | 46 +- dist/src/conditions/isLocked.js | 10 +- dist/src/conditions/isOpen.js | 24 +- dist/src/conditions/issue/index.js | 18 +- dist/src/conditions/pr/branchMatches.js | 16 +- dist/src/conditions/pr/filesMatch.js | 12 +- dist/src/conditions/pr/index.js | 30 +- dist/src/conditions/pr/isDraft.js | 12 +- dist/src/conditions/titleMatches.js | 16 +- dist/src/index.js | 142 +- dist/src/parseContext.js | 74 +- dist/src/syncLabels.js | 92 +- dist/src/utils.js | 24 +- 27 files changed, 10698 insertions(+), 10657 deletions(-) diff --git a/dist/__tests__/Utils.test.js b/dist/__tests__/Utils.test.js index 436311b..dd9eef8 100644 --- a/dist/__tests__/Utils.test.js +++ b/dist/__tests__/Utils.test.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,40 +6,40 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); const settings = { labels: { test: { name: 'test', color: 'CFD3D7', - description: 'This issue / pull request has been abandon' - } + description: 'This issue / pull request has been abandon', + }, }, issue: { bug: { @@ -47,14 +47,14 @@ const settings = { conditions: [ { type: 'titleMatches', - pattern: '/^bug(\\(.*\\))?:/i' + pattern: '/^bug(\\(.*\\))?:/i', }, { type: 'descriptionMatches', - pattern: '/(created|new|opened|made)( an| a)? bug/i' - } - ] - } + pattern: '/(created|new|opened|made)( an| a)? bug/i', + }, + ], + }, }, pr: { bug: { @@ -62,21 +62,21 @@ const settings = { conditions: [ { type: 'titleMatches', - pattern: '/^bug(\\(.*\\))?:/i' + pattern: '/^bug(\\(.*\\))?:/i', }, { type: 'descriptionMatches', - pattern: '/(created|new|opened|made)( an| a)? bug/i' - } - ] - } - } -} + pattern: '/(created|new|opened|made)( an| a)? bug/i', + }, + ], + }, + }, +}; test('test colour format', () => __awaiter(void 0, void 0, void 0, function* () { - yield expect(formatColour(settings.labels.test.color)).toBe('CFD3D7') - })) + yield expect(formatColour(settings.labels.test.color)).toBe('CFD3D7'); + })); test('test colour format', () => __awaiter(void 0, void 0, void 0, function* () { - yield expect(formatColour(`#${settings.labels.test.color}`)).toBe('CFD3D7') - })) + yield expect(formatColour(`#${settings.labels.test.color}`)).toBe('CFD3D7'); + })); diff --git a/dist/index.js b/dist/index.js index f5fba47..0a5b331 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,12 +1,12 @@ -require('./sourcemap-register.js') +require('./sourcemap-register.js'); module.exports = /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = { - /***/ 9674: /***/ module => { - 'use strict' + /***/ 9674: /***/ (module) => { + 'use strict'; module.exports = JSON.parse( - '{"name":"@octokit/rest","version":"16.43.1","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}]}' - ) + '{"name":"@octokit/rest","version":"16.43.1","publishConfig":{"access":"public"},"description":"GitHub REST API client for Node.js","keywords":["octokit","github","rest","api-client"],"author":"Gregor Martynus (https://github.com/gr2m)","contributors":[{"name":"Mike de Boer","email":"info@mikedeboer.nl"},{"name":"Fabian Jakobs","email":"fabian@c9.io"},{"name":"Joe Gallo","email":"joe@brassafrax.com"},{"name":"Gregor Martynus","url":"https://github.com/gr2m"}],"repository":"https://github.com/octokit/rest.js","dependencies":{"@octokit/auth-token":"^2.4.0","@octokit/plugin-paginate-rest":"^1.1.1","@octokit/plugin-request-log":"^1.0.0","@octokit/plugin-rest-endpoint-methods":"2.4.0","@octokit/request":"^5.2.0","@octokit/request-error":"^1.0.2","atob-lite":"^2.0.0","before-after-hook":"^2.0.0","btoa-lite":"^1.0.0","deprecation":"^2.0.0","lodash.get":"^4.4.2","lodash.set":"^4.3.2","lodash.uniq":"^4.5.0","octokit-pagination-methods":"^1.1.0","once":"^1.4.0","universal-user-agent":"^4.0.0"},"devDependencies":{"@gimenete/type-writer":"^0.1.3","@octokit/auth":"^1.1.1","@octokit/fixtures-server":"^5.0.6","@octokit/graphql":"^4.2.0","@types/node":"^13.1.0","bundlesize":"^0.18.0","chai":"^4.1.2","compression-webpack-plugin":"^3.1.0","cypress":"^3.0.0","glob":"^7.1.2","http-proxy-agent":"^4.0.0","lodash.camelcase":"^4.3.0","lodash.merge":"^4.6.1","lodash.upperfirst":"^4.3.1","lolex":"^5.1.2","mkdirp":"^1.0.0","mocha":"^7.0.1","mustache":"^4.0.0","nock":"^11.3.3","npm-run-all":"^4.1.2","nyc":"^15.0.0","prettier":"^1.14.2","proxy":"^1.0.0","semantic-release":"^17.0.0","sinon":"^8.0.0","sinon-chai":"^3.0.0","sort-keys":"^4.0.0","string-to-arraybuffer":"^1.0.0","string-to-jsdoc-comment":"^1.0.0","typescript":"^3.3.1","webpack":"^4.0.0","webpack-bundle-analyzer":"^3.0.0","webpack-cli":"^3.0.0"},"types":"index.d.ts","scripts":{"coverage":"nyc report --reporter=html && open coverage/index.html","lint":"prettier --check \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","lint:fix":"prettier --write \'{lib,plugins,scripts,test}/**/*.{js,json,ts}\' \'docs/*.{js,json}\' \'docs/src/**/*\' index.js README.md package.json","pretest":"npm run -s lint","test":"nyc mocha test/mocha-node-setup.js \\"test/*/**/*-test.js\\"","test:browser":"cypress run --browser chrome","build":"npm-run-all build:*","build:ts":"npm run -s update-endpoints:typescript","prebuild:browser":"mkdirp dist/","build:browser":"npm-run-all build:browser:*","build:browser:development":"webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json","build:browser:production":"webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map","generate-bundle-report":"webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html","update-endpoints":"npm-run-all update-endpoints:*","update-endpoints:fetch-json":"node scripts/update-endpoints/fetch-json","update-endpoints:typescript":"node scripts/update-endpoints/typescript","prevalidate:ts":"npm run -s build:ts","validate:ts":"tsc --target es6 --noImplicitAny index.d.ts","postvalidate:ts":"tsc --noEmit --target es6 test/typescript-validate.ts","start-fixtures-server":"octokit-fixtures-server"},"license":"MIT","files":["index.js","index.d.ts","lib","plugins"],"nyc":{"ignore":["test"]},"release":{"publish":["@semantic-release/npm",{"path":"@semantic-release/github","assets":["dist/*","!dist/*.map.gz"]}]},"bundlesize":[{"path":"./dist/octokit-rest.min.js.gz","maxSize":"33 kB"}]}', + ); /***/ }, @@ -14,24 +14,24 @@ module.exports = /******/ (() => { /***/ 7351: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] - result['default'] = mod - return result - } - Object.defineProperty(exports, '__esModule', { value: true }) - const os = __importStar(__webpack_require__(2087)) - const utils_1 = __webpack_require__(5278) + if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result['default'] = mod; + return result; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + const os = __importStar(__webpack_require__(2087)); + const utils_1 = __webpack_require__(5278); /** * Commands * @@ -43,45 +43,45 @@ module.exports = /******/ (() => { * ::set-env name=MY_VAR::some value */ function issueCommand(command, properties, message) { - const cmd = new Command(command, properties, message) - process.stdout.write(cmd.toString() + os.EOL) + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); } - exports.issueCommand = issueCommand + exports.issueCommand = issueCommand; function issue(name, message = '') { - issueCommand(name, {}, message) + issueCommand(name, {}, message); } - exports.issue = issue - const CMD_STRING = '::' + exports.issue = issue; + const CMD_STRING = '::'; class Command { constructor(command, properties, message) { if (!command) { - command = 'missing.command' + command = 'missing.command'; } - this.command = command - this.properties = properties - this.message = message + this.command = command; + this.properties = properties; + this.message = message; } toString() { - let cmdStr = CMD_STRING + this.command + let cmdStr = CMD_STRING + this.command; if (this.properties && Object.keys(this.properties).length > 0) { - cmdStr += ' ' - let first = true + cmdStr += ' '; + let first = true; for (const key in this.properties) { if (this.properties.hasOwnProperty(key)) { - const val = this.properties[key] + const val = this.properties[key]; if (val) { if (first) { - first = false + first = false; } else { - cmdStr += ',' + cmdStr += ','; } - cmdStr += `${key}=${escapeProperty(val)}` + cmdStr += `${key}=${escapeProperty(val)}`; } } } } - cmdStr += `${CMD_STRING}${escapeData(this.message)}` - return cmdStr + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; } } function escapeData(s) { @@ -89,7 +89,7 @@ module.exports = /******/ (() => { .toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') - .replace(/\n/g, '%0A') + .replace(/\n/g, '%0A'); } function escapeProperty(s) { return utils_1 @@ -98,7 +98,7 @@ module.exports = /******/ (() => { .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') .replace(/:/g, '%3A') - .replace(/,/g, '%2C') + .replace(/,/g, '%2C'); } //# sourceMappingURL=command.js.map @@ -108,9 +108,9 @@ module.exports = /******/ (() => { /***/ 2186: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __awaiter = (this && this.__awaiter) || @@ -119,65 +119,65 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] - result['default'] = mod - return result - } - Object.defineProperty(exports, '__esModule', { value: true }) - const command_1 = __webpack_require__(7351) - const file_command_1 = __webpack_require__(717) - const utils_1 = __webpack_require__(5278) - const os = __importStar(__webpack_require__(2087)) - const path = __importStar(__webpack_require__(5622)) + if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result['default'] = mod; + return result; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + const command_1 = __webpack_require__(7351); + const file_command_1 = __webpack_require__(717); + const utils_1 = __webpack_require__(5278); + const os = __importStar(__webpack_require__(2087)); + const path = __importStar(__webpack_require__(5622)); /** * The code to exit an action */ - var ExitCode - ;(function (ExitCode) { + var ExitCode; + (function (ExitCode) { /** * A code indicating that the action was successful */ - ExitCode[(ExitCode['Success'] = 0)] = 'Success' + ExitCode[(ExitCode['Success'] = 0)] = 'Success'; /** * A code indicating that the action was a failure */ - ExitCode[(ExitCode['Failure'] = 1)] = 'Failure' - })((ExitCode = exports.ExitCode || (exports.ExitCode = {}))) + ExitCode[(ExitCode['Failure'] = 1)] = 'Failure'; + })((ExitCode = exports.ExitCode || (exports.ExitCode = {}))); //----------------------------------------------------------------------- // Variables //----------------------------------------------------------------------- @@ -188,42 +188,42 @@ module.exports = /******/ (() => { */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = utils_1.toCommandValue(val) - process.env[name] = convertedVal - const filePath = process.env['GITHUB_ENV'] || '' + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; if (filePath) { - const delimiter = '_GitHubActionsFileCommandDelimeter_' - const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}` - file_command_1.issueCommand('ENV', commandValue) + const delimiter = '_GitHubActionsFileCommandDelimeter_'; + const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; + file_command_1.issueCommand('ENV', commandValue); } else { - command_1.issueCommand('set-env', { name }, convertedVal) + command_1.issueCommand('set-env', { name }, convertedVal); } } - exports.exportVariable = exportVariable + exports.exportVariable = exportVariable; /** * Registers a secret which will get masked from logs * @param secret value of the secret */ function setSecret(secret) { - command_1.issueCommand('add-mask', {}, secret) + command_1.issueCommand('add-mask', {}, secret); } - exports.setSecret = setSecret + exports.setSecret = setSecret; /** * Prepends inputPath to the PATH (for this action and future actions) * @param inputPath */ function addPath(inputPath) { - const filePath = process.env['GITHUB_PATH'] || '' + const filePath = process.env['GITHUB_PATH'] || ''; if (filePath) { - file_command_1.issueCommand('PATH', inputPath) + file_command_1.issueCommand('PATH', inputPath); } else { - command_1.issueCommand('add-path', {}, inputPath) + command_1.issueCommand('add-path', {}, inputPath); } process.env[ 'PATH' - ] = `${inputPath}${path.delimiter}${process.env['PATH']}` + ] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } - exports.addPath = addPath + exports.addPath = addPath; /** * Gets the value of an input. The value is also trimmed. * @@ -233,13 +233,13 @@ module.exports = /******/ (() => { */ function getInput(name, options) { const val = - process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '' + process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; if (options && options.required && !val) { - throw new Error(`Input required and not supplied: ${name}`) + throw new Error(`Input required and not supplied: ${name}`); } - return val.trim() + return val.trim(); } - exports.getInput = getInput + exports.getInput = getInput; /** * Sets the value of an output. * @@ -248,18 +248,18 @@ module.exports = /******/ (() => { */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function setOutput(name, value) { - command_1.issueCommand('set-output', { name }, value) + command_1.issueCommand('set-output', { name }, value); } - exports.setOutput = setOutput + exports.setOutput = setOutput; /** * Enables or disables the echoing of commands into stdout for the rest of the step. * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. * */ function setCommandEcho(enabled) { - command_1.issue('echo', enabled ? 'on' : 'off') + command_1.issue('echo', enabled ? 'on' : 'off'); } - exports.setCommandEcho = setCommandEcho + exports.setCommandEcho = setCommandEcho; //----------------------------------------------------------------------- // Results //----------------------------------------------------------------------- @@ -269,10 +269,10 @@ module.exports = /******/ (() => { * @param message add error issue message */ function setFailed(message) { - process.exitCode = ExitCode.Failure - error(message) + process.exitCode = ExitCode.Failure; + error(message); } - exports.setFailed = setFailed + exports.setFailed = setFailed; //----------------------------------------------------------------------- // Logging Commands //----------------------------------------------------------------------- @@ -280,17 +280,17 @@ module.exports = /******/ (() => { * Gets whether Actions Step Debug is on or not */ function isDebug() { - return process.env['RUNNER_DEBUG'] === '1' + return process.env['RUNNER_DEBUG'] === '1'; } - exports.isDebug = isDebug + exports.isDebug = isDebug; /** * Writes debug message to user log * @param message debug message */ function debug(message) { - command_1.issueCommand('debug', {}, message) + command_1.issueCommand('debug', {}, message); } - exports.debug = debug + exports.debug = debug; /** * Adds an error issue * @param message error issue message. Errors will be converted to string via toString() @@ -298,10 +298,10 @@ module.exports = /******/ (() => { function error(message) { command_1.issue( 'error', - message instanceof Error ? message.toString() : message - ) + message instanceof Error ? message.toString() : message, + ); } - exports.error = error + exports.error = error; /** * Adds an warning issue * @param message warning issue message. Errors will be converted to string via toString() @@ -309,18 +309,18 @@ module.exports = /******/ (() => { function warning(message) { command_1.issue( 'warning', - message instanceof Error ? message.toString() : message - ) + message instanceof Error ? message.toString() : message, + ); } - exports.warning = warning + exports.warning = warning; /** * Writes info to log with console.log. * @param message info message */ function info(message) { - process.stdout.write(message + os.EOL) + process.stdout.write(message + os.EOL); } - exports.info = info + exports.info = info; /** * Begin an output group. * @@ -329,16 +329,16 @@ module.exports = /******/ (() => { * @param name The name of the output group */ function startGroup(name) { - command_1.issue('group', name) + command_1.issue('group', name); } - exports.startGroup = startGroup + exports.startGroup = startGroup; /** * End an output group. */ function endGroup() { - command_1.issue('endgroup') + command_1.issue('endgroup'); } - exports.endGroup = endGroup + exports.endGroup = endGroup; /** * Wrap an asynchronous function call in a group. * @@ -349,17 +349,17 @@ module.exports = /******/ (() => { */ function group(name, fn) { return __awaiter(this, void 0, void 0, function* () { - startGroup(name) - let result + startGroup(name); + let result; try { - result = yield fn() + result = yield fn(); } finally { - endGroup() + endGroup(); } - return result - }) + return result; + }); } - exports.group = group + exports.group = group; //----------------------------------------------------------------------- // Wrapper action state //----------------------------------------------------------------------- @@ -371,9 +371,9 @@ module.exports = /******/ (() => { */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function saveState(name, value) { - command_1.issueCommand('save-state', { name }, value) + command_1.issueCommand('save-state', { name }, value); } - exports.saveState = saveState + exports.saveState = saveState; /** * Gets the value of an state set by this action's main execution. * @@ -381,9 +381,9 @@ module.exports = /******/ (() => { * @returns string */ function getState(name) { - return process.env[`STATE_${name}`] || '' + return process.env[`STATE_${name}`] || ''; } - exports.getState = getState + exports.getState = getState; //# sourceMappingURL=core.js.map /***/ @@ -392,71 +392,71 @@ module.exports = /******/ (() => { /***/ 717: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; // For internal use, subject to change. var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] - result['default'] = mod - return result - } - Object.defineProperty(exports, '__esModule', { value: true }) + if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result['default'] = mod; + return result; + }; + Object.defineProperty(exports, '__esModule', { value: true }); // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ - const fs = __importStar(__webpack_require__(5747)) - const os = __importStar(__webpack_require__(2087)) - const utils_1 = __webpack_require__(5278) + const fs = __importStar(__webpack_require__(5747)); + const os = __importStar(__webpack_require__(2087)); + const utils_1 = __webpack_require__(5278); function issueCommand(command, message) { - const filePath = process.env[`GITHUB_${command}`] + const filePath = process.env[`GITHUB_${command}`]; if (!filePath) { throw new Error( - `Unable to find environment variable for file command ${command}` - ) + `Unable to find environment variable for file command ${command}`, + ); } if (!fs.existsSync(filePath)) { - throw new Error(`Missing file at path: ${filePath}`) + throw new Error(`Missing file at path: ${filePath}`); } fs.appendFileSync( filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { - encoding: 'utf8' - } - ) + encoding: 'utf8', + }, + ); } - exports.issueCommand = issueCommand + exports.issueCommand = issueCommand; //# sourceMappingURL=file-command.js.map /***/ }, /***/ 5278: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); /** * Sanitizes an input into a string so it can be passed into issueCommand safely * @param input input to sanitize into a string */ function toCommandValue(input) { if (input === null || input === undefined) { - return '' + return ''; } else if (typeof input === 'string' || input instanceof String) { - return input + return input; } - return JSON.stringify(input) + return JSON.stringify(input); } - exports.toCommandValue = toCommandValue + exports.toCommandValue = toCommandValue; //# sourceMappingURL=utils.js.map /***/ @@ -465,63 +465,63 @@ module.exports = /******/ (() => { /***/ 4087: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const fs_1 = __webpack_require__(5747) - const os_1 = __webpack_require__(2087) + Object.defineProperty(exports, '__esModule', { value: true }); + const fs_1 = __webpack_require__(5747); + const os_1 = __webpack_require__(2087); class Context { /** * Hydrate the context from the environment */ constructor() { - this.payload = {} + this.payload = {}; if (process.env.GITHUB_EVENT_PATH) { if (fs_1.existsSync(process.env.GITHUB_EVENT_PATH)) { this.payload = JSON.parse( fs_1.readFileSync(process.env.GITHUB_EVENT_PATH, { - encoding: 'utf8' - }) - ) + encoding: 'utf8', + }), + ); } else { - const path = process.env.GITHUB_EVENT_PATH + const path = process.env.GITHUB_EVENT_PATH; process.stdout.write( - `GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}` - ) + `GITHUB_EVENT_PATH ${path} does not exist${os_1.EOL}`, + ); } } - this.eventName = process.env.GITHUB_EVENT_NAME - this.sha = process.env.GITHUB_SHA - this.ref = process.env.GITHUB_REF - this.workflow = process.env.GITHUB_WORKFLOW - this.action = process.env.GITHUB_ACTION - this.actor = process.env.GITHUB_ACTOR + this.eventName = process.env.GITHUB_EVENT_NAME; + this.sha = process.env.GITHUB_SHA; + this.ref = process.env.GITHUB_REF; + this.workflow = process.env.GITHUB_WORKFLOW; + this.action = process.env.GITHUB_ACTION; + this.actor = process.env.GITHUB_ACTOR; } get issue() { - const payload = this.payload + const payload = this.payload; return Object.assign(Object.assign({}, this.repo), { - number: (payload.issue || payload.pull_request || payload).number - }) + number: (payload.issue || payload.pull_request || payload).number, + }); } get repo() { if (process.env.GITHUB_REPOSITORY) { - const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/') - return { owner, repo } + const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/'); + return { owner, repo }; } if (this.payload.repository) { return { owner: this.payload.repository.owner.login, - repo: this.payload.repository.name - } + repo: this.payload.repository.name, + }; } throw new Error( - "context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'" - ) + "context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'", + ); } } - exports.Context = Context + exports.Context = Context; //# sourceMappingURL=context.js.map /***/ @@ -530,34 +530,34 @@ module.exports = /******/ (() => { /***/ 5438: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) - if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k] - result['default'] = mod - return result - } - Object.defineProperty(exports, '__esModule', { value: true }) + if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result['default'] = mod; + return result; + }; + Object.defineProperty(exports, '__esModule', { value: true }); // Originally pulled from https://github.com/JasonEtco/actions-toolkit/blob/master/src/github.ts - const graphql_1 = __webpack_require__(8467) - const rest_1 = __webpack_require__(9351) - const Context = __importStar(__webpack_require__(4087)) - const httpClient = __importStar(__webpack_require__(9925)) + const graphql_1 = __webpack_require__(8467); + const rest_1 = __webpack_require__(9351); + const Context = __importStar(__webpack_require__(4087)); + const httpClient = __importStar(__webpack_require__(9925)); // We need this in order to extend Octokit - rest_1.Octokit.prototype = new rest_1.Octokit() - exports.context = new Context.Context() + rest_1.Octokit.prototype = new rest_1.Octokit(); + exports.context = new Context.Context(); class GitHub extends rest_1.Octokit { constructor(token, opts) { - super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts))) - this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts)) + super(GitHub.getOctokitOptions(GitHub.disambiguate(token, opts))); + this.graphql = GitHub.getGraphQL(GitHub.disambiguate(token, opts)); } /** * Disambiguates the constructor overload parameters @@ -565,77 +565,77 @@ module.exports = /******/ (() => { static disambiguate(token, opts) { return [ typeof token === 'string' ? token : '', - typeof token === 'object' ? token : opts || {} - ] + typeof token === 'object' ? token : opts || {}, + ]; } static getOctokitOptions(args) { - const token = args[0] - const options = Object.assign({}, args[1]) // Shallow clone - don't mutate the object provided by the caller + const token = args[0]; + const options = Object.assign({}, args[1]); // Shallow clone - don't mutate the object provided by the caller // Auth - const auth = GitHub.getAuthString(token, options) + const auth = GitHub.getAuthString(token, options); if (auth) { - options.auth = auth + options.auth = auth; } // Proxy - const agent = GitHub.getProxyAgent(options) + const agent = GitHub.getProxyAgent(options); if (agent) { // Shallow clone - don't mutate the object provided by the caller options.request = options.request ? Object.assign({}, options.request) - : {} + : {}; // Set the agent - options.request.agent = agent + options.request.agent = agent; } - return options + return options; } static getGraphQL(args) { - const defaults = {} - const token = args[0] - const options = args[1] + const defaults = {}; + const token = args[0]; + const options = args[1]; // Authorization - const auth = this.getAuthString(token, options) + const auth = this.getAuthString(token, options); if (auth) { defaults.headers = { - authorization: auth - } + authorization: auth, + }; } // Proxy - const agent = GitHub.getProxyAgent(options) + const agent = GitHub.getProxyAgent(options); if (agent) { - defaults.request = { agent } + defaults.request = { agent }; } - return graphql_1.graphql.defaults(defaults) + return graphql_1.graphql.defaults(defaults); } static getAuthString(token, options) { // Validate args if (!token && !options.auth) { - throw new Error('Parameter token or opts.auth is required') + throw new Error('Parameter token or opts.auth is required'); } else if (token && options.auth) { throw new Error( - 'Parameters token and opts.auth may not both be specified' - ) + 'Parameters token and opts.auth may not both be specified', + ); } return typeof options.auth === 'string' ? options.auth - : `token ${token}` + : `token ${token}`; } static getProxyAgent(options) { - var _a + var _a; if ( !((_a = options.request) === null || _a === void 0 ? void 0 : _a.agent) ) { - const serverUrl = 'https://api.github.com' + const serverUrl = 'https://api.github.com'; if (httpClient.getProxyUrl(serverUrl)) { - const hc = new httpClient.HttpClient() - return hc.getAgent(serverUrl) + const hc = new httpClient.HttpClient(); + return hc.getAgent(serverUrl); } } - return undefined + return undefined; } } - exports.GitHub = GitHub + exports.GitHub = GitHub; //# sourceMappingURL=github.js.map /***/ @@ -644,139 +644,139 @@ module.exports = /******/ (() => { /***/ 9925: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' - - Object.defineProperty(exports, '__esModule', { value: true }) - const url = __webpack_require__(8835) - const http = __webpack_require__(8605) - const https = __webpack_require__(7211) - const pm = __webpack_require__(6443) - let tunnel - var HttpCodes - ;(function (HttpCodes) { - HttpCodes[(HttpCodes['OK'] = 200)] = 'OK' - HttpCodes[(HttpCodes['MultipleChoices'] = 300)] = 'MultipleChoices' - HttpCodes[(HttpCodes['MovedPermanently'] = 301)] = 'MovedPermanently' - HttpCodes[(HttpCodes['ResourceMoved'] = 302)] = 'ResourceMoved' - HttpCodes[(HttpCodes['SeeOther'] = 303)] = 'SeeOther' - HttpCodes[(HttpCodes['NotModified'] = 304)] = 'NotModified' - HttpCodes[(HttpCodes['UseProxy'] = 305)] = 'UseProxy' - HttpCodes[(HttpCodes['SwitchProxy'] = 306)] = 'SwitchProxy' - HttpCodes[(HttpCodes['TemporaryRedirect'] = 307)] = 'TemporaryRedirect' - HttpCodes[(HttpCodes['PermanentRedirect'] = 308)] = 'PermanentRedirect' - HttpCodes[(HttpCodes['BadRequest'] = 400)] = 'BadRequest' - HttpCodes[(HttpCodes['Unauthorized'] = 401)] = 'Unauthorized' - HttpCodes[(HttpCodes['PaymentRequired'] = 402)] = 'PaymentRequired' - HttpCodes[(HttpCodes['Forbidden'] = 403)] = 'Forbidden' - HttpCodes[(HttpCodes['NotFound'] = 404)] = 'NotFound' - HttpCodes[(HttpCodes['MethodNotAllowed'] = 405)] = 'MethodNotAllowed' - HttpCodes[(HttpCodes['NotAcceptable'] = 406)] = 'NotAcceptable' + 'use strict'; + + Object.defineProperty(exports, '__esModule', { value: true }); + const url = __webpack_require__(8835); + const http = __webpack_require__(8605); + const https = __webpack_require__(7211); + const pm = __webpack_require__(6443); + let tunnel; + var HttpCodes; + (function (HttpCodes) { + HttpCodes[(HttpCodes['OK'] = 200)] = 'OK'; + HttpCodes[(HttpCodes['MultipleChoices'] = 300)] = 'MultipleChoices'; + HttpCodes[(HttpCodes['MovedPermanently'] = 301)] = 'MovedPermanently'; + HttpCodes[(HttpCodes['ResourceMoved'] = 302)] = 'ResourceMoved'; + HttpCodes[(HttpCodes['SeeOther'] = 303)] = 'SeeOther'; + HttpCodes[(HttpCodes['NotModified'] = 304)] = 'NotModified'; + HttpCodes[(HttpCodes['UseProxy'] = 305)] = 'UseProxy'; + HttpCodes[(HttpCodes['SwitchProxy'] = 306)] = 'SwitchProxy'; + HttpCodes[(HttpCodes['TemporaryRedirect'] = 307)] = 'TemporaryRedirect'; + HttpCodes[(HttpCodes['PermanentRedirect'] = 308)] = 'PermanentRedirect'; + HttpCodes[(HttpCodes['BadRequest'] = 400)] = 'BadRequest'; + HttpCodes[(HttpCodes['Unauthorized'] = 401)] = 'Unauthorized'; + HttpCodes[(HttpCodes['PaymentRequired'] = 402)] = 'PaymentRequired'; + HttpCodes[(HttpCodes['Forbidden'] = 403)] = 'Forbidden'; + HttpCodes[(HttpCodes['NotFound'] = 404)] = 'NotFound'; + HttpCodes[(HttpCodes['MethodNotAllowed'] = 405)] = 'MethodNotAllowed'; + HttpCodes[(HttpCodes['NotAcceptable'] = 406)] = 'NotAcceptable'; HttpCodes[(HttpCodes['ProxyAuthenticationRequired'] = 407)] = - 'ProxyAuthenticationRequired' - HttpCodes[(HttpCodes['RequestTimeout'] = 408)] = 'RequestTimeout' - HttpCodes[(HttpCodes['Conflict'] = 409)] = 'Conflict' - HttpCodes[(HttpCodes['Gone'] = 410)] = 'Gone' + 'ProxyAuthenticationRequired'; + HttpCodes[(HttpCodes['RequestTimeout'] = 408)] = 'RequestTimeout'; + HttpCodes[(HttpCodes['Conflict'] = 409)] = 'Conflict'; + HttpCodes[(HttpCodes['Gone'] = 410)] = 'Gone'; HttpCodes[(HttpCodes['InternalServerError'] = 500)] = - 'InternalServerError' - HttpCodes[(HttpCodes['NotImplemented'] = 501)] = 'NotImplemented' - HttpCodes[(HttpCodes['BadGateway'] = 502)] = 'BadGateway' + 'InternalServerError'; + HttpCodes[(HttpCodes['NotImplemented'] = 501)] = 'NotImplemented'; + HttpCodes[(HttpCodes['BadGateway'] = 502)] = 'BadGateway'; HttpCodes[(HttpCodes['ServiceUnavailable'] = 503)] = - 'ServiceUnavailable' - HttpCodes[(HttpCodes['GatewayTimeout'] = 504)] = 'GatewayTimeout' - })((HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}))) - var Headers - ;(function (Headers) { - Headers['Accept'] = 'accept' - Headers['ContentType'] = 'content-type' - })((Headers = exports.Headers || (exports.Headers = {}))) - var MediaTypes - ;(function (MediaTypes) { - MediaTypes['ApplicationJson'] = 'application/json' - })((MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}))) + 'ServiceUnavailable'; + HttpCodes[(HttpCodes['GatewayTimeout'] = 504)] = 'GatewayTimeout'; + })((HttpCodes = exports.HttpCodes || (exports.HttpCodes = {}))); + var Headers; + (function (Headers) { + Headers['Accept'] = 'accept'; + Headers['ContentType'] = 'content-type'; + })((Headers = exports.Headers || (exports.Headers = {}))); + var MediaTypes; + (function (MediaTypes) { + MediaTypes['ApplicationJson'] = 'application/json'; + })((MediaTypes = exports.MediaTypes || (exports.MediaTypes = {}))); /** * Returns the proxy URL, depending upon the supplied url and proxy environment variables. * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com */ function getProxyUrl(serverUrl) { - let proxyUrl = pm.getProxyUrl(url.parse(serverUrl)) - return proxyUrl ? proxyUrl.href : '' + let proxyUrl = pm.getProxyUrl(url.parse(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; } - exports.getProxyUrl = getProxyUrl + exports.getProxyUrl = getProxyUrl; const HttpRedirectCodes = [ HttpCodes.MovedPermanently, HttpCodes.ResourceMoved, HttpCodes.SeeOther, HttpCodes.TemporaryRedirect, - HttpCodes.PermanentRedirect - ] + HttpCodes.PermanentRedirect, + ]; const HttpResponseRetryCodes = [ HttpCodes.BadGateway, HttpCodes.ServiceUnavailable, - HttpCodes.GatewayTimeout - ] - const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD'] - const ExponentialBackoffCeiling = 10 - const ExponentialBackoffTimeSlice = 5 + HttpCodes.GatewayTimeout, + ]; + const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; + const ExponentialBackoffCeiling = 10; + const ExponentialBackoffTimeSlice = 5; class HttpClientResponse { constructor(message) { - this.message = message + this.message = message; } readBody() { return new Promise(async (resolve, reject) => { - let output = Buffer.alloc(0) - this.message.on('data', chunk => { - output = Buffer.concat([output, chunk]) - }) + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); this.message.on('end', () => { - resolve(output.toString()) - }) - }) + resolve(output.toString()); + }); + }); } } - exports.HttpClientResponse = HttpClientResponse + exports.HttpClientResponse = HttpClientResponse; function isHttps(requestUrl) { - let parsedUrl = url.parse(requestUrl) - return parsedUrl.protocol === 'https:' + let parsedUrl = url.parse(requestUrl); + return parsedUrl.protocol === 'https:'; } - exports.isHttps = isHttps + exports.isHttps = isHttps; class HttpClient { constructor(userAgent, handlers, requestOptions) { - this._ignoreSslError = false - this._allowRedirects = true - this._allowRedirectDowngrade = false - this._maxRedirects = 50 - this._allowRetries = false - this._maxRetries = 1 - this._keepAlive = false - this._disposed = false - this.userAgent = userAgent - this.handlers = handlers || [] - this.requestOptions = requestOptions + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; if (requestOptions) { if (requestOptions.ignoreSslError != null) { - this._ignoreSslError = requestOptions.ignoreSslError + this._ignoreSslError = requestOptions.ignoreSslError; } - this._socketTimeout = requestOptions.socketTimeout + this._socketTimeout = requestOptions.socketTimeout; if (requestOptions.allowRedirects != null) { - this._allowRedirects = requestOptions.allowRedirects + this._allowRedirects = requestOptions.allowRedirects; } if (requestOptions.allowRedirectDowngrade != null) { this._allowRedirectDowngrade = - requestOptions.allowRedirectDowngrade + requestOptions.allowRedirectDowngrade; } if (requestOptions.maxRedirects != null) { - this._maxRedirects = Math.max(requestOptions.maxRedirects, 0) + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); } if (requestOptions.keepAlive != null) { - this._keepAlive = requestOptions.keepAlive + this._keepAlive = requestOptions.keepAlive; } if (requestOptions.allowRetries != null) { - this._allowRetries = requestOptions.allowRetries + this._allowRetries = requestOptions.allowRetries; } if (requestOptions.maxRetries != null) { - this._maxRetries = requestOptions.maxRetries + this._maxRetries = requestOptions.maxRetries; } } } @@ -785,39 +785,49 @@ module.exports = /******/ (() => { 'OPTIONS', requestUrl, null, - additionalHeaders || {} - ) + additionalHeaders || {}, + ); } get(requestUrl, additionalHeaders) { - return this.request('GET', requestUrl, null, additionalHeaders || {}) + return this.request('GET', requestUrl, null, additionalHeaders || {}); } del(requestUrl, additionalHeaders) { return this.request( 'DELETE', requestUrl, null, - additionalHeaders || {} - ) + additionalHeaders || {}, + ); } post(requestUrl, data, additionalHeaders) { - return this.request('POST', requestUrl, data, additionalHeaders || {}) + return this.request( + 'POST', + requestUrl, + data, + additionalHeaders || {}, + ); } patch(requestUrl, data, additionalHeaders) { return this.request( 'PATCH', requestUrl, data, - additionalHeaders || {} - ) + additionalHeaders || {}, + ); } put(requestUrl, data, additionalHeaders) { - return this.request('PUT', requestUrl, data, additionalHeaders || {}) + return this.request('PUT', requestUrl, data, additionalHeaders || {}); } head(requestUrl, additionalHeaders) { - return this.request('HEAD', requestUrl, null, additionalHeaders || {}) + return this.request( + 'HEAD', + requestUrl, + null, + additionalHeaders || {}, + ); } sendStream(verb, requestUrl, stream, additionalHeaders) { - return this.request(verb, requestUrl, stream, additionalHeaders) + return this.request(verb, requestUrl, stream, additionalHeaders); } /** * Gets a typed object from an endpoint @@ -827,61 +837,61 @@ module.exports = /******/ (() => { additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.Accept, - MediaTypes.ApplicationJson - ) - let res = await this.get(requestUrl, additionalHeaders) - return this._processResponse(res, this.requestOptions) + MediaTypes.ApplicationJson, + ); + let res = await this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); } async postJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2) + let data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.Accept, - MediaTypes.ApplicationJson - ) + MediaTypes.ApplicationJson, + ); additionalHeaders[ Headers.ContentType ] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.ContentType, - MediaTypes.ApplicationJson - ) - let res = await this.post(requestUrl, data, additionalHeaders) - return this._processResponse(res, this.requestOptions) + MediaTypes.ApplicationJson, + ); + let res = await this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); } async putJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2) + let data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.Accept, - MediaTypes.ApplicationJson - ) + MediaTypes.ApplicationJson, + ); additionalHeaders[ Headers.ContentType ] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.ContentType, - MediaTypes.ApplicationJson - ) - let res = await this.put(requestUrl, data, additionalHeaders) - return this._processResponse(res, this.requestOptions) + MediaTypes.ApplicationJson, + ); + let res = await this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); } async patchJson(requestUrl, obj, additionalHeaders = {}) { - let data = JSON.stringify(obj, null, 2) + let data = JSON.stringify(obj, null, 2); additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.Accept, - MediaTypes.ApplicationJson - ) + MediaTypes.ApplicationJson, + ); additionalHeaders[ Headers.ContentType ] = this._getExistingOrDefaultHeader( additionalHeaders, Headers.ContentType, - MediaTypes.ApplicationJson - ) - let res = await this.patch(requestUrl, data, additionalHeaders) - return this._processResponse(res, this.requestOptions) + MediaTypes.ApplicationJson, + ); + let res = await this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); } /** * Makes a raw http request. @@ -890,95 +900,95 @@ module.exports = /******/ (() => { */ async request(verb, requestUrl, data, headers) { if (this._disposed) { - throw new Error('Client has already been disposed.') + throw new Error('Client has already been disposed.'); } - let parsedUrl = url.parse(requestUrl) - let info = this._prepareRequest(verb, parsedUrl, headers) + let parsedUrl = url.parse(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); // Only perform retries on reads since writes may not be idempotent. let maxTries = this._allowRetries && RetryableHttpVerbs.indexOf(verb) != -1 ? this._maxRetries + 1 - : 1 - let numTries = 0 - let response + : 1; + let numTries = 0; + let response; while (numTries < maxTries) { - response = await this.requestRaw(info, data) + response = await this.requestRaw(info, data); // Check if it's an authentication challenge if ( response && response.message && response.message.statusCode === HttpCodes.Unauthorized ) { - let authenticationHandler + let authenticationHandler; for (let i = 0; i < this.handlers.length; i++) { if (this.handlers[i].canHandleAuthentication(response)) { - authenticationHandler = this.handlers[i] - break + authenticationHandler = this.handlers[i]; + break; } } if (authenticationHandler) { return authenticationHandler.handleAuthentication( this, info, - data - ) + data, + ); } else { // We have received an unauthorized response but have no handlers to handle it. // Let the response return to the caller. - return response + return response; } } - let redirectsRemaining = this._maxRedirects + let redirectsRemaining = this._maxRedirects; while ( HttpRedirectCodes.indexOf(response.message.statusCode) != -1 && this._allowRedirects && redirectsRemaining > 0 ) { - const redirectUrl = response.message.headers['location'] + const redirectUrl = response.message.headers['location']; if (!redirectUrl) { // if there's no location to redirect to, we won't - break + break; } - let parsedRedirectUrl = url.parse(redirectUrl) + let parsedRedirectUrl = url.parse(redirectUrl); if ( parsedUrl.protocol == 'https:' && parsedUrl.protocol != parsedRedirectUrl.protocol && !this._allowRedirectDowngrade ) { throw new Error( - 'Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.' - ) + 'Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.', + ); } // we need to finish reading the response before reassigning response // which will leak the open socket. - await response.readBody() + await response.readBody(); // let's make the request with the new redirectUrl - info = this._prepareRequest(verb, parsedRedirectUrl, headers) - response = await this.requestRaw(info, data) - redirectsRemaining-- + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = await this.requestRaw(info, data); + redirectsRemaining--; } if ( HttpResponseRetryCodes.indexOf(response.message.statusCode) == -1 ) { // If not a retry code, return immediately instead of retrying - return response + return response; } - numTries += 1 + numTries += 1; if (numTries < maxTries) { - await response.readBody() - await this._performExponentialBackoff(numTries) + await response.readBody(); + await this._performExponentialBackoff(numTries); } } - return response + return response; } /** * Needs to be called if keepAlive is set to true in request options. */ dispose() { if (this._agent) { - this._agent.destroy() + this._agent.destroy(); } - this._disposed = true + this._disposed = true; } /** * Raw request. @@ -989,12 +999,12 @@ module.exports = /******/ (() => { return new Promise((resolve, reject) => { let callbackForResult = function (err, res) { if (err) { - reject(err) + reject(err); } - resolve(res) - } - this.requestRawWithCallback(info, data, callbackForResult) - }) + resolve(res); + }; + this.requestRawWithCallback(info, data, callbackForResult); + }); } /** * Raw request with callback. @@ -1003,52 +1013,52 @@ module.exports = /******/ (() => { * @param onResult */ requestRawWithCallback(info, data, onResult) { - let socket + let socket; if (typeof data === 'string') { info.options.headers['Content-Length'] = Buffer.byteLength( data, - 'utf8' - ) + 'utf8', + ); } - let callbackCalled = false + let callbackCalled = false; let handleResult = (err, res) => { if (!callbackCalled) { - callbackCalled = true - onResult(err, res) + callbackCalled = true; + onResult(err, res); } - } - let req = info.httpModule.request(info.options, msg => { - let res = new HttpClientResponse(msg) - handleResult(null, res) - }) - req.on('socket', sock => { - socket = sock - }) + }; + let req = info.httpModule.request(info.options, (msg) => { + let res = new HttpClientResponse(msg); + handleResult(null, res); + }); + req.on('socket', (sock) => { + socket = sock; + }); // If we ever get disconnected, we want the socket to timeout eventually req.setTimeout(this._socketTimeout || 3 * 60000, () => { if (socket) { - socket.end() + socket.end(); } handleResult( new Error('Request timeout: ' + info.options.path), - null - ) - }) + null, + ); + }); req.on('error', function (err) { // err has statusCode property // res should have headers - handleResult(err, null) - }) + handleResult(err, null); + }); if (data && typeof data === 'string') { - req.write(data, 'utf8') + req.write(data, 'utf8'); } if (data && typeof data !== 'string') { data.on('close', function () { - req.end() - }) - data.pipe(req) + req.end(); + }); + data.pipe(req); } else { - req.end() + req.end(); } } /** @@ -1057,87 +1067,87 @@ module.exports = /******/ (() => { * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com */ getAgent(serverUrl) { - let parsedUrl = url.parse(serverUrl) - return this._getAgent(parsedUrl) + let parsedUrl = url.parse(serverUrl); + return this._getAgent(parsedUrl); } _prepareRequest(method, requestUrl, headers) { - const info = {} - info.parsedUrl = requestUrl - const usingSsl = info.parsedUrl.protocol === 'https:' - info.httpModule = usingSsl ? https : http - const defaultPort = usingSsl ? 443 : 80 - info.options = {} - info.options.host = info.parsedUrl.hostname + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; info.options.port = info.parsedUrl.port ? parseInt(info.parsedUrl.port) - : defaultPort + : defaultPort; info.options.path = - (info.parsedUrl.pathname || '') + (info.parsedUrl.search || '') - info.options.method = method - info.options.headers = this._mergeHeaders(headers) + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); if (this.userAgent != null) { - info.options.headers['user-agent'] = this.userAgent + info.options.headers['user-agent'] = this.userAgent; } - info.options.agent = this._getAgent(info.parsedUrl) + info.options.agent = this._getAgent(info.parsedUrl); // gives handlers an opportunity to participate if (this.handlers) { - this.handlers.forEach(handler => { - handler.prepareRequest(info.options) - }) + this.handlers.forEach((handler) => { + handler.prepareRequest(info.options); + }); } - return info + return info; } _mergeHeaders(headers) { - const lowercaseKeys = obj => + const lowercaseKeys = (obj) => Object.keys(obj).reduce( (c, k) => ((c[k.toLowerCase()] = obj[k]), c), - {} - ) + {}, + ); if (this.requestOptions && this.requestOptions.headers) { return Object.assign( {}, lowercaseKeys(this.requestOptions.headers), - lowercaseKeys(headers) - ) + lowercaseKeys(headers), + ); } - return lowercaseKeys(headers || {}) + return lowercaseKeys(headers || {}); } _getExistingOrDefaultHeader(additionalHeaders, header, _default) { - const lowercaseKeys = obj => + const lowercaseKeys = (obj) => Object.keys(obj).reduce( (c, k) => ((c[k.toLowerCase()] = obj[k]), c), - {} - ) - let clientHeader + {}, + ); + let clientHeader; if (this.requestOptions && this.requestOptions.headers) { - clientHeader = lowercaseKeys(this.requestOptions.headers)[header] + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; } - return additionalHeaders[header] || clientHeader || _default + return additionalHeaders[header] || clientHeader || _default; } _getAgent(parsedUrl) { - let agent - let proxyUrl = pm.getProxyUrl(parsedUrl) - let useProxy = proxyUrl && proxyUrl.hostname + let agent; + let proxyUrl = pm.getProxyUrl(parsedUrl); + let useProxy = proxyUrl && proxyUrl.hostname; if (this._keepAlive && useProxy) { - agent = this._proxyAgent + agent = this._proxyAgent; } if (this._keepAlive && !useProxy) { - agent = this._agent + agent = this._agent; } // if agent is already assigned use that agent. if (!!agent) { - return agent + return agent; } - const usingSsl = parsedUrl.protocol === 'https:' - let maxSockets = 100 + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; if (!!this.requestOptions) { maxSockets = - this.requestOptions.maxSockets || http.globalAgent.maxSockets + this.requestOptions.maxSockets || http.globalAgent.maxSockets; } if (useProxy) { // If using proxy, need tunnel if (!tunnel) { - tunnel = __webpack_require__(4294) + tunnel = __webpack_require__(4294); } const agentOptions = { maxSockets: maxSockets, @@ -1145,117 +1155,117 @@ module.exports = /******/ (() => { proxy: { proxyAuth: proxyUrl.auth, host: proxyUrl.hostname, - port: proxyUrl.port - } - } - let tunnelAgent - const overHttps = proxyUrl.protocol === 'https:' + port: proxyUrl.port, + }, + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; if (usingSsl) { tunnelAgent = overHttps ? tunnel.httpsOverHttps - : tunnel.httpsOverHttp + : tunnel.httpsOverHttp; } else { tunnelAgent = overHttps ? tunnel.httpOverHttps - : tunnel.httpOverHttp + : tunnel.httpOverHttp; } - agent = tunnelAgent(agentOptions) - this._proxyAgent = agent + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; } // if reusing agent across request and tunneling agent isn't assigned create a new agent if (this._keepAlive && !agent) { const options = { keepAlive: this._keepAlive, - maxSockets: maxSockets - } + maxSockets: maxSockets, + }; agent = usingSsl ? new https.Agent(options) - : new http.Agent(options) - this._agent = agent + : new http.Agent(options); + this._agent = agent; } // if not using private agent and tunnel agent isn't setup then use global agent if (!agent) { - agent = usingSsl ? https.globalAgent : http.globalAgent + agent = usingSsl ? https.globalAgent : http.globalAgent; } if (usingSsl && this._ignoreSslError) { // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options // we have to cast it to any and change it directly agent.options = Object.assign(agent.options || {}, { - rejectUnauthorized: false - }) + rejectUnauthorized: false, + }); } - return agent + return agent; } _performExponentialBackoff(retryNumber) { - retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber) - const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber) - return new Promise(resolve => setTimeout(() => resolve(), ms)) + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise((resolve) => setTimeout(() => resolve(), ms)); } static dateTimeDeserializer(key, value) { if (typeof value === 'string') { - let a = new Date(value) + let a = new Date(value); if (!isNaN(a.valueOf())) { - return a + return a; } } - return value + return value; } async _processResponse(res, options) { return new Promise(async (resolve, reject) => { - const statusCode = res.message.statusCode + const statusCode = res.message.statusCode; const response = { statusCode: statusCode, result: null, - headers: {} - } + headers: {}, + }; // not found leads to null obj returned if (statusCode == HttpCodes.NotFound) { - resolve(response) + resolve(response); } - let obj - let contents + let obj; + let contents; // get the result from the body try { - contents = await res.readBody() + contents = await res.readBody(); if (contents && contents.length > 0) { if (options && options.deserializeDates) { - obj = JSON.parse(contents, HttpClient.dateTimeDeserializer) + obj = JSON.parse(contents, HttpClient.dateTimeDeserializer); } else { - obj = JSON.parse(contents) + obj = JSON.parse(contents); } - response.result = obj + response.result = obj; } - response.headers = res.message.headers + response.headers = res.message.headers; } catch (err) { // Invalid resource (contents not json); leaving result obj null } // note that 3xx redirects are handled by the http layer. if (statusCode > 299) { - let msg + let msg; // if exception/error in body, attempt to get better error if (obj && obj.message) { - msg = obj.message + msg = obj.message; } else if (contents && contents.length > 0) { // it may be the case that the exception is in the body message as string - msg = contents + msg = contents; } else { - msg = 'Failed request: (' + statusCode + ')' + msg = 'Failed request: (' + statusCode + ')'; } - let err = new Error(msg) + let err = new Error(msg); // attach statusCode and body obj (if available) to the error object - err['statusCode'] = statusCode + err['statusCode'] = statusCode; if (response.result) { - err['result'] = response.result + err['result'] = response.result; } - reject(err) + reject(err); } else { - resolve(response) + resolve(response); } - }) + }); } } - exports.HttpClient = HttpClient + exports.HttpClient = HttpClient; /***/ }, @@ -1263,72 +1273,72 @@ module.exports = /******/ (() => { /***/ 6443: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const url = __webpack_require__(8835) + Object.defineProperty(exports, '__esModule', { value: true }); + const url = __webpack_require__(8835); function getProxyUrl(reqUrl) { - let usingSsl = reqUrl.protocol === 'https:' - let proxyUrl + let usingSsl = reqUrl.protocol === 'https:'; + let proxyUrl; if (checkBypass(reqUrl)) { - return proxyUrl + return proxyUrl; } - let proxyVar + let proxyVar; if (usingSsl) { - proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY'] + proxyVar = process.env['https_proxy'] || process.env['HTTPS_PROXY']; } else { - proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY'] + proxyVar = process.env['http_proxy'] || process.env['HTTP_PROXY']; } if (proxyVar) { - proxyUrl = url.parse(proxyVar) + proxyUrl = url.parse(proxyVar); } - return proxyUrl + return proxyUrl; } - exports.getProxyUrl = getProxyUrl + exports.getProxyUrl = getProxyUrl; function checkBypass(reqUrl) { if (!reqUrl.hostname) { - return false + return false; } - let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || '' + let noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; if (!noProxy) { - return false + return false; } // Determine the request port - let reqPort + let reqPort; if (reqUrl.port) { - reqPort = Number(reqUrl.port) + reqPort = Number(reqUrl.port); } else if (reqUrl.protocol === 'http:') { - reqPort = 80 + reqPort = 80; } else if (reqUrl.protocol === 'https:') { - reqPort = 443 + reqPort = 443; } // Format the request hostname and hostname with port - let upperReqHosts = [reqUrl.hostname.toUpperCase()] + let upperReqHosts = [reqUrl.hostname.toUpperCase()]; if (typeof reqPort === 'number') { - upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`) + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); } // Compare request host against noproxy for (let upperNoProxyItem of noProxy .split(',') - .map(x => x.trim().toUpperCase()) - .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { - return true + .map((x) => x.trim().toUpperCase()) + .filter((x) => x)) { + if (upperReqHosts.some((x) => x === upperNoProxyItem)) { + return true; } } - return false + return false; } - exports.checkBypass = checkBypass + exports.checkBypass = checkBypass; /***/ }, /***/ 334: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); async function auth(token) { const tokenType = @@ -1336,12 +1346,12 @@ module.exports = /******/ (() => { ? 'app' : /^v\d+\./.test(token) ? 'installation' - : 'oauth' + : 'oauth'; return { type: 'token', token: token, - tokenType - } + tokenType, + }; } /** @@ -1351,38 +1361,38 @@ module.exports = /******/ (() => { */ function withAuthorizationPrefix(token) { if (token.split(/\./).length === 3) { - return `bearer ${token}` + return `bearer ${token}`; } - return `token ${token}` + return `token ${token}`; } async function hook(token, request, route, parameters) { - const endpoint = request.endpoint.merge(route, parameters) - endpoint.headers.authorization = withAuthorizationPrefix(token) - return request(endpoint) + const endpoint = request.endpoint.merge(route, parameters); + endpoint.headers.authorization = withAuthorizationPrefix(token); + return request(endpoint); } const createTokenAuth = function createTokenAuth(token) { if (!token) { throw new Error( - '[@octokit/auth-token] No token passed to createTokenAuth' - ) + '[@octokit/auth-token] No token passed to createTokenAuth', + ); } if (typeof token !== 'string') { throw new Error( - '[@octokit/auth-token] Token passed to createTokenAuth is not a string' - ) + '[@octokit/auth-token] Token passed to createTokenAuth is not a string', + ); } - token = token.replace(/^(token|bearer) +/i, '') + token = token.replace(/^(token|bearer) +/i, ''); return Object.assign(auth.bind(null, token), { - hook: hook.bind(null, token) - }) - } + hook: hook.bind(null, token), + }); + }; - exports.createTokenAuth = createTokenAuth + exports.createTokenAuth = createTokenAuth; //# sourceMappingURL=index.js.map /***/ @@ -1391,134 +1401,134 @@ module.exports = /******/ (() => { /***/ 9440: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var isPlainObject = _interopDefault(__webpack_require__(4038)) - var universalUserAgent = __webpack_require__(1292) + var isPlainObject = _interopDefault(__webpack_require__(4038)); + var universalUserAgent = __webpack_require__(1292); function lowercaseKeys(object) { if (!object) { - return {} + return {}; } return Object.keys(object).reduce((newObj, key) => { - newObj[key.toLowerCase()] = object[key] - return newObj - }, {}) + newObj[key.toLowerCase()] = object[key]; + return newObj; + }, {}); } function mergeDeep(defaults, options) { - const result = Object.assign({}, defaults) - Object.keys(options).forEach(key => { + const result = Object.assign({}, defaults); + Object.keys(options).forEach((key) => { if (isPlainObject(options[key])) { if (!(key in defaults)) Object.assign(result, { - [key]: options[key] - }) - else result[key] = mergeDeep(defaults[key], options[key]) + [key]: options[key], + }); + else result[key] = mergeDeep(defaults[key], options[key]); } else { Object.assign(result, { - [key]: options[key] - }) + [key]: options[key], + }); } - }) - return result + }); + return result; } function merge(defaults, route, options) { if (typeof route === 'string') { - let [method, url] = route.split(' ') + let [method, url] = route.split(' '); options = Object.assign( url ? { method, - url + url, } : { - url: method + url: method, }, - options - ) + options, + ); } else { - options = Object.assign({}, route) + options = Object.assign({}, route); } // lowercase header names before merging with defaults to avoid duplicates - options.headers = lowercaseKeys(options.headers) - const mergedOptions = mergeDeep(defaults || {}, options) // mediaType.previews arrays are merged, instead of overwritten + options.headers = lowercaseKeys(options.headers); + const mergedOptions = mergeDeep(defaults || {}, options); // mediaType.previews arrays are merged, instead of overwritten if (defaults && defaults.mediaType.previews.length) { mergedOptions.mediaType.previews = defaults.mediaType.previews .filter( - preview => !mergedOptions.mediaType.previews.includes(preview) + (preview) => !mergedOptions.mediaType.previews.includes(preview), ) - .concat(mergedOptions.mediaType.previews) + .concat(mergedOptions.mediaType.previews); } mergedOptions.mediaType.previews = mergedOptions.mediaType.previews.map( - preview => preview.replace(/-preview/, '') - ) - return mergedOptions + (preview) => preview.replace(/-preview/, ''), + ); + return mergedOptions; } function addQueryParameters(url, parameters) { - const separator = /\?/.test(url) ? '&' : '?' - const names = Object.keys(parameters) + const separator = /\?/.test(url) ? '&' : '?'; + const names = Object.keys(parameters); if (names.length === 0) { - return url + return url; } return ( url + separator + names - .map(name => { + .map((name) => { if (name === 'q') { return ( 'q=' + parameters.q.split('+').map(encodeURIComponent).join('+') - ) + ); } - return `${name}=${encodeURIComponent(parameters[name])}` + return `${name}=${encodeURIComponent(parameters[name])}`; }) .join('&') - ) + ); } - const urlVariableRegex = /\{[^}]+\}/g + const urlVariableRegex = /\{[^}]+\}/g; function removeNonChars(variableName) { - return variableName.replace(/^\W+|\W+$/g, '').split(/,/) + return variableName.replace(/^\W+|\W+$/g, '').split(/,/); } function extractUrlVariableNames(url) { - const matches = url.match(urlVariableRegex) + const matches = url.match(urlVariableRegex); if (!matches) { - return [] + return []; } - return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []) + return matches.map(removeNonChars).reduce((a, b) => a.concat(b), []); } function omit(object, keysToOmit) { return Object.keys(object) - .filter(option => !keysToOmit.includes(option)) + .filter((option) => !keysToOmit.includes(option)) .reduce((obj, key) => { - obj[key] = object[key] - return obj - }, {}) + obj[key] = object[key]; + return obj; + }, {}); } // Based on https://github.com/bramstein/url-template, licensed under BSD @@ -1553,44 +1563,44 @@ module.exports = /******/ (() => { .split(/(%[0-9A-Fa-f]{2})/g) .map(function (part) { if (!/%[0-9A-Fa-f]/.test(part)) { - part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']') + part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); } - return part + return part; }) - .join('') + .join(''); } function encodeUnreserved(str) { return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return '%' + c.charCodeAt(0).toString(16).toUpperCase() - }) + return '%' + c.charCodeAt(0).toString(16).toUpperCase(); + }); } function encodeValue(operator, value, key) { value = operator === '+' || operator === '#' ? encodeReserved(value) - : encodeUnreserved(value) + : encodeUnreserved(value); if (key) { - return encodeUnreserved(key) + '=' + value + return encodeUnreserved(key) + '=' + value; } else { - return value + return value; } } function isDefined(value) { - return value !== undefined && value !== null + return value !== undefined && value !== null; } function isKeyOperator(operator) { - return operator === ';' || operator === '&' || operator === '?' + return operator === ';' || operator === '&' || operator === '?'; } function getValues(context, operator, key, modifier) { var value = context[key], - result = [] + result = []; if (isDefined(value) && value !== '') { if ( @@ -1598,15 +1608,15 @@ module.exports = /******/ (() => { typeof value === 'number' || typeof value === 'boolean' ) { - value = value.toString() + value = value.toString(); if (modifier && modifier !== '*') { - value = value.substring(0, parseInt(modifier, 10)) + value = value.substring(0, parseInt(modifier, 10)); } result.push( - encodeValue(operator, value, isKeyOperator(operator) ? key : '') - ) + encodeValue(operator, value, isKeyOperator(operator) ? key : ''), + ); } else { if (modifier === '*') { if (Array.isArray(value)) { @@ -1615,226 +1625,226 @@ module.exports = /******/ (() => { encodeValue( operator, value, - isKeyOperator(operator) ? key : '' - ) - ) - }) + isKeyOperator(operator) ? key : '', + ), + ); + }); } else { Object.keys(value).forEach(function (k) { if (isDefined(value[k])) { - result.push(encodeValue(operator, value[k], k)) + result.push(encodeValue(operator, value[k], k)); } - }) + }); } } else { - const tmp = [] + const tmp = []; if (Array.isArray(value)) { value.filter(isDefined).forEach(function (value) { - tmp.push(encodeValue(operator, value)) - }) + tmp.push(encodeValue(operator, value)); + }); } else { Object.keys(value).forEach(function (k) { if (isDefined(value[k])) { - tmp.push(encodeUnreserved(k)) - tmp.push(encodeValue(operator, value[k].toString())) + tmp.push(encodeUnreserved(k)); + tmp.push(encodeValue(operator, value[k].toString())); } - }) + }); } if (isKeyOperator(operator)) { - result.push(encodeUnreserved(key) + '=' + tmp.join(',')) + result.push(encodeUnreserved(key) + '=' + tmp.join(',')); } else if (tmp.length !== 0) { - result.push(tmp.join(',')) + result.push(tmp.join(',')); } } } } else { if (operator === ';') { if (isDefined(value)) { - result.push(encodeUnreserved(key)) + result.push(encodeUnreserved(key)); } } else if (value === '' && (operator === '&' || operator === '?')) { - result.push(encodeUnreserved(key) + '=') + result.push(encodeUnreserved(key) + '='); } else if (value === '') { - result.push('') + result.push(''); } } - return result + return result; } function parseUrl(template) { return { - expand: expand.bind(null, template) - } + expand: expand.bind(null, template), + }; } function expand(template, context) { - var operators = ['+', '#', '.', '/', ';', '?', '&'] + var operators = ['+', '#', '.', '/', ';', '?', '&']; return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function ( _, expression, - literal + literal, ) { if (expression) { - let operator = '' - const values = [] + let operator = ''; + const values = []; if (operators.indexOf(expression.charAt(0)) !== -1) { - operator = expression.charAt(0) - expression = expression.substr(1) + operator = expression.charAt(0); + expression = expression.substr(1); } expression.split(/,/g).forEach(function (variable) { - var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable) + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); values.push( - getValues(context, operator, tmp[1], tmp[2] || tmp[3]) - ) - }) + getValues(context, operator, tmp[1], tmp[2] || tmp[3]), + ); + }); if (operator && operator !== '+') { - var separator = ',' + var separator = ','; if (operator === '?') { - separator = '&' + separator = '&'; } else if (operator !== '#') { - separator = operator + separator = operator; } return ( (values.length !== 0 ? operator : '') + values.join(separator) - ) + ); } else { - return values.join(',') + return values.join(','); } } else { - return encodeReserved(literal) + return encodeReserved(literal); } - }) + }); } function parse(options) { // https://fetch.spec.whatwg.org/#methods - let method = options.method.toUpperCase() // replace :varname with {varname} to make it RFC 6570 compatible + let method = options.method.toUpperCase(); // replace :varname with {varname} to make it RFC 6570 compatible - let url = (options.url || '/').replace(/:([a-z]\w+)/g, '{+$1}') - let headers = Object.assign({}, options.headers) - let body + let url = (options.url || '/').replace(/:([a-z]\w+)/g, '{+$1}'); + let headers = Object.assign({}, options.headers); + let body; let parameters = omit(options, [ 'method', 'baseUrl', 'url', 'headers', 'request', - 'mediaType' - ]) // extract variable names from URL to calculate remaining variables later + 'mediaType', + ]); // extract variable names from URL to calculate remaining variables later - const urlVariableNames = extractUrlVariableNames(url) - url = parseUrl(url).expand(parameters) + const urlVariableNames = extractUrlVariableNames(url); + url = parseUrl(url).expand(parameters); if (!/^http/.test(url)) { - url = options.baseUrl + url + url = options.baseUrl + url; } const omittedParameters = Object.keys(options) - .filter(option => urlVariableNames.includes(option)) - .concat('baseUrl') - const remainingParameters = omit(parameters, omittedParameters) + .filter((option) => urlVariableNames.includes(option)) + .concat('baseUrl'); + const remainingParameters = omit(parameters, omittedParameters); const isBinaryRequset = /application\/octet-stream/i.test( - headers.accept - ) + headers.accept, + ); if (!isBinaryRequset) { if (options.mediaType.format) { // e.g. application/vnd.github.v3+json => application/vnd.github.v3.raw headers.accept = headers.accept .split(/,/) - .map(preview => + .map((preview) => preview.replace( /application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/, - `application/vnd$1$2.${options.mediaType.format}` - ) + `application/vnd$1$2.${options.mediaType.format}`, + ), ) - .join(',') + .join(','); } if (options.mediaType.previews.length) { const previewsFromAcceptHeader = - headers.accept.match(/[\w-]+(?=-preview)/g) || [] + headers.accept.match(/[\w-]+(?=-preview)/g) || []; headers.accept = previewsFromAcceptHeader .concat(options.mediaType.previews) - .map(preview => { + .map((preview) => { const format = options.mediaType.format ? `.${options.mediaType.format}` - : '+json' - return `application/vnd.github.${preview}-preview${format}` + : '+json'; + return `application/vnd.github.${preview}-preview${format}`; }) - .join(',') + .join(','); } } // for GET/HEAD requests, set URL query parameters from remaining parameters // for PATCH/POST/PUT/DELETE requests, set request body from remaining parameters if (['GET', 'HEAD'].includes(method)) { - url = addQueryParameters(url, remainingParameters) + url = addQueryParameters(url, remainingParameters); } else { if ('data' in remainingParameters) { - body = remainingParameters.data + body = remainingParameters.data; } else { if (Object.keys(remainingParameters).length) { - body = remainingParameters + body = remainingParameters; } else { - headers['content-length'] = 0 + headers['content-length'] = 0; } } } // default content-type for JSON if body is set if (!headers['content-type'] && typeof body !== 'undefined') { - headers['content-type'] = 'application/json; charset=utf-8' + headers['content-type'] = 'application/json; charset=utf-8'; } // GitHub expects 'content-length: 0' header for PUT/PATCH requests without body. // fetch does not allow to set `content-length` header, but we can set body to an empty string if (['PATCH', 'PUT'].includes(method) && typeof body === 'undefined') { - body = '' + body = ''; } // Only return body/request keys if present return Object.assign( { method, url, - headers + headers, }, typeof body !== 'undefined' ? { - body + body, } : null, options.request ? { - request: options.request + request: options.request, } - : null - ) + : null, + ); } function endpointWithDefaults(defaults, route, options) { - return parse(merge(defaults, route, options)) + return parse(merge(defaults, route, options)); } function withDefaults(oldDefaults, newDefaults) { - const DEFAULTS = merge(oldDefaults, newDefaults) - const endpoint = endpointWithDefaults.bind(null, DEFAULTS) + const DEFAULTS = merge(oldDefaults, newDefaults); + const endpoint = endpointWithDefaults.bind(null, DEFAULTS); return Object.assign(endpoint, { DEFAULTS, defaults: withDefaults.bind(null, DEFAULTS), merge: merge.bind(null, DEFAULTS), - parse - }) + parse, + }); } - const VERSION = '5.5.3' + const VERSION = '5.5.3'; - const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}` // DEFAULTS has all properties set that EndpointOptions has, except url. + const userAgent = `octokit-endpoint.js/${VERSION} ${universalUserAgent.getUserAgent()}`; // DEFAULTS has all properties set that EndpointOptions has, except url. // So we use RequestParameters and add method as additional required property. const DEFAULTS = { @@ -1842,24 +1852,24 @@ module.exports = /******/ (() => { baseUrl: 'https://api.github.com', headers: { accept: 'application/vnd.github.v3+json', - 'user-agent': userAgent + 'user-agent': userAgent, }, mediaType: { format: '', - previews: [] - } - } + previews: [], + }, + }; - const endpoint = withDefaults(null, DEFAULTS) + const endpoint = withDefaults(null, DEFAULTS); - exports.endpoint = endpoint + exports.endpoint = endpoint; //# sourceMappingURL=index.js.map /***/ }, - /***/ 4038: /***/ module => { - 'use strict' + /***/ 4038: /***/ (module) => { + 'use strict'; /*! * isobject @@ -1871,7 +1881,7 @@ module.exports = /******/ (() => { function isObject(val) { return ( val != null && typeof val === 'object' && Array.isArray(val) === false - ) + ); } /*! @@ -1885,32 +1895,32 @@ module.exports = /******/ (() => { return ( isObject(o) === true && Object.prototype.toString.call(o) === '[object Object]' - ) + ); } function isPlainObject(o) { - var ctor, prot + var ctor, prot; - if (isObjectObject(o) === false) return false + if (isObjectObject(o) === false) return false; // If has modified constructor - ctor = o.constructor - if (typeof ctor !== 'function') return false + ctor = o.constructor; + if (typeof ctor !== 'function') return false; // If has modified prototype - prot = ctor.prototype - if (isObjectObject(prot) === false) return false + prot = ctor.prototype; + if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method if (prot.hasOwnProperty('isPrototypeOf') === false) { - return false + return false; } // Most likely a plain Object - return true + return true; } - module.exports = isPlainObject + module.exports = isPlainObject; /***/ }, @@ -1918,35 +1928,35 @@ module.exports = /******/ (() => { /***/ 1292: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var osName = _interopDefault(__webpack_require__(4824)) + var osName = _interopDefault(__webpack_require__(4824)); function getUserAgent() { try { return `Node.js/${process.version.substr(1)} (${osName()}; ${ process.arch - })` + })`; } catch (error) { if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' + return 'Windows '; } - return '' + return ''; } } - exports.getUserAgent = getUserAgent + exports.getUserAgent = getUserAgent; //# sourceMappingURL=index.js.map /***/ @@ -1955,29 +1965,29 @@ module.exports = /******/ (() => { /***/ 8467: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); - var request = __webpack_require__(6234) - var universalUserAgent = __webpack_require__(5030) + var request = __webpack_require__(6234); + var universalUserAgent = __webpack_require__(5030); - const VERSION = '4.3.1' + const VERSION = '4.3.1'; class GraphqlError extends Error { constructor(request, response) { - const message = response.data.errors[0].message - super(message) - Object.assign(this, response.data) - this.name = 'GraphqlError' - this.request = request // Maintains proper stack trace (only available on V8) + const message = response.data.errors[0].message; + super(message); + Object.assign(this, response.data); + this.name = 'GraphqlError'; + this.request = request; // Maintains proper stack trace (only available on V8) /* istanbul ignore next */ if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } } } @@ -1988,82 +1998,82 @@ module.exports = /******/ (() => { 'url', 'headers', 'request', - 'query' - ] + 'query', + ]; function graphql(request, query, options) { options = typeof query === 'string' ? (options = Object.assign( { - query + query, }, - options + options, )) - : (options = query) + : (options = query); const requestOptions = Object.keys(options).reduce((result, key) => { if (NON_VARIABLE_OPTIONS.includes(key)) { - result[key] = options[key] - return result + result[key] = options[key]; + return result; } if (!result.variables) { - result.variables = {} + result.variables = {}; } - result.variables[key] = options[key] - return result - }, {}) - return request(requestOptions).then(response => { + result.variables[key] = options[key]; + return result; + }, {}); + return request(requestOptions).then((response) => { if (response.data.errors) { throw new GraphqlError(requestOptions, { - data: response.data - }) + data: response.data, + }); } - return response.data.data - }) + return response.data.data; + }); } function withDefaults(request$1, newDefaults) { - const newRequest = request$1.defaults(newDefaults) + const newRequest = request$1.defaults(newDefaults); const newApi = (query, options) => { - return graphql(newRequest, query, options) - } + return graphql(newRequest, query, options); + }; return Object.assign(newApi, { defaults: withDefaults.bind(null, newRequest), - endpoint: request.request.endpoint - }) + endpoint: request.request.endpoint, + }); } const graphql$1 = withDefaults(request.request, { headers: { - 'user-agent': `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}` + 'user-agent': `octokit-graphql.js/${VERSION} ${universalUserAgent.getUserAgent()}`, }, method: 'POST', - url: '/graphql' - }) + url: '/graphql', + }); function withCustomRequest(customRequest) { return withDefaults(customRequest, { method: 'POST', - url: '/graphql' - }) + url: '/graphql', + }); } - exports.graphql = graphql$1 - exports.withCustomRequest = withCustomRequest + exports.graphql = graphql$1; + exports.withCustomRequest = withCustomRequest; //# sourceMappingURL=index.js.map /***/ }, /***/ 4193: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); - const VERSION = '1.1.2' + const VERSION = '1.1.2'; /** * Some “list” response that can be paginated have a different response structure @@ -2092,116 +2102,118 @@ module.exports = /******/ (() => { /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, - /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/ - ] + /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/, + ]; function normalizePaginatedListResponse(octokit, url, response) { - const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, '') - const responseNeedsNormalization = REGEX.find(regex => regex.test(path)) - if (!responseNeedsNormalization) return // keep the additional properties intact as there is currently no other way + const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, ''); + const responseNeedsNormalization = REGEX.find((regex) => + regex.test(path), + ); + if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way // to retrieve the same information. - const incompleteResults = response.data.incomplete_results - const repositorySelection = response.data.repository_selection - const totalCount = response.data.total_count - delete response.data.incomplete_results - delete response.data.repository_selection - delete response.data.total_count - const namespaceKey = Object.keys(response.data)[0] - const data = response.data[namespaceKey] - response.data = data + const incompleteResults = response.data.incomplete_results; + const repositorySelection = response.data.repository_selection; + const totalCount = response.data.total_count; + delete response.data.incomplete_results; + delete response.data.repository_selection; + delete response.data.total_count; + const namespaceKey = Object.keys(response.data)[0]; + const data = response.data[namespaceKey]; + response.data = data; if (typeof incompleteResults !== 'undefined') { - response.data.incomplete_results = incompleteResults + response.data.incomplete_results = incompleteResults; } if (typeof repositorySelection !== 'undefined') { - response.data.repository_selection = repositorySelection + response.data.repository_selection = repositorySelection; } - response.data.total_count = totalCount + response.data.total_count = totalCount; Object.defineProperty(response.data, namespaceKey, { get() { octokit.log.warn( - `[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"` - ) - return Array.from(data) - } - }) + `[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`, + ); + return Array.from(data); + }, + }); } function iterator(octokit, route, parameters) { - const options = octokit.request.endpoint(route, parameters) - const method = options.method - const headers = options.headers - let url = options.url + const options = octokit.request.endpoint(route, parameters); + const method = options.method; + const headers = options.headers; + let url = options.url; return { [Symbol.asyncIterator]: () => ({ next() { if (!url) { return Promise.resolve({ - done: true - }) + done: true, + }); } return octokit .request({ method, url, - headers + headers, }) - .then(response => { - normalizePaginatedListResponse(octokit, url, response) // `response.headers.link` format: + .then((response) => { + normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format: // '; rel="next", ; rel="last"' // sets `url` to undefined if "next" URL is not present or `link` header is not set url = ((response.headers.link || '').match( - /<([^>]+)>;\s*rel="next"/ - ) || [])[1] + /<([^>]+)>;\s*rel="next"/, + ) || [])[1]; return { - value: response - } - }) - } - }) - } + value: response, + }; + }); + }, + }), + }; } function paginate(octokit, route, parameters, mapFn) { if (typeof parameters === 'function') { - mapFn = parameters - parameters = undefined + mapFn = parameters; + parameters = undefined; } return gather( octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), - mapFn - ) + mapFn, + ); } function gather(octokit, results, iterator, mapFn) { - return iterator.next().then(result => { + return iterator.next().then((result) => { if (result.done) { - return results + return results; } - let earlyExit = false + let earlyExit = false; function done() { - earlyExit = true + earlyExit = true; } results = results.concat( - mapFn ? mapFn(result.value, done) : result.value.data - ) + mapFn ? mapFn(result.value, done) : result.value.data, + ); if (earlyExit) { - return results + return results; } - return gather(octokit, results, iterator, mapFn) - }) + return gather(octokit, results, iterator, mapFn); + }); } /** @@ -2212,24 +2224,24 @@ module.exports = /******/ (() => { function paginateRest(octokit) { return { paginate: Object.assign(paginate.bind(null, octokit), { - iterator: iterator.bind(null, octokit) - }) - } + iterator: iterator.bind(null, octokit), + }), + }; } - paginateRest.VERSION = VERSION + paginateRest.VERSION = VERSION; - exports.paginateRest = paginateRest + exports.paginateRest = paginateRest; //# sourceMappingURL=index.js.map /***/ }, /***/ 8883: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); - const VERSION = '1.0.0' + const VERSION = '1.0.0'; /** * @param octokit Octokit instance @@ -2238,32 +2250,32 @@ module.exports = /******/ (() => { function requestLog(octokit) { octokit.hook.wrap('request', (request, options) => { - octokit.log.debug('request', options) - const start = Date.now() - const requestOptions = octokit.request.endpoint.parse(options) - const path = requestOptions.url.replace(options.baseUrl, '') + octokit.log.debug('request', options); + const start = Date.now(); + const requestOptions = octokit.request.endpoint.parse(options); + const path = requestOptions.url.replace(options.baseUrl, ''); return request(options) - .then(response => { + .then((response) => { octokit.log.info( `${requestOptions.method} ${path} - ${response.status} in ${ Date.now() - start - }ms` - ) - return response + }ms`, + ); + return response; }) - .catch(error => { + .catch((error) => { octokit.log.info( `${requestOptions.method} ${path} - ${error.status} in ${ Date.now() - start - }ms` - ) - throw error - }) - }) + }ms`, + ); + throw error; + }); + }); } - requestLog.VERSION = VERSION + requestLog.VERSION = VERSION; - exports.requestLog = requestLog + exports.requestLog = requestLog; //# sourceMappingURL=index.js.map /***/ @@ -2272,13 +2284,13 @@ module.exports = /******/ (() => { /***/ 3044: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); - var deprecation = __webpack_require__(8932) + var deprecation = __webpack_require__(8932); var endpointsByScope = { actions: { @@ -2287,534 +2299,534 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id/cancel' + url: '/repos/:owner/:repo/actions/runs/:run_id/cancel', }, createOrUpdateSecretForRepo: { method: 'PUT', params: { encrypted_value: { - type: 'string' + type: 'string', }, key_id: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/secrets/:name' + url: '/repos/:owner/:repo/actions/secrets/:name', }, createRegistrationToken: { method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/runners/registration-token' + url: '/repos/:owner/:repo/actions/runners/registration-token', }, createRemoveToken: { method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/runners/remove-token' + url: '/repos/:owner/:repo/actions/runners/remove-token', }, deleteArtifact: { method: 'DELETE', params: { artifact_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/artifacts/:artifact_id' + url: '/repos/:owner/:repo/actions/artifacts/:artifact_id', }, deleteSecretFromRepo: { method: 'DELETE', params: { name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/secrets/:name' + url: '/repos/:owner/:repo/actions/secrets/:name', }, downloadArtifact: { method: 'GET', params: { archive_format: { required: true, - type: 'string' + type: 'string', }, artifact_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format' + '/repos/:owner/:repo/actions/artifacts/:artifact_id/:archive_format', }, getArtifact: { method: 'GET', params: { artifact_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/artifacts/:artifact_id' + url: '/repos/:owner/:repo/actions/artifacts/:artifact_id', }, getPublicKey: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/secrets/public-key' + url: '/repos/:owner/:repo/actions/secrets/public-key', }, getSecret: { method: 'GET', params: { name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/secrets/:name' + url: '/repos/:owner/:repo/actions/secrets/:name', }, getSelfHostedRunner: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, runner_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runners/:runner_id' + url: '/repos/:owner/:repo/actions/runners/:runner_id', }, getWorkflow: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, workflow_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/workflows/:workflow_id' + url: '/repos/:owner/:repo/actions/workflows/:workflow_id', }, getWorkflowJob: { method: 'GET', params: { job_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/jobs/:job_id' + url: '/repos/:owner/:repo/actions/jobs/:job_id', }, getWorkflowRun: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id' + url: '/repos/:owner/:repo/actions/runs/:run_id', }, listDownloadsForSelfHostedRunnerApplication: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/runners/downloads' + url: '/repos/:owner/:repo/actions/runners/downloads', }, listJobsForWorkflowRun: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id/jobs' + url: '/repos/:owner/:repo/actions/runs/:run_id/jobs', }, listRepoWorkflowRuns: { method: 'GET', params: { actor: { - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, event: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, status: { enum: ['completed', 'status', 'conclusion'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/runs' + url: '/repos/:owner/:repo/actions/runs', }, listRepoWorkflows: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/workflows' + url: '/repos/:owner/:repo/actions/workflows', }, listSecretsForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/secrets' + url: '/repos/:owner/:repo/actions/secrets', }, listSelfHostedRunnersForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/runners' + url: '/repos/:owner/:repo/actions/runners', }, listWorkflowJobLogs: { method: 'GET', params: { job_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/actions/jobs/:job_id/logs' + url: '/repos/:owner/:repo/actions/jobs/:job_id/logs', }, listWorkflowRunArtifacts: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id/artifacts' + url: '/repos/:owner/:repo/actions/runs/:run_id/artifacts', }, listWorkflowRunLogs: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id/logs' + url: '/repos/:owner/:repo/actions/runs/:run_id/logs', }, listWorkflowRuns: { method: 'GET', params: { actor: { - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, event: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, status: { enum: ['completed', 'status', 'conclusion'], - type: 'string' + type: 'string', }, workflow_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/workflows/:workflow_id/runs' + url: '/repos/:owner/:repo/actions/workflows/:workflow_id/runs', }, reRunWorkflow: { method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, run_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runs/:run_id/rerun' + url: '/repos/:owner/:repo/actions/runs/:run_id/rerun', }, removeSelfHostedRunner: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, runner_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/actions/runners/:runner_id' - } + url: '/repos/:owner/:repo/actions/runners/:runner_id', + }, }, activity: { checkStarringRepo: { @@ -2822,534 +2834,534 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/starred/:owner/:repo' + url: '/user/starred/:owner/:repo', }, deleteRepoSubscription: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/subscription' + url: '/repos/:owner/:repo/subscription', }, deleteThreadSubscription: { method: 'DELETE', params: { thread_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/notifications/threads/:thread_id/subscription' + url: '/notifications/threads/:thread_id/subscription', }, getRepoSubscription: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/subscription' + url: '/repos/:owner/:repo/subscription', }, getThread: { method: 'GET', params: { thread_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/notifications/threads/:thread_id' + url: '/notifications/threads/:thread_id', }, getThreadSubscription: { method: 'GET', params: { thread_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/notifications/threads/:thread_id/subscription' + url: '/notifications/threads/:thread_id/subscription', }, listEventsForOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/events/orgs/:org' + url: '/users/:username/events/orgs/:org', }, listEventsForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/events' + url: '/users/:username/events', }, listFeeds: { method: 'GET', params: {}, - url: '/feeds' + url: '/feeds', }, listNotifications: { method: 'GET', params: { all: { - type: 'boolean' + type: 'boolean', }, before: { - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, participating: { - type: 'boolean' + type: 'boolean', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/notifications' + url: '/notifications', }, listNotificationsForRepo: { method: 'GET', params: { all: { - type: 'boolean' + type: 'boolean', }, before: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, participating: { - type: 'boolean' + type: 'boolean', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' - } - }, - url: '/repos/:owner/:repo/notifications' + type: 'string', + }, + }, + url: '/repos/:owner/:repo/notifications', }, listPublicEvents: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/events' + url: '/events', }, listPublicEventsForOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/events' + url: '/orgs/:org/events', }, listPublicEventsForRepoNetwork: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/networks/:owner/:repo/events' + url: '/networks/:owner/:repo/events', }, listPublicEventsForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/events/public' + url: '/users/:username/events/public', }, listReceivedEventsForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/received_events' + url: '/users/:username/received_events', }, listReceivedPublicEventsForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/received_events/public' + url: '/users/:username/received_events/public', }, listRepoEvents: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/events' + url: '/repos/:owner/:repo/events', }, listReposStarredByAuthenticatedUser: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/user/starred' + url: '/user/starred', }, listReposStarredByUser: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated'], - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/starred' + url: '/users/:username/starred', }, listReposWatchedByUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/subscriptions' + url: '/users/:username/subscriptions', }, listStargazersForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stargazers' + url: '/repos/:owner/:repo/stargazers', }, listWatchedReposForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/subscriptions' + url: '/user/subscriptions', }, listWatchersForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/subscribers' + url: '/repos/:owner/:repo/subscribers', }, markAsRead: { method: 'PUT', params: { last_read_at: { - type: 'string' - } + type: 'string', + }, }, - url: '/notifications' + url: '/notifications', }, markNotificationsAsReadForRepo: { method: 'PUT', params: { last_read_at: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/notifications' + url: '/repos/:owner/:repo/notifications', }, markThreadAsRead: { method: 'PATCH', params: { thread_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/notifications/threads/:thread_id' + url: '/notifications/threads/:thread_id', }, setRepoSubscription: { method: 'PUT', params: { ignored: { - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, subscribed: { - type: 'boolean' - } + type: 'boolean', + }, }, - url: '/repos/:owner/:repo/subscription' + url: '/repos/:owner/:repo/subscription', }, setThreadSubscription: { method: 'PUT', params: { ignored: { - type: 'boolean' + type: 'boolean', }, thread_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/notifications/threads/:thread_id/subscription' + url: '/notifications/threads/:thread_id/subscription', }, starRepo: { method: 'PUT', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/starred/:owner/:repo' + url: '/user/starred/:owner/:repo', }, unstarRepo: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/starred/:owner/:repo' - } + url: '/user/starred/:owner/:repo', + }, }, apps: { addRepoToInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'PUT', params: { installation_id: { required: true, - type: 'integer' + type: 'integer', }, repository_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/user/installations/:installation_id/repositories/:repository_id' + '/user/installations/:installation_id/repositories/:repository_id', }, checkAccountIsAssociatedWithAny: { method: 'GET', params: { account_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/marketplace_listing/accounts/:account_id' + url: '/marketplace_listing/accounts/:account_id', }, checkAccountIsAssociatedWithAnyStubbed: { method: 'GET', params: { account_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/marketplace_listing/stubbed/accounts/:account_id' + url: '/marketplace_listing/stubbed/accounts/:account_id', }, checkAuthorization: { deprecated: @@ -3358,433 +3370,433 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, checkToken: { headers: { - accept: 'application/vnd.github.doctor-strange-preview+json' + accept: 'application/vnd.github.doctor-strange-preview+json', }, method: 'POST', params: { access_token: { - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/token' + url: '/applications/:client_id/token', }, createContentAttachment: { headers: { - accept: 'application/vnd.github.corsair-preview+json' + accept: 'application/vnd.github.corsair-preview+json', }, method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, content_reference_id: { required: true, - type: 'integer' + type: 'integer', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/content_references/:content_reference_id/attachments' + url: '/content_references/:content_reference_id/attachments', }, createFromManifest: { headers: { - accept: 'application/vnd.github.fury-preview+json' + accept: 'application/vnd.github.fury-preview+json', }, method: 'POST', params: { code: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/app-manifests/:code/conversions' + url: '/app-manifests/:code/conversions', }, createInstallationToken: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'POST', params: { installation_id: { required: true, - type: 'integer' + type: 'integer', }, permissions: { - type: 'object' + type: 'object', }, repository_ids: { - type: 'integer[]' - } + type: 'integer[]', + }, }, - url: '/app/installations/:installation_id/access_tokens' + url: '/app/installations/:installation_id/access_tokens', }, deleteAuthorization: { headers: { - accept: 'application/vnd.github.doctor-strange-preview+json' + accept: 'application/vnd.github.doctor-strange-preview+json', }, method: 'DELETE', params: { access_token: { - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/grant' + url: '/applications/:client_id/grant', }, deleteInstallation: { headers: { accept: - 'application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json' + 'application/vnd.github.gambit-preview+json,application/vnd.github.machine-man-preview+json', }, method: 'DELETE', params: { installation_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/app/installations/:installation_id' + url: '/app/installations/:installation_id', }, deleteToken: { headers: { - accept: 'application/vnd.github.doctor-strange-preview+json' + accept: 'application/vnd.github.doctor-strange-preview+json', }, method: 'DELETE', params: { access_token: { - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/token' + url: '/applications/:client_id/token', }, findOrgInstallation: { deprecated: 'octokit.apps.findOrgInstallation() has been renamed to octokit.apps.getOrgInstallation() (2019-04-10)', headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/installation' + url: '/orgs/:org/installation', }, findRepoInstallation: { deprecated: 'octokit.apps.findRepoInstallation() has been renamed to octokit.apps.getRepoInstallation() (2019-04-10)', headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/installation' + url: '/repos/:owner/:repo/installation', }, findUserInstallation: { deprecated: 'octokit.apps.findUserInstallation() has been renamed to octokit.apps.getUserInstallation() (2019-04-10)', headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/installation' + url: '/users/:username/installation', }, getAuthenticated: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: {}, - url: '/app' + url: '/app', }, getBySlug: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { app_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/apps/:app_slug' + url: '/apps/:app_slug', }, getInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { installation_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/app/installations/:installation_id' + url: '/app/installations/:installation_id', }, getOrgInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/installation' + url: '/orgs/:org/installation', }, getRepoInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/installation' + url: '/repos/:owner/:repo/installation', }, getUserInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/installation' + url: '/users/:username/installation', }, listAccountsUserOrOrgOnPlan: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, plan_id: { required: true, - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/marketplace_listing/plans/:plan_id/accounts' + url: '/marketplace_listing/plans/:plan_id/accounts', }, listAccountsUserOrOrgOnPlanStubbed: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, plan_id: { required: true, - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/marketplace_listing/stubbed/plans/:plan_id/accounts' + url: '/marketplace_listing/stubbed/plans/:plan_id/accounts', }, listInstallationReposForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { installation_id: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/installations/:installation_id/repositories' + url: '/user/installations/:installation_id/repositories', }, listInstallations: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/app/installations' + url: '/app/installations', }, listInstallationsForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/installations' + url: '/user/installations', }, listMarketplacePurchasesForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/marketplace_purchases' + url: '/user/marketplace_purchases', }, listMarketplacePurchasesForAuthenticatedUserStubbed: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/marketplace_purchases/stubbed' + url: '/user/marketplace_purchases/stubbed', }, listPlans: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/marketplace_listing/plans' + url: '/marketplace_listing/plans', }, listPlansStubbed: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/marketplace_listing/stubbed/plans' + url: '/marketplace_listing/stubbed/plans', }, listRepos: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/installation/repositories' + url: '/installation/repositories', }, removeRepoFromInstallation: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'DELETE', params: { installation_id: { required: true, - type: 'integer' + type: 'integer', }, repository_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/user/installations/:installation_id/repositories/:repository_id' + '/user/installations/:installation_id/repositories/:repository_id', }, resetAuthorization: { deprecated: @@ -3793,30 +3805,30 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, resetToken: { headers: { - accept: 'application/vnd.github.doctor-strange-preview+json' + accept: 'application/vnd.github.doctor-strange-preview+json', }, method: 'PATCH', params: { access_token: { - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/token' + url: '/applications/:client_id/token', }, revokeAuthorizationForApplication: { deprecated: @@ -3825,14 +3837,14 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, revokeGrantForApplication: { deprecated: @@ -3841,48 +3853,48 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/grants/:access_token' + url: '/applications/:client_id/grants/:access_token', }, revokeInstallationToken: { headers: { - accept: 'application/vnd.github.gambit-preview+json' + accept: 'application/vnd.github.gambit-preview+json', }, method: 'DELETE', params: {}, - url: '/installation/token' - } + url: '/installation/token', + }, }, checks: { create: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'POST', params: { actions: { - type: 'object[]' + type: 'object[]', }, 'actions[].description': { required: true, - type: 'string' + type: 'string', }, 'actions[].identifier': { required: true, - type: 'string' + type: 'string', }, 'actions[].label': { required: true, - type: 'string' + type: 'string', }, completed_at: { - type: 'string' + type: 'string', }, conclusion: { enum: [ @@ -3891,381 +3903,381 @@ module.exports = /******/ (() => { 'neutral', 'cancelled', 'timed_out', - 'action_required' + 'action_required', ], - type: 'string' + type: 'string', }, details_url: { - type: 'string' + type: 'string', }, external_id: { - type: 'string' + type: 'string', }, head_sha: { required: true, - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, output: { - type: 'object' + type: 'object', }, 'output.annotations': { - type: 'object[]' + type: 'object[]', }, 'output.annotations[].annotation_level': { enum: ['notice', 'warning', 'failure'], required: true, - type: 'string' + type: 'string', }, 'output.annotations[].end_column': { - type: 'integer' + type: 'integer', }, 'output.annotations[].end_line': { required: true, - type: 'integer' + type: 'integer', }, 'output.annotations[].message': { required: true, - type: 'string' + type: 'string', }, 'output.annotations[].path': { required: true, - type: 'string' + type: 'string', }, 'output.annotations[].raw_details': { - type: 'string' + type: 'string', }, 'output.annotations[].start_column': { - type: 'integer' + type: 'integer', }, 'output.annotations[].start_line': { required: true, - type: 'integer' + type: 'integer', }, 'output.annotations[].title': { - type: 'string' + type: 'string', }, 'output.images': { - type: 'object[]' + type: 'object[]', }, 'output.images[].alt': { required: true, - type: 'string' + type: 'string', }, 'output.images[].caption': { - type: 'string' + type: 'string', }, 'output.images[].image_url': { required: true, - type: 'string' + type: 'string', }, 'output.summary': { required: true, - type: 'string' + type: 'string', }, 'output.text': { - type: 'string' + type: 'string', }, 'output.title': { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, started_at: { - type: 'string' + type: 'string', }, status: { enum: ['queued', 'in_progress', 'completed'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-runs' + url: '/repos/:owner/:repo/check-runs', }, createSuite: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'POST', params: { head_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-suites' + url: '/repos/:owner/:repo/check-suites', }, get: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { check_run_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-runs/:check_run_id' + url: '/repos/:owner/:repo/check-runs/:check_run_id', }, getSuite: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { check_suite_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-suites/:check_suite_id' + url: '/repos/:owner/:repo/check-suites/:check_suite_id', }, listAnnotations: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { check_run_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-runs/:check_run_id/annotations' + url: '/repos/:owner/:repo/check-runs/:check_run_id/annotations', }, listForRef: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { check_name: { - type: 'string' + type: 'string', }, filter: { enum: ['latest', 'all'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, status: { enum: ['queued', 'in_progress', 'completed'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref/check-runs' + url: '/repos/:owner/:repo/commits/:ref/check-runs', }, listForSuite: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { check_name: { - type: 'string' + type: 'string', }, check_suite_id: { required: true, - type: 'integer' + type: 'integer', }, filter: { enum: ['latest', 'all'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, status: { enum: ['queued', 'in_progress', 'completed'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-suites/:check_suite_id/check-runs' + url: '/repos/:owner/:repo/check-suites/:check_suite_id/check-runs', }, listSuitesForRef: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'GET', params: { app_id: { - type: 'integer' + type: 'integer', }, check_name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref/check-suites' + url: '/repos/:owner/:repo/commits/:ref/check-suites', }, rerequestSuite: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'POST', params: { check_suite_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-suites/:check_suite_id/rerequest' + url: '/repos/:owner/:repo/check-suites/:check_suite_id/rerequest', }, setSuitesPreferences: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'PATCH', params: { auto_trigger_checks: { - type: 'object[]' + type: 'object[]', }, 'auto_trigger_checks[].app_id': { required: true, - type: 'integer' + type: 'integer', }, 'auto_trigger_checks[].setting': { required: true, - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-suites/preferences' + url: '/repos/:owner/:repo/check-suites/preferences', }, update: { headers: { - accept: 'application/vnd.github.antiope-preview+json' + accept: 'application/vnd.github.antiope-preview+json', }, method: 'PATCH', params: { actions: { - type: 'object[]' + type: 'object[]', }, 'actions[].description': { required: true, - type: 'string' + type: 'string', }, 'actions[].identifier': { required: true, - type: 'string' + type: 'string', }, 'actions[].label': { required: true, - type: 'string' + type: 'string', }, check_run_id: { required: true, - type: 'integer' + type: 'integer', }, completed_at: { - type: 'string' + type: 'string', }, conclusion: { enum: [ @@ -4274,147 +4286,147 @@ module.exports = /******/ (() => { 'neutral', 'cancelled', 'timed_out', - 'action_required' + 'action_required', ], - type: 'string' + type: 'string', }, details_url: { - type: 'string' + type: 'string', }, external_id: { - type: 'string' + type: 'string', }, name: { - type: 'string' + type: 'string', }, output: { - type: 'object' + type: 'object', }, 'output.annotations': { - type: 'object[]' + type: 'object[]', }, 'output.annotations[].annotation_level': { enum: ['notice', 'warning', 'failure'], required: true, - type: 'string' + type: 'string', }, 'output.annotations[].end_column': { - type: 'integer' + type: 'integer', }, 'output.annotations[].end_line': { required: true, - type: 'integer' + type: 'integer', }, 'output.annotations[].message': { required: true, - type: 'string' + type: 'string', }, 'output.annotations[].path': { required: true, - type: 'string' + type: 'string', }, 'output.annotations[].raw_details': { - type: 'string' + type: 'string', }, 'output.annotations[].start_column': { - type: 'integer' + type: 'integer', }, 'output.annotations[].start_line': { required: true, - type: 'integer' + type: 'integer', }, 'output.annotations[].title': { - type: 'string' + type: 'string', }, 'output.images': { - type: 'object[]' + type: 'object[]', }, 'output.images[].alt': { required: true, - type: 'string' + type: 'string', }, 'output.images[].caption': { - type: 'string' + type: 'string', }, 'output.images[].image_url': { required: true, - type: 'string' + type: 'string', }, 'output.summary': { required: true, - type: 'string' + type: 'string', }, 'output.text': { - type: 'string' + type: 'string', }, 'output.title': { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, started_at: { - type: 'string' + type: 'string', }, status: { enum: ['queued', 'in_progress', 'completed'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/check-runs/:check_run_id' - } + url: '/repos/:owner/:repo/check-runs/:check_run_id', + }, }, codesOfConduct: { getConductCode: { headers: { - accept: 'application/vnd.github.scarlet-witch-preview+json' + accept: 'application/vnd.github.scarlet-witch-preview+json', }, method: 'GET', params: { key: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/codes_of_conduct/:key' + url: '/codes_of_conduct/:key', }, getForRepo: { headers: { - accept: 'application/vnd.github.scarlet-witch-preview+json' + accept: 'application/vnd.github.scarlet-witch-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/community/code_of_conduct' + url: '/repos/:owner/:repo/community/code_of_conduct', }, listConductCodes: { headers: { - accept: 'application/vnd.github.scarlet-witch-preview+json' + accept: 'application/vnd.github.scarlet-witch-preview+json', }, method: 'GET', params: {}, - url: '/codes_of_conduct' - } + url: '/codes_of_conduct', + }, }, emojis: { get: { method: 'GET', params: {}, - url: '/emojis' - } + url: '/emojis', + }, }, gists: { checkIsStarred: { @@ -4422,288 +4434,288 @@ module.exports = /******/ (() => { params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/star' + url: '/gists/:gist_id/star', }, create: { method: 'POST', params: { description: { - type: 'string' + type: 'string', }, files: { required: true, - type: 'object' + type: 'object', }, 'files.content': { - type: 'string' + type: 'string', }, public: { - type: 'boolean' - } + type: 'boolean', + }, }, - url: '/gists' + url: '/gists', }, createComment: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/comments' + url: '/gists/:gist_id/comments', }, delete: { method: 'DELETE', params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id' + url: '/gists/:gist_id', }, deleteComment: { method: 'DELETE', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/comments/:comment_id' + url: '/gists/:gist_id/comments/:comment_id', }, fork: { method: 'POST', params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/forks' + url: '/gists/:gist_id/forks', }, get: { method: 'GET', params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id' + url: '/gists/:gist_id', }, getComment: { method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/comments/:comment_id' + url: '/gists/:gist_id/comments/:comment_id', }, getRevision: { method: 'GET', params: { gist_id: { required: true, - type: 'string' + type: 'string', }, sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/:sha' + url: '/gists/:gist_id/:sha', }, list: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/gists' + url: '/gists', }, listComments: { method: 'GET', params: { gist_id: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/gists/:gist_id/comments' + url: '/gists/:gist_id/comments', }, listCommits: { method: 'GET', params: { gist_id: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/gists/:gist_id/commits' + url: '/gists/:gist_id/commits', }, listForks: { method: 'GET', params: { gist_id: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/gists/:gist_id/forks' + url: '/gists/:gist_id/forks', }, listPublic: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/gists/public' + url: '/gists/public', }, listPublicForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/gists' + url: '/users/:username/gists', }, listStarred: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/gists/starred' + url: '/gists/starred', }, star: { method: 'PUT', params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/star' + url: '/gists/:gist_id/star', }, unstar: { method: 'DELETE', params: { gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/star' + url: '/gists/:gist_id/star', }, update: { method: 'PATCH', params: { description: { - type: 'string' + type: 'string', }, files: { - type: 'object' + type: 'object', }, 'files.content': { - type: 'string' + type: 'string', }, 'files.filename': { - type: 'string' + type: 'string', }, gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id' + url: '/gists/:gist_id', }, updateComment: { method: 'PATCH', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_id: { required: true, - type: 'integer' + type: 'integer', }, gist_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gists/:gist_id/comments/:comment_id' - } + url: '/gists/:gist_id/comments/:comment_id', + }, }, git: { createBlob: { @@ -4711,363 +4723,363 @@ module.exports = /******/ (() => { params: { content: { required: true, - type: 'string' + type: 'string', }, encoding: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/blobs' + url: '/repos/:owner/:repo/git/blobs', }, createCommit: { method: 'POST', params: { author: { - type: 'object' + type: 'object', }, 'author.date': { - type: 'string' + type: 'string', }, 'author.email': { - type: 'string' + type: 'string', }, 'author.name': { - type: 'string' + type: 'string', }, committer: { - type: 'object' + type: 'object', }, 'committer.date': { - type: 'string' + type: 'string', }, 'committer.email': { - type: 'string' + type: 'string', }, 'committer.name': { - type: 'string' + type: 'string', }, message: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, parents: { required: true, - type: 'string[]' + type: 'string[]', }, repo: { required: true, - type: 'string' + type: 'string', }, signature: { - type: 'string' + type: 'string', }, tree: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/commits' + url: '/repos/:owner/:repo/git/commits', }, createRef: { method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/refs' + url: '/repos/:owner/:repo/git/refs', }, createTag: { method: 'POST', params: { message: { required: true, - type: 'string' + type: 'string', }, object: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, tag: { required: true, - type: 'string' + type: 'string', }, tagger: { - type: 'object' + type: 'object', }, 'tagger.date': { - type: 'string' + type: 'string', }, 'tagger.email': { - type: 'string' + type: 'string', }, 'tagger.name': { - type: 'string' + type: 'string', }, type: { enum: ['commit', 'tree', 'blob'], required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/tags' + url: '/repos/:owner/:repo/git/tags', }, createTree: { method: 'POST', params: { base_tree: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, tree: { required: true, - type: 'object[]' + type: 'object[]', }, 'tree[].content': { - type: 'string' + type: 'string', }, 'tree[].mode': { enum: ['100644', '100755', '040000', '160000', '120000'], - type: 'string' + type: 'string', }, 'tree[].path': { - type: 'string' + type: 'string', }, 'tree[].sha': { allowNull: true, - type: 'string' + type: 'string', }, 'tree[].type': { enum: ['blob', 'tree', 'commit'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/trees' + url: '/repos/:owner/:repo/git/trees', }, deleteRef: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/refs/:ref' + url: '/repos/:owner/:repo/git/refs/:ref', }, getBlob: { method: 'GET', params: { file_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/blobs/:file_sha' + url: '/repos/:owner/:repo/git/blobs/:file_sha', }, getCommit: { method: 'GET', params: { commit_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/commits/:commit_sha' + url: '/repos/:owner/:repo/git/commits/:commit_sha', }, getRef: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/ref/:ref' + url: '/repos/:owner/:repo/git/ref/:ref', }, getTag: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, tag_sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/tags/:tag_sha' + url: '/repos/:owner/:repo/git/tags/:tag_sha', }, getTree: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, recursive: { enum: ['1'], - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, tree_sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/trees/:tree_sha' + url: '/repos/:owner/:repo/git/trees/:tree_sha', }, listMatchingRefs: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/matching-refs/:ref' + url: '/repos/:owner/:repo/git/matching-refs/:ref', }, listRefs: { method: 'GET', params: { namespace: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/refs/:namespace' + url: '/repos/:owner/:repo/git/refs/:namespace', }, updateRef: { method: 'PATCH', params: { force: { - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/git/refs/:ref' - } + url: '/repos/:owner/:repo/git/refs/:ref', + }, }, gitignore: { getTemplate: { @@ -5075,21 +5087,21 @@ module.exports = /******/ (() => { params: { name: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/gitignore/templates/:name' + url: '/gitignore/templates/:name', }, listTemplates: { method: 'GET', params: {}, - url: '/gitignore/templates' - } + url: '/gitignore/templates', + }, }, interactions: { addOrUpdateRestrictionsForOrg: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'PUT', params: { @@ -5097,21 +5109,21 @@ module.exports = /******/ (() => { enum: [ 'existing_users', 'contributors_only', - 'collaborators_only' + 'collaborators_only', ], required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/interaction-limits' + url: '/orgs/:org/interaction-limits', }, addOrUpdateRestrictionsForRepo: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'PUT', params: { @@ -5119,1134 +5131,1134 @@ module.exports = /******/ (() => { enum: [ 'existing_users', 'contributors_only', - 'collaborators_only' + 'collaborators_only', ], required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/interaction-limits' + url: '/repos/:owner/:repo/interaction-limits', }, getRestrictionsForOrg: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/interaction-limits' + url: '/orgs/:org/interaction-limits', }, getRestrictionsForRepo: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/interaction-limits' + url: '/repos/:owner/:repo/interaction-limits', }, removeRestrictionsForOrg: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'DELETE', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/interaction-limits' + url: '/orgs/:org/interaction-limits', }, removeRestrictionsForRepo: { headers: { - accept: 'application/vnd.github.sombra-preview+json' + accept: 'application/vnd.github.sombra-preview+json', }, method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/interaction-limits' - } + url: '/repos/:owner/:repo/interaction-limits', + }, }, issues: { addAssignees: { method: 'POST', params: { assignees: { - type: 'string[]' + type: 'string[]', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/assignees' + url: '/repos/:owner/:repo/issues/:issue_number/assignees', }, addLabels: { method: 'POST', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, labels: { required: true, - type: 'string[]' + type: 'string[]', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/labels' + url: '/repos/:owner/:repo/issues/:issue_number/labels', }, checkAssignee: { method: 'GET', params: { assignee: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/assignees/:assignee' + url: '/repos/:owner/:repo/assignees/:assignee', }, create: { method: 'POST', params: { assignee: { - type: 'string' + type: 'string', }, assignees: { - type: 'string[]' + type: 'string[]', }, body: { - type: 'string' + type: 'string', }, labels: { - type: 'string[]' + type: 'string[]', }, milestone: { - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues' + url: '/repos/:owner/:repo/issues', }, createComment: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/comments' + url: '/repos/:owner/:repo/issues/:issue_number/comments', }, createLabel: { method: 'POST', params: { color: { required: true, - type: 'string' + type: 'string', }, description: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/labels' + url: '/repos/:owner/:repo/labels', }, createMilestone: { method: 'POST', params: { description: { - type: 'string' + type: 'string', }, due_on: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed'], - type: 'string' + type: 'string', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones' + url: '/repos/:owner/:repo/milestones', }, deleteComment: { method: 'DELETE', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments/:comment_id' + url: '/repos/:owner/:repo/issues/comments/:comment_id', }, deleteLabel: { method: 'DELETE', params: { name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/labels/:name' + url: '/repos/:owner/:repo/labels/:name', }, deleteMilestone: { method: 'DELETE', params: { milestone_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'milestone_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones/:milestone_number' + url: '/repos/:owner/:repo/milestones/:milestone_number', }, get: { method: 'GET', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number' + url: '/repos/:owner/:repo/issues/:issue_number', }, getComment: { method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments/:comment_id' + url: '/repos/:owner/:repo/issues/comments/:comment_id', }, getEvent: { method: 'GET', params: { event_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/events/:event_id' + url: '/repos/:owner/:repo/issues/events/:event_id', }, getLabel: { method: 'GET', params: { name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/labels/:name' + url: '/repos/:owner/:repo/labels/:name', }, getMilestone: { method: 'GET', params: { milestone_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'milestone_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones/:milestone_number' + url: '/repos/:owner/:repo/milestones/:milestone_number', }, list: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, filter: { enum: ['assigned', 'created', 'mentioned', 'subscribed', 'all'], - type: 'string' + type: 'string', }, labels: { - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated', 'comments'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/issues' + url: '/issues', }, listAssignees: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/assignees' + url: '/repos/:owner/:repo/assignees', }, listComments: { method: 'GET', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/comments' + url: '/repos/:owner/:repo/issues/:issue_number/comments', }, listCommentsForRepo: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments' + url: '/repos/:owner/:repo/issues/comments', }, listEvents: { method: 'GET', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/events' + url: '/repos/:owner/:repo/issues/:issue_number/events', }, listEventsForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/events' + url: '/repos/:owner/:repo/issues/events', }, listEventsForTimeline: { headers: { - accept: 'application/vnd.github.mockingbird-preview+json' + accept: 'application/vnd.github.mockingbird-preview+json', }, method: 'GET', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/timeline' + url: '/repos/:owner/:repo/issues/:issue_number/timeline', }, listForAuthenticatedUser: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, filter: { enum: ['assigned', 'created', 'mentioned', 'subscribed', 'all'], - type: 'string' + type: 'string', }, labels: { - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated', 'comments'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/user/issues' + url: '/user/issues', }, listForOrg: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, filter: { enum: ['assigned', 'created', 'mentioned', 'subscribed', 'all'], - type: 'string' + type: 'string', }, labels: { - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated', 'comments'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/issues' + url: '/orgs/:org/issues', }, listForRepo: { method: 'GET', params: { assignee: { - type: 'string' + type: 'string', }, creator: { - type: 'string' + type: 'string', }, direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, labels: { - type: 'string' + type: 'string', }, mentioned: { - type: 'string' + type: 'string', }, milestone: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated', 'comments'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues' + url: '/repos/:owner/:repo/issues', }, listLabelsForMilestone: { method: 'GET', params: { milestone_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'milestone_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones/:milestone_number/labels' + url: '/repos/:owner/:repo/milestones/:milestone_number/labels', }, listLabelsForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/labels' + url: '/repos/:owner/:repo/labels', }, listLabelsOnIssue: { method: 'GET', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/labels' + url: '/repos/:owner/:repo/issues/:issue_number/labels', }, listMilestonesForRepo: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['due_on', 'completeness'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones' + url: '/repos/:owner/:repo/milestones', }, lock: { method: 'PUT', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, lock_reason: { enum: ['off-topic', 'too heated', 'resolved', 'spam'], - type: 'string' + type: 'string', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/lock' + url: '/repos/:owner/:repo/issues/:issue_number/lock', }, removeAssignees: { method: 'DELETE', params: { assignees: { - type: 'string[]' + type: 'string[]', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/assignees' + url: '/repos/:owner/:repo/issues/:issue_number/assignees', }, removeLabel: { method: 'DELETE', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, name: { required: true, - type: 'string' + type: 'string', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/labels/:name' + url: '/repos/:owner/:repo/issues/:issue_number/labels/:name', }, removeLabels: { method: 'DELETE', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/labels' + url: '/repos/:owner/:repo/issues/:issue_number/labels', }, replaceLabels: { method: 'PUT', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, labels: { - type: 'string[]' + type: 'string[]', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/labels' + url: '/repos/:owner/:repo/issues/:issue_number/labels', }, unlock: { method: 'DELETE', params: { issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/lock' + url: '/repos/:owner/:repo/issues/:issue_number/lock', }, update: { method: 'PATCH', params: { assignee: { - type: 'string' + type: 'string', }, assignees: { - type: 'string[]' + type: 'string[]', }, body: { - type: 'string' + type: 'string', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, labels: { - type: 'string[]' + type: 'string[]', }, milestone: { allowNull: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed'], - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number' + url: '/repos/:owner/:repo/issues/:issue_number', }, updateComment: { method: 'PATCH', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments/:comment_id' + url: '/repos/:owner/:repo/issues/comments/:comment_id', }, updateLabel: { method: 'PATCH', params: { color: { - type: 'string' + type: 'string', }, current_name: { required: true, - type: 'string' + type: 'string', }, description: { - type: 'string' + type: 'string', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/labels/:current_name' + url: '/repos/:owner/:repo/labels/:current_name', }, updateMilestone: { method: 'PATCH', params: { description: { - type: 'string' + type: 'string', }, due_on: { - type: 'string' + type: 'string', }, milestone_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'milestone_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed'], - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/milestones/:milestone_number' - } + url: '/repos/:owner/:repo/milestones/:milestone_number', + }, }, licenses: { get: { @@ -6254,77 +6266,77 @@ module.exports = /******/ (() => { params: { license: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/licenses/:license' + url: '/licenses/:license', }, getForRepo: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/license' + url: '/repos/:owner/:repo/license', }, list: { deprecated: 'octokit.licenses.list() has been renamed to octokit.licenses.listCommonlyUsed() (2019-03-05)', method: 'GET', params: {}, - url: '/licenses' + url: '/licenses', }, listCommonlyUsed: { method: 'GET', params: {}, - url: '/licenses' - } + url: '/licenses', + }, }, markdown: { render: { method: 'POST', params: { context: { - type: 'string' + type: 'string', }, mode: { enum: ['markdown', 'gfm'], - type: 'string' + type: 'string', }, text: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/markdown' + url: '/markdown', }, renderRaw: { headers: { - 'content-type': 'text/plain; charset=utf-8' + 'content-type': 'text/plain; charset=utf-8', }, method: 'POST', params: { data: { mapTo: 'data', required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/markdown/raw' - } + url: '/markdown/raw', + }, }, meta: { get: { method: 'GET', params: {}, - url: '/meta' - } + url: '/meta', + }, }, migrations: { cancelImport: { @@ -6332,413 +6344,413 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import' + url: '/repos/:owner/:repo/import', }, deleteArchiveForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'DELETE', params: { migration_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/migrations/:migration_id/archive' + url: '/user/migrations/:migration_id/archive', }, deleteArchiveForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'DELETE', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/migrations/:migration_id/archive' + url: '/orgs/:org/migrations/:migration_id/archive', }, downloadArchiveForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/migrations/:migration_id/archive' + url: '/orgs/:org/migrations/:migration_id/archive', }, getArchiveForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/migrations/:migration_id/archive' + url: '/user/migrations/:migration_id/archive', }, getArchiveForOrg: { deprecated: 'octokit.migrations.getArchiveForOrg() has been renamed to octokit.migrations.downloadArchiveForOrg() (2020-01-27)', headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/migrations/:migration_id/archive' + url: '/orgs/:org/migrations/:migration_id/archive', }, getCommitAuthors: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import/authors' + url: '/repos/:owner/:repo/import/authors', }, getImportProgress: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import' + url: '/repos/:owner/:repo/import', }, getLargeFiles: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import/large_files' + url: '/repos/:owner/:repo/import/large_files', }, getStatusForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/migrations/:migration_id' + url: '/user/migrations/:migration_id', }, getStatusForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/migrations/:migration_id' + url: '/orgs/:org/migrations/:migration_id', }, listForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/migrations' + url: '/user/migrations', }, listForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/migrations' + url: '/orgs/:org/migrations', }, listReposForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/migrations/:migration_id/repositories' + url: '/orgs/:org/migrations/:migration_id/repositories', }, listReposForUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'GET', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/:migration_id/repositories' + url: '/user/:migration_id/repositories', }, mapCommitAuthor: { method: 'PATCH', params: { author_id: { required: true, - type: 'integer' + type: 'integer', }, email: { - type: 'string' + type: 'string', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import/authors/:author_id' + url: '/repos/:owner/:repo/import/authors/:author_id', }, setLfsPreference: { method: 'PATCH', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, use_lfs: { enum: ['opt_in', 'opt_out'], required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import/lfs' + url: '/repos/:owner/:repo/import/lfs', }, startForAuthenticatedUser: { method: 'POST', params: { exclude_attachments: { - type: 'boolean' + type: 'boolean', }, lock_repositories: { - type: 'boolean' + type: 'boolean', }, repositories: { required: true, - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/user/migrations' + url: '/user/migrations', }, startForOrg: { method: 'POST', params: { exclude_attachments: { - type: 'boolean' + type: 'boolean', }, lock_repositories: { - type: 'boolean' + type: 'boolean', }, org: { required: true, - type: 'string' + type: 'string', }, repositories: { required: true, - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/orgs/:org/migrations' + url: '/orgs/:org/migrations', }, startImport: { method: 'PUT', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, tfvc_project: { - type: 'string' + type: 'string', }, vcs: { enum: ['subversion', 'git', 'mercurial', 'tfvc'], - type: 'string' + type: 'string', }, vcs_password: { - type: 'string' + type: 'string', }, vcs_url: { required: true, - type: 'string' + type: 'string', }, vcs_username: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import' + url: '/repos/:owner/:repo/import', }, unlockRepoForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'DELETE', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, repo_name: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/migrations/:migration_id/repos/:repo_name/lock' + url: '/user/migrations/:migration_id/repos/:repo_name/lock', }, unlockRepoForOrg: { headers: { - accept: 'application/vnd.github.wyandotte-preview+json' + accept: 'application/vnd.github.wyandotte-preview+json', }, method: 'DELETE', params: { migration_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, repo_name: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/migrations/:migration_id/repos/:repo_name/lock' + url: '/orgs/:org/migrations/:migration_id/repos/:repo_name/lock', }, updateImport: { method: 'PATCH', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, vcs_password: { - type: 'string' + type: 'string', }, vcs_username: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/import' - } + url: '/repos/:owner/:repo/import', + }, }, oauthAuthorizations: { checkAuthorization: { @@ -6748,14 +6760,14 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, createAuthorization: { deprecated: @@ -6763,26 +6775,26 @@ module.exports = /******/ (() => { method: 'POST', params: { client_id: { - type: 'string' + type: 'string', }, client_secret: { - type: 'string' + type: 'string', }, fingerprint: { - type: 'string' + type: 'string', }, note: { required: true, - type: 'string' + type: 'string', }, note_url: { - type: 'string' + type: 'string', }, scopes: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/authorizations' + url: '/authorizations', }, deleteAuthorization: { deprecated: @@ -6791,10 +6803,10 @@ module.exports = /******/ (() => { params: { authorization_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/authorizations/:authorization_id' + url: '/authorizations/:authorization_id', }, deleteGrant: { deprecated: @@ -6803,10 +6815,10 @@ module.exports = /******/ (() => { params: { grant_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/applications/grants/:grant_id' + url: '/applications/grants/:grant_id', }, getAuthorization: { deprecated: @@ -6815,10 +6827,10 @@ module.exports = /******/ (() => { params: { authorization_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/authorizations/:authorization_id' + url: '/authorizations/:authorization_id', }, getGrant: { deprecated: @@ -6827,10 +6839,10 @@ module.exports = /******/ (() => { params: { grant_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/applications/grants/:grant_id' + url: '/applications/grants/:grant_id', }, getOrCreateAuthorizationForApp: { deprecated: @@ -6839,26 +6851,26 @@ module.exports = /******/ (() => { params: { client_id: { required: true, - type: 'string' + type: 'string', }, client_secret: { required: true, - type: 'string' + type: 'string', }, fingerprint: { - type: 'string' + type: 'string', }, note: { - type: 'string' + type: 'string', }, note_url: { - type: 'string' + type: 'string', }, scopes: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/authorizations/clients/:client_id' + url: '/authorizations/clients/:client_id', }, getOrCreateAuthorizationForAppAndFingerprint: { deprecated: @@ -6867,27 +6879,27 @@ module.exports = /******/ (() => { params: { client_id: { required: true, - type: 'string' + type: 'string', }, client_secret: { required: true, - type: 'string' + type: 'string', }, fingerprint: { required: true, - type: 'string' + type: 'string', }, note: { - type: 'string' + type: 'string', }, note_url: { - type: 'string' + type: 'string', }, scopes: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/authorizations/clients/:client_id/:fingerprint' + url: '/authorizations/clients/:client_id/:fingerprint', }, getOrCreateAuthorizationForAppFingerprint: { deprecated: @@ -6896,27 +6908,27 @@ module.exports = /******/ (() => { params: { client_id: { required: true, - type: 'string' + type: 'string', }, client_secret: { required: true, - type: 'string' + type: 'string', }, fingerprint: { required: true, - type: 'string' + type: 'string', }, note: { - type: 'string' + type: 'string', }, note_url: { - type: 'string' + type: 'string', }, scopes: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/authorizations/clients/:client_id/:fingerprint' + url: '/authorizations/clients/:client_id/:fingerprint', }, listAuthorizations: { deprecated: @@ -6924,13 +6936,13 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/authorizations' + url: '/authorizations', }, listGrants: { deprecated: @@ -6938,13 +6950,13 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/applications/grants' + url: '/applications/grants', }, resetAuthorization: { deprecated: @@ -6953,14 +6965,14 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, revokeAuthorizationForApplication: { deprecated: @@ -6969,14 +6981,14 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/tokens/:access_token' + url: '/applications/:client_id/tokens/:access_token', }, revokeGrantForApplication: { deprecated: @@ -6985,14 +6997,14 @@ module.exports = /******/ (() => { params: { access_token: { required: true, - type: 'string' + type: 'string', }, client_id: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/applications/:client_id/grants/:access_token' + url: '/applications/:client_id/grants/:access_token', }, updateAuthorization: { deprecated: @@ -7000,30 +7012,30 @@ module.exports = /******/ (() => { method: 'PATCH', params: { add_scopes: { - type: 'string[]' + type: 'string[]', }, authorization_id: { required: true, - type: 'integer' + type: 'integer', }, fingerprint: { - type: 'string' + type: 'string', }, note: { - type: 'string' + type: 'string', }, note_url: { - type: 'string' + type: 'string', }, remove_scopes: { - type: 'string[]' + type: 'string[]', }, scopes: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/authorizations/:authorization_id' - } + url: '/authorizations/:authorization_id', + }, }, orgs: { addOrUpdateMembership: { @@ -7031,1090 +7043,1090 @@ module.exports = /******/ (() => { params: { org: { required: true, - type: 'string' + type: 'string', }, role: { enum: ['admin', 'member'], - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/memberships/:username' + url: '/orgs/:org/memberships/:username', }, blockUser: { method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/blocks/:username' + url: '/orgs/:org/blocks/:username', }, checkBlockedUser: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/blocks/:username' + url: '/orgs/:org/blocks/:username', }, checkMembership: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/members/:username' + url: '/orgs/:org/members/:username', }, checkPublicMembership: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/public_members/:username' + url: '/orgs/:org/public_members/:username', }, concealMembership: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/public_members/:username' + url: '/orgs/:org/public_members/:username', }, convertMemberToOutsideCollaborator: { method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/outside_collaborators/:username' + url: '/orgs/:org/outside_collaborators/:username', }, createHook: { method: 'POST', params: { active: { - type: 'boolean' + type: 'boolean', }, config: { required: true, - type: 'object' + type: 'object', }, 'config.content_type': { - type: 'string' + type: 'string', }, 'config.insecure_ssl': { - type: 'string' + type: 'string', }, 'config.secret': { - type: 'string' + type: 'string', }, 'config.url': { required: true, - type: 'string' + type: 'string', }, events: { - type: 'string[]' + type: 'string[]', }, name: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/hooks' + url: '/orgs/:org/hooks', }, createInvitation: { method: 'POST', params: { email: { - type: 'string' + type: 'string', }, invitee_id: { - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, role: { enum: ['admin', 'direct_member', 'billing_manager'], - type: 'string' + type: 'string', }, team_ids: { - type: 'integer[]' - } + type: 'integer[]', + }, }, - url: '/orgs/:org/invitations' + url: '/orgs/:org/invitations', }, deleteHook: { method: 'DELETE', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/hooks/:hook_id' + url: '/orgs/:org/hooks/:hook_id', }, get: { method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org' + url: '/orgs/:org', }, getHook: { method: 'GET', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/hooks/:hook_id' + url: '/orgs/:org/hooks/:hook_id', }, getMembership: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/memberships/:username' + url: '/orgs/:org/memberships/:username', }, getMembershipForAuthenticatedUser: { method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/memberships/orgs/:org' + url: '/user/memberships/orgs/:org', }, list: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/organizations' + url: '/organizations', }, listBlockedUsers: { method: 'GET', params: { org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/blocks' + url: '/orgs/:org/blocks', }, listForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/orgs' + url: '/user/orgs', }, listForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/orgs' + url: '/users/:username/orgs', }, listHooks: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/hooks' + url: '/orgs/:org/hooks', }, listInstallations: { headers: { - accept: 'application/vnd.github.machine-man-preview+json' + accept: 'application/vnd.github.machine-man-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/installations' + url: '/orgs/:org/installations', }, listInvitationTeams: { method: 'GET', params: { invitation_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/invitations/:invitation_id/teams' + url: '/orgs/:org/invitations/:invitation_id/teams', }, listMembers: { method: 'GET', params: { filter: { enum: ['2fa_disabled', 'all'], - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, role: { enum: ['all', 'admin', 'member'], - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/members' + url: '/orgs/:org/members', }, listMemberships: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, state: { enum: ['active', 'pending'], - type: 'string' - } + type: 'string', + }, }, - url: '/user/memberships/orgs' + url: '/user/memberships/orgs', }, listOutsideCollaborators: { method: 'GET', params: { filter: { enum: ['2fa_disabled', 'all'], - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/outside_collaborators' + url: '/orgs/:org/outside_collaborators', }, listPendingInvitations: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/invitations' + url: '/orgs/:org/invitations', }, listPublicMembers: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/public_members' + url: '/orgs/:org/public_members', }, pingHook: { method: 'POST', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/hooks/:hook_id/pings' + url: '/orgs/:org/hooks/:hook_id/pings', }, publicizeMembership: { method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/public_members/:username' + url: '/orgs/:org/public_members/:username', }, removeMember: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/members/:username' + url: '/orgs/:org/members/:username', }, removeMembership: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/memberships/:username' + url: '/orgs/:org/memberships/:username', }, removeOutsideCollaborator: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/outside_collaborators/:username' + url: '/orgs/:org/outside_collaborators/:username', }, unblockUser: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/blocks/:username' + url: '/orgs/:org/blocks/:username', }, update: { method: 'PATCH', params: { billing_email: { - type: 'string' + type: 'string', }, company: { - type: 'string' + type: 'string', }, default_repository_permission: { enum: ['read', 'write', 'admin', 'none'], - type: 'string' + type: 'string', }, description: { - type: 'string' + type: 'string', }, email: { - type: 'string' + type: 'string', }, has_organization_projects: { - type: 'boolean' + type: 'boolean', }, has_repository_projects: { - type: 'boolean' + type: 'boolean', }, location: { - type: 'string' + type: 'string', }, members_allowed_repository_creation_type: { enum: ['all', 'private', 'none'], - type: 'string' + type: 'string', }, members_can_create_internal_repositories: { - type: 'boolean' + type: 'boolean', }, members_can_create_private_repositories: { - type: 'boolean' + type: 'boolean', }, members_can_create_public_repositories: { - type: 'boolean' + type: 'boolean', }, members_can_create_repositories: { - type: 'boolean' + type: 'boolean', }, name: { - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org' + url: '/orgs/:org', }, updateHook: { method: 'PATCH', params: { active: { - type: 'boolean' + type: 'boolean', }, config: { - type: 'object' + type: 'object', }, 'config.content_type': { - type: 'string' + type: 'string', }, 'config.insecure_ssl': { - type: 'string' + type: 'string', }, 'config.secret': { - type: 'string' + type: 'string', }, 'config.url': { required: true, - type: 'string' + type: 'string', }, events: { - type: 'string[]' + type: 'string[]', }, hook_id: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/hooks/:hook_id' + url: '/orgs/:org/hooks/:hook_id', }, updateMembership: { method: 'PATCH', params: { org: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['active'], required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/memberships/orgs/:org' - } + url: '/user/memberships/orgs/:org', + }, }, projects: { addCollaborator: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PUT', params: { permission: { enum: ['read', 'write', 'admin'], - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/projects/:project_id/collaborators/:username' + url: '/projects/:project_id/collaborators/:username', }, createCard: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { column_id: { required: true, - type: 'integer' + type: 'integer', }, content_id: { - type: 'integer' + type: 'integer', }, content_type: { - type: 'string' + type: 'string', }, note: { - type: 'string' - } + type: 'string', + }, }, - url: '/projects/columns/:column_id/cards' + url: '/projects/columns/:column_id/cards', }, createColumn: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { name: { required: true, - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/:project_id/columns' + url: '/projects/:project_id/columns', }, createForAuthenticatedUser: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { body: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/projects' + url: '/user/projects', }, createForOrg: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { body: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/projects' + url: '/orgs/:org/projects', }, createForRepo: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { body: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/projects' + url: '/repos/:owner/:repo/projects', }, delete: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'DELETE', params: { project_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/:project_id' + url: '/projects/:project_id', }, deleteCard: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'DELETE', params: { card_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/columns/cards/:card_id' + url: '/projects/columns/cards/:card_id', }, deleteColumn: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'DELETE', params: { column_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/columns/:column_id' + url: '/projects/columns/:column_id', }, get: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { project_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/:project_id' + url: '/projects/:project_id', }, getCard: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { card_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/columns/cards/:card_id' + url: '/projects/columns/cards/:card_id', }, getColumn: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { column_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/columns/:column_id' + url: '/projects/columns/:column_id', }, listCards: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { archived_state: { enum: ['all', 'archived', 'not_archived'], - type: 'string' + type: 'string', }, column_id: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/columns/:column_id/cards' + url: '/projects/columns/:column_id/cards', }, listCollaborators: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { affiliation: { enum: ['outside', 'direct', 'all'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, project_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/:project_id/collaborators' + url: '/projects/:project_id/collaborators', }, listColumns: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, project_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/projects/:project_id/columns' + url: '/projects/:project_id/columns', }, listForOrg: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/projects' + url: '/orgs/:org/projects', }, listForRepo: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/projects' + url: '/repos/:owner/:repo/projects', }, listForUser: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/projects' + url: '/users/:username/projects', }, moveCard: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { card_id: { required: true, - type: 'integer' + type: 'integer', }, column_id: { - type: 'integer' + type: 'integer', }, position: { required: true, type: 'string', - validation: '^(top|bottom|after:\\d+)$' - } + validation: '^(top|bottom|after:\\d+)$', + }, }, - url: '/projects/columns/cards/:card_id/moves' + url: '/projects/columns/cards/:card_id/moves', }, moveColumn: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'POST', params: { column_id: { required: true, - type: 'integer' + type: 'integer', }, position: { required: true, type: 'string', - validation: '^(first|last|after:\\d+)$' - } + validation: '^(first|last|after:\\d+)$', + }, }, - url: '/projects/columns/:column_id/moves' + url: '/projects/columns/:column_id/moves', }, removeCollaborator: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'DELETE', params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/projects/:project_id/collaborators/:username' + url: '/projects/:project_id/collaborators/:username', }, reviewUserPermissionLevel: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/projects/:project_id/collaborators/:username/permission' + url: '/projects/:project_id/collaborators/:username/permission', }, update: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PATCH', params: { body: { - type: 'string' + type: 'string', }, name: { - type: 'string' + type: 'string', }, organization_permission: { - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, state: { enum: ['open', 'closed'], - type: 'string' - } + type: 'string', + }, }, - url: '/projects/:project_id' + url: '/projects/:project_id', }, updateCard: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PATCH', params: { archived: { - type: 'boolean' + type: 'boolean', }, card_id: { required: true, - type: 'integer' + type: 'integer', }, note: { - type: 'string' - } + type: 'string', + }, }, - url: '/projects/columns/cards/:card_id' + url: '/projects/columns/cards/:card_id', }, updateColumn: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PATCH', params: { column_id: { required: true, - type: 'integer' + type: 'integer', }, name: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/projects/columns/:column_id' - } + url: '/projects/columns/:column_id', + }, }, pulls: { checkIfMerged: { @@ -8123,115 +8135,115 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/merge' + url: '/repos/:owner/:repo/pulls/:pull_number/merge', }, create: { method: 'POST', params: { base: { required: true, - type: 'string' + type: 'string', }, body: { - type: 'string' + type: 'string', }, draft: { - type: 'boolean' + type: 'boolean', }, head: { required: true, - type: 'string' + type: 'string', }, maintainer_can_modify: { - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls' + url: '/repos/:owner/:repo/pulls', }, createComment: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, commit_id: { required: true, - type: 'string' + type: 'string', }, in_reply_to: { deprecated: true, description: 'The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.', - type: 'integer' + type: 'integer', }, line: { - type: 'integer' + type: 'integer', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, position: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, side: { enum: ['LEFT', 'RIGHT'], - type: 'string' + type: 'string', }, start_line: { - type: 'integer' + type: 'integer', }, start_side: { enum: ['LEFT', 'RIGHT', 'side'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/comments' + url: '/repos/:owner/:repo/pulls/:pull_number/comments', }, createCommentReply: { deprecated: @@ -8240,58 +8252,58 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, commit_id: { required: true, - type: 'string' + type: 'string', }, in_reply_to: { deprecated: true, description: 'The comment ID to reply to. **Note**: This must be the ID of a top-level comment, not a reply to that comment. Replies to replies are not supported.', - type: 'integer' + type: 'integer', }, line: { - type: 'integer' + type: 'integer', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, position: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, side: { enum: ['LEFT', 'RIGHT'], - type: 'string' + type: 'string', }, start_line: { - type: 'integer' + type: 'integer', }, start_side: { enum: ['LEFT', 'RIGHT', 'side'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/comments' + url: '/repos/:owner/:repo/pulls/:pull_number/comments', }, createFromIssue: { deprecated: @@ -8300,107 +8312,107 @@ module.exports = /******/ (() => { params: { base: { required: true, - type: 'string' + type: 'string', }, draft: { - type: 'boolean' + type: 'boolean', }, head: { required: true, - type: 'string' + type: 'string', }, issue: { required: true, - type: 'integer' + type: 'integer', }, maintainer_can_modify: { - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls' + url: '/repos/:owner/:repo/pulls', }, createReview: { method: 'POST', params: { body: { - type: 'string' + type: 'string', }, comments: { - type: 'object[]' + type: 'object[]', }, 'comments[].body': { required: true, - type: 'string' + type: 'string', }, 'comments[].path': { required: true, - type: 'string' + type: 'string', }, 'comments[].position': { required: true, - type: 'integer' + type: 'integer', }, commit_id: { - type: 'string' + type: 'string', }, event: { enum: ['APPROVE', 'REQUEST_CHANGES', 'COMMENT'], - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/reviews' + url: '/repos/:owner/:repo/pulls/:pull_number/reviews', }, createReviewCommentReply: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies' + '/repos/:owner/:repo/pulls/:pull_number/comments/:comment_id/replies', }, createReviewRequest: { method: 'POST', @@ -8408,46 +8420,46 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, reviewers: { - type: 'string[]' + type: 'string[]', }, team_reviewers: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers' + url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers', }, deleteComment: { method: 'DELETE', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments/:comment_id' + url: '/repos/:owner/:repo/pulls/comments/:comment_id', }, deletePendingReview: { method: 'DELETE', @@ -8455,26 +8467,26 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id' + url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id', }, deleteReviewRequest: { method: 'DELETE', @@ -8482,60 +8494,60 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, reviewers: { - type: 'string[]' + type: 'string[]', }, team_reviewers: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers' + url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers', }, dismissReview: { method: 'PUT', params: { message: { required: true, - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals' + '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/dismissals', }, get: { method: 'GET', @@ -8543,40 +8555,40 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number' + url: '/repos/:owner/:repo/pulls/:pull_number', }, getComment: { method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments/:comment_id' + url: '/repos/:owner/:repo/pulls/comments/:comment_id', }, getCommentsForReview: { method: 'GET', @@ -8584,33 +8596,33 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments' + '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/comments', }, getReview: { method: 'GET', @@ -8618,135 +8630,135 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id' + url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id', }, list: { method: 'GET', params: { base: { - type: 'string' + type: 'string', }, direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, head: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated', 'popularity', 'long-running'], - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed', 'all'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls' + url: '/repos/:owner/:repo/pulls', }, listComments: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/comments' + url: '/repos/:owner/:repo/pulls/:pull_number/comments', }, listCommentsForRepo: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, since: { - type: 'string' + type: 'string', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments' + url: '/repos/:owner/:repo/pulls/comments', }, listCommits: { method: 'GET', @@ -8754,28 +8766,28 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/commits' + url: '/repos/:owner/:repo/pulls/:pull_number/commits', }, listFiles: { method: 'GET', @@ -8783,28 +8795,28 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/files' + url: '/repos/:owner/:repo/pulls/:pull_number/files', }, listReviewRequests: { method: 'GET', @@ -8812,28 +8824,28 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers' + url: '/repos/:owner/:repo/pulls/:pull_number/requested_reviewers', }, listReviews: { method: 'GET', @@ -8841,235 +8853,235 @@ module.exports = /******/ (() => { number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/reviews' + url: '/repos/:owner/:repo/pulls/:pull_number/reviews', }, merge: { method: 'PUT', params: { commit_message: { - type: 'string' + type: 'string', }, commit_title: { - type: 'string' + type: 'string', }, merge_method: { enum: ['merge', 'squash', 'rebase'], - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/merge' + url: '/repos/:owner/:repo/pulls/:pull_number/merge', }, submitReview: { method: 'POST', params: { body: { - type: 'string' + type: 'string', }, event: { enum: ['APPROVE', 'REQUEST_CHANGES', 'COMMENT'], required: true, - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events' + '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id/events', }, update: { method: 'PATCH', params: { base: { - type: 'string' + type: 'string', }, body: { - type: 'string' + type: 'string', }, maintainer_can_modify: { - type: 'boolean' + type: 'boolean', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['open', 'closed'], - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number' + url: '/repos/:owner/:repo/pulls/:pull_number', }, updateBranch: { headers: { - accept: 'application/vnd.github.lydian-preview+json' + accept: 'application/vnd.github.lydian-preview+json', }, method: 'PUT', params: { expected_head_sha: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/update-branch' + url: '/repos/:owner/:repo/pulls/:pull_number/update-branch', }, updateComment: { method: 'PATCH', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments/:comment_id' + url: '/repos/:owner/:repo/pulls/comments/:comment_id', }, updateReview: { method: 'PUT', params: { body: { required: true, - type: 'string' + type: 'string', }, number: { alias: 'pull_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, pull_number: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, review_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id' - } + url: '/repos/:owner/:repo/pulls/:pull_number/reviews/:review_id', + }, }, rateLimit: { get: { method: 'GET', params: {}, - url: '/rate_limit' - } + url: '/rate_limit', + }, }, reactions: { createForCommitComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9080,25 +9092,25 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/comments/:comment_id/reactions', }, createForIssue: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { @@ -9111,40 +9123,40 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/reactions' + url: '/repos/:owner/:repo/issues/:issue_number/reactions', }, createForIssueComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9155,31 +9167,31 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/issues/comments/:comment_id/reactions', }, createForPullRequestReviewComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9190,27 +9202,27 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/pulls/comments/:comment_id/reactions', }, createForTeamDiscussion: { deprecated: 'octokit.reactions.createForTeamDiscussion() has been renamed to octokit.reactions.createForTeamDiscussionLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { @@ -9223,33 +9235,33 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/reactions' + url: '/teams/:team_id/discussions/:discussion_number/reactions', }, createForTeamDiscussionComment: { deprecated: 'octokit.reactions.createForTeamDiscussionComment() has been renamed to octokit.reactions.createForTeamDiscussionCommentLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9260,32 +9272,32 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions', }, createForTeamDiscussionCommentInOrg: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9296,38 +9308,38 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions', }, createForTeamDiscussionCommentLegacy: { deprecated: 'octokit.reactions.createForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-comment-legacy', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9338,26 +9350,26 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions', }, createForTeamDiscussionInOrg: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { @@ -9370,32 +9382,32 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions', }, createForTeamDiscussionLegacy: { deprecated: 'octokit.reactions.createForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#create-reaction-for-a-team-discussion-legacy', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'POST', params: { @@ -9408,44 +9420,44 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/reactions' + url: '/teams/:team_id/discussions/:discussion_number/reactions', }, delete: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'DELETE', params: { reaction_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/reactions/:reaction_id' + url: '/reactions/:reaction_id', }, listForCommitComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9456,30 +9468,30 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/comments/:comment_id/reactions', }, listForIssue: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { @@ -9492,45 +9504,45 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, issue_number: { required: true, - type: 'integer' + type: 'integer', }, number: { alias: 'issue_number', deprecated: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/:issue_number/reactions' + url: '/repos/:owner/:repo/issues/:issue_number/reactions', }, listForIssueComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9541,36 +9553,36 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/issues/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/issues/comments/:comment_id/reactions', }, listForPullRequestReviewComment: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9581,32 +9593,32 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pulls/comments/:comment_id/reactions' + url: '/repos/:owner/:repo/pulls/comments/:comment_id/reactions', }, listForTeamDiscussion: { deprecated: 'octokit.reactions.listForTeamDiscussion() has been renamed to octokit.reactions.listForTeamDiscussionLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { @@ -9619,38 +9631,38 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/reactions' + url: '/teams/:team_id/discussions/:discussion_number/reactions', }, listForTeamDiscussionComment: { deprecated: 'octokit.reactions.listForTeamDiscussionComment() has been renamed to octokit.reactions.listForTeamDiscussionCommentLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9661,37 +9673,37 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions', }, listForTeamDiscussionCommentInOrg: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9702,43 +9714,43 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions', }, listForTeamDiscussionCommentLegacy: { deprecated: 'octokit.reactions.listForTeamDiscussionCommentLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-comment-legacy', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, content: { enum: [ @@ -9749,31 +9761,31 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number/reactions', }, listForTeamDiscussionInOrg: { headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { @@ -9786,37 +9798,37 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions', }, listForTeamDiscussionLegacy: { deprecated: 'octokit.reactions.listForTeamDiscussionLegacy() is deprecated, see https://developer.github.com/v3/reactions/#list-reactions-for-a-team-discussion-legacy', headers: { - accept: 'application/vnd.github.squirrel-girl-preview+json' + accept: 'application/vnd.github.squirrel-girl-preview+json', }, method: 'GET', params: { @@ -9829,27 +9841,27 @@ module.exports = /******/ (() => { 'heart', 'hooray', 'rocket', - 'eyes' + 'eyes', ], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/reactions' - } + url: '/teams/:team_id/discussions/:discussion_number/reactions', + }, }, repos: { acceptInvitation: { @@ -9857,75 +9869,75 @@ module.exports = /******/ (() => { params: { invitation_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/repository_invitations/:invitation_id' + url: '/user/repository_invitations/:invitation_id', }, addCollaborator: { method: 'PUT', params: { owner: { required: true, - type: 'string' + type: 'string', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/collaborators/:username' + url: '/repos/:owner/:repo/collaborators/:username', }, addDeployKey: { method: 'POST', params: { key: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, read_only: { - type: 'boolean' + type: 'boolean', }, repo: { required: true, - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/keys' + url: '/repos/:owner/:repo/keys', }, addProtectedBranchAdminEnforcement: { method: 'POST', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/enforce_admins' + '/repos/:owner/:repo/branches/:branch/protection/enforce_admins', }, addProtectedBranchAppRestrictions: { method: 'POST', @@ -9933,283 +9945,283 @@ module.exports = /******/ (() => { apps: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps', }, addProtectedBranchRequiredSignatures: { headers: { - accept: 'application/vnd.github.zzzax-preview+json' + accept: 'application/vnd.github.zzzax-preview+json', }, method: 'POST', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_signatures' + '/repos/:owner/:repo/branches/:branch/protection/required_signatures', }, addProtectedBranchRequiredStatusChecksContexts: { method: 'POST', params: { branch: { required: true, - type: 'string' + type: 'string', }, contexts: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts', }, addProtectedBranchTeamRestrictions: { method: 'POST', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, teams: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, addProtectedBranchUserRestrictions: { method: 'POST', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, users: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, checkCollaborator: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/collaborators/:username' + url: '/repos/:owner/:repo/collaborators/:username', }, checkVulnerabilityAlerts: { headers: { - accept: 'application/vnd.github.dorian-preview+json' + accept: 'application/vnd.github.dorian-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/vulnerability-alerts' + url: '/repos/:owner/:repo/vulnerability-alerts', }, compareCommits: { method: 'GET', params: { base: { required: true, - type: 'string' + type: 'string', }, head: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/compare/:base...:head' + url: '/repos/:owner/:repo/compare/:base...:head', }, createCommitComment: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, commit_sha: { required: true, - type: 'string' + type: 'string', }, line: { - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { - type: 'string' + type: 'string', }, position: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { alias: 'commit_sha', deprecated: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:commit_sha/comments' + url: '/repos/:owner/:repo/commits/:commit_sha/comments', }, createDeployment: { method: 'POST', params: { auto_merge: { - type: 'boolean' + type: 'boolean', }, description: { - type: 'string' + type: 'string', }, environment: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, payload: { - type: 'string' + type: 'string', }, production_environment: { - type: 'boolean' + type: 'boolean', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, required_contexts: { - type: 'string[]' + type: 'string[]', }, task: { - type: 'string' + type: 'string', }, transient_environment: { - type: 'boolean' - } + type: 'boolean', + }, }, - url: '/repos/:owner/:repo/deployments' + url: '/repos/:owner/:repo/deployments', }, createDeploymentStatus: { method: 'POST', params: { auto_inactive: { - type: 'boolean' + type: 'boolean', }, deployment_id: { required: true, - type: 'integer' + type: 'integer', }, description: { - type: 'string' + type: 'string', }, environment: { enum: ['production', 'staging', 'qa'], - type: 'string' + type: 'string', }, environment_url: { - type: 'string' + type: 'string', }, log_url: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, state: { enum: [ @@ -10219,36 +10231,36 @@ module.exports = /******/ (() => { 'in_progress', 'queued', 'pending', - 'success' + 'success', ], required: true, - type: 'string' + type: 'string', }, target_url: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/deployments/:deployment_id/statuses' + url: '/repos/:owner/:repo/deployments/:deployment_id/statuses', }, createDispatchEvent: { method: 'POST', params: { client_payload: { - type: 'object' + type: 'object', }, event_type: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/dispatches' + url: '/repos/:owner/:repo/dispatches', }, createFile: { deprecated: @@ -10256,833 +10268,833 @@ module.exports = /******/ (() => { method: 'PUT', params: { author: { - type: 'object' + type: 'object', }, 'author.email': { required: true, - type: 'string' + type: 'string', }, 'author.name': { required: true, - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, committer: { - type: 'object' + type: 'object', }, 'committer.email': { required: true, - type: 'string' + type: 'string', }, 'committer.name': { required: true, - type: 'string' + type: 'string', }, content: { required: true, - type: 'string' + type: 'string', }, message: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contents/:path' + url: '/repos/:owner/:repo/contents/:path', }, createForAuthenticatedUser: { method: 'POST', params: { allow_merge_commit: { - type: 'boolean' + type: 'boolean', }, allow_rebase_merge: { - type: 'boolean' + type: 'boolean', }, allow_squash_merge: { - type: 'boolean' + type: 'boolean', }, auto_init: { - type: 'boolean' + type: 'boolean', }, delete_branch_on_merge: { - type: 'boolean' + type: 'boolean', }, description: { - type: 'string' + type: 'string', }, gitignore_template: { - type: 'string' + type: 'string', }, has_issues: { - type: 'boolean' + type: 'boolean', }, has_projects: { - type: 'boolean' + type: 'boolean', }, has_wiki: { - type: 'boolean' + type: 'boolean', }, homepage: { - type: 'string' + type: 'string', }, is_template: { - type: 'boolean' + type: 'boolean', }, license_template: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, team_id: { - type: 'integer' + type: 'integer', }, visibility: { enum: ['public', 'private', 'visibility', 'internal'], - type: 'string' - } + type: 'string', + }, }, - url: '/user/repos' + url: '/user/repos', }, createFork: { method: 'POST', params: { organization: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/forks' + url: '/repos/:owner/:repo/forks', }, createHook: { method: 'POST', params: { active: { - type: 'boolean' + type: 'boolean', }, config: { required: true, - type: 'object' + type: 'object', }, 'config.content_type': { - type: 'string' + type: 'string', }, 'config.insecure_ssl': { - type: 'string' + type: 'string', }, 'config.secret': { - type: 'string' + type: 'string', }, 'config.url': { required: true, - type: 'string' + type: 'string', }, events: { - type: 'string[]' + type: 'string[]', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks' + url: '/repos/:owner/:repo/hooks', }, createInOrg: { method: 'POST', params: { allow_merge_commit: { - type: 'boolean' + type: 'boolean', }, allow_rebase_merge: { - type: 'boolean' + type: 'boolean', }, allow_squash_merge: { - type: 'boolean' + type: 'boolean', }, auto_init: { - type: 'boolean' + type: 'boolean', }, delete_branch_on_merge: { - type: 'boolean' + type: 'boolean', }, description: { - type: 'string' + type: 'string', }, gitignore_template: { - type: 'string' + type: 'string', }, has_issues: { - type: 'boolean' + type: 'boolean', }, has_projects: { - type: 'boolean' + type: 'boolean', }, has_wiki: { - type: 'boolean' + type: 'boolean', }, homepage: { - type: 'string' + type: 'string', }, is_template: { - type: 'boolean' + type: 'boolean', }, license_template: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, team_id: { - type: 'integer' + type: 'integer', }, visibility: { enum: ['public', 'private', 'visibility', 'internal'], - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/repos' + url: '/orgs/:org/repos', }, createOrUpdateFile: { method: 'PUT', params: { author: { - type: 'object' + type: 'object', }, 'author.email': { required: true, - type: 'string' + type: 'string', }, 'author.name': { required: true, - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, committer: { - type: 'object' + type: 'object', }, 'committer.email': { required: true, - type: 'string' + type: 'string', }, 'committer.name': { required: true, - type: 'string' + type: 'string', }, content: { required: true, - type: 'string' + type: 'string', }, message: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contents/:path' + url: '/repos/:owner/:repo/contents/:path', }, createRelease: { method: 'POST', params: { body: { - type: 'string' + type: 'string', }, draft: { - type: 'boolean' + type: 'boolean', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, prerelease: { - type: 'boolean' + type: 'boolean', }, repo: { required: true, - type: 'string' + type: 'string', }, tag_name: { required: true, - type: 'string' + type: 'string', }, target_commitish: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases' + url: '/repos/:owner/:repo/releases', }, createStatus: { method: 'POST', params: { context: { - type: 'string' + type: 'string', }, description: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { required: true, - type: 'string' + type: 'string', }, state: { enum: ['error', 'failure', 'pending', 'success'], required: true, - type: 'string' + type: 'string', }, target_url: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/statuses/:sha' + url: '/repos/:owner/:repo/statuses/:sha', }, createUsingTemplate: { headers: { - accept: 'application/vnd.github.baptiste-preview+json' + accept: 'application/vnd.github.baptiste-preview+json', }, method: 'POST', params: { description: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, owner: { - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, template_owner: { required: true, - type: 'string' + type: 'string', }, template_repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:template_owner/:template_repo/generate' + url: '/repos/:template_owner/:template_repo/generate', }, declineInvitation: { method: 'DELETE', params: { invitation_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/repository_invitations/:invitation_id' + url: '/user/repository_invitations/:invitation_id', }, delete: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo' + url: '/repos/:owner/:repo', }, deleteCommitComment: { method: 'DELETE', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments/:comment_id' + url: '/repos/:owner/:repo/comments/:comment_id', }, deleteDownload: { method: 'DELETE', params: { download_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/downloads/:download_id' + url: '/repos/:owner/:repo/downloads/:download_id', }, deleteFile: { method: 'DELETE', params: { author: { - type: 'object' + type: 'object', }, 'author.email': { - type: 'string' + type: 'string', }, 'author.name': { - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, committer: { - type: 'object' + type: 'object', }, 'committer.email': { - type: 'string' + type: 'string', }, 'committer.name': { - type: 'string' + type: 'string', }, message: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contents/:path' + url: '/repos/:owner/:repo/contents/:path', }, deleteHook: { method: 'DELETE', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks/:hook_id' + url: '/repos/:owner/:repo/hooks/:hook_id', }, deleteInvitation: { method: 'DELETE', params: { invitation_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/invitations/:invitation_id' + url: '/repos/:owner/:repo/invitations/:invitation_id', }, deleteRelease: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, release_id: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/:release_id' + url: '/repos/:owner/:repo/releases/:release_id', }, deleteReleaseAsset: { method: 'DELETE', params: { asset_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/assets/:asset_id' + url: '/repos/:owner/:repo/releases/assets/:asset_id', }, disableAutomatedSecurityFixes: { headers: { - accept: 'application/vnd.github.london-preview+json' + accept: 'application/vnd.github.london-preview+json', }, method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/automated-security-fixes' + url: '/repos/:owner/:repo/automated-security-fixes', }, disablePagesSite: { headers: { - accept: 'application/vnd.github.switcheroo-preview+json' + accept: 'application/vnd.github.switcheroo-preview+json', }, method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages' + url: '/repos/:owner/:repo/pages', }, disableVulnerabilityAlerts: { headers: { - accept: 'application/vnd.github.dorian-preview+json' + accept: 'application/vnd.github.dorian-preview+json', }, method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/vulnerability-alerts' + url: '/repos/:owner/:repo/vulnerability-alerts', }, enableAutomatedSecurityFixes: { headers: { - accept: 'application/vnd.github.london-preview+json' + accept: 'application/vnd.github.london-preview+json', }, method: 'PUT', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/automated-security-fixes' + url: '/repos/:owner/:repo/automated-security-fixes', }, enablePagesSite: { headers: { - accept: 'application/vnd.github.switcheroo-preview+json' + accept: 'application/vnd.github.switcheroo-preview+json', }, method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, source: { - type: 'object' + type: 'object', }, 'source.branch': { enum: ['master', 'gh-pages'], - type: 'string' + type: 'string', }, 'source.path': { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages' + url: '/repos/:owner/:repo/pages', }, enableVulnerabilityAlerts: { headers: { - accept: 'application/vnd.github.dorian-preview+json' + accept: 'application/vnd.github.dorian-preview+json', }, method: 'PUT', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/vulnerability-alerts' + url: '/repos/:owner/:repo/vulnerability-alerts', }, get: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo' + url: '/repos/:owner/:repo', }, getAppsWithAccessToProtectedBranch: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps', }, getArchiveLink: { method: 'GET', params: { archive_format: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/:archive_format/:ref' + url: '/repos/:owner/:repo/:archive_format/:ref', }, getBranch: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches/:branch' + url: '/repos/:owner/:repo/branches/:branch', }, getBranchProtection: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches/:branch/protection' + url: '/repos/:owner/:repo/branches/:branch/protection', }, getClones: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, per: { enum: ['day', 'week'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/traffic/clones' + url: '/repos/:owner/:repo/traffic/clones', }, getCodeFrequencyStats: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stats/code_frequency' + url: '/repos/:owner/:repo/stats/code_frequency', }, getCollaboratorPermissionLevel: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/collaborators/:username/permission' + url: '/repos/:owner/:repo/collaborators/:username/permission', }, getCombinedStatusForRef: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref/status' + url: '/repos/:owner/:repo/commits/:ref/status', }, getCommit: { method: 'GET', @@ -11090,583 +11102,583 @@ module.exports = /******/ (() => { commit_sha: { alias: 'ref', deprecated: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { alias: 'ref', deprecated: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref' + url: '/repos/:owner/:repo/commits/:ref', }, getCommitActivityStats: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stats/commit_activity' + url: '/repos/:owner/:repo/stats/commit_activity', }, getCommitComment: { method: 'GET', params: { comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments/:comment_id' + url: '/repos/:owner/:repo/comments/:comment_id', }, getCommitRefSha: { deprecated: 'octokit.repos.getCommitRefSha() is deprecated, see https://developer.github.com/v3/repos/commits/#get-a-single-commit', headers: { - accept: 'application/vnd.github.v3.sha' + accept: 'application/vnd.github.v3.sha', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref' + url: '/repos/:owner/:repo/commits/:ref', }, getContents: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, ref: { - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contents/:path' + url: '/repos/:owner/:repo/contents/:path', }, getContributorsStats: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stats/contributors' + url: '/repos/:owner/:repo/stats/contributors', }, getDeployKey: { method: 'GET', params: { key_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/keys/:key_id' + url: '/repos/:owner/:repo/keys/:key_id', }, getDeployment: { method: 'GET', params: { deployment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/deployments/:deployment_id' + url: '/repos/:owner/:repo/deployments/:deployment_id', }, getDeploymentStatus: { method: 'GET', params: { deployment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, status_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id' + '/repos/:owner/:repo/deployments/:deployment_id/statuses/:status_id', }, getDownload: { method: 'GET', params: { download_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/downloads/:download_id' + url: '/repos/:owner/:repo/downloads/:download_id', }, getHook: { method: 'GET', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks/:hook_id' + url: '/repos/:owner/:repo/hooks/:hook_id', }, getLatestPagesBuild: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages/builds/latest' + url: '/repos/:owner/:repo/pages/builds/latest', }, getLatestRelease: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/latest' + url: '/repos/:owner/:repo/releases/latest', }, getPages: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages' + url: '/repos/:owner/:repo/pages', }, getPagesBuild: { method: 'GET', params: { build_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages/builds/:build_id' + url: '/repos/:owner/:repo/pages/builds/:build_id', }, getParticipationStats: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stats/participation' + url: '/repos/:owner/:repo/stats/participation', }, getProtectedBranchAdminEnforcement: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/enforce_admins' + '/repos/:owner/:repo/branches/:branch/protection/enforce_admins', }, getProtectedBranchPullRequestReviewEnforcement: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews' + '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews', }, getProtectedBranchRequiredSignatures: { headers: { - accept: 'application/vnd.github.zzzax-preview+json' + accept: 'application/vnd.github.zzzax-preview+json', }, method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_signatures' + '/repos/:owner/:repo/branches/:branch/protection/required_signatures', }, getProtectedBranchRequiredStatusChecks: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks', }, getProtectedBranchRestrictions: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches/:branch/protection/restrictions' + url: '/repos/:owner/:repo/branches/:branch/protection/restrictions', }, getPunchCardStats: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/stats/punch_card' + url: '/repos/:owner/:repo/stats/punch_card', }, getReadme: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, ref: { - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/readme' + url: '/repos/:owner/:repo/readme', }, getRelease: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, release_id: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/:release_id' + url: '/repos/:owner/:repo/releases/:release_id', }, getReleaseAsset: { method: 'GET', params: { asset_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/assets/:asset_id' + url: '/repos/:owner/:repo/releases/assets/:asset_id', }, getReleaseByTag: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, tag: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/tags/:tag' + url: '/repos/:owner/:repo/releases/tags/:tag', }, getTeamsWithAccessToProtectedBranch: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, getTopPaths: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/traffic/popular/paths' + url: '/repos/:owner/:repo/traffic/popular/paths', }, getTopReferrers: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/traffic/popular/referrers' + url: '/repos/:owner/:repo/traffic/popular/referrers', }, getUsersWithAccessToProtectedBranch: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, getViews: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, per: { enum: ['day', 'week'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/traffic/views' + url: '/repos/:owner/:repo/traffic/views', }, list: { method: 'GET', params: { affiliation: { - type: 'string' + type: 'string', }, direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated', 'pushed', 'full_name'], - type: 'string' + type: 'string', }, type: { enum: ['all', 'owner', 'public', 'private', 'member'], - type: 'string' + type: 'string', }, visibility: { enum: ['all', 'public', 'private'], - type: 'string' - } + type: 'string', + }, }, - url: '/user/repos' + url: '/user/repos', }, listAppsWithAccessToProtectedBranch: { deprecated: @@ -11675,335 +11687,335 @@ module.exports = /******/ (() => { params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps', }, listAssetsForRelease: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, release_id: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/:release_id/assets' + url: '/repos/:owner/:repo/releases/:release_id/assets', }, listBranches: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, protected: { - type: 'boolean' + type: 'boolean', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches' + url: '/repos/:owner/:repo/branches', }, listBranchesForHeadCommit: { headers: { - accept: 'application/vnd.github.groot-preview+json' + accept: 'application/vnd.github.groot-preview+json', }, method: 'GET', params: { commit_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:commit_sha/branches-where-head' + url: '/repos/:owner/:repo/commits/:commit_sha/branches-where-head', }, listCollaborators: { method: 'GET', params: { affiliation: { enum: ['outside', 'direct', 'all'], - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/collaborators' + url: '/repos/:owner/:repo/collaborators', }, listCommentsForCommit: { method: 'GET', params: { commit_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { alias: 'commit_sha', deprecated: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:commit_sha/comments' + url: '/repos/:owner/:repo/commits/:commit_sha/comments', }, listCommitComments: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments' + url: '/repos/:owner/:repo/comments', }, listCommits: { method: 'GET', params: { author: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, path: { - type: 'string' + type: 'string', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' + type: 'string', }, since: { - type: 'string' + type: 'string', }, until: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits' + url: '/repos/:owner/:repo/commits', }, listContributors: { method: 'GET', params: { anon: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contributors' + url: '/repos/:owner/:repo/contributors', }, listDeployKeys: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/keys' + url: '/repos/:owner/:repo/keys', }, listDeploymentStatuses: { method: 'GET', params: { deployment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/deployments/:deployment_id/statuses' + url: '/repos/:owner/:repo/deployments/:deployment_id/statuses', }, listDeployments: { method: 'GET', params: { environment: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' + type: 'string', }, task: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/deployments' + url: '/repos/:owner/:repo/deployments', }, listDownloads: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/downloads' + url: '/repos/:owner/:repo/downloads', }, listForOrg: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated', 'pushed', 'full_name'], - type: 'string' + type: 'string', }, type: { enum: [ @@ -12013,169 +12025,169 @@ module.exports = /******/ (() => { 'forks', 'sources', 'member', - 'internal' + 'internal', ], - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/repos' + url: '/orgs/:org/repos', }, listForUser: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated', 'pushed', 'full_name'], - type: 'string' + type: 'string', }, type: { enum: ['all', 'owner', 'member'], - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/repos' + url: '/users/:username/repos', }, listForks: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['newest', 'oldest', 'stargazers'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/forks' + url: '/repos/:owner/:repo/forks', }, listHooks: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks' + url: '/repos/:owner/:repo/hooks', }, listInvitations: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/invitations' + url: '/repos/:owner/:repo/invitations', }, listInvitationsForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/repository_invitations' + url: '/user/repository_invitations', }, listLanguages: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/languages' + url: '/repos/:owner/:repo/languages', }, listPagesBuilds: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages/builds' + url: '/repos/:owner/:repo/pages/builds', }, listProtectedBranchRequiredStatusChecksContexts: { method: 'GET', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts', }, listProtectedBranchTeamRestrictions: { deprecated: @@ -12184,19 +12196,19 @@ module.exports = /******/ (() => { params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, listProtectedBranchUserRestrictions: { deprecated: @@ -12205,145 +12217,145 @@ module.exports = /******/ (() => { params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, listPublic: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/repositories' + url: '/repositories', }, listPullRequestsAssociatedWithCommit: { headers: { - accept: 'application/vnd.github.groot-preview+json' + accept: 'application/vnd.github.groot-preview+json', }, method: 'GET', params: { commit_sha: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:commit_sha/pulls' + url: '/repos/:owner/:repo/commits/:commit_sha/pulls', }, listReleases: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases' + url: '/repos/:owner/:repo/releases', }, listStatusesForRef: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, ref: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/commits/:ref/statuses' + url: '/repos/:owner/:repo/commits/:ref/statuses', }, listTags: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/tags' + url: '/repos/:owner/:repo/tags', }, listTeams: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/teams' + url: '/repos/:owner/:repo/teams', }, listTeamsWithAccessToProtectedBranch: { deprecated: @@ -12352,36 +12364,36 @@ module.exports = /******/ (() => { params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, listTopics: { headers: { - accept: 'application/vnd.github.mercy-preview+json' + accept: 'application/vnd.github.mercy-preview+json', }, method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/topics' + url: '/repos/:owner/:repo/topics', }, listUsersWithAccessToProtectedBranch: { deprecated: @@ -12390,135 +12402,135 @@ module.exports = /******/ (() => { params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, merge: { method: 'POST', params: { base: { required: true, - type: 'string' + type: 'string', }, commit_message: { - type: 'string' + type: 'string', }, head: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/merges' + url: '/repos/:owner/:repo/merges', }, pingHook: { method: 'POST', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks/:hook_id/pings' + url: '/repos/:owner/:repo/hooks/:hook_id/pings', }, removeBranchProtection: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches/:branch/protection' + url: '/repos/:owner/:repo/branches/:branch/protection', }, removeCollaborator: { method: 'DELETE', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/collaborators/:username' + url: '/repos/:owner/:repo/collaborators/:username', }, removeDeployKey: { method: 'DELETE', params: { key_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/keys/:key_id' + url: '/repos/:owner/:repo/keys/:key_id', }, removeProtectedBranchAdminEnforcement: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/enforce_admins' + '/repos/:owner/:repo/branches/:branch/protection/enforce_admins', }, removeProtectedBranchAppRestrictions: { method: 'DELETE', @@ -12526,173 +12538,173 @@ module.exports = /******/ (() => { apps: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps', }, removeProtectedBranchPullRequestReviewEnforcement: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews' + '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews', }, removeProtectedBranchRequiredSignatures: { headers: { - accept: 'application/vnd.github.zzzax-preview+json' + accept: 'application/vnd.github.zzzax-preview+json', }, method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_signatures' + '/repos/:owner/:repo/branches/:branch/protection/required_signatures', }, removeProtectedBranchRequiredStatusChecks: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks', }, removeProtectedBranchRequiredStatusChecksContexts: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, contexts: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts', }, removeProtectedBranchRestrictions: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/branches/:branch/protection/restrictions' + url: '/repos/:owner/:repo/branches/:branch/protection/restrictions', }, removeProtectedBranchTeamRestrictions: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, teams: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, removeProtectedBranchUserRestrictions: { method: 'DELETE', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, users: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, replaceProtectedBranchAppRestrictions: { method: 'PUT', @@ -12700,349 +12712,349 @@ module.exports = /******/ (() => { apps: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/apps', }, replaceProtectedBranchRequiredStatusChecksContexts: { method: 'PUT', params: { branch: { required: true, - type: 'string' + type: 'string', }, contexts: { mapTo: 'data', required: true, - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts', }, replaceProtectedBranchTeamRestrictions: { method: 'PUT', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, teams: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/teams', }, replaceProtectedBranchUserRestrictions: { method: 'PUT', params: { branch: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, users: { mapTo: 'data', required: true, - type: 'string[]' - } + type: 'string[]', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/restrictions/users' + '/repos/:owner/:repo/branches/:branch/protection/restrictions/users', }, replaceTopics: { headers: { - accept: 'application/vnd.github.mercy-preview+json' + accept: 'application/vnd.github.mercy-preview+json', }, method: 'PUT', params: { names: { required: true, - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/topics' + url: '/repos/:owner/:repo/topics', }, requestPageBuild: { method: 'POST', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages/builds' + url: '/repos/:owner/:repo/pages/builds', }, retrieveCommunityProfileMetrics: { method: 'GET', params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/community/profile' + url: '/repos/:owner/:repo/community/profile', }, testPushHook: { method: 'POST', params: { hook_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks/:hook_id/tests' + url: '/repos/:owner/:repo/hooks/:hook_id/tests', }, transfer: { method: 'POST', params: { new_owner: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_ids: { - type: 'integer[]' - } + type: 'integer[]', + }, }, - url: '/repos/:owner/:repo/transfer' + url: '/repos/:owner/:repo/transfer', }, update: { method: 'PATCH', params: { allow_merge_commit: { - type: 'boolean' + type: 'boolean', }, allow_rebase_merge: { - type: 'boolean' + type: 'boolean', }, allow_squash_merge: { - type: 'boolean' + type: 'boolean', }, archived: { - type: 'boolean' + type: 'boolean', }, default_branch: { - type: 'string' + type: 'string', }, delete_branch_on_merge: { - type: 'boolean' + type: 'boolean', }, description: { - type: 'string' + type: 'string', }, has_issues: { - type: 'boolean' + type: 'boolean', }, has_projects: { - type: 'boolean' + type: 'boolean', }, has_wiki: { - type: 'boolean' + type: 'boolean', }, homepage: { - type: 'string' + type: 'string', }, is_template: { - type: 'boolean' + type: 'boolean', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, repo: { required: true, - type: 'string' + type: 'string', }, visibility: { enum: ['public', 'private', 'visibility', 'internal'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo' + url: '/repos/:owner/:repo', }, updateBranchProtection: { method: 'PUT', params: { allow_deletions: { - type: 'boolean' + type: 'boolean', }, allow_force_pushes: { allowNull: true, - type: 'boolean' + type: 'boolean', }, branch: { required: true, - type: 'string' + type: 'string', }, enforce_admins: { allowNull: true, required: true, - type: 'boolean' + type: 'boolean', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, required_linear_history: { - type: 'boolean' + type: 'boolean', }, required_pull_request_reviews: { allowNull: true, required: true, - type: 'object' + type: 'object', }, 'required_pull_request_reviews.dismiss_stale_reviews': { - type: 'boolean' + type: 'boolean', }, 'required_pull_request_reviews.dismissal_restrictions': { - type: 'object' + type: 'object', }, 'required_pull_request_reviews.dismissal_restrictions.teams': { - type: 'string[]' + type: 'string[]', }, 'required_pull_request_reviews.dismissal_restrictions.users': { - type: 'string[]' + type: 'string[]', }, 'required_pull_request_reviews.require_code_owner_reviews': { - type: 'boolean' + type: 'boolean', }, 'required_pull_request_reviews.required_approving_review_count': { - type: 'integer' + type: 'integer', }, required_status_checks: { allowNull: true, required: true, - type: 'object' + type: 'object', }, 'required_status_checks.contexts': { required: true, - type: 'string[]' + type: 'string[]', }, 'required_status_checks.strict': { required: true, - type: 'boolean' + type: 'boolean', }, restrictions: { allowNull: true, required: true, - type: 'object' + type: 'object', }, 'restrictions.apps': { - type: 'string[]' + type: 'string[]', }, 'restrictions.teams': { required: true, - type: 'string[]' + type: 'string[]', }, 'restrictions.users': { required: true, - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/repos/:owner/:repo/branches/:branch/protection' + url: '/repos/:owner/:repo/branches/:branch/protection', }, updateCommitComment: { method: 'PATCH', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/comments/:comment_id' + url: '/repos/:owner/:repo/comments/:comment_id', }, updateFile: { deprecated: @@ -13050,266 +13062,266 @@ module.exports = /******/ (() => { method: 'PUT', params: { author: { - type: 'object' + type: 'object', }, 'author.email': { required: true, - type: 'string' + type: 'string', }, 'author.name': { required: true, - type: 'string' + type: 'string', }, branch: { - type: 'string' + type: 'string', }, committer: { - type: 'object' + type: 'object', }, 'committer.email': { required: true, - type: 'string' + type: 'string', }, 'committer.name': { required: true, - type: 'string' + type: 'string', }, content: { required: true, - type: 'string' + type: 'string', }, message: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, path: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, sha: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/contents/:path' + url: '/repos/:owner/:repo/contents/:path', }, updateHook: { method: 'PATCH', params: { active: { - type: 'boolean' + type: 'boolean', }, add_events: { - type: 'string[]' + type: 'string[]', }, config: { - type: 'object' + type: 'object', }, 'config.content_type': { - type: 'string' + type: 'string', }, 'config.insecure_ssl': { - type: 'string' + type: 'string', }, 'config.secret': { - type: 'string' + type: 'string', }, 'config.url': { required: true, - type: 'string' + type: 'string', }, events: { - type: 'string[]' + type: 'string[]', }, hook_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, remove_events: { - type: 'string[]' + type: 'string[]', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/hooks/:hook_id' + url: '/repos/:owner/:repo/hooks/:hook_id', }, updateInformationAboutPagesSite: { method: 'PUT', params: { cname: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, source: { enum: ['"gh-pages"', '"master"', '"master /docs"'], - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/pages' + url: '/repos/:owner/:repo/pages', }, updateInvitation: { method: 'PATCH', params: { invitation_id: { required: true, - type: 'integer' + type: 'integer', }, owner: { required: true, - type: 'string' + type: 'string', }, permissions: { enum: ['read', 'write', 'admin'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/invitations/:invitation_id' + url: '/repos/:owner/:repo/invitations/:invitation_id', }, updateProtectedBranchPullRequestReviewEnforcement: { method: 'PATCH', params: { branch: { required: true, - type: 'string' + type: 'string', }, dismiss_stale_reviews: { - type: 'boolean' + type: 'boolean', }, dismissal_restrictions: { - type: 'object' + type: 'object', }, 'dismissal_restrictions.teams': { - type: 'string[]' + type: 'string[]', }, 'dismissal_restrictions.users': { - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, require_code_owner_reviews: { - type: 'boolean' + type: 'boolean', }, required_approving_review_count: { - type: 'integer' - } + type: 'integer', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews' + '/repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews', }, updateProtectedBranchRequiredStatusChecks: { method: 'PATCH', params: { branch: { required: true, - type: 'string' + type: 'string', }, contexts: { - type: 'string[]' + type: 'string[]', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, strict: { - type: 'boolean' - } + type: 'boolean', + }, }, url: - '/repos/:owner/:repo/branches/:branch/protection/required_status_checks' + '/repos/:owner/:repo/branches/:branch/protection/required_status_checks', }, updateRelease: { method: 'PATCH', params: { body: { - type: 'string' + type: 'string', }, draft: { - type: 'boolean' + type: 'boolean', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, prerelease: { - type: 'boolean' + type: 'boolean', }, release_id: { required: true, - type: 'integer' + type: 'integer', }, repo: { required: true, - type: 'string' + type: 'string', }, tag_name: { - type: 'string' + type: 'string', }, target_commitish: { - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/:release_id' + url: '/repos/:owner/:repo/releases/:release_id', }, updateReleaseAsset: { method: 'PATCH', params: { asset_id: { required: true, - type: 'integer' + type: 'integer', }, label: { - type: 'string' + type: 'string', }, name: { - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/repos/:owner/:repo/releases/assets/:asset_id' + url: '/repos/:owner/:repo/releases/assets/:asset_id', }, uploadReleaseAsset: { method: 'POST', @@ -13317,39 +13329,39 @@ module.exports = /******/ (() => { data: { mapTo: 'data', required: true, - type: 'string | object' + type: 'string | object', }, file: { alias: 'data', deprecated: true, - type: 'string | object' + type: 'string | object', }, headers: { required: true, - type: 'object' + type: 'object', }, 'headers.content-length': { required: true, - type: 'integer' + type: 'integer', }, 'headers.content-type': { required: true, - type: 'string' + type: 'string', }, label: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, url: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: ':url' - } + url: ':url', + }, }, search: { code: { @@ -13357,51 +13369,51 @@ module.exports = /******/ (() => { params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['indexed'], - type: 'string' - } + type: 'string', + }, }, - url: '/search/code' + url: '/search/code', }, commits: { headers: { - accept: 'application/vnd.github.cloak-preview+json' + accept: 'application/vnd.github.cloak-preview+json', }, method: 'GET', params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['author-date', 'committer-date'], - type: 'string' - } + type: 'string', + }, }, - url: '/search/commits' + url: '/search/commits', }, issues: { deprecated: @@ -13410,17 +13422,17 @@ module.exports = /******/ (() => { params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: [ @@ -13434,29 +13446,29 @@ module.exports = /******/ (() => { 'reactions-tada', 'interactions', 'created', - 'updated' + 'updated', ], - type: 'string' - } + type: 'string', + }, }, - url: '/search/issues' + url: '/search/issues', }, issuesAndPullRequests: { method: 'GET', params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: [ @@ -13470,93 +13482,93 @@ module.exports = /******/ (() => { 'reactions-tada', 'interactions', 'created', - 'updated' + 'updated', ], - type: 'string' - } + type: 'string', + }, }, - url: '/search/issues' + url: '/search/issues', }, labels: { method: 'GET', params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, q: { required: true, - type: 'string' + type: 'string', }, repository_id: { required: true, - type: 'integer' + type: 'integer', }, sort: { enum: ['created', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/search/labels' + url: '/search/labels', }, repos: { method: 'GET', params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['stars', 'forks', 'help-wanted-issues', 'updated'], - type: 'string' - } + type: 'string', + }, }, - url: '/search/repositories' + url: '/search/repositories', }, topics: { method: 'GET', params: { q: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/search/topics' + url: '/search/topics', }, users: { method: 'GET', params: { order: { enum: ['desc', 'asc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, q: { required: true, - type: 'string' + type: 'string', }, sort: { enum: ['followers', 'repositories', 'joined'], - type: 'string' - } + type: 'string', + }, }, - url: '/search/users' - } + url: '/search/users', + }, }, teams: { addMember: { @@ -13566,14 +13578,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, addMemberLegacy: { deprecated: @@ -13582,14 +13594,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, addOrUpdateMembership: { deprecated: @@ -13598,40 +13610,40 @@ module.exports = /******/ (() => { params: { role: { enum: ['member', 'maintainer'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, addOrUpdateMembershipInOrg: { method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, role: { enum: ['member', 'maintainer'], - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/memberships/:username' + url: '/orgs/:org/teams/:team_slug/memberships/:username', }, addOrUpdateMembershipLegacy: { deprecated: @@ -13640,89 +13652,89 @@ module.exports = /******/ (() => { params: { role: { enum: ['member', 'maintainer'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, addOrUpdateProject: { deprecated: 'octokit.teams.addOrUpdateProject() has been renamed to octokit.teams.addOrUpdateProjectLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PUT', params: { permission: { enum: ['read', 'write', 'admin'], - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, addOrUpdateProjectInOrg: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, permission: { enum: ['read', 'write', 'admin'], - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/projects/:project_id' + url: '/orgs/:org/teams/:team_slug/projects/:project_id', }, addOrUpdateProjectLegacy: { deprecated: 'octokit.teams.addOrUpdateProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#add-or-update-team-project-legacy', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'PUT', params: { permission: { enum: ['read', 'write', 'admin'], - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, addOrUpdateRepo: { deprecated: @@ -13731,48 +13743,48 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, addOrUpdateRepoInOrg: { method: 'PUT', params: { org: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo' + url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo', }, addOrUpdateRepoLegacy: { deprecated: @@ -13781,22 +13793,22 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, checkManagesRepo: { deprecated: @@ -13805,40 +13817,40 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, checkManagesRepoInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo' + url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo', }, checkManagesRepoLegacy: { deprecated: @@ -13847,52 +13859,52 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, create: { method: 'POST', params: { description: { - type: 'string' + type: 'string', }, maintainers: { - type: 'string[]' + type: 'string[]', }, name: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, parent_team_id: { - type: 'integer' + type: 'integer', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, privacy: { enum: ['secret', 'closed'], - type: 'string' + type: 'string', }, repo_names: { - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/orgs/:org/teams' + url: '/orgs/:org/teams', }, createDiscussion: { deprecated: @@ -13901,21 +13913,21 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/discussions' + url: '/teams/:team_id/discussions', }, createDiscussionComment: { deprecated: @@ -13924,41 +13936,41 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/comments' + url: '/teams/:team_id/discussions/:discussion_number/comments', }, createDiscussionCommentInOrg: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments', }, createDiscussionCommentLegacy: { deprecated: @@ -13967,43 +13979,43 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/comments' + url: '/teams/:team_id/discussions/:discussion_number/comments', }, createDiscussionInOrg: { method: 'POST', params: { body: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, team_slug: { required: true, - type: 'string' + type: 'string', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/discussions' + url: '/orgs/:org/teams/:team_slug/discussions', }, createDiscussionLegacy: { deprecated: @@ -14012,21 +14024,21 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, private: { - type: 'boolean' + type: 'boolean', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, title: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/discussions' + url: '/teams/:team_id/discussions', }, delete: { deprecated: @@ -14035,10 +14047,10 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' + url: '/teams/:team_id', }, deleteDiscussion: { deprecated: @@ -14047,14 +14059,14 @@ module.exports = /******/ (() => { params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, deleteDiscussionComment: { deprecated: @@ -14063,42 +14075,42 @@ module.exports = /******/ (() => { params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, deleteDiscussionCommentInOrg: { method: 'DELETE', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number', }, deleteDiscussionCommentLegacy: { deprecated: @@ -14107,37 +14119,37 @@ module.exports = /******/ (() => { params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, deleteDiscussionInOrg: { method: 'DELETE', params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number' + url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number', }, deleteDiscussionLegacy: { deprecated: @@ -14146,28 +14158,28 @@ module.exports = /******/ (() => { params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, deleteInOrg: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug' + url: '/orgs/:org/teams/:team_slug', }, deleteLegacy: { deprecated: @@ -14176,10 +14188,10 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' + url: '/teams/:team_id', }, get: { deprecated: @@ -14188,24 +14200,24 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' + url: '/teams/:team_id', }, getByName: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug' + url: '/orgs/:org/teams/:team_slug', }, getDiscussion: { deprecated: @@ -14214,14 +14226,14 @@ module.exports = /******/ (() => { params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, getDiscussionComment: { deprecated: @@ -14230,42 +14242,42 @@ module.exports = /******/ (() => { params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, getDiscussionCommentInOrg: { method: 'GET', params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number', }, getDiscussionCommentLegacy: { deprecated: @@ -14274,37 +14286,37 @@ module.exports = /******/ (() => { params: { comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, getDiscussionInOrg: { method: 'GET', params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number' + url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number', }, getDiscussionLegacy: { deprecated: @@ -14313,14 +14325,14 @@ module.exports = /******/ (() => { params: { discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, getLegacy: { deprecated: @@ -14329,10 +14341,10 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' + url: '/teams/:team_id', }, getMember: { deprecated: @@ -14341,14 +14353,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, getMemberLegacy: { deprecated: @@ -14357,14 +14369,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, getMembership: { deprecated: @@ -14373,32 +14385,32 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, getMembershipInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/memberships/:username' + url: '/orgs/:org/teams/:team_slug/memberships/:username', }, getMembershipLegacy: { deprecated: @@ -14407,30 +14419,30 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, list: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/orgs/:org/teams' + url: '/orgs/:org/teams', }, listChild: { deprecated: @@ -14438,37 +14450,37 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/teams' + url: '/teams/:team_id/teams', }, listChildInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/teams' + url: '/orgs/:org/teams/:team_slug/teams', }, listChildLegacy: { deprecated: @@ -14476,17 +14488,17 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/teams' + url: '/teams/:team_id/teams', }, listDiscussionComments: { deprecated: @@ -14495,53 +14507,53 @@ module.exports = /******/ (() => { params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/comments' + url: '/teams/:team_id/discussions/:discussion_number/comments', }, listDiscussionCommentsInOrg: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments', }, listDiscussionCommentsLegacy: { deprecated: @@ -14550,24 +14562,24 @@ module.exports = /******/ (() => { params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions/:discussion_number/comments' + url: '/teams/:team_id/discussions/:discussion_number/comments', }, listDiscussions: { deprecated: @@ -14576,44 +14588,44 @@ module.exports = /******/ (() => { params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions' + url: '/teams/:team_id/discussions', }, listDiscussionsInOrg: { method: 'GET', params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/discussions' + url: '/orgs/:org/teams/:team_slug/discussions', }, listDiscussionsLegacy: { deprecated: @@ -14622,32 +14634,32 @@ module.exports = /******/ (() => { params: { direction: { enum: ['asc', 'desc'], - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/discussions' + url: '/teams/:team_id/discussions', }, listForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/teams' + url: '/user/teams', }, listMembers: { deprecated: @@ -14655,45 +14667,45 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, role: { enum: ['member', 'maintainer', 'all'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/members' + url: '/teams/:team_id/members', }, listMembersInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, role: { enum: ['member', 'maintainer', 'all'], - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/members' + url: '/orgs/:org/teams/:team_slug/members', }, listMembersLegacy: { deprecated: @@ -14701,21 +14713,21 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, role: { enum: ['member', 'maintainer', 'all'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/members' + url: '/teams/:team_id/members', }, listPendingInvitations: { deprecated: @@ -14723,37 +14735,37 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/invitations' + url: '/teams/:team_id/invitations', }, listPendingInvitationsInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/invitations' + url: '/orgs/:org/teams/:team_slug/invitations', }, listPendingInvitationsLegacy: { deprecated: @@ -14761,82 +14773,82 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/invitations' + url: '/teams/:team_id/invitations', }, listProjects: { deprecated: 'octokit.teams.listProjects() has been renamed to octokit.teams.listProjectsLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects' + url: '/teams/:team_id/projects', }, listProjectsInOrg: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/projects' + url: '/orgs/:org/teams/:team_slug/projects', }, listProjectsLegacy: { deprecated: 'octokit.teams.listProjectsLegacy() is deprecated, see https://developer.github.com/v3/teams/#list-team-projects-legacy', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects' + url: '/teams/:team_id/projects', }, listRepos: { deprecated: @@ -14844,37 +14856,37 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos' + url: '/teams/:team_id/repos', }, listReposInOrg: { method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/repos' + url: '/orgs/:org/teams/:team_slug/repos', }, listReposLegacy: { deprecated: @@ -14882,17 +14894,17 @@ module.exports = /******/ (() => { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos' + url: '/teams/:team_id/repos', }, removeMember: { deprecated: @@ -14901,14 +14913,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, removeMemberLegacy: { deprecated: @@ -14917,14 +14929,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/members/:username' + url: '/teams/:team_id/members/:username', }, removeMembership: { deprecated: @@ -14933,32 +14945,32 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, removeMembershipInOrg: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/memberships/:username' + url: '/orgs/:org/teams/:team_slug/memberships/:username', }, removeMembershipLegacy: { deprecated: @@ -14967,14 +14979,14 @@ module.exports = /******/ (() => { params: { team_id: { required: true, - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/memberships/:username' + url: '/teams/:team_id/memberships/:username', }, removeProject: { deprecated: @@ -14983,32 +14995,32 @@ module.exports = /******/ (() => { params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, removeProjectInOrg: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/projects/:project_id' + url: '/orgs/:org/teams/:team_slug/projects/:project_id', }, removeProjectLegacy: { deprecated: @@ -15017,14 +15029,14 @@ module.exports = /******/ (() => { params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, removeRepo: { deprecated: @@ -15033,40 +15045,40 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, removeRepoInOrg: { method: 'DELETE', params: { org: { required: true, - type: 'string' + type: 'string', }, owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo' + url: '/orgs/:org/teams/:team_slug/repos/:owner/:repo', }, removeRepoLegacy: { deprecated: @@ -15075,77 +15087,77 @@ module.exports = /******/ (() => { params: { owner: { required: true, - type: 'string' + type: 'string', }, repo: { required: true, - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/repos/:owner/:repo' + url: '/teams/:team_id/repos/:owner/:repo', }, reviewProject: { deprecated: 'octokit.teams.reviewProject() has been renamed to octokit.teams.reviewProjectLegacy() (2020-01-16)', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, reviewProjectInOrg: { headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { org: { required: true, - type: 'string' + type: 'string', }, project_id: { required: true, - type: 'integer' + type: 'integer', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/projects/:project_id' + url: '/orgs/:org/teams/:team_slug/projects/:project_id', }, reviewProjectLegacy: { deprecated: 'octokit.teams.reviewProjectLegacy() is deprecated, see https://developer.github.com/v3/teams/#review-a-team-project-legacy', headers: { - accept: 'application/vnd.github.inertia-preview+json' + accept: 'application/vnd.github.inertia-preview+json', }, method: 'GET', params: { project_id: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id/projects/:project_id' + url: '/teams/:team_id/projects/:project_id', }, update: { deprecated: @@ -15153,29 +15165,29 @@ module.exports = /******/ (() => { method: 'PATCH', params: { description: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, parent_team_id: { - type: 'integer' + type: 'integer', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, privacy: { enum: ['secret', 'closed'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' + url: '/teams/:team_id', }, updateDiscussion: { deprecated: @@ -15183,21 +15195,21 @@ module.exports = /******/ (() => { method: 'PATCH', params: { body: { - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, updateDiscussionComment: { deprecated: @@ -15206,50 +15218,50 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, updateDiscussionCommentInOrg: { method: 'PATCH', params: { body: { required: true, - type: 'string' + type: 'string', }, comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, url: - '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number' + '/orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number', }, updateDiscussionCommentLegacy: { deprecated: @@ -15258,47 +15270,47 @@ module.exports = /******/ (() => { params: { body: { required: true, - type: 'string' + type: 'string', }, comment_number: { required: true, - type: 'integer' + type: 'integer', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, url: - '/teams/:team_id/discussions/:discussion_number/comments/:comment_number' + '/teams/:team_id/discussions/:discussion_number/comments/:comment_number', }, updateDiscussionInOrg: { method: 'PATCH', params: { body: { - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, org: { required: true, - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number' + url: '/orgs/:org/teams/:team_slug/discussions/:discussion_number', }, updateDiscussionLegacy: { deprecated: @@ -15306,53 +15318,53 @@ module.exports = /******/ (() => { method: 'PATCH', params: { body: { - type: 'string' + type: 'string', }, discussion_number: { required: true, - type: 'integer' + type: 'integer', }, team_id: { required: true, - type: 'integer' + type: 'integer', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/teams/:team_id/discussions/:discussion_number' + url: '/teams/:team_id/discussions/:discussion_number', }, updateInOrg: { method: 'PATCH', params: { description: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, org: { required: true, - type: 'string' + type: 'string', }, parent_team_id: { - type: 'integer' + type: 'integer', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, privacy: { enum: ['secret', 'closed'], - type: 'string' + type: 'string', }, team_slug: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/orgs/:org/teams/:team_slug' + url: '/orgs/:org/teams/:team_slug', }, updateLegacy: { deprecated: @@ -15360,30 +15372,30 @@ module.exports = /******/ (() => { method: 'PATCH', params: { description: { - type: 'string' + type: 'string', }, name: { required: true, - type: 'string' + type: 'string', }, parent_team_id: { - type: 'integer' + type: 'integer', }, permission: { enum: ['pull', 'push', 'admin'], - type: 'string' + type: 'string', }, privacy: { enum: ['secret', 'closed'], - type: 'string' + type: 'string', }, team_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/teams/:team_id' - } + url: '/teams/:team_id', + }, }, users: { addEmails: { @@ -15391,433 +15403,433 @@ module.exports = /******/ (() => { params: { emails: { required: true, - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/user/emails' + url: '/user/emails', }, block: { method: 'PUT', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/blocks/:username' + url: '/user/blocks/:username', }, checkBlocked: { method: 'GET', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/blocks/:username' + url: '/user/blocks/:username', }, checkFollowing: { method: 'GET', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/following/:username' + url: '/user/following/:username', }, checkFollowingForUser: { method: 'GET', params: { target_user: { required: true, - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/following/:target_user' + url: '/users/:username/following/:target_user', }, createGpgKey: { method: 'POST', params: { armored_public_key: { - type: 'string' - } + type: 'string', + }, }, - url: '/user/gpg_keys' + url: '/user/gpg_keys', }, createPublicKey: { method: 'POST', params: { key: { - type: 'string' + type: 'string', }, title: { - type: 'string' - } + type: 'string', + }, }, - url: '/user/keys' + url: '/user/keys', }, deleteEmails: { method: 'DELETE', params: { emails: { required: true, - type: 'string[]' - } + type: 'string[]', + }, }, - url: '/user/emails' + url: '/user/emails', }, deleteGpgKey: { method: 'DELETE', params: { gpg_key_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/gpg_keys/:gpg_key_id' + url: '/user/gpg_keys/:gpg_key_id', }, deletePublicKey: { method: 'DELETE', params: { key_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/keys/:key_id' + url: '/user/keys/:key_id', }, follow: { method: 'PUT', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/following/:username' + url: '/user/following/:username', }, getAuthenticated: { method: 'GET', params: {}, - url: '/user' + url: '/user', }, getByUsername: { method: 'GET', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username' + url: '/users/:username', }, getContextForUser: { method: 'GET', params: { subject_id: { - type: 'string' + type: 'string', }, subject_type: { enum: ['organization', 'repository', 'issue', 'pull_request'], - type: 'string' + type: 'string', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/hovercard' + url: '/users/:username/hovercard', }, getGpgKey: { method: 'GET', params: { gpg_key_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/gpg_keys/:gpg_key_id' + url: '/user/gpg_keys/:gpg_key_id', }, getPublicKey: { method: 'GET', params: { key_id: { required: true, - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/keys/:key_id' + url: '/user/keys/:key_id', }, list: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, since: { - type: 'string' - } + type: 'string', + }, }, - url: '/users' + url: '/users', }, listBlocked: { method: 'GET', params: {}, - url: '/user/blocks' + url: '/user/blocks', }, listEmails: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/emails' + url: '/user/emails', }, listFollowersForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/followers' + url: '/user/followers', }, listFollowersForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/followers' + url: '/users/:username/followers', }, listFollowingForAuthenticatedUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/following' + url: '/user/following', }, listFollowingForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/following' + url: '/users/:username/following', }, listGpgKeys: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/gpg_keys' + url: '/user/gpg_keys', }, listGpgKeysForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/gpg_keys' + url: '/users/:username/gpg_keys', }, listPublicEmails: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/public_emails' + url: '/user/public_emails', }, listPublicKeys: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' - } + type: 'integer', + }, }, - url: '/user/keys' + url: '/user/keys', }, listPublicKeysForUser: { method: 'GET', params: { page: { - type: 'integer' + type: 'integer', }, per_page: { - type: 'integer' + type: 'integer', }, username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/users/:username/keys' + url: '/users/:username/keys', }, togglePrimaryEmailVisibility: { method: 'PATCH', params: { email: { required: true, - type: 'string' + type: 'string', }, visibility: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/email/visibility' + url: '/user/email/visibility', }, unblock: { method: 'DELETE', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/blocks/:username' + url: '/user/blocks/:username', }, unfollow: { method: 'DELETE', params: { username: { required: true, - type: 'string' - } + type: 'string', + }, }, - url: '/user/following/:username' + url: '/user/following/:username', }, updateAuthenticated: { method: 'PATCH', params: { bio: { - type: 'string' + type: 'string', }, blog: { - type: 'string' + type: 'string', }, company: { - type: 'string' + type: 'string', }, email: { - type: 'string' + type: 'string', }, hireable: { - type: 'boolean' + type: 'boolean', }, location: { - type: 'string' + type: 'string', }, name: { - type: 'string' - } + type: 'string', + }, }, - url: '/user' - } - } - } + url: '/user', + }, + }, + }; - const VERSION = '2.4.0' + const VERSION = '2.4.0'; function registerEndpoints(octokit, routes) { - Object.keys(routes).forEach(namespaceName => { + Object.keys(routes).forEach((namespaceName) => { if (!octokit[namespaceName]) { - octokit[namespaceName] = {} + octokit[namespaceName] = {}; } - Object.keys(routes[namespaceName]).forEach(apiName => { - const apiOptions = routes[namespaceName][apiName] + Object.keys(routes[namespaceName]).forEach((apiName) => { + const apiOptions = routes[namespaceName][apiName]; const endpointDefaults = ['method', 'url', 'headers'].reduce( (map, key) => { if (typeof apiOptions[key] !== 'undefined') { - map[key] = apiOptions[key] + map[key] = apiOptions[key]; } - return map + return map; }, - {} - ) + {}, + ); endpointDefaults.request = { - validate: apiOptions.params - } - let request = octokit.request.defaults(endpointDefaults) // patch request & endpoint methods to support deprecated parameters. + validate: apiOptions.params, + }; + let request = octokit.request.defaults(endpointDefaults); // patch request & endpoint methods to support deprecated parameters. // Not the most elegant solution, but we don’t want to move deprecation // logic into octokit/endpoint.js as it’s out of scope const hasDeprecatedParam = Object.keys( - apiOptions.params || {} - ).find(key => apiOptions.params[key].deprecated) + apiOptions.params || {}, + ).find((key) => apiOptions.params[key].deprecated); if (hasDeprecatedParam) { - const patch = patchForDeprecation.bind(null, octokit, apiOptions) + const patch = patchForDeprecation.bind(null, octokit, apiOptions); request = patch( octokit.request.defaults(endpointDefaults), - `.${namespaceName}.${apiName}()` - ) + `.${namespaceName}.${apiName}()`, + ); request.endpoint = patch( request.endpoint, - `.${namespaceName}.${apiName}.endpoint()` - ) + `.${namespaceName}.${apiName}.endpoint()`, + ); request.endpoint.merge = patch( request.endpoint.merge, - `.${namespaceName}.${apiName}.endpoint.merge()` - ) + `.${namespaceName}.${apiName}.endpoint.merge()`, + ); } if (apiOptions.deprecated) { @@ -15825,48 +15837,48 @@ module.exports = /******/ (() => { function deprecatedEndpointMethod() { octokit.log.warn( new deprecation.Deprecation( - `[@octokit/rest] ${apiOptions.deprecated}` - ) - ) - octokit[namespaceName][apiName] = request - return request.apply(null, arguments) + `[@octokit/rest] ${apiOptions.deprecated}`, + ), + ); + octokit[namespaceName][apiName] = request; + return request.apply(null, arguments); }, - request - ) - return + request, + ); + return; } - octokit[namespaceName][apiName] = request - }) - }) + octokit[namespaceName][apiName] = request; + }); + }); } function patchForDeprecation(octokit, apiOptions, method, methodName) { - const patchedMethod = options => { - options = Object.assign({}, options) - Object.keys(options).forEach(key => { + const patchedMethod = (options) => { + options = Object.assign({}, options); + Object.keys(options).forEach((key) => { if (apiOptions.params[key] && apiOptions.params[key].deprecated) { - const aliasKey = apiOptions.params[key].alias + const aliasKey = apiOptions.params[key].alias; octokit.log.warn( new deprecation.Deprecation( - `[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead` - ) - ) + `[@octokit/rest] "${key}" parameter is deprecated for "${methodName}". Use "${aliasKey}" instead`, + ), + ); if (!(aliasKey in options)) { - options[aliasKey] = options[key] + options[aliasKey] = options[key]; } - delete options[key] + delete options[key]; } - }) - return method(options) - } + }); + return method(options); + }; - Object.keys(method).forEach(key => { - patchedMethod[key] = method[key] - }) - return patchedMethod + Object.keys(method).forEach((key) => { + patchedMethod[key] = method[key]; + }); + return patchedMethod; } /** @@ -15882,33 +15894,32 @@ module.exports = /******/ (() => { function restEndpointMethods(octokit) { // @ts-ignore - octokit.registerEndpoints = registerEndpoints.bind(null, octokit) - registerEndpoints(octokit, endpointsByScope) // Aliasing scopes for backward compatibility + octokit.registerEndpoints = registerEndpoints.bind(null, octokit); + registerEndpoints(octokit, endpointsByScope); // Aliasing scopes for backward compatibility // See https://github.com/octokit/rest.js/pull/1134 - - ;[ + [ ['gitdata', 'git'], ['authorization', 'oauthAuthorizations'], - ['pullRequests', 'pulls'] + ['pullRequests', 'pulls'], ].forEach(([deprecatedScope, scope]) => { Object.defineProperty(octokit, deprecatedScope, { get() { octokit.log.warn( // @ts-ignore new deprecation.Deprecation( - `[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead` - ) - ) // @ts-ignore + `[@octokit/plugin-rest-endpoint-methods] "octokit.${deprecatedScope}.*" methods are deprecated, use "octokit.${scope}.*" instead`, + ), + ); // @ts-ignore - return octokit[scope] - } - }) - }) - return {} + return octokit[scope]; + }, + }); + }); + return {}; } - restEndpointMethods.VERSION = VERSION + restEndpointMethods.VERSION = VERSION; - exports.restEndpointMethods = restEndpointMethods + exports.restEndpointMethods = restEndpointMethods; //# sourceMappingURL=index.js.map /***/ @@ -15917,71 +15928,71 @@ module.exports = /******/ (() => { /***/ 537: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var deprecation = __webpack_require__(8932) - var once = _interopDefault(__webpack_require__(1223)) + var deprecation = __webpack_require__(8932); + var once = _interopDefault(__webpack_require__(1223)); - const logOnce = once(deprecation => console.warn(deprecation)) + const logOnce = once((deprecation) => console.warn(deprecation)); /** * Error with extra properties to help with debugging */ class RequestError extends Error { constructor(message, statusCode, options) { - super(message) // Maintains proper stack trace (only available on V8) + super(message); // Maintains proper stack trace (only available on V8) /* istanbul ignore next */ if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } - this.name = 'HttpError' - this.status = statusCode + this.name = 'HttpError'; + this.status = statusCode; Object.defineProperty(this, 'code', { get() { logOnce( new deprecation.Deprecation( - '[@octokit/request-error] `error.code` is deprecated, use `error.status`.' - ) - ) - return statusCode - } - }) - this.headers = options.headers || {} // redact request credentials without mutating original request options + '[@octokit/request-error] `error.code` is deprecated, use `error.status`.', + ), + ); + return statusCode; + }, + }); + this.headers = options.headers || {}; // redact request credentials without mutating original request options - const requestCopy = Object.assign({}, options.request) + const requestCopy = Object.assign({}, options.request); if (options.request.headers.authorization) { requestCopy.headers = Object.assign({}, options.request.headers, { authorization: options.request.headers.authorization.replace( / .*$/, - ' [REDACTED]' - ) - }) + ' [REDACTED]', + ), + }); } requestCopy.url = requestCopy.url // client_id & client_secret can be passed as URL query parameters to increase rate limit // see https://developer.github.com/v3/#increasing-the-unauthenticated-rate-limit-for-oauth-applications .replace(/\bclient_secret=\w+/g, 'client_secret=[REDACTED]') // OAuth tokens can be passed as URL query parameters, although it is not recommended // see https://developer.github.com/v3/#oauth2-token-sent-in-a-header - .replace(/\baccess_token=\w+/g, 'access_token=[REDACTED]') - this.request = requestCopy + .replace(/\baccess_token=\w+/g, 'access_token=[REDACTED]'); + this.request = requestCopy; } } - exports.RequestError = RequestError + exports.RequestError = RequestError; //# sourceMappingURL=index.js.map /***/ @@ -15990,28 +16001,28 @@ module.exports = /******/ (() => { /***/ 6234: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var endpoint = __webpack_require__(9440) - var universalUserAgent = __webpack_require__(1441) - var isPlainObject = _interopDefault(__webpack_require__(9886)) - var nodeFetch = _interopDefault(__webpack_require__(467)) - var requestError = __webpack_require__(537) + var endpoint = __webpack_require__(9440); + var universalUserAgent = __webpack_require__(1441); + var isPlainObject = _interopDefault(__webpack_require__(9886)); + var nodeFetch = _interopDefault(__webpack_require__(467)); + var requestError = __webpack_require__(537); - const VERSION = '5.3.2' + const VERSION = '5.3.2'; function getBufferResponse(response) { - return response.arrayBuffer() + return response.arrayBuffer(); } function fetchWrapper(requestOptions) { @@ -16019,14 +16030,14 @@ module.exports = /******/ (() => { isPlainObject(requestOptions.body) || Array.isArray(requestOptions.body) ) { - requestOptions.body = JSON.stringify(requestOptions.body) + requestOptions.body = JSON.stringify(requestOptions.body); } - let headers = {} - let status - let url + let headers = {}; + let status; + let url; const fetch = - (requestOptions.request && requestOptions.request.fetch) || nodeFetch + (requestOptions.request && requestOptions.request.fetch) || nodeFetch; return fetch( requestOptions.url, Object.assign( @@ -16034,138 +16045,140 @@ module.exports = /******/ (() => { method: requestOptions.method, body: requestOptions.body, headers: requestOptions.headers, - redirect: requestOptions.redirect + redirect: requestOptions.redirect, }, - requestOptions.request - ) + requestOptions.request, + ), ) - .then(response => { - url = response.url - status = response.status + .then((response) => { + url = response.url; + status = response.status; for (const keyAndValue of response.headers) { - headers[keyAndValue[0]] = keyAndValue[1] + headers[keyAndValue[0]] = keyAndValue[1]; } if (status === 204 || status === 205) { - return + return; } // GitHub API returns 200 for HEAD requests if (requestOptions.method === 'HEAD') { if (status < 400) { - return + return; } throw new requestError.RequestError(response.statusText, status, { headers, - request: requestOptions - }) + request: requestOptions, + }); } if (status === 304) { throw new requestError.RequestError('Not modified', status, { headers, - request: requestOptions - }) + request: requestOptions, + }); } if (status >= 400) { - return response.text().then(message => { + return response.text().then((message) => { const error = new requestError.RequestError(message, status, { headers, - request: requestOptions - }) + request: requestOptions, + }); try { - let responseBody = JSON.parse(error.message) - Object.assign(error, responseBody) - let errors = responseBody.errors // Assumption `errors` would always be in Array format + let responseBody = JSON.parse(error.message); + Object.assign(error, responseBody); + let errors = responseBody.errors; // Assumption `errors` would always be in Array format error.message = - error.message + ': ' + errors.map(JSON.stringify).join(', ') + error.message + + ': ' + + errors.map(JSON.stringify).join(', '); } catch (e) { // ignore, see octokit/rest.js#684 } - throw error - }) + throw error; + }); } - const contentType = response.headers.get('content-type') + const contentType = response.headers.get('content-type'); if (/application\/json/.test(contentType)) { - return response.json() + return response.json(); } if (!contentType || /^text\/|charset=utf-8$/.test(contentType)) { - return response.text() + return response.text(); } - return getBufferResponse(response) + return getBufferResponse(response); }) - .then(data => { + .then((data) => { return { status, url, headers, - data - } + data, + }; }) - .catch(error => { + .catch((error) => { if (error instanceof requestError.RequestError) { - throw error + throw error; } throw new requestError.RequestError(error.message, 500, { headers, - request: requestOptions - }) - }) + request: requestOptions, + }); + }); } function withDefaults(oldEndpoint, newDefaults) { - const endpoint = oldEndpoint.defaults(newDefaults) + const endpoint = oldEndpoint.defaults(newDefaults); const newApi = function (route, parameters) { - const endpointOptions = endpoint.merge(route, parameters) + const endpointOptions = endpoint.merge(route, parameters); if (!endpointOptions.request || !endpointOptions.request.hook) { - return fetchWrapper(endpoint.parse(endpointOptions)) + return fetchWrapper(endpoint.parse(endpointOptions)); } const request = (route, parameters) => { return fetchWrapper( - endpoint.parse(endpoint.merge(route, parameters)) - ) - } + endpoint.parse(endpoint.merge(route, parameters)), + ); + }; Object.assign(request, { endpoint, - defaults: withDefaults.bind(null, endpoint) - }) - return endpointOptions.request.hook(request, endpointOptions) - } + defaults: withDefaults.bind(null, endpoint), + }); + return endpointOptions.request.hook(request, endpointOptions); + }; return Object.assign(newApi, { endpoint, - defaults: withDefaults.bind(null, endpoint) - }) + defaults: withDefaults.bind(null, endpoint), + }); } const request = withDefaults(endpoint.endpoint, { headers: { - 'user-agent': `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}` - } - }) + 'user-agent': `octokit-request.js/${VERSION} ${universalUserAgent.getUserAgent()}`, + }, + }); - exports.request = request + exports.request = request; //# sourceMappingURL=index.js.map /***/ }, - /***/ 9886: /***/ module => { - 'use strict' + /***/ 9886: /***/ (module) => { + 'use strict'; /*! * isobject @@ -16177,7 +16190,7 @@ module.exports = /******/ (() => { function isObject(val) { return ( val != null && typeof val === 'object' && Array.isArray(val) === false - ) + ); } /*! @@ -16191,32 +16204,32 @@ module.exports = /******/ (() => { return ( isObject(o) === true && Object.prototype.toString.call(o) === '[object Object]' - ) + ); } function isPlainObject(o) { - var ctor, prot + var ctor, prot; - if (isObjectObject(o) === false) return false + if (isObjectObject(o) === false) return false; // If has modified constructor - ctor = o.constructor - if (typeof ctor !== 'function') return false + ctor = o.constructor; + if (typeof ctor !== 'function') return false; // If has modified prototype - prot = ctor.prototype - if (isObjectObject(prot) === false) return false + prot = ctor.prototype; + if (isObjectObject(prot) === false) return false; // If constructor does not have an Object-specific method if (prot.hasOwnProperty('isPrototypeOf') === false) { - return false + return false; } // Most likely a plain Object - return true + return true; } - module.exports = isPlainObject + module.exports = isPlainObject; /***/ }, @@ -16224,35 +16237,35 @@ module.exports = /******/ (() => { /***/ 1441: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var osName = _interopDefault(__webpack_require__(4824)) + var osName = _interopDefault(__webpack_require__(4824)); function getUserAgent() { try { return `Node.js/${process.version.substr(1)} (${osName()}; ${ process.arch - })` + })`; } catch (error) { if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' + return 'Windows '; } - return '' + return ''; } } - exports.getUserAgent = getUserAgent + exports.getUserAgent = getUserAgent; //# sourceMappingURL=index.js.map /***/ @@ -16261,12 +16274,12 @@ module.exports = /******/ (() => { /***/ 9351: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - const { requestLog } = __webpack_require__(8883) - const { restEndpointMethods } = __webpack_require__(3044) + const { requestLog } = __webpack_require__(8883); + const { restEndpointMethods } = __webpack_require__(3044); - const Core = __webpack_require__(9833) + const Core = __webpack_require__(9833); const CORE_PLUGINS = [ __webpack_require__(4555), @@ -16276,34 +16289,34 @@ module.exports = /******/ (() => { restEndpointMethods, __webpack_require__(2657), - __webpack_require__(2072) // deprecated: remove in v17 - ] + __webpack_require__(2072), // deprecated: remove in v17 + ]; - const OctokitRest = Core.plugin(CORE_PLUGINS) + const OctokitRest = Core.plugin(CORE_PLUGINS); function DeprecatedOctokit(options) { const warn = options && options.log && options.log.warn ? options.log.warn - : console.warn + : console.warn; warn( - '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead' - ) - return new OctokitRest(options) + '[@octokit/rest] `const Octokit = require("@octokit/rest")` is deprecated. Use `const { Octokit } = require("@octokit/rest")` instead', + ); + return new OctokitRest(options); } const Octokit = Object.assign(DeprecatedOctokit, { - Octokit: OctokitRest - }) + Octokit: OctokitRest, + }); - Object.keys(OctokitRest).forEach(key => { + Object.keys(OctokitRest).forEach((key) => { /* istanbul ignore else */ if (OctokitRest.hasOwnProperty(key)) { - Octokit[key] = OctokitRest[key] + Octokit[key] = OctokitRest[key]; } - }) + }); - module.exports = Octokit + module.exports = Octokit; /***/ }, @@ -16311,36 +16324,36 @@ module.exports = /******/ (() => { /***/ 823: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = Octokit + module.exports = Octokit; - const { request } = __webpack_require__(6234) - const Hook = __webpack_require__(3682) + const { request } = __webpack_require__(6234); + const Hook = __webpack_require__(3682); - const parseClientOptions = __webpack_require__(4613) + const parseClientOptions = __webpack_require__(4613); function Octokit(plugins, options) { - options = options || {} - const hook = new Hook.Collection() + options = options || {}; + const hook = new Hook.Collection(); const log = Object.assign( { debug: () => {}, info: () => {}, warn: console.warn, - error: console.error + error: console.error, }, - options && options.log - ) + options && options.log, + ); const api = { hook, log, - request: request.defaults(parseClientOptions(options, log, hook)) - } + request: request.defaults(parseClientOptions(options, log, hook)), + }; - plugins.forEach(pluginFunction => pluginFunction(api, options)) + plugins.forEach((pluginFunction) => pluginFunction(api, options)); - return api + return api; } /***/ @@ -16349,11 +16362,11 @@ module.exports = /******/ (() => { /***/ 9833: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - const factory = __webpack_require__(5320) + const factory = __webpack_require__(5320); - module.exports = factory() + module.exports = factory(); /***/ }, @@ -16361,17 +16374,17 @@ module.exports = /******/ (() => { /***/ 5320: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = factory + module.exports = factory; - const Octokit = __webpack_require__(823) - const registerPlugin = __webpack_require__(7826) + const Octokit = __webpack_require__(823); + const registerPlugin = __webpack_require__(7826); function factory(plugins) { - const Api = Octokit.bind(null, plugins || []) - Api.plugin = registerPlugin.bind(null, plugins || []) - return Api + const Api = Octokit.bind(null, plugins || []); + Api.plugin = registerPlugin.bind(null, plugins || []); + return Api; } /***/ @@ -16380,35 +16393,35 @@ module.exports = /******/ (() => { /***/ 4613: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = parseOptions + module.exports = parseOptions; - const { Deprecation } = __webpack_require__(8932) - const { getUserAgent } = __webpack_require__(5030) - const once = __webpack_require__(1223) + const { Deprecation } = __webpack_require__(8932); + const { getUserAgent } = __webpack_require__(5030); + const once = __webpack_require__(1223); - const pkg = __webpack_require__(9674) + const pkg = __webpack_require__(9674); const deprecateOptionsTimeout = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); const deprecateOptionsAgent = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); const deprecateOptionsHeaders = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); function parseOptions(options, log, hook) { if (options.headers) { options.headers = Object.keys(options.headers).reduce( (newObj, key) => { - newObj[key.toLowerCase()] = options.headers[key] - return newObj + newObj[key.toLowerCase()] = options.headers[key]; + return newObj; }, - {} - ) + {}, + ); } const clientDefaults = { @@ -16416,68 +16429,68 @@ module.exports = /******/ (() => { request: options.request || {}, mediaType: { previews: [], - format: '' - } - } + format: '', + }, + }; if (options.baseUrl) { - clientDefaults.baseUrl = options.baseUrl + clientDefaults.baseUrl = options.baseUrl; } if (options.userAgent) { - clientDefaults.headers['user-agent'] = options.userAgent + clientDefaults.headers['user-agent'] = options.userAgent; } if (options.previews) { - clientDefaults.mediaType.previews = options.previews + clientDefaults.mediaType.previews = options.previews; } if (options.timeZone) { - clientDefaults.headers['time-zone'] = options.timeZone + clientDefaults.headers['time-zone'] = options.timeZone; } if (options.timeout) { deprecateOptionsTimeout( log, new Deprecation( - '[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request' - ) - ) - clientDefaults.request.timeout = options.timeout + '[@octokit/rest] new Octokit({timeout}) is deprecated. Use {request: {timeout}} instead. See https://github.com/octokit/request.js#request', + ), + ); + clientDefaults.request.timeout = options.timeout; } if (options.agent) { deprecateOptionsAgent( log, new Deprecation( - '[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request' - ) - ) - clientDefaults.request.agent = options.agent + '[@octokit/rest] new Octokit({agent}) is deprecated. Use {request: {agent}} instead. See https://github.com/octokit/request.js#request', + ), + ); + clientDefaults.request.agent = options.agent; } if (options.headers) { deprecateOptionsHeaders( log, new Deprecation( - '[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request' - ) - ) + '[@octokit/rest] new Octokit({headers}) is deprecated. Use {userAgent, previews} instead. See https://github.com/octokit/request.js#request', + ), + ); } - const userAgentOption = clientDefaults.headers['user-agent'] - const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}` + const userAgentOption = clientDefaults.headers['user-agent']; + const defaultUserAgent = `octokit.js/${pkg.version} ${getUserAgent()}`; clientDefaults.headers['user-agent'] = [ userAgentOption, - defaultUserAgent + defaultUserAgent, ] .filter(Boolean) - .join(' ') + .join(' '); - clientDefaults.request.hook = hook.bind(null, 'request') + clientDefaults.request.hook = hook.bind(null, 'request'); - return clientDefaults + return clientDefaults; } /***/ @@ -16486,18 +16499,18 @@ module.exports = /******/ (() => { /***/ 7826: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = registerPlugin + module.exports = registerPlugin; - const factory = __webpack_require__(5320) + const factory = __webpack_require__(5320); function registerPlugin(plugins, pluginFunction) { return factory( plugins.includes(pluginFunction) ? plugins - : plugins.concat(pluginFunction) - ) + : plugins.concat(pluginFunction), + ); } /***/ @@ -16506,61 +16519,63 @@ module.exports = /******/ (() => { /***/ 795: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticate + module.exports = authenticate; - const { Deprecation } = __webpack_require__(8932) - const once = __webpack_require__(1223) + const { Deprecation } = __webpack_require__(8932); + const once = __webpack_require__(1223); const deprecateAuthenticate = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); function authenticate(state, options) { deprecateAuthenticate( state.octokit.log, new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.' - ) - ) + '[@octokit/rest] octokit.authenticate() is deprecated. Use "auth" constructor option instead.', + ), + ); if (!options) { - state.auth = false - return + state.auth = false; + return; } switch (options.type) { case 'basic': if (!options.username || !options.password) { throw new Error( - 'Basic authentication requires both a username and password to be set' - ) + 'Basic authentication requires both a username and password to be set', + ); } - break + break; case 'oauth': if (!options.token && !(options.key && options.secret)) { throw new Error( - 'OAuth2 authentication requires a token or key & secret to be set' - ) + 'OAuth2 authentication requires a token or key & secret to be set', + ); } - break + break; case 'token': case 'app': if (!options.token) { - throw new Error('Token authentication requires a token to be set') + throw new Error( + 'Token authentication requires a token to be set', + ); } - break + break; default: throw new Error( - "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'" - ) + "Invalid authentication type, must be 'basic', 'oauth', 'token' or 'app'", + ); } - state.auth = options + state.auth = options; } /***/ @@ -16569,48 +16584,50 @@ module.exports = /******/ (() => { /***/ 7578: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationBeforeRequest + module.exports = authenticationBeforeRequest; - const btoa = __webpack_require__(2358) - const uniq = __webpack_require__(8216) + const btoa = __webpack_require__(2358); + const uniq = __webpack_require__(8216); function authenticationBeforeRequest(state, options) { if (!state.auth.type) { - return + return; } if (state.auth.type === 'basic') { - const hash = btoa(`${state.auth.username}:${state.auth.password}`) - options.headers.authorization = `Basic ${hash}` - return + const hash = btoa(`${state.auth.username}:${state.auth.password}`); + options.headers.authorization = `Basic ${hash}`; + return; } if (state.auth.type === 'token') { - options.headers.authorization = `token ${state.auth.token}` - return + options.headers.authorization = `token ${state.auth.token}`; + return; } if (state.auth.type === 'app') { - options.headers.authorization = `Bearer ${state.auth.token}` + options.headers.authorization = `Bearer ${state.auth.token}`; const acceptHeaders = options.headers.accept .split(',') - .concat('application/vnd.github.machine-man-preview+json') - options.headers.accept = uniq(acceptHeaders).filter(Boolean).join(',') - return + .concat('application/vnd.github.machine-man-preview+json'); + options.headers.accept = uniq(acceptHeaders) + .filter(Boolean) + .join(','); + return; } - options.url += options.url.indexOf('?') === -1 ? '?' : '&' + options.url += options.url.indexOf('?') === -1 ? '?' : '&'; if (state.auth.token) { - options.url += `access_token=${encodeURIComponent(state.auth.token)}` - return + options.url += `access_token=${encodeURIComponent(state.auth.token)}`; + return; } - const key = encodeURIComponent(state.auth.key) - const secret = encodeURIComponent(state.auth.secret) - options.url += `client_id=${key}&client_secret=${secret}` + const key = encodeURIComponent(state.auth.key); + const secret = encodeURIComponent(state.auth.secret); + options.url += `client_id=${key}&client_secret=${secret}`; } /***/ @@ -16619,20 +16636,20 @@ module.exports = /******/ (() => { /***/ 3691: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationPlugin + module.exports = authenticationPlugin; - const { Deprecation } = __webpack_require__(8932) - const once = __webpack_require__(1223) + const { Deprecation } = __webpack_require__(8932); + const once = __webpack_require__(1223); const deprecateAuthenticate = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); - const authenticate = __webpack_require__(795) - const beforeRequest = __webpack_require__(7578) - const requestError = __webpack_require__(4275) + const authenticate = __webpack_require__(795); + const beforeRequest = __webpack_require__(7578); + const requestError = __webpack_require__(4275); function authenticationPlugin(octokit, options) { if (options.auth) { @@ -16640,19 +16657,19 @@ module.exports = /******/ (() => { deprecateAuthenticate( octokit.log, new Deprecation( - '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor' - ) - ) - } - return + '[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor', + ), + ); + }; + return; } const state = { octokit, - auth: false - } - octokit.authenticate = authenticate.bind(null, state) - octokit.hook.before('request', beforeRequest.bind(null, state)) - octokit.hook.error('request', requestError.bind(null, state)) + auth: false, + }; + octokit.authenticate = authenticate.bind(null, state); + octokit.hook.before('request', beforeRequest.bind(null, state)); + octokit.hook.error('request', requestError.bind(null, state)); } /***/ @@ -16661,20 +16678,22 @@ module.exports = /******/ (() => { /***/ 4275: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationRequestError + module.exports = authenticationRequestError; - const { RequestError } = __webpack_require__(537) + const { RequestError } = __webpack_require__(537); function authenticationRequestError(state, error, options) { /* istanbul ignore next */ - if (!error.headers) throw error + if (!error.headers) throw error; - const otpRequired = /required/.test(error.headers['x-github-otp'] || '') + const otpRequired = /required/.test( + error.headers['x-github-otp'] || '', + ); // handle "2FA required" error only if (error.status !== 401 || !otpRequired) { - throw error + throw error; } if ( @@ -16688,9 +16707,9 @@ module.exports = /******/ (() => { 401, { headers: error.headers, - request: options - } - ) + request: options, + }, + ); } if (typeof state.auth.on2fa !== 'function') { @@ -16699,24 +16718,24 @@ module.exports = /******/ (() => { 401, { headers: error.headers, - request: options - } - ) + request: options, + }, + ); } return Promise.resolve() .then(() => { - return state.auth.on2fa() + return state.auth.on2fa(); }) - .then(oneTimePassword => { + .then((oneTimePassword) => { const newOptions = Object.assign(options, { headers: Object.assign( { 'x-github-otp': oneTimePassword }, - options.headers - ) - }) - return state.octokit.request(newOptions) - }) + options.headers, + ), + }); + return state.octokit.request(newOptions); + }); } /***/ @@ -16725,27 +16744,27 @@ module.exports = /******/ (() => { /***/ 9733: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationBeforeRequest + module.exports = authenticationBeforeRequest; - const btoa = __webpack_require__(2358) + const btoa = __webpack_require__(2358); - const withAuthorizationPrefix = __webpack_require__(9603) + const withAuthorizationPrefix = __webpack_require__(9603); function authenticationBeforeRequest(state, options) { if (typeof state.auth === 'string') { - options.headers.authorization = withAuthorizationPrefix(state.auth) - return + options.headers.authorization = withAuthorizationPrefix(state.auth); + return; } if (state.auth.username) { - const hash = btoa(`${state.auth.username}:${state.auth.password}`) - options.headers.authorization = `Basic ${hash}` + const hash = btoa(`${state.auth.username}:${state.auth.password}`); + options.headers.authorization = `Basic ${hash}`; if (state.otp) { - options.headers['x-github-otp'] = state.otp + options.headers['x-github-otp'] = state.otp; } - return + return; } if (state.auth.clientId) { @@ -16763,28 +16782,28 @@ module.exports = /******/ (() => { /\/applications\/:?[\w_]+\/tokens\/:?[\w_]+($|\?)/.test(options.url) ) { const hash = btoa( - `${state.auth.clientId}:${state.auth.clientSecret}` - ) - options.headers.authorization = `Basic ${hash}` - return + `${state.auth.clientId}:${state.auth.clientSecret}`, + ); + options.headers.authorization = `Basic ${hash}`; + return; } - options.url += options.url.indexOf('?') === -1 ? '?' : '&' - options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}` - return + options.url += options.url.indexOf('?') === -1 ? '?' : '&'; + options.url += `client_id=${state.auth.clientId}&client_secret=${state.auth.clientSecret}`; + return; } return Promise.resolve() .then(() => { - return state.auth() + return state.auth(); }) - .then(authorization => { + .then((authorization) => { options.headers.authorization = withAuthorizationPrefix( - authorization - ) - }) + authorization, + ); + }); } /***/ @@ -16793,33 +16812,33 @@ module.exports = /******/ (() => { /***/ 4555: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationPlugin + module.exports = authenticationPlugin; - const { createTokenAuth } = __webpack_require__(334) - const { Deprecation } = __webpack_require__(8932) - const once = __webpack_require__(1223) + const { createTokenAuth } = __webpack_require__(334); + const { Deprecation } = __webpack_require__(8932); + const once = __webpack_require__(1223); - const beforeRequest = __webpack_require__(9733) - const requestError = __webpack_require__(3217) - const validate = __webpack_require__(8997) - const withAuthorizationPrefix = __webpack_require__(9603) + const beforeRequest = __webpack_require__(9733); + const requestError = __webpack_require__(3217); + const validate = __webpack_require__(8997); + const withAuthorizationPrefix = __webpack_require__(9603); const deprecateAuthBasic = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); const deprecateAuthObject = once((log, deprecation) => - log.warn(deprecation) - ) + log.warn(deprecation), + ); function authenticationPlugin(octokit, options) { // If `options.authStrategy` is set then use it and pass in `options.auth` if (options.authStrategy) { - const auth = options.authStrategy(options.auth) - octokit.hook.wrap('request', auth.hook) - octokit.auth = auth - return + const auth = options.authStrategy(options.auth); + octokit.hook.wrap('request', auth.hook); + octokit.auth = auth; + return; } // If neither `options.authStrategy` nor `options.auth` are set, the `octokit` instance @@ -16827,53 +16846,53 @@ module.exports = /******/ (() => { if (!options.auth) { octokit.auth = () => Promise.resolve({ - type: 'unauthenticated' - }) - return + type: 'unauthenticated', + }); + return; } const isBasicAuthString = typeof options.auth === 'string' && - /^basic/.test(withAuthorizationPrefix(options.auth)) + /^basic/.test(withAuthorizationPrefix(options.auth)); // If only `options.auth` is set to a string, use the default token authentication strategy. if (typeof options.auth === 'string' && !isBasicAuthString) { - const auth = createTokenAuth(options.auth) - octokit.hook.wrap('request', auth.hook) - octokit.auth = auth - return + const auth = createTokenAuth(options.auth); + octokit.hook.wrap('request', auth.hook); + octokit.auth = auth; + return; } // Otherwise log a deprecation message const [deprecationMethod, deprecationMessapge] = isBasicAuthString ? [ deprecateAuthBasic, - 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)' + 'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)', ] : [ deprecateAuthObject, - 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)' - ] + 'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)', + ]; deprecationMethod( octokit.log, - new Deprecation('[@octokit/rest] ' + deprecationMessapge) - ) + new Deprecation('[@octokit/rest] ' + deprecationMessapge), + ); octokit.auth = () => Promise.resolve({ type: 'deprecated', - message: deprecationMessapge - }) + message: deprecationMessapge, + }); - validate(options.auth) + validate(options.auth); const state = { octokit, - auth: options.auth - } + auth: options.auth, + }; - octokit.hook.before('request', beforeRequest.bind(null, state)) - octokit.hook.error('request', requestError.bind(null, state)) + octokit.hook.before('request', beforeRequest.bind(null, state)); + octokit.hook.error('request', requestError.bind(null, state)); } /***/ @@ -16882,19 +16901,21 @@ module.exports = /******/ (() => { /***/ 3217: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = authenticationRequestError + module.exports = authenticationRequestError; - const { RequestError } = __webpack_require__(537) + const { RequestError } = __webpack_require__(537); function authenticationRequestError(state, error, options) { - if (!error.headers) throw error + if (!error.headers) throw error; - const otpRequired = /required/.test(error.headers['x-github-otp'] || '') + const otpRequired = /required/.test( + error.headers['x-github-otp'] || '', + ); // handle "2FA required" error only if (error.status !== 401 || !otpRequired) { - throw error + throw error; } if ( @@ -16904,16 +16925,16 @@ module.exports = /******/ (() => { error.request.headers['x-github-otp'] ) { if (state.otp) { - delete state.otp // no longer valid, request again + delete state.otp; // no longer valid, request again } else { throw new RequestError( 'Invalid one-time password for two-factor authentication', 401, { headers: error.headers, - request: options - } - ) + request: options, + }, + ); } } @@ -16923,53 +16944,53 @@ module.exports = /******/ (() => { 401, { headers: error.headers, - request: options - } - ) + request: options, + }, + ); } return Promise.resolve() .then(() => { - return state.auth.on2fa() + return state.auth.on2fa(); }) - .then(oneTimePassword => { + .then((oneTimePassword) => { const newOptions = Object.assign(options, { headers: Object.assign(options.headers, { - 'x-github-otp': oneTimePassword - }) - }) - return state.octokit.request(newOptions).then(response => { + 'x-github-otp': oneTimePassword, + }), + }); + return state.octokit.request(newOptions).then((response) => { // If OTP still valid, then persist it for following requests - state.otp = oneTimePassword - return response - }) - }) + state.otp = oneTimePassword; + return response; + }); + }); } /***/ }, - /***/ 8997: /***/ module => { - module.exports = validateAuth + /***/ 8997: /***/ (module) => { + module.exports = validateAuth; function validateAuth(auth) { if (typeof auth === 'string') { - return + return; } if (typeof auth === 'function') { - return + return; } if (auth.username && auth.password) { - return + return; } if (auth.clientId && auth.clientSecret) { - return + return; } - throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`) + throw new Error(`Invalid "auth" option: ${JSON.stringify(auth)}`); } /***/ @@ -16978,30 +16999,30 @@ module.exports = /******/ (() => { /***/ 9603: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = withAuthorizationPrefix + module.exports = withAuthorizationPrefix; - const atob = __webpack_require__(5224) + const atob = __webpack_require__(5224); - const REGEX_IS_BASIC_AUTH = /^[\w-]+:/ + const REGEX_IS_BASIC_AUTH = /^[\w-]+:/; function withAuthorizationPrefix(authorization) { if (/^(basic|bearer|token) /i.test(authorization)) { - return authorization + return authorization; } try { if (REGEX_IS_BASIC_AUTH.test(atob(authorization))) { - return `basic ${authorization}` + return `basic ${authorization}`; } } catch (error) {} if (authorization.split(/\./).length === 3) { - return `bearer ${authorization}` + return `bearer ${authorization}`; } - return `token ${authorization}` + return `token ${authorization}`; } /***/ @@ -17010,14 +17031,14 @@ module.exports = /******/ (() => { /***/ 8579: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = paginatePlugin + module.exports = paginatePlugin; - const { paginateRest } = __webpack_require__(4193) + const { paginateRest } = __webpack_require__(4193); function paginatePlugin(octokit) { - Object.assign(octokit, paginateRest(octokit)) + Object.assign(octokit, paginateRest(octokit)); } /***/ @@ -17026,14 +17047,14 @@ module.exports = /******/ (() => { /***/ 2657: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = octokitValidate + module.exports = octokitValidate; - const validate = __webpack_require__(6132) + const validate = __webpack_require__(6132); function octokitValidate(octokit) { - octokit.hook.before('request', validate.bind(null, octokit)) + octokit.hook.before('request', validate.bind(null, octokit)); } /***/ @@ -17042,68 +17063,68 @@ module.exports = /******/ (() => { /***/ 6132: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - module.exports = validate + module.exports = validate; - const { RequestError } = __webpack_require__(537) - const get = __webpack_require__(9197) - const set = __webpack_require__(1552) + const { RequestError } = __webpack_require__(537); + const get = __webpack_require__(9197); + const set = __webpack_require__(1552); function validate(octokit, options) { if (!options.request.validate) { - return + return; } - const { validate: params } = options.request + const { validate: params } = options.request; - Object.keys(params).forEach(parameterName => { - const parameter = get(params, parameterName) + Object.keys(params).forEach((parameterName) => { + const parameter = get(params, parameterName); - const expectedType = parameter.type - let parentParameterName - let parentValue - let parentParamIsPresent = true - let parentParameterIsArray = false + const expectedType = parameter.type; + let parentParameterName; + let parentValue; + let parentParamIsPresent = true; + let parentParameterIsArray = false; if (/\./.test(parameterName)) { - parentParameterName = parameterName.replace(/\.[^.]+$/, '') - parentParameterIsArray = parentParameterName.slice(-2) === '[]' + parentParameterName = parameterName.replace(/\.[^.]+$/, ''); + parentParameterIsArray = parentParameterName.slice(-2) === '[]'; if (parentParameterIsArray) { - parentParameterName = parentParameterName.slice(0, -2) + parentParameterName = parentParameterName.slice(0, -2); } - parentValue = get(options, parentParameterName) + parentValue = get(options, parentParameterName); parentParamIsPresent = parentParameterName === 'headers' || - (typeof parentValue === 'object' && parentValue !== null) + (typeof parentValue === 'object' && parentValue !== null); } const values = parentParameterIsArray ? (get(options, parentParameterName) || []).map( - value => value[parameterName.split(/\./).pop()] + (value) => value[parameterName.split(/\./).pop()], ) - : [get(options, parameterName)] + : [get(options, parameterName)]; values.forEach((value, i) => { - const valueIsPresent = typeof value !== 'undefined' - const valueIsNull = value === null + const valueIsPresent = typeof value !== 'undefined'; + const valueIsNull = value === null; const currentParameterName = parentParameterIsArray ? parameterName.replace(/\[\]/, `[${i}]`) - : parameterName + : parameterName; if (!parameter.required && !valueIsPresent) { - return + return; } // if the parent parameter is of type object but allows null // then the child parameters can be ignored if (!parentParamIsPresent) { - return + return; } if (parameter.allowNull && valueIsNull) { - return + return; } if (!parameter.allowNull && valueIsNull) { @@ -17111,38 +17132,38 @@ module.exports = /******/ (() => { `'${currentParameterName}' cannot be null`, 400, { - request: options - } - ) + request: options, + }, + ); } if (parameter.required && !valueIsPresent) { throw new RequestError( `Empty value for parameter '${currentParameterName}': ${JSON.stringify( - value + value, )}`, 400, { - request: options - } - ) + request: options, + }, + ); } // parse to integer before checking for enum // so that string "1" will match enum with number 1 if (expectedType === 'integer') { - const unparsedValue = value - value = parseInt(value, 10) + const unparsedValue = value; + value = parseInt(value, 10); if (isNaN(value)) { throw new RequestError( `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - unparsedValue + unparsedValue, )} is NaN`, 400, { - request: options - } - ) + request: options, + }, + ); } } @@ -17152,73 +17173,73 @@ module.exports = /******/ (() => { ) { throw new RequestError( `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value + value, )}`, 400, { - request: options - } - ) + request: options, + }, + ); } if (parameter.validation) { - const regex = new RegExp(parameter.validation) + const regex = new RegExp(parameter.validation); if (!regex.test(value)) { throw new RequestError( `Invalid value for parameter '${currentParameterName}': ${JSON.stringify( - value + value, )}`, 400, { - request: options - } - ) + request: options, + }, + ); } } if (expectedType === 'object' && typeof value === 'string') { try { - value = JSON.parse(value) + value = JSON.parse(value); } catch (exception) { throw new RequestError( `JSON parse error of value for parameter '${currentParameterName}': ${JSON.stringify( - value + value, )}`, 400, { - request: options - } - ) + request: options, + }, + ); } } - set(options, parameter.mapTo || currentParameterName, value) - }) - }) + set(options, parameter.mapTo || currentParameterName, value); + }); + }); - return options + return options; } /***/ }, - /***/ 5224: /***/ module => { + /***/ 5224: /***/ (module) => { module.exports = function atob(str) { - return Buffer.from(str, 'base64').toString('binary') - } + return Buffer.from(str, 'base64').toString('binary'); + }; /***/ }, - /***/ 9417: /***/ module => { - 'use strict' + /***/ 9417: /***/ (module) => { + 'use strict'; - module.exports = balanced + module.exports = balanced; function balanced(a, b, str) { - if (a instanceof RegExp) a = maybeMatch(a, str) - if (b instanceof RegExp) b = maybeMatch(b, str) + if (a instanceof RegExp) a = maybeMatch(a, str); + if (b instanceof RegExp) b = maybeMatch(b, str); - var r = range(a, b, str) + var r = range(a, b, str); return ( r && { @@ -17226,52 +17247,52 @@ module.exports = /******/ (() => { end: r[1], pre: str.slice(0, r[0]), body: str.slice(r[0] + a.length, r[1]), - post: str.slice(r[1] + b.length) + post: str.slice(r[1] + b.length), } - ) + ); } function maybeMatch(reg, str) { - var m = str.match(reg) - return m ? m[0] : null + var m = str.match(reg); + return m ? m[0] : null; } - balanced.range = range + balanced.range = range; function range(a, b, str) { - var begs, beg, left, right, result - var ai = str.indexOf(a) - var bi = str.indexOf(b, ai + 1) - var i = ai + var begs, beg, left, right, result; + var ai = str.indexOf(a); + var bi = str.indexOf(b, ai + 1); + var i = ai; if (ai >= 0 && bi > 0) { - begs = [] - left = str.length + begs = []; + left = str.length; while (i >= 0 && !result) { if (i == ai) { - begs.push(i) - ai = str.indexOf(a, i + 1) + begs.push(i); + ai = str.indexOf(a, i + 1); } else if (begs.length == 1) { - result = [begs.pop(), bi] + result = [begs.pop(), bi]; } else { - beg = begs.pop() + beg = begs.pop(); if (beg < left) { - left = beg - right = bi + left = beg; + right = bi; } - bi = str.indexOf(b, i + 1) + bi = str.indexOf(b, i + 1); } - i = ai < bi && ai >= 0 ? ai : bi + i = ai < bi && ai >= 0 ? ai : bi; } if (begs.length) { - result = [left, right] + result = [left, right]; } } - return result + return result; } /***/ @@ -17280,110 +17301,110 @@ module.exports = /******/ (() => { /***/ 3682: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var register = __webpack_require__(4670) - var addHook = __webpack_require__(5549) - var removeHook = __webpack_require__(6819) + var register = __webpack_require__(4670); + var addHook = __webpack_require__(5549); + var removeHook = __webpack_require__(6819); // bind with array of arguments: https://stackoverflow.com/a/21792913 - var bind = Function.bind - var bindable = bind.bind(bind) + 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] + 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 - ) - }) + args, + ); + }); } function HookSingular() { - var singularHookName = 'h' + var singularHookName = 'h'; var singularHookState = { - registry: {} - } + registry: {}, + }; var singularHook = register.bind( null, singularHookState, - singularHookName - ) - bindApi(singularHook, singularHookState, singularHookName) - return singularHook + singularHookName, + ); + bindApi(singularHook, singularHookState, singularHookName); + return singularHook; } 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 + 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 + '[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; /***/ }, - /***/ 5549: /***/ module => { - module.exports = addHook + /***/ 5549: /***/ (module) => { + module.exports = addHook; function addHook(state, kind, name, hook) { - var orig = hook + var orig = hook; if (!state.registry[name]) { - state.registry[name] = [] + state.registry[name] = []; } if (kind === 'before') { hook = function (method, options) { return Promise.resolve() .then(orig.bind(null, options)) - .then(method.bind(null, options)) - } + .then(method.bind(null, options)); + }; } if (kind === 'after') { hook = function (method, options) { - var result + var result; return Promise.resolve() .then(method.bind(null, options)) .then(function (result_) { - result = result_ - return orig(result, options) + result = result_; + return orig(result, options); }) .then(function () { - return result - }) - } + return result; + }); + }; } if (kind === 'error') { @@ -17391,71 +17412,71 @@ module.exports = /******/ (() => { return Promise.resolve() .then(method.bind(null, options)) .catch(function (error) { - return orig(error, options) - }) - } + return orig(error, options); + }); + }; } state.registry[name].push({ hook: hook, - orig: orig - }) + orig: orig, + }); } /***/ }, - /***/ 4670: /***/ module => { - module.exports = register + /***/ 4670: /***/ (module) => { + module.exports = register; function register(state, name, method, options) { if (typeof method !== 'function') { - throw new Error('method for before hook must be a function') + throw new Error('method for before hook must be a function'); } if (!options) { - options = {} + options = {}; } if (Array.isArray(name)) { return name.reverse().reduce(function (callback, name) { - return register.bind(null, state, name, callback, options) - }, method)() + return register.bind(null, state, name, callback, options); + }, method)(); } return Promise.resolve().then(function () { if (!state.registry[name]) { - return method(options) + return method(options); } return state.registry[name].reduce(function (method, registered) { - return registered.hook.bind(null, method, options) - }, method)() - }) + return registered.hook.bind(null, method, options); + }, method)(); + }); } /***/ }, - /***/ 6819: /***/ module => { - module.exports = removeHook + /***/ 6819: /***/ (module) => { + module.exports = removeHook; function removeHook(state, name, method) { if (!state.registry[name]) { - return + return; } var index = state.registry[name] .map(function (registered) { - return registered.orig + return registered.orig; }) - .indexOf(method) + .indexOf(method); if (index === -1) { - return + return; } - state.registry[name].splice(index, 1) + state.registry[name].splice(index, 1); } /***/ @@ -17464,21 +17485,21 @@ module.exports = /******/ (() => { /***/ 3717: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var concatMap = __webpack_require__(6891) - var balanced = __webpack_require__(9417) + var concatMap = __webpack_require__(6891); + var balanced = __webpack_require__(9417); - module.exports = expandTop + module.exports = expandTop; - var escSlash = '\0SLASH' + Math.random() + '\0' - var escOpen = '\0OPEN' + Math.random() + '\0' - var escClose = '\0CLOSE' + Math.random() + '\0' - var escComma = '\0COMMA' + Math.random() + '\0' - var escPeriod = '\0PERIOD' + Math.random() + '\0' + var escSlash = '\0SLASH' + Math.random() + '\0'; + var escOpen = '\0OPEN' + Math.random() + '\0'; + var escClose = '\0CLOSE' + Math.random() + '\0'; + var escComma = '\0COMMA' + Math.random() + '\0'; + var escPeriod = '\0PERIOD' + Math.random() + '\0'; function numeric(str) { - return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0) + return parseInt(str, 10) == str ? parseInt(str, 10) : str.charCodeAt(0); } function escapeBraces(str) { @@ -17492,7 +17513,7 @@ module.exports = /******/ (() => { .split('\\,') .join(escComma) .split('\\.') - .join(escPeriod) + .join(escPeriod); } function unescapeBraces(str) { @@ -17506,39 +17527,39 @@ module.exports = /******/ (() => { .split(escComma) .join(',') .split(escPeriod) - .join('.') + .join('.'); } // Basically just str.split(","), but handling cases // where we have nested braced sections, which should be // treated as individual members, like {a,{b,c},d} function parseCommaParts(str) { - if (!str) return [''] + if (!str) return ['']; - var parts = [] - var m = balanced('{', '}', str) + var parts = []; + var m = balanced('{', '}', str); - if (!m) return str.split(',') + if (!m) return str.split(','); - var pre = m.pre - var body = m.body - var post = m.post - var p = pre.split(',') + var pre = m.pre; + var body = m.body; + var post = m.post; + var p = pre.split(','); - p[p.length - 1] += '{' + body + '}' - var postParts = parseCommaParts(post) + p[p.length - 1] += '{' + body + '}'; + var postParts = parseCommaParts(post); if (post.length) { - p[p.length - 1] += postParts.shift() - p.push.apply(p, postParts) + p[p.length - 1] += postParts.shift(); + p.push.apply(p, postParts); } - parts.push.apply(parts, p) + parts.push.apply(parts, p); - return parts + return parts; } function expandTop(str) { - if (!str) return [] + if (!str) return []; // I don't know why Bash 4.3 does this, but it does. // Anything starting with {} will have the first two bytes preserved @@ -17547,64 +17568,64 @@ module.exports = /******/ (() => { // One could argue that this is a bug in Bash, but since the goal of // this module is to match Bash's rules, we escape a leading {} if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2) + str = '\\{\\}' + str.substr(2); } - return expand(escapeBraces(str), true).map(unescapeBraces) + return expand(escapeBraces(str), true).map(unescapeBraces); } function identity(e) { - return e + return e; } function embrace(str) { - return '{' + str + '}' + return '{' + str + '}'; } function isPadded(el) { - return /^-?0\d/.test(el) + return /^-?0\d/.test(el); } function lte(i, y) { - return i <= y + return i <= y; } function gte(i, y) { - return i >= y + return i >= y; } function expand(str, isTop) { - var expansions = [] + var expansions = []; - var m = balanced('{', '}', str) - if (!m || /\$$/.test(m.pre)) return [str] + var m = balanced('{', '}', str); + if (!m || /\$$/.test(m.pre)) return [str]; - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body) + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test( - m.body - ) - var isSequence = isNumericSequence || isAlphaSequence - var isOptions = m.body.indexOf(',') >= 0 + m.body, + ); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m.body.indexOf(',') >= 0; if (!isSequence && !isOptions) { // {a},b} if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post - return expand(str) + str = m.pre + '{' + m.body + escClose + m.post; + return expand(str); } - return [str] + return [str]; } - var n + var n; if (isSequence) { - n = m.body.split(/\.\./) + n = m.body.split(/\.\./); } else { - n = parseCommaParts(m.body) + n = parseCommaParts(m.body); if (n.length === 1) { // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace) + n = expand(n[0], false).map(embrace); if (n.length === 1) { - var post = m.post.length ? expand(m.post, false) : [''] + var post = m.post.length ? expand(m.post, false) : ['']; return post.map(function (p) { - return m.pre + n[0] + p - }) + return m.pre + n[0] + p; + }); } } } @@ -17613,87 +17634,87 @@ module.exports = /******/ (() => { // with a single entry. // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre - var post = m.post.length ? expand(m.post, false) : [''] + var pre = m.pre; + var post = m.post.length ? expand(m.post, false) : ['']; - var N + var N; if (isSequence) { - var x = numeric(n[0]) - var y = numeric(n[1]) - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1 - var test = lte - var reverse = y < x + var x = numeric(n[0]); + var y = numeric(n[1]); + var width = Math.max(n[0].length, n[1].length); + var incr = n.length == 3 ? Math.abs(numeric(n[2])) : 1; + var test = lte; + var reverse = y < x; if (reverse) { - incr *= -1 - test = gte + incr *= -1; + test = gte; } - var pad = n.some(isPadded) + var pad = n.some(isPadded); - N = [] + N = []; for (var i = x; test(i, y); i += incr) { - var c + var c; if (isAlphaSequence) { - c = String.fromCharCode(i) - if (c === '\\') c = '' + c = String.fromCharCode(i); + if (c === '\\') c = ''; } else { - c = String(i) + c = String(i); if (pad) { - var need = width - c.length + var need = width - c.length; if (need > 0) { - var z = new Array(need + 1).join('0') - if (i < 0) c = '-' + z + c.slice(1) - else c = z + c + var z = new Array(need + 1).join('0'); + if (i < 0) c = '-' + z + c.slice(1); + else c = z + c; } } } - N.push(c) + N.push(c); } } else { N = concatMap(n, function (el) { - return expand(el, false) - }) + return expand(el, false); + }); } for (var j = 0; j < N.length; j++) { for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k] - if (!isTop || isSequence || expansion) expansions.push(expansion) + var expansion = pre + N[j] + post[k]; + if (!isTop || isSequence || expansion) expansions.push(expansion); } } - return expansions + return expansions; } /***/ }, - /***/ 2358: /***/ module => { + /***/ 2358: /***/ (module) => { module.exports = function btoa(str) { - return new Buffer(str).toString('base64') - } + return new Buffer(str).toString('base64'); + }; /***/ }, - /***/ 6891: /***/ module => { + /***/ 6891: /***/ (module) => { module.exports = function (xs, fn) { - var res = [] + var res = []; for (var i = 0; i < xs.length; i++) { - var x = fn(xs[i], i) - if (isArray(x)) res.push.apply(res, x) - else res.push(x) + var x = fn(xs[i], i); + if (isArray(x)) res.push.apply(res, x); + else res.push(x); } - return res - } + return res; + }; var isArray = Array.isArray || function (xs) { - return Object.prototype.toString.call(xs) === '[object Array]' - } + return Object.prototype.toString.call(xs) === '[object Array]'; + }; /***/ }, @@ -17701,56 +17722,60 @@ module.exports = /******/ (() => { /***/ 2746: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const cp = __webpack_require__(3129) - const parse = __webpack_require__(6855) - const enoent = __webpack_require__(4101) + const cp = __webpack_require__(3129); + const parse = __webpack_require__(6855); + const enoent = __webpack_require__(4101); function spawn(command, args, options) { // Parse the arguments - const parsed = parse(command, args, options) + const parsed = parse(command, args, options); // Spawn the child process - const spawned = cp.spawn(parsed.command, parsed.args, parsed.options) + const spawned = cp.spawn(parsed.command, parsed.args, parsed.options); // Hook into child process "exit" event to emit an error if the command // does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 - enoent.hookChildProcess(spawned, parsed) + enoent.hookChildProcess(spawned, parsed); - return spawned + return spawned; } function spawnSync(command, args, options) { // Parse the arguments - const parsed = parse(command, args, options) + const parsed = parse(command, args, options); // Spawn the child process - const result = cp.spawnSync(parsed.command, parsed.args, parsed.options) + const result = cp.spawnSync( + parsed.command, + parsed.args, + parsed.options, + ); // Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16 result.error = - result.error || enoent.verifyENOENTSync(result.status, parsed) + result.error || enoent.verifyENOENTSync(result.status, parsed); - return result + return result; } - module.exports = spawn - module.exports.spawn = spawn - module.exports.sync = spawnSync + module.exports = spawn; + module.exports.spawn = spawn; + module.exports.sync = spawnSync; - module.exports._parse = parse - module.exports._enoent = enoent + module.exports._parse = parse; + module.exports._enoent = enoent; /***/ }, - /***/ 4101: /***/ module => { - 'use strict' + /***/ 4101: /***/ (module) => { + 'use strict'; - const isWin = process.platform === 'win32' + const isWin = process.platform === 'win32'; function notFoundError(original, syscall) { return Object.assign( @@ -17760,56 +17785,56 @@ module.exports = /******/ (() => { errno: 'ENOENT', syscall: `${syscall} ${original.command}`, path: original.command, - spawnargs: original.args - } - ) + spawnargs: original.args, + }, + ); } function hookChildProcess(cp, parsed) { if (!isWin) { - return + return; } - const originalEmit = cp.emit + const originalEmit = cp.emit; cp.emit = function (name, arg1) { // If emitting "exit" event and exit code is 1, we need to check if // the command exists and emit an "error" instead // See https://github.com/IndigoUnited/node-cross-spawn/issues/16 if (name === 'exit') { - const err = verifyENOENT(arg1, parsed, 'spawn') + const err = verifyENOENT(arg1, parsed, 'spawn'); if (err) { - return originalEmit.call(cp, 'error', err) + return originalEmit.call(cp, 'error', err); } } - return originalEmit.apply(cp, arguments) // eslint-disable-line prefer-rest-params - } + return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params + }; } function verifyENOENT(status, parsed) { if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawn') + return notFoundError(parsed.original, 'spawn'); } - return null + return null; } function verifyENOENTSync(status, parsed) { if (isWin && status === 1 && !parsed.file) { - return notFoundError(parsed.original, 'spawnSync') + return notFoundError(parsed.original, 'spawnSync'); } - return null + return null; } module.exports = { hookChildProcess, verifyENOENT, verifyENOENTSync, - notFoundError - } + notFoundError, + }; /***/ }, @@ -17817,20 +17842,20 @@ module.exports = /******/ (() => { /***/ 6855: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const path = __webpack_require__(5622) - const niceTry = __webpack_require__(8560) - const resolveCommand = __webpack_require__(7274) - const escape = __webpack_require__(4274) - const readShebang = __webpack_require__(1252) - const semver = __webpack_require__(5911) + const path = __webpack_require__(5622); + const niceTry = __webpack_require__(8560); + const resolveCommand = __webpack_require__(7274); + const escape = __webpack_require__(4274); + const readShebang = __webpack_require__(1252); + const semver = __webpack_require__(5911); - const isWin = process.platform === 'win32' - const isExecutableRegExp = /\.(?:com|exe)$/i - const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i + const isWin = process.platform === 'win32'; + const isExecutableRegExp = /\.(?:com|exe)$/i; + const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i; // `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0 const supportsShellOption = @@ -17838,35 +17863,35 @@ module.exports = /******/ (() => { semver.satisfies( process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', - true - ) - ) || false + true, + ), + ) || false; function detectShebang(parsed) { - parsed.file = resolveCommand(parsed) + parsed.file = resolveCommand(parsed); - const shebang = parsed.file && readShebang(parsed.file) + const shebang = parsed.file && readShebang(parsed.file); if (shebang) { - parsed.args.unshift(parsed.file) - parsed.command = shebang + parsed.args.unshift(parsed.file); + parsed.command = shebang; - return resolveCommand(parsed) + return resolveCommand(parsed); } - return parsed.file + return parsed.file; } function parseNonShell(parsed) { if (!isWin) { - return parsed + return parsed; } // Detect & add support for shebangs - const commandFile = detectShebang(parsed) + const commandFile = detectShebang(parsed); // We don't need a shell if the command filename is an executable - const needsShell = !isExecutableRegExp.test(commandFile) + const needsShell = !isExecutableRegExp.test(commandFile); // If a shell is required, use cmd.exe and take care of escaping everything correctly // Note that `forceShell` is an hidden option used only in tests @@ -17875,69 +17900,69 @@ module.exports = /******/ (() => { // The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument // Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called, // we need to double escape them - const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile) + const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile); // Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar) // This is necessary otherwise it will always fail with ENOENT in those cases - parsed.command = path.normalize(parsed.command) + parsed.command = path.normalize(parsed.command); // Escape command & arguments - parsed.command = escape.command(parsed.command) - parsed.args = parsed.args.map(arg => - escape.argument(arg, needsDoubleEscapeMetaChars) - ) + parsed.command = escape.command(parsed.command); + parsed.args = parsed.args.map((arg) => + escape.argument(arg, needsDoubleEscapeMetaChars), + ); - const shellCommand = [parsed.command].concat(parsed.args).join(' ') + const shellCommand = [parsed.command].concat(parsed.args).join(' '); - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`] - parsed.command = process.env.comspec || 'cmd.exe' - parsed.options.windowsVerbatimArguments = true // Tell node's spawn that the arguments are already escaped + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.command = process.env.comspec || 'cmd.exe'; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped } - return parsed + return parsed; } function parseShell(parsed) { // If node supports the shell option, there's no need to mimic its behavior if (supportsShellOption) { - return parsed + return parsed; } // Mimic node shell option // See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335 - const shellCommand = [parsed.command].concat(parsed.args).join(' ') + const shellCommand = [parsed.command].concat(parsed.args).join(' '); if (isWin) { parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell - : process.env.comspec || 'cmd.exe' - parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`] - parsed.options.windowsVerbatimArguments = true // Tell node's spawn that the arguments are already escaped + : process.env.comspec || 'cmd.exe'; + parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`]; + parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped } else { if (typeof parsed.options.shell === 'string') { - parsed.command = parsed.options.shell + parsed.command = parsed.options.shell; } else if (process.platform === 'android') { - parsed.command = '/system/bin/sh' + parsed.command = '/system/bin/sh'; } else { - parsed.command = '/bin/sh' + parsed.command = '/bin/sh'; } - parsed.args = ['-c', shellCommand] + parsed.args = ['-c', shellCommand]; } - return parsed + return parsed; } function parse(command, args, options) { // Normalize arguments, similar to nodejs if (args && !Array.isArray(args)) { - options = args - args = null + options = args; + args = null; } - args = args ? args.slice(0) : [] // Clone array to avoid changing the original - options = Object.assign({}, options) // Clone object to avoid changing the original + args = args ? args.slice(0) : []; // Clone array to avoid changing the original + options = Object.assign({}, options); // Clone object to avoid changing the original // Build our parsed object const parsed = { @@ -17947,65 +17972,65 @@ module.exports = /******/ (() => { file: undefined, original: { command, - args - } - } + args, + }, + }; // Delegate further parsing to shell or non-shell - return options.shell ? parseShell(parsed) : parseNonShell(parsed) + return options.shell ? parseShell(parsed) : parseNonShell(parsed); } - module.exports = parse + module.exports = parse; /***/ }, - /***/ 4274: /***/ module => { - 'use strict' + /***/ 4274: /***/ (module) => { + 'use strict'; // See http://www.robvanderwoude.com/escapechars.php - const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g + const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g; function escapeCommand(arg) { // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1') + arg = arg.replace(metaCharsRegExp, '^$1'); - return arg + return arg; } function escapeArgument(arg, doubleEscapeMetaChars) { // Convert to string - arg = `${arg}` + arg = `${arg}`; // Algorithm below is based on https://qntm.org/cmd // Sequence of backslashes followed by a double quote: // double up all the backslashes and escape the double quote - arg = arg.replace(/(\\*)"/g, '$1$1\\"') + arg = arg.replace(/(\\*)"/g, '$1$1\\"'); // Sequence of backslashes followed by the end of the string // (which will become a double quote later): // double up all the backslashes - arg = arg.replace(/(\\*)$/, '$1$1') + arg = arg.replace(/(\\*)$/, '$1$1'); // All other backslashes occur literally // Quote the whole thing: - arg = `"${arg}"` + arg = `"${arg}"`; // Escape meta chars - arg = arg.replace(metaCharsRegExp, '^$1') + arg = arg.replace(metaCharsRegExp, '^$1'); // Double escape meta chars if necessary if (doubleEscapeMetaChars) { - arg = arg.replace(metaCharsRegExp, '^$1') + arg = arg.replace(metaCharsRegExp, '^$1'); } - return arg + return arg; } - module.exports.command = escapeCommand - module.exports.argument = escapeArgument + module.exports.command = escapeCommand; + module.exports.argument = escapeArgument; /***/ }, @@ -18013,42 +18038,42 @@ module.exports = /******/ (() => { /***/ 1252: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const fs = __webpack_require__(5747) - const shebangCommand = __webpack_require__(7032) + const fs = __webpack_require__(5747); + const shebangCommand = __webpack_require__(7032); function readShebang(command) { // Read the first 150 bytes from the file - const size = 150 - let buffer + const size = 150; + let buffer; if (Buffer.alloc) { // Node.js v4.5+ / v5.10+ - buffer = Buffer.alloc(size) + buffer = Buffer.alloc(size); } else { // Old Node.js API - buffer = new Buffer(size) - buffer.fill(0) // zero-fill + buffer = new Buffer(size); + buffer.fill(0); // zero-fill } - let fd + let fd; try { - fd = fs.openSync(command, 'r') - fs.readSync(fd, buffer, 0, size, 0) - fs.closeSync(fd) + fd = fs.openSync(command, 'r'); + fs.readSync(fd, buffer, 0, size, 0); + fs.closeSync(fd); } catch (e) { /* Empty */ } // Attempt to extract shebang (null is returned if not a shebang) - return shebangCommand(buffer.toString()) + return shebangCommand(buffer.toString()); } - module.exports = readShebang + module.exports = readShebang; /***/ }, @@ -18056,39 +18081,39 @@ module.exports = /******/ (() => { /***/ 7274: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const path = __webpack_require__(5622) - const which = __webpack_require__(9383) - const pathKey = __webpack_require__(539)() + const path = __webpack_require__(5622); + const which = __webpack_require__(9383); + const pathKey = __webpack_require__(539)(); function resolveCommandAttempt(parsed, withoutPathExt) { - const cwd = process.cwd() - const hasCustomCwd = parsed.options.cwd != null + const cwd = process.cwd(); + const hasCustomCwd = parsed.options.cwd != null; // If a custom `cwd` was specified, we need to change the process cwd // because `which` will do stat calls but does not support a custom cwd if (hasCustomCwd) { try { - process.chdir(parsed.options.cwd) + process.chdir(parsed.options.cwd); } catch (err) { /* Empty */ } } - let resolved + let resolved; try { resolved = which.sync(parsed.command, { path: (parsed.options.env || process.env)[pathKey], - pathExt: withoutPathExt ? path.delimiter : undefined - }) + pathExt: withoutPathExt ? path.delimiter : undefined, + }); } catch (e) { /* Empty */ } finally { - process.chdir(cwd) + process.chdir(cwd); } // If we successfully resolved, ensure that an absolute path is returned @@ -18096,20 +18121,20 @@ module.exports = /******/ (() => { if (resolved) { resolved = path.resolve( hasCustomCwd ? parsed.options.cwd : '', - resolved - ) + resolved, + ); } - return resolved + return resolved; } function resolveCommand(parsed) { return ( resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true) - ) + ); } - module.exports = resolveCommand + module.exports = resolveCommand; /***/ }, @@ -18117,158 +18142,158 @@ module.exports = /******/ (() => { /***/ 9383: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = which - which.sync = whichSync + module.exports = which; + which.sync = whichSync; var isWindows = process.platform === 'win32' || process.env.OSTYPE === 'cygwin' || - process.env.OSTYPE === 'msys' + process.env.OSTYPE === 'msys'; - var path = __webpack_require__(5622) - var COLON = isWindows ? ';' : ':' - var isexe = __webpack_require__(7126) + var path = __webpack_require__(5622); + var COLON = isWindows ? ';' : ':'; + var isexe = __webpack_require__(7126); function getNotFoundError(cmd) { - var er = new Error('not found: ' + cmd) - er.code = 'ENOENT' + var er = new Error('not found: ' + cmd); + er.code = 'ENOENT'; - return er + return er; } function getPathInfo(cmd, opt) { - var colon = opt.colon || COLON - var pathEnv = opt.path || process.env.PATH || '' - var pathExt = [''] + var colon = opt.colon || COLON; + var pathEnv = opt.path || process.env.PATH || ''; + var pathExt = ['']; - pathEnv = pathEnv.split(colon) + pathEnv = pathEnv.split(colon); - var pathExtExe = '' + var pathExtExe = ''; if (isWindows) { - pathEnv.unshift(process.cwd()) + pathEnv.unshift(process.cwd()); pathExtExe = - opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM' - pathExt = pathExtExe.split(colon) + opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'; + pathExt = pathExtExe.split(colon); // Always test the cmd itself first. isexe will check to make sure // it's found in the pathExt set. - if (cmd.indexOf('.') !== -1 && pathExt[0] !== '') pathExt.unshift('') + if (cmd.indexOf('.') !== -1 && pathExt[0] !== '') pathExt.unshift(''); } // If it has a slash, then we don't bother searching the pathenv. // just check the file itself, and that's it. - if (cmd.match(/\//) || (isWindows && cmd.match(/\\/))) pathEnv = [''] + if (cmd.match(/\//) || (isWindows && cmd.match(/\\/))) pathEnv = ['']; return { env: pathEnv, ext: pathExt, - extExe: pathExtExe - } + extExe: pathExtExe, + }; } function which(cmd, opt, cb) { if (typeof opt === 'function') { - cb = opt - opt = {} + cb = opt; + opt = {}; } - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] + var info = getPathInfo(cmd, opt); + var pathEnv = info.env; + var pathExt = info.ext; + var pathExtExe = info.extExe; + var found = []; - ;(function F(i, l) { + (function F(i, l) { if (i === l) { - if (opt.all && found.length) return cb(null, found) - else return cb(getNotFoundError(cmd)) + if (opt.all && found.length) return cb(null, found); + else return cb(getNotFoundError(cmd)); } - var pathPart = pathEnv[i] + var pathPart = pathEnv[i]; if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) + pathPart = pathPart.slice(1, -1); - var p = path.join(pathPart, cmd) + var p = path.join(pathPart, cmd); if (!pathPart && /^\.[\\\/]/.test(cmd)) { - p = cmd.slice(0, 2) + p + p = cmd.slice(0, 2) + p; } - ;(function E(ii, ll) { - if (ii === ll) return F(i + 1, l) - var ext = pathExt[ii] + (function E(ii, ll) { + if (ii === ll) return F(i + 1, l); + var ext = pathExt[ii]; isexe(p + ext, { pathExt: pathExtExe }, function (er, is) { if (!er && is) { - if (opt.all) found.push(p + ext) - else return cb(null, p + ext) + if (opt.all) found.push(p + ext); + else return cb(null, p + ext); } - return E(ii + 1, ll) - }) - })(0, pathExt.length) - })(0, pathEnv.length) + return E(ii + 1, ll); + }); + })(0, pathExt.length); + })(0, pathEnv.length); } function whichSync(cmd, opt) { - opt = opt || {} + opt = opt || {}; - var info = getPathInfo(cmd, opt) - var pathEnv = info.env - var pathExt = info.ext - var pathExtExe = info.extExe - var found = [] + var info = getPathInfo(cmd, opt); + var pathEnv = info.env; + var pathExt = info.ext; + var pathExtExe = info.extExe; + var found = []; for (var i = 0, l = pathEnv.length; i < l; i++) { - var pathPart = pathEnv[i] + var pathPart = pathEnv[i]; if (pathPart.charAt(0) === '"' && pathPart.slice(-1) === '"') - pathPart = pathPart.slice(1, -1) + pathPart = pathPart.slice(1, -1); - var p = path.join(pathPart, cmd) + var p = path.join(pathPart, cmd); if (!pathPart && /^\.[\\\/]/.test(cmd)) { - p = cmd.slice(0, 2) + p + p = cmd.slice(0, 2) + p; } for (var j = 0, ll = pathExt.length; j < ll; j++) { - var cur = p + pathExt[j] - var is + var cur = p + pathExt[j]; + var is; try { - is = isexe.sync(cur, { pathExt: pathExtExe }) + is = isexe.sync(cur, { pathExt: pathExtExe }); if (is) { - if (opt.all) found.push(cur) - else return cur + if (opt.all) found.push(cur); + else return cur; } } catch (ex) {} } } - if (opt.all && found.length) return found + if (opt.all && found.length) return found; - if (opt.nothrow) return null + if (opt.nothrow) return null; - throw getNotFoundError(cmd) + throw getNotFoundError(cmd); } /***/ }, /***/ 8932: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); class Deprecation extends Error { constructor(message) { - super(message) // Maintains proper stack trace (only available on V8) + super(message); // Maintains proper stack trace (only available on V8) /* istanbul ignore next */ if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } - this.name = 'Deprecation' + this.name = 'Deprecation'; } } - exports.Deprecation = Deprecation + exports.Deprecation = Deprecation; /***/ }, @@ -18276,114 +18301,114 @@ module.exports = /******/ (() => { /***/ 1205: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var once = __webpack_require__(1223) + var once = __webpack_require__(1223); - var noop = function () {} + var noop = function () {}; var isRequest = function (stream) { - return stream.setHeader && typeof stream.abort === 'function' - } + return stream.setHeader && typeof stream.abort === 'function'; + }; var isChildProcess = function (stream) { return ( stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 - ) - } + ); + }; var eos = function (stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts) - if (!opts) opts = {} + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; - callback = once(callback || noop) + callback = once(callback || noop); - var ws = stream._writableState - var rs = stream._readableState + var ws = stream._writableState; + var rs = stream._readableState; var readable = - opts.readable || (opts.readable !== false && stream.readable) + opts.readable || (opts.readable !== false && stream.readable); var writable = - opts.writable || (opts.writable !== false && stream.writable) - var cancelled = false + opts.writable || (opts.writable !== false && stream.writable); + var cancelled = false; var onlegacyfinish = function () { - if (!stream.writable) onfinish() - } + if (!stream.writable) onfinish(); + }; var onfinish = function () { - writable = false - if (!readable) callback.call(stream) - } + writable = false; + if (!readable) callback.call(stream); + }; var onend = function () { - readable = false - if (!writable) callback.call(stream) - } + readable = false; + if (!writable) callback.call(stream); + }; var onexit = function (exitCode) { callback.call( stream, - exitCode ? new Error('exited with error code: ' + exitCode) : null - ) - } + exitCode ? new Error('exited with error code: ' + exitCode) : null, + ); + }; var onerror = function (err) { - callback.call(stream, err) - } + callback.call(stream, err); + }; var onclose = function () { - process.nextTick(onclosenexttick) - } + process.nextTick(onclosenexttick); + }; var onclosenexttick = function () { - if (cancelled) return + if (cancelled) return; if (readable && !(rs && rs.ended && !rs.destroyed)) - return callback.call(stream, new Error('premature close')) + return callback.call(stream, new Error('premature close')); if (writable && !(ws && ws.ended && !ws.destroyed)) - return callback.call(stream, new Error('premature close')) - } + return callback.call(stream, new Error('premature close')); + }; var onrequest = function () { - stream.req.on('finish', onfinish) - } + stream.req.on('finish', onfinish); + }; if (isRequest(stream)) { - stream.on('complete', onfinish) - stream.on('abort', onclose) - if (stream.req) onrequest() - else stream.on('request', onrequest) + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest(); + else stream.on('request', onrequest); } else if (writable && !ws) { // legacy streams - stream.on('end', onlegacyfinish) - stream.on('close', onlegacyfinish) + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); } - if (isChildProcess(stream)) stream.on('exit', onexit) + if (isChildProcess(stream)) stream.on('exit', onexit); - stream.on('end', onend) - stream.on('finish', onfinish) - if (opts.error !== false) stream.on('error', onerror) - stream.on('close', onclose) + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); return function () { - cancelled = true - stream.removeListener('complete', onfinish) - stream.removeListener('abort', onclose) - stream.removeListener('request', onrequest) - if (stream.req) stream.req.removeListener('finish', onfinish) - stream.removeListener('end', onlegacyfinish) - stream.removeListener('close', onlegacyfinish) - stream.removeListener('finish', onfinish) - stream.removeListener('exit', onexit) - stream.removeListener('end', onend) - stream.removeListener('error', onerror) - stream.removeListener('close', onclose) - } - } - - module.exports = eos + cancelled = true; + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('exit', onexit); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; + }; + + module.exports = eos; /***/ }, @@ -18391,41 +18416,41 @@ module.exports = /******/ (() => { /***/ 5447: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' - - const path = __webpack_require__(5622) - const childProcess = __webpack_require__(3129) - const crossSpawn = __webpack_require__(2746) - const stripEof = __webpack_require__(5515) - const npmRunPath = __webpack_require__(502) - const isStream = __webpack_require__(1554) - const _getStream = __webpack_require__(1766) - const pFinally = __webpack_require__(1330) - const onExit = __webpack_require__(1856) - const errname = __webpack_require__(4689) - const stdio = __webpack_require__(166) - - const TEN_MEGABYTES = 1000 * 1000 * 10 + 'use strict'; + + const path = __webpack_require__(5622); + const childProcess = __webpack_require__(3129); + const crossSpawn = __webpack_require__(2746); + const stripEof = __webpack_require__(5515); + const npmRunPath = __webpack_require__(502); + const isStream = __webpack_require__(1554); + const _getStream = __webpack_require__(1766); + const pFinally = __webpack_require__(1330); + const onExit = __webpack_require__(1856); + const errname = __webpack_require__(4689); + const stdio = __webpack_require__(166); + + const TEN_MEGABYTES = 1000 * 1000 * 10; function handleArgs(cmd, args, opts) { - let parsed + let parsed; opts = Object.assign( { extendEnv: true, - env: {} + env: {}, }, - opts - ) + opts, + ); if (opts.extendEnv) { - opts.env = Object.assign({}, process.env, opts.env) + opts.env = Object.assign({}, process.env, opts.env); } if (opts.__winShell === true) { - delete opts.__winShell + delete opts.__winShell; parsed = { command: cmd, args, @@ -18433,11 +18458,11 @@ module.exports = /******/ (() => { file: cmd, original: { cmd, - args - } - } + args, + }, + }; } else { - parsed = crossSpawn._parse(cmd, args, opts) + parsed = crossSpawn._parse(cmd, args, opts); } opts = Object.assign( @@ -18449,22 +18474,22 @@ module.exports = /******/ (() => { localDir: parsed.options.cwd || process.cwd(), encoding: 'utf8', reject: true, - cleanup: true + cleanup: true, }, - parsed.options - ) + parsed.options, + ); - opts.stdio = stdio(opts) + opts.stdio = stdio(opts); if (opts.preferLocal) { opts.env = npmRunPath.env( - Object.assign({}, opts, { cwd: opts.localDir }) - ) + Object.assign({}, opts, { cwd: opts.localDir }), + ); } if (opts.detached) { // #115 - opts.cleanup = false + opts.cleanup = false; } if ( @@ -18472,201 +18497,201 @@ module.exports = /******/ (() => { path.basename(parsed.command) === 'cmd.exe' ) { // #116 - parsed.args.unshift('/q') + parsed.args.unshift('/q'); } return { cmd: parsed.command, args: parsed.args, opts, - parsed - } + parsed, + }; } function handleInput(spawned, input) { if (input === null || input === undefined) { - return + return; } if (isStream(input)) { - input.pipe(spawned.stdin) + input.pipe(spawned.stdin); } else { - spawned.stdin.end(input) + spawned.stdin.end(input); } } function handleOutput(opts, val) { if (val && opts.stripEof) { - val = stripEof(val) + val = stripEof(val); } - return val + return val; } function handleShell(fn, cmd, opts) { - let file = '/bin/sh' - let args = ['-c', cmd] + let file = '/bin/sh'; + let args = ['-c', cmd]; - opts = Object.assign({}, opts) + opts = Object.assign({}, opts); if (process.platform === 'win32') { - opts.__winShell = true - file = process.env.comspec || 'cmd.exe' - args = ['/s', '/c', `"${cmd}"`] - opts.windowsVerbatimArguments = true + opts.__winShell = true; + file = process.env.comspec || 'cmd.exe'; + args = ['/s', '/c', `"${cmd}"`]; + opts.windowsVerbatimArguments = true; } if (opts.shell) { - file = opts.shell - delete opts.shell + file = opts.shell; + delete opts.shell; } - return fn(file, args, opts) + return fn(file, args, opts); } function getStream(process, stream, { encoding, buffer, maxBuffer }) { if (!process[stream]) { - return null + return null; } - let ret + let ret; if (!buffer) { // TODO: Use `ret = util.promisify(stream.finished)(process[stream]);` when targeting Node.js 10 ret = new Promise((resolve, reject) => { - process[stream].once('end', resolve).once('error', reject) - }) + process[stream].once('end', resolve).once('error', reject); + }); } else if (encoding) { ret = _getStream(process[stream], { encoding, - maxBuffer - }) + maxBuffer, + }); } else { - ret = _getStream.buffer(process[stream], { maxBuffer }) + ret = _getStream.buffer(process[stream], { maxBuffer }); } - return ret.catch(err => { - err.stream = stream - err.message = `${stream} ${err.message}` - throw err - }) + return ret.catch((err) => { + err.stream = stream; + err.message = `${stream} ${err.message}`; + throw err; + }); } function makeError(result, options) { - const { stdout, stderr } = result + const { stdout, stderr } = result; - let err = result.error - const { code, signal } = result + let err = result.error; + const { code, signal } = result; - const { parsed, joinedCmd } = options - const timedOut = options.timedOut || false + const { parsed, joinedCmd } = options; + const timedOut = options.timedOut || false; if (!err) { - let output = '' + let output = ''; if (Array.isArray(parsed.opts.stdio)) { if (parsed.opts.stdio[2] !== 'inherit') { - output += output.length > 0 ? stderr : `\n${stderr}` + output += output.length > 0 ? stderr : `\n${stderr}`; } if (parsed.opts.stdio[1] !== 'inherit') { - output += `\n${stdout}` + output += `\n${stdout}`; } } else if (parsed.opts.stdio !== 'inherit') { - output = `\n${stderr}${stdout}` + output = `\n${stderr}${stdout}`; } - err = new Error(`Command failed: ${joinedCmd}${output}`) - err.code = code < 0 ? errname(code) : code + err = new Error(`Command failed: ${joinedCmd}${output}`); + err.code = code < 0 ? errname(code) : code; } - err.stdout = stdout - err.stderr = stderr - err.failed = true - err.signal = signal || null - err.cmd = joinedCmd - err.timedOut = timedOut + err.stdout = stdout; + err.stderr = stderr; + err.failed = true; + err.signal = signal || null; + err.cmd = joinedCmd; + err.timedOut = timedOut; - return err + return err; } function joinCmd(cmd, args) { - let joinedCmd = cmd + let joinedCmd = cmd; if (Array.isArray(args) && args.length > 0) { - joinedCmd += ' ' + args.join(' ') + joinedCmd += ' ' + args.join(' '); } - return joinedCmd + return joinedCmd; } module.exports = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts) - const { encoding, buffer, maxBuffer } = parsed.opts - const joinedCmd = joinCmd(cmd, args) + const parsed = handleArgs(cmd, args, opts); + const { encoding, buffer, maxBuffer } = parsed.opts; + const joinedCmd = joinCmd(cmd, args); - let spawned + let spawned; try { - spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts) + spawned = childProcess.spawn(parsed.cmd, parsed.args, parsed.opts); } catch (err) { - return Promise.reject(err) + return Promise.reject(err); } - let removeExitHandler + let removeExitHandler; if (parsed.opts.cleanup) { removeExitHandler = onExit(() => { - spawned.kill() - }) + spawned.kill(); + }); } - let timeoutId = null - let timedOut = false + let timeoutId = null; + let timedOut = false; const cleanup = () => { if (timeoutId) { - clearTimeout(timeoutId) - timeoutId = null + clearTimeout(timeoutId); + timeoutId = null; } if (removeExitHandler) { - removeExitHandler() + removeExitHandler(); } - } + }; if (parsed.opts.timeout > 0) { timeoutId = setTimeout(() => { - timeoutId = null - timedOut = true - spawned.kill(parsed.opts.killSignal) - }, parsed.opts.timeout) + timeoutId = null; + timedOut = true; + spawned.kill(parsed.opts.killSignal); + }, parsed.opts.timeout); } - const processDone = new Promise(resolve => { + const processDone = new Promise((resolve) => { spawned.on('exit', (code, signal) => { - cleanup() - resolve({ code, signal }) - }) + cleanup(); + resolve({ code, signal }); + }); - spawned.on('error', err => { - cleanup() - resolve({ error: err }) - }) + spawned.on('error', (err) => { + cleanup(); + resolve({ error: err }); + }); if (spawned.stdin) { - spawned.stdin.on('error', err => { - cleanup() - resolve({ error: err }) - }) + spawned.stdin.on('error', (err) => { + cleanup(); + resolve({ error: err }); + }); } - }) + }); function destroy() { if (spawned.stdout) { - spawned.stdout.destroy() + spawned.stdout.destroy(); } if (spawned.stderr) { - spawned.stderr.destroy() + spawned.stderr.destroy(); } } @@ -18675,29 +18700,29 @@ module.exports = /******/ (() => { Promise.all([ processDone, getStream(spawned, 'stdout', { encoding, buffer, maxBuffer }), - getStream(spawned, 'stderr', { encoding, buffer, maxBuffer }) - ]).then(arr => { - const result = arr[0] - result.stdout = arr[1] - result.stderr = arr[2] + getStream(spawned, 'stderr', { encoding, buffer, maxBuffer }), + ]).then((arr) => { + const result = arr[0]; + result.stdout = arr[1]; + result.stderr = arr[2]; if (result.error || result.code !== 0 || result.signal !== null) { const err = makeError(result, { joinedCmd, parsed, - timedOut - }) + timedOut, + }); // TODO: missing some timeout logic for killed // https://github.com/nodejs/node/blob/master/lib/child_process.js#L203 // err.killed = spawned.killed || killed; - err.killed = err.killed || spawned.killed + err.killed = err.killed || spawned.killed; if (!parsed.opts.reject) { - return err + return err; } - throw err + throw err; } return { @@ -18708,62 +18733,62 @@ module.exports = /******/ (() => { killed: false, signal: null, cmd: joinedCmd, - timedOut: false - } + timedOut: false, + }; }), - destroy - ) + destroy, + ); - crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed) + crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed); - handleInput(spawned, parsed.opts.input) + handleInput(spawned, parsed.opts.input); spawned.then = (onfulfilled, onrejected) => - handlePromise().then(onfulfilled, onrejected) - spawned.catch = onrejected => handlePromise().catch(onrejected) + handlePromise().then(onfulfilled, onrejected); + spawned.catch = (onrejected) => handlePromise().catch(onrejected); - return spawned - } + return spawned; + }; // TODO: set `stderr: 'ignore'` when that option is implemented module.exports.stdout = (...args) => - module.exports(...args).then(x => x.stdout) + module.exports(...args).then((x) => x.stdout); // TODO: set `stdout: 'ignore'` when that option is implemented module.exports.stderr = (...args) => - module.exports(...args).then(x => x.stderr) + module.exports(...args).then((x) => x.stderr); module.exports.shell = (cmd, opts) => - handleShell(module.exports, cmd, opts) + handleShell(module.exports, cmd, opts); module.exports.sync = (cmd, args, opts) => { - const parsed = handleArgs(cmd, args, opts) - const joinedCmd = joinCmd(cmd, args) + const parsed = handleArgs(cmd, args, opts); + const joinedCmd = joinCmd(cmd, args); if (isStream(parsed.opts.input)) { throw new TypeError( - 'The `input` option cannot be a stream in sync mode' - ) + 'The `input` option cannot be a stream in sync mode', + ); } const result = childProcess.spawnSync( parsed.cmd, parsed.args, - parsed.opts - ) - result.code = result.status + parsed.opts, + ); + result.code = result.status; if (result.error || result.status !== 0 || result.signal !== null) { const err = makeError(result, { joinedCmd, - parsed - }) + parsed, + }); if (!parsed.opts.reject) { - return err + return err; } - throw err + throw err; } return { @@ -18773,12 +18798,12 @@ module.exports = /******/ (() => { failed: false, signal: null, cmd: joinedCmd, - timedOut: false - } - } + timedOut: false, + }; + }; module.exports.shellSync = (cmd, opts) => - handleShell(module.exports.sync, cmd, opts) + handleShell(module.exports.sync, cmd, opts); /***/ }, @@ -18786,103 +18811,103 @@ module.exports = /******/ (() => { /***/ 4689: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; // Older verions of Node.js might not have `util.getSystemErrorName()`. // In that case, fall back to a deprecated internal. - const util = __webpack_require__(1669) + const util = __webpack_require__(1669); - let uv + let uv; if (typeof util.getSystemErrorName === 'function') { - module.exports = util.getSystemErrorName + module.exports = util.getSystemErrorName; } else { try { - uv = process.binding('uv') + uv = process.binding('uv'); if (typeof uv.errname !== 'function') { - throw new TypeError('uv.errname is not a function') + throw new TypeError('uv.errname is not a function'); } } catch (err) { console.error( "execa/lib/errname: unable to establish process.binding('uv')", - err - ) - uv = null + err, + ); + uv = null; } - module.exports = code => errname(uv, code) + module.exports = (code) => errname(uv, code); } // Used for testing the fallback behavior - module.exports.__test__ = errname + module.exports.__test__ = errname; function errname(uv, code) { if (uv) { - return uv.errname(code) + return uv.errname(code); } if (!(code < 0)) { - throw new Error('err >= 0') + throw new Error('err >= 0'); } - return `Unknown system error ${code}` + return `Unknown system error ${code}`; } /***/ }, - /***/ 166: /***/ module => { - 'use strict' + /***/ 166: /***/ (module) => { + 'use strict'; - const alias = ['stdin', 'stdout', 'stderr'] + const alias = ['stdin', 'stdout', 'stderr']; - const hasAlias = opts => alias.some(x => Boolean(opts[x])) + const hasAlias = (opts) => alias.some((x) => Boolean(opts[x])); - module.exports = opts => { + module.exports = (opts) => { if (!opts) { - return null + return null; } if (opts.stdio && hasAlias(opts)) { throw new Error( `It's not possible to provide \`stdio\` in combination with one of ${alias - .map(x => `\`${x}\``) - .join(', ')}` - ) + .map((x) => `\`${x}\``) + .join(', ')}`, + ); } if (typeof opts.stdio === 'string') { - return opts.stdio + return opts.stdio; } - const stdio = opts.stdio || [] + const stdio = opts.stdio || []; if (!Array.isArray(stdio)) { throw new TypeError( - `Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\`` - ) + `Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``, + ); } - const result = [] - const len = Math.max(stdio.length, alias.length) + const result = []; + const len = Math.max(stdio.length, alias.length); for (let i = 0; i < len; i++) { - let value = null + let value = null; if (stdio[i] !== undefined) { - value = stdio[i] + value = stdio[i]; } else if (opts[alias[i]] !== undefined) { - value = opts[alias[i]] + value = opts[alias[i]]; } - result[i] = value + result[i] = value; } - return result - } + return result; + }; /***/ }, @@ -18890,27 +18915,27 @@ module.exports = /******/ (() => { /***/ 1856: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { // Note: since nyc uses this module to output coverage, any lines // that are in the direct sync flow of nyc's outputCoverage are // ignored, since we can never get coverage for them. - var assert = __webpack_require__(2357) - var signals = __webpack_require__(8624) + var assert = __webpack_require__(2357); + var signals = __webpack_require__(8624); - var EE = __webpack_require__(8614) + var EE = __webpack_require__(8614); /* istanbul ignore if */ if (typeof EE !== 'function') { - EE = EE.EventEmitter + EE = EE.EventEmitter; } - var emitter + var emitter; if (process.__signal_exit_emitter__) { - emitter = process.__signal_exit_emitter__ + emitter = process.__signal_exit_emitter__; } else { - emitter = process.__signal_exit_emitter__ = new EE() - emitter.count = 0 - emitter.emitted = {} + emitter = process.__signal_exit_emitter__ = new EE(); + emitter.count = 0; + emitter.emitted = {}; } // Because this emitter is a global, we have to check to see if a @@ -18918,148 +18943,148 @@ module.exports = /******/ (() => { // I know what you're about to say. But literally everything about // signal-exit is a compromise with evil. Get used to it. if (!emitter.infinite) { - emitter.setMaxListeners(Infinity) - emitter.infinite = true + emitter.setMaxListeners(Infinity); + emitter.infinite = true; } module.exports = function (cb, opts) { assert.equal( typeof cb, 'function', - 'a callback must be provided for exit handler' - ) + 'a callback must be provided for exit handler', + ); if (loaded === false) { - load() + load(); } - var ev = 'exit' + var ev = 'exit'; if (opts && opts.alwaysLast) { - ev = 'afterexit' + ev = 'afterexit'; } var remove = function () { - emitter.removeListener(ev, cb) + emitter.removeListener(ev, cb); if ( emitter.listeners('exit').length === 0 && emitter.listeners('afterexit').length === 0 ) { - unload() + unload(); } - } - emitter.on(ev, cb) + }; + emitter.on(ev, cb); - return remove - } + return remove; + }; - module.exports.unload = unload + module.exports.unload = unload; function unload() { if (!loaded) { - return + return; } - loaded = false + loaded = false; signals.forEach(function (sig) { try { - process.removeListener(sig, sigListeners[sig]) + process.removeListener(sig, sigListeners[sig]); } catch (er) {} - }) - process.emit = originalProcessEmit - process.reallyExit = originalProcessReallyExit - emitter.count -= 1 + }); + process.emit = originalProcessEmit; + process.reallyExit = originalProcessReallyExit; + emitter.count -= 1; } function emit(event, code, signal) { if (emitter.emitted[event]) { - return + return; } - emitter.emitted[event] = true - emitter.emit(event, code, signal) + emitter.emitted[event] = true; + emitter.emit(event, code, signal); } // { : , ... } - var sigListeners = {} + var sigListeners = {}; signals.forEach(function (sig) { sigListeners[sig] = function listener() { // If there are no other listeners, an exit is coming! // Simplest way: remove us and then re-send the signal. // We know that this will kill the process, so we can // safely emit now. - var listeners = process.listeners(sig) + var listeners = process.listeners(sig); if (listeners.length === emitter.count) { - unload() - emit('exit', null, sig) + unload(); + emit('exit', null, sig); /* istanbul ignore next */ - emit('afterexit', null, sig) + emit('afterexit', null, sig); /* istanbul ignore next */ - process.kill(process.pid, sig) + process.kill(process.pid, sig); } - } - }) + }; + }); module.exports.signals = function () { - return signals - } + return signals; + }; - module.exports.load = load + module.exports.load = load; - var loaded = false + var loaded = false; function load() { if (loaded) { - return + return; } - loaded = true + loaded = true; // This is the number of onSignalExit's that are in play. // It's important so that we can count the correct number of // listeners on signals, and don't wait for the other one to // handle it instead of us. - emitter.count += 1 + emitter.count += 1; signals = signals.filter(function (sig) { try { - process.on(sig, sigListeners[sig]) - return true + process.on(sig, sigListeners[sig]); + return true; } catch (er) { - return false + return false; } - }) + }); - process.emit = processEmit - process.reallyExit = processReallyExit + process.emit = processEmit; + process.reallyExit = processReallyExit; } - var originalProcessReallyExit = process.reallyExit + var originalProcessReallyExit = process.reallyExit; function processReallyExit(code) { - process.exitCode = code || 0 - emit('exit', process.exitCode, null) + process.exitCode = code || 0; + emit('exit', process.exitCode, null); /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) + emit('afterexit', process.exitCode, null); /* istanbul ignore next */ - originalProcessReallyExit.call(process, process.exitCode) + originalProcessReallyExit.call(process, process.exitCode); } - var originalProcessEmit = process.emit + var originalProcessEmit = process.emit; function processEmit(ev, arg) { if (ev === 'exit') { if (arg !== undefined) { - process.exitCode = arg + process.exitCode = arg; } - var ret = originalProcessEmit.apply(this, arguments) - emit('exit', process.exitCode, null) + var ret = originalProcessEmit.apply(this, arguments); + emit('exit', process.exitCode, null); /* istanbul ignore next */ - emit('afterexit', process.exitCode, null) - return ret + emit('afterexit', process.exitCode, null); + return ret; } else { - return originalProcessEmit.apply(this, arguments) + return originalProcessEmit.apply(this, arguments); } } /***/ }, - /***/ 8624: /***/ module => { + /***/ 8624: /***/ (module) => { // This is not the set of all possible signals. // // It IS, however, the set of all signals that trigger @@ -19080,7 +19105,7 @@ module.exports = /******/ (() => { // artificially, inherently leave the process in a // state from which it is not safe to try and enter JS // listeners. - module.exports = ['SIGABRT', 'SIGALRM', 'SIGHUP', 'SIGINT', 'SIGTERM'] + module.exports = ['SIGABRT', 'SIGALRM', 'SIGHUP', 'SIGINT', 'SIGTERM']; if (process.platform !== 'win32') { module.exports.push( @@ -19091,11 +19116,11 @@ module.exports = /******/ (() => { 'SIGTRAP', 'SIGSYS', 'SIGQUIT', - 'SIGIOT' + 'SIGIOT', // should detect profiler and enable/disable accordingly. // see #21 // 'SIGPROF' - ) + ); } if (process.platform === 'linux') { @@ -19104,8 +19129,8 @@ module.exports = /******/ (() => { 'SIGPOLL', 'SIGPWR', 'SIGSTKFLT', - 'SIGUNUSED' - ) + 'SIGUNUSED', + ); } /***/ @@ -19114,60 +19139,60 @@ module.exports = /******/ (() => { /***/ 1585: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const { PassThrough } = __webpack_require__(2413) + const { PassThrough } = __webpack_require__(2413); - module.exports = options => { - options = Object.assign({}, options) + module.exports = (options) => { + options = Object.assign({}, options); - const { array } = options - let { encoding } = options - const buffer = encoding === 'buffer' - let objectMode = false + const { array } = options; + let { encoding } = options; + const buffer = encoding === 'buffer'; + let objectMode = false; if (array) { - objectMode = !(encoding || buffer) + objectMode = !(encoding || buffer); } else { - encoding = encoding || 'utf8' + encoding = encoding || 'utf8'; } if (buffer) { - encoding = null + encoding = null; } - let len = 0 - const ret = [] - const stream = new PassThrough({ objectMode }) + let len = 0; + const ret = []; + const stream = new PassThrough({ objectMode }); if (encoding) { - stream.setEncoding(encoding) + stream.setEncoding(encoding); } - stream.on('data', chunk => { - ret.push(chunk) + stream.on('data', (chunk) => { + ret.push(chunk); if (objectMode) { - len = ret.length + len = ret.length; } else { - len += chunk.length + len += chunk.length; } - }) + }); stream.getBufferedValue = () => { if (array) { - return ret + return ret; } - return buffer ? Buffer.concat(ret, len) : ret.join('') - } + return buffer ? Buffer.concat(ret, len) : ret.join(''); + }; - stream.getBufferedLength = () => len + stream.getBufferedLength = () => len; - return stream - } + return stream; + }; /***/ }, @@ -19175,76 +19200,76 @@ module.exports = /******/ (() => { /***/ 1766: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const pump = __webpack_require__(8341) - const bufferStream = __webpack_require__(1585) + const pump = __webpack_require__(8341); + const bufferStream = __webpack_require__(1585); class MaxBufferError extends Error { constructor() { - super('maxBuffer exceeded') - this.name = 'MaxBufferError' + super('maxBuffer exceeded'); + this.name = 'MaxBufferError'; } } function getStream(inputStream, options) { if (!inputStream) { - return Promise.reject(new Error('Expected a stream')) + return Promise.reject(new Error('Expected a stream')); } - options = Object.assign({ maxBuffer: Infinity }, options) + options = Object.assign({ maxBuffer: Infinity }, options); - const { maxBuffer } = options + const { maxBuffer } = options; - let stream + let stream; return new Promise((resolve, reject) => { - const rejectPromise = error => { + const rejectPromise = (error) => { if (error) { // A null check - error.bufferedData = stream.getBufferedValue() + error.bufferedData = stream.getBufferedValue(); } - reject(error) - } + reject(error); + }; - stream = pump(inputStream, bufferStream(options), error => { + stream = pump(inputStream, bufferStream(options), (error) => { if (error) { - rejectPromise(error) - return + rejectPromise(error); + return; } - resolve() - }) + resolve(); + }); stream.on('data', () => { if (stream.getBufferedLength() > maxBuffer) { - rejectPromise(new MaxBufferError()) + rejectPromise(new MaxBufferError()); } - }) - }).then(() => stream.getBufferedValue()) + }); + }).then(() => stream.getBufferedValue()); } - module.exports = getStream + module.exports = getStream; module.exports.buffer = (stream, options) => - getStream(stream, Object.assign({}, options, { encoding: 'buffer' })) + getStream(stream, Object.assign({}, options, { encoding: 'buffer' })); module.exports.array = (stream, options) => - getStream(stream, Object.assign({}, options, { array: true })) - module.exports.MaxBufferError = MaxBufferError + getStream(stream, Object.assign({}, options, { array: true })); + module.exports.MaxBufferError = MaxBufferError; /***/ }, - /***/ 1554: /***/ module => { - 'use strict' + /***/ 1554: /***/ (module) => { + 'use strict'; var isStream = (module.exports = function (stream) { return ( stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function' - ) - }) + ); + }); isStream.writable = function (stream) { return ( @@ -19252,8 +19277,8 @@ module.exports = /******/ (() => { stream.writable !== false && typeof stream._write === 'function' && typeof stream._writableState === 'object' - ) - } + ); + }; isStream.readable = function (stream) { return ( @@ -19261,20 +19286,20 @@ module.exports = /******/ (() => { stream.readable !== false && typeof stream._read === 'function' && typeof stream._readableState === 'object' - ) - } + ); + }; isStream.duplex = function (stream) { - return isStream.writable(stream) && isStream.readable(stream) - } + return isStream.writable(stream) && isStream.readable(stream); + }; isStream.transform = function (stream) { return ( isStream.duplex(stream) && typeof stream._transform === 'function' && typeof stream._transformState === 'object' - ) - } + ); + }; /***/ }, @@ -19282,62 +19307,62 @@ module.exports = /******/ (() => { /***/ 7126: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var fs = __webpack_require__(5747) - var core + var fs = __webpack_require__(5747); + var core; if (process.platform === 'win32' || global.TESTING_WINDOWS) { - core = __webpack_require__(2001) + core = __webpack_require__(2001); } else { - core = __webpack_require__(9728) + core = __webpack_require__(9728); } - module.exports = isexe - isexe.sync = sync + module.exports = isexe; + isexe.sync = sync; function isexe(path, options, cb) { if (typeof options === 'function') { - cb = options - options = {} + cb = options; + options = {}; } if (!cb) { if (typeof Promise !== 'function') { - throw new TypeError('callback not provided') + throw new TypeError('callback not provided'); } return new Promise(function (resolve, reject) { isexe(path, options || {}, function (er, is) { if (er) { - reject(er) + reject(er); } else { - resolve(is) + resolve(is); } - }) - }) + }); + }); } core(path, options || {}, function (er, is) { // ignore EACCES because that just means we aren't allowed to run it if (er) { if (er.code === 'EACCES' || (options && options.ignoreErrors)) { - er = null - is = false + er = null; + is = false; } } - cb(er, is) - }) + cb(er, is); + }); } function sync(path, options) { // my kingdom for a filtered catch try { - return core.sync(path, options || {}) + return core.sync(path, options || {}); } catch (er) { if ((options && options.ignoreErrors) || er.code === 'EACCES') { - return false + return false; } else { - throw er + throw er; } } } @@ -19348,53 +19373,53 @@ module.exports = /******/ (() => { /***/ 9728: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = isexe - isexe.sync = sync + module.exports = isexe; + isexe.sync = sync; - var fs = __webpack_require__(5747) + var fs = __webpack_require__(5747); function isexe(path, options, cb) { fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, options)) - }) + cb(er, er ? false : checkStat(stat, options)); + }); } function sync(path, options) { - return checkStat(fs.statSync(path), options) + return checkStat(fs.statSync(path), options); } function checkStat(stat, options) { - return stat.isFile() && checkMode(stat, options) + return stat.isFile() && checkMode(stat, options); } function checkMode(stat, options) { - var mod = stat.mode - var uid = stat.uid - var gid = stat.gid + var mod = stat.mode; + var uid = stat.uid; + var gid = stat.gid; var myUid = options.uid !== undefined ? options.uid - : process.getuid && process.getuid() + : process.getuid && process.getuid(); var myGid = options.gid !== undefined ? options.gid - : process.getgid && process.getgid() + : process.getgid && process.getgid(); - var u = parseInt('100', 8) - var g = parseInt('010', 8) - var o = parseInt('001', 8) - var ug = u | g + var u = parseInt('100', 8); + var g = parseInt('010', 8); + var o = parseInt('001', 8); + var ug = u | g; var ret = mod & o || (mod & g && gid === myGid) || (mod & u && uid === myUid) || - (mod & ug && myUid === 0) + (mod & ug && myUid === 0); - return ret + return ret; } /***/ @@ -19403,55 +19428,55 @@ module.exports = /******/ (() => { /***/ 2001: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = isexe - isexe.sync = sync + module.exports = isexe; + isexe.sync = sync; - var fs = __webpack_require__(5747) + var fs = __webpack_require__(5747); function checkPathExt(path, options) { var pathext = - options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT + options.pathExt !== undefined ? options.pathExt : process.env.PATHEXT; if (!pathext) { - return true + return true; } - pathext = pathext.split(';') + pathext = pathext.split(';'); if (pathext.indexOf('') !== -1) { - return true + return true; } for (var i = 0; i < pathext.length; i++) { - var p = pathext[i].toLowerCase() + var p = pathext[i].toLowerCase(); if (p && path.substr(-p.length).toLowerCase() === p) { - return true + return true; } } - return false + return false; } function checkStat(stat, path, options) { if (!stat.isSymbolicLink() && !stat.isFile()) { - return false + return false; } - return checkPathExt(path, options) + return checkPathExt(path, options); } function isexe(path, options, cb) { fs.stat(path, function (er, stat) { - cb(er, er ? false : checkStat(stat, path, options)) - }) + cb(er, er ? false : checkStat(stat, path, options)); + }); } function sync(path, options) { - return checkStat(fs.statSync(path), path, options) + return checkStat(fs.statSync(path), path, options); } /***/ }, - /***/ 9197: /***/ module => { + /***/ 9197: /***/ (module) => { /** * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` @@ -19462,50 +19487,50 @@ module.exports = /******/ (() => { */ /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function' + var FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__' + var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0 + var INFINITY = 1 / 0; /** `Object#toString` result references. */ var funcTag = '[object Function]', genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]' + symbolTag = '[object Symbol]'; /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to match backslashes in property paths. */ - var reEscapeChar = /\\(\\)?/g + var reEscapeChar = /\\(\\)?/g; /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/ + var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && - global + global; /** Detect free variable `self`. */ var freeSelf = - typeof self == 'object' && self && self.Object === Object && self + typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')() + var root = freeGlobal || freeSelf || Function('return this')(); /** * Gets the value at `key` of `object`. @@ -19516,7 +19541,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the property value. */ function getValue(object, key) { - return object == null ? undefined : object[key] + return object == null ? undefined : object[key]; } /** @@ -19529,43 +19554,43 @@ module.exports = /******/ (() => { function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. - var result = false + var result = false; if (value != null && typeof value.toString != 'function') { try { - result = !!(value + '') + result = !!(value + ''); } catch (e) {} } - return result + return result; } /** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, - objectProto = Object.prototype + objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__'] + var coreJsData = root['__core-js_shared__']; /** Used to detect methods masquerading as native. */ var maskSrcKey = (function () { var uid = /[^.]+$/.exec( - (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '' - ) - return uid ? 'Symbol(src)_1.' + uid : '' - })() + (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '', + ); + return uid ? 'Symbol(src)_1.' + uid : ''; + })(); /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString + var funcToString = funcProto.toString; /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty + var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ - var objectToString = objectProto.toString + var objectToString = objectProto.toString; /** Used to detect if a method is native. */ var reIsNative = RegExp( @@ -19575,22 +19600,22 @@ module.exports = /******/ (() => { .replace(reRegExpChar, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' + '$1.*?', ) + - '$' - ) + '$', + ); /** Built-in value references. */ var Symbol = root.Symbol, - splice = arrayProto.splice + splice = arrayProto.splice; /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create') + nativeCreate = getNative(Object, 'create'); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined + symbolToString = symbolProto ? symbolProto.toString : undefined; /** * Creates a hash object. @@ -19601,12 +19626,12 @@ module.exports = /******/ (() => { */ function Hash(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -19618,7 +19643,7 @@ module.exports = /******/ (() => { * @memberOf Hash */ function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {} + this.__data__ = nativeCreate ? nativeCreate(null) : {}; } /** @@ -19632,7 +19657,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key] + return this.has(key) && delete this.__data__[key]; } /** @@ -19645,12 +19670,12 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function hashGet(key) { - var data = this.__data__ + var data = this.__data__; if (nativeCreate) { - var result = data[key] - return result === HASH_UNDEFINED ? undefined : result + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; } - return hasOwnProperty.call(data, key) ? data[key] : undefined + return hasOwnProperty.call(data, key) ? data[key] : undefined; } /** @@ -19663,10 +19688,10 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { - var data = this.__data__ + var data = this.__data__; return nativeCreate ? data[key] !== undefined - : hasOwnProperty.call(data, key) + : hasOwnProperty.call(data, key); } /** @@ -19680,17 +19705,18 @@ module.exports = /******/ (() => { * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { - var data = this.__data__ - data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value - return this + var data = this.__data__; + data[key] = + nativeCreate && value === undefined ? HASH_UNDEFINED : value; + return this; } // Add methods to `Hash`. - Hash.prototype.clear = hashClear - Hash.prototype['delete'] = hashDelete - Hash.prototype.get = hashGet - Hash.prototype.has = hashHas - Hash.prototype.set = hashSet + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; /** * Creates an list cache object. @@ -19701,12 +19727,12 @@ module.exports = /******/ (() => { */ function ListCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -19718,7 +19744,7 @@ module.exports = /******/ (() => { * @memberOf ListCache */ function listCacheClear() { - this.__data__ = [] + this.__data__ = []; } /** @@ -19732,18 +19758,18 @@ module.exports = /******/ (() => { */ function listCacheDelete(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - return false + return false; } - var lastIndex = data.length - 1 + var lastIndex = data.length - 1; if (index == lastIndex) { - data.pop() + data.pop(); } else { - splice.call(data, index, 1) + splice.call(data, index, 1); } - return true + return true; } /** @@ -19757,9 +19783,9 @@ module.exports = /******/ (() => { */ function listCacheGet(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1] + return index < 0 ? undefined : data[index][1]; } /** @@ -19772,7 +19798,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1 + return assocIndexOf(this.__data__, key) > -1; } /** @@ -19787,22 +19813,22 @@ module.exports = /******/ (() => { */ function listCacheSet(key, value) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - data.push([key, value]) + data.push([key, value]); } else { - data[index][1] = value + data[index][1] = value; } - return this + return this; } // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear - ListCache.prototype['delete'] = listCacheDelete - ListCache.prototype.get = listCacheGet - ListCache.prototype.has = listCacheHas - ListCache.prototype.set = listCacheSet + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; /** * Creates a map cache object to store key-value pairs. @@ -19813,12 +19839,12 @@ module.exports = /******/ (() => { */ function MapCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -19833,8 +19859,8 @@ module.exports = /******/ (() => { this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), - string: new Hash() - } + string: new Hash(), + }; } /** @@ -19847,7 +19873,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key) + return getMapData(this, key)['delete'](key); } /** @@ -19860,7 +19886,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function mapCacheGet(key) { - return getMapData(this, key).get(key) + return getMapData(this, key).get(key); } /** @@ -19873,7 +19899,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { - return getMapData(this, key).has(key) + return getMapData(this, key).has(key); } /** @@ -19887,16 +19913,16 @@ module.exports = /******/ (() => { * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value) - return this + getMapData(this, key).set(key, value); + return this; } // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear - MapCache.prototype['delete'] = mapCacheDelete - MapCache.prototype.get = mapCacheGet - MapCache.prototype.has = mapCacheHas - MapCache.prototype.set = mapCacheSet + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; /** * Gets the index at which the `key` is found in `array` of key-value pairs. @@ -19907,13 +19933,13 @@ module.exports = /******/ (() => { * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { - var length = array.length + var length = array.length; while (length--) { if (eq(array[length][0], key)) { - return length + return length; } } - return -1 + return -1; } /** @@ -19925,15 +19951,15 @@ module.exports = /******/ (() => { * @returns {*} Returns the resolved value. */ function baseGet(object, path) { - path = isKey(path, object) ? [path] : castPath(path) + path = isKey(path, object) ? [path] : castPath(path); var index = 0, - length = path.length + length = path.length; while (object != null && index < length) { - object = object[toKey(path[index++])] + object = object[toKey(path[index++])]; } - return index && index == length ? object : undefined + return index && index == length ? object : undefined; } /** @@ -19946,11 +19972,11 @@ module.exports = /******/ (() => { */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { - return false + return false; } var pattern = - isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor - return pattern.test(toSource(value)) + isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); } /** @@ -19964,13 +19990,13 @@ module.exports = /******/ (() => { function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { - return value + return value; } if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : '' + return symbolToString ? symbolToString.call(value) : ''; } - var result = value + '' - return result == '0' && 1 / value == -INFINITY ? '-0' : result + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; } /** @@ -19981,7 +20007,7 @@ module.exports = /******/ (() => { * @returns {Array} Returns the cast property path array. */ function castPath(value) { - return isArray(value) ? value : stringToPath(value) + return isArray(value) ? value : stringToPath(value); } /** @@ -19993,10 +20019,10 @@ module.exports = /******/ (() => { * @returns {*} Returns the map data. */ function getMapData(map, key) { - var data = map.__data__ + var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map + : data.map; } /** @@ -20008,8 +20034,8 @@ module.exports = /******/ (() => { * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { - var value = getValue(object, key) - return baseIsNative(value) ? value : undefined + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } /** @@ -20022,9 +20048,9 @@ module.exports = /******/ (() => { */ function isKey(value, object) { if (isArray(value)) { - return false + return false; } - var type = typeof value + var type = typeof value; if ( type == 'number' || type == 'symbol' || @@ -20032,13 +20058,13 @@ module.exports = /******/ (() => { value == null || isSymbol(value) ) { - return true + return true; } return ( reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)) - ) + ); } /** @@ -20049,13 +20075,13 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { - var type = typeof value + var type = typeof value; return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' - : value === null + : value === null; } /** @@ -20066,7 +20092,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func + return !!maskSrcKey && maskSrcKey in func; } /** @@ -20077,19 +20103,19 @@ module.exports = /******/ (() => { * @returns {Array} Returns the property path array. */ var stringToPath = memoize(function (string) { - string = toString(string) + string = toString(string); - var result = [] + var result = []; if (reLeadingDot.test(string)) { - result.push('') + result.push(''); } string.replace(rePropName, function (match, number, quote, string) { result.push( - quote ? string.replace(reEscapeChar, '$1') : number || match - ) - }) - return result - }) + quote ? string.replace(reEscapeChar, '$1') : number || match, + ); + }); + return result; + }); /** * Converts `value` to a string key if it's not a string or symbol. @@ -20100,10 +20126,10 @@ module.exports = /******/ (() => { */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { - return value + return value; } - var result = value + '' - return result == '0' && 1 / value == -INFINITY ? '-0' : result + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; } /** @@ -20116,13 +20142,13 @@ module.exports = /******/ (() => { function toSource(func) { if (func != null) { try { - return funcToString.call(func) + return funcToString.call(func); } catch (e) {} try { - return func + '' + return func + ''; } catch (e) {} } - return '' + return ''; } /** @@ -20174,26 +20200,26 @@ module.exports = /******/ (() => { typeof func != 'function' || (resolver && typeof resolver != 'function') ) { - throw new TypeError(FUNC_ERROR_TEXT) + throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function () { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache + cache = memoized.cache; if (cache.has(key)) { - return cache.get(key) + return cache.get(key); } - var result = func.apply(this, args) - memoized.cache = cache.set(key, result) - return result - } - memoized.cache = new (memoize.Cache || MapCache)() - return memoized + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; } // Assign cache to `_.memoize`. - memoize.Cache = MapCache + memoize.Cache = MapCache; /** * Performs a @@ -20228,7 +20254,7 @@ module.exports = /******/ (() => { * // => true */ function eq(value, other) { - return value === other || (value !== value && other !== other) + return value === other || (value !== value && other !== other); } /** @@ -20254,7 +20280,7 @@ module.exports = /******/ (() => { * _.isArray(_.noop); * // => false */ - var isArray = Array.isArray + var isArray = Array.isArray; /** * Checks if `value` is classified as a `Function` object. @@ -20276,8 +20302,8 @@ module.exports = /******/ (() => { function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : '' - return tag == funcTag || tag == genTag + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; } /** @@ -20306,8 +20332,8 @@ module.exports = /******/ (() => { * // => false */ function isObject(value) { - var type = typeof value - return !!value && (type == 'object' || type == 'function') + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); } /** @@ -20335,7 +20361,7 @@ module.exports = /******/ (() => { * // => false */ function isObjectLike(value) { - return !!value && typeof value == 'object' + return !!value && typeof value == 'object'; } /** @@ -20359,7 +20385,7 @@ module.exports = /******/ (() => { return ( typeof value == 'symbol' || (isObjectLike(value) && objectToString.call(value) == symbolTag) - ) + ); } /** @@ -20384,7 +20410,7 @@ module.exports = /******/ (() => { * // => '1,2,3' */ function toString(value) { - return value == null ? '' : baseToString(value) + return value == null ? '' : baseToString(value); } /** @@ -20413,16 +20439,16 @@ module.exports = /******/ (() => { * // => 'default' */ function get(object, path, defaultValue) { - var result = object == null ? undefined : baseGet(object, path) - return result === undefined ? defaultValue : result + var result = object == null ? undefined : baseGet(object, path); + return result === undefined ? defaultValue : result; } - module.exports = get + module.exports = get; /***/ }, - /***/ 1552: /***/ module => { + /***/ 1552: /***/ (module) => { /** * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` @@ -20433,54 +20459,54 @@ module.exports = /******/ (() => { */ /** Used as the `TypeError` message for "Functions" methods. */ - var FUNC_ERROR_TEXT = 'Expected a function' + var FUNC_ERROR_TEXT = 'Expected a function'; /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__' + var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as references for various `Number` constants. */ var INFINITY = 1 / 0, - MAX_SAFE_INTEGER = 9007199254740991 + MAX_SAFE_INTEGER = 9007199254740991; /** `Object#toString` result references. */ var funcTag = '[object Function]', genTag = '[object GeneratorFunction]', - symbolTag = '[object Symbol]' + symbolTag = '[object Symbol]'; /** Used to match property names within property paths. */ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, reLeadingDot = /^\./, - rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g + rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to match backslashes in property paths. */ - var reEscapeChar = /\\(\\)?/g + var reEscapeChar = /\\(\\)?/g; /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/ + var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used to detect unsigned integer values. */ - var reIsUint = /^(?:0|[1-9]\d*)$/ + var reIsUint = /^(?:0|[1-9]\d*)$/; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && - global + global; /** Detect free variable `self`. */ var freeSelf = - typeof self == 'object' && self && self.Object === Object && self + typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')() + var root = freeGlobal || freeSelf || Function('return this')(); /** * Gets the value at `key` of `object`. @@ -20491,7 +20517,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the property value. */ function getValue(object, key) { - return object == null ? undefined : object[key] + return object == null ? undefined : object[key]; } /** @@ -20504,43 +20530,43 @@ module.exports = /******/ (() => { function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. - var result = false + var result = false; if (value != null && typeof value.toString != 'function') { try { - result = !!(value + '') + result = !!(value + ''); } catch (e) {} } - return result + return result; } /** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, - objectProto = Object.prototype + objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__'] + var coreJsData = root['__core-js_shared__']; /** Used to detect methods masquerading as native. */ var maskSrcKey = (function () { var uid = /[^.]+$/.exec( - (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '' - ) - return uid ? 'Symbol(src)_1.' + uid : '' - })() + (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '', + ); + return uid ? 'Symbol(src)_1.' + uid : ''; + })(); /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString + var funcToString = funcProto.toString; /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty + var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ - var objectToString = objectProto.toString + var objectToString = objectProto.toString; /** Used to detect if a method is native. */ var reIsNative = RegExp( @@ -20550,22 +20576,22 @@ module.exports = /******/ (() => { .replace(reRegExpChar, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' + '$1.*?', ) + - '$' - ) + '$', + ); /** Built-in value references. */ var Symbol = root.Symbol, - splice = arrayProto.splice + splice = arrayProto.splice; /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'), - nativeCreate = getNative(Object, 'create') + nativeCreate = getNative(Object, 'create'); /** Used to convert symbols to primitives and strings. */ var symbolProto = Symbol ? Symbol.prototype : undefined, - symbolToString = symbolProto ? symbolProto.toString : undefined + symbolToString = symbolProto ? symbolProto.toString : undefined; /** * Creates a hash object. @@ -20576,12 +20602,12 @@ module.exports = /******/ (() => { */ function Hash(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -20593,7 +20619,7 @@ module.exports = /******/ (() => { * @memberOf Hash */ function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {} + this.__data__ = nativeCreate ? nativeCreate(null) : {}; } /** @@ -20607,7 +20633,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key] + return this.has(key) && delete this.__data__[key]; } /** @@ -20620,12 +20646,12 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function hashGet(key) { - var data = this.__data__ + var data = this.__data__; if (nativeCreate) { - var result = data[key] - return result === HASH_UNDEFINED ? undefined : result + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; } - return hasOwnProperty.call(data, key) ? data[key] : undefined + return hasOwnProperty.call(data, key) ? data[key] : undefined; } /** @@ -20638,10 +20664,10 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { - var data = this.__data__ + var data = this.__data__; return nativeCreate ? data[key] !== undefined - : hasOwnProperty.call(data, key) + : hasOwnProperty.call(data, key); } /** @@ -20655,17 +20681,18 @@ module.exports = /******/ (() => { * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { - var data = this.__data__ - data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value - return this + var data = this.__data__; + data[key] = + nativeCreate && value === undefined ? HASH_UNDEFINED : value; + return this; } // Add methods to `Hash`. - Hash.prototype.clear = hashClear - Hash.prototype['delete'] = hashDelete - Hash.prototype.get = hashGet - Hash.prototype.has = hashHas - Hash.prototype.set = hashSet + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; /** * Creates an list cache object. @@ -20676,12 +20703,12 @@ module.exports = /******/ (() => { */ function ListCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -20693,7 +20720,7 @@ module.exports = /******/ (() => { * @memberOf ListCache */ function listCacheClear() { - this.__data__ = [] + this.__data__ = []; } /** @@ -20707,18 +20734,18 @@ module.exports = /******/ (() => { */ function listCacheDelete(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - return false + return false; } - var lastIndex = data.length - 1 + var lastIndex = data.length - 1; if (index == lastIndex) { - data.pop() + data.pop(); } else { - splice.call(data, index, 1) + splice.call(data, index, 1); } - return true + return true; } /** @@ -20732,9 +20759,9 @@ module.exports = /******/ (() => { */ function listCacheGet(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1] + return index < 0 ? undefined : data[index][1]; } /** @@ -20747,7 +20774,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1 + return assocIndexOf(this.__data__, key) > -1; } /** @@ -20762,22 +20789,22 @@ module.exports = /******/ (() => { */ function listCacheSet(key, value) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - data.push([key, value]) + data.push([key, value]); } else { - data[index][1] = value + data[index][1] = value; } - return this + return this; } // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear - ListCache.prototype['delete'] = listCacheDelete - ListCache.prototype.get = listCacheGet - ListCache.prototype.has = listCacheHas - ListCache.prototype.set = listCacheSet + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; /** * Creates a map cache object to store key-value pairs. @@ -20788,12 +20815,12 @@ module.exports = /******/ (() => { */ function MapCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -20808,8 +20835,8 @@ module.exports = /******/ (() => { this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), - string: new Hash() - } + string: new Hash(), + }; } /** @@ -20822,7 +20849,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key) + return getMapData(this, key)['delete'](key); } /** @@ -20835,7 +20862,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function mapCacheGet(key) { - return getMapData(this, key).get(key) + return getMapData(this, key).get(key); } /** @@ -20848,7 +20875,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { - return getMapData(this, key).has(key) + return getMapData(this, key).has(key); } /** @@ -20862,16 +20889,16 @@ module.exports = /******/ (() => { * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value) - return this + getMapData(this, key).set(key, value); + return this; } // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear - MapCache.prototype['delete'] = mapCacheDelete - MapCache.prototype.get = mapCacheGet - MapCache.prototype.has = mapCacheHas - MapCache.prototype.set = mapCacheSet + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; /** * Assigns `value` to `key` of `object` if the existing value is not equivalent @@ -20884,12 +20911,12 @@ module.exports = /******/ (() => { * @param {*} value The value to assign. */ function assignValue(object, key, value) { - var objValue = object[key] + var objValue = object[key]; if ( !(hasOwnProperty.call(object, key) && eq(objValue, value)) || (value === undefined && !(key in object)) ) { - object[key] = value + object[key] = value; } } @@ -20902,13 +20929,13 @@ module.exports = /******/ (() => { * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { - var length = array.length + var length = array.length; while (length--) { if (eq(array[length][0], key)) { - return length + return length; } } - return -1 + return -1; } /** @@ -20921,11 +20948,11 @@ module.exports = /******/ (() => { */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { - return false + return false; } var pattern = - isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor - return pattern.test(toSource(value)) + isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); } /** @@ -20940,36 +20967,36 @@ module.exports = /******/ (() => { */ function baseSet(object, path, value, customizer) { if (!isObject(object)) { - return object + return object; } - path = isKey(path, object) ? [path] : castPath(path) + path = isKey(path, object) ? [path] : castPath(path); var index = -1, length = path.length, lastIndex = length - 1, - nested = object + nested = object; while (nested != null && ++index < length) { var key = toKey(path[index]), - newValue = value + newValue = value; if (index != lastIndex) { - var objValue = nested[key] + var objValue = nested[key]; newValue = customizer ? customizer(objValue, key, nested) - : undefined + : undefined; if (newValue === undefined) { newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] - : {} + : {}; } } - assignValue(nested, key, newValue) - nested = nested[key] + assignValue(nested, key, newValue); + nested = nested[key]; } - return object + return object; } /** @@ -20983,13 +21010,13 @@ module.exports = /******/ (() => { function baseToString(value) { // Exit early for strings to avoid a performance hit in some environments. if (typeof value == 'string') { - return value + return value; } if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : '' + return symbolToString ? symbolToString.call(value) : ''; } - var result = value + '' - return result == '0' && 1 / value == -INFINITY ? '-0' : result + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; } /** @@ -21000,7 +21027,7 @@ module.exports = /******/ (() => { * @returns {Array} Returns the cast property path array. */ function castPath(value) { - return isArray(value) ? value : stringToPath(value) + return isArray(value) ? value : stringToPath(value); } /** @@ -21012,10 +21039,10 @@ module.exports = /******/ (() => { * @returns {*} Returns the map data. */ function getMapData(map, key) { - var data = map.__data__ + var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map + : data.map; } /** @@ -21027,8 +21054,8 @@ module.exports = /******/ (() => { * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { - var value = getValue(object, key) - return baseIsNative(value) ? value : undefined + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } /** @@ -21040,14 +21067,14 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. */ function isIndex(value, length) { - length = length == null ? MAX_SAFE_INTEGER : length + length = length == null ? MAX_SAFE_INTEGER : length; return ( !!length && (typeof value == 'number' || reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length - ) + ); } /** @@ -21060,9 +21087,9 @@ module.exports = /******/ (() => { */ function isKey(value, object) { if (isArray(value)) { - return false + return false; } - var type = typeof value + var type = typeof value; if ( type == 'number' || type == 'symbol' || @@ -21070,13 +21097,13 @@ module.exports = /******/ (() => { value == null || isSymbol(value) ) { - return true + return true; } return ( reIsPlainProp.test(value) || !reIsDeepProp.test(value) || (object != null && value in Object(object)) - ) + ); } /** @@ -21087,13 +21114,13 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { - var type = typeof value + var type = typeof value; return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' - : value === null + : value === null; } /** @@ -21104,7 +21131,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func + return !!maskSrcKey && maskSrcKey in func; } /** @@ -21115,19 +21142,19 @@ module.exports = /******/ (() => { * @returns {Array} Returns the property path array. */ var stringToPath = memoize(function (string) { - string = toString(string) + string = toString(string); - var result = [] + var result = []; if (reLeadingDot.test(string)) { - result.push('') + result.push(''); } string.replace(rePropName, function (match, number, quote, string) { result.push( - quote ? string.replace(reEscapeChar, '$1') : number || match - ) - }) - return result - }) + quote ? string.replace(reEscapeChar, '$1') : number || match, + ); + }); + return result; + }); /** * Converts `value` to a string key if it's not a string or symbol. @@ -21138,10 +21165,10 @@ module.exports = /******/ (() => { */ function toKey(value) { if (typeof value == 'string' || isSymbol(value)) { - return value + return value; } - var result = value + '' - return result == '0' && 1 / value == -INFINITY ? '-0' : result + var result = value + ''; + return result == '0' && 1 / value == -INFINITY ? '-0' : result; } /** @@ -21154,13 +21181,13 @@ module.exports = /******/ (() => { function toSource(func) { if (func != null) { try { - return funcToString.call(func) + return funcToString.call(func); } catch (e) {} try { - return func + '' + return func + ''; } catch (e) {} } - return '' + return ''; } /** @@ -21212,26 +21239,26 @@ module.exports = /******/ (() => { typeof func != 'function' || (resolver && typeof resolver != 'function') ) { - throw new TypeError(FUNC_ERROR_TEXT) + throw new TypeError(FUNC_ERROR_TEXT); } var memoized = function () { var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], - cache = memoized.cache + cache = memoized.cache; if (cache.has(key)) { - return cache.get(key) + return cache.get(key); } - var result = func.apply(this, args) - memoized.cache = cache.set(key, result) - return result - } - memoized.cache = new (memoize.Cache || MapCache)() - return memoized + var result = func.apply(this, args); + memoized.cache = cache.set(key, result); + return result; + }; + memoized.cache = new (memoize.Cache || MapCache)(); + return memoized; } // Assign cache to `_.memoize`. - memoize.Cache = MapCache + memoize.Cache = MapCache; /** * Performs a @@ -21266,7 +21293,7 @@ module.exports = /******/ (() => { * // => true */ function eq(value, other) { - return value === other || (value !== value && other !== other) + return value === other || (value !== value && other !== other); } /** @@ -21292,7 +21319,7 @@ module.exports = /******/ (() => { * _.isArray(_.noop); * // => false */ - var isArray = Array.isArray + var isArray = Array.isArray; /** * Checks if `value` is classified as a `Function` object. @@ -21314,8 +21341,8 @@ module.exports = /******/ (() => { function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : '' - return tag == funcTag || tag == genTag + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; } /** @@ -21344,8 +21371,8 @@ module.exports = /******/ (() => { * // => false */ function isObject(value) { - var type = typeof value - return !!value && (type == 'object' || type == 'function') + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); } /** @@ -21373,7 +21400,7 @@ module.exports = /******/ (() => { * // => false */ function isObjectLike(value) { - return !!value && typeof value == 'object' + return !!value && typeof value == 'object'; } /** @@ -21397,7 +21424,7 @@ module.exports = /******/ (() => { return ( typeof value == 'symbol' || (isObjectLike(value) && objectToString.call(value) == symbolTag) - ) + ); } /** @@ -21422,7 +21449,7 @@ module.exports = /******/ (() => { * // => '1,2,3' */ function toString(value) { - return value == null ? '' : baseToString(value) + return value == null ? '' : baseToString(value); } /** @@ -21454,15 +21481,15 @@ module.exports = /******/ (() => { * // => 5 */ function set(object, path, value) { - return object == null ? object : baseSet(object, path, value) + return object == null ? object : baseSet(object, path, value); } - module.exports = set + module.exports = set; /***/ }, - /***/ 8216: /***/ module => { + /***/ 8216: /***/ (module) => { /** * lodash (Custom Build) * Build: `lodash modularize exports="npm" -o ./` @@ -21473,40 +21500,40 @@ module.exports = /******/ (() => { */ /** Used as the size to enable large array optimizations. */ - var LARGE_ARRAY_SIZE = 200 + var LARGE_ARRAY_SIZE = 200; /** Used to stand-in for `undefined` hash values. */ - var HASH_UNDEFINED = '__lodash_hash_undefined__' + var HASH_UNDEFINED = '__lodash_hash_undefined__'; /** Used as references for various `Number` constants. */ - var INFINITY = 1 / 0 + var INFINITY = 1 / 0; /** `Object#toString` result references. */ var funcTag = '[object Function]', - genTag = '[object GeneratorFunction]' + genTag = '[object GeneratorFunction]'; /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g + var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ - var reIsHostCtor = /^\[object .+?Constructor\]$/ + var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Detect free variable `global` from Node.js. */ var freeGlobal = typeof global == 'object' && global && global.Object === Object && - global + global; /** Detect free variable `self`. */ var freeSelf = - typeof self == 'object' && self && self.Object === Object && self + typeof self == 'object' && self && self.Object === Object && self; /** Used as a reference to the global object. */ - var root = freeGlobal || freeSelf || Function('return this')() + var root = freeGlobal || freeSelf || Function('return this')(); /** * A specialized version of `_.includes` for arrays without support for @@ -21518,8 +21545,8 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `target` is found, else `false`. */ function arrayIncludes(array, value) { - var length = array ? array.length : 0 - return !!length && baseIndexOf(array, value, 0) > -1 + var length = array ? array.length : 0; + return !!length && baseIndexOf(array, value, 0) > -1; } /** @@ -21533,14 +21560,14 @@ module.exports = /******/ (() => { */ function arrayIncludesWith(array, value, comparator) { var index = -1, - length = array ? array.length : 0 + length = array ? array.length : 0; while (++index < length) { if (comparator(value, array[index])) { - return true + return true; } } - return false + return false; } /** @@ -21556,14 +21583,14 @@ module.exports = /******/ (() => { */ function baseFindIndex(array, predicate, fromIndex, fromRight) { var length = array.length, - index = fromIndex + (fromRight ? 1 : -1) + index = fromIndex + (fromRight ? 1 : -1); while (fromRight ? index-- : ++index < length) { if (predicate(array[index], index, array)) { - return index + return index; } } - return -1 + return -1; } /** @@ -21577,17 +21604,17 @@ module.exports = /******/ (() => { */ function baseIndexOf(array, value, fromIndex) { if (value !== value) { - return baseFindIndex(array, baseIsNaN, fromIndex) + return baseFindIndex(array, baseIsNaN, fromIndex); } var index = fromIndex - 1, - length = array.length + length = array.length; while (++index < length) { if (array[index] === value) { - return index + return index; } } - return -1 + return -1; } /** @@ -21598,7 +21625,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. */ function baseIsNaN(value) { - return value !== value + return value !== value; } /** @@ -21610,7 +21637,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function cacheHas(cache, key) { - return cache.has(key) + return cache.has(key); } /** @@ -21622,7 +21649,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the property value. */ function getValue(object, key) { - return object == null ? undefined : object[key] + return object == null ? undefined : object[key]; } /** @@ -21635,13 +21662,13 @@ module.exports = /******/ (() => { function isHostObject(value) { // Many host objects are `Object` objects that can coerce to strings // despite having improperly defined `toString` methods. - var result = false + var result = false; if (value != null && typeof value.toString != 'function') { try { - result = !!(value + '') + result = !!(value + ''); } catch (e) {} } - return result + return result; } /** @@ -21653,42 +21680,42 @@ module.exports = /******/ (() => { */ function setToArray(set) { var index = -1, - result = Array(set.size) + result = Array(set.size); set.forEach(function (value) { - result[++index] = value - }) - return result + result[++index] = value; + }); + return result; } /** Used for built-in method references. */ var arrayProto = Array.prototype, funcProto = Function.prototype, - objectProto = Object.prototype + objectProto = Object.prototype; /** Used to detect overreaching core-js shims. */ - var coreJsData = root['__core-js_shared__'] + var coreJsData = root['__core-js_shared__']; /** Used to detect methods masquerading as native. */ var maskSrcKey = (function () { var uid = /[^.]+$/.exec( - (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '' - ) - return uid ? 'Symbol(src)_1.' + uid : '' - })() + (coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO) || '', + ); + return uid ? 'Symbol(src)_1.' + uid : ''; + })(); /** Used to resolve the decompiled source of functions. */ - var funcToString = funcProto.toString + var funcToString = funcProto.toString; /** Used to check objects for own properties. */ - var hasOwnProperty = objectProto.hasOwnProperty + var hasOwnProperty = objectProto.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ - var objectToString = objectProto.toString + var objectToString = objectProto.toString; /** Used to detect if a method is native. */ var reIsNative = RegExp( @@ -21698,18 +21725,18 @@ module.exports = /******/ (() => { .replace(reRegExpChar, '\\$&') .replace( /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, - '$1.*?' + '$1.*?', ) + - '$' - ) + '$', + ); /** Built-in value references. */ - var splice = arrayProto.splice + var splice = arrayProto.splice; /* Built-in method references that are verified to be native. */ var Map = getNative(root, 'Map'), Set = getNative(root, 'Set'), - nativeCreate = getNative(Object, 'create') + nativeCreate = getNative(Object, 'create'); /** * Creates a hash object. @@ -21720,12 +21747,12 @@ module.exports = /******/ (() => { */ function Hash(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -21737,7 +21764,7 @@ module.exports = /******/ (() => { * @memberOf Hash */ function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {} + this.__data__ = nativeCreate ? nativeCreate(null) : {}; } /** @@ -21751,7 +21778,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete(key) { - return this.has(key) && delete this.__data__[key] + return this.has(key) && delete this.__data__[key]; } /** @@ -21764,12 +21791,12 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function hashGet(key) { - var data = this.__data__ + var data = this.__data__; if (nativeCreate) { - var result = data[key] - return result === HASH_UNDEFINED ? undefined : result + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; } - return hasOwnProperty.call(data, key) ? data[key] : undefined + return hasOwnProperty.call(data, key) ? data[key] : undefined; } /** @@ -21782,10 +21809,10 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas(key) { - var data = this.__data__ + var data = this.__data__; return nativeCreate ? data[key] !== undefined - : hasOwnProperty.call(data, key) + : hasOwnProperty.call(data, key); } /** @@ -21799,17 +21826,18 @@ module.exports = /******/ (() => { * @returns {Object} Returns the hash instance. */ function hashSet(key, value) { - var data = this.__data__ - data[key] = nativeCreate && value === undefined ? HASH_UNDEFINED : value - return this + var data = this.__data__; + data[key] = + nativeCreate && value === undefined ? HASH_UNDEFINED : value; + return this; } // Add methods to `Hash`. - Hash.prototype.clear = hashClear - Hash.prototype['delete'] = hashDelete - Hash.prototype.get = hashGet - Hash.prototype.has = hashHas - Hash.prototype.set = hashSet + Hash.prototype.clear = hashClear; + Hash.prototype['delete'] = hashDelete; + Hash.prototype.get = hashGet; + Hash.prototype.has = hashHas; + Hash.prototype.set = hashSet; /** * Creates an list cache object. @@ -21820,12 +21848,12 @@ module.exports = /******/ (() => { */ function ListCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -21837,7 +21865,7 @@ module.exports = /******/ (() => { * @memberOf ListCache */ function listCacheClear() { - this.__data__ = [] + this.__data__ = []; } /** @@ -21851,18 +21879,18 @@ module.exports = /******/ (() => { */ function listCacheDelete(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - return false + return false; } - var lastIndex = data.length - 1 + var lastIndex = data.length - 1; if (index == lastIndex) { - data.pop() + data.pop(); } else { - splice.call(data, index, 1) + splice.call(data, index, 1); } - return true + return true; } /** @@ -21876,9 +21904,9 @@ module.exports = /******/ (() => { */ function listCacheGet(key) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); - return index < 0 ? undefined : data[index][1] + return index < 0 ? undefined : data[index][1]; } /** @@ -21891,7 +21919,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1 + return assocIndexOf(this.__data__, key) > -1; } /** @@ -21906,22 +21934,22 @@ module.exports = /******/ (() => { */ function listCacheSet(key, value) { var data = this.__data__, - index = assocIndexOf(data, key) + index = assocIndexOf(data, key); if (index < 0) { - data.push([key, value]) + data.push([key, value]); } else { - data[index][1] = value + data[index][1] = value; } - return this + return this; } // Add methods to `ListCache`. - ListCache.prototype.clear = listCacheClear - ListCache.prototype['delete'] = listCacheDelete - ListCache.prototype.get = listCacheGet - ListCache.prototype.has = listCacheHas - ListCache.prototype.set = listCacheSet + ListCache.prototype.clear = listCacheClear; + ListCache.prototype['delete'] = listCacheDelete; + ListCache.prototype.get = listCacheGet; + ListCache.prototype.has = listCacheHas; + ListCache.prototype.set = listCacheSet; /** * Creates a map cache object to store key-value pairs. @@ -21932,12 +21960,12 @@ module.exports = /******/ (() => { */ function MapCache(entries) { var index = -1, - length = entries ? entries.length : 0 + length = entries ? entries.length : 0; - this.clear() + this.clear(); while (++index < length) { - var entry = entries[index] - this.set(entry[0], entry[1]) + var entry = entries[index]; + this.set(entry[0], entry[1]); } } @@ -21952,8 +21980,8 @@ module.exports = /******/ (() => { this.__data__ = { hash: new Hash(), map: new (Map || ListCache)(), - string: new Hash() - } + string: new Hash(), + }; } /** @@ -21966,7 +21994,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { - return getMapData(this, key)['delete'](key) + return getMapData(this, key)['delete'](key); } /** @@ -21979,7 +22007,7 @@ module.exports = /******/ (() => { * @returns {*} Returns the entry value. */ function mapCacheGet(key) { - return getMapData(this, key).get(key) + return getMapData(this, key).get(key); } /** @@ -21992,7 +22020,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas(key) { - return getMapData(this, key).has(key) + return getMapData(this, key).has(key); } /** @@ -22006,16 +22034,16 @@ module.exports = /******/ (() => { * @returns {Object} Returns the map cache instance. */ function mapCacheSet(key, value) { - getMapData(this, key).set(key, value) - return this + getMapData(this, key).set(key, value); + return this; } // Add methods to `MapCache`. - MapCache.prototype.clear = mapCacheClear - MapCache.prototype['delete'] = mapCacheDelete - MapCache.prototype.get = mapCacheGet - MapCache.prototype.has = mapCacheHas - MapCache.prototype.set = mapCacheSet + MapCache.prototype.clear = mapCacheClear; + MapCache.prototype['delete'] = mapCacheDelete; + MapCache.prototype.get = mapCacheGet; + MapCache.prototype.has = mapCacheHas; + MapCache.prototype.set = mapCacheSet; /** * @@ -22027,11 +22055,11 @@ module.exports = /******/ (() => { */ function SetCache(values) { var index = -1, - length = values ? values.length : 0 + length = values ? values.length : 0; - this.__data__ = new MapCache() + this.__data__ = new MapCache(); while (++index < length) { - this.add(values[index]) + this.add(values[index]); } } @@ -22046,8 +22074,8 @@ module.exports = /******/ (() => { * @returns {Object} Returns the cache instance. */ function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED) - return this + this.__data__.set(value, HASH_UNDEFINED); + return this; } /** @@ -22060,12 +22088,12 @@ module.exports = /******/ (() => { * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas(value) { - return this.__data__.has(value) + return this.__data__.has(value); } // Add methods to `SetCache`. - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd - SetCache.prototype.has = setCacheHas + SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; + SetCache.prototype.has = setCacheHas; /** * Gets the index at which the `key` is found in `array` of key-value pairs. @@ -22076,13 +22104,13 @@ module.exports = /******/ (() => { * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf(array, key) { - var length = array.length + var length = array.length; while (length--) { if (eq(array[length][0], key)) { - return length + return length; } } - return -1 + return -1; } /** @@ -22095,11 +22123,11 @@ module.exports = /******/ (() => { */ function baseIsNative(value) { if (!isObject(value) || isMasked(value)) { - return false + return false; } var pattern = - isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor - return pattern.test(toSource(value)) + isFunction(value) || isHostObject(value) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); } /** @@ -22117,46 +22145,46 @@ module.exports = /******/ (() => { length = array.length, isCommon = true, result = [], - seen = result + seen = result; if (comparator) { - isCommon = false - includes = arrayIncludesWith + isCommon = false; + includes = arrayIncludesWith; } else if (length >= LARGE_ARRAY_SIZE) { - var set = iteratee ? null : createSet(array) + var set = iteratee ? null : createSet(array); if (set) { - return setToArray(set) + return setToArray(set); } - isCommon = false - includes = cacheHas - seen = new SetCache() + isCommon = false; + includes = cacheHas; + seen = new SetCache(); } else { - seen = iteratee ? [] : result + seen = iteratee ? [] : result; } outer: while (++index < length) { var value = array[index], - computed = iteratee ? iteratee(value) : value + computed = iteratee ? iteratee(value) : value; - value = comparator || value !== 0 ? value : 0 + value = comparator || value !== 0 ? value : 0; if (isCommon && computed === computed) { - var seenIndex = seen.length + var seenIndex = seen.length; while (seenIndex--) { if (seen[seenIndex] === computed) { - continue outer + continue outer; } } if (iteratee) { - seen.push(computed) + seen.push(computed); } - result.push(value) + result.push(value); } else if (!includes(seen, computed, comparator)) { if (seen !== result) { - seen.push(computed) + seen.push(computed); } - result.push(value) + result.push(value); } } - return result + return result; } /** @@ -22169,8 +22197,8 @@ module.exports = /******/ (() => { var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function (values) { - return new Set(values) - } + return new Set(values); + }; /** * Gets the data for `map`. @@ -22181,10 +22209,10 @@ module.exports = /******/ (() => { * @returns {*} Returns the map data. */ function getMapData(map, key) { - var data = map.__data__ + var data = map.__data__; return isKeyable(key) ? data[typeof key == 'string' ? 'string' : 'hash'] - : data.map + : data.map; } /** @@ -22196,8 +22224,8 @@ module.exports = /******/ (() => { * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative(object, key) { - var value = getValue(object, key) - return baseIsNative(value) ? value : undefined + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; } /** @@ -22208,13 +22236,13 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable(value) { - var type = typeof value + var type = typeof value; return type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean' ? value !== '__proto__' - : value === null + : value === null; } /** @@ -22225,7 +22253,7 @@ module.exports = /******/ (() => { * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func + return !!maskSrcKey && maskSrcKey in func; } /** @@ -22238,13 +22266,13 @@ module.exports = /******/ (() => { function toSource(func) { if (func != null) { try { - return funcToString.call(func) + return funcToString.call(func); } catch (e) {} try { - return func + '' + return func + ''; } catch (e) {} } - return '' + return ''; } /** @@ -22265,7 +22293,7 @@ module.exports = /******/ (() => { * // => [2, 1] */ function uniq(array) { - return array && array.length ? baseUniq(array) : [] + return array && array.length ? baseUniq(array) : []; } /** @@ -22301,7 +22329,7 @@ module.exports = /******/ (() => { * // => true */ function eq(value, other) { - return value === other || (value !== value && other !== other) + return value === other || (value !== value && other !== other); } /** @@ -22324,8 +22352,8 @@ module.exports = /******/ (() => { function isFunction(value) { // The use of `Object#toString` avoids issues with the `typeof` operator // in Safari 8-9 which returns 'object' for typed array and other constructors. - var tag = isObject(value) ? objectToString.call(value) : '' - return tag == funcTag || tag == genTag + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; } /** @@ -22354,8 +22382,8 @@ module.exports = /******/ (() => { * // => false */ function isObject(value) { - var type = typeof value - return !!value && (type == 'object' || type == 'function') + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); } /** @@ -22374,7 +22402,7 @@ module.exports = /******/ (() => { // No operation performed. } - module.exports = uniq + module.exports = uniq; /***/ }, @@ -22382,11 +22410,11 @@ module.exports = /******/ (() => { /***/ 7493: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const os = __webpack_require__(2087) + const os = __webpack_require__(2087); const nameMap = new Map([ [19, 'Catalina'], @@ -22403,20 +22431,20 @@ module.exports = /******/ (() => { [8, 'Tiger'], [7, 'Panther'], [6, 'Jaguar'], - [5, 'Puma'] - ]) + [5, 'Puma'], + ]); - const macosRelease = release => { - release = Number((release || os.release()).split('.')[0]) + const macosRelease = (release) => { + release = Number((release || os.release()).split('.')[0]); return { name: nameMap.get(release), - version: '10.' + (release - 4) - } - } + version: '10.' + (release - 4), + }; + }; - module.exports = macosRelease + module.exports = macosRelease; // TODO: remove this in the next major version - module.exports.default = macosRelease + module.exports.default = macosRelease; /***/ }, @@ -22424,175 +22452,175 @@ module.exports = /******/ (() => { /***/ 3973: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = minimatch - minimatch.Minimatch = Minimatch + module.exports = minimatch; + minimatch.Minimatch = Minimatch; - var path = { sep: '/' } + var path = { sep: '/' }; try { - path = __webpack_require__(5622) + path = __webpack_require__(5622); } catch (er) {} - var GLOBSTAR = (minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}) - var expand = __webpack_require__(3717) + var GLOBSTAR = (minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}); + var expand = __webpack_require__(3717); var plTypes = { '!': { open: '(?:(?!(?:', close: '))[^/]*?)' }, '?': { open: '(?:', close: ')?' }, '+': { open: '(?:', close: ')+' }, '*': { open: '(?:', close: ')*' }, - '@': { open: '(?:', close: ')' } - } + '@': { open: '(?:', close: ')' }, + }; // any single thing other than / // don't need to escape / when using new RegExp() - var qmark = '[^/]' + var qmark = '[^/]'; // * => any number of characters - var star = qmark + '*?' + var star = qmark + '*?'; // ** when dots are allowed. Anything goes, except .. and . // not (^ or / followed by one or two dots followed by $ or /), // followed by anything, any number of times. - var twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?' + var twoStarDot = '(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?'; // not a ^ or / followed by a dot, // followed by anything, any number of times. - var twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?' + var twoStarNoDot = '(?:(?!(?:\\/|^)\\.).)*?'; // characters that need to be escaped in RegExp. - var reSpecials = charSet('().*{}+?[]^$\\!') + var reSpecials = charSet('().*{}+?[]^$\\!'); // "abc" -> { a:true, b:true, c:true } function charSet(s) { return s.split('').reduce(function (set, c) { - set[c] = true - return set - }, {}) + set[c] = true; + return set; + }, {}); } // normalizes slashes. - var slashSplit = /\/+/ + var slashSplit = /\/+/; - minimatch.filter = filter + minimatch.filter = filter; function filter(pattern, options) { - options = options || {} + options = options || {}; return function (p, i, list) { - return minimatch(p, pattern, options) - } + return minimatch(p, pattern, options); + }; } function ext(a, b) { - a = a || {} - b = b || {} - var t = {} + a = a || {}; + b = b || {}; + var t = {}; Object.keys(b).forEach(function (k) { - t[k] = b[k] - }) + t[k] = b[k]; + }); Object.keys(a).forEach(function (k) { - t[k] = a[k] - }) - return t + t[k] = a[k]; + }); + return t; } minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return minimatch + if (!def || !Object.keys(def).length) return minimatch; - var orig = minimatch + var orig = minimatch; var m = function minimatch(p, pattern, options) { - return orig.minimatch(p, pattern, ext(def, options)) - } + return orig.minimatch(p, pattern, ext(def, options)); + }; m.Minimatch = function Minimatch(pattern, options) { - return new orig.Minimatch(pattern, ext(def, options)) - } + return new orig.Minimatch(pattern, ext(def, options)); + }; - return m - } + return m; + }; Minimatch.defaults = function (def) { - if (!def || !Object.keys(def).length) return Minimatch - return minimatch.defaults(def).Minimatch - } + if (!def || !Object.keys(def).length) return Minimatch; + return minimatch.defaults(def).Minimatch; + }; function minimatch(p, pattern, options) { if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') + throw new TypeError('glob pattern string required'); } - if (!options) options = {} + if (!options) options = {}; // shortcut: comments match nothing. if (!options.nocomment && pattern.charAt(0) === '#') { - return false + return false; } // "" only matches "" - if (pattern.trim() === '') return p === '' + if (pattern.trim() === '') return p === ''; - return new Minimatch(pattern, options).match(p) + return new Minimatch(pattern, options).match(p); } function Minimatch(pattern, options) { if (!(this instanceof Minimatch)) { - return new Minimatch(pattern, options) + return new Minimatch(pattern, options); } if (typeof pattern !== 'string') { - throw new TypeError('glob pattern string required') + throw new TypeError('glob pattern string required'); } - if (!options) options = {} - pattern = pattern.trim() + if (!options) options = {}; + pattern = pattern.trim(); // windows support: need to use /, not \ if (path.sep !== '/') { - pattern = pattern.split(path.sep).join('/') + pattern = pattern.split(path.sep).join('/'); } - this.options = options - this.set = [] - this.pattern = pattern - this.regexp = null - this.negate = false - this.comment = false - this.empty = false + this.options = options; + this.set = []; + this.pattern = pattern; + this.regexp = null; + this.negate = false; + this.comment = false; + this.empty = false; // make the set of regexps etc. - this.make() + this.make(); } - Minimatch.prototype.debug = function () {} + Minimatch.prototype.debug = function () {}; - Minimatch.prototype.make = make + Minimatch.prototype.make = make; function make() { // don't do it more than once. - if (this._made) return + if (this._made) return; - var pattern = this.pattern - var options = this.options + var pattern = this.pattern; + var options = this.options; // empty patterns and comments match nothing. if (!options.nocomment && pattern.charAt(0) === '#') { - this.comment = true - return + this.comment = true; + return; } if (!pattern) { - this.empty = true - return + this.empty = true; + return; } // step 1: figure out negation, etc. - this.parseNegate() + this.parseNegate(); // step 2: expand braces - var set = (this.globSet = this.braceExpand()) + var set = (this.globSet = this.braceExpand()); - if (options.debug) this.debug = console.error + if (options.debug) this.debug = console.error; - this.debug(this.pattern, set) + this.debug(this.pattern, set); // step 3: now we have a set, so turn each one into a series of path-portion // matching patterns. @@ -22600,48 +22628,48 @@ module.exports = /******/ (() => { // set to the GLOBSTAR object for globstar behavior, // and will not contain any / characters set = this.globParts = set.map(function (s) { - return s.split(slashSplit) - }) + return s.split(slashSplit); + }); - this.debug(this.pattern, set) + this.debug(this.pattern, set); // glob --> regexps set = set.map(function (s, si, set) { - return s.map(this.parse, this) - }, this) + return s.map(this.parse, this); + }, this); - this.debug(this.pattern, set) + this.debug(this.pattern, set); // filter out everything that didn't compile properly. set = set.filter(function (s) { - return s.indexOf(false) === -1 - }) + return s.indexOf(false) === -1; + }); - this.debug(this.pattern, set) + this.debug(this.pattern, set); - this.set = set + this.set = set; } - Minimatch.prototype.parseNegate = parseNegate + Minimatch.prototype.parseNegate = parseNegate; function parseNegate() { - var pattern = this.pattern - var negate = false - var options = this.options - var negateOffset = 0 + var pattern = this.pattern; + var negate = false; + var options = this.options; + var negateOffset = 0; - if (options.nonegate) return + if (options.nonegate) return; for ( var i = 0, l = pattern.length; i < l && pattern.charAt(i) === '!'; i++ ) { - negate = !negate - negateOffset++ + negate = !negate; + negateOffset++; } - if (negateOffset) this.pattern = pattern.substr(negateOffset) - this.negate = negate + if (negateOffset) this.pattern = pattern.substr(negateOffset); + this.negate = negate; } // Brace expansion: @@ -22655,32 +22683,32 @@ module.exports = /******/ (() => { // a{2..}b -> a{2..}b // a{b}c -> a{b}c minimatch.braceExpand = function (pattern, options) { - return braceExpand(pattern, options) - } + return braceExpand(pattern, options); + }; - Minimatch.prototype.braceExpand = braceExpand + Minimatch.prototype.braceExpand = braceExpand; function braceExpand(pattern, options) { if (!options) { if (this instanceof Minimatch) { - options = this.options + options = this.options; } else { - options = {} + options = {}; } } - pattern = typeof pattern === 'undefined' ? this.pattern : pattern + pattern = typeof pattern === 'undefined' ? this.pattern : pattern; if (typeof pattern === 'undefined') { - throw new TypeError('undefined pattern') + throw new TypeError('undefined pattern'); } if (options.nobrace || !pattern.match(/\{.*\}/)) { // shortcut. no need to expand. - return [pattern] + return [pattern]; } - return expand(pattern) + return expand(pattern); } // parse a component of the expanded set. @@ -22694,29 +22722,29 @@ module.exports = /******/ (() => { // when it is the *only* thing in a path portion. Otherwise, any series // of * is equivalent to a single *. Globstar behavior is enabled by // default, and can be disabled by setting options.noglobstar. - Minimatch.prototype.parse = parse - var SUBPARSE = {} + Minimatch.prototype.parse = parse; + var SUBPARSE = {}; function parse(pattern, isSub) { if (pattern.length > 1024 * 64) { - throw new TypeError('pattern is too long') + throw new TypeError('pattern is too long'); } - var options = this.options + var options = this.options; // shortcuts - if (!options.noglobstar && pattern === '**') return GLOBSTAR - if (pattern === '') return '' + if (!options.noglobstar && pattern === '**') return GLOBSTAR; + if (pattern === '') return ''; - var re = '' - var hasMagic = !!options.nocase - var escaping = false + var re = ''; + var hasMagic = !!options.nocase; + var escaping = false; // ? => one single character - var patternListStack = [] - var negativeLists = [] - var stateChar - var inClass = false - var reClassStart = -1 - var classStart = -1 + var patternListStack = []; + var negativeLists = []; + var stateChar; + var inClass = false; + var reClassStart = -1; + var classStart = -1; // . and .. never match anything that doesn't start with ., // even when options.dot is set. var patternStart = @@ -22725,8 +22753,8 @@ module.exports = /******/ (() => { : // not (start or / followed by . or .. followed by / or end) options.dot ? '(?!(?:^|\\/)\\.{1,2}(?:$|\\/))' - : '(?!\\.)' - var self = this + : '(?!\\.)'; + var self = this; function clearStateChar() { if (stateChar) { @@ -22734,19 +22762,19 @@ module.exports = /******/ (() => { // that wasn't consumed by this pass. switch (stateChar) { case '*': - re += star - hasMagic = true - break + re += star; + hasMagic = true; + break; case '?': - re += qmark - hasMagic = true - break + re += qmark; + hasMagic = true; + break; default: - re += '\\' + stateChar - break + re += '\\' + stateChar; + break; } - self.debug('clearStateChar %j %j', stateChar, re) - stateChar = false + self.debug('clearStateChar %j %j', stateChar, re); + stateChar = false; } } @@ -22755,25 +22783,25 @@ module.exports = /******/ (() => { i < len && (c = pattern.charAt(i)); i++ ) { - this.debug('%s\t%s %s %j', pattern, i, re, c) + this.debug('%s\t%s %s %j', pattern, i, re, c); // skip over any that are escaped. if (escaping && reSpecials[c]) { - re += '\\' + c - escaping = false - continue + re += '\\' + c; + escaping = false; + continue; } switch (c) { case '/': // completely not allowed, even escaped. // Should already be path-split by now. - return false + return false; case '\\': - clearStateChar() - escaping = true - continue + clearStateChar(); + escaping = true; + continue; // the various stateChar values // for the "extglob" stuff. @@ -22782,38 +22810,38 @@ module.exports = /******/ (() => { case '+': case '@': case '!': - this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) + this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c); // all of those are literals inside a class, except that // the glob [!a] means [^a] in regexp if (inClass) { - this.debug(' in class') - if (c === '!' && i === classStart + 1) c = '^' - re += c - continue + this.debug(' in class'); + if (c === '!' && i === classStart + 1) c = '^'; + re += c; + continue; } // if we already have a stateChar, then it means // that there was something like ** or +? in there. // Handle the stateChar, then proceed with this one. - self.debug('call clearStateChar %j', stateChar) - clearStateChar() - stateChar = c + self.debug('call clearStateChar %j', stateChar); + clearStateChar(); + stateChar = c; // if extglob is disabled, then +(asdf|foo) isn't a thing. // just clear the statechar *now*, rather than even diving into // the patternList stuff. - if (options.noext) clearStateChar() - continue + if (options.noext) clearStateChar(); + continue; case '(': if (inClass) { - re += '(' - continue + re += '('; + continue; } if (!stateChar) { - re += '\\(' - continue + re += '\\('; + continue; } patternListStack.push({ @@ -22821,58 +22849,58 @@ module.exports = /******/ (() => { start: i - 1, reStart: re.length, open: plTypes[stateChar].open, - close: plTypes[stateChar].close - }) + close: plTypes[stateChar].close, + }); // negation is (?:(?!js)[^/]*) - re += stateChar === '!' ? '(?:(?!(?:' : '(?:' - this.debug('plType %j %j', stateChar, re) - stateChar = false - continue + re += stateChar === '!' ? '(?:(?!(?:' : '(?:'; + this.debug('plType %j %j', stateChar, re); + stateChar = false; + continue; case ')': if (inClass || !patternListStack.length) { - re += '\\)' - continue + re += '\\)'; + continue; } - clearStateChar() - hasMagic = true - var pl = patternListStack.pop() + clearStateChar(); + hasMagic = true; + var pl = patternListStack.pop(); // negation is (?:(?!js)[^/]*) // The others are (?:) - re += pl.close + re += pl.close; if (pl.type === '!') { - negativeLists.push(pl) + negativeLists.push(pl); } - pl.reEnd = re.length - continue + pl.reEnd = re.length; + continue; case '|': if (inClass || !patternListStack.length || escaping) { - re += '\\|' - escaping = false - continue + re += '\\|'; + escaping = false; + continue; } - clearStateChar() - re += '|' - continue + clearStateChar(); + re += '|'; + continue; // these are mostly the same in regexp and glob case '[': // swallow any state-tracking char before the [ - clearStateChar() + clearStateChar(); if (inClass) { - re += '\\' + c - continue + re += '\\' + c; + continue; } - inClass = true - classStart = i - reClassStart = re.length - re += c - continue + inClass = true; + classStart = i; + reClassStart = re.length; + re += c; + continue; case ']': // a right bracket shall lose its special @@ -22880,9 +22908,9 @@ module.exports = /******/ (() => { // a bracket expression if it occurs // first in the list. -- POSIX.2 2.8.3.2 if (i === classStart + 1 || !inClass) { - re += '\\' + c - escaping = false - continue + re += '\\' + c; + escaping = false; + continue; } // handle the case where we left a class open. @@ -22895,37 +22923,37 @@ module.exports = /******/ (() => { // TODO: It would probably be faster to determine this // without a try/catch and a new RegExp, but it's tricky // to do safely. For now, this is safe and works. - var cs = pattern.substring(classStart + 1, i) + var cs = pattern.substring(classStart + 1, i); try { - RegExp('[' + cs + ']') + RegExp('[' + cs + ']'); } catch (er) { // not a valid class! - var sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' - hasMagic = hasMagic || sp[1] - inClass = false - continue + var sp = this.parse(cs, SUBPARSE); + re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]'; + hasMagic = hasMagic || sp[1]; + inClass = false; + continue; } } // finish up the class. - hasMagic = true - inClass = false - re += c - continue + hasMagic = true; + inClass = false; + re += c; + continue; default: // swallow any state char that wasn't consumed - clearStateChar() + clearStateChar(); if (escaping) { // no need - escaping = false + escaping = false; } else if (reSpecials[c] && !(c === '^' && inClass)) { - re += '\\' + re += '\\'; } - re += c + re += c; } // switch } // for @@ -22936,10 +22964,10 @@ module.exports = /******/ (() => { // this is a huge pita. We now have to re-walk // the contents of the would-be class to re-translate // any characters that were passed through as-is - cs = pattern.substr(classStart + 1) - sp = this.parse(cs, SUBPARSE) - re = re.substr(0, reClassStart) + '\\[' + sp[0] - hasMagic = hasMagic || sp[1] + cs = pattern.substr(classStart + 1); + sp = this.parse(cs, SUBPARSE); + re = re.substr(0, reClassStart) + '\\[' + sp[0]; + hasMagic = hasMagic || sp[1]; } // handle the case where we had a +( thing at the *end* @@ -22949,17 +22977,17 @@ module.exports = /******/ (() => { // Go through and escape them, taking care not to double-escape any // | chars that were already escaped. for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { - var tail = re.slice(pl.reStart + pl.open.length) - this.debug('setting tail', re, pl) + var tail = re.slice(pl.reStart + pl.open.length); + this.debug('setting tail', re, pl); // maybe some even number of \, then maybe 1 \, followed by a | tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function ( _, $1, - $2 + $2, ) { if (!$2) { // the | isn't already escaped, so escape it. - $2 = '\\' + $2 = '\\'; } // need to escape all those slashes *again*, without escaping the @@ -22968,32 +22996,32 @@ module.exports = /******/ (() => { // it exactly after itself. That's why this trick works. // // I am sorry that you have to see this. - return $1 + $1 + $2 + '|' - }) + return $1 + $1 + $2 + '|'; + }); - this.debug('tail=%j\n %s', tail, tail, pl, re) + this.debug('tail=%j\n %s', tail, tail, pl, re); var t = - pl.type === '*' ? star : pl.type === '?' ? qmark : '\\' + pl.type + pl.type === '*' ? star : pl.type === '?' ? qmark : '\\' + pl.type; - hasMagic = true - re = re.slice(0, pl.reStart) + t + '\\(' + tail + hasMagic = true; + re = re.slice(0, pl.reStart) + t + '\\(' + tail; } // handle trailing things that only matter at the very end. - clearStateChar() + clearStateChar(); if (escaping) { // trailing \\ - re += '\\\\' + re += '\\\\'; } // only need to apply the nodot start if the re starts with // something that could conceivably capture a dot - var addPatternStart = false + var addPatternStart = false; switch (re.charAt(0)) { case '.': case '[': case '(': - addPatternStart = true + addPatternStart = true; } // Hack to work around lack of negative lookbehind in JS @@ -23002,80 +23030,80 @@ module.exports = /******/ (() => { // lookahead, has to look ALL the way ahead, to the end of // the pattern. for (var n = negativeLists.length - 1; n > -1; n--) { - var nl = negativeLists[n] + var nl = negativeLists[n]; - var nlBefore = re.slice(0, nl.reStart) - var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) - var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) - var nlAfter = re.slice(nl.reEnd) + var nlBefore = re.slice(0, nl.reStart); + var nlFirst = re.slice(nl.reStart, nl.reEnd - 8); + var nlLast = re.slice(nl.reEnd - 8, nl.reEnd); + var nlAfter = re.slice(nl.reEnd); - nlLast += nlAfter + nlLast += nlAfter; // Handle nested stuff like *(*.js|!(*.json)), where open parens // mean that we should *not* include the ) in the bit that is considered // "after" the negated section. - var openParensBefore = nlBefore.split('(').length - 1 - var cleanAfter = nlAfter + var openParensBefore = nlBefore.split('(').length - 1; + var cleanAfter = nlAfter; for (i = 0; i < openParensBefore; i++) { - cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') + cleanAfter = cleanAfter.replace(/\)[+*?]?/, ''); } - nlAfter = cleanAfter + nlAfter = cleanAfter; - var dollar = '' + var dollar = ''; if (nlAfter === '' && isSub !== SUBPARSE) { - dollar = '$' + dollar = '$'; } - var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast - re = newRe + var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast; + re = newRe; } // if the re is not "" at this point, then we need to make sure // it doesn't match against an empty path part. // Otherwise a/* will match a/, which it should not. if (re !== '' && hasMagic) { - re = '(?=.)' + re + re = '(?=.)' + re; } if (addPatternStart) { - re = patternStart + re + re = patternStart + re; } // parsing just a piece of a larger pattern. if (isSub === SUBPARSE) { - return [re, hasMagic] + return [re, hasMagic]; } // skip the regexp for non-magical patterns // unescape anything in it, though, so that it'll be // an exact match against a file etc. if (!hasMagic) { - return globUnescape(pattern) + return globUnescape(pattern); } - var flags = options.nocase ? 'i' : '' + var flags = options.nocase ? 'i' : ''; try { - var regExp = new RegExp('^' + re + '$', flags) + var regExp = new RegExp('^' + re + '$', flags); } catch (er) { // If it was an invalid regular expression, then it can't match // anything. This trick looks for a character after the end of // the string, which is of course impossible, except in multi-line // mode, but it's not a /m regex. - return new RegExp('$.') + return new RegExp('$.'); } - regExp._glob = pattern - regExp._src = re + regExp._glob = pattern; + regExp._src = re; - return regExp + return regExp; } minimatch.makeRe = function (pattern, options) { - return new Minimatch(pattern, options || {}).makeRe() - } + return new Minimatch(pattern, options || {}).makeRe(); + }; - Minimatch.prototype.makeRe = makeRe + Minimatch.prototype.makeRe = makeRe; function makeRe() { - if (this.regexp || this.regexp === false) return this.regexp + if (this.regexp || this.regexp === false) return this.regexp; // at this point, this.set is a 2d array of partial // pattern strings, or "**". @@ -23083,20 +23111,20 @@ module.exports = /******/ (() => { // It's better to use .match(). This function shouldn't // be used, really, but it's pretty convenient sometimes, // when you just want to work with a regex. - var set = this.set + var set = this.set; if (!set.length) { - this.regexp = false - return this.regexp + this.regexp = false; + return this.regexp; } - var options = this.options + var options = this.options; var twoStar = options.noglobstar ? star : options.dot ? twoStarDot - : twoStarNoDot - var flags = options.nocase ? 'i' : '' + : twoStarNoDot; + var flags = options.nocase ? 'i' : ''; var re = set .map(function (pattern) { @@ -23106,93 +23134,93 @@ module.exports = /******/ (() => { ? twoStar : typeof p === 'string' ? regExpEscape(p) - : p._src + : p._src; }) - .join('\\/') + .join('\\/'); }) - .join('|') + .join('|'); // must match entire pattern // ending in a * or ** will make it less strict. - re = '^(?:' + re + ')$' + re = '^(?:' + re + ')$'; // can match anything, as long as it's not this. - if (this.negate) re = '^(?!' + re + ').*$' + if (this.negate) re = '^(?!' + re + ').*$'; try { - this.regexp = new RegExp(re, flags) + this.regexp = new RegExp(re, flags); } catch (ex) { - this.regexp = false + this.regexp = false; } - return this.regexp + return this.regexp; } minimatch.match = function (list, pattern, options) { - options = options || {} - var mm = new Minimatch(pattern, options) + options = options || {}; + var mm = new Minimatch(pattern, options); list = list.filter(function (f) { - return mm.match(f) - }) + return mm.match(f); + }); if (mm.options.nonull && !list.length) { - list.push(pattern) + list.push(pattern); } - return list - } + return list; + }; - Minimatch.prototype.match = match + Minimatch.prototype.match = match; function match(f, partial) { - this.debug('match', f, this.pattern) + this.debug('match', f, this.pattern); // short-circuit in the case of busted things. // comments, etc. - if (this.comment) return false - if (this.empty) return f === '' + if (this.comment) return false; + if (this.empty) return f === ''; - if (f === '/' && partial) return true + if (f === '/' && partial) return true; - var options = this.options + var options = this.options; // windows: need to use /, not \ if (path.sep !== '/') { - f = f.split(path.sep).join('/') + f = f.split(path.sep).join('/'); } // treat the test path as a set of pathparts. - f = f.split(slashSplit) - this.debug(this.pattern, 'split', f) + f = f.split(slashSplit); + this.debug(this.pattern, 'split', f); // just ONE of the pattern sets in this.set needs to match // in order for it to be valid. If negating, then just one // match means that we have failed. // Either way, return on the first hit. - var set = this.set - this.debug(this.pattern, 'set', set) + var set = this.set; + this.debug(this.pattern, 'set', set); // Find the basename of the path by looking for the last non-empty segment - var filename - var i + var filename; + var i; for (i = f.length - 1; i >= 0; i--) { - filename = f[i] - if (filename) break + filename = f[i]; + if (filename) break; } for (i = 0; i < set.length; i++) { - var pattern = set[i] - var file = f + var pattern = set[i]; + var file = f; if (options.matchBase && pattern.length === 1) { - file = [filename] + file = [filename]; } - var hit = this.matchOne(file, pattern, partial) + var hit = this.matchOne(file, pattern, partial); if (hit) { - if (options.flipNegate) return true - return !this.negate + if (options.flipNegate) return true; + return !this.negate; } } // didn't get any hits. this is success if it's a negative // pattern, failure otherwise. - if (options.flipNegate) return false - return this.negate + if (options.flipNegate) return false; + return this.negate; } // set partial to true to test if, for example, @@ -23201,29 +23229,29 @@ module.exports = /******/ (() => { // out of pattern, then that's fine, as long as all // the parts match. Minimatch.prototype.matchOne = function (file, pattern, partial) { - var options = this.options + var options = this.options; - this.debug('matchOne', { this: this, file: file, pattern: pattern }) + this.debug('matchOne', { this: this, file: file, pattern: pattern }); - this.debug('matchOne', file.length, pattern.length) + this.debug('matchOne', file.length, pattern.length); for ( var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++ ) { - this.debug('matchOne loop') - var p = pattern[pi] - var f = file[fi] + this.debug('matchOne loop'); + var p = pattern[pi]; + var f = file[fi]; - this.debug(pattern, p, f) + this.debug(pattern, p, f); // should be impossible. // some invalid regexp stuff in the set. - if (p === false) return false + if (p === false) return false; if (p === GLOBSTAR) { - this.debug('GLOBSTAR', [pattern, p, f]) + this.debug('GLOBSTAR', [pattern, p, f]); // "**" // a/**/b/**/c would match the following: @@ -23247,10 +23275,10 @@ module.exports = /******/ (() => { // - matchOne(y/z/c, c) -> no // - matchOne(z/c, c) -> no // - matchOne(c, c) yes, hit - var fr = fi - var pr = pi + 1 + var fr = fi; + var pr = pi + 1; if (pr === pl) { - this.debug('** at the end') + this.debug('** at the end'); // a ** at the end will just swallow the rest. // We have found a match. // however, it will not swallow /.x, unless @@ -23263,22 +23291,22 @@ module.exports = /******/ (() => { file[fi] === '..' || (!options.dot && file[fi].charAt(0) === '.') ) - return false + return false; } - return true + return true; } // ok, let's see if we can swallow whatever we can. while (fr < fl) { - var swallowee = file[fr] + var swallowee = file[fr]; - this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) + this.debug('\nglobstar while', file, fr, pattern, pr, swallowee); // XXX remove this slice. Just pass the start index. if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { - this.debug('globstar found match!', fr, fl, swallowee) + this.debug('globstar found match!', fr, fl, swallowee); // found a match. - return true + return true; } else { // can't swallow "." or ".." ever. // can only swallow ".foo" when explicitly asked. @@ -23287,13 +23315,13 @@ module.exports = /******/ (() => { swallowee === '..' || (!options.dot && swallowee.charAt(0) === '.') ) { - this.debug('dot detected!', file, fr, pattern, pr) - break + this.debug('dot detected!', file, fr, pattern, pr); + break; } // ** swallows a segment, and continue. - this.debug('globstar swallow a segment, and continue') - fr++ + this.debug('globstar swallow a segment, and continue'); + fr++; } } @@ -23302,29 +23330,29 @@ module.exports = /******/ (() => { // If there's more *pattern* left, then if (partial) { // ran out of file - this.debug('\n>>> no match, partial?', file, fr, pattern, pr) - if (fr === fl) return true + this.debug('\n>>> no match, partial?', file, fr, pattern, pr); + if (fr === fl) return true; } - return false + return false; } // something other than ** // non-magic patterns just have to match exactly // patterns with magic have been turned into regexps. - var hit + var hit; if (typeof p === 'string') { if (options.nocase) { - hit = f.toLowerCase() === p.toLowerCase() + hit = f.toLowerCase() === p.toLowerCase(); } else { - hit = f === p + hit = f === p; } - this.debug('string match', p, f, hit) + this.debug('string match', p, f, hit); } else { - hit = f.match(p) - this.debug('pattern match', p, f, hit) + hit = f.match(p); + this.debug('pattern match', p, f, hit); } - if (!hit) return false + if (!hit) return false; } // Note: ending in / means that we'll get a final "" @@ -23342,39 +23370,39 @@ module.exports = /******/ (() => { if (fi === fl && pi === pl) { // ran out of pattern and filename at the same time. // an exact hit! - return true + return true; } else if (fi === fl) { // ran out of file, but still had pattern left. // this is ok if we're doing the match as part of // a glob fs traversal. - return partial + return partial; } else if (pi === pl) { // ran out of pattern, still have file left. // this is only acceptable if we're on the very last // empty segment of a file with a trailing slash. // a/* should match a/b/ - var emptyFileEnd = fi === fl - 1 && file[fi] === '' - return emptyFileEnd + var emptyFileEnd = fi === fl - 1 && file[fi] === ''; + return emptyFileEnd; } // should be unreachable. - throw new Error('wtf?') - } + throw new Error('wtf?'); + }; // replace stuff like \* with * function globUnescape(s) { - return s.replace(/\\(.)/g, '$1') + return s.replace(/\\(.)/g, '$1'); } function regExpEscape(s) { - return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') + return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); } /***/ }, - /***/ 8560: /***/ module => { - 'use strict' + /***/ 8560: /***/ (module) => { + 'use strict'; /** * Tries to execute a function and discards any error that occurs. @@ -23383,155 +23411,158 @@ module.exports = /******/ (() => { */ module.exports = function (fn) { try { - return fn() + return fn(); } catch (e) {} - } + }; /***/ }, /***/ 467: /***/ (module, exports, __webpack_require__) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var Stream = _interopDefault(__webpack_require__(2413)) - var http = _interopDefault(__webpack_require__(8605)) - var Url = _interopDefault(__webpack_require__(8835)) - var https = _interopDefault(__webpack_require__(7211)) - var zlib = _interopDefault(__webpack_require__(8761)) + var Stream = _interopDefault(__webpack_require__(2413)); + var http = _interopDefault(__webpack_require__(8605)); + var Url = _interopDefault(__webpack_require__(8835)); + var https = _interopDefault(__webpack_require__(7211)); + var zlib = _interopDefault(__webpack_require__(8761)); // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js // fix for "Readable" isn't a named export issue - const Readable = Stream.Readable + const Readable = Stream.Readable; - const BUFFER = Symbol('buffer') - const TYPE = Symbol('type') + const BUFFER = Symbol('buffer'); + const TYPE = Symbol('type'); class Blob { constructor() { - this[TYPE] = '' + this[TYPE] = ''; - const blobParts = arguments[0] - const options = arguments[1] + const blobParts = arguments[0]; + const options = arguments[1]; - const buffers = [] - let size = 0 + const buffers = []; + let size = 0; if (blobParts) { - const a = blobParts - const length = Number(a.length) + const a = blobParts; + const length = Number(a.length); for (let i = 0; i < length; i++) { - const element = a[i] - let buffer + const element = a[i]; + let buffer; if (element instanceof Buffer) { - buffer = element + buffer = element; } else if (ArrayBuffer.isView(element)) { buffer = Buffer.from( element.buffer, element.byteOffset, - element.byteLength - ) + element.byteLength, + ); } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element) + buffer = Buffer.from(element); } else if (element instanceof Blob) { - buffer = element[BUFFER] + buffer = element[BUFFER]; } else { buffer = Buffer.from( - typeof element === 'string' ? element : String(element) - ) + typeof element === 'string' ? element : String(element), + ); } - size += buffer.length - buffers.push(buffer) + size += buffer.length; + buffers.push(buffer); } } - this[BUFFER] = Buffer.concat(buffers) + this[BUFFER] = Buffer.concat(buffers); let type = options && options.type !== undefined && - String(options.type).toLowerCase() + String(options.type).toLowerCase(); if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type + this[TYPE] = type; } } get size() { - return this[BUFFER].length + return this[BUFFER].length; } get type() { - return this[TYPE] + return this[TYPE]; } text() { - return Promise.resolve(this[BUFFER].toString()) + return Promise.resolve(this[BUFFER].toString()); } arrayBuffer() { - const buf = this[BUFFER] + const buf = this[BUFFER]; const ab = buf.buffer.slice( buf.byteOffset, - buf.byteOffset + buf.byteLength - ) - return Promise.resolve(ab) + buf.byteOffset + buf.byteLength, + ); + return Promise.resolve(ab); } stream() { - const readable = new Readable() - readable._read = function () {} - readable.push(this[BUFFER]) - readable.push(null) - return readable + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; } toString() { - return '[object Blob]' + return '[object Blob]'; } slice() { - const size = this.size + const size = this.size; - const start = arguments[0] - const end = arguments[1] - let relativeStart, relativeEnd + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; if (start === undefined) { - relativeStart = 0 + relativeStart = 0; } else if (start < 0) { - relativeStart = Math.max(size + start, 0) + relativeStart = Math.max(size + start, 0); } else { - relativeStart = Math.min(start, size) + relativeStart = Math.min(start, size); } if (end === undefined) { - relativeEnd = size + relativeEnd = size; } else if (end < 0) { - relativeEnd = Math.max(size + end, 0) + relativeEnd = Math.max(size + end, 0); } else { - relativeEnd = Math.min(end, size) + relativeEnd = Math.min(end, size); } - const span = Math.max(relativeEnd - relativeStart, 0) + const span = Math.max(relativeEnd - relativeStart, 0); - const buffer = this[BUFFER] - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span) - const blob = new Blob([], { type: arguments[2] }) - blob[BUFFER] = slicedBuffer - return blob + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice( + relativeStart, + relativeStart + span, + ); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; } } Object.defineProperties(Blob.prototype, { size: { enumerable: true }, type: { enumerable: true }, - slice: { enumerable: true } - }) + slice: { enumerable: true }, + }); Object.defineProperty(Blob.prototype, Symbol.toStringTag, { value: 'Blob', writable: false, enumerable: false, - configurable: true - }) + configurable: true, + }); /** * fetch-error.js @@ -23548,33 +23579,33 @@ module.exports = /******/ (() => { * @return FetchError */ function FetchError(message, type, systemError) { - Error.call(this, message) + Error.call(this, message); - this.message = message - this.type = type + this.message = message; + this.type = type; // when err.type is `system`, err.code contains system error code if (systemError) { - this.code = this.errno = systemError.code + this.code = this.errno = systemError.code; } // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } - FetchError.prototype = Object.create(Error.prototype) - FetchError.prototype.constructor = FetchError - FetchError.prototype.name = 'FetchError' + FetchError.prototype = Object.create(Error.prototype); + FetchError.prototype.constructor = FetchError; + FetchError.prototype.name = 'FetchError'; - let convert + let convert; try { - convert = __webpack_require__(2877).convert + convert = __webpack_require__(2877).convert; } catch (e) {} - const INTERNALS = Symbol('Body internals') + const INTERNALS = Symbol('Body internals'); // fix an issue where "PassThrough" isn't a named export for node <10 - const PassThrough = Stream.PassThrough + const PassThrough = Stream.PassThrough; /** * Body mixin @@ -23586,47 +23617,47 @@ module.exports = /******/ (() => { * @return Void */ function Body(body) { - var _this = this + var _this = this; var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size + _ref$size = _ref.size; - let size = _ref$size === undefined ? 0 : _ref$size - var _ref$timeout = _ref.timeout - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; if (body == null) { // body is undefined or null - body = null + body = null; } else if (isURLSearchParams(body)) { // body is a URLSearchParams - body = Buffer.from(body.toString()) + body = Buffer.from(body.toString()); } else if (isBlob(body)); else if (Buffer.isBuffer(body)); else if ( Object.prototype.toString.call(body) === '[object ArrayBuffer]' ) { // body is ArrayBuffer - body = Buffer.from(body) + body = Buffer.from(body); } else if (ArrayBuffer.isView(body)) { // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength) + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); } else if (body instanceof Stream); else { // none of the above // coerce to string then buffer - body = Buffer.from(String(body)) + body = Buffer.from(String(body)); } this[INTERNALS] = { body, disturbed: false, - error: null - } - this.size = size - this.timeout = timeout + error: null, + }; + this.size = size; + this.timeout = timeout; if (body instanceof Stream) { body.on('error', function (err) { @@ -23636,20 +23667,20 @@ module.exports = /******/ (() => { : new FetchError( `Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', - err - ) - _this[INTERNALS].error = error - }) + err, + ); + _this[INTERNALS].error = error; + }); } } Body.prototype = { get body() { - return this[INTERNALS].body + return this[INTERNALS].body; }, get bodyUsed() { - return this[INTERNALS].disturbed + return this[INTERNALS].disturbed; }, /** @@ -23661,9 +23692,9 @@ module.exports = /******/ (() => { return consumeBody.call(this).then(function (buf) { return buf.buffer.slice( buf.byteOffset, - buf.byteOffset + buf.byteLength - ) - }) + buf.byteOffset + buf.byteLength, + ); + }); }, /** @@ -23672,18 +23703,18 @@ module.exports = /******/ (() => { * @return Promise */ blob() { - let ct = (this.headers && this.headers.get('content-type')) || '' + let ct = (this.headers && this.headers.get('content-type')) || ''; return consumeBody.call(this).then(function (buf) { return Object.assign( // Prevent copying new Blob([], { - type: ct.toLowerCase() + type: ct.toLowerCase(), }), { - [BUFFER]: buf - } - ) - }) + [BUFFER]: buf, + }, + ); + }); }, /** @@ -23692,20 +23723,20 @@ module.exports = /******/ (() => { * @return Promise */ json() { - var _this2 = this + var _this2 = this; return consumeBody.call(this).then(function (buffer) { try { - return JSON.parse(buffer.toString()) + return JSON.parse(buffer.toString()); } catch (err) { return Body.Promise.reject( new FetchError( `invalid json response body at ${_this2.url} reason: ${err.message}`, - 'invalid-json' - ) - ) + 'invalid-json', + ), + ); } - }) + }); }, /** @@ -23715,8 +23746,8 @@ module.exports = /******/ (() => { */ text() { return consumeBody.call(this).then(function (buffer) { - return buffer.toString() - }) + return buffer.toString(); + }); }, /** @@ -23725,7 +23756,7 @@ module.exports = /******/ (() => { * @return Promise */ buffer() { - return consumeBody.call(this) + return consumeBody.call(this); }, /** @@ -23735,13 +23766,13 @@ module.exports = /******/ (() => { * @return Promise */ textConverted() { - var _this3 = this + var _this3 = this; return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers) - }) - } - } + return convertBody(buffer, _this3.headers); + }); + }, + }; // In browsers, all properties are enumerable. Object.defineProperties(Body.prototype, { @@ -23750,18 +23781,18 @@ module.exports = /******/ (() => { arrayBuffer: { enumerable: true }, blob: { enumerable: true }, json: { enumerable: true }, - text: { enumerable: true } - }) + text: { enumerable: true }, + }); Body.mixIn = function (proto) { for (const name of Object.getOwnPropertyNames(Body.prototype)) { // istanbul ignore else: future proof if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name) - Object.defineProperty(proto, name, desc) + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); } } - } + }; /** * Consume and convert an entire Body to a Buffer. @@ -23771,123 +23802,123 @@ module.exports = /******/ (() => { * @return Promise */ function consumeBody() { - var _this4 = this + var _this4 = this; if (this[INTERNALS].disturbed) { return Body.Promise.reject( - new TypeError(`body used already for: ${this.url}`) - ) + new TypeError(`body used already for: ${this.url}`), + ); } - this[INTERNALS].disturbed = true + this[INTERNALS].disturbed = true; if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error) + return Body.Promise.reject(this[INTERNALS].error); } - let body = this.body + let body = this.body; // body is null if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)) + return Body.Promise.resolve(Buffer.alloc(0)); } // body is blob if (isBlob(body)) { - body = body.stream() + body = body.stream(); } // body is buffer if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body) + return Body.Promise.resolve(body); } // istanbul ignore if: should never happen if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)) + return Body.Promise.resolve(Buffer.alloc(0)); } // body is stream // get ready to actually consume the body - let accum = [] - let accumBytes = 0 - let abort = false + let accum = []; + let accumBytes = 0; + let abort = false; return new Body.Promise(function (resolve, reject) { - let resTimeout + let resTimeout; // allow timeout on slow response body if (_this4.timeout) { resTimeout = setTimeout(function () { - abort = true + abort = true; reject( new FetchError( `Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, - 'body-timeout' - ) - ) - }, _this4.timeout) + 'body-timeout', + ), + ); + }, _this4.timeout); } // handle stream errors body.on('error', function (err) { if (err.name === 'AbortError') { // if the request was aborted, reject with this Error - abort = true - reject(err) + abort = true; + reject(err); } else { // other errors, such as incorrect content-encoding reject( new FetchError( `Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', - err - ) - ) + err, + ), + ); } - }) + }); body.on('data', function (chunk) { if (abort || chunk === null) { - return + return; } if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true + abort = true; reject( new FetchError( `content size at ${_this4.url} over limit: ${_this4.size}`, - 'max-size' - ) - ) - return + 'max-size', + ), + ); + return; } - accumBytes += chunk.length - accum.push(chunk) - }) + accumBytes += chunk.length; + accum.push(chunk); + }); body.on('end', function () { if (abort) { - return + return; } - clearTimeout(resTimeout) + clearTimeout(resTimeout); try { - resolve(Buffer.concat(accum, accumBytes)) + resolve(Buffer.concat(accum, accumBytes)); } catch (err) { // handle streams that have accumulated too much data (issue #414) reject( new FetchError( `Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', - err - ) - ) + err, + ), + ); } - }) - }) + }); + }); } /** @@ -23901,64 +23932,64 @@ module.exports = /******/ (() => { function convertBody(buffer, headers) { if (typeof convert !== 'function') { throw new Error( - 'The package `encoding` must be installed to use the textConverted() function' - ) + 'The package `encoding` must be installed to use the textConverted() function', + ); } - const ct = headers.get('content-type') - let charset = 'utf-8' - let res, str + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; // header if (ct) { - res = /charset=([^;]*)/i.exec(ct) + res = /charset=([^;]*)/i.exec(ct); } // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString() + str = buffer.slice(0, 1024).toString(); // html5 if (!res && str) { - res = / { typeof obj.has !== 'function' || typeof obj.set !== 'function' ) { - return false + return false; } // Brand-checking and more duck-typing as optional condition. @@ -23987,7 +24018,7 @@ module.exports = /******/ (() => { obj.constructor.name === 'URLSearchParams' || Object.prototype.toString.call(obj) === '[object URLSearchParams]' || typeof obj.sort === 'function' - ) + ); } /** @@ -24005,7 +24036,7 @@ module.exports = /******/ (() => { typeof obj.constructor.name === 'string' && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]) - ) + ); } /** @@ -24015,28 +24046,28 @@ module.exports = /******/ (() => { * @return Mixed */ function clone(instance) { - let p1, p2 - let body = instance.body + let p1, p2; + let body = instance.body; // don't allow cloning a used body if (instance.bodyUsed) { - throw new Error('cannot clone body after it is used') + throw new Error('cannot clone body after it is used'); } // check that body is a stream and not form-data object // note: we can't clone the form-data object without having it as a dependency if (body instanceof Stream && typeof body.getBoundary !== 'function') { // tee instance body - p1 = new PassThrough() - p2 = new PassThrough() - body.pipe(p1) - body.pipe(p2) + p1 = new PassThrough(); + p2 = new PassThrough(); + body.pipe(p1); + body.pipe(p2); // set instance body to teed body and return the other teed body - instance[INTERNALS].body = p1 - body = p2 + instance[INTERNALS].body = p1; + body = p2; } - return body + return body; } /** @@ -24051,37 +24082,37 @@ module.exports = /******/ (() => { function extractContentType(body) { if (body === null) { // body is null - return null + return null; } else if (typeof body === 'string') { // body is string - return 'text/plain;charset=UTF-8' + return 'text/plain;charset=UTF-8'; } else if (isURLSearchParams(body)) { // body is a URLSearchParams - return 'application/x-www-form-urlencoded;charset=UTF-8' + return 'application/x-www-form-urlencoded;charset=UTF-8'; } else if (isBlob(body)) { // body is blob - return body.type || null + return body.type || null; } else if (Buffer.isBuffer(body)) { // body is buffer - return null + return null; } else if ( Object.prototype.toString.call(body) === '[object ArrayBuffer]' ) { // body is ArrayBuffer - return null + return null; } else if (ArrayBuffer.isView(body)) { // body is ArrayBufferView - return null + return null; } else if (typeof body.getBoundary === 'function') { // detect form data input from form-data module - return `multipart/form-data;boundary=${body.getBoundary()}` + return `multipart/form-data;boundary=${body.getBoundary()}`; } else if (body instanceof Stream) { // body is stream // can't really do much about this - return null + return null; } else { // Body constructor defaults other things to string - return 'text/plain;charset=UTF-8' + return 'text/plain;charset=UTF-8'; } } @@ -24095,16 +24126,16 @@ module.exports = /******/ (() => { * @return Number? Number of bytes, or null if not possible */ function getTotalBytes(instance) { - const body = instance.body + const body = instance.body; if (body === null) { // body is null - return 0 + return 0; } else if (isBlob(body)) { - return body.size + return body.size; } else if (Buffer.isBuffer(body)) { // body is buffer - return body.length + return body.length; } else if (body && typeof body.getLengthSync === 'function') { // detect form data input from form-data module if ( @@ -24112,12 +24143,12 @@ module.exports = /******/ (() => { (body.hasKnownLength && body.hasKnownLength()) ) { // 2.x - return body.getLengthSync() + return body.getLengthSync(); } - return null + return null; } else { // body is stream - return null + return null; } } @@ -24128,25 +24159,25 @@ module.exports = /******/ (() => { * @return Void */ function writeToStream(dest, instance) { - const body = instance.body + const body = instance.body; if (body === null) { // body is null - dest.end() + dest.end(); } else if (isBlob(body)) { - body.stream().pipe(dest) + body.stream().pipe(dest); } else if (Buffer.isBuffer(body)) { // body is buffer - dest.write(body) - dest.end() + dest.write(body); + dest.end(); } else { // body is stream - body.pipe(dest) + body.pipe(dest); } } // expose Promise - Body.Promise = global.Promise + Body.Promise = global.Promise; /** * headers.js @@ -24154,20 +24185,20 @@ module.exports = /******/ (() => { * Headers class offers convenient helpers */ - const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/ - const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/ + const invalidTokenRegex = /[^\^_`a-zA-Z\-0-9!#$%&'*+.|~]/; + const invalidHeaderCharRegex = /[^\t\x20-\x7e\x80-\xff]/; function validateName(name) { - name = `${name}` + name = `${name}`; if (invalidTokenRegex.test(name) || name === '') { - throw new TypeError(`${name} is not a legal HTTP header name`) + throw new TypeError(`${name} is not a legal HTTP header name`); } } function validateValue(value) { - value = `${value}` + value = `${value}`; if (invalidHeaderCharRegex.test(value)) { - throw new TypeError(`${value} is not a legal HTTP header value`) + throw new TypeError(`${value} is not a legal HTTP header value`); } } @@ -24180,16 +24211,16 @@ module.exports = /******/ (() => { * @return String|Undefined */ function find(map, name) { - name = name.toLowerCase() + name = name.toLowerCase(); for (const key in map) { if (key.toLowerCase() === name) { - return key + return key; } } - return undefined + return undefined; } - const MAP = Symbol('map') + const MAP = Symbol('map'); class Headers { /** * Headers class @@ -24201,63 +24232,63 @@ module.exports = /******/ (() => { let init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] - : undefined + : undefined; - this[MAP] = Object.create(null) + this[MAP] = Object.create(null); if (init instanceof Headers) { - const rawHeaders = init.raw() - const headerNames = Object.keys(rawHeaders) + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); for (const headerName of headerNames) { for (const value of rawHeaders[headerName]) { - this.append(headerName, value) + this.append(headerName, value); } } - return + return; } // We don't worry about converting prop to ByteString here as append() // will handle it. if (init == null); else if (typeof init === 'object') { - const method = init[Symbol.iterator] + const method = init[Symbol.iterator]; if (method != null) { if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable') + throw new TypeError('Header pairs must be iterable'); } // sequence> // Note: per spec we have to first exhaust the lists then process them - const pairs = [] + const pairs = []; for (const pair of init) { if ( typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function' ) { - throw new TypeError('Each header pair must be iterable') + throw new TypeError('Each header pair must be iterable'); } - pairs.push(Array.from(pair)) + pairs.push(Array.from(pair)); } for (const pair of pairs) { if (pair.length !== 2) { throw new TypeError( - 'Each header pair must be a name/value tuple' - ) + 'Each header pair must be a name/value tuple', + ); } - this.append(pair[0], pair[1]) + this.append(pair[0], pair[1]); } } else { // record for (const key of Object.keys(init)) { - const value = init[key] - this.append(key, value) + const value = init[key]; + this.append(key, value); } } } else { - throw new TypeError('Provided initializer must be an object') + throw new TypeError('Provided initializer must be an object'); } } @@ -24268,14 +24299,14 @@ module.exports = /******/ (() => { * @return Mixed */ get(name) { - name = `${name}` - validateName(name) - const key = find(this[MAP], name) + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); if (key === undefined) { - return null + return null; } - return this[MAP][key].join(', ') + return this[MAP][key].join(', '); } /** @@ -24289,18 +24320,18 @@ module.exports = /******/ (() => { let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] - : undefined + : undefined; - let pairs = getHeaders(this) - let i = 0 + let pairs = getHeaders(this); + let i = 0; while (i < pairs.length) { - var _pairs$i = pairs[i] + var _pairs$i = pairs[i]; const name = _pairs$i[0], - value = _pairs$i[1] + value = _pairs$i[1]; - callback.call(thisArg, value, name, this) - pairs = getHeaders(this) - i++ + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; } } @@ -24312,12 +24343,12 @@ module.exports = /******/ (() => { * @return Void */ set(name, value) { - name = `${name}` - value = `${value}` - validateName(name) - validateValue(value) - const key = find(this[MAP], name) - this[MAP][key !== undefined ? key : name] = [value] + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; } /** @@ -24328,15 +24359,15 @@ module.exports = /******/ (() => { * @return Void */ append(name, value) { - name = `${name}` - value = `${value}` - validateName(name) - validateValue(value) - const key = find(this[MAP], name) + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); if (key !== undefined) { - this[MAP][key].push(value) + this[MAP][key].push(value); } else { - this[MAP][name] = [value] + this[MAP][name] = [value]; } } @@ -24347,9 +24378,9 @@ module.exports = /******/ (() => { * @return Boolean */ has(name) { - name = `${name}` - validateName(name) - return find(this[MAP], name) !== undefined + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; } /** @@ -24359,11 +24390,11 @@ module.exports = /******/ (() => { * @return Void */ delete(name) { - name = `${name}` - validateName(name) - const key = find(this[MAP], name) + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); if (key !== undefined) { - delete this[MAP][key] + delete this[MAP][key]; } } @@ -24373,7 +24404,7 @@ module.exports = /******/ (() => { * @return Object */ raw() { - return this[MAP] + return this[MAP]; } /** @@ -24382,7 +24413,7 @@ module.exports = /******/ (() => { * @return Iterator */ keys() { - return createHeadersIterator(this, 'key') + return createHeadersIterator(this, 'key'); } /** @@ -24391,7 +24422,7 @@ module.exports = /******/ (() => { * @return Iterator */ values() { - return createHeadersIterator(this, 'value') + return createHeadersIterator(this, 'value'); } /** @@ -24402,17 +24433,17 @@ module.exports = /******/ (() => { * @return Iterator */ [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value') + return createHeadersIterator(this, 'key+value'); } } - Headers.prototype.entries = Headers.prototype[Symbol.iterator] + Headers.prototype.entries = Headers.prototype[Symbol.iterator]; Object.defineProperty(Headers.prototype, Symbol.toStringTag, { value: 'Headers', writable: false, enumerable: false, - configurable: true - }) + configurable: true, + }); Object.defineProperties(Headers.prototype, { get: { enumerable: true }, @@ -24423,41 +24454,41 @@ module.exports = /******/ (() => { delete: { enumerable: true }, keys: { enumerable: true }, values: { enumerable: true }, - entries: { enumerable: true } - }) + entries: { enumerable: true }, + }); function getHeaders(headers) { let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] - : 'key+value' + : 'key+value'; - const keys = Object.keys(headers[MAP]).sort() + const keys = Object.keys(headers[MAP]).sort(); return keys.map( kind === 'key' ? function (k) { - return k.toLowerCase() + return k.toLowerCase(); } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', ') + return headers[MAP][k].join(', '); } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')] - } - ) + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }, + ); } - const INTERNAL = Symbol('internal') + const INTERNAL = Symbol('internal'); function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype) + const iterator = Object.create(HeadersIteratorPrototype); iterator[INTERNAL] = { target, kind, - index: 0 - } - return iterator + index: 0, + }; + return iterator; } const HeadersIteratorPrototype = Object.setPrototypeOf( @@ -24468,40 +24499,40 @@ module.exports = /******/ (() => { !this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype ) { - throw new TypeError('Value of `this` is not a HeadersIterator') + throw new TypeError('Value of `this` is not a HeadersIterator'); } - var _INTERNAL = this[INTERNAL] + var _INTERNAL = this[INTERNAL]; const target = _INTERNAL.target, kind = _INTERNAL.kind, - index = _INTERNAL.index + index = _INTERNAL.index; - const values = getHeaders(target, kind) - const len = values.length + const values = getHeaders(target, kind); + const len = values.length; if (index >= len) { return { value: undefined, - done: true - } + done: true, + }; } - this[INTERNAL].index = index + 1 + this[INTERNAL].index = index + 1; return { value: values[index], - done: false - } - } + done: false, + }; + }, }, - Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())) - ) + Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())), + ); Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { value: 'HeadersIterator', writable: false, enumerable: false, - configurable: true - }) + configurable: true, + }); /** * Export the Headers object in a form that Node.js can consume. @@ -24510,16 +24541,16 @@ module.exports = /******/ (() => { * @return Object */ function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]) + const obj = Object.assign({ __proto__: null }, headers[MAP]); // http.request() only supports string as Host header. This hack makes // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host') + const hostHeaderKey = find(headers[MAP], 'Host'); if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0] + obj[hostHeaderKey] = obj[hostHeaderKey][0]; } - return obj + return obj; } /** @@ -24530,33 +24561,33 @@ module.exports = /******/ (() => { * @return Headers */ function createHeadersLenient(obj) { - const headers = new Headers() + const headers = new Headers(); for (const name of Object.keys(obj)) { if (invalidTokenRegex.test(name)) { - continue + continue; } if (Array.isArray(obj[name])) { for (const val of obj[name]) { if (invalidHeaderCharRegex.test(val)) { - continue + continue; } if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val] + headers[MAP][name] = [val]; } else { - headers[MAP][name].push(val) + headers[MAP][name].push(val); } } } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]] + headers[MAP][name] = [obj[name]]; } } - return headers + return headers; } - const INTERNALS$1 = Symbol('Response internals') + const INTERNALS$1 = Symbol('Response internals'); // fix an issue where "STATUS_CODES" aren't a named export for node <10 - const STATUS_CODES = http.STATUS_CODES + const STATUS_CODES = http.STATUS_CODES; /** * Response class @@ -24570,21 +24601,21 @@ module.exports = /******/ (() => { let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] - : null + : null; let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] - : {} + : {}; - Body.call(this, body, opts) + Body.call(this, body, opts); - const status = opts.status || 200 - const headers = new Headers(opts.headers) + const status = opts.status || 200; + const headers = new Headers(opts.headers); if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body) + const contentType = extractContentType(body); if (contentType) { - headers.append('Content-Type', contentType) + headers.append('Content-Type', contentType); } } @@ -24593,16 +24624,16 @@ module.exports = /******/ (() => { status, statusText: opts.statusText || STATUS_CODES[status], headers, - counter: opts.counter - } + counter: opts.counter, + }; } get url() { - return this[INTERNALS$1].url || '' + return this[INTERNALS$1].url || ''; } get status() { - return this[INTERNALS$1].status + return this[INTERNALS$1].status; } /** @@ -24611,19 +24642,19 @@ module.exports = /******/ (() => { get ok() { return ( this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300 - ) + ); } get redirected() { - return this[INTERNALS$1].counter > 0 + return this[INTERNALS$1].counter > 0; } get statusText() { - return this[INTERNALS$1].statusText + return this[INTERNALS$1].statusText; } get headers() { - return this[INTERNALS$1].headers + return this[INTERNALS$1].headers; } /** @@ -24638,12 +24669,12 @@ module.exports = /******/ (() => { statusText: this.statusText, headers: this.headers, ok: this.ok, - redirected: this.redirected - }) + redirected: this.redirected, + }); } } - Body.mixIn(Response.prototype) + Body.mixIn(Response.prototype); Object.defineProperties(Response.prototype, { url: { enumerable: true }, @@ -24652,23 +24683,23 @@ module.exports = /******/ (() => { redirected: { enumerable: true }, statusText: { enumerable: true }, headers: { enumerable: true }, - clone: { enumerable: true } - }) + clone: { enumerable: true }, + }); Object.defineProperty(Response.prototype, Symbol.toStringTag, { value: 'Response', writable: false, enumerable: false, - configurable: true - }) + configurable: true, + }); - const INTERNALS$2 = Symbol('Request internals') + const INTERNALS$2 = Symbol('Request internals'); // fix an issue where "format", "parse" aren't a named export for node <10 - const parse_url = Url.parse - const format_url = Url.format + const parse_url = Url.parse; + const format_url = Url.format; - const streamDestructionSupported = 'destroy' in Stream.Readable.prototype + const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; /** * Check if a value is an instance of Request. @@ -24679,13 +24710,13 @@ module.exports = /******/ (() => { function isRequest(input) { return ( typeof input === 'object' && typeof input[INTERNALS$2] === 'object' - ) + ); } function isAbortSignal(signal) { const proto = - signal && typeof signal === 'object' && Object.getPrototypeOf(signal) - return !!(proto && proto.constructor.name === 'AbortSignal') + signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); } /** @@ -24700,9 +24731,9 @@ module.exports = /******/ (() => { let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] - : {} + : {}; - let parsedURL + let parsedURL; // normalize input if (!isRequest(input)) { @@ -24710,24 +24741,26 @@ module.exports = /******/ (() => { // in order to support Node.js' Url objects; though WHATWG's URL objects // will fall into this branch also (since their `toString()` will return // `href` property anyway) - parsedURL = parse_url(input.href) + parsedURL = parse_url(input.href); } else { // coerce input to a string before attempting to parse - parsedURL = parse_url(`${input}`) + parsedURL = parse_url(`${input}`); } - input = {} + input = {}; } else { - parsedURL = parse_url(input.url) + parsedURL = parse_url(input.url); } - let method = init.method || input.method || 'GET' - method = method.toUpperCase() + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); if ( (init.body != null || (isRequest(input) && input.body !== null)) && (method === 'GET' || method === 'HEAD') ) { - throw new TypeError('Request with GET/HEAD method cannot have body') + throw new TypeError( + 'Request with GET/HEAD method cannot have body', + ); } let inputBody = @@ -24735,29 +24768,29 @@ module.exports = /******/ (() => { ? init.body : isRequest(input) && input.body !== null ? clone(input) - : null + : null; Body.call(this, inputBody, { timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }) + size: init.size || input.size || 0, + }); - const headers = new Headers(init.headers || input.headers || {}) + const headers = new Headers(init.headers || input.headers || {}); if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody) + const contentType = extractContentType(inputBody); if (contentType) { - headers.append('Content-Type', contentType) + headers.append('Content-Type', contentType); } } - let signal = isRequest(input) ? input.signal : null - if ('signal' in init) signal = init.signal + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; if (signal != null && !isAbortSignal(signal)) { throw new TypeError( - 'Expected signal to be an instanceof AbortSignal' - ) + 'Expected signal to be an instanceof AbortSignal', + ); } this[INTERNALS$2] = { @@ -24765,8 +24798,8 @@ module.exports = /******/ (() => { redirect: init.redirect || input.redirect || 'follow', headers, parsedURL, - signal - } + signal, + }; // node-fetch-only options this.follow = @@ -24774,35 +24807,35 @@ module.exports = /******/ (() => { ? init.follow : input.follow !== undefined ? input.follow - : 20 + : 20; this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress - : true - this.counter = init.counter || input.counter || 0 - this.agent = init.agent || input.agent + : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; } get method() { - return this[INTERNALS$2].method + return this[INTERNALS$2].method; } get url() { - return format_url(this[INTERNALS$2].parsedURL) + return format_url(this[INTERNALS$2].parsedURL); } get headers() { - return this[INTERNALS$2].headers + return this[INTERNALS$2].headers; } get redirect() { - return this[INTERNALS$2].redirect + return this[INTERNALS$2].redirect; } get signal() { - return this[INTERNALS$2].signal + return this[INTERNALS$2].signal; } /** @@ -24811,18 +24844,18 @@ module.exports = /******/ (() => { * @return Request */ clone() { - return new Request(this) + return new Request(this); } } - Body.mixIn(Request.prototype) + Body.mixIn(Request.prototype); Object.defineProperty(Request.prototype, Symbol.toStringTag, { value: 'Request', writable: false, enumerable: false, - configurable: true - }) + configurable: true, + }); Object.defineProperties(Request.prototype, { method: { enumerable: true }, @@ -24830,8 +24863,8 @@ module.exports = /******/ (() => { headers: { enumerable: true }, redirect: { enumerable: true }, clone: { enumerable: true }, - signal: { enumerable: true } - }) + signal: { enumerable: true }, + }); /** * Convert a Request to Node.js http request options. @@ -24840,21 +24873,21 @@ module.exports = /******/ (() => { * @return Object The options object to be passed to http.request */ function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL - const headers = new Headers(request[INTERNALS$2].headers) + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); // fetch step 1.3 if (!headers.has('Accept')) { - headers.set('Accept', '*/*') + headers.set('Accept', '*/*'); } // Basic fetch if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported') + throw new TypeError('Only absolute URLs are supported'); } if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported') + throw new TypeError('Only HTTP(S) protocols are supported'); } if ( @@ -24863,45 +24896,45 @@ module.exports = /******/ (() => { !streamDestructionSupported ) { throw new Error( - 'Cancellation of streamed requests with AbortSignal is not supported in node < 8' - ) + 'Cancellation of streamed requests with AbortSignal is not supported in node < 8', + ); } // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null + let contentLengthValue = null; if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0' + contentLengthValue = '0'; } if (request.body != null) { - const totalBytes = getTotalBytes(request) + const totalBytes = getTotalBytes(request); if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes) + contentLengthValue = String(totalBytes); } } if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue) + headers.set('Content-Length', contentLengthValue); } // HTTP-network-or-cache fetch step 2.11 if (!headers.has('User-Agent')) { headers.set( 'User-Agent', - 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)' - ) + 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)', + ); } // HTTP-network-or-cache fetch step 2.15 if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate') + headers.set('Accept-Encoding', 'gzip,deflate'); } - let agent = request.agent + let agent = request.agent; if (typeof agent === 'function') { - agent = agent(parsedURL) + agent = agent(parsedURL); } if (!headers.has('Connection') && !agent) { - headers.set('Connection', 'close') + headers.set('Connection', 'close'); } // HTTP-network fetch step 4.2 @@ -24910,8 +24943,8 @@ module.exports = /******/ (() => { return Object.assign({}, parsedURL, { method: request.method, headers: exportNodeCompatibleHeaders(headers), - agent - }) + agent, + }); } /** @@ -24927,22 +24960,22 @@ module.exports = /******/ (() => { * @return AbortError */ function AbortError(message) { - Error.call(this, message) + Error.call(this, message); - this.type = 'aborted' - this.message = message + this.type = 'aborted'; + this.message = message; // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } - AbortError.prototype = Object.create(Error.prototype) - AbortError.prototype.constructor = AbortError - AbortError.prototype.name = 'AbortError' + AbortError.prototype = Object.create(Error.prototype); + AbortError.prototype.constructor = AbortError; + AbortError.prototype.name = 'AbortError'; // fix an issue where "PassThrough", "resolve" aren't a named export for node <10 - const PassThrough$1 = Stream.PassThrough - const resolve_url = Url.resolve + const PassThrough$1 = Stream.PassThrough; + const resolve_url = Url.resolve; /** * Fetch function @@ -24955,55 +24988,55 @@ module.exports = /******/ (() => { // allow custom promise if (!fetch.Promise) { throw new Error( - 'native promise missing, set fetch.Promise to your favorite alternative' - ) + 'native promise missing, set fetch.Promise to your favorite alternative', + ); } - Body.Promise = fetch.Promise + Body.Promise = fetch.Promise; // wrap http.request into fetch return new fetch.Promise(function (resolve, reject) { // build request object - const request = new Request(url, opts) - const options = getNodeRequestOptions(request) + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); - const send = (options.protocol === 'https:' ? https : http).request - const signal = request.signal + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; - let response = null + let response = null; const abort = function abort() { - let error = new AbortError('The user aborted a request.') - reject(error) + let error = new AbortError('The user aborted a request.'); + reject(error); if (request.body && request.body instanceof Stream.Readable) { - request.body.destroy(error) + request.body.destroy(error); } - if (!response || !response.body) return - response.body.emit('error', error) - } + if (!response || !response.body) return; + response.body.emit('error', error); + }; if (signal && signal.aborted) { - abort() - return + abort(); + return; } const abortAndFinalize = function abortAndFinalize() { - abort() - finalize() - } + abort(); + finalize(); + }; // send request - const req = send(options) - let reqTimeout + const req = send(options); + let reqTimeout; if (signal) { - signal.addEventListener('abort', abortAndFinalize) + signal.addEventListener('abort', abortAndFinalize); } function finalize() { - req.abort() - if (signal) signal.removeEventListener('abort', abortAndFinalize) - clearTimeout(reqTimeout) + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); } if (request.timeout) { @@ -25012,12 +25045,12 @@ module.exports = /******/ (() => { reject( new FetchError( `network timeout at: ${request.url}`, - 'request-timeout' - ) - ) - finalize() - }, request.timeout) - }) + 'request-timeout', + ), + ); + finalize(); + }, request.timeout); + }); } req.on('error', function (err) { @@ -25025,25 +25058,25 @@ module.exports = /******/ (() => { new FetchError( `request to ${request.url} failed, reason: ${err.message}`, 'system', - err - ) - ) - finalize() - }) + err, + ), + ); + finalize(); + }); req.on('response', function (res) { - clearTimeout(reqTimeout) + clearTimeout(reqTimeout); - const headers = createHeadersLenient(res.headers) + const headers = createHeadersLenient(res.headers); // HTTP fetch step 5 if (fetch.isRedirect(res.statusCode)) { // HTTP fetch step 5.2 - const location = headers.get('Location') + const location = headers.get('Location'); // HTTP fetch step 5.3 const locationURL = - location === null ? null : resolve_url(request.url, location) + location === null ? null : resolve_url(request.url, location); // HTTP fetch step 5.5 switch (request.redirect) { @@ -25051,27 +25084,27 @@ module.exports = /******/ (() => { reject( new FetchError( `uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, - 'no-redirect' - ) - ) - finalize() - return + 'no-redirect', + ), + ); + finalize(); + return; case 'manual': // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. if (locationURL !== null) { // handle corrupted header try { - headers.set('Location', locationURL) + headers.set('Location', locationURL); } catch (err) { // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err) + reject(err); } } - break + break; case 'follow': // HTTP-redirect fetch step 2 if (locationURL === null) { - break + break; } // HTTP-redirect fetch step 5 @@ -25079,11 +25112,11 @@ module.exports = /******/ (() => { reject( new FetchError( `maximum redirect reached at: ${request.url}`, - 'max-redirect' - ) - ) - finalize() - return + 'max-redirect', + ), + ); + finalize(); + return; } // HTTP-redirect fetch step 6 (counter increment) @@ -25098,8 +25131,8 @@ module.exports = /******/ (() => { body: request.body, signal: request.signal, timeout: request.timeout, - size: request.size - } + size: request.size, + }; // HTTP-redirect fetch step 9 if ( @@ -25110,11 +25143,11 @@ module.exports = /******/ (() => { reject( new FetchError( 'Cannot follow redirect with body being a readable stream', - 'unsupported-redirect' - ) - ) - finalize() - return + 'unsupported-redirect', + ), + ); + finalize(); + return; } // HTTP-redirect fetch step 11 @@ -25123,23 +25156,23 @@ module.exports = /******/ (() => { ((res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') ) { - requestOpts.method = 'GET' - requestOpts.body = undefined - requestOpts.headers.delete('content-length') + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); } // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))) - finalize() - return + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; } } // prepare response res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize) - }) - let body = res.pipe(new PassThrough$1()) + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); const response_options = { url: request.url, @@ -25148,11 +25181,11 @@ module.exports = /******/ (() => { headers: headers, size: request.size, timeout: request.timeout, - counter: request.counter - } + counter: request.counter, + }; // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding') + const codings = headers.get('Content-Encoding'); // HTTP-network fetch step 12.1.1.4: handle content codings @@ -25169,9 +25202,9 @@ module.exports = /******/ (() => { res.statusCode === 204 || res.statusCode === 304 ) { - response = new Response(body, response_options) - resolve(response) - return + response = new Response(body, response_options); + resolve(response); + return; } // For Node v6+ @@ -25181,33 +25214,33 @@ module.exports = /******/ (() => { // Always using Z_SYNC_FLUSH is what cURL does. const zlibOptions = { flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - } + finishFlush: zlib.Z_SYNC_FLUSH, + }; // for gzip if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)) - response = new Response(body, response_options) - resolve(response) - return + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; } // for deflate if (codings == 'deflate' || codings == 'x-deflate') { // handle the infamous raw deflate response from old servers // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()) + const raw = res.pipe(new PassThrough$1()); raw.once('data', function (chunk) { // see http://stackoverflow.com/questions/37519828 if ((chunk[0] & 0x0f) === 0x08) { - body = body.pipe(zlib.createInflate()) + body = body.pipe(zlib.createInflate()); } else { - body = body.pipe(zlib.createInflateRaw()) + body = body.pipe(zlib.createInflateRaw()); } - response = new Response(body, response_options) - resolve(response) - }) - return + response = new Response(body, response_options); + resolve(response); + }); + return; } // for br @@ -25215,19 +25248,19 @@ module.exports = /******/ (() => { codings == 'br' && typeof zlib.createBrotliDecompress === 'function' ) { - body = body.pipe(zlib.createBrotliDecompress()) - response = new Response(body, response_options) - resolve(response) - return + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; } // otherwise, use response as-is - response = new Response(body, response_options) - resolve(response) - }) + response = new Response(body, response_options); + resolve(response); + }); - writeToStream(req, request) - }) + writeToStream(req, request); + }); } /** * Redirect code matching @@ -25242,19 +25275,19 @@ module.exports = /******/ (() => { code === 303 || code === 307 || code === 308 - ) - } + ); + }; // expose Promise - fetch.Promise = global.Promise + fetch.Promise = global.Promise; - module.exports = exports = fetch - Object.defineProperty(exports, '__esModule', { value: true }) - exports.default = exports - exports.Headers = Headers - exports.Request = Request - exports.Response = Response - exports.FetchError = FetchError + module.exports = exports = fetch; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.default = exports; + exports.Headers = Headers; + exports.Request = Request; + exports.Response = Response; + exports.FetchError = FetchError; /***/ }, @@ -25262,54 +25295,54 @@ module.exports = /******/ (() => { /***/ 502: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const path = __webpack_require__(5622) - const pathKey = __webpack_require__(539) + const path = __webpack_require__(5622); + const pathKey = __webpack_require__(539); - module.exports = opts => { + module.exports = (opts) => { opts = Object.assign( { cwd: process.cwd(), - path: process.env[pathKey()] + path: process.env[pathKey()], }, - opts - ) + opts, + ); - let prev - let pth = path.resolve(opts.cwd) - const ret = [] + let prev; + let pth = path.resolve(opts.cwd); + const ret = []; while (prev !== pth) { - ret.push(path.join(pth, 'node_modules/.bin')) - prev = pth - pth = path.resolve(pth, '..') + ret.push(path.join(pth, 'node_modules/.bin')); + prev = pth; + pth = path.resolve(pth, '..'); } // ensure the running `node` binary is used - ret.push(path.dirname(process.execPath)) + ret.push(path.dirname(process.execPath)); - return ret.concat(opts.path).join(path.delimiter) - } + return ret.concat(opts.path).join(path.delimiter); + }; - module.exports.env = opts => { + module.exports.env = (opts) => { opts = Object.assign( { - env: process.env + env: process.env, }, - opts - ) + opts, + ); - const env = Object.assign({}, opts.env) - const path = pathKey({ env }) + const env = Object.assign({}, opts.env); + const path = pathKey({ env }); - opts.path = env[path] - env[path] = module.exports(opts) + opts.path = env[path]; + env[path] = module.exports(opts); - return env - } + return env; + }; /***/ }, @@ -25317,36 +25350,36 @@ module.exports = /******/ (() => { /***/ 2072: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = paginationMethodsPlugin + module.exports = paginationMethodsPlugin; function paginationMethodsPlugin(octokit) { - octokit.getFirstPage = __webpack_require__(9555).bind(null, octokit) - octokit.getLastPage = __webpack_require__(2203).bind(null, octokit) - octokit.getNextPage = __webpack_require__(6655).bind(null, octokit) - octokit.getPreviousPage = __webpack_require__(3032).bind(null, octokit) - octokit.hasFirstPage = __webpack_require__(9631) - octokit.hasLastPage = __webpack_require__(4286) - octokit.hasNextPage = __webpack_require__(500) - octokit.hasPreviousPage = __webpack_require__(5996) + octokit.getFirstPage = __webpack_require__(9555).bind(null, octokit); + octokit.getLastPage = __webpack_require__(2203).bind(null, octokit); + octokit.getNextPage = __webpack_require__(6655).bind(null, octokit); + octokit.getPreviousPage = __webpack_require__(3032).bind(null, octokit); + octokit.hasFirstPage = __webpack_require__(9631); + octokit.hasLastPage = __webpack_require__(4286); + octokit.hasNextPage = __webpack_require__(500); + octokit.hasPreviousPage = __webpack_require__(5996); } /***/ }, - /***/ 191: /***/ module => { - module.exports = deprecate + /***/ 191: /***/ (module) => { + module.exports = deprecate; - const loggedMessages = {} + const loggedMessages = {}; function deprecate(message) { if (loggedMessages[message]) { - return + return; } - console.warn(`DEPRECATED (@octokit/rest): ${message}`) - loggedMessages[message] = 1 + console.warn(`DEPRECATED (@octokit/rest): ${message}`); + loggedMessages[message] = 1; } /***/ @@ -25355,14 +25388,14 @@ module.exports = /******/ (() => { /***/ 9555: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = getFirstPage + module.exports = getFirstPage; - const getPage = __webpack_require__(8604) + const getPage = __webpack_require__(8604); function getFirstPage(octokit, link, headers) { - return getPage(octokit, link, 'first', headers) + return getPage(octokit, link, 'first', headers); } /***/ @@ -25371,14 +25404,14 @@ module.exports = /******/ (() => { /***/ 2203: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = getLastPage + module.exports = getLastPage; - const getPage = __webpack_require__(8604) + const getPage = __webpack_require__(8604); function getLastPage(octokit, link, headers) { - return getPage(octokit, link, 'last', headers) + return getPage(octokit, link, 'last', headers); } /***/ @@ -25387,34 +25420,34 @@ module.exports = /******/ (() => { /***/ 6655: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = getNextPage + module.exports = getNextPage; - const getPage = __webpack_require__(8604) + const getPage = __webpack_require__(8604); function getNextPage(octokit, link, headers) { - return getPage(octokit, link, 'next', headers) + return getPage(octokit, link, 'next', headers); } /***/ }, - /***/ 7889: /***/ module => { - module.exports = getPageLinks + /***/ 7889: /***/ (module) => { + module.exports = getPageLinks; function getPageLinks(link) { - link = link.link || link.headers.link || '' + link = link.link || link.headers.link || ''; - const links = {} + const links = {}; // link format: // '; rel="next", ; rel="last"' link.replace(/<([^>]*)>;\s*rel="([\w]*)"/g, (m, uri, type) => { - links[type] = uri - }) + links[type] = uri; + }); - return links + return links; } /***/ @@ -25423,49 +25456,49 @@ module.exports = /******/ (() => { /***/ 8604: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = getPage + module.exports = getPage; - const deprecate = __webpack_require__(191) - const getPageLinks = __webpack_require__(7889) - const HttpError = __webpack_require__(6058) + const deprecate = __webpack_require__(191); + const getPageLinks = __webpack_require__(7889); + const HttpError = __webpack_require__(6058); function getPage(octokit, link, which, headers) { deprecate( `octokit.get${ which.charAt(0).toUpperCase() + which.slice(1) - }Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.` - ) - const url = getPageLinks(link)[which] + }Page() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`, + ); + const url = getPageLinks(link)[which]; if (!url) { - const urlError = new HttpError(`No ${which} page found`, 404) - return Promise.reject(urlError) + const urlError = new HttpError(`No ${which} page found`, 404); + return Promise.reject(urlError); } const requestOptions = { url, - headers: applyAcceptHeader(link, headers) - } + headers: applyAcceptHeader(link, headers), + }; - const promise = octokit.request(requestOptions) + const promise = octokit.request(requestOptions); - return promise + return promise; } function applyAcceptHeader(res, headers) { - const previous = res.headers && res.headers['x-github-media-type'] + const previous = res.headers && res.headers['x-github-media-type']; if (!previous || (headers && headers.accept)) { - return headers + return headers; } - headers = headers || {} + headers = headers || {}; headers.accept = 'application/vnd.' + - previous.replace('; param=', '.').replace('; format=', '+') + previous.replace('; param=', '.').replace('; format=', '+'); - return headers + return headers; } /***/ @@ -25474,14 +25507,14 @@ module.exports = /******/ (() => { /***/ 3032: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = getPreviousPage + module.exports = getPreviousPage; - const getPage = __webpack_require__(8604) + const getPage = __webpack_require__(8604); function getPreviousPage(octokit, link, headers) { - return getPage(octokit, link, 'prev', headers) + return getPage(octokit, link, 'prev', headers); } /***/ @@ -25490,18 +25523,18 @@ module.exports = /******/ (() => { /***/ 9631: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = hasFirstPage + module.exports = hasFirstPage; - const deprecate = __webpack_require__(191) - const getPageLinks = __webpack_require__(7889) + const deprecate = __webpack_require__(191); + const getPageLinks = __webpack_require__(7889); function hasFirstPage(link) { deprecate( - `octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.` - ) - return getPageLinks(link).first + `octokit.hasFirstPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`, + ); + return getPageLinks(link).first; } /***/ @@ -25510,18 +25543,18 @@ module.exports = /******/ (() => { /***/ 4286: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = hasLastPage + module.exports = hasLastPage; - const deprecate = __webpack_require__(191) - const getPageLinks = __webpack_require__(7889) + const deprecate = __webpack_require__(191); + const getPageLinks = __webpack_require__(7889); function hasLastPage(link) { deprecate( - `octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.` - ) - return getPageLinks(link).last + `octokit.hasLastPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`, + ); + return getPageLinks(link).last; } /***/ @@ -25530,18 +25563,18 @@ module.exports = /******/ (() => { /***/ 500: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = hasNextPage + module.exports = hasNextPage; - const deprecate = __webpack_require__(191) - const getPageLinks = __webpack_require__(7889) + const deprecate = __webpack_require__(191); + const getPageLinks = __webpack_require__(7889); function hasNextPage(link) { deprecate( - `octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.` - ) - return getPageLinks(link).next + `octokit.hasNextPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`, + ); + return getPageLinks(link).next; } /***/ @@ -25550,39 +25583,39 @@ module.exports = /******/ (() => { /***/ 5996: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = hasPreviousPage + module.exports = hasPreviousPage; - const deprecate = __webpack_require__(191) - const getPageLinks = __webpack_require__(7889) + const deprecate = __webpack_require__(191); + const getPageLinks = __webpack_require__(7889); function hasPreviousPage(link) { deprecate( - `octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.` - ) - return getPageLinks(link).prev + `octokit.hasPreviousPage() – You can use octokit.paginate or async iterators instead: https://github.com/octokit/rest.js#pagination.`, + ); + return getPageLinks(link).prev; } /***/ }, - /***/ 6058: /***/ module => { + /***/ 6058: /***/ (module) => { module.exports = class HttpError extends Error { constructor(message, code, headers) { - super(message) + super(message); // Maintains proper stack trace (only available on V8) /* istanbul ignore next */ if (Error.captureStackTrace) { - Error.captureStackTrace(this, this.constructor) + Error.captureStackTrace(this, this.constructor); } - this.name = 'HttpError' - this.code = code - this.headers = headers + this.name = 'HttpError'; + this.code = code; + this.headers = headers; } - } + }; /***/ }, @@ -25590,48 +25623,48 @@ module.exports = /******/ (() => { /***/ 1223: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var wrappy = __webpack_require__(2940) - module.exports = wrappy(once) - module.exports.strict = wrappy(onceStrict) + var wrappy = __webpack_require__(2940); + module.exports = wrappy(once); + module.exports.strict = wrappy(onceStrict); once.proto = once(function () { Object.defineProperty(Function.prototype, 'once', { value: function () { - return once(this) + return once(this); }, - configurable: true - }) + configurable: true, + }); Object.defineProperty(Function.prototype, 'onceStrict', { value: function () { - return onceStrict(this) + return onceStrict(this); }, - configurable: true - }) - }) + configurable: true, + }); + }); function once(fn) { var f = function () { - if (f.called) return f.value - f.called = true - return (f.value = fn.apply(this, arguments)) - } - f.called = false - return f + if (f.called) return f.value; + f.called = true; + return (f.value = fn.apply(this, arguments)); + }; + f.called = false; + return f; } function onceStrict(fn) { var f = function () { - if (f.called) throw new Error(f.onceError) - f.called = true - return (f.value = fn.apply(this, arguments)) - } - var name = fn.name || 'Function wrapped with `once`' - f.onceError = name + " shouldn't be called more than once" - f.called = false - return f + if (f.called) throw new Error(f.onceError); + f.called = true; + return (f.value = fn.apply(this, arguments)); + }; + var name = fn.name || 'Function wrapped with `once`'; + f.onceError = name + " shouldn't be called more than once"; + f.called = false; + return f; } /***/ @@ -25640,103 +25673,105 @@ module.exports = /******/ (() => { /***/ 4824: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const os = __webpack_require__(2087) - const macosRelease = __webpack_require__(7493) - const winRelease = __webpack_require__(3515) + const os = __webpack_require__(2087); + const macosRelease = __webpack_require__(7493); + const winRelease = __webpack_require__(3515); const osName = (platform, release) => { if (!platform && release) { throw new Error( - "You can't specify a `release` without specifying `platform`" - ) + "You can't specify a `release` without specifying `platform`", + ); } - platform = platform || os.platform() + platform = platform || os.platform(); - let id + let id; if (platform === 'darwin') { if (!release && os.platform() === 'darwin') { - release = os.release() + release = os.release(); } const prefix = release ? Number(release.split('.')[0]) > 15 ? 'macOS' : 'OS X' - : 'macOS' - id = release ? macosRelease(release).name : '' - return prefix + (id ? ' ' + id : '') + : 'macOS'; + id = release ? macosRelease(release).name : ''; + return prefix + (id ? ' ' + id : ''); } if (platform === 'linux') { if (!release && os.platform() === 'linux') { - release = os.release() + release = os.release(); } - id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : '' - return 'Linux' + (id ? ' ' + id : '') + id = release ? release.replace(/^(\d+\.\d+).*/, '$1') : ''; + return 'Linux' + (id ? ' ' + id : ''); } if (platform === 'win32') { if (!release && os.platform() === 'win32') { - release = os.release() + release = os.release(); } - id = release ? winRelease(release) : '' - return 'Windows' + (id ? ' ' + id : '') + id = release ? winRelease(release) : ''; + return 'Windows' + (id ? ' ' + id : ''); } - return platform - } + return platform; + }; - module.exports = osName + module.exports = osName; /***/ }, - /***/ 1330: /***/ module => { - 'use strict' + /***/ 1330: /***/ (module) => { + 'use strict'; module.exports = (promise, onFinally) => { - onFinally = onFinally || (() => {}) + onFinally = onFinally || (() => {}); return promise.then( - val => - new Promise(resolve => { - resolve(onFinally()) + (val) => + new Promise((resolve) => { + resolve(onFinally()); }).then(() => val), - err => - new Promise(resolve => { - resolve(onFinally()) + (err) => + new Promise((resolve) => { + resolve(onFinally()); }).then(() => { - throw err - }) - ) - } + throw err; + }), + ); + }; /***/ }, - /***/ 539: /***/ module => { - 'use strict' + /***/ 539: /***/ (module) => { + 'use strict'; - module.exports = opts => { - opts = opts || {} + module.exports = (opts) => { + opts = opts || {}; - const env = opts.env || process.env - const platform = opts.platform || process.platform + const env = opts.env || process.env; + const platform = opts.platform || process.platform; if (platform !== 'win32') { - return 'PATH' + return 'PATH'; } - return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path' - } + return ( + Object.keys(env).find((x) => x.toUpperCase() === 'PATH') || 'Path' + ); + }; /***/ }, @@ -25744,104 +25779,104 @@ module.exports = /******/ (() => { /***/ 8341: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - var once = __webpack_require__(1223) - var eos = __webpack_require__(1205) - var fs = __webpack_require__(5747) // we only need fs to get the ReadStream and WriteStream prototypes + var once = __webpack_require__(1223); + var eos = __webpack_require__(1205); + var fs = __webpack_require__(5747); // we only need fs to get the ReadStream and WriteStream prototypes - var noop = function () {} - var ancient = /^v?\.0/.test(process.version) + var noop = function () {}; + var ancient = /^v?\.0/.test(process.version); var isFn = function (fn) { - return typeof fn === 'function' - } + return typeof fn === 'function'; + }; var isFS = function (stream) { - if (!ancient) return false // newer node version do not need to care about fs is a special way - if (!fs) return false // browser + if (!ancient) return false; // newer node version do not need to care about fs is a special way + if (!fs) return false; // browser return ( (stream instanceof (fs.ReadStream || noop) || stream instanceof (fs.WriteStream || noop)) && isFn(stream.close) - ) - } + ); + }; var isRequest = function (stream) { - return stream.setHeader && isFn(stream.abort) - } + return stream.setHeader && isFn(stream.abort); + }; var destroyer = function (stream, reading, writing, callback) { - callback = once(callback) + callback = once(callback); - var closed = false + var closed = false; stream.on('close', function () { - closed = true - }) + closed = true; + }); eos(stream, { readable: reading, writable: writing }, function (err) { - if (err) return callback(err) - closed = true - callback() - }) + if (err) return callback(err); + closed = true; + callback(); + }); - var destroyed = false + var destroyed = false; return function (err) { - if (closed) return - if (destroyed) return - destroyed = true + if (closed) return; + if (destroyed) return; + destroyed = true; - if (isFS(stream)) return stream.close(noop) // use close for fs streams to avoid fd leaks - if (isRequest(stream)) return stream.abort() // request.destroy just do .end - .abort is what we want + if (isFS(stream)) return stream.close(noop); // use close for fs streams to avoid fd leaks + if (isRequest(stream)) return stream.abort(); // request.destroy just do .end - .abort is what we want - if (isFn(stream.destroy)) return stream.destroy() + if (isFn(stream.destroy)) return stream.destroy(); - callback(err || new Error('stream was destroyed')) - } - } + callback(err || new Error('stream was destroyed')); + }; + }; var call = function (fn) { - fn() - } + fn(); + }; var pipe = function (from, to) { - return from.pipe(to) - } + return from.pipe(to); + }; var pump = function () { - var streams = Array.prototype.slice.call(arguments) + var streams = Array.prototype.slice.call(arguments); var callback = - (isFn(streams[streams.length - 1] || noop) && streams.pop()) || noop + (isFn(streams[streams.length - 1] || noop) && streams.pop()) || noop; - if (Array.isArray(streams[0])) streams = streams[0] + if (Array.isArray(streams[0])) streams = streams[0]; if (streams.length < 2) - throw new Error('pump requires two streams per minimum') + throw new Error('pump requires two streams per minimum'); - var error + var error; var destroys = streams.map(function (stream, i) { - var reading = i < streams.length - 1 - var writing = i > 0 + var reading = i < streams.length - 1; + var writing = i > 0; return destroyer(stream, reading, writing, function (err) { - if (!error) error = err - if (err) destroys.forEach(call) - if (reading) return - destroys.forEach(call) - callback(error) - }) - }) + if (!error) error = err; + if (err) destroys.forEach(call); + if (reading) return; + destroys.forEach(call); + callback(error); + }); + }); - return streams.reduce(pipe) - } + return streams.reduce(pipe); + }; - module.exports = pump + module.exports = pump; /***/ }, /***/ 5911: /***/ (module, exports) => { - exports = module.exports = SemVer + exports = module.exports = SemVer; - var debug + var debug; /* istanbul ignore next */ if ( typeof process === 'object' && @@ -25850,29 +25885,29 @@ module.exports = /******/ (() => { /\bsemver\b/i.test(process.env.NODE_DEBUG) ) { debug = function () { - var args = Array.prototype.slice.call(arguments, 0) - args.unshift('SEMVER') - console.log.apply(console, args) - } + var args = Array.prototype.slice.call(arguments, 0); + args.unshift('SEMVER'); + console.log.apply(console, args); + }; } else { - debug = function () {} + debug = function () {}; } // Note: this is the semver.org version of the spec that it implements // Not necessarily the package version of this code. - exports.SEMVER_SPEC_VERSION = '2.0.0' + exports.SEMVER_SPEC_VERSION = '2.0.0'; - var MAX_LENGTH = 256 + var MAX_LENGTH = 256; var MAX_SAFE_INTEGER = - Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991 + Number.MAX_SAFE_INTEGER || /* istanbul ignore next */ 9007199254740991; // Max safe segment length for coercion. - var MAX_SAFE_COMPONENT_LENGTH = 16 + var MAX_SAFE_COMPONENT_LENGTH = 16; // The actual regexps go on exports.re - var re = (exports.re = []) - var src = (exports.src = []) - var R = 0 + var re = (exports.re = []); + var src = (exports.src = []); + var R = 0; // The following Regular Expressions can be used for tokenizing, // validating, and parsing SemVer version strings. @@ -25880,22 +25915,22 @@ module.exports = /******/ (() => { // ## Numeric Identifier // A single `0`, or a non-zero digit followed by zero or more digits. - var NUMERICIDENTIFIER = R++ - src[NUMERICIDENTIFIER] = '0|[1-9]\\d*' - var NUMERICIDENTIFIERLOOSE = R++ - src[NUMERICIDENTIFIERLOOSE] = '[0-9]+' + var NUMERICIDENTIFIER = R++; + src[NUMERICIDENTIFIER] = '0|[1-9]\\d*'; + var NUMERICIDENTIFIERLOOSE = R++; + src[NUMERICIDENTIFIERLOOSE] = '[0-9]+'; // ## Non-numeric Identifier // Zero or more digits, followed by a letter or hyphen, and then zero or // more letters, digits, or hyphens. - var NONNUMERICIDENTIFIER = R++ - src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*' + var NONNUMERICIDENTIFIER = R++; + src[NONNUMERICIDENTIFIER] = '\\d*[a-zA-Z-][a-zA-Z0-9-]*'; // ## Main Version // Three dot-separated numeric identifiers. - var MAINVERSION = R++ + var MAINVERSION = R++; src[MAINVERSION] = '(' + src[NUMERICIDENTIFIER] + @@ -25905,9 +25940,9 @@ module.exports = /******/ (() => { ')\\.' + '(' + src[NUMERICIDENTIFIER] + - ')' + ')'; - var MAINVERSIONLOOSE = R++ + var MAINVERSIONLOOSE = R++; src[MAINVERSIONLOOSE] = '(' + src[NUMERICIDENTIFIERLOOSE] + @@ -25917,60 +25952,60 @@ module.exports = /******/ (() => { ')\\.' + '(' + src[NUMERICIDENTIFIERLOOSE] + - ')' + ')'; // ## Pre-release Version Identifier // A numeric identifier, or a non-numeric identifier. - var PRERELEASEIDENTIFIER = R++ + var PRERELEASEIDENTIFIER = R++; src[PRERELEASEIDENTIFIER] = - '(?:' + src[NUMERICIDENTIFIER] + '|' + src[NONNUMERICIDENTIFIER] + ')' + '(?:' + src[NUMERICIDENTIFIER] + '|' + src[NONNUMERICIDENTIFIER] + ')'; - var PRERELEASEIDENTIFIERLOOSE = R++ + var PRERELEASEIDENTIFIERLOOSE = R++; src[PRERELEASEIDENTIFIERLOOSE] = '(?:' + src[NUMERICIDENTIFIERLOOSE] + '|' + src[NONNUMERICIDENTIFIER] + - ')' + ')'; // ## Pre-release Version // Hyphen, followed by one or more dot-separated pre-release version // identifiers. - var PRERELEASE = R++ + var PRERELEASE = R++; src[PRERELEASE] = '(?:-(' + src[PRERELEASEIDENTIFIER] + '(?:\\.' + src[PRERELEASEIDENTIFIER] + - ')*))' + ')*))'; - var PRERELEASELOOSE = R++ + var PRERELEASELOOSE = R++; src[PRERELEASELOOSE] = '(?:-?(' + src[PRERELEASEIDENTIFIERLOOSE] + '(?:\\.' + src[PRERELEASEIDENTIFIERLOOSE] + - ')*))' + ')*))'; // ## Build Metadata Identifier // Any combination of digits, letters, or hyphens. - var BUILDIDENTIFIER = R++ - src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+' + var BUILDIDENTIFIER = R++; + src[BUILDIDENTIFIER] = '[0-9A-Za-z-]+'; // ## Build Metadata // Plus sign, followed by one or more period-separated build metadata // identifiers. - var BUILD = R++ + var BUILD = R++; src[BUILD] = '(?:\\+(' + src[BUILDIDENTIFIER] + '(?:\\.' + src[BUILDIDENTIFIER] + - ')*))' + ')*))'; // ## Full Version String // A main version, followed optionally by a pre-release version and @@ -25981,11 +26016,11 @@ module.exports = /******/ (() => { // capturing group, because it should not ever be used in version // comparison. - var FULL = R++ + var FULL = R++; var FULLPLAIN = - 'v?' + src[MAINVERSION] + src[PRERELEASE] + '?' + src[BUILD] + '?' + 'v?' + src[MAINVERSION] + src[PRERELEASE] + '?' + src[BUILD] + '?'; - src[FULL] = '^' + FULLPLAIN + '$' + src[FULL] = '^' + FULLPLAIN + '$'; // like full, but allows v1.2.3 and =1.2.3, which people do sometimes. // also, 1.0.0alpha1 (prerelease without the hyphen) which is pretty @@ -25996,23 +26031,23 @@ module.exports = /******/ (() => { src[PRERELEASELOOSE] + '?' + src[BUILD] + - '?' + '?'; - var LOOSE = R++ - src[LOOSE] = '^' + LOOSEPLAIN + '$' + var LOOSE = R++; + src[LOOSE] = '^' + LOOSEPLAIN + '$'; - var GTLT = R++ - src[GTLT] = '((?:<|>)?=?)' + var GTLT = R++; + src[GTLT] = '((?:<|>)?=?)'; // Something like "2.*" or "1.2.x". // Note that "x.x" is a valid xRange identifer, meaning "any version" // Only the first item is strictly required. - var XRANGEIDENTIFIERLOOSE = R++ - src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' - var XRANGEIDENTIFIER = R++ - src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*' + var XRANGEIDENTIFIERLOOSE = R++; + src[XRANGEIDENTIFIERLOOSE] = src[NUMERICIDENTIFIERLOOSE] + '|x|X|\\*'; + var XRANGEIDENTIFIER = R++; + src[XRANGEIDENTIFIER] = src[NUMERICIDENTIFIER] + '|x|X|\\*'; - var XRANGEPLAIN = R++ + var XRANGEPLAIN = R++; src[XRANGEPLAIN] = '[v=\\s]*(' + src[XRANGEIDENTIFIER] + @@ -26028,9 +26063,9 @@ module.exports = /******/ (() => { ')?' + src[BUILD] + '?' + - ')?)?' + ')?)?'; - var XRANGEPLAINLOOSE = R++ + var XRANGEPLAINLOOSE = R++; src[XRANGEPLAINLOOSE] = '[v=\\s]*(' + src[XRANGEIDENTIFIERLOOSE] + @@ -26046,16 +26081,16 @@ module.exports = /******/ (() => { ')?' + src[BUILD] + '?' + - ')?)?' + ')?)?'; - var XRANGE = R++ - src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$' - var XRANGELOOSE = R++ - src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$' + var XRANGE = R++; + src[XRANGE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAIN] + '$'; + var XRANGELOOSE = R++; + src[XRANGELOOSE] = '^' + src[GTLT] + '\\s*' + src[XRANGEPLAINLOOSE] + '$'; // Coercion. // Extract anything that could conceivably be a part of a valid semver - var COERCE = R++ + var COERCE = R++; src[COERCE] = '(?:^|[^\\d])' + '(\\d{1,' + @@ -26067,47 +26102,47 @@ module.exports = /******/ (() => { '(?:\\.(\\d{1,' + MAX_SAFE_COMPONENT_LENGTH + '}))?' + - '(?:$|[^\\d])' + '(?:$|[^\\d])'; // Tilde ranges. // Meaning is "reasonably at or greater than" - var LONETILDE = R++ - src[LONETILDE] = '(?:~>?)' + var LONETILDE = R++; + src[LONETILDE] = '(?:~>?)'; - var TILDETRIM = R++ - src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+' - re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g') - var tildeTrimReplace = '$1~' + var TILDETRIM = R++; + src[TILDETRIM] = '(\\s*)' + src[LONETILDE] + '\\s+'; + re[TILDETRIM] = new RegExp(src[TILDETRIM], 'g'); + var tildeTrimReplace = '$1~'; - var TILDE = R++ - src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$' - var TILDELOOSE = R++ - src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$' + var TILDE = R++; + src[TILDE] = '^' + src[LONETILDE] + src[XRANGEPLAIN] + '$'; + var TILDELOOSE = R++; + src[TILDELOOSE] = '^' + src[LONETILDE] + src[XRANGEPLAINLOOSE] + '$'; // Caret ranges. // Meaning is "at least and backwards compatible with" - var LONECARET = R++ - src[LONECARET] = '(?:\\^)' + var LONECARET = R++; + src[LONECARET] = '(?:\\^)'; - var CARETTRIM = R++ - src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+' - re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g') - var caretTrimReplace = '$1^' + var CARETTRIM = R++; + src[CARETTRIM] = '(\\s*)' + src[LONECARET] + '\\s+'; + re[CARETTRIM] = new RegExp(src[CARETTRIM], 'g'); + var caretTrimReplace = '$1^'; - var CARET = R++ - src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$' - var CARETLOOSE = R++ - src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$' + var CARET = R++; + src[CARET] = '^' + src[LONECARET] + src[XRANGEPLAIN] + '$'; + var CARETLOOSE = R++; + src[CARETLOOSE] = '^' + src[LONECARET] + src[XRANGEPLAINLOOSE] + '$'; // A simple gt/lt/eq thing, or just "" to indicate "any version" - var COMPARATORLOOSE = R++ - src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$' - var COMPARATOR = R++ - src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$' + var COMPARATORLOOSE = R++; + src[COMPARATORLOOSE] = '^' + src[GTLT] + '\\s*(' + LOOSEPLAIN + ')$|^$'; + var COMPARATOR = R++; + src[COMPARATOR] = '^' + src[GTLT] + '\\s*(' + FULLPLAIN + ')$|^$'; // An expression to strip any whitespace between the gtlt and the thing // it modifies, so that `> 1.2.3` ==> `>1.2.3` - var COMPARATORTRIM = R++ + var COMPARATORTRIM = R++; src[COMPARATORTRIM] = '(\\s*)' + src[GTLT] + @@ -26115,17 +26150,17 @@ module.exports = /******/ (() => { LOOSEPLAIN + '|' + src[XRANGEPLAIN] + - ')' + ')'; // this one has to use the /g flag - re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g') - var comparatorTrimReplace = '$1$2$3' + re[COMPARATORTRIM] = new RegExp(src[COMPARATORTRIM], 'g'); + var comparatorTrimReplace = '$1$2$3'; // Something like `1.2.3 - 1.2.4` // Note that these all use the loose form, because they'll be // checked against either the strict or loose comparator form // later. - var HYPHENRANGE = R++ + var HYPHENRANGE = R++; src[HYPHENRANGE] = '^\\s*(' + src[XRANGEPLAIN] + @@ -26134,9 +26169,9 @@ module.exports = /******/ (() => { '(' + src[XRANGEPLAIN] + ')' + - '\\s*$' + '\\s*$'; - var HYPHENRANGELOOSE = R++ + var HYPHENRANGELOOSE = R++; src[HYPHENRANGELOOSE] = '^\\s*(' + src[XRANGEPLAINLOOSE] + @@ -26145,242 +26180,242 @@ module.exports = /******/ (() => { '(' + src[XRANGEPLAINLOOSE] + ')' + - '\\s*$' + '\\s*$'; // Star ranges basically just allow anything at all. - var STAR = R++ - src[STAR] = '(<|>)?=?\\s*\\*' + var STAR = R++; + src[STAR] = '(<|>)?=?\\s*\\*'; // Compile to actual regexp objects. // All are flag-free, unless they were created above with a flag. for (var i = 0; i < R; i++) { - debug(i, src[i]) + debug(i, src[i]); if (!re[i]) { - re[i] = new RegExp(src[i]) + re[i] = new RegExp(src[i]); } } - exports.parse = parse + exports.parse = parse; function parse(version, options) { if (!options || typeof options !== 'object') { options = { loose: !!options, - includePrerelease: false - } + includePrerelease: false, + }; } if (version instanceof SemVer) { - return version + return version; } if (typeof version !== 'string') { - return null + return null; } if (version.length > MAX_LENGTH) { - return null + return null; } - var r = options.loose ? re[LOOSE] : re[FULL] + var r = options.loose ? re[LOOSE] : re[FULL]; if (!r.test(version)) { - return null + return null; } try { - return new SemVer(version, options) + return new SemVer(version, options); } catch (er) { - return null + return null; } } - exports.valid = valid + exports.valid = valid; function valid(version, options) { - var v = parse(version, options) - return v ? v.version : null + var v = parse(version, options); + return v ? v.version : null; } - exports.clean = clean + exports.clean = clean; function clean(version, options) { - var s = parse(version.trim().replace(/^[=v]+/, ''), options) - return s ? s.version : null + var s = parse(version.trim().replace(/^[=v]+/, ''), options); + return s ? s.version : null; } - exports.SemVer = SemVer + exports.SemVer = SemVer; function SemVer(version, options) { if (!options || typeof options !== 'object') { options = { loose: !!options, - includePrerelease: false - } + includePrerelease: false, + }; } if (version instanceof SemVer) { if (version.loose === options.loose) { - return version + return version; } else { - version = version.version + version = version.version; } } else if (typeof version !== 'string') { - throw new TypeError('Invalid Version: ' + version) + throw new TypeError('Invalid Version: ' + version); } if (version.length > MAX_LENGTH) { throw new TypeError( - 'version is longer than ' + MAX_LENGTH + ' characters' - ) + 'version is longer than ' + MAX_LENGTH + ' characters', + ); } if (!(this instanceof SemVer)) { - return new SemVer(version, options) + return new SemVer(version, options); } - debug('SemVer', version, options) - this.options = options - this.loose = !!options.loose + debug('SemVer', version, options); + this.options = options; + this.loose = !!options.loose; - var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]) + var m = version.trim().match(options.loose ? re[LOOSE] : re[FULL]); if (!m) { - throw new TypeError('Invalid Version: ' + version) + throw new TypeError('Invalid Version: ' + version); } - this.raw = version + this.raw = version; // these are actually numbers - this.major = +m[1] - this.minor = +m[2] - this.patch = +m[3] + this.major = +m[1]; + this.minor = +m[2]; + this.patch = +m[3]; if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError('Invalid major version') + throw new TypeError('Invalid major version'); } if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError('Invalid minor version') + throw new TypeError('Invalid minor version'); } if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError('Invalid patch version') + throw new TypeError('Invalid patch version'); } // numberify any prerelease numeric ids if (!m[4]) { - this.prerelease = [] + this.prerelease = []; } else { this.prerelease = m[4].split('.').map(function (id) { if (/^[0-9]+$/.test(id)) { - var num = +id + var num = +id; if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num + return num; } } - return id - }) + return id; + }); } - this.build = m[5] ? m[5].split('.') : [] - this.format() + this.build = m[5] ? m[5].split('.') : []; + this.format(); } SemVer.prototype.format = function () { - this.version = this.major + '.' + this.minor + '.' + this.patch + this.version = this.major + '.' + this.minor + '.' + this.patch; if (this.prerelease.length) { - this.version += '-' + this.prerelease.join('.') + this.version += '-' + this.prerelease.join('.'); } - return this.version - } + return this.version; + }; SemVer.prototype.toString = function () { - return this.version - } + return this.version; + }; SemVer.prototype.compare = function (other) { - debug('SemVer.compare', this.version, this.options, other) + debug('SemVer.compare', this.version, this.options, other); if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) + other = new SemVer(other, this.options); } - return this.compareMain(other) || this.comparePre(other) - } + return this.compareMain(other) || this.comparePre(other); + }; SemVer.prototype.compareMain = function (other) { if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) + other = new SemVer(other, this.options); } return ( compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch) - ) - } + ); + }; SemVer.prototype.comparePre = function (other) { if (!(other instanceof SemVer)) { - other = new SemVer(other, this.options) + other = new SemVer(other, this.options); } // NOT having a prerelease is > having one if (this.prerelease.length && !other.prerelease.length) { - return -1 + return -1; } else if (!this.prerelease.length && other.prerelease.length) { - return 1 + return 1; } else if (!this.prerelease.length && !other.prerelease.length) { - return 0 + return 0; } - var i = 0 + var i = 0; do { - var a = this.prerelease[i] - var b = other.prerelease[i] - debug('prerelease compare', i, a, b) + var a = this.prerelease[i]; + var b = other.prerelease[i]; + debug('prerelease compare', i, a, b); if (a === undefined && b === undefined) { - return 0 + return 0; } else if (b === undefined) { - return 1 + return 1; } else if (a === undefined) { - return -1 + return -1; } else if (a === b) { - continue + continue; } else { - return compareIdentifiers(a, b) + return compareIdentifiers(a, b); } - } while (++i) - } + } while (++i); + }; // preminor will bump the version up to the next minor release, and immediately // down to pre-release. premajor and prepatch work the same way. SemVer.prototype.inc = function (release, identifier) { switch (release) { case 'premajor': - this.prerelease.length = 0 - this.patch = 0 - this.minor = 0 - this.major++ - this.inc('pre', identifier) - break + this.prerelease.length = 0; + this.patch = 0; + this.minor = 0; + this.major++; + this.inc('pre', identifier); + break; case 'preminor': - this.prerelease.length = 0 - this.patch = 0 - this.minor++ - this.inc('pre', identifier) - break + this.prerelease.length = 0; + this.patch = 0; + this.minor++; + this.inc('pre', identifier); + break; case 'prepatch': // If this is already a prerelease, it will bump to the next version // drop any prereleases that might already exist, since they are not // relevant at this point. - this.prerelease.length = 0 - this.inc('patch', identifier) - this.inc('pre', identifier) - break + this.prerelease.length = 0; + this.inc('patch', identifier); + this.inc('pre', identifier); + break; // If the input is a non-prerelease version, this acts the same as // prepatch. case 'prerelease': if (this.prerelease.length === 0) { - this.inc('patch', identifier) + this.inc('patch', identifier); } - this.inc('pre', identifier) - break + this.inc('pre', identifier); + break; case 'major': // If this is a pre-major version, bump up to the same major version. @@ -26392,49 +26427,49 @@ module.exports = /******/ (() => { this.patch !== 0 || this.prerelease.length === 0 ) { - this.major++ + this.major++; } - this.minor = 0 - this.patch = 0 - this.prerelease = [] - break + this.minor = 0; + this.patch = 0; + this.prerelease = []; + break; case 'minor': // If this is a pre-minor version, bump up to the same minor version. // Otherwise increment minor. // 1.2.0-5 bumps to 1.2.0 // 1.2.1 bumps to 1.3.0 if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++ + this.minor++; } - this.patch = 0 - this.prerelease = [] - break + this.patch = 0; + this.prerelease = []; + break; case 'patch': // If this is not a pre-release version, it will increment the patch. // If it is a pre-release it will bump up to the same patch version. // 1.2.0-5 patches to 1.2.0 // 1.2.0 patches to 1.2.1 if (this.prerelease.length === 0) { - this.patch++ + this.patch++; } - this.prerelease = [] - break + this.prerelease = []; + break; // This probably shouldn't be used publicly. // 1.0.0 "pre" would become 1.0.0-0 which is the wrong direction. case 'pre': if (this.prerelease.length === 0) { - this.prerelease = [0] + this.prerelease = [0]; } else { - var i = this.prerelease.length + var i = this.prerelease.length; while (--i >= 0) { if (typeof this.prerelease[i] === 'number') { - this.prerelease[i]++ - i = -2 + this.prerelease[i]++; + i = -2; } } if (i === -1) { // didn't increment anything - this.prerelease.push(0) + this.prerelease.push(0); } } if (identifier) { @@ -26442,69 +26477,69 @@ module.exports = /******/ (() => { // 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0 if (this.prerelease[0] === identifier) { if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0] + this.prerelease = [identifier, 0]; } } else { - this.prerelease = [identifier, 0] + this.prerelease = [identifier, 0]; } } - break + break; default: - throw new Error('invalid increment argument: ' + release) + throw new Error('invalid increment argument: ' + release); } - this.format() - this.raw = this.version - return this - } + this.format(); + this.raw = this.version; + return this; + }; - exports.inc = inc + exports.inc = inc; function inc(version, release, loose, identifier) { if (typeof loose === 'string') { - identifier = loose - loose = undefined + identifier = loose; + loose = undefined; } try { - return new SemVer(version, loose).inc(release, identifier).version + return new SemVer(version, loose).inc(release, identifier).version; } catch (er) { - return null + return null; } } - exports.diff = diff + exports.diff = diff; function diff(version1, version2) { if (eq(version1, version2)) { - return null + return null; } else { - var v1 = parse(version1) - var v2 = parse(version2) - var prefix = '' + var v1 = parse(version1); + var v2 = parse(version2); + var prefix = ''; if (v1.prerelease.length || v2.prerelease.length) { - prefix = 'pre' - var defaultResult = 'prerelease' + prefix = 'pre'; + var defaultResult = 'prerelease'; } for (var key in v1) { if (key === 'major' || key === 'minor' || key === 'patch') { if (v1[key] !== v2[key]) { - return prefix + key + return prefix + key; } } } - return defaultResult // may be undefined + return defaultResult; // may be undefined } } - exports.compareIdentifiers = compareIdentifiers + exports.compareIdentifiers = compareIdentifiers; - var numeric = /^[0-9]+$/ + var numeric = /^[0-9]+$/; function compareIdentifiers(a, b) { - var anum = numeric.test(a) - var bnum = numeric.test(b) + var anum = numeric.test(a); + var bnum = numeric.test(b); if (anum && bnum) { - a = +a - b = +b + a = +a; + b = +b; } return a === b @@ -26515,241 +26550,241 @@ module.exports = /******/ (() => { ? 1 : a < b ? -1 - : 1 + : 1; } - exports.rcompareIdentifiers = rcompareIdentifiers + exports.rcompareIdentifiers = rcompareIdentifiers; function rcompareIdentifiers(a, b) { - return compareIdentifiers(b, a) + return compareIdentifiers(b, a); } - exports.major = major + exports.major = major; function major(a, loose) { - return new SemVer(a, loose).major + return new SemVer(a, loose).major; } - exports.minor = minor + exports.minor = minor; function minor(a, loose) { - return new SemVer(a, loose).minor + return new SemVer(a, loose).minor; } - exports.patch = patch + exports.patch = patch; function patch(a, loose) { - return new SemVer(a, loose).patch + return new SemVer(a, loose).patch; } - exports.compare = compare + exports.compare = compare; function compare(a, b, loose) { - return new SemVer(a, loose).compare(new SemVer(b, loose)) + return new SemVer(a, loose).compare(new SemVer(b, loose)); } - exports.compareLoose = compareLoose + exports.compareLoose = compareLoose; function compareLoose(a, b) { - return compare(a, b, true) + return compare(a, b, true); } - exports.rcompare = rcompare + exports.rcompare = rcompare; function rcompare(a, b, loose) { - return compare(b, a, loose) + return compare(b, a, loose); } - exports.sort = sort + exports.sort = sort; function sort(list, loose) { return list.sort(function (a, b) { - return exports.compare(a, b, loose) - }) + return exports.compare(a, b, loose); + }); } - exports.rsort = rsort + exports.rsort = rsort; function rsort(list, loose) { return list.sort(function (a, b) { - return exports.rcompare(a, b, loose) - }) + return exports.rcompare(a, b, loose); + }); } - exports.gt = gt + exports.gt = gt; function gt(a, b, loose) { - return compare(a, b, loose) > 0 + return compare(a, b, loose) > 0; } - exports.lt = lt + exports.lt = lt; function lt(a, b, loose) { - return compare(a, b, loose) < 0 + return compare(a, b, loose) < 0; } - exports.eq = eq + exports.eq = eq; function eq(a, b, loose) { - return compare(a, b, loose) === 0 + return compare(a, b, loose) === 0; } - exports.neq = neq + exports.neq = neq; function neq(a, b, loose) { - return compare(a, b, loose) !== 0 + return compare(a, b, loose) !== 0; } - exports.gte = gte + exports.gte = gte; function gte(a, b, loose) { - return compare(a, b, loose) >= 0 + return compare(a, b, loose) >= 0; } - exports.lte = lte + exports.lte = lte; function lte(a, b, loose) { - return compare(a, b, loose) <= 0 + return compare(a, b, loose) <= 0; } - exports.cmp = cmp + exports.cmp = cmp; function cmp(a, op, b, loose) { switch (op) { case '===': - if (typeof a === 'object') a = a.version - if (typeof b === 'object') b = b.version - return a === b + if (typeof a === 'object') a = a.version; + if (typeof b === 'object') b = b.version; + return a === b; case '!==': - if (typeof a === 'object') a = a.version - if (typeof b === 'object') b = b.version - return a !== b + if (typeof a === 'object') a = a.version; + if (typeof b === 'object') b = b.version; + return a !== b; case '': case '=': case '==': - return eq(a, b, loose) + return eq(a, b, loose); case '!=': - return neq(a, b, loose) + return neq(a, b, loose); case '>': - return gt(a, b, loose) + return gt(a, b, loose); case '>=': - return gte(a, b, loose) + return gte(a, b, loose); case '<': - return lt(a, b, loose) + return lt(a, b, loose); case '<=': - return lte(a, b, loose) + return lte(a, b, loose); default: - throw new TypeError('Invalid operator: ' + op) + throw new TypeError('Invalid operator: ' + op); } } - exports.Comparator = Comparator + exports.Comparator = Comparator; function Comparator(comp, options) { if (!options || typeof options !== 'object') { options = { loose: !!options, - includePrerelease: false - } + includePrerelease: false, + }; } if (comp instanceof Comparator) { if (comp.loose === !!options.loose) { - return comp + return comp; } else { - comp = comp.value + comp = comp.value; } } if (!(this instanceof Comparator)) { - return new Comparator(comp, options) + return new Comparator(comp, options); } - debug('comparator', comp, options) - this.options = options - this.loose = !!options.loose - this.parse(comp) + debug('comparator', comp, options); + this.options = options; + this.loose = !!options.loose; + this.parse(comp); if (this.semver === ANY) { - this.value = '' + this.value = ''; } else { - this.value = this.operator + this.semver.version + this.value = this.operator + this.semver.version; } - debug('comp', this) + debug('comp', this); } - var ANY = {} + var ANY = {}; Comparator.prototype.parse = function (comp) { - var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR] - var m = comp.match(r) + var r = this.options.loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; + var m = comp.match(r); if (!m) { - throw new TypeError('Invalid comparator: ' + comp) + throw new TypeError('Invalid comparator: ' + comp); } - this.operator = m[1] + this.operator = m[1]; if (this.operator === '=') { - this.operator = '' + this.operator = ''; } // if it literally is just '>' or '' then allow anything. if (!m[2]) { - this.semver = ANY + this.semver = ANY; } else { - this.semver = new SemVer(m[2], this.options.loose) + this.semver = new SemVer(m[2], this.options.loose); } - } + }; Comparator.prototype.toString = function () { - return this.value - } + return this.value; + }; Comparator.prototype.test = function (version) { - debug('Comparator.test', version, this.options.loose) + debug('Comparator.test', version, this.options.loose); if (this.semver === ANY) { - return true + return true; } if (typeof version === 'string') { - version = new SemVer(version, this.options) + version = new SemVer(version, this.options); } - return cmp(version, this.operator, this.semver, this.options) - } + return cmp(version, this.operator, this.semver, this.options); + }; Comparator.prototype.intersects = function (comp, options) { if (!(comp instanceof Comparator)) { - throw new TypeError('a Comparator is required') + throw new TypeError('a Comparator is required'); } if (!options || typeof options !== 'object') { options = { loose: !!options, - includePrerelease: false - } + includePrerelease: false, + }; } - var rangeTmp + var rangeTmp; if (this.operator === '') { - rangeTmp = new Range(comp.value, options) - return satisfies(this.value, rangeTmp, options) + rangeTmp = new Range(comp.value, options); + return satisfies(this.value, rangeTmp, options); } else if (comp.operator === '') { - rangeTmp = new Range(this.value, options) - return satisfies(comp.semver, rangeTmp, options) + rangeTmp = new Range(this.value, options); + return satisfies(comp.semver, rangeTmp, options); } var sameDirectionIncreasing = (this.operator === '>=' || this.operator === '>') && - (comp.operator === '>=' || comp.operator === '>') + (comp.operator === '>=' || comp.operator === '>'); var sameDirectionDecreasing = (this.operator === '<=' || this.operator === '<') && - (comp.operator === '<=' || comp.operator === '<') - var sameSemVer = this.semver.version === comp.semver.version + (comp.operator === '<=' || comp.operator === '<'); + var sameSemVer = this.semver.version === comp.semver.version; var differentDirectionsInclusive = (this.operator === '>=' || this.operator === '<=') && - (comp.operator === '>=' || comp.operator === '<=') + (comp.operator === '>=' || comp.operator === '<='); var oppositeDirectionsLessThan = cmp(this.semver, '<', comp.semver, options) && (this.operator === '>=' || this.operator === '>') && - (comp.operator === '<=' || comp.operator === '<') + (comp.operator === '<=' || comp.operator === '<'); var oppositeDirectionsGreaterThan = cmp(this.semver, '>', comp.semver, options) && (this.operator === '<=' || this.operator === '<') && - (comp.operator === '>=' || comp.operator === '>') + (comp.operator === '>=' || comp.operator === '>'); return ( sameDirectionIncreasing || @@ -26757,16 +26792,16 @@ module.exports = /******/ (() => { (sameSemVer && differentDirectionsInclusive) || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan - ) - } + ); + }; - exports.Range = Range + exports.Range = Range; function Range(range, options) { if (!options || typeof options !== 'object') { options = { loose: !!options, - includePrerelease: false - } + includePrerelease: false, + }; } if (range instanceof Range) { @@ -26774,149 +26809,149 @@ module.exports = /******/ (() => { range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ) { - return range + return range; } else { - return new Range(range.raw, options) + return new Range(range.raw, options); } } if (range instanceof Comparator) { - return new Range(range.value, options) + return new Range(range.value, options); } if (!(this instanceof Range)) { - return new Range(range, options) + return new Range(range, options); } - this.options = options - this.loose = !!options.loose - this.includePrerelease = !!options.includePrerelease + this.options = options; + this.loose = !!options.loose; + this.includePrerelease = !!options.includePrerelease; // First, split based on boolean or || - this.raw = range + this.raw = range; this.set = range .split(/\s*\|\|\s*/) .map(function (range) { - return this.parseRange(range.trim()) + return this.parseRange(range.trim()); }, this) .filter(function (c) { // throw out any that are not relevant for whatever reason - return c.length - }) + return c.length; + }); if (!this.set.length) { - throw new TypeError('Invalid SemVer Range: ' + range) + throw new TypeError('Invalid SemVer Range: ' + range); } - this.format() + this.format(); } Range.prototype.format = function () { this.range = this.set .map(function (comps) { - return comps.join(' ').trim() + return comps.join(' ').trim(); }) .join('||') - .trim() - return this.range - } + .trim(); + return this.range; + }; Range.prototype.toString = function () { - return this.range - } + return this.range; + }; Range.prototype.parseRange = function (range) { - var loose = this.options.loose - range = range.trim() + var loose = this.options.loose; + range = range.trim(); // `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4` - var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE] - range = range.replace(hr, hyphenReplace) - debug('hyphen replace', range) + var hr = loose ? re[HYPHENRANGELOOSE] : re[HYPHENRANGE]; + range = range.replace(hr, hyphenReplace); + debug('hyphen replace', range); // `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5` - range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace) - debug('comparator trim', range, re[COMPARATORTRIM]) + range = range.replace(re[COMPARATORTRIM], comparatorTrimReplace); + debug('comparator trim', range, re[COMPARATORTRIM]); // `~ 1.2.3` => `~1.2.3` - range = range.replace(re[TILDETRIM], tildeTrimReplace) + range = range.replace(re[TILDETRIM], tildeTrimReplace); // `^ 1.2.3` => `^1.2.3` - range = range.replace(re[CARETTRIM], caretTrimReplace) + range = range.replace(re[CARETTRIM], caretTrimReplace); // normalize spaces - range = range.split(/\s+/).join(' ') + range = range.split(/\s+/).join(' '); // At this point, the range is completely trimmed and // ready to be split into comparators. - var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR] + var compRe = loose ? re[COMPARATORLOOSE] : re[COMPARATOR]; var set = range .split(' ') .map(function (comp) { - return parseComparator(comp, this.options) + return parseComparator(comp, this.options); }, this) .join(' ') - .split(/\s+/) + .split(/\s+/); if (this.options.loose) { // in loose mode, throw out any that are not valid comparators set = set.filter(function (comp) { - return !!comp.match(compRe) - }) + return !!comp.match(compRe); + }); } set = set.map(function (comp) { - return new Comparator(comp, this.options) - }, this) + return new Comparator(comp, this.options); + }, this); - return set - } + return set; + }; Range.prototype.intersects = function (range, options) { if (!(range instanceof Range)) { - throw new TypeError('a Range is required') + throw new TypeError('a Range is required'); } return this.set.some(function (thisComparators) { return thisComparators.every(function (thisComparator) { return range.set.some(function (rangeComparators) { return rangeComparators.every(function (rangeComparator) { - return thisComparator.intersects(rangeComparator, options) - }) - }) - }) - }) - } + return thisComparator.intersects(rangeComparator, options); + }); + }); + }); + }); + }; // Mostly just for testing and legacy API reasons - exports.toComparators = toComparators + exports.toComparators = toComparators; function toComparators(range, options) { return new Range(range, options).set.map(function (comp) { return comp .map(function (c) { - return c.value + return c.value; }) .join(' ') .trim() - .split(' ') - }) + .split(' '); + }); } // comprised of xranges, tildes, stars, and gtlt's at this point. // already replaced the hyphen ranges // turn into a set of JUST comparators. function parseComparator(comp, options) { - debug('comp', comp, options) - comp = replaceCarets(comp, options) - debug('caret', comp) - comp = replaceTildes(comp, options) - debug('tildes', comp) - comp = replaceXRanges(comp, options) - debug('xrange', comp) - comp = replaceStars(comp, options) - debug('stars', comp) - return comp + debug('comp', comp, options); + comp = replaceCarets(comp, options); + debug('caret', comp); + comp = replaceTildes(comp, options); + debug('tildes', comp); + comp = replaceXRanges(comp, options); + debug('xrange', comp); + comp = replaceStars(comp, options); + debug('stars', comp); + return comp; } function isX(id) { - return !id || id.toLowerCase() === 'x' || id === '*' + return !id || id.toLowerCase() === 'x' || id === '*'; } // ~, ~> --> * (any, kinda silly) @@ -26930,26 +26965,26 @@ module.exports = /******/ (() => { .trim() .split(/\s+/) .map(function (comp) { - return replaceTilde(comp, options) + return replaceTilde(comp, options); }) - .join(' ') + .join(' '); } function replaceTilde(comp, options) { - var r = options.loose ? re[TILDELOOSE] : re[TILDE] + var r = options.loose ? re[TILDELOOSE] : re[TILDE]; return comp.replace(r, function (_, M, m, p, pr) { - debug('tilde', comp, _, M, m, p, pr) - var ret + debug('tilde', comp, _, M, m, p, pr); + var ret; if (isX(M)) { - ret = '' + ret = ''; } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; } else if (isX(p)) { // ~1.2 == >=1.2.0 <1.3.0 - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; } else if (pr) { - debug('replaceTilde pr', pr) + debug('replaceTilde pr', pr); ret = '>=' + M + @@ -26963,16 +26998,16 @@ module.exports = /******/ (() => { M + '.' + (+m + 1) + - '.0' + '.0'; } else { // ~1.2.3 == >=1.2.3 <1.3.0 ret = - '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0' + '>=' + M + '.' + m + '.' + p + ' <' + M + '.' + (+m + 1) + '.0'; } - debug('tilde return', ret) - return ret - }) + debug('tilde return', ret); + return ret; + }); } // ^ --> * (any, kinda silly) @@ -26986,30 +27021,30 @@ module.exports = /******/ (() => { .trim() .split(/\s+/) .map(function (comp) { - return replaceCaret(comp, options) + return replaceCaret(comp, options); }) - .join(' ') + .join(' '); } function replaceCaret(comp, options) { - debug('caret', comp, options) - var r = options.loose ? re[CARETLOOSE] : re[CARET] + debug('caret', comp, options); + var r = options.loose ? re[CARETLOOSE] : re[CARET]; return comp.replace(r, function (_, M, m, p, pr) { - debug('caret', comp, _, M, m, p, pr) - var ret + debug('caret', comp, _, M, m, p, pr); + var ret; if (isX(M)) { - ret = '' + ret = ''; } else if (isX(m)) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; } else if (isX(p)) { if (M === '0') { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; } else { - ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.' + m + '.0 <' + (+M + 1) + '.0.0'; } } else if (pr) { - debug('replaceCaret pr', pr) + debug('replaceCaret pr', pr); if (M === '0') { if (m === '0') { ret = @@ -27026,7 +27061,7 @@ module.exports = /******/ (() => { '.' + m + '.' + - (+p + 1) + (+p + 1); } else { ret = '>=' + @@ -27041,7 +27076,7 @@ module.exports = /******/ (() => { M + '.' + (+m + 1) + - '.0' + '.0'; } } else { ret = @@ -27055,10 +27090,10 @@ module.exports = /******/ (() => { pr + ' <' + (+M + 1) + - '.0.0' + '.0.0'; } } else { - debug('no pr') + debug('no pr'); if (M === '0') { if (m === '0') { ret = @@ -27073,7 +27108,7 @@ module.exports = /******/ (() => { '.' + m + '.' + - (+p + 1) + (+p + 1); } else { ret = '>=' + @@ -27086,101 +27121,101 @@ module.exports = /******/ (() => { M + '.' + (+m + 1) + - '.0' + '.0'; } } else { - ret = '>=' + M + '.' + m + '.' + p + ' <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.' + m + '.' + p + ' <' + (+M + 1) + '.0.0'; } } - debug('caret return', ret) - return ret - }) + debug('caret return', ret); + return ret; + }); } function replaceXRanges(comp, options) { - debug('replaceXRanges', comp, options) + debug('replaceXRanges', comp, options); return comp .split(/\s+/) .map(function (comp) { - return replaceXRange(comp, options) + return replaceXRange(comp, options); }) - .join(' ') + .join(' '); } function replaceXRange(comp, options) { - comp = comp.trim() - var r = options.loose ? re[XRANGELOOSE] : re[XRANGE] + comp = comp.trim(); + var r = options.loose ? re[XRANGELOOSE] : re[XRANGE]; return comp.replace(r, function (ret, gtlt, M, m, p, pr) { - debug('xRange', comp, ret, gtlt, M, m, p, pr) - var xM = isX(M) - var xm = xM || isX(m) - var xp = xm || isX(p) - var anyX = xp + debug('xRange', comp, ret, gtlt, M, m, p, pr); + var xM = isX(M); + var xm = xM || isX(m); + var xp = xm || isX(p); + var anyX = xp; if (gtlt === '=' && anyX) { - gtlt = '' + gtlt = ''; } if (xM) { if (gtlt === '>' || gtlt === '<') { // nothing is allowed - ret = '<0.0.0' + ret = '<0.0.0'; } else { // nothing is forbidden - ret = '*' + ret = '*'; } } else if (gtlt && anyX) { // we know patch is an x, because we have any x at all. // replace X with 0 if (xm) { - m = 0 + m = 0; } - p = 0 + p = 0; if (gtlt === '>') { // >1 => >=2.0.0 // >1.2 => >=1.3.0 // >1.2.3 => >= 1.2.4 - gtlt = '>=' + gtlt = '>='; if (xm) { - M = +M + 1 - m = 0 - p = 0 + M = +M + 1; + m = 0; + p = 0; } else { - m = +m + 1 - p = 0 + m = +m + 1; + p = 0; } } else if (gtlt === '<=') { // <=0.7.x is actually <0.8.0, since any 0.7.x should // pass. Similarly, <=7.x is actually <8.0.0, etc. - gtlt = '<' + gtlt = '<'; if (xm) { - M = +M + 1 + M = +M + 1; } else { - m = +m + 1 + m = +m + 1; } } - ret = gtlt + M + '.' + m + '.' + p + ret = gtlt + M + '.' + m + '.' + p; } else if (xm) { - ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0' + ret = '>=' + M + '.0.0 <' + (+M + 1) + '.0.0'; } else if (xp) { - ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0' + ret = '>=' + M + '.' + m + '.0 <' + M + '.' + (+m + 1) + '.0'; } - debug('xRange return', ret) + debug('xRange return', ret); - return ret - }) + return ret; + }); } // Because * is AND-ed with everything else in the comparator, // and '' means "any version", just remove the *s entirely. function replaceStars(comp, options) { - debug('replaceStars', comp, options) + debug('replaceStars', comp, options); // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[STAR], '') + return comp.trim().replace(re[STAR], ''); } // This function is passed to string.replace(re[HYPHENRANGE]) @@ -27201,55 +27236,55 @@ module.exports = /******/ (() => { tm, tp, tpr, - tb + tb, ) { if (isX(fM)) { - from = '' + from = ''; } else if (isX(fm)) { - from = '>=' + fM + '.0.0' + from = '>=' + fM + '.0.0'; } else if (isX(fp)) { - from = '>=' + fM + '.' + fm + '.0' + from = '>=' + fM + '.' + fm + '.0'; } else { - from = '>=' + from + from = '>=' + from; } if (isX(tM)) { - to = '' + to = ''; } else if (isX(tm)) { - to = '<' + (+tM + 1) + '.0.0' + to = '<' + (+tM + 1) + '.0.0'; } else if (isX(tp)) { - to = '<' + tM + '.' + (+tm + 1) + '.0' + to = '<' + tM + '.' + (+tm + 1) + '.0'; } else if (tpr) { - to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr + to = '<=' + tM + '.' + tm + '.' + tp + '-' + tpr; } else { - to = '<=' + to + to = '<=' + to; } - return (from + ' ' + to).trim() + return (from + ' ' + to).trim(); } // if ANY of the sets match ALL of its comparators, then pass Range.prototype.test = function (version) { if (!version) { - return false + return false; } if (typeof version === 'string') { - version = new SemVer(version, this.options) + version = new SemVer(version, this.options); } for (var i = 0; i < this.set.length; i++) { if (testSet(this.set[i], version, this.options)) { - return true + return true; } } - return false - } + return false; + }; function testSet(set, version, options) { for (var i = 0; i < set.length; i++) { if (!set[i].test(version)) { - return false + return false; } } @@ -27260,217 +27295,217 @@ module.exports = /******/ (() => { // However, `1.2.4-alpha.notready` should NOT be allowed, // even though it's within the range set by the comparators. for (i = 0; i < set.length; i++) { - debug(set[i].semver) + debug(set[i].semver); if (set[i].semver === ANY) { - continue + continue; } if (set[i].semver.prerelease.length > 0) { - var allowed = set[i].semver + var allowed = set[i].semver; if ( allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch ) { - return true + return true; } } } // Version has a -pre, but it's not one of the ones we like. - return false + return false; } - return true + return true; } - exports.satisfies = satisfies + exports.satisfies = satisfies; function satisfies(version, range, options) { try { - range = new Range(range, options) + range = new Range(range, options); } catch (er) { - return false + return false; } - return range.test(version) + return range.test(version); } - exports.maxSatisfying = maxSatisfying + exports.maxSatisfying = maxSatisfying; function maxSatisfying(versions, range, options) { - var max = null - var maxSV = null + var max = null; + var maxSV = null; try { - var rangeObj = new Range(range, options) + var rangeObj = new Range(range, options); } catch (er) { - return null + return null; } versions.forEach(function (v) { if (rangeObj.test(v)) { // satisfies(v, range, options) if (!max || maxSV.compare(v) === -1) { // compare(max, v, true) - max = v - maxSV = new SemVer(max, options) + max = v; + maxSV = new SemVer(max, options); } } - }) - return max + }); + return max; } - exports.minSatisfying = minSatisfying + exports.minSatisfying = minSatisfying; function minSatisfying(versions, range, options) { - var min = null - var minSV = null + var min = null; + var minSV = null; try { - var rangeObj = new Range(range, options) + var rangeObj = new Range(range, options); } catch (er) { - return null + return null; } versions.forEach(function (v) { if (rangeObj.test(v)) { // satisfies(v, range, options) if (!min || minSV.compare(v) === 1) { // compare(min, v, true) - min = v - minSV = new SemVer(min, options) + min = v; + minSV = new SemVer(min, options); } } - }) - return min + }); + return min; } - exports.minVersion = minVersion + exports.minVersion = minVersion; function minVersion(range, loose) { - range = new Range(range, loose) + range = new Range(range, loose); - var minver = new SemVer('0.0.0') + var minver = new SemVer('0.0.0'); if (range.test(minver)) { - return minver + return minver; } - minver = new SemVer('0.0.0-0') + minver = new SemVer('0.0.0-0'); if (range.test(minver)) { - return minver + return minver; } - minver = null + minver = null; for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] + var comparators = range.set[i]; comparators.forEach(function (comparator) { // Clone to avoid manipulating the comparator's semver object. - var compver = new SemVer(comparator.semver.version) + var compver = new SemVer(comparator.semver.version); switch (comparator.operator) { case '>': if (compver.prerelease.length === 0) { - compver.patch++ + compver.patch++; } else { - compver.prerelease.push(0) + compver.prerelease.push(0); } - compver.raw = compver.format() + compver.raw = compver.format(); /* fallthrough */ case '': case '>=': if (!minver || gt(minver, compver)) { - minver = compver + minver = compver; } - break + break; case '<': case '<=': /* Ignore maximum versions */ - break + break; /* istanbul ignore next */ default: - throw new Error('Unexpected operation: ' + comparator.operator) + throw new Error('Unexpected operation: ' + comparator.operator); } - }) + }); } if (minver && range.test(minver)) { - return minver + return minver; } - return null + return null; } - exports.validRange = validRange + exports.validRange = validRange; function validRange(range, options) { try { // Return '*' instead of '' so that truthiness works. // This will throw if it's invalid anyway - return new Range(range, options).range || '*' + return new Range(range, options).range || '*'; } catch (er) { - return null + return null; } } // Determine if version is less than all the versions possible in the range - exports.ltr = ltr + exports.ltr = ltr; function ltr(version, range, options) { - return outside(version, range, '<', options) + return outside(version, range, '<', options); } // Determine if version is greater than all the versions possible in the range. - exports.gtr = gtr + exports.gtr = gtr; function gtr(version, range, options) { - return outside(version, range, '>', options) + return outside(version, range, '>', options); } - exports.outside = outside + exports.outside = outside; function outside(version, range, hilo, options) { - version = new SemVer(version, options) - range = new Range(range, options) + version = new SemVer(version, options); + range = new Range(range, options); - var gtfn, ltefn, ltfn, comp, ecomp + var gtfn, ltefn, ltfn, comp, ecomp; switch (hilo) { case '>': - gtfn = gt - ltefn = lte - ltfn = lt - comp = '>' - ecomp = '>=' - break + gtfn = gt; + ltefn = lte; + ltfn = lt; + comp = '>'; + ecomp = '>='; + break; case '<': - gtfn = lt - ltefn = gte - ltfn = gt - comp = '<' - ecomp = '<=' - break + gtfn = lt; + ltefn = gte; + ltfn = gt; + comp = '<'; + ecomp = '<='; + break; default: - throw new TypeError('Must provide a hilo val of "<" or ">"') + throw new TypeError('Must provide a hilo val of "<" or ">"'); } // If it satisifes the range it is not outside if (satisfies(version, range, options)) { - return false + return false; } // From now on, variable terms are as if we're in "gtr" mode. // but note that everything is flipped for the "ltr" function. for (var i = 0; i < range.set.length; ++i) { - var comparators = range.set[i] + var comparators = range.set[i]; - var high = null - var low = null + var high = null; + var low = null; comparators.forEach(function (comparator) { if (comparator.semver === ANY) { - comparator = new Comparator('>=0.0.0') + comparator = new Comparator('>=0.0.0'); } - high = high || comparator - low = low || comparator + high = high || comparator; + low = low || comparator; if (gtfn(comparator.semver, high.semver, options)) { - high = comparator + high = comparator; } else if (ltfn(comparator.semver, low.semver, options)) { - low = comparator + low = comparator; } - }) + }); // If the edge version comparator has a operator then our version // isn't outside it if (high.operator === comp || high.operator === ecomp) { - return false + return false; } // If the lowest version comparator has an operator and our version @@ -27479,46 +27514,46 @@ module.exports = /******/ (() => { (!low.operator || low.operator === comp) && ltefn(version, low.semver) ) { - return false + return false; } else if (low.operator === ecomp && ltfn(version, low.semver)) { - return false + return false; } } - return true + return true; } - exports.prerelease = prerelease + exports.prerelease = prerelease; function prerelease(version, options) { - var parsed = parse(version, options) - return parsed && parsed.prerelease.length ? parsed.prerelease : null + var parsed = parse(version, options); + return parsed && parsed.prerelease.length ? parsed.prerelease : null; } - exports.intersects = intersects + exports.intersects = intersects; function intersects(r1, r2, options) { - r1 = new Range(r1, options) - r2 = new Range(r2, options) - return r1.intersects(r2) + r1 = new Range(r1, options); + r2 = new Range(r2, options); + return r1.intersects(r2); } - exports.coerce = coerce + exports.coerce = coerce; function coerce(version) { if (version instanceof SemVer) { - return version + return version; } if (typeof version !== 'string') { - return null + return null; } - var match = version.match(re[COERCE]) + var match = version.match(re[COERCE]); if (match == null) { - return null + return null; } return parse( - match[1] + '.' + (match[2] || '0') + '.' + (match[3] || '0') - ) + match[1] + '.' + (match[2] || '0') + '.' + (match[3] || '0'), + ); } /***/ @@ -27527,54 +27562,54 @@ module.exports = /******/ (() => { /***/ 7032: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - var shebangRegex = __webpack_require__(2638) + var shebangRegex = __webpack_require__(2638); module.exports = function (str) { - var match = str.match(shebangRegex) + var match = str.match(shebangRegex); if (!match) { - return null + return null; } - var arr = match[0].replace(/#! ?/, '').split(' ') - var bin = arr[0].split('/').pop() - var arg = arr[1] + var arr = match[0].replace(/#! ?/, '').split(' '); + var bin = arr[0].split('/').pop(); + var arg = arr[1]; - return bin === 'env' ? arg : bin + (arg ? ' ' + arg : '') - } + return bin === 'env' ? arg : bin + (arg ? ' ' + arg : ''); + }; /***/ }, - /***/ 2638: /***/ module => { - 'use strict' + /***/ 2638: /***/ (module) => { + 'use strict'; - module.exports = /^#!.*/ + module.exports = /^#!.*/; /***/ }, - /***/ 5515: /***/ module => { - 'use strict' + /***/ 5515: /***/ (module) => { + 'use strict'; module.exports = function (x) { - var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt() - var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt() + var lf = typeof x === 'string' ? '\n' : '\n'.charCodeAt(); + var cr = typeof x === 'string' ? '\r' : '\r'.charCodeAt(); if (x[x.length - 1] === lf) { - x = x.slice(0, x.length - 1) + x = x.slice(0, x.length - 1); } if (x[x.length - 1] === cr) { - x = x.slice(0, x.length - 1) + x = x.slice(0, x.length - 1); } - return x - } + return x; + }; /***/ }, @@ -27582,9 +27617,9 @@ module.exports = /******/ (() => { /***/ 4294: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - module.exports = __webpack_require__(4219) + module.exports = __webpack_require__(4219); /***/ }, @@ -27592,254 +27627,254 @@ module.exports = /******/ (() => { /***/ 4219: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - var net = __webpack_require__(1631) - var tls = __webpack_require__(4016) - var http = __webpack_require__(8605) - var https = __webpack_require__(7211) - var events = __webpack_require__(8614) - var assert = __webpack_require__(2357) - var util = __webpack_require__(1669) + var net = __webpack_require__(1631); + var tls = __webpack_require__(4016); + var http = __webpack_require__(8605); + var https = __webpack_require__(7211); + var events = __webpack_require__(8614); + var assert = __webpack_require__(2357); + var util = __webpack_require__(1669); - exports.httpOverHttp = httpOverHttp - exports.httpsOverHttp = httpsOverHttp - exports.httpOverHttps = httpOverHttps - exports.httpsOverHttps = httpsOverHttps + exports.httpOverHttp = httpOverHttp; + exports.httpsOverHttp = httpsOverHttp; + exports.httpOverHttps = httpOverHttps; + exports.httpsOverHttps = httpsOverHttps; function httpOverHttp(options) { - var agent = new TunnelingAgent(options) - agent.request = http.request - return agent + var agent = new TunnelingAgent(options); + agent.request = http.request; + return agent; } function httpsOverHttp(options) { - var agent = new TunnelingAgent(options) - agent.request = http.request - agent.createSocket = createSecureSocket - agent.defaultPort = 443 - return agent + var agent = new TunnelingAgent(options); + agent.request = http.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } function httpOverHttps(options) { - var agent = new TunnelingAgent(options) - agent.request = https.request - return agent + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; } function httpsOverHttps(options) { - var agent = new TunnelingAgent(options) - agent.request = https.request - agent.createSocket = createSecureSocket - agent.defaultPort = 443 - return agent + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; } function TunnelingAgent(options) { - var self = this - self.options = options || {} - self.proxyOptions = self.options.proxy || {} + var self = this; + self.options = options || {}; + self.proxyOptions = self.options.proxy || {}; self.maxSockets = - self.options.maxSockets || http.Agent.defaultMaxSockets - self.requests = [] - self.sockets = [] + self.options.maxSockets || http.Agent.defaultMaxSockets; + self.requests = []; + self.sockets = []; self.on('free', function onFree(socket, host, port, localAddress) { - var options = toOptions(host, port, localAddress) + var options = toOptions(host, port, localAddress); for (var i = 0, len = self.requests.length; i < len; ++i) { - var pending = self.requests[i] + var pending = self.requests[i]; if ( pending.host === options.host && pending.port === options.port ) { // Detect the request to connect same origin server, // reuse the connection. - self.requests.splice(i, 1) - pending.request.onSocket(socket) - return + self.requests.splice(i, 1); + pending.request.onSocket(socket); + return; } } - socket.destroy() - self.removeSocket(socket) - }) + socket.destroy(); + self.removeSocket(socket); + }); } - util.inherits(TunnelingAgent, events.EventEmitter) + util.inherits(TunnelingAgent, events.EventEmitter); TunnelingAgent.prototype.addRequest = function addRequest( req, host, port, - localAddress + localAddress, ) { - var self = this + var self = this; var options = mergeOptions( { request: req }, self.options, - toOptions(host, port, localAddress) - ) + toOptions(host, port, localAddress), + ); if (self.sockets.length >= this.maxSockets) { // We are over limit so we'll add it to the queue. - self.requests.push(options) - return + self.requests.push(options); + return; } // If we are under maxSockets create a new one. self.createSocket(options, function (socket) { - socket.on('free', onFree) - socket.on('close', onCloseOrRemove) - socket.on('agentRemove', onCloseOrRemove) - req.onSocket(socket) + socket.on('free', onFree); + socket.on('close', onCloseOrRemove); + socket.on('agentRemove', onCloseOrRemove); + req.onSocket(socket); function onFree() { - self.emit('free', socket, options) + self.emit('free', socket, options); } function onCloseOrRemove(err) { - self.removeSocket(socket) - socket.removeListener('free', onFree) - socket.removeListener('close', onCloseOrRemove) - socket.removeListener('agentRemove', onCloseOrRemove) + self.removeSocket(socket); + socket.removeListener('free', onFree); + socket.removeListener('close', onCloseOrRemove); + socket.removeListener('agentRemove', onCloseOrRemove); } - }) - } + }); + }; TunnelingAgent.prototype.createSocket = function createSocket( options, - cb + cb, ) { - var self = this - var placeholder = {} - self.sockets.push(placeholder) + var self = this; + var placeholder = {}; + self.sockets.push(placeholder); var connectOptions = mergeOptions({}, self.proxyOptions, { method: 'CONNECT', path: options.host + ':' + options.port, agent: false, headers: { - host: options.host + ':' + options.port - } - }) + host: options.host + ':' + options.port, + }, + }); if (options.localAddress) { - connectOptions.localAddress = options.localAddress + connectOptions.localAddress = options.localAddress; } if (connectOptions.proxyAuth) { - connectOptions.headers = connectOptions.headers || {} + connectOptions.headers = connectOptions.headers || {}; connectOptions.headers['Proxy-Authorization'] = - 'Basic ' + new Buffer(connectOptions.proxyAuth).toString('base64') + 'Basic ' + new Buffer(connectOptions.proxyAuth).toString('base64'); } - debug('making CONNECT request') - var connectReq = self.request(connectOptions) - connectReq.useChunkedEncodingByDefault = false // for v0.6 - connectReq.once('response', onResponse) // for v0.6 - connectReq.once('upgrade', onUpgrade) // for v0.6 - connectReq.once('connect', onConnect) // for v0.7 or later - connectReq.once('error', onError) - connectReq.end() + debug('making CONNECT request'); + var connectReq = self.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; // for v0.6 + connectReq.once('response', onResponse); // for v0.6 + connectReq.once('upgrade', onUpgrade); // for v0.6 + connectReq.once('connect', onConnect); // for v0.7 or later + connectReq.once('error', onError); + connectReq.end(); function onResponse(res) { // Very hacky. This is necessary to avoid http-parser leaks. - res.upgrade = true + res.upgrade = true; } function onUpgrade(res, socket, head) { // Hacky. process.nextTick(function () { - onConnect(res, socket, head) - }) + onConnect(res, socket, head); + }); } function onConnect(res, socket, head) { - connectReq.removeAllListeners() - socket.removeAllListeners() + connectReq.removeAllListeners(); + socket.removeAllListeners(); if (res.statusCode !== 200) { debug( 'tunneling socket could not be established, statusCode=%d', - res.statusCode - ) - socket.destroy() + res.statusCode, + ); + socket.destroy(); var error = new Error( 'tunneling socket could not be established, ' + 'statusCode=' + - res.statusCode - ) - error.code = 'ECONNRESET' - options.request.emit('error', error) - self.removeSocket(placeholder) - return + res.statusCode, + ); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; } if (head.length > 0) { - debug('got illegal response body from proxy') - socket.destroy() - var error = new Error('got illegal response body from proxy') - error.code = 'ECONNRESET' - options.request.emit('error', error) - self.removeSocket(placeholder) - return + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; } - debug('tunneling connection has established') - self.sockets[self.sockets.indexOf(placeholder)] = socket - return cb(socket) + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); } function onError(cause) { - connectReq.removeAllListeners() + connectReq.removeAllListeners(); debug( 'tunneling socket could not be established, cause=%s\n', cause.message, - cause.stack - ) + cause.stack, + ); var error = new Error( 'tunneling socket could not be established, ' + 'cause=' + - cause.message - ) - error.code = 'ECONNRESET' - options.request.emit('error', error) - self.removeSocket(placeholder) + cause.message, + ); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); } - } + }; TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { - var pos = this.sockets.indexOf(socket) + var pos = this.sockets.indexOf(socket); if (pos === -1) { - return + return; } - this.sockets.splice(pos, 1) + this.sockets.splice(pos, 1); - var pending = this.requests.shift() + var pending = this.requests.shift(); if (pending) { // If we have pending requests and a socket gets closed a new one // needs to be created to take over in the pool for the one that closed. this.createSocket(pending, function (socket) { - pending.request.onSocket(socket) - }) + pending.request.onSocket(socket); + }); } - } + }; function createSecureSocket(options, cb) { - var self = this + var self = this; TunnelingAgent.prototype.createSocket.call(self, options, function ( - socket + socket, ) { - var hostHeader = options.request.getHeader('host') + var hostHeader = options.request.getHeader('host'); var tlsOptions = mergeOptions({}, self.options, { socket: socket, servername: hostHeader ? hostHeader.replace(/:.*$/, '') - : options.host - }) + : options.host, + }); // 0 is dummy port for v0.6 - var secureSocket = tls.connect(0, tlsOptions) - self.sockets[self.sockets.indexOf(socket)] = secureSocket - cb(secureSocket) - }) + var secureSocket = tls.connect(0, tlsOptions); + self.sockets[self.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); } function toOptions(host, port, localAddress) { @@ -27848,43 +27883,43 @@ module.exports = /******/ (() => { return { host: host, port: port, - localAddress: localAddress - } + localAddress: localAddress, + }; } - return host // for v0.11 or later + return host; // for v0.11 or later } function mergeOptions(target) { for (var i = 1, len = arguments.length; i < len; ++i) { - var overrides = arguments[i] + var overrides = arguments[i]; if (typeof overrides === 'object') { - var keys = Object.keys(overrides) + var keys = Object.keys(overrides); for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { - var k = keys[j] + var k = keys[j]; if (overrides[k] !== undefined) { - target[k] = overrides[k] + target[k] = overrides[k]; } } } } - return target + return target; } - var debug + var debug; if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { debug = function () { - var args = Array.prototype.slice.call(arguments) + var args = Array.prototype.slice.call(arguments); if (typeof args[0] === 'string') { - args[0] = 'TUNNEL: ' + args[0] + args[0] = 'TUNNEL: ' + args[0]; } else { - args.unshift('TUNNEL:') + args.unshift('TUNNEL:'); } - console.error.apply(console, args) - } + console.error.apply(console, args); + }; } else { - debug = function () {} + debug = function () {}; } - exports.debug = debug // for test + exports.debug = debug; // for test /***/ }, @@ -27892,35 +27927,35 @@ module.exports = /******/ (() => { /***/ 5030: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) + Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault(ex) { return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] - : ex + : ex; } - var osName = _interopDefault(__webpack_require__(4824)) + var osName = _interopDefault(__webpack_require__(4824)); function getUserAgent() { try { return `Node.js/${process.version.substr(1)} (${osName()}; ${ process.arch - })` + })`; } catch (error) { if (/wmic os get Caption/.test(error.message)) { - return 'Windows ' + return 'Windows '; } - throw error + throw error; } } - exports.getUserAgent = getUserAgent + exports.getUserAgent = getUserAgent; //# sourceMappingURL=index.js.map /***/ @@ -27929,12 +27964,12 @@ module.exports = /******/ (() => { /***/ 3515: /***/ ( module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - const os = __webpack_require__(2087) - const execa = __webpack_require__(5447) + const os = __webpack_require__(2087); + const execa = __webpack_require__(5447); // Reference: https://www.gaijin.at/en/lstwinver.php const names = new Map([ @@ -27948,17 +27983,17 @@ module.exports = /******/ (() => { ['5.0', '2000'], ['4.9', 'ME'], ['4.1', '98'], - ['4.0', '95'] - ]) + ['4.0', '95'], + ]); - const windowsRelease = release => { - const version = /\d+\.\d/.exec(release || os.release()) + const windowsRelease = (release) => { + const version = /\d+\.\d/.exec(release || os.release()); if (release && !version) { - throw new Error("`release` argument doesn't match `n.n`") + throw new Error("`release` argument doesn't match `n.n`"); } - const ver = (version || [])[0] + const ver = (version || [])[0]; // Server 2008, 2012 and 2016 versions are ambiguous with desktop versions and must be detected at runtime. // If `release` is omitted or we're on a Windows system, and the version number is an ambiguous version @@ -27969,53 +28004,53 @@ module.exports = /******/ (() => { ['6.1', '6.2', '6.3', '10.0'].includes(ver) ) { const stdout = - execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '' - const year = (stdout.match(/2008|2012|2016/) || [])[0] + execa.sync('wmic', ['os', 'get', 'Caption']).stdout || ''; + const year = (stdout.match(/2008|2012|2016/) || [])[0]; if (year) { - return `Server ${year}` + return `Server ${year}`; } } - return names.get(ver) - } + return names.get(ver); + }; - module.exports = windowsRelease + module.exports = windowsRelease; /***/ }, - /***/ 2940: /***/ module => { + /***/ 2940: /***/ (module) => { // Returns a wrapper function that returns a wrapped callback // The wrapper function should do some stuff, and return a // presumably different callback function. // This makes sure that own properties are retained, so that // decorations and such are not lost along the way. - module.exports = wrappy + module.exports = wrappy; function wrappy(fn, cb) { - if (fn && cb) return wrappy(fn)(cb) + if (fn && cb) return wrappy(fn)(cb); if (typeof fn !== 'function') - throw new TypeError('need wrapper function') + throw new TypeError('need wrapper function'); Object.keys(fn).forEach(function (k) { - wrapper[k] = fn[k] - }) + wrapper[k] = fn[k]; + }); - return wrapper + return wrapper; function wrapper() { - var args = new Array(arguments.length) + var args = new Array(arguments.length); for (var i = 0; i < args.length; i++) { - args[i] = arguments[i] + args[i] = arguments[i]; } - var ret = fn.apply(this, args) - var cb = args[args.length - 1] + var ret = fn.apply(this, args); + var cb = args[args.length - 1]; if (typeof ret === 'function' && ret !== cb) { Object.keys(cb).forEach(function (k) { - ret[k] = cb[k] - }) + ret[k] = cb[k]; + }); } - return ret + return ret; } } @@ -28023,7 +28058,7 @@ module.exports = /******/ (() => { }, /***/ 1137: /***/ function (__unused_webpack_module, exports) { - 'use strict' + 'use strict'; var __awaiter = (this && this.__awaiter) || @@ -28032,50 +28067,50 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.file = void 0 + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.file = void 0; class File { list({ client, IDNumber, repo }) { return __awaiter(this, void 0, void 0, function* () { const files = yield client.pulls.listFiles( Object.assign(Object.assign({}, repo), { pull_number: IDNumber, - per_page: 100 - }) - ) - return files.data.map(file => file.filename) - }) + per_page: 100, + }), + ); + return files.data.map((file) => file.filename); + }); } } - exports.file = new File() + exports.file = new File(); /***/ }, @@ -28083,36 +28118,36 @@ module.exports = /******/ (() => { /***/ 9343: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __exportStar = (this && this.__exportStar) || function (m, exports) { for (var p in m) if (p !== 'default' && !exports.hasOwnProperty(p)) - __createBinding(exports, m, p) - } - Object.defineProperty(exports, '__esModule', { value: true }) - __exportStar(__webpack_require__(1137), exports) - __exportStar(__webpack_require__(8307), exports) + __createBinding(exports, m, p); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + __exportStar(__webpack_require__(1137), exports); + __exportStar(__webpack_require__(8307), exports); /***/ }, @@ -28120,9 +28155,9 @@ module.exports = /******/ (() => { /***/ 8307: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __awaiter = (this && this.__awaiter) || @@ -28131,37 +28166,37 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.labelAPI = void 0 - const utils_1 = __webpack_require__(1314) + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.labelAPI = void 0; + const utils_1 = __webpack_require__(1314); class labels { add({ client, repo, IDNumber, label, dryRun }) { return __awaiter(this, void 0, void 0, function* () { @@ -28169,42 +28204,42 @@ module.exports = /******/ (() => { yield client.issues.addLabels( Object.assign(Object.assign({}, repo), { issue_number: IDNumber, - labels: [label] - }) - ) - }) + labels: [label], + }), + ); + }); } create({ client, repo, label, dryRun }) { return __awaiter(this, void 0, void 0, function* () { - const color = utils_1.formatColor(label.color) + const color = utils_1.formatColor(label.color); if (!dryRun) yield client.issues.createLabel( Object.assign(Object.assign(Object.assign({}, repo), label), { - color - }) - ) - }) + color, + }), + ); + }); } deleteLabel({ client, repo, name, dryRun }) { return __awaiter(this, void 0, void 0, function* () { if (!dryRun) yield client.issues.deleteLabel( - Object.assign(Object.assign({}, repo), { name }) - ) - }) + Object.assign(Object.assign({}, repo), { name }), + ); + }); } get({ client, repo }) { return __awaiter(this, void 0, void 0, function* () { const options = yield client.issues.listLabelsForRepo.endpoint.merge( - Object.assign({}, repo) - ) - const labels = yield client.paginate(options) - return labels.map(label => ({ + Object.assign({}, repo), + ); + const labels = yield client.paginate(options); + return labels.map((label) => ({ name: label.name, description: label.description, - color: label.color - })) - }) + color: label.color, + })); + }); } remove({ client, repo, IDNumber, label, dryRun }) { return __awaiter(this, void 0, void 0, function* () { @@ -28212,26 +28247,26 @@ module.exports = /******/ (() => { yield client.issues.removeLabel( Object.assign(Object.assign({}, repo), { issue_number: IDNumber, - name: label - }) - ) - }) + name: label, + }), + ); + }); } update({ client, repo, label, dryRun }) { return __awaiter(this, void 0, void 0, function* () { - const color = utils_1.formatColor(label.color) + const color = utils_1.formatColor(label.color); if (!dryRun) yield client.issues.updateLabel( Object.assign(Object.assign({}, repo), { current_name: label.name, description: label.description, - color - }) - ) - }) + color, + }), + ); + }); } } - exports.labelAPI = new labels() + exports.labelAPI = new labels(); /***/ }, @@ -28239,50 +28274,50 @@ module.exports = /******/ (() => { /***/ 4625: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { Object.defineProperty(o, 'default', { enumerable: true, - value: v - }) + value: v, + }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -28290,39 +28325,39 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.applyPRLabels = exports.applyIssueLabels = void 0 - const core = __importStar(__webpack_require__(2186)) - const api_1 = __webpack_require__(9343) - const evaluator_1 = __importStar(__webpack_require__(5481)) + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.applyPRLabels = exports.applyIssueLabels = void 0; + const core = __importStar(__webpack_require__(2186)); + const api_1 = __webpack_require__(9343); + const evaluator_1 = __importStar(__webpack_require__(5481)); const addRemoveLabel = ({ client, curLabels, @@ -28331,49 +28366,49 @@ module.exports = /******/ (() => { IDNumber, repo, shouldHaveLabel, - dryRun + dryRun, }) => __awaiter(void 0, void 0, void 0, function* () { const hasLabel = - curLabels.filter(l => l.name === labelName).length > 0 + curLabels.filter((l) => l.name === labelName).length > 0; if (shouldHaveLabel && !hasLabel) { - core.debug(`Adding label "${labelID}"...`) + core.debug(`Adding label "${labelID}"...`); yield api_1.labelAPI.add({ client, repo, IDNumber, label: labelName, - dryRun - }) + dryRun, + }); } if (!shouldHaveLabel && hasLabel) { - core.debug(`Removing label "${labelID}"...`) + core.debug(`Removing label "${labelID}"...`); yield api_1.labelAPI.remove({ client, repo, IDNumber, label: labelName, - dryRun - }) + dryRun, + }); } - }) + }); exports.applyIssueLabels = ({ client, config, issueContext, labelIdToName, repo, - dryRun + dryRun, }) => __awaiter(void 0, void 0, void 0, function* () { - const { labels: curLabels, issueProps, IDNumber } = issueContext + const { labels: curLabels, issueProps, IDNumber } = issueContext; for (const [labelID, conditionsConfig] of Object.entries(config)) { - core.debug(`Label: ${labelID}`) + core.debug(`Label: ${labelID}`); const shouldHaveLabel = evaluator_1.default( evaluator_1.ConditionSetType.issue, conditionsConfig, - issueProps - ) + issueProps, + ); yield addRemoveLabel({ client, curLabels, @@ -28382,27 +28417,27 @@ module.exports = /******/ (() => { IDNumber, repo, shouldHaveLabel, - dryRun - }) + dryRun, + }); } - }) + }); exports.applyPRLabels = ({ client, config, labelIdToName, prContext, repo, - dryRun + dryRun, }) => __awaiter(void 0, void 0, void 0, function* () { - const { labels: curLabels, prProps, IDNumber } = prContext + const { labels: curLabels, prProps, IDNumber } = prContext; for (const [labelID, conditionsConfig] of Object.entries(config)) { - core.debug(`Label: ${labelID}`) + core.debug(`Label: ${labelID}`); const shouldHaveLabel = evaluator_1.default( evaluator_1.ConditionSetType.issue, conditionsConfig, - prProps - ) + prProps, + ); yield addRemoveLabel({ client, curLabels, @@ -28411,10 +28446,10 @@ module.exports = /******/ (() => { IDNumber, repo, shouldHaveLabel, - dryRun - }) + dryRun, + }); } - }) + }); /***/ }, @@ -28422,18 +28457,18 @@ module.exports = /******/ (() => { /***/ 361: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const utils_1 = __webpack_require__(1314) - const TYPE = 'creatorMatches' + Object.defineProperty(exports, '__esModule', { value: true }); + const utils_1 = __webpack_require__(1314); + const TYPE = 'creatorMatches'; const creatorMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.creator) - } - exports.default = [TYPE, creatorMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.creator); + }; + exports.default = [TYPE, creatorMatches]; /***/ }, @@ -28441,18 +28476,18 @@ module.exports = /******/ (() => { /***/ 7154: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const utils_1 = __webpack_require__(1314) - const TYPE = 'descriptionMatches' + Object.defineProperty(exports, '__esModule', { value: true }); + const utils_1 = __webpack_require__(1314); + const TYPE = 'descriptionMatches'; const descriptionMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.description) - } - exports.default = [TYPE, descriptionMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.description); + }; + exports.default = [TYPE, descriptionMatches]; /***/ }, @@ -28460,89 +28495,89 @@ module.exports = /******/ (() => { /***/ 5481: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { Object.defineProperty(o, 'default', { enumerable: true, - value: v - }) + value: v, + }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.ConditionSetType = void 0 - const core = __importStar(__webpack_require__(2186)) - const index_1 = __webpack_require__(6280) - var ConditionSetType - ;(function (ConditionSetType) { - ConditionSetType['issue'] = 'issue' - ConditionSetType['pr'] = 'pr' + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.ConditionSetType = void 0; + const core = __importStar(__webpack_require__(2186)); + const index_1 = __webpack_require__(6280); + var ConditionSetType; + (function (ConditionSetType) { + ConditionSetType['issue'] = 'issue'; + ConditionSetType['pr'] = 'pr'; })( (ConditionSetType = - exports.ConditionSetType || (exports.ConditionSetType = {})) - ) + exports.ConditionSetType || (exports.ConditionSetType = {})), + ); const forConditions = (conditions, callback) => { - let matches = 0 + let matches = 0; for (const condition of conditions) { - core.debug(`Condition: ${JSON.stringify(condition)}`) + core.debug(`Condition: ${JSON.stringify(condition)}`); if (callback(condition)) { - matches++ + matches++; } } - core.debug(`Matches: ${matches}`) - return matches - } + core.debug(`Matches: ${matches}`); + return matches; + }; function evaluator(conditionSetType, config, props) { - const { conditions, requires } = config - const matches = forConditions(conditions, condition => { + const { conditions, requires } = config; + const matches = forConditions(conditions, (condition) => { const handler = conditionSetType === ConditionSetType.issue ? index_1.getIssueConditionHandler(condition) - : index_1.getPRConditionHandler(condition) + : index_1.getPRConditionHandler(condition); return ( (handler === null || handler === void 0 ? void 0 : handler(condition, props)) || false - ) - }) - return matches >= requires + ); + }); + return matches >= requires; } - exports.default = evaluator + exports.default = evaluator; /***/ }, @@ -28550,65 +28585,65 @@ module.exports = /******/ (() => { /***/ 6280: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __exportStar = (this && this.__exportStar) || function (m, exports) { for (var p in m) if (p !== 'default' && !exports.hasOwnProperty(p)) - __createBinding(exports, m, p) - } + __createBinding(exports, m, p); + }; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.handlers = void 0 - const creatorMatches_1 = __importDefault(__webpack_require__(361)) - const descriptionMatches_1 = __importDefault(__webpack_require__(7154)) - const isLocked_1 = __importDefault(__webpack_require__(1736)) - const isOpen_1 = __importDefault(__webpack_require__(879)) - const titleMatches_1 = __importDefault(__webpack_require__(7637)) + return mod && mod.__esModule ? mod : { default: mod }; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.handlers = void 0; + const creatorMatches_1 = __importDefault(__webpack_require__(361)); + const descriptionMatches_1 = __importDefault(__webpack_require__(7154)); + const isLocked_1 = __importDefault(__webpack_require__(1736)); + const isOpen_1 = __importDefault(__webpack_require__(879)); + const titleMatches_1 = __importDefault(__webpack_require__(7637)); exports.handlers = [ creatorMatches_1.default, descriptionMatches_1.default, isLocked_1.default, isOpen_1.default, - titleMatches_1.default - ] - __exportStar(__webpack_require__(5953), exports) - __exportStar(__webpack_require__(4597), exports) + titleMatches_1.default, + ]; + __exportStar(__webpack_require__(5953), exports); + __exportStar(__webpack_require__(4597), exports); /***/ }, /***/ 1736: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const TYPE = 'isLocked' - const isLocked = (condition, issue) => issue.locked === condition.value - exports.default = [TYPE, isLocked] + Object.defineProperty(exports, '__esModule', { value: true }); + const TYPE = 'isLocked'; + const isLocked = (condition, issue) => issue.locked === condition.value; + exports.default = [TYPE, isLocked]; /***/ }, @@ -28616,25 +28651,25 @@ module.exports = /******/ (() => { /***/ 879: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' - - Object.defineProperty(exports, '__esModule', { value: true }) - const utils_1 = __webpack_require__(1314) - const TYPE = 'isOpen' - var States - ;(function (States) { - States['Open'] = 'OPEN' - States['Closed'] = 'CLOSED' - })(States || (States = {})) + 'use strict'; + + Object.defineProperty(exports, '__esModule', { value: true }); + const utils_1 = __webpack_require__(1314); + const TYPE = 'isOpen'; + var States; + (function (States) { + States['Open'] = 'OPEN'; + States['Closed'] = 'CLOSED'; + })(States || (States = {})); const isOpen = (condition, issue) => { return ( utils_1.normalize(issue.state) === utils_1.normalize(condition.value ? States.Open : States.Closed) - ) - } - exports.default = [TYPE, isOpen] + ); + }; + exports.default = [TYPE, isOpen]; /***/ }, @@ -28642,18 +28677,20 @@ module.exports = /******/ (() => { /***/ 5953: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' - - Object.defineProperty(exports, '__esModule', { value: true }) - exports.getIssueConditionHandler = void 0 - const __1 = __webpack_require__(6280) - const handlers = [...__1.handlers] - exports.getIssueConditionHandler = condition => { - const handler = handlers.find(handler => handler[0] === condition.type) - return handler === null || handler === void 0 ? void 0 : handler[1] - } + 'use strict'; + + Object.defineProperty(exports, '__esModule', { value: true }); + exports.getIssueConditionHandler = void 0; + const __1 = __webpack_require__(6280); + const handlers = [...__1.handlers]; + exports.getIssueConditionHandler = (condition) => { + const handler = handlers.find( + (handler) => handler[0] === condition.type, + ); + return handler === null || handler === void 0 ? void 0 : handler[1]; + }; /***/ }, @@ -28661,18 +28698,18 @@ module.exports = /******/ (() => { /***/ 3301: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const utils_1 = __webpack_require__(1314) - const TYPE = 'branchMatches' + Object.defineProperty(exports, '__esModule', { value: true }); + const utils_1 = __webpack_require__(1314); + const TYPE = 'branchMatches'; const branchMatches = (condition, pr) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(pr.branch) - } - exports.default = [TYPE, branchMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(pr.branch); + }; + exports.default = [TYPE, branchMatches]; /***/ }, @@ -28680,16 +28717,16 @@ module.exports = /******/ (() => { /***/ 4667: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const minimatch_1 = __webpack_require__(3973) - const TYPE = 'filesMatch' + Object.defineProperty(exports, '__esModule', { value: true }); + const minimatch_1 = __webpack_require__(3973); + const TYPE = 'filesMatch'; const filesMatch = (condition, pr) => - minimatch_1.match(pr.files, condition.glob).length > 0 - exports.default = [TYPE, filesMatch] + minimatch_1.match(pr.files, condition.glob).length > 0; + exports.default = [TYPE, filesMatch]; /***/ }, @@ -28697,44 +28734,46 @@ module.exports = /******/ (() => { /***/ 4597: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.getPRConditionHandler = void 0 - const branchMatches_1 = __importDefault(__webpack_require__(3301)) - const filesMatch_1 = __importDefault(__webpack_require__(4667)) - const isDraft_1 = __importDefault(__webpack_require__(9559)) - const __1 = __webpack_require__(6280) + return mod && mod.__esModule ? mod : { default: mod }; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.getPRConditionHandler = void 0; + const branchMatches_1 = __importDefault(__webpack_require__(3301)); + const filesMatch_1 = __importDefault(__webpack_require__(4667)); + const isDraft_1 = __importDefault(__webpack_require__(9559)); + const __1 = __webpack_require__(6280); const handlers = [ ...__1.handlers, branchMatches_1.default, filesMatch_1.default, - isDraft_1.default - ] - exports.getPRConditionHandler = condition => { - const handler = handlers.find(handler => handler[0] === condition.type) - return handler === null || handler === void 0 ? void 0 : handler[1] - } + isDraft_1.default, + ]; + exports.getPRConditionHandler = (condition) => { + const handler = handlers.find( + (handler) => handler[0] === condition.type, + ); + return handler === null || handler === void 0 ? void 0 : handler[1]; + }; /***/ }, /***/ 9559: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const TYPE = 'isDraft' + Object.defineProperty(exports, '__esModule', { value: true }); + const TYPE = 'isDraft'; const isDraft = (condition, pr) => { - return pr.isDraft === condition.value - } - exports.default = [TYPE, isDraft] + return pr.isDraft === condition.value; + }; + exports.default = [TYPE, isDraft]; /***/ }, @@ -28742,18 +28781,18 @@ module.exports = /******/ (() => { /***/ 7637: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - const utils_1 = __webpack_require__(1314) - const TYPE = 'titleMatches' + Object.defineProperty(exports, '__esModule', { value: true }); + const utils_1 = __webpack_require__(1314); + const TYPE = 'titleMatches'; const titleMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.title) - } - exports.default = [TYPE, titleMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.title); + }; + exports.default = [TYPE, titleMatches]; /***/ }, @@ -28761,82 +28800,82 @@ module.exports = /******/ (() => { /***/ 6144: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { Object.defineProperty(o, 'default', { enumerable: true, - value: v - }) + value: v, + }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } - Object.defineProperty(exports, '__esModule', { value: true }) - const core = __importStar(__webpack_require__(2186)) - const github = __importStar(__webpack_require__(5438)) - const superLabeler_1 = __webpack_require__(1812) - const path_1 = __importDefault(__webpack_require__(5622)) + return mod && mod.__esModule ? mod : { default: mod }; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + const core = __importStar(__webpack_require__(2186)); + const github = __importStar(__webpack_require__(5438)); + const superLabeler_1 = __webpack_require__(1812); + const path_1 = __importDefault(__webpack_require__(5622)); const { GITHUB_WORKSPACE = '', SHOW_LOGS, - GH_ACTION_LOCAL_TEST - } = process.env - const dryRun = !!GH_ACTION_LOCAL_TEST - const showLogs = SHOW_LOGS === 'true' - const configFile = core.getInput('config') - const configPath = path_1.default.join(GITHUB_WORKSPACE, configFile) + GH_ACTION_LOCAL_TEST, + } = process.env; + const dryRun = !!GH_ACTION_LOCAL_TEST; + const showLogs = SHOW_LOGS === 'true'; + const configFile = core.getInput('config'); + const configPath = path_1.default.join(GITHUB_WORKSPACE, configFile); const GITHUB_TOKEN = core.getInput('GITHUB_TOKEN', { - required: true - }) + required: true, + }); const options = { configPath, showLogs, - dryRun - } + dryRun, + }; const action = new superLabeler_1.SuperLabeler( new github.GitHub(GITHUB_TOKEN), - options - ) - action.run() + options, + ); + action.run(); /***/ }, @@ -28844,9 +28883,9 @@ module.exports = /******/ (() => { /***/ 1189: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __awaiter = (this && this.__awaiter) || @@ -28855,46 +28894,46 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.parseIssueContext = exports.parsePRContext = void 0 - const api_1 = __webpack_require__(9343) + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.parseIssueContext = exports.parsePRContext = void 0; + const api_1 = __webpack_require__(9343); exports.parsePRContext = (context, client, repo) => __awaiter(void 0, void 0, void 0, function* () { - const pr = context.payload.pull_request + const pr = context.payload.pull_request; if (!pr) { - return + return; } - const IDNumber = pr.number - const labels = parseLabels(pr.labels) - const files = yield api_1.file.list({ client, repo, IDNumber }) + const IDNumber = pr.number; + const labels = parseLabels(pr.labels); + const files = yield api_1.file.list({ client, repo, IDNumber }); return { labels, IDNumber, @@ -28906,16 +28945,16 @@ module.exports = /******/ (() => { isDraft: pr.draft, locked: pr.locked, state: pr.state, - title: pr.title - } - } - }) - exports.parseIssueContext = context => { - const issue = context.payload.issue + title: pr.title, + }, + }; + }); + exports.parseIssueContext = (context) => { + const issue = context.payload.issue; if (!issue) { - return + return; } - const labels = parseLabels(issue.labels) + const labels = parseLabels(issue.labels); return { labels, IDNumber: issue.number, @@ -28924,69 +28963,69 @@ module.exports = /******/ (() => { description: issue.body || '', locked: issue.locked, state: issue.state, - title: issue.title - } - } - } - const parseLabels = labels => { + title: issue.title, + }, + }; + }; + const parseLabels = (labels) => { if (!Array.isArray(labels)) { - return [] + return []; } return labels.filter( - label => + (label) => typeof label === 'object' && 'name' in label && 'description' in label && - 'color' in label - ) - } + 'color' in label, + ); + }; /***/ }, /***/ 1812: /***/ function (module, exports, __webpack_require__) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { Object.defineProperty(o, 'default', { enumerable: true, - value: v - }) + value: v, + }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -28994,117 +29033,117 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.SuperLabeler = void 0 - const fs_1 = __importDefault(__webpack_require__(5747)) - const core = __importStar(__webpack_require__(2186)) - const github = __importStar(__webpack_require__(5438)) - const applyLabels_1 = __webpack_require__(4625) - const parseContext_1 = __webpack_require__(1189) - const syncLabels_1 = __webpack_require__(1617) - const context = github.context + return mod && mod.__esModule ? mod : { default: mod }; + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.SuperLabeler = void 0; + const fs_1 = __importDefault(__webpack_require__(5747)); + const core = __importStar(__webpack_require__(2186)); + const github = __importStar(__webpack_require__(5438)); + const applyLabels_1 = __webpack_require__(4625); + const parseContext_1 = __webpack_require__(1189); + const syncLabels_1 = __webpack_require__(1617); + const context = github.context; class SuperLabeler { constructor(client, options) { - this.client = client - this.opts = options + this.client = client; + this.opts = options; } _log(message) { - if (!this.opts.showLogs) return - console.log(message) + if (!this.opts.showLogs) return; + console.log(message); } run() { return __awaiter(this, void 0, void 0, function* () { try { - const configPath = this.opts.configPath - const dryRun = this.opts.dryRun - const repo = context.repo + const configPath = this.opts.configPath; + const dryRun = this.opts.dryRun; + const repo = context.repo; if (!fs_1.default.existsSync(configPath)) { - throw new Error(`config not found at "${configPath}"`) + throw new Error(`config not found at "${configPath}"`); } const config = JSON.parse( - fs_1.default.readFileSync(configPath).toString() - ) - core.debug(`Config: ${JSON.stringify(config)}`) - let curContext + fs_1.default.readFileSync(configPath).toString(), + ); + core.debug(`Config: ${JSON.stringify(config)}`); + let curContext; if (context.payload.pull_request) { const ctx = yield parseContext_1.parsePRContext( context, this.client, - repo - ) + repo, + ); if (!ctx) { - throw new Error('pull request not found on context') + throw new Error('pull request not found on context'); } - core.debug(`PR context: ${JSON.stringify(ctx)}`) + core.debug(`PR context: ${JSON.stringify(ctx)}`); curContext = { type: 'pr', - context: ctx - } + context: ctx, + }; } else if (context.payload.issue) { - const ctx = parseContext_1.parseIssueContext(context) + const ctx = parseContext_1.parseIssueContext(context); if (!ctx) { - throw new Error('issue not found on context') + throw new Error('issue not found on context'); } - core.debug(`issue context: ${JSON.stringify(ctx)}`) + core.debug(`issue context: ${JSON.stringify(ctx)}`); curContext = { type: 'issue', - context: ctx - } + context: ctx, + }; } else { - return + return; } yield syncLabels_1 .syncLabels({ client: this.client, repo, config: config.labels, - dryRun - }) - .catch(err => { - core.debug('Error thrown while handling syncLabels tasks') - core.error(err.message) - core.setFailed(err.message) + dryRun, }) + .catch((err) => { + core.debug('Error thrown while handling syncLabels tasks'); + core.error(err.message); + core.setFailed(err.message); + }); const labelIdToName = Object.entries(config.labels).reduce( (acc, cur) => { - acc[cur[0]] = cur[1].name - return acc + acc[cur[0]] = cur[1].name; + return acc; }, - {} - ) + {}, + ); if (curContext.type === 'pr') { yield applyLabels_1 .applyPRLabels({ @@ -29113,13 +29152,13 @@ module.exports = /******/ (() => { labelIdToName, prContext: curContext.context, repo, - dryRun - }) - .catch(err => { - core.debug('Error thrown while handling PRLabel tasks') - core.error(err.message) - core.setFailed(err.message) + dryRun, }) + .catch((err) => { + core.debug('Error thrown while handling PRLabel tasks'); + core.error(err.message); + core.setFailed(err.message); + }); } else if (curContext.type === 'issue') { yield applyLabels_1 .applyIssueLabels({ @@ -29128,23 +29167,23 @@ module.exports = /******/ (() => { issueContext: curContext.context, labelIdToName, repo, - dryRun - }) - .catch(err => { - core.debug('Error thrown while handling issueLabel tasks') - core.error(err.message) - core.setFailed(err.message) + dryRun, }) + .catch((err) => { + core.debug('Error thrown while handling issueLabel tasks'); + core.error(err.message); + core.setFailed(err.message); + }); } } catch (err) { - core.error(err.message) - core.setFailed(err.message) + core.error(err.message); + core.setFailed(err.message); } - }) + }); } } - exports.SuperLabeler = SuperLabeler - module.exports = SuperLabeler + exports.SuperLabeler = SuperLabeler; + module.exports = SuperLabeler; /***/ }, @@ -29152,50 +29191,50 @@ module.exports = /******/ (() => { /***/ 1617: /***/ function ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) { - 'use strict' + 'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { Object.defineProperty(o, 'default', { enumerable: true, - value: v - }) + value: v, + }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -29203,258 +29242,259 @@ module.exports = /******/ (() => { return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } step( - (generator = generator.apply(thisArg, _arguments || [])).next() - ) - }) - } - Object.defineProperty(exports, '__esModule', { value: true }) - exports.syncLabels = void 0 - const core = __importStar(__webpack_require__(2186)) - const api_1 = __webpack_require__(9343) - const utils_1 = __webpack_require__(1314) + (generator = generator.apply(thisArg, _arguments || [])).next(), + ); + }); + }; + Object.defineProperty(exports, '__esModule', { value: true }); + exports.syncLabels = void 0; + const core = __importStar(__webpack_require__(2186)); + const api_1 = __webpack_require__(9343); + const utils_1 = __webpack_require__(1314); exports.syncLabels = ({ client, config, repo, dryRun }) => __awaiter(void 0, void 0, void 0, function* () { - const curLabels = yield api_1.labelAPI.get({ client, repo }) - core.debug(`curLabels: ${JSON.stringify(curLabels)}`) + const curLabels = yield api_1.labelAPI.get({ client, repo }); + core.debug(`curLabels: ${JSON.stringify(curLabels)}`); for (const _configLabel of Object.values(config)) { const configLabel = Object.assign(Object.assign({}, _configLabel), { - color: _configLabel.color - }) - const curLabel = curLabels.filter(l => l.name === configLabel.name) + color: _configLabel.color, + }); + const curLabel = curLabels.filter( + (l) => l.name === configLabel.name, + ); if (curLabel.length > 0) { - const label = curLabel[0] + const label = curLabel[0]; if ( label.description !== configLabel.description || label.color !== utils_1.formatColor(configLabel.color) ) { core.debug( `Recreate ${JSON.stringify( - configLabel - )} (prev: ${JSON.stringify(label)})` - ) + configLabel, + )} (prev: ${JSON.stringify(label)})`, + ); try { yield api_1.labelAPI.update({ client, repo, label: configLabel, - dryRun - }) + dryRun, + }); } catch (e) { - core.error(`Label update error: ${e.message}`) + core.error(`Label update error: ${e.message}`); } } } else { - core.debug(`Create ${JSON.stringify(configLabel)}`) + core.debug(`Create ${JSON.stringify(configLabel)}`); try { yield api_1.labelAPI.create({ client, repo, label: configLabel, - dryRun - }) + dryRun, + }); } catch (e) { - core.debug(`Label Creation failed: ${e.message}`) + core.debug(`Label Creation failed: ${e.message}`); } } } - }) + }); /***/ }, /***/ 1314: /***/ (__unused_webpack_module, exports) => { - 'use strict' + 'use strict'; - Object.defineProperty(exports, '__esModule', { value: true }) - exports.normalize = exports.processRegExpPattern = exports.formatColor = void 0 - exports.formatColor = color => { + Object.defineProperty(exports, '__esModule', { value: true }); + exports.normalize = exports.processRegExpPattern = exports.formatColor = void 0; + exports.formatColor = (color) => { if (color.charAt(0) === '#') { - return color.substr(1) + return color.substr(1); } else { - return color + return color; } - } - exports.processRegExpPattern = pattern => { - const matchDelimiters = pattern.match(/^\/(.*)\/(.*)$/) - const [, source, flags] = matchDelimiters || [] - return new RegExp(source || pattern, flags) - } - exports.normalize = text => (text || '').toUpperCase() + }; + exports.processRegExpPattern = (pattern) => { + const matchDelimiters = pattern.match(/^\/(.*)\/(.*)$/); + const [, source, flags] = matchDelimiters || []; + return new RegExp(source || pattern, flags); + }; + exports.normalize = (text) => (text || '').toUpperCase(); /***/ }, - /***/ 2877: /***/ module => { - module.exports = eval('require')('encoding') + /***/ 2877: /***/ (module) => { + module.exports = eval('require')('encoding'); /***/ }, - /***/ 2357: /***/ module => { - 'use strict' - module.exports = require('assert') + /***/ 2357: /***/ (module) => { + 'use strict'; + module.exports = require('assert'); /***/ }, - /***/ 3129: /***/ module => { - 'use strict' - module.exports = require('child_process') + /***/ 3129: /***/ (module) => { + 'use strict'; + module.exports = require('child_process'); /***/ }, - /***/ 8614: /***/ module => { - 'use strict' - module.exports = require('events') + /***/ 8614: /***/ (module) => { + 'use strict'; + module.exports = require('events'); /***/ }, - /***/ 5747: /***/ module => { - 'use strict' - module.exports = require('fs') + /***/ 5747: /***/ (module) => { + 'use strict'; + module.exports = require('fs'); /***/ }, - /***/ 8605: /***/ module => { - 'use strict' - module.exports = require('http') + /***/ 8605: /***/ (module) => { + 'use strict'; + module.exports = require('http'); /***/ }, - /***/ 7211: /***/ module => { - 'use strict' - module.exports = require('https') + /***/ 7211: /***/ (module) => { + 'use strict'; + module.exports = require('https'); /***/ }, - /***/ 1631: /***/ module => { - 'use strict' - module.exports = require('net') + /***/ 1631: /***/ (module) => { + 'use strict'; + module.exports = require('net'); /***/ }, - /***/ 2087: /***/ module => { - 'use strict' - module.exports = require('os') + /***/ 2087: /***/ (module) => { + 'use strict'; + module.exports = require('os'); /***/ }, - /***/ 5622: /***/ module => { - 'use strict' - module.exports = require('path') + /***/ 5622: /***/ (module) => { + 'use strict'; + module.exports = require('path'); /***/ }, - /***/ 2413: /***/ module => { - 'use strict' - module.exports = require('stream') + /***/ 2413: /***/ (module) => { + 'use strict'; + module.exports = require('stream'); /***/ }, - /***/ 4016: /***/ module => { - 'use strict' - module.exports = require('tls') + /***/ 4016: /***/ (module) => { + 'use strict'; + module.exports = require('tls'); /***/ }, - /***/ 8835: /***/ module => { - 'use strict' - module.exports = require('url') + /***/ 8835: /***/ (module) => { + 'use strict'; + module.exports = require('url'); /***/ }, - /***/ 1669: /***/ module => { - 'use strict' - module.exports = require('util') + /***/ 1669: /***/ (module) => { + 'use strict'; + module.exports = require('util'); /***/ }, - /***/ 8761: /***/ module => { - 'use strict' - module.exports = require('zlib') + /***/ 8761: /***/ (module) => { + 'use strict'; + module.exports = require('zlib'); /***/ - } + }, /******/ - } // The module cache + }; // The module cache /************************************************************************/ - /******/ /******/ var __webpack_module_cache__ = {} // The require function + /******/ /******/ var __webpack_module_cache__ = {}; // The require function /******/ /******/ /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if (__webpack_module_cache__[moduleId]) { - /******/ return __webpack_module_cache__[moduleId].exports + /******/ return __webpack_module_cache__[moduleId].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: {} + /******/ exports: {}, /******/ - }) // Execute the module function + }); // Execute the module function /******/ - /******/ /******/ var threw = true + /******/ /******/ var threw = true; /******/ try { /******/ __webpack_modules__[moduleId].call( module.exports, module, module.exports, - __webpack_require__ - ) - /******/ threw = false + __webpack_require__, + ); + /******/ threw = false; /******/ } finally { - /******/ if (threw) delete __webpack_module_cache__[moduleId] + /******/ if (threw) delete __webpack_module_cache__[moduleId]; /******/ } // Return the exports of the module /******/ - /******/ /******/ return module.exports + /******/ /******/ return module.exports; /******/ - } /* webpack/runtime/compat */ + } /* webpack/runtime/compat */ /******/ /******/ /************************************************************************/ - /******/ /******/ - /******/ __webpack_require__.ab = + /******/ /******/ __webpack_require__.ab = __dirname + - '/' /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports - /******/ /******/ /******/ /******/ return __webpack_require__(6144) + '/'; /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports + /******/ /******/ /******/ /******/ return __webpack_require__(6144); /******/ -})() +})(); //# sourceMappingURL=index.js.map diff --git a/dist/sourcemap-register.js b/dist/sourcemap-register.js index 76371c6..a6c21ea 100644 --- a/dist/sourcemap-register.js +++ b/dist/sourcemap-register.js @@ -1,75 +1,75 @@ module.exports = /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = { - /***/ 650: /***/ module => { - var toString = Object.prototype.toString + /***/ 650: /***/ (module) => { + var toString = Object.prototype.toString; var isModern = typeof Buffer.alloc === 'function' && typeof Buffer.allocUnsafe === 'function' && - typeof Buffer.from === 'function' + typeof Buffer.from === 'function'; function isArrayBuffer(input) { - return toString.call(input).slice(8, -1) === 'ArrayBuffer' + return toString.call(input).slice(8, -1) === 'ArrayBuffer'; } function fromArrayBuffer(obj, byteOffset, length) { - byteOffset >>>= 0 + byteOffset >>>= 0; - var maxLength = obj.byteLength - byteOffset + var maxLength = obj.byteLength - byteOffset; if (maxLength < 0) { - throw new RangeError("'offset' is out of bounds") + throw new RangeError("'offset' is out of bounds"); } if (length === undefined) { - length = maxLength + length = maxLength; } else { - length >>>= 0 + length >>>= 0; if (length > maxLength) { - throw new RangeError("'length' is out of bounds") + throw new RangeError("'length' is out of bounds"); } } return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer( - new Uint8Array(obj.slice(byteOffset, byteOffset + length)) - ) + new Uint8Array(obj.slice(byteOffset, byteOffset + length)), + ); } function fromString(string, encoding) { if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' + encoding = 'utf8'; } if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding') + throw new TypeError('"encoding" must be a valid string encoding'); } return isModern ? Buffer.from(string, encoding) - : new Buffer(string, encoding) + : new Buffer(string, encoding); } function bufferFrom(value, encodingOrOffset, length) { if (typeof value === 'number') { - throw new TypeError('"value" argument must not be a number') + throw new TypeError('"value" argument must not be a number'); } if (isArrayBuffer(value)) { - return fromArrayBuffer(value, encodingOrOffset, length) + return fromArrayBuffer(value, encodingOrOffset, length); } if (typeof value === 'string') { - return fromString(value, encodingOrOffset) + return fromString(value, encodingOrOffset); } - return isModern ? Buffer.from(value) : new Buffer(value) + return isModern ? Buffer.from(value) : new Buffer(value); } - module.exports = bufferFrom + module.exports = bufferFrom; /***/ }, @@ -77,9 +77,9 @@ module.exports = /******/ (() => { /***/ 645: /***/ ( __unused_webpack_module, __unused_webpack_exports, - __webpack_require__ + __webpack_require__, ) => { - __webpack_require__(284).install() + __webpack_require__(284).install(); /***/ }, @@ -87,50 +87,50 @@ module.exports = /******/ (() => { /***/ 284: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - var SourceMapConsumer = __webpack_require__(596).SourceMapConsumer - var path = __webpack_require__(622) + var SourceMapConsumer = __webpack_require__(596).SourceMapConsumer; + var path = __webpack_require__(622); - var fs + var fs; try { - fs = __webpack_require__(747) + fs = __webpack_require__(747); if (!fs.existsSync || !fs.readFileSync) { // fs doesn't have all methods we need - fs = null + fs = null; } } catch (err) { /* nop */ } - var bufferFrom = __webpack_require__(650) + var bufferFrom = __webpack_require__(650); // Only install once if called multiple times - var errorFormatterInstalled = false - var uncaughtShimInstalled = false + var errorFormatterInstalled = false; + var uncaughtShimInstalled = false; // If true, the caches are reset before a stack trace formatting operation - var emptyCacheBetweenOperations = false + var emptyCacheBetweenOperations = false; // Supports {browser, node, auto} - var environment = 'auto' + var environment = 'auto'; // Maps a file path to a string containing the file contents - var fileContentsCache = {} + var fileContentsCache = {}; // Maps a file path to a source map for that file - var sourceMapCache = {} + var sourceMapCache = {}; // Regex for detecting source maps - var reSourceMap = /^data:application\/json[^,]+base64,/ + var reSourceMap = /^data:application\/json[^,]+base64,/; // Priority list of retrieve handlers - var retrieveFileHandlers = [] - var retrieveMapHandlers = [] + var retrieveFileHandlers = []; + var retrieveMapHandlers = []; function isInBrowser() { - if (environment === 'browser') return true - if (environment === 'node') return false + if (environment === 'browser') return true; + if (environment === 'node') return false; return ( typeof window !== 'undefined' && typeof XMLHttpRequest === 'function' && @@ -140,7 +140,7 @@ module.exports = /******/ (() => { window.process && window.process.type === 'renderer' ) - ) + ); } function hasGlobalProcessEventEmitter() { @@ -148,107 +148,107 @@ module.exports = /******/ (() => { typeof process === 'object' && process !== null && typeof process.on === 'function' - ) + ); } function handlerExec(list) { return function (arg) { for (var i = 0; i < list.length; i++) { - var ret = list[i](arg) + var ret = list[i](arg); if (ret) { - return ret + return ret; } } - return null - } + return null; + }; } - var retrieveFile = handlerExec(retrieveFileHandlers) + var retrieveFile = handlerExec(retrieveFileHandlers); retrieveFileHandlers.push(function (path) { // Trim the path to make sure there is no extra whitespace. - path = path.trim() + path = path.trim(); if (/^file:/.test(path)) { // existsSync/readFileSync can't handle file protocol, but once stripped, it works path = path.replace(/file:\/\/\/(\w:)?/, function (protocol, drive) { return drive ? '' // file:///C:/dir/file -> C:/dir/file - : '/' // file:///root-dir/file -> /root-dir/file - }) + : '/'; // file:///root-dir/file -> /root-dir/file + }); } if (path in fileContentsCache) { - return fileContentsCache[path] + return fileContentsCache[path]; } - var contents = '' + var contents = ''; try { if (!fs) { // Use SJAX if we are in the browser - var xhr = new XMLHttpRequest() - xhr.open('GET', path, /** async */ false) - xhr.send(null) + var xhr = new XMLHttpRequest(); + xhr.open('GET', path, /** async */ false); + xhr.send(null); if (xhr.readyState === 4 && xhr.status === 200) { - contents = xhr.responseText + contents = xhr.responseText; } } else if (fs.existsSync(path)) { // Otherwise, use the filesystem - contents = fs.readFileSync(path, 'utf8') + contents = fs.readFileSync(path, 'utf8'); } } catch (er) { /* ignore any errors */ } - return (fileContentsCache[path] = contents) - }) + return (fileContentsCache[path] = contents); + }); // Support URLs relative to a directory, but be careful about a protocol prefix // in case we are in the browser (i.e. directories may start with "http://" or "file:///") function supportRelativeURL(file, url) { - if (!file) return url - var dir = path.dirname(file) - var match = /^\w+:\/\/[^\/]*/.exec(dir) - var protocol = match ? match[0] : '' - var startPath = dir.slice(protocol.length) + if (!file) return url; + var dir = path.dirname(file); + var match = /^\w+:\/\/[^\/]*/.exec(dir); + var protocol = match ? match[0] : ''; + var startPath = dir.slice(protocol.length); if (protocol && /^\/\w\:/.test(startPath)) { // handle file:///C:/ paths - protocol += '/' + protocol += '/'; return ( protocol + path.resolve(dir.slice(protocol.length), url).replace(/\\/g, '/') - ) + ); } - return protocol + path.resolve(dir.slice(protocol.length), url) + return protocol + path.resolve(dir.slice(protocol.length), url); } function retrieveSourceMapURL(source) { - var fileData + var fileData; if (isInBrowser()) { try { - var xhr = new XMLHttpRequest() - xhr.open('GET', source, false) - xhr.send(null) - fileData = xhr.readyState === 4 ? xhr.responseText : null + var xhr = new XMLHttpRequest(); + xhr.open('GET', source, false); + xhr.send(null); + fileData = xhr.readyState === 4 ? xhr.responseText : null; // Support providing a sourceMappingURL via the SourceMap header var sourceMapHeader = xhr.getResponseHeader('SourceMap') || - xhr.getResponseHeader('X-SourceMap') + xhr.getResponseHeader('X-SourceMap'); if (sourceMapHeader) { - return sourceMapHeader + return sourceMapHeader; } } catch (e) {} } // Get the URL of the source map - fileData = retrieveFile(source) - var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm + fileData = retrieveFile(source); + var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/gm; // Keep executing the search to find the *last* sourceMappingURL to avoid // picking up sourceMappingURLs from comments, strings, etc. - var lastMatch, match - while ((match = re.exec(fileData))) lastMatch = match - if (!lastMatch) return null - return lastMatch[1] + var lastMatch, match; + while ((match = re.exec(fileData))) lastMatch = match; + if (!lastMatch) return null; + return lastMatch[1]; } // Can be overridden by the retrieveSourceMap option to install. Takes a @@ -256,69 +256,69 @@ module.exports = /******/ (() => { // there is no source map. The map field may be either a string or the parsed // JSON object (ie, it must be a valid argument to the SourceMapConsumer // constructor). - var retrieveSourceMap = handlerExec(retrieveMapHandlers) + var retrieveSourceMap = handlerExec(retrieveMapHandlers); retrieveMapHandlers.push(function (source) { - var sourceMappingURL = retrieveSourceMapURL(source) - if (!sourceMappingURL) return null + var sourceMappingURL = retrieveSourceMapURL(source); + if (!sourceMappingURL) return null; // Read the contents of the source map - var sourceMapData + var sourceMapData; if (reSourceMap.test(sourceMappingURL)) { // Support source map URL as a data url var rawData = sourceMappingURL.slice( - sourceMappingURL.indexOf(',') + 1 - ) - sourceMapData = bufferFrom(rawData, 'base64').toString() - sourceMappingURL = source + sourceMappingURL.indexOf(',') + 1, + ); + sourceMapData = bufferFrom(rawData, 'base64').toString(); + sourceMappingURL = source; } else { // Support source map URLs relative to the source URL - sourceMappingURL = supportRelativeURL(source, sourceMappingURL) - sourceMapData = retrieveFile(sourceMappingURL) + sourceMappingURL = supportRelativeURL(source, sourceMappingURL); + sourceMapData = retrieveFile(sourceMappingURL); } if (!sourceMapData) { - return null + return null; } return { url: sourceMappingURL, - map: sourceMapData - } - }) + map: sourceMapData, + }; + }); function mapSourcePosition(position) { - var sourceMap = sourceMapCache[position.source] + var sourceMap = sourceMapCache[position.source]; if (!sourceMap) { // Call the (overrideable) retrieveSourceMap function to get the source map. - var urlAndMap = retrieveSourceMap(position.source) + var urlAndMap = retrieveSourceMap(position.source); if (urlAndMap) { sourceMap = sourceMapCache[position.source] = { url: urlAndMap.url, - map: new SourceMapConsumer(urlAndMap.map) - } + map: new SourceMapConsumer(urlAndMap.map), + }; // Load all sources stored inline with the source map into the file cache // to pretend like they are already loaded. They may not exist on disk. if (sourceMap.map.sourcesContent) { sourceMap.map.sources.forEach(function (source, i) { - var contents = sourceMap.map.sourcesContent[i] + var contents = sourceMap.map.sourcesContent[i]; if (contents) { - var url = supportRelativeURL(sourceMap.url, source) - fileContentsCache[url] = contents + var url = supportRelativeURL(sourceMap.url, source); + fileContentsCache[url] = contents; } - }) + }); } } else { sourceMap = sourceMapCache[position.source] = { url: null, - map: null - } + map: null, + }; } } // Resolve the source URL relative to the URL of the source map if (sourceMap && sourceMap.map) { - var originalPosition = sourceMap.map.originalPositionFor(position) + var originalPosition = sourceMap.map.originalPositionFor(position); // Only return the original position if a matching line was found. If no // matching line is found then we return position instead, which will cause @@ -328,26 +328,26 @@ module.exports = /******/ (() => { if (originalPosition.source !== null) { originalPosition.source = supportRelativeURL( sourceMap.url, - originalPosition.source - ) - return originalPosition + originalPosition.source, + ); + return originalPosition; } } - return position + return position; } // Parses code generated by FormatEvalOrigin(), a function inside V8: // https://code.google.com/p/v8/source/browse/trunk/src/messages.js function mapEvalOrigin(origin) { // Most eval() calls are in this format - var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin) + var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); if (match) { var position = mapSourcePosition({ source: match[2], line: +match[3], - column: match[4] - 1 - }) + column: match[4] - 1, + }); return ( 'eval at ' + match[1] + @@ -358,17 +358,17 @@ module.exports = /******/ (() => { ':' + (position.column + 1) + ')' - ) + ); } // Parse nested eval() calls using recursion - match = /^eval at ([^(]+) \((.+)\)$/.exec(origin) + match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); if (match) { - return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')' + return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; } // Make sure we still return useful information if we didn't find anything - return origin + return origin; } // This is copied almost verbatim from the V8 source code at @@ -378,197 +378,197 @@ module.exports = /******/ (() => { // did something to the prototype chain and broke the shim. The only fix I // could find was copy/paste. function CallSiteToString() { - var fileName - var fileLocation = '' + var fileName; + var fileLocation = ''; if (this.isNative()) { - fileLocation = 'native' + fileLocation = 'native'; } else { - fileName = this.getScriptNameOrSourceURL() + fileName = this.getScriptNameOrSourceURL(); if (!fileName && this.isEval()) { - fileLocation = this.getEvalOrigin() - fileLocation += ', ' // Expecting source position to follow. + fileLocation = this.getEvalOrigin(); + fileLocation += ', '; // Expecting source position to follow. } if (fileName) { - fileLocation += fileName + fileLocation += fileName; } else { // Source code does not originate from a file and is not native, but we // can still get the source position inside the source string, e.g. in // an eval string. - fileLocation += '' + fileLocation += ''; } - var lineNumber = this.getLineNumber() + var lineNumber = this.getLineNumber(); if (lineNumber != null) { - fileLocation += ':' + lineNumber - var columnNumber = this.getColumnNumber() + fileLocation += ':' + lineNumber; + var columnNumber = this.getColumnNumber(); if (columnNumber) { - fileLocation += ':' + columnNumber + fileLocation += ':' + columnNumber; } } } - var line = '' - var functionName = this.getFunctionName() - var addSuffix = true - var isConstructor = this.isConstructor() - var isMethodCall = !(this.isToplevel() || isConstructor) + var line = ''; + var functionName = this.getFunctionName(); + var addSuffix = true; + var isConstructor = this.isConstructor(); + var isMethodCall = !(this.isToplevel() || isConstructor); if (isMethodCall) { - var typeName = this.getTypeName() + var typeName = this.getTypeName(); // Fixes shim to be backward compatable with Node v0 to v4 if (typeName === '[object Object]') { - typeName = 'null' + typeName = 'null'; } - var methodName = this.getMethodName() + var methodName = this.getMethodName(); if (functionName) { if (typeName && functionName.indexOf(typeName) != 0) { - line += typeName + '.' + line += typeName + '.'; } - line += functionName + line += functionName; if ( methodName && functionName.indexOf('.' + methodName) != functionName.length - methodName.length - 1 ) { - line += ' [as ' + methodName + ']' + line += ' [as ' + methodName + ']'; } } else { - line += typeName + '.' + (methodName || '') + line += typeName + '.' + (methodName || ''); } } else if (isConstructor) { - line += 'new ' + (functionName || '') + line += 'new ' + (functionName || ''); } else if (functionName) { - line += functionName + line += functionName; } else { - line += fileLocation - addSuffix = false + line += fileLocation; + addSuffix = false; } if (addSuffix) { - line += ' (' + fileLocation + ')' + line += ' (' + fileLocation + ')'; } - return line + return line; } function cloneCallSite(frame) { - var object = {} + var object = {}; Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach( function (name) { object[name] = /^(?:is|get)/.test(name) ? function () { - return frame[name].call(frame) + return frame[name].call(frame); } - : frame[name] - } - ) - object.toString = CallSiteToString - return object + : frame[name]; + }, + ); + object.toString = CallSiteToString; + return object; } function wrapCallSite(frame) { if (frame.isNative()) { - return frame + return frame; } // Most call sites will return the source file from getFileName(), but code // passed to eval() ending in "//# sourceURL=..." will return the source file // from getScriptNameOrSourceURL() instead - var source = frame.getFileName() || frame.getScriptNameOrSourceURL() + var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); if (source) { - var line = frame.getLineNumber() - var column = frame.getColumnNumber() - 1 + var line = frame.getLineNumber(); + var column = frame.getColumnNumber() - 1; // Fix position in Node where some (internal) code is prepended. // See https://github.com/evanw/node-source-map-support/issues/36 - var headerLength = 62 + var headerLength = 62; if ( line === 1 && column > headerLength && !isInBrowser() && !frame.isEval() ) { - column -= headerLength + column -= headerLength; } var position = mapSourcePosition({ source: source, line: line, - column: column - }) - frame = cloneCallSite(frame) - var originalFunctionName = frame.getFunctionName + column: column, + }); + frame = cloneCallSite(frame); + var originalFunctionName = frame.getFunctionName; frame.getFunctionName = function () { - return position.name || originalFunctionName() - } + return position.name || originalFunctionName(); + }; frame.getFileName = function () { - return position.source - } + return position.source; + }; frame.getLineNumber = function () { - return position.line - } + return position.line; + }; frame.getColumnNumber = function () { - return position.column + 1 - } + return position.column + 1; + }; frame.getScriptNameOrSourceURL = function () { - return position.source - } - return frame + return position.source; + }; + return frame; } // Code called using eval() needs special handling - var origin = frame.isEval() && frame.getEvalOrigin() + var origin = frame.isEval() && frame.getEvalOrigin(); if (origin) { - origin = mapEvalOrigin(origin) - frame = cloneCallSite(frame) + origin = mapEvalOrigin(origin); + frame = cloneCallSite(frame); frame.getEvalOrigin = function () { - return origin - } - return frame + return origin; + }; + return frame; } // If we get here then we were unable to change the source position - return frame + return frame; } // This function is part of the V8 stack trace API, for more info see: // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi function prepareStackTrace(error, stack) { if (emptyCacheBetweenOperations) { - fileContentsCache = {} - sourceMapCache = {} + fileContentsCache = {}; + sourceMapCache = {}; } return ( error + stack .map(function (frame) { - return '\n at ' + wrapCallSite(frame) + return '\n at ' + wrapCallSite(frame); }) .join('') - ) + ); } // Generate position and snippet of original source with pointer function getErrorSource(error) { - var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack) + var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); if (match) { - var source = match[1] - var line = +match[2] - var column = +match[3] + var source = match[1]; + var line = +match[2]; + var column = +match[3]; // Support the inline sourceContents inside the source map - var contents = fileContentsCache[source] + var contents = fileContentsCache[source]; // Support files on disk if (!contents && fs && fs.existsSync(source)) { try { - contents = fs.readFileSync(source, 'utf8') + contents = fs.readFileSync(source, 'utf8'); } catch (er) { - contents = '' + contents = ''; } } // Format the line from the original source code like node does if (contents) { - var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1] + var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; if (code) { return ( source + @@ -579,66 +579,66 @@ module.exports = /******/ (() => { '\n' + new Array(column).join(' ') + '^' - ) + ); } } } - return null + return null; } function printErrorAndExit(error) { - var source = getErrorSource(error) + var source = getErrorSource(error); // Ensure error is printed synchronously and not truncated if (process.stderr._handle && process.stderr._handle.setBlocking) { - process.stderr._handle.setBlocking(true) + process.stderr._handle.setBlocking(true); } if (source) { - console.error() - console.error(source) + console.error(); + console.error(source); } - console.error(error.stack) - process.exit(1) + console.error(error.stack); + process.exit(1); } function shimEmitUncaughtException() { - var origEmit = process.emit + var origEmit = process.emit; process.emit = function (type) { if (type === 'uncaughtException') { - var hasStack = arguments[1] && arguments[1].stack - var hasListeners = this.listeners(type).length > 0 + var hasStack = arguments[1] && arguments[1].stack; + var hasListeners = this.listeners(type).length > 0; if (hasStack && !hasListeners) { - return printErrorAndExit(arguments[1]) + return printErrorAndExit(arguments[1]); } } - return origEmit.apply(this, arguments) - } + return origEmit.apply(this, arguments); + }; } - var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0) - var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0) + var originalRetrieveFileHandlers = retrieveFileHandlers.slice(0); + var originalRetrieveMapHandlers = retrieveMapHandlers.slice(0); - exports.wrapCallSite = wrapCallSite - exports.getErrorSource = getErrorSource - exports.mapSourcePosition = mapSourcePosition - exports.retrieveSourceMap = retrieveSourceMap + exports.wrapCallSite = wrapCallSite; + exports.getErrorSource = getErrorSource; + exports.mapSourcePosition = mapSourcePosition; + exports.retrieveSourceMap = retrieveSourceMap; exports.install = function (options) { - options = options || {} + options = options || {}; if (options.environment) { - environment = options.environment + environment = options.environment; if (['node', 'browser', 'auto'].indexOf(environment) === -1) { throw new Error( 'environment ' + environment + - ' was unknown. Available options are {auto, browser, node}' - ) + ' was unknown. Available options are {auto, browser, node}', + ); } } @@ -646,40 +646,40 @@ module.exports = /******/ (() => { // directly from disk. if (options.retrieveFile) { if (options.overrideRetrieveFile) { - retrieveFileHandlers.length = 0 + retrieveFileHandlers.length = 0; } - retrieveFileHandlers.unshift(options.retrieveFile) + retrieveFileHandlers.unshift(options.retrieveFile); } // Allow source maps to be found by methods other than reading the files // directly from disk. if (options.retrieveSourceMap) { if (options.overrideRetrieveSourceMap) { - retrieveMapHandlers.length = 0 + retrieveMapHandlers.length = 0; } - retrieveMapHandlers.unshift(options.retrieveSourceMap) + retrieveMapHandlers.unshift(options.retrieveSourceMap); } // Support runtime transpilers that include inline source maps if (options.hookRequire && !isInBrowser()) { - var Module + var Module; try { - Module = __webpack_require__(282) + Module = __webpack_require__(282); } catch (err) { // NOP: Loading in catch block to convert webpack error to warning. } - var $compile = Module.prototype._compile + var $compile = Module.prototype._compile; if (!$compile.__sourceMapSupport) { Module.prototype._compile = function (content, filename) { - fileContentsCache[filename] = content - sourceMapCache[filename] = undefined - return $compile.call(this, content, filename) - } + fileContentsCache[filename] = content; + sourceMapCache[filename] = undefined; + return $compile.call(this, content, filename); + }; - Module.prototype._compile.__sourceMapSupport = true + Module.prototype._compile.__sourceMapSupport = true; } } @@ -688,20 +688,20 @@ module.exports = /******/ (() => { emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? options.emptyCacheBetweenOperations - : false + : false; } // Install the error reformatter if (!errorFormatterInstalled) { - errorFormatterInstalled = true - Error.prepareStackTrace = prepareStackTrace + errorFormatterInstalled = true; + Error.prepareStackTrace = prepareStackTrace; } if (!uncaughtShimInstalled) { var installHandler = 'handleUncaughtExceptions' in options ? options.handleUncaughtExceptions - : true + : true; // Provide the option to not install the uncaught exception handler. This is // to support other uncaught exception handlers (in test frameworks, for @@ -711,19 +711,19 @@ module.exports = /******/ (() => { // generated JavaScript code will be shown above the stack trace instead of // the original source code. if (installHandler && hasGlobalProcessEventEmitter()) { - uncaughtShimInstalled = true - shimEmitUncaughtException() + uncaughtShimInstalled = true; + shimEmitUncaughtException(); } } - } + }; exports.resetRetrieveHandlers = function () { - retrieveFileHandlers.length = 0 - retrieveMapHandlers.length = 0 + retrieveFileHandlers.length = 0; + retrieveMapHandlers.length = 0; - retrieveFileHandlers = originalRetrieveFileHandlers.slice(0) - retrieveMapHandlers = originalRetrieveMapHandlers.slice(0) - } + retrieveFileHandlers = originalRetrieveFileHandlers.slice(0); + retrieveMapHandlers = originalRetrieveMapHandlers.slice(0); + }; /***/ }, @@ -731,7 +731,7 @@ module.exports = /******/ (() => { /***/ 837: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { /* -*- Mode: js; js-indent-level: 2; -*- */ /* @@ -740,9 +740,9 @@ module.exports = /******/ (() => { * http://opensource.org/licenses/BSD-3-Clause */ - var util = __webpack_require__(983) - var has = Object.prototype.hasOwnProperty - var hasNativeMap = typeof Map !== 'undefined' + var util = __webpack_require__(983); + var has = Object.prototype.hasOwnProperty; + var hasNativeMap = typeof Map !== 'undefined'; /** * A data structure which is a combination of an array and a set. Adding a new @@ -751,8 +751,8 @@ module.exports = /******/ (() => { * strings are supported for membership. */ function ArraySet() { - this._array = [] - this._set = hasNativeMap ? new Map() : Object.create(null) + this._array = []; + this._set = hasNativeMap ? new Map() : Object.create(null); } /** @@ -760,14 +760,14 @@ module.exports = /******/ (() => { */ ArraySet.fromArray = function ArraySet_fromArray( aArray, - aAllowDuplicates + aAllowDuplicates, ) { - var set = new ArraySet() + var set = new ArraySet(); for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates) + set.add(aArray[i], aAllowDuplicates); } - return set - } + return set; + }; /** * Return how many unique items are in this ArraySet. If duplicates have been @@ -778,8 +778,8 @@ module.exports = /******/ (() => { ArraySet.prototype.size = function ArraySet_size() { return hasNativeMap ? this._set.size - : Object.getOwnPropertyNames(this._set).length - } + : Object.getOwnPropertyNames(this._set).length; + }; /** * Add the given string to this set. @@ -787,22 +787,22 @@ module.exports = /******/ (() => { * @param String aStr */ ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr) + var sStr = hasNativeMap ? aStr : util.toSetString(aStr); var isDuplicate = hasNativeMap ? this.has(aStr) - : has.call(this._set, sStr) - var idx = this._array.length + : has.call(this._set, sStr); + var idx = this._array.length; if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr) + this._array.push(aStr); } if (!isDuplicate) { if (hasNativeMap) { - this._set.set(aStr, idx) + this._set.set(aStr, idx); } else { - this._set[sStr] = idx + this._set[sStr] = idx; } } - } + }; /** * Is the given string a member of this set? @@ -811,12 +811,12 @@ module.exports = /******/ (() => { */ ArraySet.prototype.has = function ArraySet_has(aStr) { if (hasNativeMap) { - return this._set.has(aStr) + return this._set.has(aStr); } else { - var sStr = util.toSetString(aStr) - return has.call(this._set, sStr) + var sStr = util.toSetString(aStr); + return has.call(this._set, sStr); } - } + }; /** * What is the index of the given string in the array? @@ -825,19 +825,19 @@ module.exports = /******/ (() => { */ ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { if (hasNativeMap) { - var idx = this._set.get(aStr) + var idx = this._set.get(aStr); if (idx >= 0) { - return idx + return idx; } } else { - var sStr = util.toSetString(aStr) + var sStr = util.toSetString(aStr); if (has.call(this._set, sStr)) { - return this._set[sStr] + return this._set[sStr]; } } - throw new Error('"' + aStr + '" is not in the set.') - } + throw new Error('"' + aStr + '" is not in the set.'); + }; /** * What is the element at the given index? @@ -846,10 +846,10 @@ module.exports = /******/ (() => { */ ArraySet.prototype.at = function ArraySet_at(aIdx) { if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx] + return this._array[aIdx]; } - throw new Error('No element indexed by ' + aIdx) - } + throw new Error('No element indexed by ' + aIdx); + }; /** * Returns the array representation of this set (which has the proper indices @@ -857,10 +857,10 @@ module.exports = /******/ (() => { * for storing the members so that no one can mess with internal state. */ ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice() - } + return this._array.slice(); + }; - exports.I = ArraySet + exports.I = ArraySet; /***/ }, @@ -868,7 +868,7 @@ module.exports = /******/ (() => { /***/ 215: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { /* -*- Mode: js; js-indent-level: 2; -*- */ /* @@ -907,7 +907,7 @@ module.exports = /******/ (() => { * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - var base64 = __webpack_require__(537) + var base64 = __webpack_require__(537); // A single base 64 digit can contain 6 bits of data. For the base 64 variable // length quantities we use in the source map spec, the first bit is the sign, @@ -921,16 +921,16 @@ module.exports = /******/ (() => { // V V // 101011 - var VLQ_BASE_SHIFT = 5 + var VLQ_BASE_SHIFT = 5; // binary: 100000 - var VLQ_BASE = 1 << VLQ_BASE_SHIFT + var VLQ_BASE = 1 << VLQ_BASE_SHIFT; // binary: 011111 - var VLQ_BASE_MASK = VLQ_BASE - 1 + var VLQ_BASE_MASK = VLQ_BASE - 1; // binary: 100000 - var VLQ_CONTINUATION_BIT = VLQ_BASE + var VLQ_CONTINUATION_BIT = VLQ_BASE; /** * Converts from a two-complement value to a value where the sign bit is @@ -939,7 +939,7 @@ module.exports = /******/ (() => { * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary) */ function toVLQSigned(aValue) { - return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0 + return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0; } /** @@ -949,63 +949,63 @@ module.exports = /******/ (() => { * 4 (100 binary) becomes 2, 5 (101 binary) becomes -2 */ function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1 - var shifted = aValue >> 1 - return isNegative ? -shifted : shifted + var isNegative = (aValue & 1) === 1; + var shifted = aValue >> 1; + return isNegative ? -shifted : shifted; } /** * Returns the base 64 VLQ encoded value. */ exports.encode = function base64VLQ_encode(aValue) { - var encoded = '' - var digit + var encoded = ''; + var digit; - var vlq = toVLQSigned(aValue) + var vlq = toVLQSigned(aValue); do { - digit = vlq & VLQ_BASE_MASK - vlq >>>= VLQ_BASE_SHIFT + digit = vlq & VLQ_BASE_MASK; + vlq >>>= VLQ_BASE_SHIFT; if (vlq > 0) { // There are still more digits in this value, so we must make sure the // continuation bit is marked. - digit |= VLQ_CONTINUATION_BIT + digit |= VLQ_CONTINUATION_BIT; } - encoded += base64.encode(digit) - } while (vlq > 0) + encoded += base64.encode(digit); + } while (vlq > 0); - return encoded - } + return encoded; + }; /** * Decodes the next base 64 VLQ value from the given string and returns the * value and the rest of the string via the out parameter. */ exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length - var result = 0 - var shift = 0 - var continuation, digit + var strLen = aStr.length; + var result = 0; + var shift = 0; + var continuation, digit; do { if (aIndex >= strLen) { - throw new Error('Expected more digits in base 64 VLQ value.') + throw new Error('Expected more digits in base 64 VLQ value.'); } - digit = base64.decode(aStr.charCodeAt(aIndex++)) + digit = base64.decode(aStr.charCodeAt(aIndex++)); if (digit === -1) { - throw new Error('Invalid base64 digit: ' + aStr.charAt(aIndex - 1)) + throw new Error('Invalid base64 digit: ' + aStr.charAt(aIndex - 1)); } - continuation = !!(digit & VLQ_CONTINUATION_BIT) - digit &= VLQ_BASE_MASK - result = result + (digit << shift) - shift += VLQ_BASE_SHIFT - } while (continuation) + continuation = !!(digit & VLQ_CONTINUATION_BIT); + digit &= VLQ_BASE_MASK; + result = result + (digit << shift); + shift += VLQ_BASE_SHIFT; + } while (continuation); - aOutParam.value = fromVLQSigned(result) - aOutParam.rest = aIndex - } + aOutParam.value = fromVLQSigned(result); + aOutParam.rest = aIndex; + }; /***/ }, @@ -1019,67 +1019,67 @@ module.exports = /******/ (() => { */ var intToCharMap = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split( - '' - ) + '', + ); /** * Encode an integer in the range of 0 to 63 to a single base 64 digit. */ exports.encode = function (number) { if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number] + return intToCharMap[number]; } - throw new TypeError('Must be between 0 and 63: ' + number) - } + throw new TypeError('Must be between 0 and 63: ' + number); + }; /** * Decode a single base 64 character code digit to an integer. Returns -1 on * failure. */ exports.decode = function (charCode) { - var bigA = 65 // 'A' - var bigZ = 90 // 'Z' + var bigA = 65; // 'A' + var bigZ = 90; // 'Z' - var littleA = 97 // 'a' - var littleZ = 122 // 'z' + var littleA = 97; // 'a' + var littleZ = 122; // 'z' - var zero = 48 // '0' - var nine = 57 // '9' + var zero = 48; // '0' + var nine = 57; // '9' - var plus = 43 // '+' - var slash = 47 // '/' + var plus = 43; // '+' + var slash = 47; // '/' - var littleOffset = 26 - var numberOffset = 52 + var littleOffset = 26; + var numberOffset = 52; // 0 - 25: ABCDEFGHIJKLMNOPQRSTUVWXYZ if (bigA <= charCode && charCode <= bigZ) { - return charCode - bigA + return charCode - bigA; } // 26 - 51: abcdefghijklmnopqrstuvwxyz if (littleA <= charCode && charCode <= littleZ) { - return charCode - littleA + littleOffset + return charCode - littleA + littleOffset; } // 52 - 61: 0123456789 if (zero <= charCode && charCode <= nine) { - return charCode - zero + numberOffset + return charCode - zero + numberOffset; } // 62: + if (charCode == plus) { - return 62 + return 62; } // 63: / if (charCode == slash) { - return 63 + return 63; } // Invalid base64 digit. - return -1 - } + return -1; + }; /***/ }, @@ -1092,8 +1092,8 @@ module.exports = /******/ (() => { * http://opensource.org/licenses/BSD-3-Clause */ - exports.GREATEST_LOWER_BOUND = 1 - exports.LEAST_UPPER_BOUND = 2 + exports.GREATEST_LOWER_BOUND = 1; + exports.LEAST_UPPER_BOUND = 2; /** * Recursive implementation of binary search. @@ -1114,7 +1114,7 @@ module.exports = /******/ (() => { aNeedle, aHaystack, aCompare, - aBias + aBias, ) { // This function terminates when one of the following is true: // @@ -1125,11 +1125,11 @@ module.exports = /******/ (() => { // // 3. We did not find the exact element, and there is no next-closest // element than the one we are searching for, so we return -1. - var mid = Math.floor((aHigh - aLow) / 2) + aLow - var cmp = aCompare(aNeedle, aHaystack[mid], true) + var mid = Math.floor((aHigh - aLow) / 2) + aLow; + var cmp = aCompare(aNeedle, aHaystack[mid], true); if (cmp === 0) { // Found the element we are looking for. - return mid + return mid; } else if (cmp > 0) { // Our needle is greater than aHaystack[mid]. if (aHigh - mid > 1) { @@ -1140,16 +1140,16 @@ module.exports = /******/ (() => { aNeedle, aHaystack, aCompare, - aBias - ) + aBias, + ); } // The exact needle element was not found in this haystack. Determine if // we are in termination case (3) or (2) and return the appropriate thing. if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1 + return aHigh < aHaystack.length ? aHigh : -1; } else { - return mid + return mid; } } else { // Our needle is less than aHaystack[mid]. @@ -1161,15 +1161,15 @@ module.exports = /******/ (() => { aNeedle, aHaystack, aCompare, - aBias - ) + aBias, + ); } // we are in termination case (3) or (2) and return the appropriate thing. if (aBias == exports.LEAST_UPPER_BOUND) { - return mid + return mid; } else { - return aLow < 0 ? -1 : aLow + return aLow < 0 ? -1 : aLow; } } } @@ -1194,7 +1194,7 @@ module.exports = /******/ (() => { */ exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { if (aHaystack.length === 0) { - return -1 + return -1; } var index = recursiveSearch( @@ -1203,10 +1203,10 @@ module.exports = /******/ (() => { aNeedle, aHaystack, aCompare, - aBias || exports.GREATEST_LOWER_BOUND - ) + aBias || exports.GREATEST_LOWER_BOUND, + ); if (index < 0) { - return -1 + return -1; } // We have found either the exact element, or the next-closest element than @@ -1214,13 +1214,13 @@ module.exports = /******/ (() => { // element. Make sure we always return the smallest of these. while (index - 1 >= 0) { if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) { - break + break; } - --index + --index; } - return index - } + return index; + }; /***/ }, @@ -1228,7 +1228,7 @@ module.exports = /******/ (() => { /***/ 740: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { /* -*- Mode: js; js-indent-level: 2; -*- */ /* @@ -1237,7 +1237,7 @@ module.exports = /******/ (() => { * http://opensource.org/licenses/BSD-3-Clause */ - var util = __webpack_require__(983) + var util = __webpack_require__(983); /** * Determine whether mappingB is after mappingA with respect to generated @@ -1245,15 +1245,15 @@ module.exports = /******/ (() => { */ function generatedPositionAfter(mappingA, mappingB) { // Optimized for most common case - var lineA = mappingA.generatedLine - var lineB = mappingB.generatedLine - var columnA = mappingA.generatedColumn - var columnB = mappingB.generatedColumn + var lineA = mappingA.generatedLine; + var lineB = mappingB.generatedLine; + var columnA = mappingA.generatedColumn; + var columnB = mappingB.generatedColumn; return ( lineB > lineA || (lineB == lineA && columnB >= columnA) || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0 - ) + ); } /** @@ -1262,10 +1262,10 @@ module.exports = /******/ (() => { * case for a large speedup in case of mappings being added in order. */ function MappingList() { - this._array = [] - this._sorted = true + this._array = []; + this._sorted = true; // Serves as infimum - this._last = { generatedLine: -1, generatedColumn: 0 } + this._last = { generatedLine: -1, generatedColumn: 0 }; } /** @@ -1276,10 +1276,10 @@ module.exports = /******/ (() => { */ MappingList.prototype.unsortedForEach = function MappingList_forEach( aCallback, - aThisArg + aThisArg, ) { - this._array.forEach(aCallback, aThisArg) - } + this._array.forEach(aCallback, aThisArg); + }; /** * Add the given source mapping. @@ -1288,13 +1288,13 @@ module.exports = /******/ (() => { */ MappingList.prototype.add = function MappingList_add(aMapping) { if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping - this._array.push(aMapping) + this._last = aMapping; + this._array.push(aMapping); } else { - this._sorted = false - this._array.push(aMapping) + this._sorted = false; + this._array.push(aMapping); } - } + }; /** * Returns the flat, sorted array of mappings. The mappings are sorted by @@ -1307,13 +1307,13 @@ module.exports = /******/ (() => { */ MappingList.prototype.toArray = function MappingList_toArray() { if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated) - this._sorted = true + this._array.sort(util.compareByGeneratedPositionsInflated); + this._sorted = true; } - return this._array - } + return this._array; + }; - exports.H = MappingList + exports.H = MappingList; /***/ }, @@ -1347,9 +1347,9 @@ module.exports = /******/ (() => { * The index of the second item. */ function swap(ary, x, y) { - var temp = ary[x] - ary[x] = ary[y] - ary[y] = temp + var temp = ary[x]; + ary[x] = ary[y]; + ary[y] = temp; } /** @@ -1361,7 +1361,7 @@ module.exports = /******/ (() => { * The upper bound on the range. */ function randomIntInRange(low, high) { - return Math.round(low + Math.random() * (high - low)) + return Math.round(low + Math.random() * (high - low)); } /** @@ -1393,11 +1393,11 @@ module.exports = /******/ (() => { // Always choose a random pivot so that an input array which is reverse // sorted does not cause O(n^2) running time. - var pivotIndex = randomIntInRange(p, r) - var i = p - 1 + var pivotIndex = randomIntInRange(p, r); + var i = p - 1; - swap(ary, pivotIndex, r) - var pivot = ary[r] + swap(ary, pivotIndex, r); + var pivot = ary[r]; // Immediately after `j` is incremented in this loop, the following hold // true: @@ -1407,18 +1407,18 @@ module.exports = /******/ (() => { // * Every element in `ary[i+1 .. j-1]` is greater than the pivot. for (var j = p; j < r; j++) { if (comparator(ary[j], pivot) <= 0) { - i += 1 - swap(ary, i, j) + i += 1; + swap(ary, i, j); } } - swap(ary, i + 1, j) - var q = i + 1 + swap(ary, i + 1, j); + var q = i + 1; // (2) Recurse on each half. - doQuickSort(ary, comparator, p, q - 1) - doQuickSort(ary, comparator, q + 1, r) + doQuickSort(ary, comparator, p, q - 1); + doQuickSort(ary, comparator, q + 1, r); } } @@ -1431,8 +1431,8 @@ module.exports = /******/ (() => { * Function to use to compare two items. */ exports.U = function (ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1) - } + doQuickSort(ary, comparator, 0, ary.length - 1); + }; /***/ }, @@ -1440,9 +1440,9 @@ module.exports = /******/ (() => { /***/ 327: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - var __webpack_unused_export__ + var __webpack_unused_export__; /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -1450,31 +1450,31 @@ module.exports = /******/ (() => { * http://opensource.org/licenses/BSD-3-Clause */ - var util = __webpack_require__(983) - var binarySearch = __webpack_require__(164) - var ArraySet = __webpack_require__(837) /* .ArraySet */.I - var base64VLQ = __webpack_require__(215) - var quickSort = __webpack_require__(226) /* .quickSort */.U + var util = __webpack_require__(983); + var binarySearch = __webpack_require__(164); + var ArraySet = __webpack_require__(837) /* .ArraySet */.I; + var base64VLQ = __webpack_require__(215); + var quickSort = __webpack_require__(226) /* .quickSort */.U; function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap + var sourceMap = aSourceMap; if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap) + sourceMap = util.parseSourceMapInput(aSourceMap); } return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) - : new BasicSourceMapConsumer(sourceMap, aSourceMapURL) + : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); } SourceMapConsumer.fromSourceMap = function (aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL) - } + return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); + }; /** * The version of the source mapping spec that we are consuming. */ - SourceMapConsumer.prototype._version = 3 + SourceMapConsumer.prototype._version = 3; // `__generatedMappings` and `__originalMappings` are arrays that hold the // parsed mapping coordinates from the source map's "mappings" attribute. They @@ -1506,39 +1506,39 @@ module.exports = /******/ (() => { // // `_originalMappings` is ordered by the original positions. - SourceMapConsumer.prototype.__generatedMappings = null + SourceMapConsumer.prototype.__generatedMappings = null; Object.defineProperty(SourceMapConsumer.prototype, '_generatedMappings', { configurable: true, enumerable: true, get: function () { if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot) + this._parseMappings(this._mappings, this.sourceRoot); } - return this.__generatedMappings - } - }) + return this.__generatedMappings; + }, + }); - SourceMapConsumer.prototype.__originalMappings = null + SourceMapConsumer.prototype.__originalMappings = null; Object.defineProperty(SourceMapConsumer.prototype, '_originalMappings', { configurable: true, enumerable: true, get: function () { if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot) + this._parseMappings(this._mappings, this.sourceRoot); } - return this.__originalMappings - } - }) + return this.__originalMappings; + }, + }); SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator( aStr, - index + index, ) { - var c = aStr.charAt(index) - return c === ';' || c === ',' - } + var c = aStr.charAt(index); + return c === ';' || c === ','; + }; /** * Parse the mappings in a string in to a data structure which we can easily @@ -1547,16 +1547,16 @@ module.exports = /******/ (() => { */ SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings( aStr, - aSourceRoot + aSourceRoot, ) { - throw new Error('Subclasses must implement _parseMappings') - } + throw new Error('Subclasses must implement _parseMappings'); + }; - SourceMapConsumer.GENERATED_ORDER = 1 - SourceMapConsumer.ORIGINAL_ORDER = 2 + SourceMapConsumer.GENERATED_ORDER = 1; + SourceMapConsumer.ORIGINAL_ORDER = 2; - SourceMapConsumer.GREATEST_LOWER_BOUND = 1 - SourceMapConsumer.LEAST_UPPER_BOUND = 2 + SourceMapConsumer.GREATEST_LOWER_BOUND = 1; + SourceMapConsumer.LEAST_UPPER_BOUND = 2; /** * Iterate over each mapping between an original source/line/column and a @@ -1577,44 +1577,44 @@ module.exports = /******/ (() => { SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping( aCallback, aContext, - aOrder + aOrder, ) { - var context = aContext || null - var order = aOrder || SourceMapConsumer.GENERATED_ORDER + var context = aContext || null; + var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - var mappings + var mappings; switch (order) { case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings - break + mappings = this._generatedMappings; + break; case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings - break + mappings = this._originalMappings; + break; default: - throw new Error('Unknown order of iteration.') + throw new Error('Unknown order of iteration.'); } - var sourceRoot = this.sourceRoot + var sourceRoot = this.sourceRoot; mappings .map(function (mapping) { var source = - mapping.source === null ? null : this._sources.at(mapping.source) + mapping.source === null ? null : this._sources.at(mapping.source); source = util.computeSourceURL( sourceRoot, source, - this._sourceMapURL - ) + this._sourceMapURL, + ); return { source: source, generatedLine: mapping.generatedLine, generatedColumn: mapping.generatedColumn, originalLine: mapping.originalLine, originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - } + name: mapping.name === null ? null : this._names.at(mapping.name), + }; }, this) - .forEach(aCallback, context) - } + .forEach(aCallback, context); + }; /** * Returns all generated line and column information for the original source, @@ -1639,9 +1639,9 @@ module.exports = /******/ (() => { * The column number is 0-based. */ SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor( - aArgs + aArgs, ) { - var line = util.getArg(aArgs, 'line') + var line = util.getArg(aArgs, 'line'); // When there is no exact match, BasicSourceMapConsumer.prototype._findMapping // returns the index of the closest mapping less than the needle. By @@ -1650,15 +1650,15 @@ module.exports = /******/ (() => { var needle = { source: util.getArg(aArgs, 'source'), originalLine: line, - originalColumn: util.getArg(aArgs, 'column', 0) - } + originalColumn: util.getArg(aArgs, 'column', 0), + }; - needle.source = this._findSourceIndex(needle.source) + needle.source = this._findSourceIndex(needle.source); if (needle.source < 0) { - return [] + return []; } - var mappings = [] + var mappings = []; var index = this._findMapping( needle, @@ -1666,13 +1666,13 @@ module.exports = /******/ (() => { 'originalLine', 'originalColumn', util.compareByOriginalPositions, - binarySearch.LEAST_UPPER_BOUND - ) + binarySearch.LEAST_UPPER_BOUND, + ); if (index >= 0) { - var mapping = this._originalMappings[index] + var mapping = this._originalMappings[index]; if (aArgs.column === undefined) { - var originalLine = mapping.originalLine + var originalLine = mapping.originalLine; // Iterate until either we run out of mappings, or we run into // a mapping for a different line than the one we found. Since @@ -1682,13 +1682,13 @@ module.exports = /******/ (() => { mappings.push({ line: util.getArg(mapping, 'generatedLine', null), column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }) + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null), + }); - mapping = this._originalMappings[++index] + mapping = this._originalMappings[++index]; } } else { - var originalColumn = mapping.originalColumn + var originalColumn = mapping.originalColumn; // Iterate until either we run out of mappings, or we run into // a mapping for a different line than the one we were searching for. @@ -1702,18 +1702,18 @@ module.exports = /******/ (() => { mappings.push({ line: util.getArg(mapping, 'generatedLine', null), column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - }) + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null), + }); - mapping = this._originalMappings[++index] + mapping = this._originalMappings[++index]; } } } - return mappings - } + return mappings; + }; - exports.SourceMapConsumer = SourceMapConsumer + exports.SourceMapConsumer = SourceMapConsumer; /** * A BasicSourceMapConsumer instance represents a parsed source map which we can @@ -1750,29 +1750,29 @@ module.exports = /******/ (() => { * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1# */ function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap + var sourceMap = aSourceMap; if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap) + sourceMap = util.parseSourceMapInput(aSourceMap); } - var version = util.getArg(sourceMap, 'version') - var sources = util.getArg(sourceMap, 'sources') + var version = util.getArg(sourceMap, 'version'); + var sources = util.getArg(sourceMap, 'sources'); // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which // requires the array) to play nice here. - var names = util.getArg(sourceMap, 'names', []) - var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null) - var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null) - var mappings = util.getArg(sourceMap, 'mappings') - var file = util.getArg(sourceMap, 'file', null) + var names = util.getArg(sourceMap, 'names', []); + var sourceRoot = util.getArg(sourceMap, 'sourceRoot', null); + var sourcesContent = util.getArg(sourceMap, 'sourcesContent', null); + var mappings = util.getArg(sourceMap, 'mappings'); + var file = util.getArg(sourceMap, 'file', null); // Once again, Sass deviates from the spec and supplies the version as a // string rather than a number, so we use loose equality checking here. if (version != this._version) { - throw new Error('Unsupported version: ' + version) + throw new Error('Unsupported version: ' + version); } if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot) + sourceRoot = util.normalize(sourceRoot); } sources = sources @@ -1790,57 +1790,57 @@ module.exports = /******/ (() => { util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) - : source - }) + : source; + }); // Pass `true` below to allow duplicate names and sources. While source maps // are intended to be compressed and deduplicated, the TypeScript compiler // sometimes generates source maps with duplicates in them. See Github issue // #72 and bugzil.la/889492. - this._names = ArraySet.fromArray(names.map(String), true) - this._sources = ArraySet.fromArray(sources, true) + this._names = ArraySet.fromArray(names.map(String), true); + this._sources = ArraySet.fromArray(sources, true); this._absoluteSources = this._sources.toArray().map(function (s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL) - }) - - this.sourceRoot = sourceRoot - this.sourcesContent = sourcesContent - this._mappings = mappings - this._sourceMapURL = aSourceMapURL - this.file = file + return util.computeSourceURL(sourceRoot, s, aSourceMapURL); + }); + + this.sourceRoot = sourceRoot; + this.sourcesContent = sourcesContent; + this._mappings = mappings; + this._sourceMapURL = aSourceMapURL; + this.file = file; } BasicSourceMapConsumer.prototype = Object.create( - SourceMapConsumer.prototype - ) - BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer + SourceMapConsumer.prototype, + ); + BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; /** * Utility function to find the index of a source. Returns -1 if not * found. */ BasicSourceMapConsumer.prototype._findSourceIndex = function (aSource) { - var relativeSource = aSource + var relativeSource = aSource; if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource) + relativeSource = util.relative(this.sourceRoot, relativeSource); } if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource) + return this._sources.indexOf(relativeSource); } // Maybe aSource is an absolute URL as returned by |sources|. In // this case we can't simply undo the transform. - var i + var i; for (i = 0; i < this._absoluteSources.length; ++i) { if (this._absoluteSources[i] == aSource) { - return i + return i; } } - return -1 - } + return -1; + }; /** * Create a BasicSourceMapConsumer from a SourceMapGenerator. @@ -1853,88 +1853,88 @@ module.exports = /******/ (() => { */ BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap( aSourceMap, - aSourceMapURL + aSourceMapURL, ) { - var smc = Object.create(BasicSourceMapConsumer.prototype) + var smc = Object.create(BasicSourceMapConsumer.prototype); var names = (smc._names = ArraySet.fromArray( aSourceMap._names.toArray(), - true - )) + true, + )); var sources = (smc._sources = ArraySet.fromArray( aSourceMap._sources.toArray(), - true - )) - smc.sourceRoot = aSourceMap._sourceRoot + true, + )); + smc.sourceRoot = aSourceMap._sourceRoot; smc.sourcesContent = aSourceMap._generateSourcesContent( smc._sources.toArray(), - smc.sourceRoot - ) - smc.file = aSourceMap._file - smc._sourceMapURL = aSourceMapURL + smc.sourceRoot, + ); + smc.file = aSourceMap._file; + smc._sourceMapURL = aSourceMapURL; smc._absoluteSources = smc._sources.toArray().map(function (s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL) - }) + return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); + }); // Because we are modifying the entries (by converting string sources and // names to indices into the sources and names ArraySets), we have to make // a copy of the entry or else bad things happen. Shared mutable state // strikes again! See github issue #191. - var generatedMappings = aSourceMap._mappings.toArray().slice() - var destGeneratedMappings = (smc.__generatedMappings = []) - var destOriginalMappings = (smc.__originalMappings = []) + var generatedMappings = aSourceMap._mappings.toArray().slice(); + var destGeneratedMappings = (smc.__generatedMappings = []); + var destOriginalMappings = (smc.__originalMappings = []); for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i] - var destMapping = new Mapping() - destMapping.generatedLine = srcMapping.generatedLine - destMapping.generatedColumn = srcMapping.generatedColumn + var srcMapping = generatedMappings[i]; + var destMapping = new Mapping(); + destMapping.generatedLine = srcMapping.generatedLine; + destMapping.generatedColumn = srcMapping.generatedColumn; if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source) - destMapping.originalLine = srcMapping.originalLine - destMapping.originalColumn = srcMapping.originalColumn + destMapping.source = sources.indexOf(srcMapping.source); + destMapping.originalLine = srcMapping.originalLine; + destMapping.originalColumn = srcMapping.originalColumn; if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name) + destMapping.name = names.indexOf(srcMapping.name); } - destOriginalMappings.push(destMapping) + destOriginalMappings.push(destMapping); } - destGeneratedMappings.push(destMapping) + destGeneratedMappings.push(destMapping); } - quickSort(smc.__originalMappings, util.compareByOriginalPositions) + quickSort(smc.__originalMappings, util.compareByOriginalPositions); - return smc - } + return smc; + }; /** * The version of the source mapping spec that we are consuming. */ - BasicSourceMapConsumer.prototype._version = 3 + BasicSourceMapConsumer.prototype._version = 3; /** * The list of original sources. */ Object.defineProperty(BasicSourceMapConsumer.prototype, 'sources', { get: function () { - return this._absoluteSources.slice() - } - }) + return this._absoluteSources.slice(); + }, + }); /** * Provide the JIT with a nice shape / hidden class. */ function Mapping() { - this.generatedLine = 0 - this.generatedColumn = 0 - this.source = null - this.originalLine = null - this.originalColumn = null - this.name = null + this.generatedLine = 0; + this.generatedColumn = 0; + this.source = null; + this.originalLine = null; + this.originalColumn = null; + this.name = null; } /** @@ -1944,32 +1944,32 @@ module.exports = /******/ (() => { */ BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings( aStr, - aSourceRoot + aSourceRoot, ) { - var generatedLine = 1 - var previousGeneratedColumn = 0 - var previousOriginalLine = 0 - var previousOriginalColumn = 0 - var previousSource = 0 - var previousName = 0 - var length = aStr.length - var index = 0 - var cachedSegments = {} - var temp = {} - var originalMappings = [] - var generatedMappings = [] - var mapping, str, segment, end, value + var generatedLine = 1; + var previousGeneratedColumn = 0; + var previousOriginalLine = 0; + var previousOriginalColumn = 0; + var previousSource = 0; + var previousName = 0; + var length = aStr.length; + var index = 0; + var cachedSegments = {}; + var temp = {}; + var originalMappings = []; + var generatedMappings = []; + var mapping, str, segment, end, value; while (index < length) { if (aStr.charAt(index) === ';') { - generatedLine++ - index++ - previousGeneratedColumn = 0 + generatedLine++; + index++; + previousGeneratedColumn = 0; } else if (aStr.charAt(index) === ',') { - index++ + index++; } else { - mapping = new Mapping() - mapping.generatedLine = generatedLine + mapping = new Mapping(); + mapping.generatedLine = generatedLine; // Because each offset is encoded relative to the previous one, // many segments often have the same encoding. We can exploit this @@ -1978,73 +1978,73 @@ module.exports = /******/ (() => { // segment again. for (end = index; end < length; end++) { if (this._charIsMappingSeparator(aStr, end)) { - break + break; } } - str = aStr.slice(index, end) + str = aStr.slice(index, end); - segment = cachedSegments[str] + segment = cachedSegments[str]; if (segment) { - index += str.length + index += str.length; } else { - segment = [] + segment = []; while (index < end) { - base64VLQ.decode(aStr, index, temp) - value = temp.value - index = temp.rest - segment.push(value) + base64VLQ.decode(aStr, index, temp); + value = temp.value; + index = temp.rest; + segment.push(value); } if (segment.length === 2) { - throw new Error('Found a source, but no line and column') + throw new Error('Found a source, but no line and column'); } if (segment.length === 3) { - throw new Error('Found a source and line, but no column') + throw new Error('Found a source and line, but no column'); } - cachedSegments[str] = segment + cachedSegments[str] = segment; } // Generated column. - mapping.generatedColumn = previousGeneratedColumn + segment[0] - previousGeneratedColumn = mapping.generatedColumn + mapping.generatedColumn = previousGeneratedColumn + segment[0]; + previousGeneratedColumn = mapping.generatedColumn; if (segment.length > 1) { // Original source. - mapping.source = previousSource + segment[1] - previousSource += segment[1] + mapping.source = previousSource + segment[1]; + previousSource += segment[1]; // Original line. - mapping.originalLine = previousOriginalLine + segment[2] - previousOriginalLine = mapping.originalLine + mapping.originalLine = previousOriginalLine + segment[2]; + previousOriginalLine = mapping.originalLine; // Lines are stored 0-based - mapping.originalLine += 1 + mapping.originalLine += 1; // Original column. - mapping.originalColumn = previousOriginalColumn + segment[3] - previousOriginalColumn = mapping.originalColumn + mapping.originalColumn = previousOriginalColumn + segment[3]; + previousOriginalColumn = mapping.originalColumn; if (segment.length > 4) { // Original name. - mapping.name = previousName + segment[4] - previousName += segment[4] + mapping.name = previousName + segment[4]; + previousName += segment[4]; } } - generatedMappings.push(mapping) + generatedMappings.push(mapping); if (typeof mapping.originalLine === 'number') { - originalMappings.push(mapping) + originalMappings.push(mapping); } } } - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated) - this.__generatedMappings = generatedMappings + quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); + this.__generatedMappings = generatedMappings; - quickSort(originalMappings, util.compareByOriginalPositions) - this.__originalMappings = originalMappings - } + quickSort(originalMappings, util.compareByOriginalPositions); + this.__originalMappings = originalMappings; + }; /** * Find the mapping that best matches the hypothetical "needle" mapping that @@ -2056,7 +2056,7 @@ module.exports = /******/ (() => { aLineName, aColumnName, aComparator, - aBias + aBias, ) { // To return the position we are searching for, we must first find the // mapping for the given position and then return the opposite position it @@ -2065,18 +2065,19 @@ module.exports = /******/ (() => { if (aNeedle[aLineName] <= 0) { throw new TypeError( - 'Line must be greater than or equal to 1, got ' + aNeedle[aLineName] - ) + 'Line must be greater than or equal to 1, got ' + + aNeedle[aLineName], + ); } if (aNeedle[aColumnName] < 0) { throw new TypeError( 'Column must be greater than or equal to 0, got ' + - aNeedle[aColumnName] - ) + aNeedle[aColumnName], + ); } - return binarySearch.search(aNeedle, aMappings, aComparator, aBias) - } + return binarySearch.search(aNeedle, aMappings, aComparator, aBias); + }; /** * Compute the last column for each generated mapping. The last column is @@ -2084,25 +2085,25 @@ module.exports = /******/ (() => { */ BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() { for (var index = 0; index < this._generatedMappings.length; ++index) { - var mapping = this._generatedMappings[index] + var mapping = this._generatedMappings[index]; // Mappings do not contain a field for the last generated columnt. We // can come up with an optimistic estimate, however, by assuming that // mappings are contiguous (i.e. given two consecutive mappings, the // first mapping ends where the second one starts). if (index + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index + 1] + var nextMapping = this._generatedMappings[index + 1]; if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1 - continue + mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; + continue; } } // The last mapping for each line spans the entire line. - mapping.lastGeneratedColumn = Infinity + mapping.lastGeneratedColumn = Infinity; } - } + }; /** * Returns the original source, line, and column information for the generated @@ -2129,12 +2130,12 @@ module.exports = /******/ (() => { * - name: The original identifier, or null. */ BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor( - aArgs + aArgs, ) { var needle = { generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - } + generatedColumn: util.getArg(aArgs, 'column'), + }; var index = this._findMapping( needle, @@ -2142,32 +2143,32 @@ module.exports = /******/ (() => { 'generatedLine', 'generatedColumn', util.compareByGeneratedPositionsDeflated, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ) + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND), + ); if (index >= 0) { - var mapping = this._generatedMappings[index] + var mapping = this._generatedMappings[index]; if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, 'source', null) + var source = util.getArg(mapping, 'source', null); if (source !== null) { - source = this._sources.at(source) + source = this._sources.at(source); source = util.computeSourceURL( this.sourceRoot, source, - this._sourceMapURL - ) + this._sourceMapURL, + ); } - var name = util.getArg(mapping, 'name', null) + var name = util.getArg(mapping, 'name', null); if (name !== null) { - name = this._names.at(name) + name = this._names.at(name); } return { source: source, line: util.getArg(mapping, 'originalLine', null), column: util.getArg(mapping, 'originalColumn', null), - name: name - } + name: name, + }; } } @@ -2175,9 +2176,9 @@ module.exports = /******/ (() => { source: null, line: null, column: null, - name: null - } - } + name: null, + }; + }; /** * Return true if we have the source content for every source in the source @@ -2185,15 +2186,15 @@ module.exports = /******/ (() => { */ BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() { if (!this.sourcesContent) { - return false + return false; } return ( this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function (sc) { - return sc == null + return sc == null; }) - ) - } + ); + }; /** * Returns the original source content. The only argument is the url of the @@ -2202,31 +2203,31 @@ module.exports = /******/ (() => { */ BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor( aSource, - nullOnMissing + nullOnMissing, ) { if (!this.sourcesContent) { - return null + return null; } - var index = this._findSourceIndex(aSource) + var index = this._findSourceIndex(aSource); if (index >= 0) { - return this.sourcesContent[index] + return this.sourcesContent[index]; } - var relativeSource = aSource + var relativeSource = aSource; if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource) + relativeSource = util.relative(this.sourceRoot, relativeSource); } - var url + var url; if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) { // XXX: file:// URIs and absolute paths lead to unexpected behavior for // many users. We can help them out when they expect file:// URIs to // behave like it would if they were running a local HTTP server. See // https://bugzilla.mozilla.org/show_bug.cgi?id=885597. - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, '') + var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ''); if (url.scheme == 'file' && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)] + return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]; } if ( @@ -2235,7 +2236,7 @@ module.exports = /******/ (() => { ) { return this.sourcesContent[ this._sources.indexOf('/' + relativeSource) - ] + ]; } } @@ -2244,11 +2245,11 @@ module.exports = /******/ (() => { // don't want to throw if we can't find the source - we just want to // return null, so we provide a flag to exit gracefully. if (nullOnMissing) { - return null + return null; } else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.') + throw new Error('"' + relativeSource + '" is not in the SourceMap.'); } - } + }; /** * Returns the generated line and column information for the original source, @@ -2274,23 +2275,23 @@ module.exports = /******/ (() => { * The column number is 0-based. */ BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor( - aArgs + aArgs, ) { - var source = util.getArg(aArgs, 'source') - source = this._findSourceIndex(source) + var source = util.getArg(aArgs, 'source'); + source = this._findSourceIndex(source); if (source < 0) { return { line: null, column: null, - lastColumn: null - } + lastColumn: null, + }; } var needle = { source: source, originalLine: util.getArg(aArgs, 'line'), - originalColumn: util.getArg(aArgs, 'column') - } + originalColumn: util.getArg(aArgs, 'column'), + }; var index = this._findMapping( needle, @@ -2298,29 +2299,29 @@ module.exports = /******/ (() => { 'originalLine', 'originalColumn', util.compareByOriginalPositions, - util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND) - ) + util.getArg(aArgs, 'bias', SourceMapConsumer.GREATEST_LOWER_BOUND), + ); if (index >= 0) { - var mapping = this._originalMappings[index] + var mapping = this._originalMappings[index]; if (mapping.source === needle.source) { return { line: util.getArg(mapping, 'generatedLine', null), column: util.getArg(mapping, 'generatedColumn', null), - lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null) - } + lastColumn: util.getArg(mapping, 'lastGeneratedColumn', null), + }; } } return { line: null, column: null, - lastColumn: null - } - } + lastColumn: null, + }; + }; - __webpack_unused_export__ = BasicSourceMapConsumer + __webpack_unused_export__ = BasicSourceMapConsumer; /** * An IndexedSourceMapConsumer instance represents a parsed source map which @@ -2372,90 +2373,90 @@ module.exports = /******/ (() => { * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt */ function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap + var sourceMap = aSourceMap; if (typeof aSourceMap === 'string') { - sourceMap = util.parseSourceMapInput(aSourceMap) + sourceMap = util.parseSourceMapInput(aSourceMap); } - var version = util.getArg(sourceMap, 'version') - var sections = util.getArg(sourceMap, 'sections') + var version = util.getArg(sourceMap, 'version'); + var sections = util.getArg(sourceMap, 'sections'); if (version != this._version) { - throw new Error('Unsupported version: ' + version) + throw new Error('Unsupported version: ' + version); } - this._sources = new ArraySet() - this._names = new ArraySet() + this._sources = new ArraySet(); + this._names = new ArraySet(); var lastOffset = { line: -1, - column: 0 - } + column: 0, + }; this._sections = sections.map(function (s) { if (s.url) { // The url field will require support for asynchronicity. // See https://github.com/mozilla/source-map/issues/16 throw new Error( - 'Support for url field in sections not implemented.' - ) + 'Support for url field in sections not implemented.', + ); } - var offset = util.getArg(s, 'offset') - var offsetLine = util.getArg(offset, 'line') - var offsetColumn = util.getArg(offset, 'column') + var offset = util.getArg(s, 'offset'); + var offsetLine = util.getArg(offset, 'line'); + var offsetColumn = util.getArg(offset, 'column'); if ( offsetLine < lastOffset.line || (offsetLine === lastOffset.line && offsetColumn < lastOffset.column) ) { throw new Error( - 'Section offsets must be ordered and non-overlapping.' - ) + 'Section offsets must be ordered and non-overlapping.', + ); } - lastOffset = offset + lastOffset = offset; return { generatedOffset: { // The offset fields are 0-based, but we use 1-based indices when // encoding/decoding from VLQ. generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 + generatedColumn: offsetColumn + 1, }, consumer: new SourceMapConsumer( util.getArg(s, 'map'), - aSourceMapURL - ) - } - }) + aSourceMapURL, + ), + }; + }); } IndexedSourceMapConsumer.prototype = Object.create( - SourceMapConsumer.prototype - ) - IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer + SourceMapConsumer.prototype, + ); + IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; /** * The version of the source mapping spec that we are consuming. */ - IndexedSourceMapConsumer.prototype._version = 3 + IndexedSourceMapConsumer.prototype._version = 3; /** * The list of original sources. */ Object.defineProperty(IndexedSourceMapConsumer.prototype, 'sources', { get: function () { - var sources = [] + var sources = []; for (var i = 0; i < this._sections.length; i++) { for ( var j = 0; j < this._sections[i].consumer.sources.length; j++ ) { - sources.push(this._sections[i].consumer.sources[j]) + sources.push(this._sections[i].consumer.sources[j]); } } - return sources - } - }) + return sources; + }, + }); /** * Returns the original source, line, and column information for the generated @@ -2477,12 +2478,12 @@ module.exports = /******/ (() => { * - name: The original identifier, or null. */ IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor( - aArgs + aArgs, ) { var needle = { generatedLine: util.getArg(aArgs, 'line'), - generatedColumn: util.getArg(aArgs, 'column') - } + generatedColumn: util.getArg(aArgs, 'column'), + }; // Find the section containing the generated position we're trying to map // to an original position. @@ -2491,25 +2492,25 @@ module.exports = /******/ (() => { this._sections, function (needle, section) { var cmp = - needle.generatedLine - section.generatedOffset.generatedLine + needle.generatedLine - section.generatedOffset.generatedLine; if (cmp) { - return cmp + return cmp; } return ( needle.generatedColumn - section.generatedOffset.generatedColumn - ) - } - ) - var section = this._sections[sectionIndex] + ); + }, + ); + var section = this._sections[sectionIndex]; if (!section) { return { source: null, line: null, column: null, - name: null - } + name: null, + }; } return section.consumer.originalPositionFor({ @@ -2520,9 +2521,9 @@ module.exports = /******/ (() => { (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0), - bias: aArgs.bias - }) - } + bias: aArgs.bias, + }); + }; /** * Return true if we have the source content for every source in the source @@ -2530,9 +2531,9 @@ module.exports = /******/ (() => { */ IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() { return this._sections.every(function (s) { - return s.consumer.hasContentsOfAllSources() - }) - } + return s.consumer.hasContentsOfAllSources(); + }); + }; /** * Returns the original source content. The only argument is the url of the @@ -2541,22 +2542,22 @@ module.exports = /******/ (() => { */ IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor( aSource, - nullOnMissing + nullOnMissing, ) { for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i] + var section = this._sections[i]; - var content = section.consumer.sourceContentFor(aSource, true) + var content = section.consumer.sourceContentFor(aSource, true); if (content) { - return content + return content; } } if (nullOnMissing) { - return null + return null; } else { - throw new Error('"' + aSource + '" is not in the SourceMap.') + throw new Error('"' + aSource + '" is not in the SourceMap.'); } - } + }; /** * Returns the generated line and column information for the original source, @@ -2577,10 +2578,10 @@ module.exports = /******/ (() => { * The column number is 0-based. */ IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor( - aArgs + aArgs, ) { for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i] + var section = this._sections[i]; // Only consider this section if the requested source is in the list of // sources of the consumer. @@ -2588,9 +2589,9 @@ module.exports = /******/ (() => { section.consumer._findSourceIndex(util.getArg(aArgs, 'source')) === -1 ) { - continue + continue; } - var generatedPosition = section.consumer.generatedPositionFor(aArgs) + var generatedPosition = section.consumer.generatedPositionFor(aArgs); if (generatedPosition) { var ret = { line: @@ -2601,17 +2602,17 @@ module.exports = /******/ (() => { (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 - : 0) - } - return ret + : 0), + }; + return ret; } } return { line: null, - column: null - } - } + column: null, + }; + }; /** * Parse the mappings in a string in to a data structure which we can easily @@ -2620,30 +2621,30 @@ module.exports = /******/ (() => { */ IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings( aStr, - aSourceRoot + aSourceRoot, ) { - this.__generatedMappings = [] - this.__originalMappings = [] + this.__generatedMappings = []; + this.__originalMappings = []; for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i] - var sectionMappings = section.consumer._generatedMappings + var section = this._sections[i]; + var sectionMappings = section.consumer._generatedMappings; for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j] + var mapping = sectionMappings[j]; - var source = section.consumer._sources.at(mapping.source) + var source = section.consumer._sources.at(mapping.source); source = util.computeSourceURL( section.consumer.sourceRoot, source, - this._sourceMapURL - ) - this._sources.add(source) - source = this._sources.indexOf(source) + this._sourceMapURL, + ); + this._sources.add(source); + source = this._sources.indexOf(source); - var name = null + var name = null; if (mapping.name) { - name = section.consumer._names.at(mapping.name) - this._names.add(name) - name = this._names.indexOf(name) + name = section.consumer._names.at(mapping.name); + this._names.add(name); + name = this._names.indexOf(name); } // The mappings coming from the consumer for the section have @@ -2662,24 +2663,24 @@ module.exports = /******/ (() => { : 0), originalLine: mapping.originalLine, originalColumn: mapping.originalColumn, - name: name - } + name: name, + }; - this.__generatedMappings.push(adjustedMapping) + this.__generatedMappings.push(adjustedMapping); if (typeof adjustedMapping.originalLine === 'number') { - this.__originalMappings.push(adjustedMapping) + this.__originalMappings.push(adjustedMapping); } } } quickSort( this.__generatedMappings, - util.compareByGeneratedPositionsDeflated - ) - quickSort(this.__originalMappings, util.compareByOriginalPositions) - } + util.compareByGeneratedPositionsDeflated, + ); + quickSort(this.__originalMappings, util.compareByOriginalPositions); + }; - __webpack_unused_export__ = IndexedSourceMapConsumer + __webpack_unused_export__ = IndexedSourceMapConsumer; /***/ }, @@ -2687,7 +2688,7 @@ module.exports = /******/ (() => { /***/ 341: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { /* -*- Mode: js; js-indent-level: 2; -*- */ /* @@ -2696,10 +2697,10 @@ module.exports = /******/ (() => { * http://opensource.org/licenses/BSD-3-Clause */ - var base64VLQ = __webpack_require__(215) - var util = __webpack_require__(983) - var ArraySet = __webpack_require__(837) /* .ArraySet */.I - var MappingList = __webpack_require__(740) /* .MappingList */.H + var base64VLQ = __webpack_require__(215); + var util = __webpack_require__(983); + var ArraySet = __webpack_require__(837) /* .ArraySet */.I; + var MappingList = __webpack_require__(740) /* .MappingList */.H; /** * An instance of the SourceMapGenerator represents a source map which is @@ -2711,18 +2712,18 @@ module.exports = /******/ (() => { */ function SourceMapGenerator(aArgs) { if (!aArgs) { - aArgs = {} - } - this._file = util.getArg(aArgs, 'file', null) - this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null) - this._skipValidation = util.getArg(aArgs, 'skipValidation', false) - this._sources = new ArraySet() - this._names = new ArraySet() - this._mappings = new MappingList() - this._sourcesContents = null + aArgs = {}; + } + this._file = util.getArg(aArgs, 'file', null); + this._sourceRoot = util.getArg(aArgs, 'sourceRoot', null); + this._skipValidation = util.getArg(aArgs, 'skipValidation', false); + this._sources = new ArraySet(); + this._names = new ArraySet(); + this._mappings = new MappingList(); + this._sourcesContents = null; } - SourceMapGenerator.prototype._version = 3 + SourceMapGenerator.prototype._version = 3; /** * Creates a new SourceMapGenerator based on a SourceMapConsumer @@ -2730,56 +2731,56 @@ module.exports = /******/ (() => { * @param aSourceMapConsumer The SourceMap. */ SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap( - aSourceMapConsumer + aSourceMapConsumer, ) { - var sourceRoot = aSourceMapConsumer.sourceRoot + var sourceRoot = aSourceMapConsumer.sourceRoot; var generator = new SourceMapGenerator({ file: aSourceMapConsumer.file, - sourceRoot: sourceRoot - }) + sourceRoot: sourceRoot, + }); aSourceMapConsumer.eachMapping(function (mapping) { var newMapping = { generated: { line: mapping.generatedLine, - column: mapping.generatedColumn - } - } + column: mapping.generatedColumn, + }, + }; if (mapping.source != null) { - newMapping.source = mapping.source + newMapping.source = mapping.source; if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source) + newMapping.source = util.relative(sourceRoot, newMapping.source); } newMapping.original = { line: mapping.originalLine, - column: mapping.originalColumn - } + column: mapping.originalColumn, + }; if (mapping.name != null) { - newMapping.name = mapping.name + newMapping.name = mapping.name; } } - generator.addMapping(newMapping) - }) + generator.addMapping(newMapping); + }); aSourceMapConsumer.sources.forEach(function (sourceFile) { - var sourceRelative = sourceFile + var sourceRelative = sourceFile; if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile) + sourceRelative = util.relative(sourceRoot, sourceFile); } if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative) + generator._sources.add(sourceRelative); } - var content = aSourceMapConsumer.sourceContentFor(sourceFile) + var content = aSourceMapConsumer.sourceContentFor(sourceFile); if (content != null) { - generator.setSourceContent(sourceFile, content) + generator.setSourceContent(sourceFile, content); } - }) - return generator - } + }); + return generator; + }; /** * Add a single mapping from original source line and column to the generated @@ -2792,28 +2793,28 @@ module.exports = /******/ (() => { * - name: An optional original token name for this mapping. */ SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping( - aArgs + aArgs, ) { - var generated = util.getArg(aArgs, 'generated') - var original = util.getArg(aArgs, 'original', null) - var source = util.getArg(aArgs, 'source', null) - var name = util.getArg(aArgs, 'name', null) + var generated = util.getArg(aArgs, 'generated'); + var original = util.getArg(aArgs, 'original', null); + var source = util.getArg(aArgs, 'source', null); + var name = util.getArg(aArgs, 'name', null); if (!this._skipValidation) { - this._validateMapping(generated, original, source, name) + this._validateMapping(generated, original, source, name); } if (source != null) { - source = String(source) + source = String(source); if (!this._sources.has(source)) { - this._sources.add(source) + this._sources.add(source); } } if (name != null) { - name = String(name) + name = String(name); if (!this._names.has(name)) { - this._names.add(name) + this._names.add(name); } } @@ -2823,38 +2824,38 @@ module.exports = /******/ (() => { originalLine: original != null && original.line, originalColumn: original != null && original.column, source: source, - name: name - }) - } + name: name, + }); + }; /** * Set the source content for a source file. */ SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent( aSourceFile, - aSourceContent + aSourceContent, ) { - var source = aSourceFile + var source = aSourceFile; if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source) + source = util.relative(this._sourceRoot, source); } if (aSourceContent != null) { // Add the source content to the _sourcesContents map. // Create a new _sourcesContents map if the property is null. if (!this._sourcesContents) { - this._sourcesContents = Object.create(null) + this._sourcesContents = Object.create(null); } - this._sourcesContents[util.toSetString(source)] = aSourceContent + this._sourcesContents[util.toSetString(source)] = aSourceContent; } else if (this._sourcesContents) { // Remove the source file from the _sourcesContents map. // If the _sourcesContents map is empty, set the property to null. - delete this._sourcesContents[util.toSetString(source)] + delete this._sourcesContents[util.toSetString(source)]; if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null + this._sourcesContents = null; } } - } + }; /** * Applies the mappings of a sub-source-map for a specific source file to the @@ -2875,28 +2876,28 @@ module.exports = /******/ (() => { SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap( aSourceMapConsumer, aSourceFile, - aSourceMapPath + aSourceMapPath, ) { - var sourceFile = aSourceFile + var sourceFile = aSourceFile; // If aSourceFile is omitted, we will use the file property of the SourceMap if (aSourceFile == null) { if (aSourceMapConsumer.file == null) { throw new Error( 'SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, ' + - 'or the source map\'s "file" property. Both were omitted.' - ) + 'or the source map\'s "file" property. Both were omitted.', + ); } - sourceFile = aSourceMapConsumer.file + sourceFile = aSourceMapConsumer.file; } - var sourceRoot = this._sourceRoot + var sourceRoot = this._sourceRoot; // Make "sourceFile" relative if an absolute Url is passed. if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile) + sourceFile = util.relative(sourceRoot, sourceFile); } // Applying the SourceMap can add and remove items from the sources and // the names array. - var newSources = new ArraySet() - var newNames = new ArraySet() + var newSources = new ArraySet(); + var newNames = new ArraySet(); // Find mappings for the "sourceFile" this._mappings.unsortedForEach(function (mapping) { @@ -2904,52 +2905,52 @@ module.exports = /******/ (() => { // Check if it can be mapped by the source map, then update the mapping. var original = aSourceMapConsumer.originalPositionFor({ line: mapping.originalLine, - column: mapping.originalColumn - }) + column: mapping.originalColumn, + }); if (original.source != null) { // Copy mapping - mapping.source = original.source + mapping.source = original.source; if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source) + mapping.source = util.join(aSourceMapPath, mapping.source); } if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source) + mapping.source = util.relative(sourceRoot, mapping.source); } - mapping.originalLine = original.line - mapping.originalColumn = original.column + mapping.originalLine = original.line; + mapping.originalColumn = original.column; if (original.name != null) { - mapping.name = original.name + mapping.name = original.name; } } } - var source = mapping.source + var source = mapping.source; if (source != null && !newSources.has(source)) { - newSources.add(source) + newSources.add(source); } - var name = mapping.name + var name = mapping.name; if (name != null && !newNames.has(name)) { - newNames.add(name) + newNames.add(name); } - }, this) - this._sources = newSources - this._names = newNames + }, this); + this._sources = newSources; + this._names = newNames; // Copy sourcesContents of applied map. aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile) + var content = aSourceMapConsumer.sourceContentFor(sourceFile); if (content != null) { if (aSourceMapPath != null) { - sourceFile = util.join(aSourceMapPath, sourceFile) + sourceFile = util.join(aSourceMapPath, sourceFile); } if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile) + sourceFile = util.relative(sourceRoot, sourceFile); } - this.setSourceContent(sourceFile, content) + this.setSourceContent(sourceFile, content); } - }, this) - } + }, this); + }; /** * A mapping can have one of the three levels of data: @@ -2966,7 +2967,7 @@ module.exports = /******/ (() => { aGenerated, aOriginal, aSource, - aName + aName, ) { // When aOriginal is truthy but has empty values for .line and .column, // it is most likely a programmer error. In this case we throw a very @@ -2980,8 +2981,8 @@ module.exports = /******/ (() => { throw new Error( 'original.line and original.column are not numbers -- you probably meant to omit ' + 'the original mapping entirely and only map the generated position. If so, pass ' + - 'null for the original mapping instead of an object with empty or null values.' - ) + 'null for the original mapping instead of an object with empty or null values.', + ); } if ( @@ -2995,7 +2996,7 @@ module.exports = /******/ (() => { !aName ) { // Case 1. - return + return; } else if ( aGenerated && 'line' in aGenerated && @@ -3010,7 +3011,7 @@ module.exports = /******/ (() => { aSource ) { // Cases 2 and 3. - return + return; } else { throw new Error( 'Invalid mapping: ' + @@ -3018,108 +3019,108 @@ module.exports = /******/ (() => { generated: aGenerated, source: aSource, original: aOriginal, - name: aName - }) - ) + name: aName, + }), + ); } - } + }; /** * Serialize the accumulated mappings in to the stream of base 64 VLQs * specified by the source map format. */ SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0 - var previousGeneratedLine = 1 - var previousOriginalColumn = 0 - var previousOriginalLine = 0 - var previousName = 0 - var previousSource = 0 - var result = '' - var next - var mapping - var nameIdx - var sourceIdx - - var mappings = this._mappings.toArray() + var previousGeneratedColumn = 0; + var previousGeneratedLine = 1; + var previousOriginalColumn = 0; + var previousOriginalLine = 0; + var previousName = 0; + var previousSource = 0; + var result = ''; + var next; + var mapping; + var nameIdx; + var sourceIdx; + + var mappings = this._mappings.toArray(); for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i] - next = '' + mapping = mappings[i]; + next = ''; if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0 + previousGeneratedColumn = 0; while (mapping.generatedLine !== previousGeneratedLine) { - next += ';' - previousGeneratedLine++ + next += ';'; + previousGeneratedLine++; } } else { if (i > 0) { if ( !util.compareByGeneratedPositionsInflated( mapping, - mappings[i - 1] + mappings[i - 1], ) ) { - continue + continue; } - next += ',' + next += ','; } } next += base64VLQ.encode( - mapping.generatedColumn - previousGeneratedColumn - ) - previousGeneratedColumn = mapping.generatedColumn + mapping.generatedColumn - previousGeneratedColumn, + ); + previousGeneratedColumn = mapping.generatedColumn; if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source) - next += base64VLQ.encode(sourceIdx - previousSource) - previousSource = sourceIdx + sourceIdx = this._sources.indexOf(mapping.source); + next += base64VLQ.encode(sourceIdx - previousSource); + previousSource = sourceIdx; // lines are stored 0-based in SourceMap spec version 3 next += base64VLQ.encode( - mapping.originalLine - 1 - previousOriginalLine - ) - previousOriginalLine = mapping.originalLine - 1 + mapping.originalLine - 1 - previousOriginalLine, + ); + previousOriginalLine = mapping.originalLine - 1; next += base64VLQ.encode( - mapping.originalColumn - previousOriginalColumn - ) - previousOriginalColumn = mapping.originalColumn + mapping.originalColumn - previousOriginalColumn, + ); + previousOriginalColumn = mapping.originalColumn; if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name) - next += base64VLQ.encode(nameIdx - previousName) - previousName = nameIdx + nameIdx = this._names.indexOf(mapping.name); + next += base64VLQ.encode(nameIdx - previousName); + previousName = nameIdx; } } - result += next + result += next; } - return result - } + return result; + }; SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent( aSources, - aSourceRoot + aSourceRoot, ) { return aSources.map(function (source) { if (!this._sourcesContents) { - return null + return null; } if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source) + source = util.relative(aSourceRoot, source); } - var key = util.toSetString(source) + var key = util.toSetString(source); return Object.prototype.hasOwnProperty.call( this._sourcesContents, - key + key, ) ? this._sourcesContents[key] - : null - }, this) - } + : null; + }, this); + }; /** * Externalize the source map. @@ -3129,32 +3130,32 @@ module.exports = /******/ (() => { version: this._version, sources: this._sources.toArray(), names: this._names.toArray(), - mappings: this._serializeMappings() - } + mappings: this._serializeMappings(), + }; if (this._file != null) { - map.file = this._file + map.file = this._file; } if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot + map.sourceRoot = this._sourceRoot; } if (this._sourcesContents) { map.sourcesContent = this._generateSourcesContent( map.sources, - map.sourceRoot - ) + map.sourceRoot, + ); } - return map - } + return map; + }; /** * Render the source map being generated to a string. */ SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()) - } + return JSON.stringify(this.toJSON()); + }; - exports.h = SourceMapGenerator + exports.h = SourceMapGenerator; /***/ }, @@ -3162,9 +3163,9 @@ module.exports = /******/ (() => { /***/ 990: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { - var __webpack_unused_export__ + var __webpack_unused_export__; /* -*- Mode: js; js-indent-level: 2; -*- */ /* * Copyright 2011 Mozilla Foundation and contributors @@ -3173,21 +3174,21 @@ module.exports = /******/ (() => { */ var SourceMapGenerator = __webpack_require__( - 341 - ) /* .SourceMapGenerator */.h - var util = __webpack_require__(983) + 341, + ) /* .SourceMapGenerator */.h; + var util = __webpack_require__(983); // Matches a Windows-style `\r\n` newline or a `\n` newline used by all other // operating systems these days (capturing the result). - var REGEX_NEWLINE = /(\r?\n)/ + var REGEX_NEWLINE = /(\r?\n)/; // Newline character code for charCodeAt() comparisons - var NEWLINE_CODE = 10 + var NEWLINE_CODE = 10; // Private symbol for identifying `SourceNode`s when multiple versions of // the source-map library are loaded. This MUST NOT CHANGE across // versions! - var isSourceNode = '$$$isSourceNode$$$' + var isSourceNode = '$$$isSourceNode$$$'; /** * SourceNodes provide a way to abstract over interpolating/concatenating @@ -3202,14 +3203,14 @@ module.exports = /******/ (() => { * @param aName The original identifier. */ function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = [] - this.sourceContents = {} - this.line = aLine == null ? null : aLine - this.column = aColumn == null ? null : aColumn - this.source = aSource == null ? null : aSource - this.name = aName == null ? null : aName - this[isSourceNode] = true - if (aChunks != null) this.add(aChunks) + this.children = []; + this.sourceContents = {}; + this.line = aLine == null ? null : aLine; + this.column = aColumn == null ? null : aColumn; + this.source = aSource == null ? null : aSource; + this.name = aName == null ? null : aName; + this[isSourceNode] = true; + if (aChunks != null) this.add(aChunks); } /** @@ -3223,39 +3224,39 @@ module.exports = /******/ (() => { SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap( aGeneratedCode, aSourceMapConsumer, - aRelativePath + aRelativePath, ) { // The SourceNode we want to fill with the generated code // and the SourceMap - var node = new SourceNode() + var node = new SourceNode(); // All even indices of this array are one line of the generated code, // while all odd indices are the newlines between two adjacent lines // (since `REGEX_NEWLINE` captures its match). // Processed fragments are accessed by calling `shiftNextLine`. - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE) - var remainingLinesIndex = 0 + var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); + var remainingLinesIndex = 0; var shiftNextLine = function () { - var lineContents = getNextLine() + var lineContents = getNextLine(); // The last line of a file might not have a newline. - var newLine = getNextLine() || '' - return lineContents + newLine + var newLine = getNextLine() || ''; + return lineContents + newLine; function getNextLine() { return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] - : undefined + : undefined; } - } + }; // We need to remember the position of "remainingLines" var lastGeneratedLine = 1, - lastGeneratedColumn = 0 + lastGeneratedColumn = 0; // The generate SourceNodes we need a code range. // To extract it current and last mapping is used. // Here we store the last mapping. - var lastMapping = null + var lastMapping = null; aSourceMapConsumer.eachMapping(function (mapping) { if (lastMapping !== null) { @@ -3263,88 +3264,88 @@ module.exports = /******/ (() => { // First check if there is a new line in between. if (lastGeneratedLine < mapping.generatedLine) { // Associate first line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()) - lastGeneratedLine++ - lastGeneratedColumn = 0 + addMappingWithCode(lastMapping, shiftNextLine()); + lastGeneratedLine++; + lastGeneratedColumn = 0; // The remaining code is added without mapping } else { // There is no new line in between. // Associate the code between "lastGeneratedColumn" and // "mapping.generatedColumn" with "lastMapping" - var nextLine = remainingLines[remainingLinesIndex] || '' + var nextLine = remainingLines[remainingLinesIndex] || ''; var code = nextLine.substr( 0, - mapping.generatedColumn - lastGeneratedColumn - ) + mapping.generatedColumn - lastGeneratedColumn, + ); remainingLines[remainingLinesIndex] = nextLine.substr( - mapping.generatedColumn - lastGeneratedColumn - ) - lastGeneratedColumn = mapping.generatedColumn - addMappingWithCode(lastMapping, code) + mapping.generatedColumn - lastGeneratedColumn, + ); + lastGeneratedColumn = mapping.generatedColumn; + addMappingWithCode(lastMapping, code); // No more remaining code, continue - lastMapping = mapping - return + lastMapping = mapping; + return; } } // We add the generated code until the first mapping // to the SourceNode without any mapping. // Each line is added as separate string. while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()) - lastGeneratedLine++ + node.add(shiftNextLine()); + lastGeneratedLine++; } if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || '' - node.add(nextLine.substr(0, mapping.generatedColumn)) + var nextLine = remainingLines[remainingLinesIndex] || ''; + node.add(nextLine.substr(0, mapping.generatedColumn)); remainingLines[remainingLinesIndex] = nextLine.substr( - mapping.generatedColumn - ) - lastGeneratedColumn = mapping.generatedColumn + mapping.generatedColumn, + ); + lastGeneratedColumn = mapping.generatedColumn; } - lastMapping = mapping - }, this) + lastMapping = mapping; + }, this); // We have processed all mappings. if (remainingLinesIndex < remainingLines.length) { if (lastMapping) { // Associate the remaining code in the current line with "lastMapping" - addMappingWithCode(lastMapping, shiftNextLine()) + addMappingWithCode(lastMapping, shiftNextLine()); } // and add the remaining lines without any mapping - node.add(remainingLines.splice(remainingLinesIndex).join('')) + node.add(remainingLines.splice(remainingLinesIndex).join('')); } // Copy sourcesContent into SourceNode aSourceMapConsumer.sources.forEach(function (sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile) + var content = aSourceMapConsumer.sourceContentFor(sourceFile); if (content != null) { if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile) + sourceFile = util.join(aRelativePath, sourceFile); } - node.setSourceContent(sourceFile, content) + node.setSourceContent(sourceFile, content); } - }) + }); - return node + return node; function addMappingWithCode(mapping, code) { if (mapping === null || mapping.source === undefined) { - node.add(code) + node.add(code); } else { var source = aRelativePath ? util.join(aRelativePath, mapping.source) - : mapping.source + : mapping.source; node.add( new SourceNode( mapping.originalLine, mapping.originalColumn, source, code, - mapping.name - ) - ) + mapping.name, + ), + ); } } - } + }; /** * Add a chunk of generated JS to this source node. @@ -3355,20 +3356,20 @@ module.exports = /******/ (() => { SourceNode.prototype.add = function SourceNode_add(aChunk) { if (Array.isArray(aChunk)) { aChunk.forEach(function (chunk) { - this.add(chunk) - }, this) + this.add(chunk); + }, this); } else if (aChunk[isSourceNode] || typeof aChunk === 'string') { if (aChunk) { - this.children.push(aChunk) + this.children.push(aChunk); } } else { throw new TypeError( 'Expected a SourceNode, string, or an array of SourceNodes and strings. Got ' + - aChunk - ) + aChunk, + ); } - return this - } + return this; + }; /** * Add a chunk of generated JS to the beginning of this source node. @@ -3379,18 +3380,18 @@ module.exports = /******/ (() => { SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { if (Array.isArray(aChunk)) { for (var i = aChunk.length - 1; i >= 0; i--) { - this.prepend(aChunk[i]) + this.prepend(aChunk[i]); } } else if (aChunk[isSourceNode] || typeof aChunk === 'string') { - this.children.unshift(aChunk) + this.children.unshift(aChunk); } else { throw new TypeError( 'Expected a SourceNode, string, or an array of SourceNodes and strings. Got ' + - aChunk - ) + aChunk, + ); } - return this - } + return this; + }; /** * Walk over the tree of JS snippets in this node and its children. The @@ -3400,23 +3401,23 @@ module.exports = /******/ (() => { * @param aFn The traversal function. */ SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk + var chunk; for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i] + chunk = this.children[i]; if (chunk[isSourceNode]) { - chunk.walk(aFn) + chunk.walk(aFn); } else { if (chunk !== '') { aFn(chunk, { source: this.source, line: this.line, column: this.column, - name: this.name - }) + name: this.name, + }); } } } - } + }; /** * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between @@ -3425,20 +3426,20 @@ module.exports = /******/ (() => { * @param aSep The separator. */ SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren - var i - var len = this.children.length + var newChildren; + var i; + var len = this.children.length; if (len > 0) { - newChildren = [] + newChildren = []; for (i = 0; i < len - 1; i++) { - newChildren.push(this.children[i]) - newChildren.push(aSep) + newChildren.push(this.children[i]); + newChildren.push(aSep); } - newChildren.push(this.children[i]) - this.children = newChildren + newChildren.push(this.children[i]); + this.children = newChildren; } - return this - } + return this; + }; /** * Call String.prototype.replace on the very right-most source snippet. Useful @@ -3449,21 +3450,21 @@ module.exports = /******/ (() => { */ SourceNode.prototype.replaceRight = function SourceNode_replaceRight( aPattern, - aReplacement + aReplacement, ) { - var lastChild = this.children[this.children.length - 1] + var lastChild = this.children[this.children.length - 1]; if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement) + lastChild.replaceRight(aPattern, aReplacement); } else if (typeof lastChild === 'string') { this.children[this.children.length - 1] = lastChild.replace( aPattern, - aReplacement - ) + aReplacement, + ); } else { - this.children.push(''.replace(aPattern, aReplacement)) + this.children.push(''.replace(aPattern, aReplacement)); } - return this - } + return this; + }; /** * Set the source content for a source file. This will be added to the SourceMapGenerator @@ -3474,10 +3475,10 @@ module.exports = /******/ (() => { */ SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent( aSourceFile, - aSourceContent + aSourceContent, ) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent - } + this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; + }; /** * Walk over the tree of SourceNodes. The walking function is called for each @@ -3486,52 +3487,52 @@ module.exports = /******/ (() => { * @param aFn The traversal function. */ SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents( - aFn + aFn, ) { for (var i = 0, len = this.children.length; i < len; i++) { if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn) + this.children[i].walkSourceContents(aFn); } } - var sources = Object.keys(this.sourceContents) + var sources = Object.keys(this.sourceContents); for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]) + aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); } - } + }; /** * Return the string representation of this source node. Walks over the tree * and concatenates all the various snippets together to one string. */ SourceNode.prototype.toString = function SourceNode_toString() { - var str = '' + var str = ''; this.walk(function (chunk) { - str += chunk - }) - return str - } + str += chunk; + }); + return str; + }; /** * Returns the string representation of this source node along with a source * map. */ SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap( - aArgs + aArgs, ) { var generated = { code: '', line: 1, - column: 0 - } - var map = new SourceMapGenerator(aArgs) - var sourceMappingActive = false - var lastOriginalSource = null - var lastOriginalLine = null - var lastOriginalColumn = null - var lastOriginalName = null + column: 0, + }; + var map = new SourceMapGenerator(aArgs); + var sourceMappingActive = false; + var lastOriginalSource = null; + var lastOriginalLine = null; + var lastOriginalColumn = null; + var lastOriginalName = null; this.walk(function (chunk, original) { - generated.code += chunk + generated.code += chunk; if ( original.source !== null && original.line !== null && @@ -3547,65 +3548,65 @@ module.exports = /******/ (() => { source: original.source, original: { line: original.line, - column: original.column + column: original.column, }, generated: { line: generated.line, - column: generated.column + column: generated.column, }, - name: original.name - }) + name: original.name, + }); } - lastOriginalSource = original.source - lastOriginalLine = original.line - lastOriginalColumn = original.column - lastOriginalName = original.name - sourceMappingActive = true + lastOriginalSource = original.source; + lastOriginalLine = original.line; + lastOriginalColumn = original.column; + lastOriginalName = original.name; + sourceMappingActive = true; } else if (sourceMappingActive) { map.addMapping({ generated: { line: generated.line, - column: generated.column - } - }) - lastOriginalSource = null - sourceMappingActive = false + column: generated.column, + }, + }); + lastOriginalSource = null; + sourceMappingActive = false; } for (var idx = 0, length = chunk.length; idx < length; idx++) { if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++ - generated.column = 0 + generated.line++; + generated.column = 0; // Mappings end at eol if (idx + 1 === length) { - lastOriginalSource = null - sourceMappingActive = false + lastOriginalSource = null; + sourceMappingActive = false; } else if (sourceMappingActive) { map.addMapping({ source: original.source, original: { line: original.line, - column: original.column + column: original.column, }, generated: { line: generated.line, - column: generated.column + column: generated.column, }, - name: original.name - }) + name: original.name, + }); } } else { - generated.column++ + generated.column++; } } - }) + }); this.walkSourceContents(function (sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent) - }) + map.setSourceContent(sourceFile, sourceContent); + }); - return { code: generated.code, map: map } - } + return { code: generated.code, map: map }; + }; - __webpack_unused_export__ = SourceNode + __webpack_unused_export__ = SourceNode; /***/ }, @@ -3630,54 +3631,54 @@ module.exports = /******/ (() => { */ function getArg(aArgs, aName, aDefaultValue) { if (aName in aArgs) { - return aArgs[aName] + return aArgs[aName]; } else if (arguments.length === 3) { - return aDefaultValue + return aDefaultValue; } else { - throw new Error('"' + aName + '" is a required argument.') + throw new Error('"' + aName + '" is a required argument.'); } } - exports.getArg = getArg + exports.getArg = getArg; - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/ - var dataUrlRegexp = /^data:.+\,.+$/ + var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; + var dataUrlRegexp = /^data:.+\,.+$/; function urlParse(aUrl) { - var match = aUrl.match(urlRegexp) + var match = aUrl.match(urlRegexp); if (!match) { - return null + return null; } return { scheme: match[1], auth: match[2], host: match[3], port: match[4], - path: match[5] - } + path: match[5], + }; } - exports.urlParse = urlParse + exports.urlParse = urlParse; function urlGenerate(aParsedUrl) { - var url = '' + var url = ''; if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ':' + url += aParsedUrl.scheme + ':'; } - url += '//' + url += '//'; if (aParsedUrl.auth) { - url += aParsedUrl.auth + '@' + url += aParsedUrl.auth + '@'; } if (aParsedUrl.host) { - url += aParsedUrl.host + url += aParsedUrl.host; } if (aParsedUrl.port) { - url += ':' + aParsedUrl.port + url += ':' + aParsedUrl.port; } if (aParsedUrl.path) { - url += aParsedUrl.path + url += aParsedUrl.path; } - return url + return url; } - exports.urlGenerate = urlGenerate + exports.urlGenerate = urlGenerate; /** * Normalizes a path, or the path portion of a URL: @@ -3691,49 +3692,49 @@ module.exports = /******/ (() => { * @param aPath The path or url to normalize. */ function normalize(aPath) { - var path = aPath - var url = urlParse(aPath) + var path = aPath; + var url = urlParse(aPath); if (url) { if (!url.path) { - return aPath + return aPath; } - path = url.path + path = url.path; } - var isAbsolute = exports.isAbsolute(path) + var isAbsolute = exports.isAbsolute(path); - var parts = path.split(/\/+/) + var parts = path.split(/\/+/); for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i] + part = parts[i]; if (part === '.') { - parts.splice(i, 1) + parts.splice(i, 1); } else if (part === '..') { - up++ + up++; } else if (up > 0) { if (part === '') { // The first part is blank if the path is absolute. Trying to go // above the root is a no-op. Therefore we can remove all '..' parts // directly after the root. - parts.splice(i + 1, up) - up = 0 + parts.splice(i + 1, up); + up = 0; } else { - parts.splice(i, 2) - up-- + parts.splice(i, 2); + up--; } } } - path = parts.join('/') + path = parts.join('/'); if (path === '') { - path = isAbsolute ? '/' : '.' + path = isAbsolute ? '/' : '.'; } if (url) { - url.path = path - return urlGenerate(url) + url.path = path; + return urlGenerate(url); } - return path + return path; } - exports.normalize = normalize + exports.normalize = normalize; /** * Joins two paths/URLs. @@ -3753,51 +3754,51 @@ module.exports = /******/ (() => { */ function join(aRoot, aPath) { if (aRoot === '') { - aRoot = '.' + aRoot = '.'; } if (aPath === '') { - aPath = '.' + aPath = '.'; } - var aPathUrl = urlParse(aPath) - var aRootUrl = urlParse(aRoot) + var aPathUrl = urlParse(aPath); + var aRootUrl = urlParse(aRoot); if (aRootUrl) { - aRoot = aRootUrl.path || '/' + aRoot = aRootUrl.path || '/'; } // `join(foo, '//www.example.org')` if (aPathUrl && !aPathUrl.scheme) { if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme + aPathUrl.scheme = aRootUrl.scheme; } - return urlGenerate(aPathUrl) + return urlGenerate(aPathUrl); } if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath + return aPath; } // `join('http://', 'www.example.com')` if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath - return urlGenerate(aRootUrl) + aRootUrl.host = aPath; + return urlGenerate(aRootUrl); } var joined = aPath.charAt(0) === '/' ? aPath - : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath) + : normalize(aRoot.replace(/\/+$/, '') + '/' + aPath); if (aRootUrl) { - aRootUrl.path = joined - return urlGenerate(aRootUrl) + aRootUrl.path = joined; + return urlGenerate(aRootUrl); } - return joined + return joined; } - exports.join = join + exports.join = join; exports.isAbsolute = function (aPath) { - return aPath.charAt(0) === '/' || urlRegexp.test(aPath) - } + return aPath.charAt(0) === '/' || urlRegexp.test(aPath); + }; /** * Make a path relative to a URL or another path. @@ -3807,45 +3808,45 @@ module.exports = /******/ (() => { */ function relative(aRoot, aPath) { if (aRoot === '') { - aRoot = '.' + aRoot = '.'; } - aRoot = aRoot.replace(/\/$/, '') + aRoot = aRoot.replace(/\/$/, ''); // It is possible for the path to be above the root. In this case, simply // checking whether the root is a prefix of the path won't work. Instead, we // need to remove components from the root one by one, until either we find // a prefix that fits, or we run out of components to remove. - var level = 0 + var level = 0; while (aPath.indexOf(aRoot + '/') !== 0) { - var index = aRoot.lastIndexOf('/') + var index = aRoot.lastIndexOf('/'); if (index < 0) { - return aPath + return aPath; } // If the only part of the root that is left is the scheme (i.e. http://, // file:///, etc.), one or more slashes (/), or simply nothing at all, we // have exhausted all components, so the path is not relative to the root. - aRoot = aRoot.slice(0, index) + aRoot = aRoot.slice(0, index); if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath + return aPath; } - ++level + ++level; } // Make sure we add a "../" for each component we removed from the root. - return Array(level + 1).join('../') + aPath.substr(aRoot.length + 1) + return Array(level + 1).join('../') + aPath.substr(aRoot.length + 1); } - exports.relative = relative + exports.relative = relative; var supportsNullProto = (function () { - var obj = Object.create(null) - return !('__proto__' in obj) - })() + var obj = Object.create(null); + return !('__proto__' in obj); + })(); function identity(s) { - return s + return s; } /** @@ -3859,31 +3860,31 @@ module.exports = /******/ (() => { */ function toSetString(aStr) { if (isProtoString(aStr)) { - return '$' + aStr + return '$' + aStr; } - return aStr + return aStr; } - exports.toSetString = supportsNullProto ? identity : toSetString + exports.toSetString = supportsNullProto ? identity : toSetString; function fromSetString(aStr) { if (isProtoString(aStr)) { - return aStr.slice(1) + return aStr.slice(1); } - return aStr + return aStr; } - exports.fromSetString = supportsNullProto ? identity : fromSetString + exports.fromSetString = supportsNullProto ? identity : fromSetString; function isProtoString(s) { if (!s) { - return false + return false; } - var length = s.length + var length = s.length; if (length < 9 /* "__proto__".length */) { - return false + return false; } if ( @@ -3897,16 +3898,16 @@ module.exports = /******/ (() => { s.charCodeAt(length - 8) !== 95 /* '_' */ || s.charCodeAt(length - 9) !== 95 /* '_' */ ) { - return false + return false; } for (var i = length - 10; i >= 0; i--) { if (s.charCodeAt(i) !== 36 /* '$' */) { - return false + return false; } } - return true + return true; } /** @@ -3920,36 +3921,36 @@ module.exports = /******/ (() => { function compareByOriginalPositions( mappingA, mappingB, - onlyCompareOriginal + onlyCompareOriginal, ) { - var cmp = strcmp(mappingA.source, mappingB.source) + var cmp = strcmp(mappingA.source, mappingB.source); if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalLine - mappingB.originalLine + cmp = mappingA.originalLine - mappingB.originalLine; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalColumn - mappingB.originalColumn + cmp = mappingA.originalColumn - mappingB.originalColumn; if (cmp !== 0 || onlyCompareOriginal) { - return cmp + return cmp; } - cmp = mappingA.generatedColumn - mappingB.generatedColumn + cmp = mappingA.generatedColumn - mappingB.generatedColumn; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.generatedLine - mappingB.generatedLine + cmp = mappingA.generatedLine - mappingB.generatedLine; if (cmp !== 0) { - return cmp + return cmp; } - return strcmp(mappingA.name, mappingB.name) + return strcmp(mappingA.name, mappingB.name); } - exports.compareByOriginalPositions = compareByOriginalPositions + exports.compareByOriginalPositions = compareByOriginalPositions; /** * Comparator between two mappings with deflated source and name indices where @@ -3963,55 +3964,55 @@ module.exports = /******/ (() => { function compareByGeneratedPositionsDeflated( mappingA, mappingB, - onlyCompareGenerated + onlyCompareGenerated, ) { - var cmp = mappingA.generatedLine - mappingB.generatedLine + var cmp = mappingA.generatedLine - mappingB.generatedLine; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.generatedColumn - mappingB.generatedColumn + cmp = mappingA.generatedColumn - mappingB.generatedColumn; if (cmp !== 0 || onlyCompareGenerated) { - return cmp + return cmp; } - cmp = strcmp(mappingA.source, mappingB.source) + cmp = strcmp(mappingA.source, mappingB.source); if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalLine - mappingB.originalLine + cmp = mappingA.originalLine - mappingB.originalLine; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalColumn - mappingB.originalColumn + cmp = mappingA.originalColumn - mappingB.originalColumn; if (cmp !== 0) { - return cmp + return cmp; } - return strcmp(mappingA.name, mappingB.name) + return strcmp(mappingA.name, mappingB.name); } - exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated + exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; function strcmp(aStr1, aStr2) { if (aStr1 === aStr2) { - return 0 + return 0; } if (aStr1 === null) { - return 1 // aStr2 !== null + return 1; // aStr2 !== null } if (aStr2 === null) { - return -1 // aStr1 !== null + return -1; // aStr1 !== null } if (aStr1 > aStr2) { - return 1 + return 1; } - return -1 + return -1; } /** @@ -4019,34 +4020,34 @@ module.exports = /******/ (() => { * the generated positions are compared. */ function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine + var cmp = mappingA.generatedLine - mappingB.generatedLine; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.generatedColumn - mappingB.generatedColumn + cmp = mappingA.generatedColumn - mappingB.generatedColumn; if (cmp !== 0) { - return cmp + return cmp; } - cmp = strcmp(mappingA.source, mappingB.source) + cmp = strcmp(mappingA.source, mappingB.source); if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalLine - mappingB.originalLine + cmp = mappingA.originalLine - mappingB.originalLine; if (cmp !== 0) { - return cmp + return cmp; } - cmp = mappingA.originalColumn - mappingB.originalColumn + cmp = mappingA.originalColumn - mappingB.originalColumn; if (cmp !== 0) { - return cmp + return cmp; } - return strcmp(mappingA.name, mappingB.name) + return strcmp(mappingA.name, mappingB.name); } - exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated + exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; /** * Strip any JSON XSSI avoidance prefix from the string (as documented @@ -4054,16 +4055,16 @@ module.exports = /******/ (() => { * JSON. */ function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')) + return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, '')); } - exports.parseSourceMapInput = parseSourceMapInput + exports.parseSourceMapInput = parseSourceMapInput; /** * Compute the URL of a source given the the source root, the source's * URL, and the source map's URL. */ function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || '' + sourceURL = sourceURL || ''; if (sourceRoot) { // This follows what Chrome does. @@ -4071,14 +4072,14 @@ module.exports = /******/ (() => { sourceRoot[sourceRoot.length - 1] !== '/' && sourceURL[0] !== '/' ) { - sourceRoot += '/' + sourceRoot += '/'; } // The spec says: // Line 4: An optional source root, useful for relocating source // files on a server or removing repeated values in the // “sources” entry. This value is prepended to the individual // entries in the “source” field. - sourceURL = sourceRoot + sourceURL + sourceURL = sourceRoot + sourceURL; } // Historically, SourceMapConsumer did not take the sourceMapURL as @@ -4096,23 +4097,23 @@ module.exports = /******/ (() => { // “sourceRoot”, the sources are resolved relative to the // SourceMap (like resolving script src in a html document). if (sourceMapURL) { - var parsed = urlParse(sourceMapURL) + var parsed = urlParse(sourceMapURL); if (!parsed) { - throw new Error('sourceMapURL could not be parsed') + throw new Error('sourceMapURL could not be parsed'); } if (parsed.path) { // Strip the last path component, but keep the "/". - var index = parsed.path.lastIndexOf('/') + var index = parsed.path.lastIndexOf('/'); if (index >= 0) { - parsed.path = parsed.path.substring(0, index + 1) + parsed.path = parsed.path.substring(0, index + 1); } } - sourceURL = join(urlGenerate(parsed), sourceURL) + sourceURL = join(urlGenerate(parsed), sourceURL); } - return normalize(sourceURL) + return normalize(sourceURL); } - exports.computeSourceURL = computeSourceURL + exports.computeSourceURL = computeSourceURL; /***/ }, @@ -4120,82 +4121,82 @@ module.exports = /******/ (() => { /***/ 596: /***/ ( __unused_webpack_module, exports, - __webpack_require__ + __webpack_require__, ) => { /* * Copyright 2009-2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE.txt or: * http://opensource.org/licenses/BSD-3-Clause */ - /* unused reexport */ __webpack_require__(341) /* .SourceMapGenerator */.h - exports.SourceMapConsumer = __webpack_require__(327).SourceMapConsumer - /* unused reexport */ __webpack_require__(990) + /* unused reexport */ __webpack_require__(341) /* .SourceMapGenerator */ + .h; + exports.SourceMapConsumer = __webpack_require__(327).SourceMapConsumer; + /* unused reexport */ __webpack_require__(990); /***/ }, - /***/ 747: /***/ module => { - 'use strict' - module.exports = require('fs') + /***/ 747: /***/ (module) => { + 'use strict'; + module.exports = require('fs'); /***/ }, - /***/ 282: /***/ module => { - 'use strict' - module.exports = require('module') + /***/ 282: /***/ (module) => { + 'use strict'; + module.exports = require('module'); /***/ }, - /***/ 622: /***/ module => { - 'use strict' - module.exports = require('path') + /***/ 622: /***/ (module) => { + 'use strict'; + module.exports = require('path'); /***/ - } + }, /******/ - } // The module cache + }; // The module cache /************************************************************************/ - /******/ /******/ var __webpack_module_cache__ = {} // The require function + /******/ /******/ var __webpack_module_cache__ = {}; // The require function /******/ /******/ /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if (__webpack_module_cache__[moduleId]) { - /******/ return __webpack_module_cache__[moduleId].exports + /******/ return __webpack_module_cache__[moduleId].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: {} + /******/ exports: {}, /******/ - }) // Execute the module function + }); // Execute the module function /******/ - /******/ /******/ var threw = true + /******/ /******/ var threw = true; /******/ try { /******/ __webpack_modules__[moduleId]( module, module.exports, - __webpack_require__ - ) - /******/ threw = false + __webpack_require__, + ); + /******/ threw = false; /******/ } finally { - /******/ if (threw) delete __webpack_module_cache__[moduleId] + /******/ if (threw) delete __webpack_module_cache__[moduleId]; /******/ } // Return the exports of the module /******/ - /******/ /******/ return module.exports + /******/ /******/ return module.exports; /******/ - } /* webpack/runtime/compat */ + } /* webpack/runtime/compat */ /******/ /******/ /************************************************************************/ - /******/ /******/ - /******/ __webpack_require__.ab = + /******/ /******/ __webpack_require__.ab = __dirname + - '/' /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports - /******/ /******/ /******/ /******/ return __webpack_require__(645) + '/'; /************************************************************************/ // module exports must be returned from runtime so entry inlining is disabled // startup // Load entry module and return exports + /******/ /******/ /******/ /******/ return __webpack_require__(645); /******/ -})() +})(); diff --git a/dist/src/api/addLabel.js b/dist/src/api/addLabel.js index 729f058..99cab48 100644 --- a/dist/src/api/addLabel.js +++ b/dist/src/api/addLabel.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,40 +6,40 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.addLabel = void 0 + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.addLabel = void 0; exports.addLabel = ({ client, repo, num, label }) => __awaiter(void 0, void 0, void 0, function* () { return yield client.issues.addLabels( Object.assign(Object.assign({}, repo), { issue_number: num, - labels: [label] - }) - ) - }) + labels: [label], + }), + ); + }); diff --git a/dist/src/api/createLabel.js b/dist/src/api/createLabel.js index d73899c..82f40bf 100644 --- a/dist/src/api/createLabel.js +++ b/dist/src/api/createLabel.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,39 +6,39 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.createLabel = void 0 -const utils_1 = require('../utils') + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.createLabel = void 0; +const utils_1 = require('../utils'); exports.createLabel = ({ client, repo, label }) => __awaiter(void 0, void 0, void 0, function* () { - const color = utils_1.formatColour(label.color) + const color = utils_1.formatColour(label.color); yield client.issues.createLabel( - Object.assign(Object.assign(Object.assign({}, repo), label), { color }) - ) - }) + Object.assign(Object.assign(Object.assign({}, repo), label), { color }), + ); + }); diff --git a/dist/src/api/deleteLabel.js b/dist/src/api/deleteLabel.js index f1f7809..975f6b4 100644 --- a/dist/src/api/deleteLabel.js +++ b/dist/src/api/deleteLabel.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,37 +6,37 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.deleteLabel = void 0 + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.deleteLabel = void 0; exports.deleteLabel = ({ client, repo, name }) => __awaiter(void 0, void 0, void 0, function* () { yield client.issues.deleteLabel( - Object.assign(Object.assign({}, repo), { name }) - ) - }) + Object.assign(Object.assign({}, repo), { name }), + ); + }); diff --git a/dist/src/api/getLabels.js b/dist/src/api/getLabels.js index 2118954..54a6e01 100644 --- a/dist/src/api/getLabels.js +++ b/dist/src/api/getLabels.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,42 +6,42 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.getLabels = void 0 + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.getLabels = void 0; exports.getLabels = ({ client, repo }) => __awaiter(void 0, void 0, void 0, function* () { const labels = yield client.issues.listLabelsForRepo( - Object.assign({}, repo) - ) - return labels.data.map(label => ({ + Object.assign({}, repo), + ); + return labels.data.map((label) => ({ name: label.name, description: label.description, - color: label.color - })) - }) + color: label.color, + })); + }); diff --git a/dist/src/api/index.js b/dist/src/api/index.js index c1b9c59..c050eab 100644 --- a/dist/src/api/index.js +++ b/dist/src/api/index.js @@ -1,32 +1,32 @@ -'use strict' +'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __exportStar = (this && this.__exportStar) || function (m, exports) { for (var p in m) if (p !== 'default' && !exports.hasOwnProperty(p)) - __createBinding(exports, m, p) - } -Object.defineProperty(exports, '__esModule', { value: true }) -__exportStar(require('./addLabel'), exports) -__exportStar(require('./createLabel'), exports) -__exportStar(require('./deleteLabel'), exports) -__exportStar(require('./getLabels'), exports) -__exportStar(require('./listFiles'), exports) -__exportStar(require('./removeLabel'), exports) -__exportStar(require('./updateLabel'), exports) + __createBinding(exports, m, p); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +__exportStar(require('./addLabel'), exports); +__exportStar(require('./createLabel'), exports); +__exportStar(require('./deleteLabel'), exports); +__exportStar(require('./getLabels'), exports); +__exportStar(require('./listFiles'), exports); +__exportStar(require('./removeLabel'), exports); +__exportStar(require('./updateLabel'), exports); diff --git a/dist/src/api/listFiles.js b/dist/src/api/listFiles.js index 86a5e6d..cb27b5c 100644 --- a/dist/src/api/listFiles.js +++ b/dist/src/api/listFiles.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,41 +6,41 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.listFiles = void 0 + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.listFiles = void 0; exports.listFiles = ({ client, num, repo }) => __awaiter(void 0, void 0, void 0, function* () { const files = yield client.pulls.listFiles( Object.assign(Object.assign({}, repo), { pull_number: num, - per_page: 100 - }) - ) - return files.data.map(file => file.filename) - }) + per_page: 100, + }), + ); + return files.data.map((file) => file.filename); + }); diff --git a/dist/src/api/removeLabel.js b/dist/src/api/removeLabel.js index 4dc0688..c225865 100644 --- a/dist/src/api/removeLabel.js +++ b/dist/src/api/removeLabel.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,40 +6,40 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.removeLabel = void 0 + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.removeLabel = void 0; exports.removeLabel = ({ client, repo, num, label }) => __awaiter(void 0, void 0, void 0, function* () { return yield client.issues.removeLabel( Object.assign(Object.assign({}, repo), { issue_number: num, - name: label - }) - ) - }) + name: label, + }), + ); + }); diff --git a/dist/src/api/updateLabel.js b/dist/src/api/updateLabel.js index 581a944..b12702a 100644 --- a/dist/src/api/updateLabel.js +++ b/dist/src/api/updateLabel.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,43 +6,43 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.updateLabel = void 0 -const utils_1 = require('../utils') + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.updateLabel = void 0; +const utils_1 = require('../utils'); exports.updateLabel = ({ client, repo, label }) => __awaiter(void 0, void 0, void 0, function* () { - const color = utils_1.formatColour(label.color) + const color = utils_1.formatColour(label.color); yield client.issues.updateLabel( Object.assign(Object.assign({}, repo), { current_name: label.name, description: label.description, - color - }) - ) - }) + color, + }), + ); + }); diff --git a/dist/src/applyLabels.js b/dist/src/applyLabels.js index 8dac70a..72fcc22 100644 --- a/dist/src/applyLabels.js +++ b/dist/src/applyLabels.js @@ -1,41 +1,41 @@ -'use strict' +'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { - Object.defineProperty(o, 'default', { enumerable: true, value: v }) + Object.defineProperty(o, 'default', { enumerable: true, value: v }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -43,48 +43,48 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.applyPRLabels = exports.applyIssueLabels = void 0 -const core = __importStar(require('@actions/core')) -const api_1 = require('./api') -const conditions_1 = require('./conditions') + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.applyPRLabels = exports.applyIssueLabels = void 0; +const core = __importStar(require('@actions/core')); +const api_1 = require('./api'); +const conditions_1 = require('./conditions'); const forConditions = (conditions, callback) => { - let matches = 0 + let matches = 0; for (const condition of conditions) { - core.debug(`Condition: ${JSON.stringify(condition)}`) + core.debug(`Condition: ${JSON.stringify(condition)}`); if (callback(condition)) { - matches++ + matches++; } } - core.debug(`Matches: ${matches}`) - return matches -} + core.debug(`Matches: ${matches}`); + return matches; +}; const addRemoveLabel = ({ client, curLabels, @@ -93,43 +93,43 @@ const addRemoveLabel = ({ matches, num, repo, - requires + requires, }) => __awaiter(void 0, void 0, void 0, function* () { - const labelName = labelIdToName[label] - const hasLabel = curLabels.filter(l => l.name === labelName).length > 0 + const labelName = labelIdToName[label]; + const hasLabel = curLabels.filter((l) => l.name === labelName).length > 0; if (matches >= requires && !hasLabel) { core.debug( - `${matches} >= ${requires} matches, adding label "${label}"...` - ) - yield api_1.addLabel({ client, repo, num, label: labelName }) + `${matches} >= ${requires} matches, adding label "${label}"...`, + ); + yield api_1.addLabel({ client, repo, num, label: labelName }); } if (matches < requires && hasLabel) { core.debug( - `${matches} < ${requires} matches, removing label "${label}"...` - ) - yield api_1.removeLabel({ client, repo, num, label: labelName }) + `${matches} < ${requires} matches, removing label "${label}"...`, + ); + yield api_1.removeLabel({ client, repo, num, label: labelName }); } - }) + }); exports.applyIssueLabels = ({ client, config, issueContext, labelIdToName, - repo + repo, }) => __awaiter(void 0, void 0, void 0, function* () { - const { labels: curLabels, issueProps, num } = issueContext + const { labels: curLabels, issueProps, num } = issueContext; for (const [label, opts] of Object.entries(config)) { - core.debug(`Label: ${label}`) - const matches = forConditions(opts.conditions, condition => { - const handler = conditions_1.getIssueConditionHandler(condition) + core.debug(`Label: ${label}`); + const matches = forConditions(opts.conditions, (condition) => { + const handler = conditions_1.getIssueConditionHandler(condition); return ( (handler === null || handler === void 0 ? void 0 : handler(condition, issueProps)) || false - ) - }) + ); + }); yield addRemoveLabel({ client, curLabels, @@ -138,23 +138,23 @@ exports.applyIssueLabels = ({ matches, num, repo, - requires: opts.requires - }) + requires: opts.requires, + }); } - }) + }); exports.applyPRLabels = ({ client, config, labelIdToName, prContext, repo }) => __awaiter(void 0, void 0, void 0, function* () { - const { labels: curLabels, prProps, num } = prContext + const { labels: curLabels, prProps, num } = prContext; for (const [label, opts] of Object.entries(config)) { - core.debug(`Label: ${label}`) - const matches = forConditions(opts.conditions, condition => { - const handler = conditions_1.getPRConditionHandler(condition) + core.debug(`Label: ${label}`); + const matches = forConditions(opts.conditions, (condition) => { + const handler = conditions_1.getPRConditionHandler(condition); return ( (handler === null || handler === void 0 ? void 0 : handler(condition, prProps)) || false - ) - }) + ); + }); yield addRemoveLabel({ client, curLabels, @@ -163,7 +163,7 @@ exports.applyPRLabels = ({ client, config, labelIdToName, prContext, repo }) => matches, num, repo, - requires: opts.requires - }) + requires: opts.requires, + }); } - }) + }); diff --git a/dist/src/conditions/creatorMatches.js b/dist/src/conditions/creatorMatches.js index 5e892de..2fe5e37 100644 --- a/dist/src/conditions/creatorMatches.js +++ b/dist/src/conditions/creatorMatches.js @@ -1,9 +1,9 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const utils_1 = require('../utils') -const TYPE = 'creatorMatches' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const utils_1 = require('../utils'); +const TYPE = 'creatorMatches'; const creatorMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.creator) -} -exports.default = [TYPE, creatorMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.creator); +}; +exports.default = [TYPE, creatorMatches]; diff --git a/dist/src/conditions/descriptionMatches.js b/dist/src/conditions/descriptionMatches.js index b53105d..f031497 100644 --- a/dist/src/conditions/descriptionMatches.js +++ b/dist/src/conditions/descriptionMatches.js @@ -1,9 +1,9 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const utils_1 = require('../utils') -const TYPE = 'descriptionMatches' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const utils_1 = require('../utils'); +const TYPE = 'descriptionMatches'; const descriptionMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.description) -} -exports.default = [TYPE, descriptionMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.description); +}; +exports.default = [TYPE, descriptionMatches]; diff --git a/dist/src/conditions/index.js b/dist/src/conditions/index.js index 346f76f..b6fca7c 100644 --- a/dist/src/conditions/index.js +++ b/dist/src/conditions/index.js @@ -1,45 +1,45 @@ -'use strict' +'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __exportStar = (this && this.__exportStar) || function (m, exports) { for (var p in m) if (p !== 'default' && !exports.hasOwnProperty(p)) - __createBinding(exports, m, p) - } + __createBinding(exports, m, p); + }; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.handlers = void 0 -const creatorMatches_1 = __importDefault(require('./creatorMatches')) -const descriptionMatches_1 = __importDefault(require('./descriptionMatches')) -const isLocked_1 = __importDefault(require('./isLocked')) -const isOpen_1 = __importDefault(require('./isOpen')) -const titleMatches_1 = __importDefault(require('./titleMatches')) + return mod && mod.__esModule ? mod : { default: mod }; + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.handlers = void 0; +const creatorMatches_1 = __importDefault(require('./creatorMatches')); +const descriptionMatches_1 = __importDefault(require('./descriptionMatches')); +const isLocked_1 = __importDefault(require('./isLocked')); +const isOpen_1 = __importDefault(require('./isOpen')); +const titleMatches_1 = __importDefault(require('./titleMatches')); exports.handlers = [ creatorMatches_1.default, descriptionMatches_1.default, isLocked_1.default, isOpen_1.default, - titleMatches_1.default -] -__exportStar(require('./issue'), exports) -__exportStar(require('./pr'), exports) + titleMatches_1.default, +]; +__exportStar(require('./issue'), exports); +__exportStar(require('./pr'), exports); diff --git a/dist/src/conditions/isLocked.js b/dist/src/conditions/isLocked.js index 1cb89a8..edf2e4c 100644 --- a/dist/src/conditions/isLocked.js +++ b/dist/src/conditions/isLocked.js @@ -1,5 +1,5 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const TYPE = 'isLocked' -const isLocked = (condition, issue) => issue.locked === condition.value -exports.default = [TYPE, isLocked] +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const TYPE = 'isLocked'; +const isLocked = (condition, issue) => issue.locked === condition.value; +exports.default = [TYPE, isLocked]; diff --git a/dist/src/conditions/isOpen.js b/dist/src/conditions/isOpen.js index 89ed4a6..7ec9765 100644 --- a/dist/src/conditions/isOpen.js +++ b/dist/src/conditions/isOpen.js @@ -1,16 +1,16 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const utils_1 = require('../utils') -const TYPE = 'isOpen' -var States -;(function (States) { - States['Open'] = 'OPEN' - States['Closed'] = 'CLOSED' -})(States || (States = {})) +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const utils_1 = require('../utils'); +const TYPE = 'isOpen'; +var States; +(function (States) { + States['Open'] = 'OPEN'; + States['Closed'] = 'CLOSED'; +})(States || (States = {})); const isOpen = (condition, issue) => { return ( utils_1.normalize(issue.state) === utils_1.normalize(condition.value ? States.Open : States.Closed) - ) -} -exports.default = [TYPE, isOpen] + ); +}; +exports.default = [TYPE, isOpen]; diff --git a/dist/src/conditions/issue/index.js b/dist/src/conditions/issue/index.js index 43abd8e..df877e7 100644 --- a/dist/src/conditions/issue/index.js +++ b/dist/src/conditions/issue/index.js @@ -1,9 +1,9 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -exports.getIssueConditionHandler = void 0 -const __1 = require('../') -const handlers = [...__1.handlers] -exports.getIssueConditionHandler = condition => { - const handler = handlers.find(handler => handler[0] === condition.type) - return handler === null || handler === void 0 ? void 0 : handler[1] -} +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.getIssueConditionHandler = void 0; +const __1 = require('../'); +const handlers = [...__1.handlers]; +exports.getIssueConditionHandler = (condition) => { + const handler = handlers.find((handler) => handler[0] === condition.type); + return handler === null || handler === void 0 ? void 0 : handler[1]; +}; diff --git a/dist/src/conditions/pr/branchMatches.js b/dist/src/conditions/pr/branchMatches.js index 9883f60..a4a1d71 100644 --- a/dist/src/conditions/pr/branchMatches.js +++ b/dist/src/conditions/pr/branchMatches.js @@ -1,9 +1,9 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const utils_1 = require('../../utils') -const TYPE = 'branchMatches' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const utils_1 = require('../../utils'); +const TYPE = 'branchMatches'; const branchMatches = (condition, pr) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(pr.branch) -} -exports.default = [TYPE, branchMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(pr.branch); +}; +exports.default = [TYPE, branchMatches]; diff --git a/dist/src/conditions/pr/filesMatch.js b/dist/src/conditions/pr/filesMatch.js index 15253bd..1c144e7 100644 --- a/dist/src/conditions/pr/filesMatch.js +++ b/dist/src/conditions/pr/filesMatch.js @@ -1,7 +1,7 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const minimatch_1 = require('minimatch') -const TYPE = 'filesMatch' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const minimatch_1 = require('minimatch'); +const TYPE = 'filesMatch'; const filesMatch = (condition, pr) => - minimatch_1.match(pr.files, condition.glob).length > 0 -exports.default = [TYPE, filesMatch] + minimatch_1.match(pr.files, condition.glob).length > 0; +exports.default = [TYPE, filesMatch]; diff --git a/dist/src/conditions/pr/index.js b/dist/src/conditions/pr/index.js index d78e78c..0da88cc 100644 --- a/dist/src/conditions/pr/index.js +++ b/dist/src/conditions/pr/index.js @@ -1,22 +1,22 @@ -'use strict' +'use strict'; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.getPRConditionHandler = void 0 -const branchMatches_1 = __importDefault(require('./branchMatches')) -const filesMatch_1 = __importDefault(require('./filesMatch')) -const isDraft_1 = __importDefault(require('./isDraft')) -const __1 = require('../') + return mod && mod.__esModule ? mod : { default: mod }; + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.getPRConditionHandler = void 0; +const branchMatches_1 = __importDefault(require('./branchMatches')); +const filesMatch_1 = __importDefault(require('./filesMatch')); +const isDraft_1 = __importDefault(require('./isDraft')); +const __1 = require('../'); const handlers = [ ...__1.handlers, branchMatches_1.default, filesMatch_1.default, - isDraft_1.default -] -exports.getPRConditionHandler = condition => { - const handler = handlers.find(handler => handler[0] === condition.type) - return handler === null || handler === void 0 ? void 0 : handler[1] -} + isDraft_1.default, +]; +exports.getPRConditionHandler = (condition) => { + const handler = handlers.find((handler) => handler[0] === condition.type); + return handler === null || handler === void 0 ? void 0 : handler[1]; +}; diff --git a/dist/src/conditions/pr/isDraft.js b/dist/src/conditions/pr/isDraft.js index b31a25d..1503d4a 100644 --- a/dist/src/conditions/pr/isDraft.js +++ b/dist/src/conditions/pr/isDraft.js @@ -1,7 +1,7 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const TYPE = 'isDraft' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const TYPE = 'isDraft'; const isDraft = (condition, pr) => { - return pr.isDraft === condition.value -} -exports.default = [TYPE, isDraft] + return pr.isDraft === condition.value; +}; +exports.default = [TYPE, isDraft]; diff --git a/dist/src/conditions/titleMatches.js b/dist/src/conditions/titleMatches.js index 642eecc..6e88319 100644 --- a/dist/src/conditions/titleMatches.js +++ b/dist/src/conditions/titleMatches.js @@ -1,9 +1,9 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -const utils_1 = require('../utils') -const TYPE = 'titleMatches' +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +const utils_1 = require('../utils'); +const TYPE = 'titleMatches'; const titleMatches = (condition, issue) => { - const pattern = utils_1.processRegExpPattern(condition.pattern) - return pattern.test(issue.title) -} -exports.default = [TYPE, titleMatches] + const pattern = utils_1.processRegExpPattern(condition.pattern); + return pattern.test(issue.title); +}; +exports.default = [TYPE, titleMatches]; diff --git a/dist/src/index.js b/dist/src/index.js index 79476f0..f857b90 100644 --- a/dist/src/index.js +++ b/dist/src/index.js @@ -1,41 +1,41 @@ -'use strict' +'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { - Object.defineProperty(o, 'default', { enumerable: true, value: v }) + Object.defineProperty(o, 'default', { enumerable: true, value: v }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -43,114 +43,114 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; var __importDefault = (this && this.__importDefault) || function (mod) { - return mod && mod.__esModule ? mod : { default: mod } - } -Object.defineProperty(exports, '__esModule', { value: true }) -const fs_1 = __importDefault(require('fs')) -const path_1 = __importDefault(require('path')) -const core = __importStar(require('@actions/core')) -const github = __importStar(require('@actions/github')) -const applyLabels_1 = require('./applyLabels') -const parseContext_1 = require('./parseContext') -const syncLabels_1 = __importDefault(require('./syncLabels')) -const context = github.context -;(() => + return mod && mod.__esModule ? mod : { default: mod }; + }; +Object.defineProperty(exports, '__esModule', { value: true }); +const fs_1 = __importDefault(require('fs')); +const path_1 = __importDefault(require('path')); +const core = __importStar(require('@actions/core')); +const github = __importStar(require('@actions/github')); +const applyLabels_1 = require('./applyLabels'); +const parseContext_1 = require('./parseContext'); +const syncLabels_1 = __importDefault(require('./syncLabels')); +const context = github.context; +(() => __awaiter(void 0, void 0, void 0, function* () { try { // Get inputs - const token = core.getInput('github-token', { required: true }) + const token = core.getInput('github-token', { required: true }); const configPath = path_1.default.join( process.env.GITHUB_WORKSPACE, - core.getInput('config') - ) - const repo = context.repo - const client = new github.GitHub(token) + core.getInput('config'), + ); + const repo = context.repo; + const client = new github.GitHub(token); // Load config if (!fs_1.default.existsSync(configPath)) { - throw new Error(`config not found at "${configPath}"`) + throw new Error(`config not found at "${configPath}"`); } const config = JSON.parse( - fs_1.default.readFileSync(configPath).toString() - ) - core.debug(`Config: ${JSON.stringify(config)}`) - let curContext + fs_1.default.readFileSync(configPath).toString(), + ); + core.debug(`Config: ${JSON.stringify(config)}`); + let curContext; if (context.payload.pull_request) { - const ctx = yield parseContext_1.parsePRContext(context, client, repo) + const ctx = yield parseContext_1.parsePRContext(context, client, repo); if (!ctx) { - throw new Error('pull request not found on context') + throw new Error('pull request not found on context'); } - core.debug(`PR context: ${JSON.stringify(ctx)}`) + core.debug(`PR context: ${JSON.stringify(ctx)}`); curContext = { type: 'pr', - context: ctx - } + context: ctx, + }; } else if (context.payload.issue) { - const ctx = parseContext_1.parseIssueContext(context) + const ctx = parseContext_1.parseIssueContext(context); if (!ctx) { - throw new Error('issue not found on context') + throw new Error('issue not found on context'); } - core.debug(`issue context: ${JSON.stringify(ctx)}`) + core.debug(`issue context: ${JSON.stringify(ctx)}`); curContext = { type: 'issue', - context: ctx - } + context: ctx, + }; } else { - return + return; } - yield syncLabels_1.default({ client, repo, config: config.labels }) + yield syncLabels_1.default({ client, repo, config: config.labels }); // Mapping of label ids to Github names const labelIdToName = Object.entries(config.labels).reduce((acc, cur) => { - acc[cur[0]] = cur[1].name - return acc - }, {}) + acc[cur[0]] = cur[1].name; + return acc; + }, {}); if (curContext.type === 'pr') { yield applyLabels_1.applyPRLabels({ client, config: config.pr, labelIdToName, prContext: curContext.context, - repo - }) + repo, + }); } else if (curContext.type === 'issue') { yield applyLabels_1.applyIssueLabels({ client, config: config.issue, issueContext: curContext.context, labelIdToName, - repo - }) + repo, + }); } } catch (err) { - core.error(err.message) - core.setFailed(err.message) + core.error(err.message); + core.setFailed(err.message); } - }))() + }))(); diff --git a/dist/src/parseContext.js b/dist/src/parseContext.js index 7470d8f..a1fbd11 100644 --- a/dist/src/parseContext.js +++ b/dist/src/parseContext.js @@ -1,4 +1,4 @@ -'use strict' +'use strict'; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -6,44 +6,44 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -exports.parseIssueContext = exports.parsePRContext = void 0 -const api_1 = require('./api') + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.parseIssueContext = exports.parsePRContext = void 0; +const api_1 = require('./api'); exports.parsePRContext = (context, client, repo) => __awaiter(void 0, void 0, void 0, function* () { - const pr = context.payload.pull_request + const pr = context.payload.pull_request; if (!pr) { - return + return; } - const num = pr.number - const labels = parseLabels(pr.labels) - const files = yield api_1.listFiles({ client, repo, num }) + const num = pr.number; + const labels = parseLabels(pr.labels); + const files = yield api_1.listFiles({ client, repo, num }); return { labels, num, @@ -55,16 +55,16 @@ exports.parsePRContext = (context, client, repo) => isDraft: pr.draft, locked: pr.locked, state: pr.state, - title: pr.title - } - } - }) -exports.parseIssueContext = context => { - const issue = context.payload.issue + title: pr.title, + }, + }; + }); +exports.parseIssueContext = (context) => { + const issue = context.payload.issue; if (!issue) { - return + return; } - const labels = parseLabels(issue.labels) + const labels = parseLabels(issue.labels); return { labels, num: issue.number, @@ -73,19 +73,19 @@ exports.parseIssueContext = context => { description: issue.body || '', locked: issue.locked, state: issue.state, - title: issue.title - } - } -} -const parseLabels = labels => { + title: issue.title, + }, + }; +}; +const parseLabels = (labels) => { if (!Array.isArray(labels)) { - return [] + return []; } return labels.filter( - label => + (label) => typeof label === 'object' && 'name' in label && 'description' in label && - 'color' in label - ) -} + 'color' in label, + ); +}; diff --git a/dist/src/syncLabels.js b/dist/src/syncLabels.js index d903615..b957245 100644 --- a/dist/src/syncLabels.js +++ b/dist/src/syncLabels.js @@ -1,41 +1,41 @@ -'use strict' +'use strict'; var __createBinding = (this && this.__createBinding) || (Object.create ? function (o, m, k, k2) { - if (k2 === undefined) k2 = k + if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function () { - return m[k] - } - }) + return m[k]; + }, + }); } : function (o, m, k, k2) { - if (k2 === undefined) k2 = k - o[k2] = m[k] - }) + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? function (o, v) { - Object.defineProperty(o, 'default', { enumerable: true, value: v }) + Object.defineProperty(o, 'default', { enumerable: true, value: v }); } : function (o, v) { - o['default'] = v - }) + o['default'] = v; + }); var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod - var result = {} + if (mod && mod.__esModule) return mod; + var result = {}; if (mod != null) for (var k in mod) if (k !== 'default' && Object.hasOwnProperty.call(mod, k)) - __createBinding(result, mod, k) - __setModuleDefault(result, mod) - return result - } + __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { @@ -43,66 +43,66 @@ var __awaiter = return value instanceof P ? value : new P(function (resolve) { - resolve(value) - }) + resolve(value); + }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { - step(generator.next(value)) + step(generator.next(value)); } catch (e) { - reject(e) + reject(e); } } function rejected(value) { try { - step(generator['throw'](value)) + step(generator['throw'](value)); } catch (e) { - reject(e) + reject(e); } } function step(result) { result.done ? resolve(result.value) - : adopt(result.value).then(fulfilled, rejected) + : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()) - }) - } -Object.defineProperty(exports, '__esModule', { value: true }) -const core = __importStar(require('@actions/core')) -const api_1 = require('./api') -const utils_1 = require('./utils') + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; +Object.defineProperty(exports, '__esModule', { value: true }); +const core = __importStar(require('@actions/core')); +const api_1 = require('./api'); +const utils_1 = require('./utils'); const syncLabels = ({ client, config, repo }) => __awaiter(void 0, void 0, void 0, function* () { - const curLabels = yield api_1.getLabels({ client, repo }) - core.debug(`curLabels: ${JSON.stringify(curLabels)}`) + const curLabels = yield api_1.getLabels({ client, repo }); + core.debug(`curLabels: ${JSON.stringify(curLabels)}`); for (const _configLabel of Object.values(config)) { const configLabel = Object.assign(Object.assign({}, _configLabel), { - color: _configLabel.colour - }) - const curLabel = curLabels.filter(l => l.name === configLabel.name) + color: _configLabel.colour, + }); + const curLabel = curLabels.filter((l) => l.name === configLabel.name); if (curLabel.length > 0) { - const label = curLabel[0] + const label = curLabel[0]; if ( label.description !== configLabel.description || label.color !== utils_1.formatColour(configLabel.color) ) { core.debug( `Recreate ${JSON.stringify(configLabel)} (prev: ${JSON.stringify( - label - )})` - ) - yield api_1.updateLabel({ client, repo, label: configLabel }) + label, + )})`, + ); + yield api_1.updateLabel({ client, repo, label: configLabel }); } } else { try { - core.debug(`Create ${JSON.stringify(configLabel)}`) - yield api_1.createLabel({ client, repo, label: configLabel }) + core.debug(`Create ${JSON.stringify(configLabel)}`); + yield api_1.createLabel({ client, repo, label: configLabel }); } catch (_) { - core.debug('Label Creation failed: ' + _) + core.debug('Label Creation failed: ' + _); } } } - }) -exports.default = syncLabels + }); +exports.default = syncLabels; diff --git a/dist/src/utils.js b/dist/src/utils.js index cc4fdb9..57fbafb 100644 --- a/dist/src/utils.js +++ b/dist/src/utils.js @@ -1,15 +1,15 @@ -'use strict' -Object.defineProperty(exports, '__esModule', { value: true }) -exports.processRegExpPattern = exports.formatColour = void 0 -exports.formatColour = colour => { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); +exports.processRegExpPattern = exports.formatColour = void 0; +exports.formatColour = (colour) => { if (colour.charAt(0) === '#') { - return colour.substr(1) + return colour.substr(1); } else { - return colour + return colour; } -} -exports.processRegExpPattern = pattern => { - const matchDelimiters = pattern.match(/^\/(.*)\/(.*)$/) - const [, source, flags] = matchDelimiters || [] - return new RegExp(source || pattern, flags) -} +}; +exports.processRegExpPattern = (pattern) => { + const matchDelimiters = pattern.match(/^\/(.*)\/(.*)$/); + const [, source, flags] = matchDelimiters || []; + return new RegExp(source || pattern, flags); +};