From 2845a93f4c56358faedd9562bc887a1716995565 Mon Sep 17 00:00:00 2001 From: Robert Date: Mon, 22 Jun 2020 11:27:50 +0100 Subject: [PATCH 01/38] Fixing sorting of PRs --- .github/update-release-branch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 2297ee596..15620495e 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -45,8 +45,8 @@ def open_pr(repo, all_commits, short_master_sha, branch_name): print('Found ' + str(len(commits_without_pull_requests)) + ' commits not in a pull request') # Sort PRs and commits by age - sorted(pull_requests, key=lambda pr: pr.number) - sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date) + pull_requests = sorted(pull_requests, key=lambda pr: pr.number) + commits_without_pull_requests = sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date) # Start constructing the body text body = 'Merging ' + short_master_sha + ' into ' + LATEST_RELEASE_BRANCH From d55f711b71277784f6e38b9a42c7016f31561644 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 13:27:03 +0200 Subject: [PATCH 02/38] introduce inputs.threads flag to analyze action --- analyze/action.yml | 7 ++++- lib/finalize-db.js | 18 ++++++++++++ lib/finalize-db.js.map | 2 +- lib/finalize-db.test.js | 53 +++++++++++++++++++++++++++++++++ lib/finalize-db.test.js.map | 1 + src/finalize-db.test.ts | 58 +++++++++++++++++++++++++++++++++++++ src/finalize-db.ts | 39 ++++++++++++++++++------- 7 files changed, 165 insertions(+), 13 deletions(-) create mode 100644 lib/finalize-db.test.js create mode 100644 lib/finalize-db.test.js.map create mode 100644 src/finalize-db.test.ts diff --git a/analyze/action.yml b/analyze/action.yml index 17a374299..fa21a7515 100644 --- a/analyze/action.yml +++ b/analyze/action.yml @@ -4,6 +4,7 @@ author: 'GitHub' inputs: check_name: description: The name of the check run to add text to. + required: false output: description: The path of the directory in which to save the SARIF results required: false @@ -11,10 +12,14 @@ inputs: upload: description: Upload the SARIF file required: false - default: true + default: "true" ram: description: Override the amount of memory in MB to be used by CodeQL. By default, almost all the memory of the machine is used. required: false + threads: + description: The number of threads to be used by CodeQL. + required: false + default: "1" token: default: ${{ github.token }} matrix: diff --git a/lib/finalize-db.js b/lib/finalize-db.js index 5386028f2..5900409d5 100644 --- a/lib/finalize-db.js +++ b/lib/finalize-db.js @@ -54,6 +54,23 @@ function getMemoryFlag() { } return "--ram=" + Math.floor(memoryToUseMegaBytes); } +exports.getMemoryFlag = getMemoryFlag; +function getThreadsFlag() { + let numThreads = 1; + const numThreadsString = core.getInput("threads"); + if (numThreadsString) { + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads) || numThreads < 0) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } + } + return `--threads=${numThreads}`; +} +exports.getThreadsFlag = getThreadsFlag; async function createdDBForScannedLanguages(codeqlCmd, databaseFolder) { const scannedLanguages = process.env[sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES]; if (scannedLanguages) { @@ -164,6 +181,7 @@ async function runQueries(codeqlCmd, databaseFolder, sarifFolder, config) { 'database', 'analyze', getMemoryFlag(), + getThreadsFlag(), path.join(databaseFolder, database), '--format=sarif-latest', '--output=' + sarifFile, diff --git a/lib/finalize-db.js.map b/lib/finalize-db.js.map index ad00d3765..97e6831b3 100644 --- a/lib/finalize-db.js.map +++ b/lib/finalize-db.js.map @@ -1 +1 @@ -{"version":3,"file":"finalize-db.js","sourceRoot":"","sources":["../src/finalize-db.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,gEAAkD;AAClD,yDAA2C;AAC3C,6CAA+B;AAE/B;;;;;;;;GAQG;AACH,MAAM,wBAAwB,GAAmC;IAC/D,QA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C,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACpE,OAAO;KACR;IAED,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,yBAAyB,GAAG,CAAC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/finalize-db.test.js b/lib/finalize-db.test.js new file mode 100644 index 000000000..9af9f1e1d --- /dev/null +++ b/lib/finalize-db.test.js @@ -0,0 +1,53 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var __importStar = (this && this.__importStar) || function (mod) { + 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 ava_1 = __importDefault(require("ava")); +const os = __importStar(require("os")); +const finalize_db_1 = require("./finalize-db"); +ava_1.default('getMemoryFlag() should return the correct --ram flag', t => { + const totalMem = os.totalmem() / (1024 * 1024); + const tests = { + "": `--ram=${totalMem - 256}`, + "512": "--ram=512", + }; + for (const [input, expectedFlag] of Object.entries(tests)) { + process.env['INPUT_RAM'] = input; + const flag = finalize_db_1.getMemoryFlag(); + t.deepEqual(flag, expectedFlag); + } +}); +ava_1.default('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_RAM'] = input; + t.throws(finalize_db_1.getMemoryFlag); + } +}); +ava_1.default('getThreadsFlag() should return the correct --threads flag', t => { + const numCpus = os.cpus().length; + const tests = { + "0": "--threads=0", + "1": "--threads=1", + [`${numCpus + 1}`]: `--threads=${numCpus}` + }; + for (const [input, expectedFlag] of Object.entries(tests)) { + process.env['INPUT_THREADS'] = input; + const flag = finalize_db_1.getThreadsFlag(); + t.deepEqual(flag, expectedFlag); + } +}); +ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_THREADS'] = input; + t.throws(finalize_db_1.getThreadsFlag); + } +}); +//# sourceMappingURL=finalize-db.test.js.map \ No newline at end of file diff --git a/lib/finalize-db.test.js.map b/lib/finalize-db.test.js.map new file mode 100644 index 000000000..cc79c3bd1 --- /dev/null +++ b/lib/finalize-db.test.js.map @@ -0,0 +1 @@ +{"version":3,"file":"finalize-db.test.js","sourceRoot":"","sources":["../src/finalize-db.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,+CAGuB;AAEvB,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EAAE;IAE7D,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG;QACV,EAAE,EAAE,SAAS,QAAQ,GAAG,GAAG,EAAE;QAC7B,KAAK,EAAE,WAAW;KACrB,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEvD,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAEjC,MAAM,IAAI,GAAG,2BAAa,EAAE,CAAC;QAC7B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,uDAAuD,EAAE,CAAC,CAAC,EAAE;IAC9D,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QACjC,CAAC,CAAC,MAAM,CAAC,2BAAa,CAAC,CAAC;KAC3B;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,2DAA2D,EAAE,CAAC,CAAC,EAAE;IAElE,MAAM,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;IAEjC,MAAM,KAAK,GAAG;QACV,GAAG,EAAE,aAAa;QAClB,GAAG,EAAE,aAAa;QAClB,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,CAAC,EAAE,aAAa,OAAO,EAAE;KAC7C,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEvD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,4BAAc,EAAE,CAAC;QAC9B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IAC/D,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,4BAAc,CAAC,CAAC;KAC5B;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/finalize-db.test.ts b/src/finalize-db.test.ts new file mode 100644 index 000000000..94472a7bc --- /dev/null +++ b/src/finalize-db.test.ts @@ -0,0 +1,58 @@ +import test from "ava"; +import * as os from "os"; + +import { + getMemoryFlag, + getThreadsFlag +} from "./finalize-db"; + +test('getMemoryFlag() should return the correct --ram flag', t => { + + const totalMem = os.totalmem() / (1024 * 1024); + + const tests = { + "": `--ram=${totalMem - 256}`, + "512": "--ram=512", + }; + + for (const [input, expectedFlag] of Object.entries(tests)) { + + process.env['INPUT_RAM'] = input; + + const flag = getMemoryFlag(); + t.deepEqual(flag, expectedFlag); + } +}); + +test('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_RAM'] = input; + t.throws(getMemoryFlag); + } +}); + +test('getThreadsFlag() should return the correct --threads flag', t => { + + const numCpus = os.cpus().length; + + const tests = { + "0": "--threads=0", + "1": "--threads=1", + [`${numCpus + 1}`]: `--threads=${numCpus}` + }; + + for (const [input, expectedFlag] of Object.entries(tests)) { + + process.env['INPUT_THREADS'] = input; + + const flag = getThreadsFlag(); + t.deepEqual(flag, expectedFlag); + } +}); + +test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_THREADS'] = input; + t.throws(getThreadsFlag); + } +}); diff --git a/src/finalize-db.ts b/src/finalize-db.ts index 33c66008b..1d39100c1 100644 --- a/src/finalize-db.ts +++ b/src/finalize-db.ts @@ -20,7 +20,7 @@ import * as util from './util'; * * Format is a map from language to an array of path suffixes of .ql files. */ -const DISABLED_BUILTIN_QUERIES: {[language: string]: string[]} = { +const DISABLED_BUILTIN_QUERIES: { [language: string]: string[]; } = { 'csharp': [ 'ql/src/Security Features/CWE-937/VulnerablePackage.ql', 'ql/src/Security Features/CWE-451/MissingXFrameOptions.ql', @@ -32,7 +32,7 @@ function queryIsDisabled(language, query): boolean { .some(disabledQuery => query.endsWith(disabledQuery)); } -function getMemoryFlag(): string { +export function getMemoryFlag(): string { let memoryToUseMegaBytes: number; const memoryToUseString = core.getInput("ram"); if (memoryToUseString) { @@ -49,6 +49,22 @@ function getMemoryFlag(): string { return "--ram=" + Math.floor(memoryToUseMegaBytes); } +export function getThreadsFlag(): string { + let numThreads = 1; + const numThreadsString = core.getInput("threads"); + if (numThreadsString) { + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads) || numThreads < 0) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } + } + return `--threads=${numThreads}`; +} + async function createdDBForScannedLanguages(codeqlCmd: string, databaseFolder: string) { const scannedLanguages = process.env[sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES]; if (scannedLanguages) { @@ -93,14 +109,14 @@ async function finalizeDatabaseCreation(codeqlCmd: string, databaseFolder: strin interface ResolveQueriesOutput { byLanguage: { [language: string]: { - [queryPath: string]: {} - } + [queryPath: string]: {}; + }; }; noDeclaredLanguage: { - [queryPath: string]: {} + [queryPath: string]: {}; }; multipleDeclaredLanguages: { - [queryPath: string]: {} + [queryPath: string]: {}; }; } @@ -116,11 +132,11 @@ async function runResolveQueries(codeqlCmd: string, queries: string[]): Promise< await exec.exec( codeqlCmd, [ - 'resolve', - 'queries', - ...queries, - '--format=bylanguage' - ], + 'resolve', + 'queries', + ...queries, + '--format=bylanguage' + ], options); return JSON.parse(output); @@ -201,6 +217,7 @@ async function runQueries(codeqlCmd: string, databaseFolder: string, sarifFolder 'database', 'analyze', getMemoryFlag(), + getThreadsFlag(), path.join(databaseFolder, database), '--format=sarif-latest', '--output=' + sarifFile, From f4001a0790aabc1657949daacca3504782f6a4a7 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 13:28:23 +0200 Subject: [PATCH 03/38] update dependencies --- node_modules/@actions/core/package.json | 4 + node_modules/@actions/exec/package.json | 4 + .../node_modules/tunnel/package.json | 4 + .../@actions/http-client/package.json | 4 + node_modules/@actions/io/package.json | 4 + .../node_modules/@actions/core/package.json | 4 + .../node_modules/semver/package.json | 4 + node_modules/@actions/tool-cache/package.json | 4 + .../escape-string-regexp/package.json | 86 ++-- node_modules/@ava/typescript/package.json | 4 + node_modules/@babel/code-frame/package.json | 4 + node_modules/@babel/highlight/package.json | 4 + .../react/node_modules/arrify/package.json | 4 + node_modules/@concordance/react/package.json | 4 + node_modules/@nodelib/fs.scandir/package.json | 4 + node_modules/@nodelib/fs.stat/package.json | 4 + node_modules/@nodelib/fs.walk/package.json | 4 + node_modules/@octokit/auth-token/package.json | 4 + node_modules/@octokit/core/package.json | 4 + node_modules/@octokit/endpoint/package.json | 4 + .../universal-user-agent/package.json | 4 + node_modules/@octokit/graphql/package.json | 4 + .../plugin-paginate-rest/package.json | 4 + .../@octokit/plugin-request-log/package.json | 4 + .../plugin-rest-endpoint-methods/package.json | 4 + .../@octokit/request-error/package.json | 4 + node_modules/@octokit/request/package.json | 4 + node_modules/@octokit/rest/package.json | 4 + node_modules/@octokit/types/package.json | 4 + node_modules/@sindresorhus/is/package.json | 126 ++--- .../@szmarczak/http-timer/package.json | 94 ++-- node_modules/@types/color-name/package.json | 46 +- node_modules/@types/events/package.json | 54 +- node_modules/@types/glob/package.json | 68 +-- node_modules/@types/jszip/package.json | 60 +-- node_modules/@types/long/package.json | 44 +- node_modules/@types/minimatch/package.json | 52 +- node_modules/@types/nock/package.json | 28 +- node_modules/@types/node/package.json | 462 +++++++++--------- .../normalize-package-data/package.json | 44 +- node_modules/@types/semver/package.json | 98 ++-- node_modules/acorn/package.json | 12 +- node_modules/aggregate-error/package.json | 82 ++-- .../node_modules/emoji-regex/package.json | 4 + .../is-fullwidth-code-point/package.json | 4 + .../node_modules/string-width/package.json | 112 +++-- .../node_modules/strip-ansi/package.json | 108 ++-- node_modules/ansi-align/package.json | 4 + node_modules/ansi-regex/package.json | 106 ++-- node_modules/ansi-styles/package.json | 112 +++-- node_modules/argparse/package.json | 4 + node_modules/array-find-index/package.json | 4 + node_modules/array-union/package.json | 76 +-- node_modules/arrgv/package.json | 4 + node_modules/arrify/package.json | 70 +-- .../ava/node_modules/acorn-walk/package.json | 8 +- .../ava/node_modules/ansi-styles/package.json | 114 ++--- .../ava/node_modules/chalk/package.json | 136 +++--- .../node_modules/color-convert/package.json | 4 + .../ava/node_modules/color-name/package.json | 58 ++- .../escape-string-regexp/package.json | 86 ++-- .../ava/node_modules/has-flag/package.json | 92 ++-- .../source-map-support/package.json | 4 + .../ava/node_modules/stack-utils/package.json | 4 + .../node_modules/supports-color/package.json | 106 ++-- node_modules/ava/package.json | 280 +++++------ node_modules/balanced-match/package.json | 4 + node_modules/before-after-hook/package.json | 4 + node_modules/binary-extensions/package.json | 76 +-- node_modules/blueimp-md5/package.json | 4 + .../node_modules/ansi-styles/package.json | 114 ++--- .../boxen/node_modules/chalk/package.json | 126 ++--- .../node_modules/color-convert/package.json | 4 + .../node_modules/color-name/package.json | 58 ++- .../boxen/node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- .../boxen/node_modules/type-fest/package.json | 102 ++-- node_modules/boxen/package.json | 102 ++-- node_modules/brace-expansion/package.json | 4 + node_modules/braces/package.json | 4 + node_modules/buffer-from/package.json | 4 + node_modules/builtin-modules/package.json | 4 + .../node_modules/get-stream/package.json | 98 ++-- .../node_modules/lowercase-keys/package.json | 76 +-- node_modules/cacheable-request/package.json | 112 +++-- node_modules/callsites/package.json | 78 +-- node_modules/camelcase/package.json | 86 ++-- node_modules/chalk/package.json | 142 +++--- node_modules/charenc/package.json | 4 + .../node_modules/anymatch/package.json | 4 + .../node_modules/normalize-path/package.json | 4 + node_modules/chokidar/package.json | 4 + node_modules/chunkd/package.json | 108 ++-- node_modules/ci-info/package.json | 4 + node_modules/ci-parallel-vars/package.json | 4 + node_modules/clean-stack/package.json | 78 +-- node_modules/clean-yaml-object/package.json | 4 + node_modules/cli-boxes/package.json | 82 ++-- node_modules/cli-cursor/package.json | 92 ++-- node_modules/cli-spinners/package.json | 94 ++-- node_modules/cli-truncate/package.json | 92 ++-- node_modules/cliui/package.json | 4 + node_modules/clone-response/package.json | 4 + node_modules/clone/package.json | 4 + node_modules/code-excerpt/package.json | 4 + node_modules/color-convert/package.json | 4 + node_modules/color-name/package.json | 4 + node_modules/commander/package.json | 4 + node_modules/common-path-prefix/package.json | 4 + node_modules/concat-map/package.json | 100 ++-- .../node_modules/md5-hex/package.json | 4 + .../node_modules/semver/package.json | 4 + node_modules/concordance/package.json | 4 + node_modules/configstore/package.json | 92 ++-- node_modules/console-log-level/package.json | 4 + node_modules/convert-source-map/package.json | 4 + node_modules/convert-to-spaces/package.json | 4 + .../node_modules/semver/package.json | 4 + node_modules/cross-spawn/package.json | 4 + node_modules/crypt/package.json | 4 + .../crypto-random-string/package.json | 80 +-- node_modules/currently-unhandled/package.json | 4 + node_modules/date-time/package.json | 4 + node_modules/debug/package.json | 4 + node_modules/decamelize/package.json | 4 + node_modules/decompress-response/package.json | 4 + node_modules/deep-extend/package.json | 4 + node_modules/defaults/package.json | 4 + node_modules/defer-to-connect/package.json | 12 +- .../del/node_modules/globby/package.json | 166 ++++--- .../del/node_modules/p-map/package.json | 104 ++-- node_modules/del/package.json | 130 ++--- node_modules/deprecation/package.json | 4 + node_modules/diff/package.json | 4 + node_modules/dir-glob/package.json | 76 +-- node_modules/dot-prop/package.json | 90 ++-- node_modules/duplexer3/package.json | 6 +- node_modules/emittery/package.json | 134 ++--- node_modules/emoji-regex/package.json | 4 + node_modules/end-of-stream/package.json | 4 + node_modules/equal-length/package.json | 4 + node_modules/error-ex/package.json | 4 + node_modules/escape-goat/package.json | 90 ++-- .../escape-string-regexp/package.json | 4 + node_modules/esutils/package.json | 4 + node_modules/execa/package.json | 138 +++--- node_modules/fast-diff/package.json | 4 + node_modules/fast-glob/package.json | 4 + node_modules/fastq/package.json | 4 + node_modules/figures/package.json | 90 ++-- node_modules/file-url/package.json | 70 +-- node_modules/fill-range/package.json | 4 + node_modules/find-up/package.json | 106 ++-- node_modules/fs.realpath/package.json | 4 + node_modules/fs/package.json | 4 + node_modules/fsevents/package.json | 4 + node_modules/get-caller-file/package.json | 4 + node_modules/get-stream/package.json | 92 ++-- node_modules/glob-parent/package.json | 4 + node_modules/glob/package.json | 4 + node_modules/global-dirs/package.json | 110 +++-- node_modules/globby/package.json | 164 ++++--- node_modules/got/package.json | 148 +++--- node_modules/graceful-fs/package.json | 4 + node_modules/has-flag/package.json | 4 + node_modules/has-yarn/package.json | 78 +-- node_modules/hosted-git-info/package.json | 4 + .../http-cache-semantics/package.json | 48 +- node_modules/ignore-by-default/package.json | 4 + node_modules/ignore/package.json | 4 + node_modules/import-lazy/package.json | 4 + node_modules/import-local/package.json | 102 ++-- node_modules/imurmurhash/package.json | 10 +- node_modules/indent-string/package.json | 74 +-- node_modules/inflight/package.json | 4 + node_modules/inherits/package.json | 4 + node_modules/ini/package.json | 4 + node_modules/irregular-plurals/package.json | 92 ++-- node_modules/is-arrayish/package.json | 4 + node_modules/is-binary-path/package.json | 80 +-- node_modules/is-buffer/package.json | 4 + node_modules/is-ci/package.json | 4 + node_modules/is-error/package.json | 7 +- node_modules/is-extglob/package.json | 4 + .../is-fullwidth-code-point/package.json | 84 ++-- node_modules/is-glob/package.json | 4 + .../is-installed-globally/package.json | 108 ++-- node_modules/is-interactive/package.json | 76 +-- node_modules/is-npm/package.json | 74 +-- node_modules/is-number/package.json | 4 + node_modules/is-obj/package.json | 68 +-- node_modules/is-path-cwd/package.json | 72 +-- node_modules/is-path-inside/package.json | 72 +-- node_modules/is-plain-object/package.json | 4 + node_modules/is-promise/package.json | 4 + node_modules/is-stream/package.json | 4 + node_modules/is-typedarray/package.json | 4 + node_modules/is-yarn-global/package.json | 4 + node_modules/isexe/package.json | 4 + node_modules/isobject/package.json | 4 + node_modules/js-string-escape/package.json | 6 +- node_modules/js-tokens/package.json | 4 + .../js-yaml/node_modules/esprima/package.json | 4 + node_modules/js-yaml/package.json | 4 + node_modules/json-buffer/package.json | 4 + .../json-parse-better-errors/package.json | 4 + node_modules/json-stringify-safe/package.json | 4 + node_modules/jsonschema/package.json | 4 + node_modules/keyv/package.json | 4 + node_modules/latest-version/package.json | 84 ++-- node_modules/lines-and-columns/package.json | 4 + .../node_modules/strip-bom/package.json | 4 + .../node_modules/type-fest/package.json | 98 ++-- node_modules/load-json-file/package.json | 86 ++-- node_modules/locate-path/package.json | 90 ++-- node_modules/lodash.clonedeep/package.json | 8 +- node_modules/lodash.flattendeep/package.json | 8 +- node_modules/lodash.islength/package.json | 8 +- node_modules/lodash.merge/package.json | 8 +- node_modules/lodash/package.json | 8 +- node_modules/log-symbols/package.json | 100 ++-- node_modules/long/package.json | 68 +-- node_modules/lowercase-keys/package.json | 4 + node_modules/macos-release/package.json | 78 +-- .../make-dir/node_modules/semver/package.json | 4 + node_modules/make-dir/package.json | 118 ++--- node_modules/map-age-cleaner/package.json | 118 ++--- .../escape-string-regexp/package.json | 76 +-- node_modules/matcher/package.json | 108 ++-- node_modules/md5-hex/package.json | 82 ++-- node_modules/md5-o-matic/package.json | 10 +- node_modules/md5/package.json | 4 + .../mem/node_modules/mimic-fn/package.json | 84 ++-- node_modules/mem/package.json | 92 ++-- node_modules/merge2/package.json | 88 ++-- node_modules/micromatch/package.json | 4 + node_modules/mimic-fn/package.json | 84 ++-- node_modules/mimic-response/package.json | 4 + node_modules/minimatch/package.json | 4 + node_modules/minimist/package.json | 4 + node_modules/mkdirp/package.json | 4 + node_modules/ms/package.json | 4 + node_modules/mute-stream/package.json | 4 + node_modules/nice-try/package.json | 4 + node_modules/nock/package.json | 4 + node_modules/node-fetch/package.json | 4 + .../node_modules/semver/package.json | 4 + .../normalize-package-data/package.json | 4 + node_modules/normalize-url/package.json | 88 ++-- node_modules/npm-run-path/package.json | 4 + node_modules/once/package.json | 4 + node_modules/onetime/package.json | 84 ++-- .../ora/node_modules/ansi-styles/package.json | 114 ++--- .../ora/node_modules/chalk/package.json | 126 ++--- .../node_modules/color-convert/package.json | 4 + .../ora/node_modules/color-name/package.json | 58 ++- .../ora/node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- node_modules/ora/package.json | 112 +++-- node_modules/os-name/package.json | 90 ++-- node_modules/p-cancelable/package.json | 98 ++-- node_modules/p-defer/package.json | 4 + node_modules/p-finally/package.json | 4 + node_modules/p-limit/package.json | 102 ++-- node_modules/p-locate/package.json | 106 ++-- node_modules/p-map/package.json | 106 ++-- node_modules/p-try/package.json | 84 ++-- .../node_modules/semver/package.json | 4 + node_modules/package-json/package.json | 92 ++-- node_modules/parse-json/package.json | 4 + node_modules/parse-ms/package.json | 80 +-- node_modules/path-exists/package.json | 78 +-- node_modules/path-is-absolute/package.json | 4 + node_modules/path-key/package.json | 4 + node_modules/path-parse/package.json | 4 + node_modules/path-type/package.json | 90 ++-- node_modules/path/package.json | 50 +- node_modules/picomatch/package.json | 4 + node_modules/pify/package.json | 102 ++-- .../node_modules/find-up/package.json | 100 ++-- .../node_modules/locate-path/package.json | 88 ++-- .../node_modules/p-locate/package.json | 102 ++-- .../node_modules/path-exists/package.json | 4 + node_modules/pkg-conf/package.json | 102 ++-- node_modules/pkg-dir/package.json | 112 +++-- node_modules/plur/package.json | 86 ++-- node_modules/prepend-http/package.json | 4 + node_modules/pretty-ms/package.json | 98 ++-- node_modules/process/package.json | 4 + node_modules/propagate/package.json | 4 + node_modules/pump/package.json | 4 + node_modules/pupa/package.json | 94 ++-- node_modules/rc/package.json | 4 + .../node_modules/parse-json/package.json | 88 ++-- .../node_modules/type-fest/package.json | 102 ++-- node_modules/read-pkg/package.json | 98 ++-- node_modules/readdirp/package.json | 4 + node_modules/registry-auth-token/package.json | 4 + node_modules/registry-url/package.json | 88 ++-- .../removeNPMAbsolutePaths/package.json | 4 + node_modules/require-directory/package.json | 4 + .../require-main-filename/package.json | 4 + node_modules/resolve-cwd/package.json | 86 ++-- node_modules/resolve-from/package.json | 72 +-- node_modules/resolve/package.json | 94 ++-- .../test/module_dir/zmodules/bbb/package.json | 2 +- .../resolve/test/resolver/baz/package.json | 4 +- .../test/resolver/browser_field/package.json | 2 +- .../test/resolver/dot_main/package.json | 4 +- .../test/resolver/dot_slash_main/package.json | 4 +- .../test/resolver/incorrect_main/package.json | 4 +- .../test/resolver/invalid_main/package.json | 2 +- .../test/resolver/multirepo/package.json | 2 +- .../multirepo/packages/package-a/package.json | 2 +- .../multirepo/packages/package-b/package.json | 2 +- .../nested_symlinks/mylib/package.json | 2 +- .../resolver/symlinked/package/package.json | 2 +- node_modules/responselike/package.json | 4 + node_modules/restore-cursor/package.json | 104 ++-- node_modules/reusify/package.json | 4 + node_modules/rimraf/package.json | 4 + node_modules/run-parallel/package.json | 4 + node_modules/safe-buffer/package.json | 4 + .../node_modules/semver/package.json | 4 + node_modules/semver-diff/package.json | 74 +-- node_modules/semver/package.json | 4 + node_modules/serialize-error/package.json | 4 + node_modules/set-blocking/package.json | 4 + node_modules/shebang-command/package.json | 4 + node_modules/shebang-regex/package.json | 4 + node_modules/signal-exit/package.json | 4 + node_modules/slash/package.json | 70 +-- .../node_modules/ansi-styles/package.json | 114 ++--- .../node_modules/astral-regex/package.json | 66 +-- .../node_modules/color-convert/package.json | 4 + .../node_modules/color-name/package.json | 58 ++- node_modules/slice-ansi/package.json | 102 ++-- node_modules/source-map/package.json | 4 + node_modules/spdx-correct/package.json | 4 + node_modules/spdx-exceptions/package.json | 4 + .../spdx-expression-parse/package.json | 4 + node_modules/spdx-license-ids/package.json | 78 +-- node_modules/sprintf-js/package.json | 44 +- node_modules/string-width/package.json | 112 +++-- .../node_modules/ansi-regex/package.json | 110 +++-- node_modules/strip-ansi/package.json | 108 ++-- node_modules/strip-eof/package.json | 4 + node_modules/strip-json-comments/package.json | 4 + .../node_modules/ansi-regex/package.json | 4 + .../supertap/node_modules/arrify/package.json | 4 + .../node_modules/indent-string/package.json | 4 + .../node_modules/strip-ansi/package.json | 4 + node_modules/supertap/package.json | 4 + node_modules/supports-color/package.json | 106 ++-- node_modules/temp-dir/package.json | 82 ++-- node_modules/term-size/package.json | 86 ++-- node_modules/time-zone/package.json | 4 + node_modules/to-readable-stream/package.json | 80 +-- node_modules/to-regex-range/package.json | 4 + node_modules/trim-off-newlines/package.json | 4 + node_modules/tslib/package.json | 58 ++- .../tslint/node_modules/semver/package.json | 4 + node_modules/tslint/package.json | 186 +++---- node_modules/tsutils/package.json | 4 + .../typedarray-to-buffer/package.json | 4 + node_modules/typescript/package.json | 268 +++++----- node_modules/unique-string/package.json | 80 +-- .../universal-user-agent/package.json | 4 + .../node_modules/ansi-styles/package.json | 114 ++--- .../node_modules/chalk/package.json | 126 ++--- .../node_modules/color-convert/package.json | 4 + .../node_modules/color-name/package.json | 58 ++- .../node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- node_modules/update-notifier/package.json | 128 ++--- node_modules/url-parse-lax/package.json | 4 + node_modules/util/package.json | 4 + node_modules/uuid/package.json | 4 + .../validate-npm-package-license/package.json | 4 + node_modules/wcwidth/package.json | 4 + node_modules/well-known-symbols/package.json | 4 + node_modules/which-module/package.json | 4 + node_modules/which/package.json | 4 + node_modules/widest-line/package.json | 108 ++-- node_modules/windows-release/package.json | 86 ++-- .../node_modules/ansi-styles/package.json | 114 ++--- .../node_modules/color-convert/package.json | 4 + .../node_modules/color-name/package.json | 58 ++- node_modules/wrap-ansi/package.json | 122 ++--- node_modules/wrappy/package.json | 4 + node_modules/write-file-atomic/package.json | 4 + node_modules/xdg-basedir/package.json | 82 ++-- node_modules/y18n/package.json | 4 + node_modules/yargs-parser/package.json | 4 + node_modules/yargs/package.json | 4 + node_modules/zlib/package.json | 38 +- 396 files changed, 9072 insertions(+), 7569 deletions(-) diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index ac8962e99..f0c526e1c 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -35,4 +35,8 @@ "devDependencies": { "@types/node": "^12.0.2" } + +,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz" +,"_integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==" +,"_from": "@actions/core@1.2.0" } \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json index 5255e599d..bb85262a2 100644 --- a/node_modules/@actions/exec/package.json +++ b/node_modules/@actions/exec/package.json @@ -35,4 +35,8 @@ "@actions/io": "^1.0.1" }, "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" + +,"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz" +,"_integrity": "sha512-nvFkxwiicvpzNiCBF4wFBDfnBvi7xp/as7LE1hBxBxKG2L29+gkIPBiLKMVORL+Hg3JNf07AKRfl0V5djoypjQ==" +,"_from": "@actions/exec@1.0.1" } \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/package.json b/node_modules/@actions/http-client/node_modules/tunnel/package.json index 27cce6b48..eef71891b 100644 --- a/node_modules/@actions/http-client/node_modules/tunnel/package.json +++ b/node_modules/@actions/http-client/node_modules/tunnel/package.json @@ -31,4 +31,8 @@ "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } + +,"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz" +,"_integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" +,"_from": "tunnel@0.0.6" } \ No newline at end of file diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json index fbfec5f9d..4c7296d59 100644 --- a/node_modules/@actions/http-client/package.json +++ b/node_modules/@actions/http-client/package.json @@ -36,4 +36,8 @@ "dependencies": { "tunnel": "0.0.6" } + +,"_resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.8.tgz" +,"_integrity": "sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==" +,"_from": "@actions/http-client@1.0.8" } \ No newline at end of file diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json index c19c88922..3a303f251 100644 --- a/node_modules/@actions/io/package.json +++ b/node_modules/@actions/io/package.json @@ -32,4 +32,8 @@ "url": "https://github.com/actions/toolkit/issues" }, "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" + +,"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz" +,"_integrity": "sha512-rhq+tfZukbtaus7xyUtwKfuiCRXd1hWSfmJNEpFgBQJ4woqPEpsBw04awicjwz9tyG2/MVhAEMfVn664Cri5zA==" +,"_from": "@actions/io@1.0.1" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json b/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json index e32e6425d..dd01abb87 100644 --- a/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json +++ b/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json @@ -37,4 +37,8 @@ "devDependencies": { "@types/node": "^12.0.2" } + +,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz" +,"_integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==" +,"_from": "@actions/core@1.2.4" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/node_modules/semver/package.json b/node_modules/@actions/tool-cache/node_modules/semver/package.json index a330b56c2..13030769c 100644 --- a/node_modules/@actions/tool-cache/node_modules/semver/package.json +++ b/node_modules/@actions/tool-cache/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" +,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" +,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/package.json b/node_modules/@actions/tool-cache/package.json index ddce94d82..17c984e44 100644 --- a/node_modules/@actions/tool-cache/package.json +++ b/node_modules/@actions/tool-cache/package.json @@ -49,4 +49,8 @@ "@types/uuid": "^3.4.4", "nock": "^10.0.6" } + +,"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.5.5.tgz" +,"_integrity": "sha512-y/YO37BOaXzOEHpvoGZDLCwvg6XZWQ7Ala4Np4xzrKD1r48mff+K/GAmzXMejnApU7kgqC6lL/aCKTZDCrhdmw==" +,"_from": "@actions/tool-cache@1.5.5" } \ No newline at end of file diff --git a/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json b/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json index d7bec7c3d..99dd980e9 100644 --- a/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json +++ b/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json @@ -1,43 +1,47 @@ { - "name": "escape-string-regexp", - "version": "2.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Boy Nicolai Appelman (jbna.nl)" - ], - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "re", - "regular", - "expression", - "string", - "str", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "escape-string-regexp", + "version": "2.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Boy Nicolai Appelman (jbna.nl)" + ], + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "re", + "regular", + "expression", + "string", + "str", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" +,"_integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" +,"_from": "escape-string-regexp@2.0.0" } \ No newline at end of file diff --git a/node_modules/@ava/typescript/package.json b/node_modules/@ava/typescript/package.json index d064983ae..be099a845 100644 --- a/node_modules/@ava/typescript/package.json +++ b/node_modules/@ava/typescript/package.json @@ -39,4 +39,8 @@ "import/order": "off" } } + +,"_resolved": "https://registry.npmjs.org/@ava/typescript/-/typescript-1.1.1.tgz" +,"_integrity": "sha512-KbLUAe2cWXK63WLK6LnOJonjwEDU/8MNXCOA1ooX/YFZgKRmeAD1kZu+2K0ks5fnOCEcckNQAooyBNGdZUmMQA==" +,"_from": "@ava/typescript@1.1.1" } \ No newline at end of file diff --git a/node_modules/@babel/code-frame/package.json b/node_modules/@babel/code-frame/package.json index ce0bf0f62..bdf027869 100644 --- a/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/code-frame/package.json @@ -18,4 +18,8 @@ "strip-ansi": "^4.0.0" }, "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43" + +,"_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz" +,"_integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==" +,"_from": "@babel/code-frame@7.5.5" } \ No newline at end of file diff --git a/node_modules/@babel/highlight/package.json b/node_modules/@babel/highlight/package.json index c958a9e8d..d6588bcfa 100644 --- a/node_modules/@babel/highlight/package.json +++ b/node_modules/@babel/highlight/package.json @@ -19,4 +19,8 @@ "strip-ansi": "^4.0.0" }, "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4" + +,"_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz" +,"_integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==" +,"_from": "@babel/highlight@7.5.0" } \ No newline at end of file diff --git a/node_modules/@concordance/react/node_modules/arrify/package.json b/node_modules/@concordance/react/node_modules/arrify/package.json index d60245659..bfc8621c9 100644 --- a/node_modules/@concordance/react/node_modules/arrify/package.json +++ b/node_modules/@concordance/react/node_modules/arrify/package.json @@ -30,4 +30,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" +,"_integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" +,"_from": "arrify@1.0.1" } \ No newline at end of file diff --git a/node_modules/@concordance/react/package.json b/node_modules/@concordance/react/package.json index f0ba9b96c..e65f61ee9 100644 --- a/node_modules/@concordance/react/package.json +++ b/node_modules/@concordance/react/package.json @@ -72,4 +72,8 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" + +,"_resolved": "https://registry.npmjs.org/@concordance/react/-/react-2.0.0.tgz" +,"_integrity": "sha512-huLSkUuM2/P+U0uy2WwlKuixMsTODD8p4JVQBI4VKeopkiN0C7M3N9XYVawb4M+4spN5RrO/eLhk7KoQX6nsfA==" +,"_from": "@concordance/react@2.0.0" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.scandir/package.json b/node_modules/@nodelib/fs.scandir/package.json index 5a32a9fea..5ed6f43c3 100644 --- a/node_modules/@nodelib/fs.scandir/package.json +++ b/node_modules/@nodelib/fs.scandir/package.json @@ -32,4 +32,8 @@ "run-parallel": "^1.1.9" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" + +,"_resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz" +,"_integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==" +,"_from": "@nodelib/fs.scandir@2.1.3" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.stat/package.json b/node_modules/@nodelib/fs.stat/package.json index 96a5ebb31..014b307de 100644 --- a/node_modules/@nodelib/fs.stat/package.json +++ b/node_modules/@nodelib/fs.stat/package.json @@ -26,4 +26,8 @@ "watch": "npm run clean && npm run compile:watch" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" + +,"_resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz" +,"_integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==" +,"_from": "@nodelib/fs.stat@2.0.3" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.walk/package.json b/node_modules/@nodelib/fs.walk/package.json index 9490845bf..5289c2a75 100644 --- a/node_modules/@nodelib/fs.walk/package.json +++ b/node_modules/@nodelib/fs.walk/package.json @@ -32,4 +32,8 @@ "fastq": "^1.6.0" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" + +,"_resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz" +,"_integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==" +,"_from": "@nodelib/fs.walk@1.2.4" } \ No newline at end of file diff --git a/node_modules/@octokit/auth-token/package.json b/node_modules/@octokit/auth-token/package.json index 5add1ac3d..71f2d0260 100644 --- a/node_modules/@octokit/auth-token/package.json +++ b/node_modules/@octokit/auth-token/package.json @@ -44,4 +44,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.0.tgz" +,"_integrity": "sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg==" +,"_from": "@octokit/auth-token@2.4.0" } \ No newline at end of file diff --git a/node_modules/@octokit/core/package.json b/node_modules/@octokit/core/package.json index 5eab6c145..965b7ab8f 100644 --- a/node_modules/@octokit/core/package.json +++ b/node_modules/@octokit/core/package.json @@ -54,4 +54,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/core/-/core-2.4.2.tgz" +,"_integrity": "sha512-fUx/Qt774cgiPhb3HRKfdl6iufVL/ltECkwkCg373I4lIPYvAPY4cbidVZqyVqHI+ThAIlFlTW8FT4QHChv3Sg==" +,"_from": "@octokit/core@2.4.2" } \ No newline at end of file diff --git a/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/endpoint/package.json index 49e716c34..6ad4cc528 100644 --- a/node_modules/@octokit/endpoint/package.json +++ b/node_modules/@octokit/endpoint/package.json @@ -48,4 +48,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.5.3.tgz" +,"_integrity": "sha512-EzKwkwcxeegYYah5ukEeAI/gYRLv2Y9U5PpIsseGSFDk+G3RbipQGBs8GuYS1TLCtQaqoO66+aQGtITPalxsNQ==" +,"_from": "@octokit/endpoint@5.5.3" } \ No newline at end of file diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json b/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json index ad2c9a9f4..eb8e2be66 100644 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json +++ b/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json @@ -30,4 +30,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.1.tgz" +,"_integrity": "sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg==" +,"_from": "universal-user-agent@4.0.1" } \ No newline at end of file diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index 958b0c83e..52fa976f7 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -51,4 +51,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "deno": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.3.1.tgz" +,"_integrity": "sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA==" +,"_from": "@octokit/graphql@4.3.1" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-paginate-rest/package.json b/node_modules/@octokit/plugin-paginate-rest/package.json index 2c0d4c9f4..d2c998e8b 100644 --- a/node_modules/@octokit/plugin-paginate-rest/package.json +++ b/node_modules/@octokit/plugin-paginate-rest/package.json @@ -43,4 +43,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.0.2.tgz" +,"_integrity": "sha512-HzODcSUt9mjErly26TlTOGZrhf9bmF/FEDQ2zln1izhgmIV6ulsjsHmgmR4VZ0wzVr/m52Eb6U2XuyS8fkcR1A==" +,"_from": "@octokit/plugin-paginate-rest@2.0.2" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-request-log/package.json b/node_modules/@octokit/plugin-request-log/package.json index ff6a0b1d3..dde789f3c 100644 --- a/node_modules/@octokit/plugin-request-log/package.json +++ b/node_modules/@octokit/plugin-request-log/package.json @@ -41,4 +41,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz" +,"_integrity": "sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==" +,"_from": "@octokit/plugin-request-log@1.0.0" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json index 261fbec2b..3775af4bc 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json @@ -54,4 +54,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.3.1.tgz" +,"_integrity": "sha512-iLAXPLWBZaP6ocy1GFfZUCzyN4cwg3y2JE6yZjQo0zLE3UaewC3TI68/TnS4ilyhXDxh81Jr1qwPN1AqTp8t3w==" +,"_from": "@octokit/plugin-rest-endpoint-methods@3.3.1" } \ No newline at end of file diff --git a/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request-error/package.json index 0938401ac..5d11805dd 100644 --- a/node_modules/@octokit/request-error/package.json +++ b/node_modules/@octokit/request-error/package.json @@ -51,4 +51,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.1.tgz" +,"_integrity": "sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA==" +,"_from": "@octokit/request-error@1.2.1" } \ No newline at end of file diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index e14ca5a44..6fa672d8d 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -61,4 +61,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.3.2.tgz" +,"_integrity": "sha512-7NPJpg19wVQy1cs2xqXjjRq/RmtSomja/VSWnptfYwuBxLdbYh2UjhGi0Wx7B1v5Iw5GKhfFDQL7jM7SSp7K2g==" +,"_from": "@octokit/request@5.3.2" } \ No newline at end of file diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index 6cf0f21e4..2ea157f22 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -65,4 +65,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-17.1.0.tgz" +,"_integrity": "sha512-L5YtpxHZSHZCh2xETbzxz8clBGmcpT+5e78JLZQ+VfuHrHJ1J/r+R2PGwKHwClUEECTeWFMMdAtIik+OCkANBg==" +,"_from": "@octokit/rest@17.1.0" } \ No newline at end of file diff --git a/node_modules/@octokit/types/package.json b/node_modules/@octokit/types/package.json index 8176f97b4..da45e714b 100644 --- a/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/types/package.json @@ -62,4 +62,8 @@ "dependencies": { "@types/node": ">= 8" } + +,"_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.5.0.tgz" +,"_integrity": "sha512-KEnLwOfdXzxPNL34fj508bhi9Z9cStyN7qY1kOfVahmqtAfrWw6Oq3P4R+dtsg0lYtZdWBpUrS/Ixmd5YILSww==" +,"_from": "@octokit/types@2.5.0" } \ No newline at end of file diff --git a/node_modules/@sindresorhus/is/package.json b/node_modules/@sindresorhus/is/package.json index 66fc8bad1..b08acf00a 100644 --- a/node_modules/@sindresorhus/is/package.json +++ b/node_modules/@sindresorhus/is/package.json @@ -1,63 +1,67 @@ { - "name": "@sindresorhus/is", - "version": "0.14.0", - "description": "Type check values: `is.string('🦄') //=> true`", - "license": "MIT", - "repository": "sindresorhus/is", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "dist/index.js", - "engines": { - "node": ">=6" - }, - "scripts": { - "lint": "tslint --format stylish --project .", - "build": "del dist && tsc", - "test": "npm run lint && npm run build && ava dist/tests", - "prepublish": "npm run build && del dist/tests" - }, - "files": [ - "dist" - ], - "keywords": [ - "type", - "types", - "is", - "check", - "checking", - "validate", - "validation", - "utility", - "util", - "typeof", - "instanceof", - "object", - "assert", - "assertion", - "test", - "kind", - "primitive", - "verify", - "compare" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.1.0", - "@types/jsdom": "^11.12.0", - "@types/node": "^10.12.10", - "@types/tempy": "^0.2.0", - "@types/zen-observable": "^0.8.0", - "ava": "^0.25.0", - "del-cli": "^1.1.0", - "jsdom": "^11.6.2", - "rxjs": "^6.3.3", - "tempy": "^0.2.1", - "tslint": "^5.9.1", - "tslint-xo": "^0.10.0", - "typescript": "^3.2.1", - "zen-observable": "^0.8.8" - }, - "types": "dist/index.d.ts" + "name": "@sindresorhus/is", + "version": "0.14.0", + "description": "Type check values: `is.string('🦄') //=> true`", + "license": "MIT", + "repository": "sindresorhus/is", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "dist/index.js", + "engines": { + "node": ">=6" + }, + "scripts": { + "lint": "tslint --format stylish --project .", + "build": "del dist && tsc", + "test": "npm run lint && npm run build && ava dist/tests", + "prepublish": "npm run build && del dist/tests" + }, + "files": [ + "dist" + ], + "keywords": [ + "type", + "types", + "is", + "check", + "checking", + "validate", + "validation", + "utility", + "util", + "typeof", + "instanceof", + "object", + "assert", + "assertion", + "test", + "kind", + "primitive", + "verify", + "compare" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.1.0", + "@types/jsdom": "^11.12.0", + "@types/node": "^10.12.10", + "@types/tempy": "^0.2.0", + "@types/zen-observable": "^0.8.0", + "ava": "^0.25.0", + "del-cli": "^1.1.0", + "jsdom": "^11.6.2", + "rxjs": "^6.3.3", + "tempy": "^0.2.1", + "tslint": "^5.9.1", + "tslint-xo": "^0.10.0", + "typescript": "^3.2.1", + "zen-observable": "^0.8.8" + }, + "types": "dist/index.d.ts" + +,"_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz" +,"_integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" +,"_from": "@sindresorhus/is@0.14.0" } \ No newline at end of file diff --git a/node_modules/@szmarczak/http-timer/package.json b/node_modules/@szmarczak/http-timer/package.json index cf366a763..ce9d4c665 100755 --- a/node_modules/@szmarczak/http-timer/package.json +++ b/node_modules/@szmarczak/http-timer/package.json @@ -1,47 +1,51 @@ { - "name": "@szmarczak/http-timer", - "version": "1.1.2", - "description": "Timings for HTTP requests", - "main": "source", - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && nyc ava", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "source" - ], - "keywords": [ - "http", - "https", - "timer", - "timings" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/szmarczak/http-timer.git" - }, - "author": "Szymon Marczak", - "license": "MIT", - "bugs": { - "url": "https://github.com/szmarczak/http-timer/issues" - }, - "homepage": "https://github.com/szmarczak/http-timer#readme", - "xo": { - "rules": { - "unicorn/filename-case": "camelCase" - } - }, - "devDependencies": { - "ava": "^0.25.0", - "coveralls": "^3.0.2", - "p-event": "^2.1.0", - "nyc": "^12.0.2", - "xo": "^0.22.0" - }, - "dependencies": { - "defer-to-connect": "^1.0.1" - } + "name": "@szmarczak/http-timer", + "version": "1.1.2", + "description": "Timings for HTTP requests", + "main": "source", + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && nyc ava", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "source" + ], + "keywords": [ + "http", + "https", + "timer", + "timings" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/szmarczak/http-timer.git" + }, + "author": "Szymon Marczak", + "license": "MIT", + "bugs": { + "url": "https://github.com/szmarczak/http-timer/issues" + }, + "homepage": "https://github.com/szmarczak/http-timer#readme", + "xo": { + "rules": { + "unicorn/filename-case": "camelCase" + } + }, + "devDependencies": { + "ava": "^0.25.0", + "coveralls": "^3.0.2", + "p-event": "^2.1.0", + "nyc": "^12.0.2", + "xo": "^0.22.0" + }, + "dependencies": { + "defer-to-connect": "^1.0.1" + } + +,"_resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz" +,"_integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==" +,"_from": "@szmarczak/http-timer@1.1.2" } \ No newline at end of file diff --git a/node_modules/@types/color-name/package.json b/node_modules/@types/color-name/package.json index de213731b..da77dae61 100644 --- a/node_modules/@types/color-name/package.json +++ b/node_modules/@types/color-name/package.json @@ -1,23 +1,27 @@ { - "name": "@types/color-name", - "version": "1.1.1", - "description": "TypeScript definitions for color-name", - "license": "MIT", - "contributors": [ - { - "name": "Junyoung Clare Jang", - "url": "https://github.com/Ailrun", - "githubUsername": "Ailrun" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", - "typeScriptVersion": "2.0" + "name": "@types/color-name", + "version": "1.1.1", + "description": "TypeScript definitions for color-name", + "license": "MIT", + "contributors": [ + { + "name": "Junyoung Clare Jang", + "url": "https://github.com/Ailrun", + "githubUsername": "Ailrun" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz" +,"_integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" +,"_from": "@types/color-name@1.1.1" } \ No newline at end of file diff --git a/node_modules/@types/events/package.json b/node_modules/@types/events/package.json index 511653a8c..ec26d33d0 100644 --- a/node_modules/@types/events/package.json +++ b/node_modules/@types/events/package.json @@ -1,28 +1,32 @@ { - "name": "@types/events", - "version": "3.0.0", - "description": "TypeScript definitions for events", - "license": "MIT", - "contributors": [ - { - "name": "Yasunori Ohoka", - "url": "https://github.com/yasupeke", - "githubUsername": "yasupeke" + "name": "@types/events", + "version": "3.0.0", + "description": "TypeScript definitions for events", + "license": "MIT", + "contributors": [ + { + "name": "Yasunori Ohoka", + "url": "https://github.com/yasupeke", + "githubUsername": "yasupeke" + }, + { + "name": "Shenwei Wang", + "url": "https://github.com/weareoutman", + "githubUsername": "weareoutman" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" }, - { - "name": "Shenwei Wang", - "url": "https://github.com/weareoutman", - "githubUsername": "weareoutman" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "ae078136220837864b64cc7c1c5267ca1ceb809166fb74569e637bc7de9f2e12", - "typeScriptVersion": "2.0" + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "ae078136220837864b64cc7c1c5267ca1ceb809166fb74569e637bc7de9f2e12", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz" +,"_integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==" +,"_from": "@types/events@3.0.0" } \ No newline at end of file diff --git a/node_modules/@types/glob/package.json b/node_modules/@types/glob/package.json index 599e299a4..7b98f8851 100644 --- a/node_modules/@types/glob/package.json +++ b/node_modules/@types/glob/package.json @@ -1,36 +1,40 @@ { - "name": "@types/glob", - "version": "7.1.1", - "description": "TypeScript definitions for Glob", - "license": "MIT", - "contributors": [ - { - "name": "vvakame", - "url": "https://github.com/vvakame", - "githubUsername": "vvakame" + "name": "@types/glob", + "version": "7.1.1", + "description": "TypeScript definitions for Glob", + "license": "MIT", + "contributors": [ + { + "name": "vvakame", + "url": "https://github.com/vvakame", + "githubUsername": "vvakame" + }, + { + "name": "voy", + "url": "https://github.com/voy", + "githubUsername": "voy" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" }, - { - "name": "voy", - "url": "https://github.com/voy", - "githubUsername": "voy" + "scripts": {}, + "dependencies": { + "@types/events": "*", + "@types/minimatch": "*", + "@types/node": "*" }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": { - "@types/events": "*", - "@types/minimatch": "*", - "@types/node": "*" - }, - "typesPublisherContentHash": "43019f2af91c7a4ca3453c4b806a01c521ca3008ffe1bfefd37c5f9d6135660e", - "typeScriptVersion": "2.0" + "typesPublisherContentHash": "43019f2af91c7a4ca3453c4b806a01c521ca3008ffe1bfefd37c5f9d6135660e", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz" +,"_integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==" +,"_from": "@types/glob@7.1.1" } \ No newline at end of file diff --git a/node_modules/@types/jszip/package.json b/node_modules/@types/jszip/package.json index 5712e3e9d..3f6eafbd7 100644 --- a/node_modules/@types/jszip/package.json +++ b/node_modules/@types/jszip/package.json @@ -1,31 +1,35 @@ { - "name": "@types/jszip", - "version": "3.1.6", - "description": "TypeScript definitions for JSZip", - "license": "MIT", - "contributors": [ - { - "name": "mzeiher", - "url": "https://github.com/mzeiher", - "githubUsername": "mzeiher" + "name": "@types/jszip", + "version": "3.1.6", + "description": "TypeScript definitions for JSZip", + "license": "MIT", + "contributors": [ + { + "name": "mzeiher", + "url": "https://github.com/mzeiher", + "githubUsername": "mzeiher" + }, + { + "name": "forabi", + "url": "https://github.com/forabi", + "githubUsername": "forabi" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/jszip" }, - { - "name": "forabi", - "url": "https://github.com/forabi", - "githubUsername": "forabi" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/jszip" - }, - "scripts": {}, - "dependencies": { - "@types/node": "*" - }, - "typesPublisherContentHash": "b39880f7d79a626d32182cc6886711e3db5e4728ace6005cbfd57457fee69d85", - "typeScriptVersion": "2.3" + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "b39880f7d79a626d32182cc6886711e3db5e4728ace6005cbfd57457fee69d85", + "typeScriptVersion": "2.3" + +,"_resolved": "https://registry.npmjs.org/@types/jszip/-/jszip-3.1.6.tgz" +,"_integrity": "sha512-m8uFcI+O2EupCfbEVQWsBM/4nhbegjOHL7cQgBpM95FeF98kdFJXzy9/8yhx4b3lCRl/gMBhcvyh30Qt3X+XPQ==" +,"_from": "@types/jszip@3.1.6" } \ No newline at end of file diff --git a/node_modules/@types/long/package.json b/node_modules/@types/long/package.json index 71fc5eae5..690bb90f3 100644 --- a/node_modules/@types/long/package.json +++ b/node_modules/@types/long/package.json @@ -1,22 +1,26 @@ { - "name": "@types/long", - "version": "4.0.0", - "description": "TypeScript definitions for long.js", - "license": "MIT", - "contributors": [ - { - "name": "Peter Kooijmans", - "url": "https://github.com/peterkooijmans", - "githubUsername": "peterkooijmans" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "cc3246302180c8c161d2e2c0c3f0a419226efa475d2cd5afbe51986d60cd8287", - "typeScriptVersion": "2.0" + "name": "@types/long", + "version": "4.0.0", + "description": "TypeScript definitions for long.js", + "license": "MIT", + "contributors": [ + { + "name": "Peter Kooijmans", + "url": "https://github.com/peterkooijmans", + "githubUsername": "peterkooijmans" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "cc3246302180c8c161d2e2c0c3f0a419226efa475d2cd5afbe51986d60cd8287", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz" +,"_integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" +,"_from": "@types/long@4.0.0" } \ No newline at end of file diff --git a/node_modules/@types/minimatch/package.json b/node_modules/@types/minimatch/package.json index 85e258799..2ffb9f1c8 100644 --- a/node_modules/@types/minimatch/package.json +++ b/node_modules/@types/minimatch/package.json @@ -1,27 +1,31 @@ { - "name": "@types/minimatch", - "version": "3.0.3", - "description": "TypeScript definitions for Minimatch", - "license": "MIT", - "contributors": [ - { - "name": "vvakame", - "url": "https://github.com/vvakame", - "githubUsername": "vvakame" + "name": "@types/minimatch", + "version": "3.0.3", + "description": "TypeScript definitions for Minimatch", + "license": "MIT", + "contributors": [ + { + "name": "vvakame", + "url": "https://github.com/vvakame", + "githubUsername": "vvakame" + }, + { + "name": "Shant Marouti", + "url": "https://github.com/shantmarouti", + "githubUsername": "shantmarouti" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" }, - { - "name": "Shant Marouti", - "url": "https://github.com/shantmarouti", - "githubUsername": "shantmarouti" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "e768e36348874adcc93ac67e9c3c7b5fcbd39079c0610ec16e410b8f851308d1", - "typeScriptVersion": "2.0" + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e768e36348874adcc93ac67e9c3c7b5fcbd39079c0610ec16e410b8f851308d1", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz" +,"_integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" +,"_from": "@types/minimatch@3.0.3" } \ No newline at end of file diff --git a/node_modules/@types/nock/package.json b/node_modules/@types/nock/package.json index 04a7fbeda..28efa45be 100644 --- a/node_modules/@types/nock/package.json +++ b/node_modules/@types/nock/package.json @@ -1,14 +1,18 @@ { - "name": "@types/nock", - "version": "11.1.0", - "typings": null, - "description": "Stub TypeScript definitions entry for nock, which provides its own types definitions", - "main": "", - "scripts": {}, - "author": "", - "repository": "https://github.com/nock/nock", - "license": "MIT", - "dependencies": { - "nock": "*" - } + "name": "@types/nock", + "version": "11.1.0", + "typings": null, + "description": "Stub TypeScript definitions entry for nock, which provides its own types definitions", + "main": "", + "scripts": {}, + "author": "", + "repository": "https://github.com/nock/nock", + "license": "MIT", + "dependencies": { + "nock": "*" + } + +,"_resolved": "https://registry.npmjs.org/@types/nock/-/nock-11.1.0.tgz" +,"_integrity": "sha512-jI/ewavBQ7X5178262JQR0ewicPAcJhXS/iFaNJl0VHLfyosZ/kwSrsa6VNQNSO8i9d8SqdRgOtZSOKJ/+iNMw==" +,"_from": "@types/nock@11.1.0" } \ No newline at end of file diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index f3863a09b..c62c0141d 100644 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,231 +1,235 @@ { - "name": "@types/node", - "version": "12.12.14", - "description": "TypeScript definitions for Node.js", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "url": "https://github.com/Microsoft", - "githubUsername": "Microsoft" - }, - { - "name": "DefinitelyTyped", - "url": "https://github.com/DefinitelyTyped", - "githubUsername": "DefinitelyTyped" - }, - { - "name": "Alberto Schiabel", - "url": "https://github.com/jkomyno", - "githubUsername": "jkomyno" - }, - { - "name": "Alexander T.", - "url": "https://github.com/a-tarasyuk", - "githubUsername": "a-tarasyuk" - }, - { - "name": "Alvis HT Tang", - "url": "https://github.com/alvis", - "githubUsername": "alvis" - }, - { - "name": "Andrew Makarov", - "url": "https://github.com/r3nya", - "githubUsername": "r3nya" - }, - { - "name": "Benjamin Toueg", - "url": "https://github.com/btoueg", - "githubUsername": "btoueg" - }, - { - "name": "Bruno Scheufler", - "url": "https://github.com/brunoscheufler", - "githubUsername": "brunoscheufler" - }, - { - "name": "Chigozirim C.", - "url": "https://github.com/smac89", - "githubUsername": "smac89" - }, - { - "name": "Christian Vaagland Tellnes", - "url": "https://github.com/tellnes", - "githubUsername": "tellnes" - }, - { - "name": "David Junger", - "url": "https://github.com/touffy", - "githubUsername": "touffy" - }, - { - "name": "Deividas Bakanas", - "url": "https://github.com/DeividasBakanas", - "githubUsername": "DeividasBakanas" - }, - { - "name": "Eugene Y. Q. Shen", - "url": "https://github.com/eyqs", - "githubUsername": "eyqs" - }, - { - "name": "Flarna", - "url": "https://github.com/Flarna", - "githubUsername": "Flarna" - }, - { - "name": "Hannes Magnusson", - "url": "https://github.com/Hannes-Magnusson-CK", - "githubUsername": "Hannes-Magnusson-CK" - }, - { - "name": "Hoàng Văn Khải", - "url": "https://github.com/KSXGitHub", - "githubUsername": "KSXGitHub" - }, - { - "name": "Huw", - "url": "https://github.com/hoo29", - "githubUsername": "hoo29" - }, - { - "name": "Kelvin Jin", - "url": "https://github.com/kjin", - "githubUsername": "kjin" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - }, - { - "name": "Lishude", - "url": "https://github.com/islishude", - "githubUsername": "islishude" - }, - { - "name": "Mariusz Wiktorczyk", - "url": "https://github.com/mwiktorczyk", - "githubUsername": "mwiktorczyk" - }, - { - "name": "Mohsen Azimi", - "url": "https://github.com/mohsen1", - "githubUsername": "mohsen1" - }, - { - "name": "Nicolas Even", - "url": "https://github.com/n-e", - "githubUsername": "n-e" - }, - { - "name": "Nicolas Voigt", - "url": "https://github.com/octo-sniffle", - "githubUsername": "octo-sniffle" - }, - { - "name": "Nikita Galkin", - "url": "https://github.com/galkin", - "githubUsername": "galkin" - }, - { - "name": "Parambir Singh", - "url": "https://github.com/parambirs", - "githubUsername": "parambirs" - }, - { - "name": "Sebastian Silbermann", - "url": "https://github.com/eps1lon", - "githubUsername": "eps1lon" - }, - { - "name": "Simon Schick", - "url": "https://github.com/SimonSchick", - "githubUsername": "SimonSchick" - }, - { - "name": "Thomas den Hollander", - "url": "https://github.com/ThomasdenH", - "githubUsername": "ThomasdenH" - }, - { - "name": "Wilco Bakker", - "url": "https://github.com/WilcoBakker", - "githubUsername": "WilcoBakker" - }, - { - "name": "wwwy3y3", - "url": "https://github.com/wwwy3y3", - "githubUsername": "wwwy3y3" - }, - { - "name": "Zane Hannan AU", - "url": "https://github.com/ZaneHannanAU", - "githubUsername": "ZaneHannanAU" - }, - { - "name": "Samuel Ainsworth", - "url": "https://github.com/samuela", - "githubUsername": "samuela" - }, - { - "name": "Kyle Uehlein", - "url": "https://github.com/kuehlein", - "githubUsername": "kuehlein" - }, - { - "name": "Jordi Oliveras Rovira", - "url": "https://github.com/j-oliveras", - "githubUsername": "j-oliveras" - }, - { - "name": "Thanik Bhongbhibhat", - "url": "https://github.com/bhongy", - "githubUsername": "bhongy" - }, - { - "name": "Marcin Kopacz", - "url": "https://github.com/chyzwar", - "githubUsername": "chyzwar" - }, - { - "name": "Trivikram Kamat", - "url": "https://github.com/trivikr", - "githubUsername": "trivikr" - }, - { - "name": "Minh Son Nguyen", - "url": "https://github.com/nguymin4", - "githubUsername": "nguymin4" - }, - { - "name": "Junxiao Shi", - "url": "https://github.com/yoursunny", - "githubUsername": "yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "url": "https://github.com/qwelias", - "githubUsername": "qwelias" - } - ], - "main": "", - "types": "index.d.ts", - "typesVersions": { - ">=3.2.0-0": { - "*": [ - "ts3.2/*" - ] - } - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "305a8ff81632f0e70287898475e87d6aedbd683a5e37cb775f9ea845625cfa06", - "typeScriptVersion": "2.8" + "name": "@types/node", + "version": "12.12.14", + "description": "TypeScript definitions for Node.js", + "license": "MIT", + "contributors": [ + { + "name": "Microsoft TypeScript", + "url": "https://github.com/Microsoft", + "githubUsername": "Microsoft" + }, + { + "name": "DefinitelyTyped", + "url": "https://github.com/DefinitelyTyped", + "githubUsername": "DefinitelyTyped" + }, + { + "name": "Alberto Schiabel", + "url": "https://github.com/jkomyno", + "githubUsername": "jkomyno" + }, + { + "name": "Alexander T.", + "url": "https://github.com/a-tarasyuk", + "githubUsername": "a-tarasyuk" + }, + { + "name": "Alvis HT Tang", + "url": "https://github.com/alvis", + "githubUsername": "alvis" + }, + { + "name": "Andrew Makarov", + "url": "https://github.com/r3nya", + "githubUsername": "r3nya" + }, + { + "name": "Benjamin Toueg", + "url": "https://github.com/btoueg", + "githubUsername": "btoueg" + }, + { + "name": "Bruno Scheufler", + "url": "https://github.com/brunoscheufler", + "githubUsername": "brunoscheufler" + }, + { + "name": "Chigozirim C.", + "url": "https://github.com/smac89", + "githubUsername": "smac89" + }, + { + "name": "Christian Vaagland Tellnes", + "url": "https://github.com/tellnes", + "githubUsername": "tellnes" + }, + { + "name": "David Junger", + "url": "https://github.com/touffy", + "githubUsername": "touffy" + }, + { + "name": "Deividas Bakanas", + "url": "https://github.com/DeividasBakanas", + "githubUsername": "DeividasBakanas" + }, + { + "name": "Eugene Y. Q. Shen", + "url": "https://github.com/eyqs", + "githubUsername": "eyqs" + }, + { + "name": "Flarna", + "url": "https://github.com/Flarna", + "githubUsername": "Flarna" + }, + { + "name": "Hannes Magnusson", + "url": "https://github.com/Hannes-Magnusson-CK", + "githubUsername": "Hannes-Magnusson-CK" + }, + { + "name": "Hoàng Văn Khải", + "url": "https://github.com/KSXGitHub", + "githubUsername": "KSXGitHub" + }, + { + "name": "Huw", + "url": "https://github.com/hoo29", + "githubUsername": "hoo29" + }, + { + "name": "Kelvin Jin", + "url": "https://github.com/kjin", + "githubUsername": "kjin" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "Lishude", + "url": "https://github.com/islishude", + "githubUsername": "islishude" + }, + { + "name": "Mariusz Wiktorczyk", + "url": "https://github.com/mwiktorczyk", + "githubUsername": "mwiktorczyk" + }, + { + "name": "Mohsen Azimi", + "url": "https://github.com/mohsen1", + "githubUsername": "mohsen1" + }, + { + "name": "Nicolas Even", + "url": "https://github.com/n-e", + "githubUsername": "n-e" + }, + { + "name": "Nicolas Voigt", + "url": "https://github.com/octo-sniffle", + "githubUsername": "octo-sniffle" + }, + { + "name": "Nikita Galkin", + "url": "https://github.com/galkin", + "githubUsername": "galkin" + }, + { + "name": "Parambir Singh", + "url": "https://github.com/parambirs", + "githubUsername": "parambirs" + }, + { + "name": "Sebastian Silbermann", + "url": "https://github.com/eps1lon", + "githubUsername": "eps1lon" + }, + { + "name": "Simon Schick", + "url": "https://github.com/SimonSchick", + "githubUsername": "SimonSchick" + }, + { + "name": "Thomas den Hollander", + "url": "https://github.com/ThomasdenH", + "githubUsername": "ThomasdenH" + }, + { + "name": "Wilco Bakker", + "url": "https://github.com/WilcoBakker", + "githubUsername": "WilcoBakker" + }, + { + "name": "wwwy3y3", + "url": "https://github.com/wwwy3y3", + "githubUsername": "wwwy3y3" + }, + { + "name": "Zane Hannan AU", + "url": "https://github.com/ZaneHannanAU", + "githubUsername": "ZaneHannanAU" + }, + { + "name": "Samuel Ainsworth", + "url": "https://github.com/samuela", + "githubUsername": "samuela" + }, + { + "name": "Kyle Uehlein", + "url": "https://github.com/kuehlein", + "githubUsername": "kuehlein" + }, + { + "name": "Jordi Oliveras Rovira", + "url": "https://github.com/j-oliveras", + "githubUsername": "j-oliveras" + }, + { + "name": "Thanik Bhongbhibhat", + "url": "https://github.com/bhongy", + "githubUsername": "bhongy" + }, + { + "name": "Marcin Kopacz", + "url": "https://github.com/chyzwar", + "githubUsername": "chyzwar" + }, + { + "name": "Trivikram Kamat", + "url": "https://github.com/trivikr", + "githubUsername": "trivikr" + }, + { + "name": "Minh Son Nguyen", + "url": "https://github.com/nguymin4", + "githubUsername": "nguymin4" + }, + { + "name": "Junxiao Shi", + "url": "https://github.com/yoursunny", + "githubUsername": "yoursunny" + }, + { + "name": "Ilia Baryshnikov", + "url": "https://github.com/qwelias", + "githubUsername": "qwelias" + } + ], + "main": "", + "types": "index.d.ts", + "typesVersions": { + ">=3.2.0-0": { + "*": [ + "ts3.2/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "305a8ff81632f0e70287898475e87d6aedbd683a5e37cb775f9ea845625cfa06", + "typeScriptVersion": "2.8" + +,"_resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz" +,"_integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==" +,"_from": "@types/node@12.12.14" } \ No newline at end of file diff --git a/node_modules/@types/normalize-package-data/package.json b/node_modules/@types/normalize-package-data/package.json index 830641a9d..82b657ae0 100755 --- a/node_modules/@types/normalize-package-data/package.json +++ b/node_modules/@types/normalize-package-data/package.json @@ -1,22 +1,26 @@ { - "name": "@types/normalize-package-data", - "version": "2.4.0", - "description": "TypeScript definitions for normalize-package-data", - "license": "MIT", - "contributors": [ - { - "name": "Jeff Dickey", - "url": "https://github.com/jdxcode", - "githubUsername": "jdxcode" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "5d2101e9e55c73e1d649a6c311e0d40bdfaa25bb06bb75ea6f3bb0d149c1303b", - "typeScriptVersion": "2.0" + "name": "@types/normalize-package-data", + "version": "2.4.0", + "description": "TypeScript definitions for normalize-package-data", + "license": "MIT", + "contributors": [ + { + "name": "Jeff Dickey", + "url": "https://github.com/jdxcode", + "githubUsername": "jdxcode" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "5d2101e9e55c73e1d649a6c311e0d40bdfaa25bb06bb75ea6f3bb0d149c1303b", + "typeScriptVersion": "2.0" + +,"_resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz" +,"_integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==" +,"_from": "@types/normalize-package-data@2.4.0" } \ No newline at end of file diff --git a/node_modules/@types/semver/package.json b/node_modules/@types/semver/package.json index eb5d0f55c..5bff6095b 100644 --- a/node_modules/@types/semver/package.json +++ b/node_modules/@types/semver/package.json @@ -1,51 +1,55 @@ { - "name": "@types/semver", - "version": "7.2.0", - "description": "TypeScript definitions for semver", - "license": "MIT", - "contributors": [ - { - "name": "Bart van der Schoor", - "url": "https://github.com/Bartvds", - "githubUsername": "Bartvds" + "name": "@types/semver", + "version": "7.2.0", + "description": "TypeScript definitions for semver", + "license": "MIT", + "contributors": [ + { + "name": "Bart van der Schoor", + "url": "https://github.com/Bartvds", + "githubUsername": "Bartvds" + }, + { + "name": "BendingBender", + "url": "https://github.com/BendingBender", + "githubUsername": "BendingBender" + }, + { + "name": "Lucian Buzzo", + "url": "https://github.com/LucianBuzzo", + "githubUsername": "LucianBuzzo" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "ExE Boss", + "url": "https://github.com/ExE-Boss", + "githubUsername": "ExE-Boss" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/semver" }, - { - "name": "BendingBender", - "url": "https://github.com/BendingBender", - "githubUsername": "BendingBender" + "scripts": {}, + "dependencies": { + "@types/node": "*" }, - { - "name": "Lucian Buzzo", - "url": "https://github.com/LucianBuzzo", - "githubUsername": "LucianBuzzo" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - }, - { - "name": "ExE Boss", - "url": "https://github.com/ExE-Boss", - "githubUsername": "ExE-Boss" - }, - { - "name": "Piotr Błażejewicz", - "url": "https://github.com/peterblazejewicz", - "githubUsername": "peterblazejewicz" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/semver" - }, - "scripts": {}, - "dependencies": { - "@types/node": "*" - }, - "typesPublisherContentHash": "a85c812786f6121af7012f9234a35445623e4933797ddf4b52584d65deaec9ef", - "typeScriptVersion": "2.9" + "typesPublisherContentHash": "a85c812786f6121af7012f9234a35445623e4933797ddf4b52584d65deaec9ef", + "typeScriptVersion": "2.9" + +,"_resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.2.0.tgz" +,"_integrity": "sha512-TbB0A8ACUWZt3Y6bQPstW9QNbhNeebdgLX4T/ZfkrswAfUzRiXrgd9seol+X379Wa589Pu4UEx9Uok0D4RjRCQ==" +,"_from": "@types/semver@7.2.0" } \ No newline at end of file diff --git a/node_modules/acorn/package.json b/node_modules/acorn/package.json index 40a5beda7..3509ed8ad 100644 --- a/node_modules/acorn/package.json +++ b/node_modules/acorn/package.json @@ -6,9 +6,7 @@ "types": "dist/acorn.d.ts", "module": "dist/acorn.mjs", "version": "7.1.1", - "engines": { - "node": ">=0.4.0" - }, + "engines": {"node": ">=0.4.0"}, "maintainers": [ { "name": "Marijn Haverbeke", @@ -33,7 +31,9 @@ "scripts": { "prepare": "cd ..; npm run build:main && npm run build:bin" }, - "bin": { - "acorn": "./bin/acorn" - } + "bin": {"acorn": "./bin/acorn"} + +,"_resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz" +,"_integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==" +,"_from": "acorn@7.1.1" } \ No newline at end of file diff --git a/node_modules/aggregate-error/package.json b/node_modules/aggregate-error/package.json index 975b087d9..bea3cd781 100644 --- a/node_modules/aggregate-error/package.json +++ b/node_modules/aggregate-error/package.json @@ -1,41 +1,45 @@ { - "name": "aggregate-error", - "version": "3.0.1", - "description": "Create an error from multiple errors", - "license": "MIT", - "repository": "sindresorhus/aggregate-error", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "aggregate", - "error", - "combine", - "multiple", - "many", - "collection", - "iterable", - "iterator" - ], - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.7.1", - "xo": "^0.25.3" - } + "name": "aggregate-error", + "version": "3.0.1", + "description": "Create an error from multiple errors", + "license": "MIT", + "repository": "sindresorhus/aggregate-error", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "aggregate", + "error", + "combine", + "multiple", + "many", + "collection", + "iterable", + "iterator" + ], + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.7.1", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz" +,"_integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==" +,"_from": "aggregate-error@3.0.1" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/emoji-regex/package.json b/node_modules/ansi-align/node_modules/emoji-regex/package.json index 9b1f7fa11..0815d4b6b 100644 --- a/node_modules/ansi-align/node_modules/emoji-regex/package.json +++ b/node_modules/ansi-align/node_modules/emoji-regex/package.json @@ -48,4 +48,8 @@ "unicode-11.0.0": "^0.7.7", "unicode-tr51": "^9.0.1" } + +,"_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz" +,"_integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" +,"_from": "emoji-regex@7.0.3" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json b/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json index 26bde6763..2a660ef08 100644 --- a/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +++ b/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json @@ -42,4 +42,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" +,"_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" +,"_from": "is-fullwidth-code-point@2.0.0" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/string-width/package.json b/node_modules/ansi-align/node_modules/string-width/package.json index 999be2234..04b93127c 100644 --- a/node_modules/ansi-align/node_modules/string-width/package.json +++ b/node_modules/ansi-align/node_modules/string-width/package.json @@ -1,56 +1,60 @@ { - "name": "string-width", - "version": "3.1.0", - "description": "Get the visual width of a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/string-width", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "string", - "str", - "character", - "char", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "devDependencies": { - "ava": "^1.0.1", - "xo": "^0.23.0" - } + "name": "string-width", + "version": "3.1.0", + "description": "Get the visual width of a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/string-width", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "string", + "str", + "character", + "char", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "devDependencies": { + "ava": "^1.0.1", + "xo": "^0.23.0" + } + +,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz" +,"_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==" +,"_from": "string-width@3.1.0" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/strip-ansi/package.json b/node_modules/ansi-align/node_modules/strip-ansi/package.json index 8da283c17..b8c890988 100644 --- a/node_modules/ansi-align/node_modules/strip-ansi/package.json +++ b/node_modules/ansi-align/node_modules/strip-ansi/package.json @@ -1,54 +1,58 @@ { - "name": "strip-ansi", - "version": "5.2.0", - "description": "Strip ANSI escape codes from a string", - "license": "MIT", - "repository": "chalk/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "strip", - "trim", - "remove", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "devDependencies": { - "ava": "^1.3.1", - "tsd-check": "^0.5.0", - "xo": "^0.24.0" - } + "name": "strip-ansi", + "version": "5.2.0", + "description": "Strip ANSI escape codes from a string", + "license": "MIT", + "repository": "chalk/strip-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "devDependencies": { + "ava": "^1.3.1", + "tsd-check": "^0.5.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" +,"_integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" +,"_from": "strip-ansi@5.2.0" } \ No newline at end of file diff --git a/node_modules/ansi-align/package.json b/node_modules/ansi-align/package.json index dd0ee2023..c44a43b98 100644 --- a/node_modules/ansi-align/package.json +++ b/node_modules/ansi-align/package.json @@ -40,4 +40,8 @@ "standard": "^12.0.1", "standard-version": "^4.4.0" } + +,"_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz" +,"_integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==" +,"_from": "ansi-align@3.0.0" } \ No newline at end of file diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json index cbf44fadd..3a7e5ef08 100644 --- a/node_modules/ansi-regex/package.json +++ b/node_modules/ansi-regex/package.json @@ -1,53 +1,57 @@ { - "name": "ansi-regex", - "version": "4.1.0", - "description": "Regular expression for matching ANSI escape codes", - "license": "MIT", - "repository": "chalk/ansi-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava", - "view-supported": "node fixtures/view-codes.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "devDependencies": { - "ava": "^0.25.0", - "xo": "^0.23.0" - } + "name": "ansi-regex", + "version": "4.1.0", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "^0.25.0", + "xo": "^0.23.0" + } + +,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz" +,"_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" +,"_from": "ansi-regex@4.1.0" } \ No newline at end of file diff --git a/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json index a5eb4ff0f..8e2972cd4 100644 --- a/node_modules/ansi-styles/package.json +++ b/node_modules/ansi-styles/package.json @@ -1,56 +1,60 @@ { - "name": "ansi-styles", - "version": "3.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "color-convert": "^1.9.0" - }, - "devDependencies": { - "ava": "*", - "babel-polyfill": "^6.23.0", - "svg-term-cli": "^2.1.1", - "xo": "*" - }, - "ava": { - "require": "babel-polyfill" - } + "name": "ansi-styles", + "version": "3.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "color-convert": "^1.9.0" + }, + "devDependencies": { + "ava": "*", + "babel-polyfill": "^6.23.0", + "svg-term-cli": "^2.1.1", + "xo": "*" + }, + "ava": { + "require": "babel-polyfill" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" +,"_integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==" +,"_from": "ansi-styles@3.2.1" } \ No newline at end of file diff --git a/node_modules/argparse/package.json b/node_modules/argparse/package.json index b16de2518..6bb96cb71 100644 --- a/node_modules/argparse/package.json +++ b/node_modules/argparse/package.json @@ -31,4 +31,8 @@ "mocha": "^3.1.0", "ndoc": "^5.0.1" } + +,"_resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" +,"_integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==" +,"_from": "argparse@1.0.10" } \ No newline at end of file diff --git a/node_modules/array-find-index/package.json b/node_modules/array-find-index/package.json index ed7544350..8fdab7d97 100644 --- a/node_modules/array-find-index/package.json +++ b/node_modules/array-find-index/package.json @@ -32,4 +32,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz" +,"_integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=" +,"_from": "array-find-index@1.0.2" } \ No newline at end of file diff --git a/node_modules/array-union/package.json b/node_modules/array-union/package.json index ca61e74cb..a7f5d17e0 100644 --- a/node_modules/array-union/package.json +++ b/node_modules/array-union/package.json @@ -1,38 +1,42 @@ { - "name": "array-union", - "version": "2.1.0", - "description": "Create an array of unique values, in order, from the input arrays", - "license": "MIT", - "repository": "sindresorhus/array-union", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "array", - "set", - "uniq", - "unique", - "duplicate", - "remove", - "union", - "combine", - "merge" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "array-union", + "version": "2.1.0", + "description": "Create an array of unique values, in order, from the input arrays", + "license": "MIT", + "repository": "sindresorhus/array-union", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "array", + "set", + "uniq", + "unique", + "duplicate", + "remove", + "union", + "combine", + "merge" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" +,"_integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" +,"_from": "array-union@2.1.0" } \ No newline at end of file diff --git a/node_modules/arrgv/package.json b/node_modules/arrgv/package.json index 620775aeb..db0f2f523 100644 --- a/node_modules/arrgv/package.json +++ b/node_modules/arrgv/package.json @@ -30,4 +30,8 @@ "argv" ], "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/arrgv/-/arrgv-1.0.2.tgz" +,"_integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==" +,"_from": "arrgv@1.0.2" } \ No newline at end of file diff --git a/node_modules/arrify/package.json b/node_modules/arrify/package.json index 223b18354..5a1a8c0b5 100644 --- a/node_modules/arrify/package.json +++ b/node_modules/arrify/package.json @@ -1,35 +1,39 @@ { - "name": "arrify", - "version": "2.0.1", - "description": "Convert a value to an array", - "license": "MIT", - "repository": "sindresorhus/arrify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "array", - "arrify", - "arrayify", - "convert", - "value", - "ensure" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "arrify", + "version": "2.0.1", + "description": "Convert a value to an array", + "license": "MIT", + "repository": "sindresorhus/arrify", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "array", + "arrify", + "arrayify", + "convert", + "value", + "ensure" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz" +,"_integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" +,"_from": "arrify@2.0.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/acorn-walk/package.json b/node_modules/ava/node_modules/acorn-walk/package.json index 1cbd11682..555e40782 100644 --- a/node_modules/ava/node_modules/acorn-walk/package.json +++ b/node_modules/ava/node_modules/acorn-walk/package.json @@ -6,9 +6,7 @@ "types": "dist/walk.d.ts", "module": "dist/walk.mjs", "version": "7.1.1", - "engines": { - "node": ">=0.4.0" - }, + "engines": {"node": ">=0.4.0"}, "maintainers": [ { "name": "Marijn Haverbeke", @@ -33,4 +31,8 @@ "prepare": "cd ..; npm run build:walk" }, "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.1.1.tgz" +,"_integrity": "sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==" +,"_from": "acorn-walk@7.1.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/ansi-styles/package.json b/node_modules/ava/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/ava/node_modules/ansi-styles/package.json +++ b/node_modules/ava/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/chalk/package.json b/node_modules/ava/node_modules/chalk/package.json index bb745bb89..1266d81f3 100644 --- a/node_modules/ava/node_modules/chalk/package.json +++ b/node_modules/ava/node_modules/chalk/package.json @@ -1,68 +1,72 @@ { - "name": "chalk", - "version": "4.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", - "main": "source", - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^4.0.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^15.0.0", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.28.2" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" - } - } + "name": "chalk", + "version": "4.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "funding": "https://github.com/chalk/chalk?sponsor=1", + "main": "source", + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^4.0.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^15.0.0", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.28.2" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off", + "@typescript-eslint/member-ordering": "off", + "no-redeclare": "off", + "unicorn/string-content": "off", + "unicorn/better-regex": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz" +,"_integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==" +,"_from": "chalk@4.0.0" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/color-convert/package.json b/node_modules/ava/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/ava/node_modules/color-convert/package.json +++ b/node_modules/ava/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/color-name/package.json b/node_modules/ava/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/ava/node_modules/color-name/package.json +++ b/node_modules/ava/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/escape-string-regexp/package.json b/node_modules/ava/node_modules/escape-string-regexp/package.json index d7bec7c3d..99dd980e9 100644 --- a/node_modules/ava/node_modules/escape-string-regexp/package.json +++ b/node_modules/ava/node_modules/escape-string-regexp/package.json @@ -1,43 +1,47 @@ { - "name": "escape-string-regexp", - "version": "2.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Boy Nicolai Appelman (jbna.nl)" - ], - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "re", - "regular", - "expression", - "string", - "str", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "escape-string-regexp", + "version": "2.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Boy Nicolai Appelman (jbna.nl)" + ], + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "re", + "regular", + "expression", + "string", + "str", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" +,"_integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" +,"_from": "escape-string-regexp@2.0.0" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/has-flag/package.json b/node_modules/ava/node_modules/has-flag/package.json index 55d0058e4..5b10a2844 100644 --- a/node_modules/ava/node_modules/has-flag/package.json +++ b/node_modules/ava/node_modules/has-flag/package.json @@ -1,46 +1,50 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" +,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" +,"_from": "has-flag@4.0.0" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/source-map-support/package.json b/node_modules/ava/node_modules/source-map-support/package.json index f15f25283..febada891 100644 --- a/node_modules/ava/node_modules/source-map-support/package.json +++ b/node_modules/ava/node_modules/source-map-support/package.json @@ -28,4 +28,8 @@ "url": "https://github.com/evanw/node-source-map-support/issues" }, "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz" +,"_integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==" +,"_from": "source-map-support@0.5.19" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/stack-utils/package.json b/node_modules/ava/node_modules/stack-utils/package.json index 186d32844..1f6223fa4 100644 --- a/node_modules/ava/node_modules/stack-utils/package.json +++ b/node_modules/ava/node_modules/stack-utils/package.json @@ -32,4 +32,8 @@ "q": "^1.5.1", "tap": "=14.10.2-unbundled" } + +,"_resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.2.tgz" +,"_integrity": "sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg==" +,"_from": "stack-utils@2.0.2" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/supports-color/package.json b/node_modules/ava/node_modules/supports-color/package.json index 79856038d..f0982eb21 100644 --- a/node_modules/ava/node_modules/supports-color/package.json +++ b/node_modules/ava/node_modules/supports-color/package.json @@ -1,53 +1,57 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" +,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" +,"_from": "supports-color@7.1.0" } \ No newline at end of file diff --git a/node_modules/ava/package.json b/node_modules/ava/package.json index 03146bb13..79ccc8482 100644 --- a/node_modules/ava/package.json +++ b/node_modules/ava/package.json @@ -1,140 +1,144 @@ { - "name": "ava", - "version": "3.8.1", - "description": "Testing can be a drag. AVA helps you get it done.", - "license": "MIT", - "repository": "avajs/ava", - "homepage": "https://avajs.dev", - "bin": "cli.js", - "engines": { - "node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0 <14 || >=14.0.0" - }, - "scripts": { - "test": "xo && tsd && c8 tap" - }, - "files": [ - "lib", - "*.js", - "!*.config.js", - "index.d.ts" - ], - "keywords": [ - "🦄", - "test", - "runner", - "testing", - "ava", - "concurrent", - "parallel", - "fast", - "tdd", - "cli-app", - "cli", - "jest", - "mocha", - "tape", - "tap", - "qunit", - "jasmine", - "babel", - "assert", - "assertion", - "promise", - "promises", - "async", - "function", - "await", - "generator", - "generators", - "yield", - "observable", - "observables", - "unit", - "snapshot", - "expect", - "typescript" - ], - "dependencies": { - "@concordance/react": "^2.0.0", - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1", - "ansi-styles": "^4.2.1", - "arrgv": "^1.0.2", - "arrify": "^2.0.1", - "callsites": "^3.1.0", - "chalk": "^4.0.0", - "chokidar": "^3.4.0", - "chunkd": "^2.0.1", - "ci-info": "^2.0.0", - "ci-parallel-vars": "^1.0.0", - "clean-yaml-object": "^0.1.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^2.1.1", - "common-path-prefix": "^3.0.0", - "concordance": "^4.0.0", - "convert-source-map": "^1.7.0", - "currently-unhandled": "^0.4.1", - "debug": "^4.1.1", - "del": "^5.1.0", - "emittery": "^0.6.0", - "equal-length": "^1.0.0", - "figures": "^3.2.0", - "globby": "^11.0.0", - "ignore-by-default": "^1.0.0", - "import-local": "^3.0.2", - "indent-string": "^4.0.0", - "is-error": "^2.2.2", - "is-plain-object": "^3.0.0", - "is-promise": "^3.0.0", - "lodash": "^4.17.15", - "matcher": "^3.0.0", - "md5-hex": "^3.0.1", - "mem": "^6.1.0", - "ms": "^2.1.2", - "ora": "^4.0.4", - "p-map": "^4.0.0", - "picomatch": "^2.2.2", - "pkg-conf": "^3.1.0", - "plur": "^4.0.0", - "pretty-ms": "^6.0.1", - "read-pkg": "^5.2.0", - "resolve-cwd": "^3.0.0", - "slash": "^3.0.0", - "source-map-support": "^0.5.19", - "stack-utils": "^2.0.1", - "strip-ansi": "^6.0.0", - "supertap": "^1.0.0", - "temp-dir": "^2.0.0", - "trim-off-newlines": "^1.0.1", - "update-notifier": "^4.1.0", - "write-file-atomic": "^3.0.3", - "yargs": "^15.3.1" - }, - "devDependencies": { - "@ava/babel": "^1.0.1", - "@babel/plugin-proposal-do-expressions": "^7.8.3", - "@sinonjs/fake-timers": "^6.0.1", - "ansi-escapes": "^4.3.1", - "c8": "^7.1.0", - "delay": "^4.3.0", - "esm": "^3.2.25", - "execa": "^4.0.0", - "get-stream": "^5.1.0", - "p-event": "^4.1.0", - "proxyquire": "^2.1.3", - "react": "^16.13.1", - "react-test-renderer": "^16.13.1", - "replace-string": "^3.0.0", - "sinon": "^9.0.2", - "source-map-fixtures": "^2.1.0", - "tap": "^14.10.7", - "temp-write": "^4.0.0", - "tempy": "^0.5.0", - "touch": "^3.1.0", - "tsd": "^0.11.0", - "typescript": "^3.8.3", - "xo": "^0.30.0", - "zen-observable": "^0.8.15" - } + "name": "ava", + "version": "3.8.1", + "description": "Testing can be a drag. AVA helps you get it done.", + "license": "MIT", + "repository": "avajs/ava", + "homepage": "https://avajs.dev", + "bin": "cli.js", + "engines": { + "node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0 <14 || >=14.0.0" + }, + "scripts": { + "test": "xo && tsd && c8 tap" + }, + "files": [ + "lib", + "*.js", + "!*.config.js", + "index.d.ts" + ], + "keywords": [ + "🦄", + "test", + "runner", + "testing", + "ava", + "concurrent", + "parallel", + "fast", + "tdd", + "cli-app", + "cli", + "jest", + "mocha", + "tape", + "tap", + "qunit", + "jasmine", + "babel", + "assert", + "assertion", + "promise", + "promises", + "async", + "function", + "await", + "generator", + "generators", + "yield", + "observable", + "observables", + "unit", + "snapshot", + "expect", + "typescript" + ], + "dependencies": { + "@concordance/react": "^2.0.0", + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1", + "ansi-styles": "^4.2.1", + "arrgv": "^1.0.2", + "arrify": "^2.0.1", + "callsites": "^3.1.0", + "chalk": "^4.0.0", + "chokidar": "^3.4.0", + "chunkd": "^2.0.1", + "ci-info": "^2.0.0", + "ci-parallel-vars": "^1.0.0", + "clean-yaml-object": "^0.1.0", + "cli-cursor": "^3.1.0", + "cli-truncate": "^2.1.0", + "code-excerpt": "^2.1.1", + "common-path-prefix": "^3.0.0", + "concordance": "^4.0.0", + "convert-source-map": "^1.7.0", + "currently-unhandled": "^0.4.1", + "debug": "^4.1.1", + "del": "^5.1.0", + "emittery": "^0.6.0", + "equal-length": "^1.0.0", + "figures": "^3.2.0", + "globby": "^11.0.0", + "ignore-by-default": "^1.0.0", + "import-local": "^3.0.2", + "indent-string": "^4.0.0", + "is-error": "^2.2.2", + "is-plain-object": "^3.0.0", + "is-promise": "^3.0.0", + "lodash": "^4.17.15", + "matcher": "^3.0.0", + "md5-hex": "^3.0.1", + "mem": "^6.1.0", + "ms": "^2.1.2", + "ora": "^4.0.4", + "p-map": "^4.0.0", + "picomatch": "^2.2.2", + "pkg-conf": "^3.1.0", + "plur": "^4.0.0", + "pretty-ms": "^6.0.1", + "read-pkg": "^5.2.0", + "resolve-cwd": "^3.0.0", + "slash": "^3.0.0", + "source-map-support": "^0.5.19", + "stack-utils": "^2.0.1", + "strip-ansi": "^6.0.0", + "supertap": "^1.0.0", + "temp-dir": "^2.0.0", + "trim-off-newlines": "^1.0.1", + "update-notifier": "^4.1.0", + "write-file-atomic": "^3.0.3", + "yargs": "^15.3.1" + }, + "devDependencies": { + "@ava/babel": "^1.0.1", + "@babel/plugin-proposal-do-expressions": "^7.8.3", + "@sinonjs/fake-timers": "^6.0.1", + "ansi-escapes": "^4.3.1", + "c8": "^7.1.0", + "delay": "^4.3.0", + "esm": "^3.2.25", + "execa": "^4.0.0", + "get-stream": "^5.1.0", + "p-event": "^4.1.0", + "proxyquire": "^2.1.3", + "react": "^16.13.1", + "react-test-renderer": "^16.13.1", + "replace-string": "^3.0.0", + "sinon": "^9.0.2", + "source-map-fixtures": "^2.1.0", + "tap": "^14.10.7", + "temp-write": "^4.0.0", + "tempy": "^0.5.0", + "touch": "^3.1.0", + "tsd": "^0.11.0", + "typescript": "^3.8.3", + "xo": "^0.30.0", + "zen-observable": "^0.8.15" + } + +,"_resolved": "https://registry.npmjs.org/ava/-/ava-3.8.1.tgz" +,"_integrity": "sha512-OPWrTxcf1EbtAaGGFQPLbx4AaVqPrFMumKOKn2SzIRo+RTKb33lF2aoVnWqBeZaJ68uSc9R6jqIE7qkG6O33uQ==" +,"_from": "ava@3.8.1" } \ No newline at end of file diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json index 55ba6f00e..5fc21da86 100644 --- a/node_modules/balanced-match/package.json +++ b/node_modules/balanced-match/package.json @@ -46,4 +46,8 @@ "android-browser/4.2..latest" ] } + +,"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" +,"_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" +,"_from": "balanced-match@1.0.0" } \ No newline at end of file diff --git a/node_modules/before-after-hook/package.json b/node_modules/before-after-hook/package.json index ddd5acbe7..e43a284df 100644 --- a/node_modules/before-after-hook/package.json +++ b/node_modules/before-after-hook/package.json @@ -67,4 +67,8 @@ } ] } + +,"_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz" +,"_integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==" +,"_from": "before-after-hook@2.1.0" } \ No newline at end of file diff --git a/node_modules/binary-extensions/package.json b/node_modules/binary-extensions/package.json index e1ec6292f..29fed23f6 100644 --- a/node_modules/binary-extensions/package.json +++ b/node_modules/binary-extensions/package.json @@ -1,38 +1,42 @@ { - "name": "binary-extensions", - "version": "2.0.0", - "description": "List of binary file extensions", - "license": "MIT", - "repository": "sindresorhus/binary-extensions", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "binary-extensions.json", - "binary-extensions.json.d.ts" - ], - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "json", - "list", - "array" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "binary-extensions", + "version": "2.0.0", + "description": "List of binary file extensions", + "license": "MIT", + "repository": "sindresorhus/binary-extensions", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "binary-extensions.json", + "binary-extensions.json.d.ts" + ], + "keywords": [ + "binary", + "extensions", + "extension", + "file", + "json", + "list", + "array" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz" +,"_integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==" +,"_from": "binary-extensions@2.0.0" } \ No newline at end of file diff --git a/node_modules/blueimp-md5/package.json b/node_modules/blueimp-md5/package.json index c7b89fc14..4fcfc0813 100644 --- a/node_modules/blueimp-md5/package.json +++ b/node_modules/blueimp-md5/package.json @@ -70,4 +70,8 @@ "js/*.js.map" ], "main": "js/md5.js" + +,"_resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.15.0.tgz" +,"_integrity": "sha512-Zc6sowqlCWu3+V0bocZwdaPPXlRv14EHtYcQDCOghj9EdyKLMkAOODBh3HHAx5r7QRylDYCOaXa/b/edgBLDpA==" +,"_from": "blueimp-md5@2.15.0" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/ansi-styles/package.json b/node_modules/boxen/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/boxen/node_modules/ansi-styles/package.json +++ b/node_modules/boxen/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/chalk/package.json b/node_modules/boxen/node_modules/chalk/package.json index b68e931e7..c75d30e94 100644 --- a/node_modules/boxen/node_modules/chalk/package.json +++ b/node_modules/boxen/node_modules/chalk/package.json @@ -1,63 +1,67 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" +,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" +,"_from": "chalk@3.0.0" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/color-convert/package.json b/node_modules/boxen/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/boxen/node_modules/color-convert/package.json +++ b/node_modules/boxen/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/color-name/package.json b/node_modules/boxen/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/boxen/node_modules/color-name/package.json +++ b/node_modules/boxen/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/has-flag/package.json b/node_modules/boxen/node_modules/has-flag/package.json index 55d0058e4..5b10a2844 100644 --- a/node_modules/boxen/node_modules/has-flag/package.json +++ b/node_modules/boxen/node_modules/has-flag/package.json @@ -1,46 +1,50 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" +,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" +,"_from": "has-flag@4.0.0" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/supports-color/package.json b/node_modules/boxen/node_modules/supports-color/package.json index 79856038d..f0982eb21 100644 --- a/node_modules/boxen/node_modules/supports-color/package.json +++ b/node_modules/boxen/node_modules/supports-color/package.json @@ -1,53 +1,57 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" +,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" +,"_from": "supports-color@7.1.0" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/type-fest/package.json b/node_modules/boxen/node_modules/type-fest/package.json index 4ae131df3..e896022e8 100644 --- a/node_modules/boxen/node_modules/type-fest/package.json +++ b/node_modules/boxen/node_modules/type-fest/package.json @@ -1,51 +1,55 @@ { - "name": "type-fest", - "version": "0.8.1", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.4.0", - "@typescript-eslint/eslint-plugin": "^2.2.0", - "@typescript-eslint/parser": "^2.2.0", - "eslint-config-xo-typescript": "^0.18.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off", - "@typescript-eslint/indent": "off" - } - } + "name": "type-fest", + "version": "0.8.1", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.4.0", + "@typescript-eslint/eslint-plugin": "^2.2.0", + "@typescript-eslint/parser": "^2.2.0", + "eslint-config-xo-typescript": "^0.18.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off", + "@typescript-eslint/indent": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" +,"_integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" +,"_from": "type-fest@0.8.1" } \ No newline at end of file diff --git a/node_modules/boxen/package.json b/node_modules/boxen/package.json index 9ecbd6db5..003986fb7 100644 --- a/node_modules/boxen/package.json +++ b/node_modules/boxen/package.json @@ -1,51 +1,55 @@ { - "name": "boxen", - "version": "4.2.0", - "description": "Create boxes in the terminal", - "license": "MIT", - "repository": "sindresorhus/boxen", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "box", - "boxes", - "terminal", - "term", - "console", - "ascii", - "unicode", - "border", - "text" - ], - "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "nyc": "^14.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "boxen", + "version": "4.2.0", + "description": "Create boxes in the terminal", + "license": "MIT", + "repository": "sindresorhus/boxen", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "box", + "boxes", + "terminal", + "term", + "console", + "ascii", + "unicode", + "border", + "text" + ], + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "nyc": "^14.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz" +,"_integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==" +,"_from": "boxen@4.2.0" } \ No newline at end of file diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json index c8e652883..99f83cd7d 100644 --- a/node_modules/brace-expansion/package.json +++ b/node_modules/brace-expansion/package.json @@ -44,4 +44,8 @@ "android-browser/4.2..latest" ] } + +,"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" +,"_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" +,"_from": "brace-expansion@1.1.11" } \ No newline at end of file diff --git a/node_modules/braces/package.json b/node_modules/braces/package.json index da327631e..008f6401a 100644 --- a/node_modules/braces/package.json +++ b/node_modules/braces/package.json @@ -74,4 +74,8 @@ "gulp-format-md" ] } + +,"_resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" +,"_integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" +,"_from": "braces@3.0.2" } \ No newline at end of file diff --git a/node_modules/buffer-from/package.json b/node_modules/buffer-from/package.json index 22277b00f..a01e0f19a 100644 --- a/node_modules/buffer-from/package.json +++ b/node_modules/buffer-from/package.json @@ -16,4 +16,8 @@ "buffer", "buffer from" ] + +,"_resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" +,"_integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" +,"_from": "buffer-from@1.1.1" } \ No newline at end of file diff --git a/node_modules/builtin-modules/package.json b/node_modules/builtin-modules/package.json index 3ea9033b3..830ed46e2 100644 --- a/node_modules/builtin-modules/package.json +++ b/node_modules/builtin-modules/package.json @@ -37,4 +37,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz" +,"_integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" +,"_from": "builtin-modules@1.1.1" } \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/package.json b/node_modules/cacheable-request/node_modules/get-stream/package.json index 7c86cfc9f..646812e99 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/package.json +++ b/node_modules/cacheable-request/node_modules/get-stream/package.json @@ -1,49 +1,53 @@ { - "name": "get-stream", - "version": "5.1.0", - "description": "Get a stream as a string, buffer, or array", - "license": "MIT", - "repository": "sindresorhus/get-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "buffer-stream.js" - ], - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object" - ], - "dependencies": { - "pump": "^3.0.0" - }, - "devDependencies": { - "@types/node": "^11.13.0", - "ava": "^1.4.1", - "into-stream": "^5.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "get-stream", + "version": "5.1.0", + "description": "Get a stream as a string, buffer, or array", + "license": "MIT", + "repository": "sindresorhus/get-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "buffer-stream.js" + ], + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object" + ], + "dependencies": { + "pump": "^3.0.0" + }, + "devDependencies": { + "@types/node": "^11.13.0", + "ava": "^1.4.1", + "into-stream": "^5.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz" +,"_integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==" +,"_from": "get-stream@5.1.0" } \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json index f9e75a348..abe6ca778 100644 --- a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +++ b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json @@ -1,38 +1,42 @@ { - "name": "lowercase-keys", - "version": "2.0.0", - "description": "Lowercase the keys of an object", - "license": "MIT", - "repository": "sindresorhus/lowercase-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "assign", - "extend", - "properties", - "lowercase", - "lower-case", - "case", - "keys", - "key" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "lowercase-keys", + "version": "2.0.0", + "description": "Lowercase the keys of an object", + "license": "MIT", + "repository": "sindresorhus/lowercase-keys", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "assign", + "extend", + "properties", + "lowercase", + "lower-case", + "case", + "keys", + "key" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" +,"_integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" +,"_from": "lowercase-keys@2.0.0" } \ No newline at end of file diff --git a/node_modules/cacheable-request/package.json b/node_modules/cacheable-request/package.json index ba9468bd6..3b9865307 100644 --- a/node_modules/cacheable-request/package.json +++ b/node_modules/cacheable-request/package.json @@ -1,56 +1,60 @@ { - "name": "cacheable-request", - "version": "6.1.0", - "description": "Wrap native HTTP requests with RFC compliant cache support", - "license": "MIT", - "repository": "lukechilds/cacheable-request", - "author": "Luke Childs (http://lukechilds.co.uk)", - "main": "src/index.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava", - "coverage": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "src" - ], - "keywords": [ - "HTTP", - "HTTPS", - "cache", - "caching", - "layer", - "cacheable", - "RFC 7234", - "RFC", - "7234", - "compliant" - ], - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "devDependencies": { - "@keyv/sqlite": "^2.0.0", - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "create-test-server": "3.0.0", - "delay": "^4.0.0", - "eslint-config-xo-lukechilds": "^1.0.0", - "nyc": "^14.1.1", - "pify": "^4.0.0", - "sqlite3": "^4.0.2", - "this": "^1.0.2", - "xo": "^0.23.0" - }, - "xo": { - "extends": "xo-lukechilds" - } + "name": "cacheable-request", + "version": "6.1.0", + "description": "Wrap native HTTP requests with RFC compliant cache support", + "license": "MIT", + "repository": "lukechilds/cacheable-request", + "author": "Luke Childs (http://lukechilds.co.uk)", + "main": "src/index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava", + "coverage": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "src" + ], + "keywords": [ + "HTTP", + "HTTPS", + "cache", + "caching", + "layer", + "cacheable", + "RFC 7234", + "RFC", + "7234", + "compliant" + ], + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "devDependencies": { + "@keyv/sqlite": "^2.0.0", + "ava": "^1.1.0", + "coveralls": "^3.0.0", + "create-test-server": "3.0.0", + "delay": "^4.0.0", + "eslint-config-xo-lukechilds": "^1.0.0", + "nyc": "^14.1.1", + "pify": "^4.0.0", + "sqlite3": "^4.0.2", + "this": "^1.0.2", + "xo": "^0.23.0" + }, + "xo": { + "extends": "xo-lukechilds" + } + +,"_resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz" +,"_integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==" +,"_from": "cacheable-request@6.1.0" } \ No newline at end of file diff --git a/node_modules/callsites/package.json b/node_modules/callsites/package.json index 46b1de0c6..7e70e5686 100644 --- a/node_modules/callsites/package.json +++ b/node_modules/callsites/package.json @@ -1,39 +1,43 @@ { - "name": "callsites", - "version": "3.1.0", - "description": "Get callsites from the V8 stack trace API", - "license": "MIT", - "repository": "sindresorhus/callsites", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "stacktrace", - "v8", - "callsite", - "callsites", - "stack", - "trace", - "function", - "file", - "line", - "debug" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "callsites", + "version": "3.1.0", + "description": "Get callsites from the V8 stack trace API", + "license": "MIT", + "repository": "sindresorhus/callsites", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "stacktrace", + "v8", + "callsite", + "callsites", + "stack", + "trace", + "function", + "file", + "line", + "debug" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" +,"_integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" +,"_from": "callsites@3.1.0" } \ No newline at end of file diff --git a/node_modules/camelcase/package.json b/node_modules/camelcase/package.json index 1b48bb0da..07bc8fe9c 100644 --- a/node_modules/camelcase/package.json +++ b/node_modules/camelcase/package.json @@ -1,43 +1,47 @@ { - "name": "camelcase", - "version": "5.3.1", - "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", - "license": "MIT", - "repository": "sindresorhus/camelcase", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "camelcase", - "camel-case", - "camel", - "case", - "dash", - "hyphen", - "dot", - "underscore", - "separator", - "string", - "text", - "convert", - "pascalcase", - "pascal-case" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "camelcase", + "version": "5.3.1", + "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", + "license": "MIT", + "repository": "sindresorhus/camelcase", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "camelcase", + "camel-case", + "camel", + "case", + "dash", + "hyphen", + "dot", + "underscore", + "separator", + "string", + "text", + "convert", + "pascalcase", + "pascal-case" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" +,"_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" +,"_from": "camelcase@5.3.1" } \ No newline at end of file diff --git a/node_modules/chalk/package.json b/node_modules/chalk/package.json index aed521aec..0b96e3717 100644 --- a/node_modules/chalk/package.json +++ b/node_modules/chalk/package.json @@ -1,71 +1,75 @@ { - "name": "chalk", - "version": "2.4.2", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", - "bench": "matcha benchmark.js", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "index.js", - "templates.js", - "types/index.d.ts", - "index.js.flow" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "devDependencies": { - "ava": "*", - "coveralls": "^3.0.0", - "execa": "^0.9.0", - "flow-bin": "^0.68.0", - "import-fresh": "^2.0.0", - "matcha": "^0.7.0", - "nyc": "^11.0.2", - "resolve-from": "^4.0.0", - "typescript": "^2.5.3", - "xo": "*" - }, - "types": "types/index.d.ts", - "xo": { - "envs": [ - "node", - "mocha" - ], - "ignores": [ - "test/_flow.js" - ] - } + "name": "chalk", + "version": "2.4.2", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", + "bench": "matcha benchmark.js", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "index.js", + "templates.js", + "types/index.d.ts", + "index.js.flow" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "devDependencies": { + "ava": "*", + "coveralls": "^3.0.0", + "execa": "^0.9.0", + "flow-bin": "^0.68.0", + "import-fresh": "^2.0.0", + "matcha": "^0.7.0", + "nyc": "^11.0.2", + "resolve-from": "^4.0.0", + "typescript": "^2.5.3", + "xo": "*" + }, + "types": "types/index.d.ts", + "xo": { + "envs": [ + "node", + "mocha" + ], + "ignores": [ + "test/_flow.js" + ] + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" +,"_integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" +,"_from": "chalk@2.4.2" } \ No newline at end of file diff --git a/node_modules/charenc/package.json b/node_modules/charenc/package.json index 80ac698de..df5475001 100644 --- a/node_modules/charenc/package.json +++ b/node_modules/charenc/package.json @@ -21,4 +21,8 @@ "engines": { "node": "*" } + +,"_resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz" +,"_integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" +,"_from": "charenc@0.0.2" } \ No newline at end of file diff --git a/node_modules/chokidar/node_modules/anymatch/package.json b/node_modules/chokidar/node_modules/anymatch/package.json index aa33dbcdb..5b9f2c4fa 100644 --- a/node_modules/chokidar/node_modules/anymatch/package.json +++ b/node_modules/chokidar/node_modules/anymatch/package.json @@ -45,4 +45,8 @@ "engines": { "node": ">= 8" } + +,"_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" +,"_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==" +,"_from": "anymatch@3.1.1" } \ No newline at end of file diff --git a/node_modules/chokidar/node_modules/normalize-path/package.json b/node_modules/chokidar/node_modules/normalize-path/package.json index 101634b95..73ab0c933 100644 --- a/node_modules/chokidar/node_modules/normalize-path/package.json +++ b/node_modules/chokidar/node_modules/normalize-path/package.json @@ -74,4 +74,8 @@ "reflinks": true } } + +,"_resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" +,"_integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" +,"_from": "normalize-path@3.0.0" } \ No newline at end of file diff --git a/node_modules/chokidar/package.json b/node_modules/chokidar/package.json index 84d082a47..0891bbdf2 100644 --- a/node_modules/chokidar/package.json +++ b/node_modules/chokidar/package.json @@ -125,4 +125,8 @@ "text" ] } + +,"_resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz" +,"_integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==" +,"_from": "chokidar@3.4.0" } \ No newline at end of file diff --git a/node_modules/chunkd/package.json b/node_modules/chunkd/package.json index 6dfab968b..ea5843112 100644 --- a/node_modules/chunkd/package.json +++ b/node_modules/chunkd/package.json @@ -1,54 +1,58 @@ { - "name": "chunkd", - "version": "2.0.1", - "description": "Get a chunk of an array based on the total number of chunks and current index", - "main": "dist/chunkd.js", - "repository": "jamiebuilds/chunkd", - "author": "Jamie Kyle ", - "license": "MIT", - "keywords": [ - "util", - "chunk", - "index", - "total" - ], - "files": [ - "dist" - ], - "scripts": { - "check:typescript": "tsc --noEmit", - "check:prettier": "prettier --check '**'", - "build": "rm -rf dist && tsc", - "format": "prettier --write '**'", - "test": "ava", - "prepublishOnly": "npm run -s build" - }, - "devDependencies": { - "ava": "^2.4.0", - "husky": "^3.1.0", - "lint-staged": "^9.4.3", - "prettier": "^1.19.1", - "ts-node": "^8.5.2", - "typescript": "^3.7.2" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*": [ - "prettier --write", - "git add" - ] - }, - "ava": { - "compileEnhancements": false, - "extensions": [ - "ts" - ], - "require": [ - "ts-node/register" - ] - } + "name": "chunkd", + "version": "2.0.1", + "description": "Get a chunk of an array based on the total number of chunks and current index", + "main": "dist/chunkd.js", + "repository": "jamiebuilds/chunkd", + "author": "Jamie Kyle ", + "license": "MIT", + "keywords": [ + "util", + "chunk", + "index", + "total" + ], + "files": [ + "dist" + ], + "scripts": { + "check:typescript": "tsc --noEmit", + "check:prettier": "prettier --check '**'", + "build": "rm -rf dist && tsc", + "format": "prettier --write '**'", + "test": "ava", + "prepublishOnly": "npm run -s build" + }, + "devDependencies": { + "ava": "^2.4.0", + "husky": "^3.1.0", + "lint-staged": "^9.4.3", + "prettier": "^1.19.1", + "ts-node": "^8.5.2", + "typescript": "^3.7.2" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*": [ + "prettier --write", + "git add" + ] + }, + "ava": { + "compileEnhancements": false, + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" + ] + } + +,"_resolved": "https://registry.npmjs.org/chunkd/-/chunkd-2.0.1.tgz" +,"_integrity": "sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==" +,"_from": "chunkd@2.0.1" } \ No newline at end of file diff --git a/node_modules/ci-info/package.json b/node_modules/ci-info/package.json index b3f5c2ca9..a62c59e19 100644 --- a/node_modules/ci-info/package.json +++ b/node_modules/ci-info/package.json @@ -33,4 +33,8 @@ 55.778231, 12.593179 ] + +,"_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" +,"_integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" +,"_from": "ci-info@2.0.0" } \ No newline at end of file diff --git a/node_modules/ci-parallel-vars/package.json b/node_modules/ci-parallel-vars/package.json index 5e6cc758a..a865c584e 100644 --- a/node_modules/ci-parallel-vars/package.json +++ b/node_modules/ci-parallel-vars/package.json @@ -33,4 +33,8 @@ "flow-bin": "^0.73.0", "spawndamnit": "^2.0.0" } + +,"_resolved": "https://registry.npmjs.org/ci-parallel-vars/-/ci-parallel-vars-1.0.0.tgz" +,"_integrity": "sha512-u6dx20FBXm+apMi+5x7UVm6EH7BL1gc4XrcnQewjcB7HWRcor/V5qWc3RG2HwpgDJ26gIi2DSEu3B7sXynAw/g==" +,"_from": "ci-parallel-vars@1.0.0" } \ No newline at end of file diff --git a/node_modules/clean-stack/package.json b/node_modules/clean-stack/package.json index fb9bd0b77..c727708c6 100644 --- a/node_modules/clean-stack/package.json +++ b/node_modules/clean-stack/package.json @@ -1,39 +1,43 @@ { - "name": "clean-stack", - "version": "2.2.0", - "description": "Clean up error stack traces", - "license": "MIT", - "repository": "sindresorhus/clean-stack", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "clean", - "stack", - "trace", - "traces", - "error", - "err", - "electron" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "browser": { - "os": false - } + "name": "clean-stack", + "version": "2.2.0", + "description": "Clean up error stack traces", + "license": "MIT", + "repository": "sindresorhus/clean-stack", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "clean", + "stack", + "trace", + "traces", + "error", + "err", + "electron" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "browser": { + "os": false + } + +,"_resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" +,"_integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" +,"_from": "clean-stack@2.2.0" } \ No newline at end of file diff --git a/node_modules/clean-yaml-object/package.json b/node_modules/clean-yaml-object/package.json index 27a6564ba..6b362458f 100644 --- a/node_modules/clean-yaml-object/package.json +++ b/node_modules/clean-yaml-object/package.json @@ -34,4 +34,8 @@ "nyc": "^5.3.0", "xo": "^0.12.1" } + +,"_resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz" +,"_integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=" +,"_from": "clean-yaml-object@0.1.0" } \ No newline at end of file diff --git a/node_modules/cli-boxes/package.json b/node_modules/cli-boxes/package.json index f77701b7e..c4becb60f 100644 --- a/node_modules/cli-boxes/package.json +++ b/node_modules/cli-boxes/package.json @@ -1,41 +1,45 @@ { - "name": "cli-boxes", - "version": "2.2.0", - "description": "Boxes for use in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-boxes", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "boxes.json" - ], - "keywords": [ - "cli", - "box", - "boxes", - "terminal", - "term", - "console", - "ascii", - "unicode", - "border", - "text", - "json" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "cli-boxes", + "version": "2.2.0", + "description": "Boxes for use in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-boxes", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "boxes.json" + ], + "keywords": [ + "cli", + "box", + "boxes", + "terminal", + "term", + "console", + "ascii", + "unicode", + "border", + "text", + "json" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz" +,"_integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==" +,"_from": "cli-boxes@2.2.0" } \ No newline at end of file diff --git a/node_modules/cli-cursor/package.json b/node_modules/cli-cursor/package.json index 38d50d2c4..c4e5e9014 100644 --- a/node_modules/cli-cursor/package.json +++ b/node_modules/cli-cursor/package.json @@ -1,46 +1,50 @@ { - "name": "cli-cursor", - "version": "3.1.0", - "description": "Toggle the CLI cursor", - "license": "MIT", - "repository": "sindresorhus/cli-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "cursor", - "ansi", - "toggle", - "display", - "show", - "hide", - "term", - "terminal", - "console", - "tty", - "shell", - "command-line" - ], - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "devDependencies": { - "@types/node": "^12.0.7", - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "cli-cursor", + "version": "3.1.0", + "description": "Toggle the CLI cursor", + "license": "MIT", + "repository": "sindresorhus/cli-cursor", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "cursor", + "ansi", + "toggle", + "display", + "show", + "hide", + "term", + "terminal", + "console", + "tty", + "shell", + "command-line" + ], + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "devDependencies": { + "@types/node": "^12.0.7", + "ava": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" +,"_integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==" +,"_from": "cli-cursor@3.1.0" } \ No newline at end of file diff --git a/node_modules/cli-spinners/package.json b/node_modules/cli-spinners/package.json index 23323c5f4..4fb3ec4b0 100644 --- a/node_modules/cli-spinners/package.json +++ b/node_modules/cli-spinners/package.json @@ -1,47 +1,51 @@ { - "name": "cli-spinners", - "version": "2.3.0", - "description": "Spinners for use in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-spinners", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd", - "asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet" - }, - "files": [ - "index.js", - "index.d.ts", - "spinners.json" - ], - "keywords": [ - "cli", - "spinner", - "spinners", - "terminal", - "term", - "console", - "ascii", - "unicode", - "loading", - "indicator", - "progress", - "busy", - "wait", - "idle", - "json" - ], - "devDependencies": { - "ava": "^1.4.1", - "log-update": "^3.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "cli-spinners", + "version": "2.3.0", + "description": "Spinners for use in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-spinners", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd", + "asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet" + }, + "files": [ + "index.js", + "index.d.ts", + "spinners.json" + ], + "keywords": [ + "cli", + "spinner", + "spinners", + "terminal", + "term", + "console", + "ascii", + "unicode", + "loading", + "indicator", + "progress", + "busy", + "wait", + "idle", + "json" + ], + "devDependencies": { + "ava": "^1.4.1", + "log-update": "^3.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.3.0.tgz" +,"_integrity": "sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w==" +,"_from": "cli-spinners@2.3.0" } \ No newline at end of file diff --git a/node_modules/cli-truncate/package.json b/node_modules/cli-truncate/package.json index 0d9e9a141..e4933a52c 100644 --- a/node_modules/cli-truncate/package.json +++ b/node_modules/cli-truncate/package.json @@ -1,46 +1,50 @@ { - "name": "cli-truncate", - "version": "2.1.0", - "description": "Truncate a string to a specific width in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-truncate", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "truncate", - "ellipsis", - "text", - "limit", - "slice", - "cli", - "terminal", - "term", - "shell", - "width", - "ansi", - "string" - ], - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "cli-truncate", + "version": "2.1.0", + "description": "Truncate a string to a specific width in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-truncate", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "truncate", + "ellipsis", + "text", + "limit", + "slice", + "cli", + "terminal", + "term", + "shell", + "width", + "ansi", + "string" + ], + "dependencies": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz" +,"_integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==" +,"_from": "cli-truncate@2.1.0" } \ No newline at end of file diff --git a/node_modules/cliui/package.json b/node_modules/cliui/package.json index 2869089cc..513f5ba00 100644 --- a/node_modules/cliui/package.json +++ b/node_modules/cliui/package.json @@ -62,4 +62,8 @@ "engine": { "node": ">=8" } + +,"_resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" +,"_integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==" +,"_from": "cliui@6.0.0" } \ No newline at end of file diff --git a/node_modules/clone-response/package.json b/node_modules/clone-response/package.json index 24e834356..e6bead037 100644 --- a/node_modules/clone-response/package.json +++ b/node_modules/clone-response/package.json @@ -41,4 +41,8 @@ "pify": "^3.0.0", "xo": "^0.19.0" } + +,"_resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz" +,"_integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=" +,"_from": "clone-response@1.0.2" } \ No newline at end of file diff --git a/node_modules/clone/package.json b/node_modules/clone/package.json index 9305b656e..075e6aeae 100644 --- a/node_modules/clone/package.json +++ b/node_modules/clone/package.json @@ -48,4 +48,8 @@ "scripts": { "test": "nodeunit test.js" } + +,"_resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" +,"_integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" +,"_from": "clone@1.0.4" } \ No newline at end of file diff --git a/node_modules/code-excerpt/package.json b/node_modules/code-excerpt/package.json index 1f55433e7..9ec17bf8e 100644 --- a/node_modules/code-excerpt/package.json +++ b/node_modules/code-excerpt/package.json @@ -28,4 +28,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-2.1.1.tgz" +,"_integrity": "sha512-tJLhH3EpFm/1x7heIW0hemXJTUU5EWl2V0EIX558jp05Mt1U6DVryCgkp3l37cxqs+DNbNgxG43SkwJXpQ14Jw==" +,"_from": "code-excerpt@2.1.1" } \ No newline at end of file diff --git a/node_modules/color-convert/package.json b/node_modules/color-convert/package.json index 6446c22d5..faaa48587 100644 --- a/node_modules/color-convert/package.json +++ b/node_modules/color-convert/package.json @@ -43,4 +43,8 @@ "dependencies": { "color-name": "1.1.3" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" +,"_integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==" +,"_from": "color-convert@1.9.3" } \ No newline at end of file diff --git a/node_modules/color-name/package.json b/node_modules/color-name/package.json index 40d588535..0afa4856d 100644 --- a/node_modules/color-name/package.json +++ b/node_modules/color-name/package.json @@ -22,4 +22,8 @@ "url": "https://github.com/dfcreative/color-name/issues" }, "homepage": "https://github.com/dfcreative/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" +,"_integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" +,"_from": "color-name@1.1.3" } \ No newline at end of file diff --git a/node_modules/commander/package.json b/node_modules/commander/package.json index 8b14f0069..4c42e53cc 100644 --- a/node_modules/commander/package.json +++ b/node_modules/commander/package.json @@ -35,4 +35,8 @@ "typescript": "^3.6.3" }, "typings": "typings/index.d.ts" + +,"_resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" +,"_integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" +,"_from": "commander@2.20.3" } \ No newline at end of file diff --git a/node_modules/common-path-prefix/package.json b/node_modules/common-path-prefix/package.json index 5fbc77c3a..81747f16b 100644 --- a/node_modules/common-path-prefix/package.json +++ b/node_modules/common-path-prefix/package.json @@ -38,4 +38,8 @@ "nyc": "^14.1.1", "standard": "^14.0.2" } + +,"_resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz" +,"_integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" +,"_from": "common-path-prefix@3.0.0" } \ No newline at end of file diff --git a/node_modules/concat-map/package.json b/node_modules/concat-map/package.json index 396f2c1b9..03d173495 100644 --- a/node_modules/concat-map/package.json +++ b/node_modules/concat-map/package.json @@ -1,59 +1,47 @@ { - "name": "concat-map", - "description": "concatenative mapdashery", - "version": "0.0.1", - "repository": { - "type": "git", - "url": "git://github.com/substack/node-concat-map.git" - }, - "main": "index.js", - "keywords": [ - "concat", - "concatMap", - "map", - "functional", - "higher-order" - ], - "directories": { - "example": "example", - "test": "test" - }, - "scripts": { - "test": "tape test/*.js" - }, - "devDependencies": { - "tape": "~2.4.0" - }, - "license": "MIT", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "testling": { - "files": "test/*.js", - "browsers": { - "ie": [ - 6, - 7, - 8, - 9 - ], - "ff": [ - 3.5, - 10, - 15 - ], - "chrome": [ - 10, - 22 - ], - "safari": [ - 5.1 - ], - "opera": [ - 12 - ] + "name" : "concat-map", + "description" : "concatenative mapdashery", + "version" : "0.0.1", + "repository" : { + "type" : "git", + "url" : "git://github.com/substack/node-concat-map.git" + }, + "main" : "index.js", + "keywords" : [ + "concat", + "concatMap", + "map", + "functional", + "higher-order" + ], + "directories" : { + "example" : "example", + "test" : "test" + }, + "scripts" : { + "test" : "tape test/*.js" + }, + "devDependencies" : { + "tape" : "~2.4.0" + }, + "license" : "MIT", + "author" : { + "name" : "James Halliday", + "email" : "mail@substack.net", + "url" : "http://substack.net" + }, + "testling" : { + "files" : "test/*.js", + "browsers" : { + "ie" : [ 6, 7, 8, 9 ], + "ff" : [ 3.5, 10, 15.0 ], + "chrome" : [ 10, 22 ], + "safari" : [ 5.1 ], + "opera" : [ 12 ] + } } - } + +,"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" +,"_integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" +,"_from": "concat-map@0.0.1" } \ No newline at end of file diff --git a/node_modules/concordance/node_modules/md5-hex/package.json b/node_modules/concordance/node_modules/md5-hex/package.json index f45fb17da..9898d7cc7 100644 --- a/node_modules/concordance/node_modules/md5-hex/package.json +++ b/node_modules/concordance/node_modules/md5-hex/package.json @@ -36,4 +36,8 @@ "xo": "*" }, "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-2.0.0.tgz" +,"_integrity": "sha1-0FiOnxx0lUSS7NJKwKxs6ZfZLjM=" +,"_from": "md5-hex@2.0.0" } \ No newline at end of file diff --git a/node_modules/concordance/node_modules/semver/package.json b/node_modules/concordance/node_modules/semver/package.json index 90e287ecf..31e12dde0 100644 --- a/node_modules/concordance/node_modules/semver/package.json +++ b/node_modules/concordance/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" +,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" +,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/concordance/package.json b/node_modules/concordance/package.json index 6c8901446..0810c2a4b 100644 --- a/node_modules/concordance/package.json +++ b/node_modules/concordance/package.json @@ -61,4 +61,8 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" + +,"_resolved": "https://registry.npmjs.org/concordance/-/concordance-4.0.0.tgz" +,"_integrity": "sha512-l0RFuB8RLfCS0Pt2Id39/oCPykE01pyxgAFypWTlaGRgvLkZrtczZ8atEHpTeEIW+zYWXTBuA9cCSeEOScxReQ==" +,"_from": "concordance@4.0.0" } \ No newline at end of file diff --git a/node_modules/configstore/package.json b/node_modules/configstore/package.json index 08dd5b83a..26ac1332f 100644 --- a/node_modules/configstore/package.json +++ b/node_modules/configstore/package.json @@ -1,46 +1,50 @@ { - "name": "configstore", - "version": "5.0.1", - "description": "Easily load and save config without having to think about where and how", - "license": "BSD-2-Clause", - "repository": "yeoman/configstore", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "config", - "store", - "storage", - "configuration", - "settings", - "preferences", - "json", - "data", - "persist", - "persistent", - "save" - ], - "dependencies": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "xo": "^0.24.0" - } + "name": "configstore", + "version": "5.0.1", + "description": "Easily load and save config without having to think about where and how", + "license": "BSD-2-Clause", + "repository": "yeoman/configstore", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "config", + "store", + "storage", + "configuration", + "settings", + "preferences", + "json", + "data", + "persist", + "persistent", + "save" + ], + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz" +,"_integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==" +,"_from": "configstore@5.0.1" } \ No newline at end of file diff --git a/node_modules/console-log-level/package.json b/node_modules/console-log-level/package.json index 55a7bcc1c..a511957fd 100644 --- a/node_modules/console-log-level/package.json +++ b/node_modules/console-log-level/package.json @@ -34,4 +34,8 @@ 55.778253, 12.593208 ] + +,"_resolved": "https://registry.npmjs.org/console-log-level/-/console-log-level-1.4.1.tgz" +,"_integrity": "sha512-VZzbIORbP+PPcN/gg3DXClTLPLg5Slwd5fL2MIc+o1qZ4BXBvWyc6QxPk6T/Mkr6IVjRpoAGf32XxP3ZWMVRcQ==" +,"_from": "console-log-level@1.4.1" } \ No newline at end of file diff --git a/node_modules/convert-source-map/package.json b/node_modules/convert-source-map/package.json index 40ec9f5af..60f4a887c 100644 --- a/node_modules/convert-source-map/package.json +++ b/node_modules/convert-source-map/package.json @@ -41,4 +41,8 @@ "browser": { "fs": false } + +,"_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz" +,"_integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==" +,"_from": "convert-source-map@1.7.0" } \ No newline at end of file diff --git a/node_modules/convert-to-spaces/package.json b/node_modules/convert-to-spaces/package.json index 330450e4d..59b226f37 100644 --- a/node_modules/convert-to-spaces/package.json +++ b/node_modules/convert-to-spaces/package.json @@ -22,4 +22,8 @@ "ava": "^0.18.2", "xo": "^0.17.1" } + +,"_resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz" +,"_integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=" +,"_from": "convert-to-spaces@1.0.2" } \ No newline at end of file diff --git a/node_modules/cross-spawn/node_modules/semver/package.json b/node_modules/cross-spawn/node_modules/semver/package.json index 90e287ecf..31e12dde0 100644 --- a/node_modules/cross-spawn/node_modules/semver/package.json +++ b/node_modules/cross-spawn/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" +,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" +,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index f1c88a040..3d5bf3149 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -73,4 +73,8 @@ "engines": { "node": ">=4.8" } + +,"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" +,"_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==" +,"_from": "cross-spawn@6.0.5" } \ No newline at end of file diff --git a/node_modules/crypt/package.json b/node_modules/crypt/package.json index b4b8c991c..7177e5102 100644 --- a/node_modules/crypt/package.json +++ b/node_modules/crypt/package.json @@ -19,4 +19,8 @@ "engines": { "node": "*" } + +,"_resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz" +,"_integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=" +,"_from": "crypt@0.0.2" } \ No newline at end of file diff --git a/node_modules/crypto-random-string/package.json b/node_modules/crypto-random-string/package.json index ef7255a61..6089e2c65 100644 --- a/node_modules/crypto-random-string/package.json +++ b/node_modules/crypto-random-string/package.json @@ -1,40 +1,44 @@ { - "name": "crypto-random-string", - "version": "2.0.0", - "description": "Generate a cryptographically strong random string", - "license": "MIT", - "repository": "sindresorhus/crypto-random-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "random", - "string", - "text", - "id", - "identifier", - "slug", - "salt", - "crypto", - "strong", - "secure", - "hex" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "crypto-random-string", + "version": "2.0.0", + "description": "Generate a cryptographically strong random string", + "license": "MIT", + "repository": "sindresorhus/crypto-random-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "random", + "string", + "text", + "id", + "identifier", + "slug", + "salt", + "crypto", + "strong", + "secure", + "hex" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz" +,"_integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" +,"_from": "crypto-random-string@2.0.0" } \ No newline at end of file diff --git a/node_modules/currently-unhandled/package.json b/node_modules/currently-unhandled/package.json index 99380249b..dc5fb68f0 100644 --- a/node_modules/currently-unhandled/package.json +++ b/node_modules/currently-unhandled/package.json @@ -68,4 +68,8 @@ "node" ] } + +,"_resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz" +,"_integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=" +,"_from": "currently-unhandled@0.4.1" } \ No newline at end of file diff --git a/node_modules/date-time/package.json b/node_modules/date-time/package.json index 3b28adcd3..941e5ee31 100644 --- a/node_modules/date-time/package.json +++ b/node_modules/date-time/package.json @@ -36,4 +36,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz" +,"_integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==" +,"_from": "date-time@2.1.0" } \ No newline at end of file diff --git a/node_modules/debug/package.json b/node_modules/debug/package.json index a71916fc4..c8c751660 100644 --- a/node_modules/debug/package.json +++ b/node_modules/debug/package.json @@ -60,4 +60,8 @@ "main": "./src/index.js", "browser": "./src/browser.js", "unpkg": "./dist/debug.js" + +,"_resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz" +,"_integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==" +,"_from": "debug@4.1.1" } \ No newline at end of file diff --git a/node_modules/decamelize/package.json b/node_modules/decamelize/package.json index 861013122..5e14849d9 100644 --- a/node_modules/decamelize/package.json +++ b/node_modules/decamelize/package.json @@ -35,4 +35,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" +,"_integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" +,"_from": "decamelize@1.2.0" } \ No newline at end of file diff --git a/node_modules/decompress-response/package.json b/node_modules/decompress-response/package.json index 25f1828ef..85552180c 100644 --- a/node_modules/decompress-response/package.json +++ b/node_modules/decompress-response/package.json @@ -50,4 +50,8 @@ "pify": "^3.0.0", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz" +,"_integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=" +,"_from": "decompress-response@3.3.0" } \ No newline at end of file diff --git a/node_modules/deep-extend/package.json b/node_modules/deep-extend/package.json index e507ea0fb..3aca83419 100644 --- a/node_modules/deep-extend/package.json +++ b/node_modules/deep-extend/package.json @@ -59,4 +59,8 @@ "index.js", "lib/" ] + +,"_resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" +,"_integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" +,"_from": "deep-extend@0.6.0" } \ No newline at end of file diff --git a/node_modules/defaults/package.json b/node_modules/defaults/package.json index f34731bf6..218c9d9f0 100644 --- a/node_modules/defaults/package.json +++ b/node_modules/defaults/package.json @@ -23,4 +23,8 @@ "devDependencies": { "tap": "^2.0.0" } + +,"_resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz" +,"_integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=" +,"_from": "defaults@1.0.3" } \ No newline at end of file diff --git a/node_modules/defer-to-connect/package.json b/node_modules/defer-to-connect/package.json index a47091f68..7a083be4c 100644 --- a/node_modules/defer-to-connect/package.json +++ b/node_modules/defer-to-connect/package.json @@ -65,10 +65,14 @@ ], "require": [ "ts-node/register" - ], - "files": [ - "!dist/tests/test.d.ts" - ] + ], + "files": [ + "!dist/tests/test.d.ts" + ] }, "types": "dist" + +,"_resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz" +,"_integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" +,"_from": "defer-to-connect@1.1.3" } \ No newline at end of file diff --git a/node_modules/del/node_modules/globby/package.json b/node_modules/del/node_modules/globby/package.json index e8b134ab4..16a8110db 100644 --- a/node_modules/del/node_modules/globby/package.json +++ b/node_modules/del/node_modules/globby/package.json @@ -1,83 +1,87 @@ { - "name": "globby", - "version": "10.0.2", - "description": "Extends `glob` with support for multiple patterns and exposes a Promise API", - "license": "MIT", - "repository": "sindresorhus/globby", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "bench": "npm update glob-stream fast-glob && matcha bench.js", - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "gitignore.js", - "index.d.ts", - "stream-utils.js" - ], - "keywords": [ - "all", - "array", - "directories", - "expand", - "files", - "filesystem", - "filter", - "find", - "fnmatch", - "folders", - "fs", - "glob", - "globbing", - "globs", - "gulpfriendly", - "match", - "matcher", - "minimatch", - "multi", - "multiple", - "paths", - "pattern", - "patterns", - "traverse", - "util", - "utility", - "wildcard", - "wildcards", - "promise", - "gitignore", - "git" - ], - "dependencies": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "get-stream": "^5.1.0", - "glob-stream": "^6.1.0", - "globby": "sindresorhus/globby#master", - "matcha": "^0.7.0", - "rimraf": "^2.6.3", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } + "name": "globby", + "version": "10.0.2", + "description": "Extends `glob` with support for multiple patterns and exposes a Promise API", + "license": "MIT", + "repository": "sindresorhus/globby", + "author": { + "email": "sindresorhus@gmail.com", + "name": "Sindre Sorhus", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "bench": "npm update glob-stream fast-glob && matcha bench.js", + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "gitignore.js", + "index.d.ts", + "stream-utils.js" + ], + "keywords": [ + "all", + "array", + "directories", + "expand", + "files", + "filesystem", + "filter", + "find", + "fnmatch", + "folders", + "fs", + "glob", + "globbing", + "globs", + "gulpfriendly", + "match", + "matcher", + "minimatch", + "multi", + "multiple", + "paths", + "pattern", + "patterns", + "traverse", + "util", + "utility", + "wildcard", + "wildcards", + "promise", + "gitignore", + "git" + ], + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "get-stream": "^5.1.0", + "glob-stream": "^6.1.0", + "globby": "sindresorhus/globby#master", + "matcha": "^0.7.0", + "rimraf": "^2.6.3", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } + +,"_resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz" +,"_integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==" +,"_from": "globby@10.0.2" } \ No newline at end of file diff --git a/node_modules/del/node_modules/p-map/package.json b/node_modules/del/node_modules/p-map/package.json index df6f80d15..72331066c 100644 --- a/node_modules/del/node_modules/p-map/package.json +++ b/node_modules/del/node_modules/p-map/package.json @@ -1,52 +1,56 @@ { - "name": "p-map", - "version": "3.0.0", - "description": "Map over promises concurrently", - "license": "MIT", - "repository": "sindresorhus/p-map", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "map", - "resolved", - "wait", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "async", - "await", - "promises", - "concurrently", - "concurrency", - "parallel", - "bluebird" - ], - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "delay": "^4.1.0", - "in-range": "^2.0.0", - "random-int": "^2.0.0", - "time-span": "^3.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "p-map", + "version": "3.0.0", + "description": "Map over promises concurrently", + "license": "MIT", + "repository": "sindresorhus/p-map", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "map", + "resolved", + "wait", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "async", + "await", + "promises", + "concurrently", + "concurrency", + "parallel", + "bluebird" + ], + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "delay": "^4.1.0", + "in-range": "^2.0.0", + "random-int": "^2.0.0", + "time-span": "^3.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz" +,"_integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==" +,"_from": "p-map@3.0.0" } \ No newline at end of file diff --git a/node_modules/del/package.json b/node_modules/del/package.json index e230d78b8..9d3e2a7af 100644 --- a/node_modules/del/package.json +++ b/node_modules/del/package.json @@ -1,65 +1,69 @@ { - "name": "del", - "version": "5.1.0", - "description": "Delete files and directories", - "license": "MIT", - "repository": "sindresorhus/del", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "node benchmark.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "delete", - "files", - "folders", - "directories", - "remove", - "destroy", - "trash", - "unlink", - "clean", - "cleaning", - "cleanup", - "rm", - "rmrf", - "rimraf", - "rmdir", - "glob", - "gulpfriendly", - "file", - "folder", - "directory", - "fs", - "filesystem" - ], - "dependencies": { - "globby": "^10.0.1", - "graceful-fs": "^4.2.2", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.1", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.3.0", - "benchmark": "^2.1.4", - "make-dir": "^3.0.0", - "tempy": "^0.3.0", - "tsd": "^0.7.4", - "xo": "^0.24.0" - } + "name": "del", + "version": "5.1.0", + "description": "Delete files and directories", + "license": "MIT", + "repository": "sindresorhus/del", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "node benchmark.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "delete", + "files", + "folders", + "directories", + "remove", + "destroy", + "trash", + "unlink", + "clean", + "cleaning", + "cleanup", + "rm", + "rmrf", + "rimraf", + "rmdir", + "glob", + "gulpfriendly", + "file", + "folder", + "directory", + "fs", + "filesystem" + ], + "dependencies": { + "globby": "^10.0.1", + "graceful-fs": "^4.2.2", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.1", + "p-map": "^3.0.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.3.0", + "benchmark": "^2.1.4", + "make-dir": "^3.0.0", + "tempy": "^0.3.0", + "tsd": "^0.7.4", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz" +,"_integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==" +,"_from": "del@5.1.0" } \ No newline at end of file diff --git a/node_modules/deprecation/package.json b/node_modules/deprecation/package.json index 02e6bc9d4..bdbdea7e7 100644 --- a/node_modules/deprecation/package.json +++ b/node_modules/deprecation/package.json @@ -31,4 +31,8 @@ "@pika/plugin-standard-pkg": "^0.4.0", "semantic-release": "^15.13.3" } + +,"_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz" +,"_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" +,"_from": "deprecation@2.3.1" } \ No newline at end of file diff --git a/node_modules/diff/package.json b/node_modules/diff/package.json index 4ff484e88..1c2f99fd6 100644 --- a/node_modules/diff/package.json +++ b/node_modules/diff/package.json @@ -70,4 +70,8 @@ "webpack-dev-server": "^3.1.14" }, "optionalDependencies": {} + +,"_resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" +,"_integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" +,"_from": "diff@4.0.2" } \ No newline at end of file diff --git a/node_modules/dir-glob/package.json b/node_modules/dir-glob/package.json index e2334d4af..e71af2f29 100644 --- a/node_modules/dir-glob/package.json +++ b/node_modules/dir-glob/package.json @@ -1,38 +1,42 @@ { - "name": "dir-glob", - "version": "3.0.1", - "description": "Convert directories to glob compatible strings", - "license": "MIT", - "repository": "kevva/dir-glob", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "convert", - "directory", - "extensions", - "files", - "glob" - ], - "dependencies": { - "path-type": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "del": "^4.1.1", - "make-dir": "^3.0.0", - "rimraf": "^2.5.0", - "xo": "^0.24.0" - } + "name": "dir-glob", + "version": "3.0.1", + "description": "Convert directories to glob compatible strings", + "license": "MIT", + "repository": "kevva/dir-glob", + "author": { + "name": "Kevin Mårtensson", + "email": "kevinmartensson@gmail.com", + "url": "github.com/kevva" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "convert", + "directory", + "extensions", + "files", + "glob" + ], + "dependencies": { + "path-type": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "del": "^4.1.1", + "make-dir": "^3.0.0", + "rimraf": "^2.5.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" +,"_integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==" +,"_from": "dir-glob@3.0.1" } \ No newline at end of file diff --git a/node_modules/dot-prop/package.json b/node_modules/dot-prop/package.json index a1c3610c3..c242c18ce 100644 --- a/node_modules/dot-prop/package.json +++ b/node_modules/dot-prop/package.json @@ -1,45 +1,49 @@ { - "name": "dot-prop", - "version": "5.2.0", - "description": "Get, set, or delete a property from a nested object using a dot path", - "license": "MIT", - "repository": "sindresorhus/dot-prop", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "node bench.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "prop", - "property", - "dot", - "path", - "get", - "set", - "delete", - "access", - "notation", - "dotty" - ], - "dependencies": { - "is-obj": "^2.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "benchmark": "^2.1.4", - "tsd": "^0.7.2", - "xo": "^0.25.3" - } + "name": "dot-prop", + "version": "5.2.0", + "description": "Get, set, or delete a property from a nested object using a dot path", + "license": "MIT", + "repository": "sindresorhus/dot-prop", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "node bench.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "prop", + "property", + "dot", + "path", + "get", + "set", + "delete", + "access", + "notation", + "dotty" + ], + "dependencies": { + "is-obj": "^2.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "benchmark": "^2.1.4", + "tsd": "^0.7.2", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz" +,"_integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==" +,"_from": "dot-prop@5.2.0" } \ No newline at end of file diff --git a/node_modules/duplexer3/package.json b/node_modules/duplexer3/package.json index 195def149..5b2c79aba 100644 --- a/node_modules/duplexer3/package.json +++ b/node_modules/duplexer3/package.json @@ -3,7 +3,7 @@ "version": "0.1.4", "description": "Like duplexer but using streams3", "engine": { - "node": ">=4" + "node": ">=4" }, "files": [ "index.js" @@ -25,4 +25,8 @@ "devDependencies": { "mocha": "^2.2.5" } + +,"_resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz" +,"_integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" +,"_from": "duplexer3@0.1.4" } \ No newline at end of file diff --git a/node_modules/emittery/package.json b/node_modules/emittery/package.json index 1bc264a4c..b6d92c0fb 100644 --- a/node_modules/emittery/package.json +++ b/node_modules/emittery/package.json @@ -1,67 +1,71 @@ { - "name": "emittery", - "version": "0.6.0", - "description": "Simple and modern async event emitter", - "license": "MIT", - "repository": "sindresorhus/emittery", - "funding": "https://github.com/sindresorhus/emittery?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "event", - "emitter", - "eventemitter", - "events", - "async", - "emit", - "on", - "once", - "off", - "listener", - "subscribe", - "unsubscribe", - "pubsub", - "tiny", - "addlistener", - "addeventlistener", - "dispatch", - "dispatcher", - "observer", - "trigger", - "await", - "promise", - "typescript", - "ts", - "typed" - ], - "devDependencies": { - "@types/node": "^13.7.5", - "ava": "^2.4.0", - "codecov": "^3.1.0", - "delay": "^4.3.0", - "nyc": "^15.0.0", - "p-event": "^4.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.4" - }, - "nyc": { - "reporter": [ - "html", - "lcov", - "text" - ] - } + "name": "emittery", + "version": "0.6.0", + "description": "Simple and modern async event emitter", + "license": "MIT", + "repository": "sindresorhus/emittery", + "funding": "https://github.com/sindresorhus/emittery?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "event", + "emitter", + "eventemitter", + "events", + "async", + "emit", + "on", + "once", + "off", + "listener", + "subscribe", + "unsubscribe", + "pubsub", + "tiny", + "addlistener", + "addeventlistener", + "dispatch", + "dispatcher", + "observer", + "trigger", + "await", + "promise", + "typescript", + "ts", + "typed" + ], + "devDependencies": { + "@types/node": "^13.7.5", + "ava": "^2.4.0", + "codecov": "^3.1.0", + "delay": "^4.3.0", + "nyc": "^15.0.0", + "p-event": "^4.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.4" + }, + "nyc": { + "reporter": [ + "html", + "lcov", + "text" + ] + } + +,"_resolved": "https://registry.npmjs.org/emittery/-/emittery-0.6.0.tgz" +,"_integrity": "sha512-6EMRGr9KzYWp8DzHFZsKVZBsMO6QhAeHMeHND8rhyBNCHKMLpgW9tZv40bwN3rAIKRS5CxcK8oLRKUJSB9h7yQ==" +,"_from": "emittery@0.6.0" } \ No newline at end of file diff --git a/node_modules/emoji-regex/package.json b/node_modules/emoji-regex/package.json index cb5ad3677..2b0473ab8 100644 --- a/node_modules/emoji-regex/package.json +++ b/node_modules/emoji-regex/package.json @@ -47,4 +47,8 @@ "regexgen": "^1.3.0", "unicode-12.0.0": "^0.7.9" } + +,"_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" +,"_integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" +,"_from": "emoji-regex@8.0.0" } \ No newline at end of file diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index 4caffe9e0..f723fae9d 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -34,4 +34,8 @@ "devDependencies": { "tape": "^4.11.0" } + +,"_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" +,"_integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==" +,"_from": "end-of-stream@1.4.4" } \ No newline at end of file diff --git a/node_modules/equal-length/package.json b/node_modules/equal-length/package.json index 06bf86a9e..96cef9188 100644 --- a/node_modules/equal-length/package.json +++ b/node_modules/equal-length/package.json @@ -29,4 +29,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz" +,"_integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=" +,"_from": "equal-length@1.0.1" } \ No newline at end of file diff --git a/node_modules/error-ex/package.json b/node_modules/error-ex/package.json index 01f328d44..172d854f7 100644 --- a/node_modules/error-ex/package.json +++ b/node_modules/error-ex/package.json @@ -43,4 +43,8 @@ "dependencies": { "is-arrayish": "^0.2.1" } + +,"_resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" +,"_integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==" +,"_from": "error-ex@1.3.2" } \ No newline at end of file diff --git a/node_modules/escape-goat/package.json b/node_modules/escape-goat/package.json index b97a05f1d..02ce3264c 100644 --- a/node_modules/escape-goat/package.json +++ b/node_modules/escape-goat/package.json @@ -1,45 +1,49 @@ { - "name": "escape-goat", - "version": "2.1.1", - "description": "Escape a string for use in HTML or the inverse", - "license": "MIT", - "repository": "sindresorhus/escape-goat", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "unescape", - "html", - "entity", - "entities", - "escaping", - "sanitize", - "sanitization", - "utility", - "template", - "attribute", - "value", - "interpolate", - "xss", - "goat", - "🐐" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "escape-goat", + "version": "2.1.1", + "description": "Escape a string for use in HTML or the inverse", + "license": "MIT", + "repository": "sindresorhus/escape-goat", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "unescape", + "html", + "entity", + "entities", + "escaping", + "sanitize", + "sanitization", + "utility", + "template", + "attribute", + "value", + "interpolate", + "xss", + "goat", + "🐐" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz" +,"_integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" +,"_from": "escape-goat@2.1.1" } \ No newline at end of file diff --git a/node_modules/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json index ddf8dee2f..8b63190fe 100644 --- a/node_modules/escape-string-regexp/package.json +++ b/node_modules/escape-string-regexp/package.json @@ -38,4 +38,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" +,"_integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" +,"_from": "escape-string-regexp@1.0.5" } \ No newline at end of file diff --git a/node_modules/esutils/package.json b/node_modules/esutils/package.json index 0578338b8..6446b57f2 100644 --- a/node_modules/esutils/package.json +++ b/node_modules/esutils/package.json @@ -41,4 +41,8 @@ "unit-test": "mocha --compilers coffee:coffee-script -R spec", "generate-regex": "node tools/generate-identifier-regex.js" } + +,"_resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" +,"_integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" +,"_from": "esutils@2.0.3" } \ No newline at end of file diff --git a/node_modules/execa/package.json b/node_modules/execa/package.json index 1b8e3f8c6..4e33f47e5 100644 --- a/node_modules/execa/package.json +++ b/node_modules/execa/package.json @@ -1,69 +1,73 @@ { - "name": "execa", - "version": "1.0.0", - "description": "A better `child_process`", - "license": "MIT", - "repository": "sindresorhus/execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js", - "lib" - ], - "keywords": [ - "exec", - "child", - "process", - "execute", - "fork", - "execfile", - "spawn", - "file", - "shell", - "bin", - "binary", - "binaries", - "npm", - "path", - "local" - ], - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "cat-names": "^1.0.2", - "coveralls": "^3.0.1", - "delay": "^3.0.0", - "is-running": "^2.0.0", - "nyc": "^13.0.1", - "tempfile": "^2.0.0", - "xo": "*" - }, - "nyc": { - "reporter": [ - "text", - "lcov" - ], - "exclude": [ - "**/fixtures/**", - "**/test.js", - "**/test/**" - ] - } + "name": "execa", + "version": "1.0.0", + "description": "A better `child_process`", + "license": "MIT", + "repository": "sindresorhus/execa", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js", + "lib" + ], + "keywords": [ + "exec", + "child", + "process", + "execute", + "fork", + "execfile", + "spawn", + "file", + "shell", + "bin", + "binary", + "binaries", + "npm", + "path", + "local" + ], + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "devDependencies": { + "ava": "*", + "cat-names": "^1.0.2", + "coveralls": "^3.0.1", + "delay": "^3.0.0", + "is-running": "^2.0.0", + "nyc": "^13.0.1", + "tempfile": "^2.0.0", + "xo": "*" + }, + "nyc": { + "reporter": [ + "text", + "lcov" + ], + "exclude": [ + "**/fixtures/**", + "**/test.js", + "**/test/**" + ] + } + +,"_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" +,"_integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==" +,"_from": "execa@1.0.0" } \ No newline at end of file diff --git a/node_modules/fast-diff/package.json b/node_modules/fast-diff/package.json index ad043feca..7c8b5e107 100644 --- a/node_modules/fast-diff/package.json +++ b/node_modules/fast-diff/package.json @@ -23,4 +23,8 @@ "keywords": [ "diff" ] + +,"_resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" +,"_integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" +,"_from": "fast-diff@1.2.0" } \ No newline at end of file diff --git a/node_modules/fast-glob/package.json b/node_modules/fast-glob/package.json index 9a8744041..05a520e06 100644 --- a/node_modules/fast-glob/package.json +++ b/node_modules/fast-glob/package.json @@ -82,4 +82,8 @@ "bench-sync-partial-flatten": "node ./out/benchmark --mode sync --pattern \"{fixtures,out}/{first,second}/*\"", "bench-sync-partial-deep": "node ./out/benchmark --mode sync --pattern \"{fixtures,out}/**\"" } + +,"_resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.2.tgz" +,"_integrity": "sha512-UDV82o4uQyljznxwMxyVRJgZZt3O5wENYojjzbaGEGZgeOxkLFf+V4cnUD+krzb2F72E18RhamkMZ7AdeggF7A==" +,"_from": "fast-glob@3.2.2" } \ No newline at end of file diff --git a/node_modules/fastq/package.json b/node_modules/fastq/package.json index 41c544d73..c5cf9e6ca 100644 --- a/node_modules/fastq/package.json +++ b/node_modules/fastq/package.json @@ -44,4 +44,8 @@ "dependencies": { "reusify": "^1.0.4" } + +,"_resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz" +,"_integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==" +,"_from": "fastq@1.8.0" } \ No newline at end of file diff --git a/node_modules/figures/package.json b/node_modules/figures/package.json index fac166e88..41dea9e9b 100644 --- a/node_modules/figures/package.json +++ b/node_modules/figures/package.json @@ -1,45 +1,49 @@ { - "name": "figures", - "version": "3.2.0", - "description": "Unicode symbols with Windows CMD fallbacks", - "license": "MIT", - "repository": "sindresorhus/figures", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "make": "./makefile.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "unicode", - "cli", - "cmd", - "command-line", - "characters", - "symbol", - "symbols", - "figure", - "figures", - "fallback" - ], - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "devDependencies": { - "ava": "^1.4.1", - "markdown-table": "^1.1.2", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "figures", + "version": "3.2.0", + "description": "Unicode symbols with Windows CMD fallbacks", + "license": "MIT", + "repository": "sindresorhus/figures", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "make": "./makefile.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback" + ], + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "devDependencies": { + "ava": "^1.4.1", + "markdown-table": "^1.1.2", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" +,"_integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==" +,"_from": "figures@3.2.0" } \ No newline at end of file diff --git a/node_modules/file-url/package.json b/node_modules/file-url/package.json index dbcd4f1b4..70261a027 100644 --- a/node_modules/file-url/package.json +++ b/node_modules/file-url/package.json @@ -1,35 +1,39 @@ { - "name": "file-url", - "version": "3.0.0", - "description": "Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`", - "license": "MIT", - "repository": "sindresorhus/file-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "file", - "url", - "uri", - "path", - "scheme", - "slash" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "file-url", + "version": "3.0.0", + "description": "Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`", + "license": "MIT", + "repository": "sindresorhus/file-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "file", + "url", + "uri", + "path", + "scheme", + "slash" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/file-url/-/file-url-3.0.0.tgz" +,"_integrity": "sha512-g872QGsHexznxkIAdK8UiZRe7SkE6kvylShU4Nsj8NvfvZag7S0QuQ4IgvPDkk75HxgjIVDwycFTDAgIiO4nDA==" +,"_from": "file-url@3.0.0" } \ No newline at end of file diff --git a/node_modules/fill-range/package.json b/node_modules/fill-range/package.json index c3868058f..6aeb617db 100644 --- a/node_modules/fill-range/package.json +++ b/node_modules/fill-range/package.json @@ -66,4 +66,8 @@ "reflinks": true } } + +,"_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" +,"_integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" +,"_from": "fill-range@7.0.1" } \ No newline at end of file diff --git a/node_modules/find-up/package.json b/node_modules/find-up/package.json index 39a30757f..60f289df4 100644 --- a/node_modules/find-up/package.json +++ b/node_modules/find-up/package.json @@ -1,53 +1,57 @@ { - "name": "find-up", - "version": "4.1.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "is-path-inside": "^2.1.0", - "tempy": "^0.3.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - } + "name": "find-up", + "version": "4.1.0", + "description": "Find a file or directory by walking up parent directories", + "license": "MIT", + "repository": "sindresorhus/find-up", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "package", + "resolve", + "parent", + "parents", + "folder", + "directory", + "walk", + "walking", + "path" + ], + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "is-path-inside": "^2.1.0", + "tempy": "^0.3.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" +,"_integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" +,"_from": "find-up@4.1.0" } \ No newline at end of file diff --git a/node_modules/fs.realpath/package.json b/node_modules/fs.realpath/package.json index 6e98eaab9..fba1ff9a4 100644 --- a/node_modules/fs.realpath/package.json +++ b/node_modules/fs.realpath/package.json @@ -23,4 +23,8 @@ "old.js", "index.js" ] + +,"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" +,"_integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" +,"_from": "fs.realpath@1.0.0" } \ No newline at end of file diff --git a/node_modules/fs/package.json b/node_modules/fs/package.json index f1fa735a7..819721e5b 100644 --- a/node_modules/fs/package.json +++ b/node_modules/fs/package.json @@ -17,4 +17,8 @@ "url": "https://github.com/npm/security-holder/issues" }, "homepage": "https://github.com/npm/security-holder#readme" + +,"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz" +,"_integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" +,"_from": "fs@0.0.1-security" } \ No newline at end of file diff --git a/node_modules/fsevents/package.json b/node_modules/fsevents/package.json index d3b732346..814b8eb48 100644 --- a/node_modules/fsevents/package.json +++ b/node_modules/fsevents/package.json @@ -56,4 +56,8 @@ "url": "https://github.com/fsevents/fsevents/issues" }, "homepage": "https://github.com/fsevents/fsevents" + +,"_resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz" +,"_integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==" +,"_from": "fsevents@2.1.2" } \ No newline at end of file diff --git a/node_modules/get-caller-file/package.json b/node_modules/get-caller-file/package.json index 3218e973a..acf38f618 100644 --- a/node_modules/get-caller-file/package.json +++ b/node_modules/get-caller-file/package.json @@ -39,4 +39,8 @@ "engines": { "node": "6.* || 8.* || >= 10.*" } + +,"_resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" +,"_integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" +,"_from": "get-caller-file@2.0.5" } \ No newline at end of file diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index a78fba1fb..0f66e7b31 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -1,46 +1,50 @@ { - "name": "get-stream", - "version": "4.1.0", - "description": "Get a stream as a string, buffer, or array", - "license": "MIT", - "repository": "sindresorhus/get-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "buffer-stream.js" - ], - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object" - ], - "dependencies": { - "pump": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "into-stream": "^3.0.0", - "xo": "*" - } + "name": "get-stream", + "version": "4.1.0", + "description": "Get a stream as a string, buffer, or array", + "license": "MIT", + "repository": "sindresorhus/get-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "buffer-stream.js" + ], + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object" + ], + "dependencies": { + "pump": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "into-stream": "^3.0.0", + "xo": "*" + } + +,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" +,"_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==" +,"_from": "get-stream@4.1.0" } \ No newline at end of file diff --git a/node_modules/glob-parent/package.json b/node_modules/glob-parent/package.json index d7f8b7f28..e5f8484d4 100644 --- a/node_modules/glob-parent/package.json +++ b/node_modules/glob-parent/package.json @@ -45,4 +45,8 @@ "base", "wildcard" ] + +,"_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz" +,"_integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==" +,"_from": "glob-parent@5.1.1" } \ No newline at end of file diff --git a/node_modules/glob/package.json b/node_modules/glob/package.json index dbfa78ee8..715f73a54 100644 --- a/node_modules/glob/package.json +++ b/node_modules/glob/package.json @@ -43,4 +43,8 @@ "funding": { "url": "https://github.com/sponsors/isaacs" } + +,"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" +,"_integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==" +,"_from": "glob@7.1.6" } \ No newline at end of file diff --git a/node_modules/global-dirs/package.json b/node_modules/global-dirs/package.json index 1f11cd0f6..5b0b40cb8 100644 --- a/node_modules/global-dirs/package.json +++ b/node_modules/global-dirs/package.json @@ -1,55 +1,59 @@ { - "name": "global-dirs", - "version": "2.0.1", - "description": "Get the directory of globally installed packages and binaries", - "license": "MIT", - "repository": "sindresorhus/global-dirs", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "global", - "prefix", - "path", - "paths", - "npm", - "yarn", - "node", - "modules", - "node-modules", - "package", - "packages", - "binary", - "binaries", - "bin", - "directory", - "directories", - "npmrc", - "rc", - "config", - "root", - "resolve" - ], - "dependencies": { - "ini": "^1.3.5" - }, - "devDependencies": { - "ava": "^2.4.0", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } + "name": "global-dirs", + "version": "2.0.1", + "description": "Get the directory of globally installed packages and binaries", + "license": "MIT", + "repository": "sindresorhus/global-dirs", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "global", + "prefix", + "path", + "paths", + "npm", + "yarn", + "node", + "modules", + "node-modules", + "package", + "packages", + "binary", + "binaries", + "bin", + "directory", + "directories", + "npmrc", + "rc", + "config", + "root", + "resolve" + ], + "dependencies": { + "ini": "^1.3.5" + }, + "devDependencies": { + "ava": "^2.4.0", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz" +,"_integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==" +,"_from": "global-dirs@2.0.1" } \ No newline at end of file diff --git a/node_modules/globby/package.json b/node_modules/globby/package.json index 08a3b169d..ea35313ac 100644 --- a/node_modules/globby/package.json +++ b/node_modules/globby/package.json @@ -1,82 +1,86 @@ { - "name": "globby", - "version": "11.0.0", - "description": "User-friendly glob matching", - "license": "MIT", - "repository": "sindresorhus/globby", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "bench": "npm update glob-stream fast-glob && matcha bench.js", - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "gitignore.js", - "stream-utils.js" - ], - "keywords": [ - "all", - "array", - "directories", - "expand", - "files", - "filesystem", - "filter", - "find", - "fnmatch", - "folders", - "fs", - "glob", - "globbing", - "globs", - "gulpfriendly", - "match", - "matcher", - "minimatch", - "multi", - "multiple", - "paths", - "pattern", - "patterns", - "traverse", - "util", - "utility", - "wildcard", - "wildcards", - "promise", - "gitignore", - "git" - ], - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "get-stream": "^5.1.0", - "glob-stream": "^6.1.0", - "globby": "sindresorhus/globby#master", - "matcha": "^0.7.0", - "rimraf": "^3.0.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } + "name": "globby", + "version": "11.0.0", + "description": "User-friendly glob matching", + "license": "MIT", + "repository": "sindresorhus/globby", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "email": "sindresorhus@gmail.com", + "name": "Sindre Sorhus", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "bench": "npm update glob-stream fast-glob && matcha bench.js", + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "gitignore.js", + "stream-utils.js" + ], + "keywords": [ + "all", + "array", + "directories", + "expand", + "files", + "filesystem", + "filter", + "find", + "fnmatch", + "folders", + "fs", + "glob", + "globbing", + "globs", + "gulpfriendly", + "match", + "matcher", + "minimatch", + "multi", + "multiple", + "paths", + "pattern", + "patterns", + "traverse", + "util", + "utility", + "wildcard", + "wildcards", + "promise", + "gitignore", + "git" + ], + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "get-stream": "^5.1.0", + "glob-stream": "^6.1.0", + "globby": "sindresorhus/globby#master", + "matcha": "^0.7.0", + "rimraf": "^3.0.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } + +,"_resolved": "https://registry.npmjs.org/globby/-/globby-11.0.0.tgz" +,"_integrity": "sha512-iuehFnR3xu5wBBtm4xi0dMe92Ob87ufyu/dHwpDYfbcpYpIbrO5OnS8M1vWvrBhSGEJ3/Ecj7gnX76P8YxpPEg==" +,"_from": "globby@11.0.0" } \ No newline at end of file diff --git a/node_modules/got/package.json b/node_modules/got/package.json index 28c396adb..bd81ae543 100644 --- a/node_modules/got/package.json +++ b/node_modules/got/package.json @@ -1,74 +1,78 @@ { - "name": "got", - "version": "9.6.0", - "description": "Simplified HTTP requests", - "license": "MIT", - "repository": "sindresorhus/got", - "main": "source", - "engines": { - "node": ">=8.6" - }, - "scripts": { - "test": "xo && nyc ava", - "release": "np" - }, - "files": [ - "source" - ], - "keywords": [ - "http", - "https", - "get", - "got", - "url", - "uri", - "request", - "util", - "utility", - "simple", - "curl", - "wget", - "fetch", - "net", - "network", - "electron" - ], - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "devDependencies": { - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "delay": "^4.1.0", - "form-data": "^2.3.3", - "get-port": "^4.0.0", - "np": "^3.1.0", - "nyc": "^13.1.0", - "p-event": "^2.1.0", - "pem": "^1.13.2", - "proxyquire": "^2.0.1", - "sinon": "^7.2.2", - "slow-stream": "0.0.4", - "tempfile": "^2.0.0", - "tempy": "^0.2.1", - "tough-cookie": "^3.0.0", - "xo": "^0.24.0" - }, - "ava": { - "concurrency": 4 - }, - "browser": { - "decompress-response": false, - "electron": false - } + "name": "got", + "version": "9.6.0", + "description": "Simplified HTTP requests", + "license": "MIT", + "repository": "sindresorhus/got", + "main": "source", + "engines": { + "node": ">=8.6" + }, + "scripts": { + "test": "xo && nyc ava", + "release": "np" + }, + "files": [ + "source" + ], + "keywords": [ + "http", + "https", + "get", + "got", + "url", + "uri", + "request", + "util", + "utility", + "simple", + "curl", + "wget", + "fetch", + "net", + "network", + "electron" + ], + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "devDependencies": { + "ava": "^1.1.0", + "coveralls": "^3.0.0", + "delay": "^4.1.0", + "form-data": "^2.3.3", + "get-port": "^4.0.0", + "np": "^3.1.0", + "nyc": "^13.1.0", + "p-event": "^2.1.0", + "pem": "^1.13.2", + "proxyquire": "^2.0.1", + "sinon": "^7.2.2", + "slow-stream": "0.0.4", + "tempfile": "^2.0.0", + "tempy": "^0.2.1", + "tough-cookie": "^3.0.0", + "xo": "^0.24.0" + }, + "ava": { + "concurrency": 4 + }, + "browser": { + "decompress-response": false, + "electron": false + } + +,"_resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz" +,"_integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==" +,"_from": "got@9.6.0" } \ No newline at end of file diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json index 77a29b3da..73bb9f911 100644 --- a/node_modules/graceful-fs/package.json +++ b/node_modules/graceful-fs/package.json @@ -47,4 +47,8 @@ "clone.js" ], "dependencies": {} + +,"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz" +,"_integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" +,"_from": "graceful-fs@4.2.3" } \ No newline at end of file diff --git a/node_modules/has-flag/package.json b/node_modules/has-flag/package.json index ff188fa37..b07fbde41 100644 --- a/node_modules/has-flag/package.json +++ b/node_modules/has-flag/package.json @@ -41,4 +41,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" +,"_integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" +,"_from": "has-flag@3.0.0" } \ No newline at end of file diff --git a/node_modules/has-yarn/package.json b/node_modules/has-yarn/package.json index fcadde721..0bbf4473c 100644 --- a/node_modules/has-yarn/package.json +++ b/node_modules/has-yarn/package.json @@ -1,39 +1,43 @@ { - "name": "has-yarn", - "version": "2.1.0", - "description": "Check if a project is using Yarn", - "license": "MIT", - "repository": "sindresorhus/has-yarn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "yarn", - "has", - "detect", - "is", - "project", - "app", - "module", - "package", - "manager", - "npm" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "has-yarn", + "version": "2.1.0", + "description": "Check if a project is using Yarn", + "license": "MIT", + "repository": "sindresorhus/has-yarn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "yarn", + "has", + "detect", + "is", + "project", + "app", + "module", + "package", + "manager", + "npm" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz" +,"_integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" +,"_from": "has-yarn@2.1.0" } \ No newline at end of file diff --git a/node_modules/hosted-git-info/package.json b/node_modules/hosted-git-info/package.json index 3ff3c095e..1dc8e6464 100644 --- a/node_modules/hosted-git-info/package.json +++ b/node_modules/hosted-git-info/package.json @@ -37,4 +37,8 @@ "git-host.js", "git-host-info.js" ] + +,"_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz" +,"_integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==" +,"_from": "hosted-git-info@2.8.8" } \ No newline at end of file diff --git a/node_modules/http-cache-semantics/package.json b/node_modules/http-cache-semantics/package.json index 125b72b51..baf02e311 100644 --- a/node_modules/http-cache-semantics/package.json +++ b/node_modules/http-cache-semantics/package.json @@ -1,24 +1,28 @@ { - "name": "http-cache-semantics", - "version": "4.1.0", - "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies", - "repository": "https://github.com/kornelski/http-cache-semantics.git", - "main": "index.js", - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js" - ], - "author": "Kornel Lesiński (https://kornel.ski/)", - "license": "BSD-2-Clause", - "devDependencies": { - "eslint": "^5.13.0", - "eslint-plugin-prettier": "^3.0.1", - "husky": "^0.14.3", - "lint-staged": "^8.1.3", - "mocha": "^5.1.0", - "prettier": "^1.14.3", - "prettier-eslint-cli": "^4.7.1" - } + "name": "http-cache-semantics", + "version": "4.1.0", + "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies", + "repository": "https://github.com/kornelski/http-cache-semantics.git", + "main": "index.js", + "scripts": { + "test": "mocha" + }, + "files": [ + "index.js" + ], + "author": "Kornel Lesiński (https://kornel.ski/)", + "license": "BSD-2-Clause", + "devDependencies": { + "eslint": "^5.13.0", + "eslint-plugin-prettier": "^3.0.1", + "husky": "^0.14.3", + "lint-staged": "^8.1.3", + "mocha": "^5.1.0", + "prettier": "^1.14.3", + "prettier-eslint-cli": "^4.7.1" + } + +,"_resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz" +,"_integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" +,"_from": "http-cache-semantics@4.1.0" } \ No newline at end of file diff --git a/node_modules/ignore-by-default/package.json b/node_modules/ignore-by-default/package.json index 30225ada3..c705e1523 100644 --- a/node_modules/ignore-by-default/package.json +++ b/node_modules/ignore-by-default/package.json @@ -31,4 +31,8 @@ "figures": "^1.4.0", "standard": "^6.0.4" } + +,"_resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" +,"_integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=" +,"_from": "ignore-by-default@1.0.1" } \ No newline at end of file diff --git a/node_modules/ignore/package.json b/node_modules/ignore/package.json index fe7029497..d101f0e82 100644 --- a/node_modules/ignore/package.json +++ b/node_modules/ignore/package.json @@ -67,4 +67,8 @@ "engines": { "node": ">= 4" } + +,"_resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.4.tgz" +,"_integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==" +,"_from": "ignore@5.1.4" } \ No newline at end of file diff --git a/node_modules/import-lazy/package.json b/node_modules/import-lazy/package.json index 8cca7bba1..db9a3a407 100644 --- a/node_modules/import-lazy/package.json +++ b/node_modules/import-lazy/package.json @@ -41,4 +41,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz" +,"_integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" +,"_from": "import-lazy@2.1.0" } \ No newline at end of file diff --git a/node_modules/import-local/package.json b/node_modules/import-local/package.json index c07a5c4be..96f445b3b 100644 --- a/node_modules/import-local/package.json +++ b/node_modules/import-local/package.json @@ -1,51 +1,55 @@ { - "name": "import-local", - "version": "3.0.2", - "description": "Let a globally installed package use a locally installed version of itself if available", - "license": "MIT", - "repository": "sindresorhus/import-local", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "fixtures/cli.js" - ], - "keywords": [ - "import", - "local", - "require", - "resolve", - "global", - "version", - "prefer", - "cli" - ], - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "devDependencies": { - "ava": "2.1.0", - "cpy": "^7.0.1", - "del": "^4.1.1", - "execa": "^2.0.1", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } + "name": "import-local", + "version": "3.0.2", + "description": "Let a globally installed package use a locally installed version of itself if available", + "license": "MIT", + "repository": "sindresorhus/import-local", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "fixtures/cli.js" + ], + "keywords": [ + "import", + "local", + "require", + "resolve", + "global", + "version", + "prefer", + "cli" + ], + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "devDependencies": { + "ava": "2.1.0", + "cpy": "^7.0.1", + "del": "^4.1.1", + "execa": "^2.0.1", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } + +,"_resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz" +,"_integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==" +,"_from": "import-local@3.0.2" } \ No newline at end of file diff --git a/node_modules/imurmurhash/package.json b/node_modules/imurmurhash/package.json index 1e91c12bd..129286ed0 100644 --- a/node_modules/imurmurhash/package.json +++ b/node_modules/imurmurhash/package.json @@ -30,9 +30,15 @@ "url": "https://github.com/homebrewing" }, "license": "MIT", - "dependencies": {}, - "devDependencies": {}, + "dependencies": { + }, + "devDependencies": { + }, "engines": { "node": ">=0.8.19" } + +,"_resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" +,"_integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" +,"_from": "imurmurhash@0.1.4" } \ No newline at end of file diff --git a/node_modules/indent-string/package.json b/node_modules/indent-string/package.json index 5db5db01a..2254e46cf 100644 --- a/node_modules/indent-string/package.json +++ b/node_modules/indent-string/package.json @@ -1,37 +1,41 @@ { - "name": "indent-string", - "version": "4.0.0", - "description": "Indent each line in a string", - "license": "MIT", - "repository": "sindresorhus/indent-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "indent", - "string", - "pad", - "align", - "line", - "text", - "each", - "every" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "indent-string", + "version": "4.0.0", + "description": "Indent each line in a string", + "license": "MIT", + "repository": "sindresorhus/indent-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "indent", + "string", + "pad", + "align", + "line", + "text", + "each", + "every" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" +,"_integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" +,"_from": "indent-string@4.0.0" } \ No newline at end of file diff --git a/node_modules/inflight/package.json b/node_modules/inflight/package.json index b7095d05d..102b3be3a 100644 --- a/node_modules/inflight/package.json +++ b/node_modules/inflight/package.json @@ -26,4 +26,8 @@ }, "homepage": "https://github.com/isaacs/inflight", "license": "ISC" + +,"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" +,"_integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" +,"_from": "inflight@1.0.6" } \ No newline at end of file diff --git a/node_modules/inherits/package.json b/node_modules/inherits/package.json index 47220feb9..48b9816a5 100644 --- a/node_modules/inherits/package.json +++ b/node_modules/inherits/package.json @@ -26,4 +26,8 @@ "inherits.js", "inherits_browser.js" ] + +,"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" +,"_integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" +,"_from": "inherits@2.0.3" } \ No newline at end of file diff --git a/node_modules/ini/package.json b/node_modules/ini/package.json index 49027d955..85f8b965a 100644 --- a/node_modules/ini/package.json +++ b/node_modules/ini/package.json @@ -27,4 +27,8 @@ "files": [ "ini.js" ] + +,"_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz" +,"_integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" +,"_from": "ini@1.3.5" } \ No newline at end of file diff --git a/node_modules/irregular-plurals/package.json b/node_modules/irregular-plurals/package.json index cf9707d52..7da904bbd 100644 --- a/node_modules/irregular-plurals/package.json +++ b/node_modules/irregular-plurals/package.json @@ -1,46 +1,50 @@ { - "name": "irregular-plurals", - "version": "3.2.0", - "description": "Map of nouns to their irregular plural form", - "license": "MIT", - "repository": "sindresorhus/irregular-plurals", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "irregular-plurals.json" - ], - "keywords": [ - "word", - "words", - "list", - "map", - "hash", - "json", - "irregular", - "plural", - "plurals", - "noun", - "nouns" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "tsd": { - "compilerOptions": { - "resolveJsonModule": true - } - } + "name": "irregular-plurals", + "version": "3.2.0", + "description": "Map of nouns to their irregular plural form", + "license": "MIT", + "repository": "sindresorhus/irregular-plurals", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "irregular-plurals.json" + ], + "keywords": [ + "word", + "words", + "list", + "map", + "hash", + "json", + "irregular", + "plural", + "plurals", + "noun", + "nouns" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "tsd": { + "compilerOptions": { + "resolveJsonModule": true + } + } + +,"_resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz" +,"_integrity": "sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q==" +,"_from": "irregular-plurals@3.2.0" } \ No newline at end of file diff --git a/node_modules/is-arrayish/package.json b/node_modules/is-arrayish/package.json index 47b168d29..91f64fee4 100644 --- a/node_modules/is-arrayish/package.json +++ b/node_modules/is-arrayish/package.json @@ -31,4 +31,8 @@ "should": "^7.0.1", "xo": "^0.6.1" } + +,"_resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" +,"_integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" +,"_from": "is-arrayish@0.2.1" } \ No newline at end of file diff --git a/node_modules/is-binary-path/package.json b/node_modules/is-binary-path/package.json index e3bdf2a7f..4998949a8 100644 --- a/node_modules/is-binary-path/package.json +++ b/node_modules/is-binary-path/package.json @@ -1,40 +1,44 @@ { - "name": "is-binary-path", - "version": "2.1.0", - "description": "Check if a file path is a binary file", - "license": "MIT", - "repository": "sindresorhus/is-binary-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "path", - "check", - "detect", - "is" - ], - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "is-binary-path", + "version": "2.1.0", + "description": "Check if a file path is a binary file", + "license": "MIT", + "repository": "sindresorhus/is-binary-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "binary", + "extensions", + "extension", + "file", + "path", + "check", + "detect", + "is" + ], + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" +,"_integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==" +,"_from": "is-binary-path@2.1.0" } \ No newline at end of file diff --git a/node_modules/is-buffer/package.json b/node_modules/is-buffer/package.json index 9f304ee57..79d8ab75b 100644 --- a/node_modules/is-buffer/package.json +++ b/node_modules/is-buffer/package.json @@ -48,4 +48,8 @@ "testling": { "files": "test/*.js" } + +,"_resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" +,"_integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" +,"_from": "is-buffer@1.1.6" } \ No newline at end of file diff --git a/node_modules/is-ci/package.json b/node_modules/is-ci/package.json index 3900a0420..7ce825a5f 100644 --- a/node_modules/is-ci/package.json +++ b/node_modules/is-ci/package.json @@ -35,4 +35,8 @@ 55.778272, 12.593116 ] + +,"_resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" +,"_integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==" +,"_from": "is-ci@2.0.0" } \ No newline at end of file diff --git a/node_modules/is-error/package.json b/node_modules/is-error/package.json index 441791f23..94d4817e8 100644 --- a/node_modules/is-error/package.json +++ b/node_modules/is-error/package.json @@ -1,5 +1,4 @@ -{ - "name": "is-error", +{ "name": "is-error", "version": "2.2.2", "description": "Detect whether a value is an error", "keywords": [], @@ -42,4 +41,8 @@ ], "pre-commit.silent": true, "ngen-version": "5.1.0" + +,"_resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz" +,"_integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==" +,"_from": "is-error@2.2.2" } \ No newline at end of file diff --git a/node_modules/is-extglob/package.json b/node_modules/is-extglob/package.json index 00ad5c9fc..956af5894 100644 --- a/node_modules/is-extglob/package.json +++ b/node_modules/is-extglob/package.json @@ -66,4 +66,8 @@ "reflinks": true } } + +,"_resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" +,"_integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" +,"_from": "is-extglob@2.1.1" } \ No newline at end of file diff --git a/node_modules/is-fullwidth-code-point/package.json b/node_modules/is-fullwidth-code-point/package.json index a67414558..3122d9996 100644 --- a/node_modules/is-fullwidth-code-point/package.json +++ b/node_modules/is-fullwidth-code-point/package.json @@ -1,42 +1,46 @@ { - "name": "is-fullwidth-code-point", - "version": "3.0.0", - "description": "Check if the character represented by a given Unicode code point is fullwidth", - "license": "MIT", - "repository": "sindresorhus/is-fullwidth-code-point", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "fullwidth", - "full-width", - "full", - "width", - "unicode", - "character", - "string", - "codepoint", - "code", - "point", - "is", - "detect", - "check" - ], - "devDependencies": { - "ava": "^1.3.1", - "tsd-check": "^0.5.0", - "xo": "^0.24.0" - } + "name": "is-fullwidth-code-point", + "version": "3.0.0", + "description": "Check if the character represented by a given Unicode code point is fullwidth", + "license": "MIT", + "repository": "sindresorhus/is-fullwidth-code-point", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "fullwidth", + "full-width", + "full", + "width", + "unicode", + "character", + "string", + "codepoint", + "code", + "point", + "is", + "detect", + "check" + ], + "devDependencies": { + "ava": "^1.3.1", + "tsd-check": "^0.5.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" +,"_integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" +,"_from": "is-fullwidth-code-point@3.0.0" } \ No newline at end of file diff --git a/node_modules/is-glob/package.json b/node_modules/is-glob/package.json index b7afb44d2..2ca9e34d6 100644 --- a/node_modules/is-glob/package.json +++ b/node_modules/is-glob/package.json @@ -78,4 +78,8 @@ "vinyl" ] } + +,"_resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz" +,"_integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==" +,"_from": "is-glob@4.0.1" } \ No newline at end of file diff --git a/node_modules/is-installed-globally/package.json b/node_modules/is-installed-globally/package.json index bad8f8918..40100962f 100644 --- a/node_modules/is-installed-globally/package.json +++ b/node_modules/is-installed-globally/package.json @@ -1,54 +1,58 @@ { - "name": "is-installed-globally", - "version": "0.3.2", - "description": "Check if your package was installed globally", - "license": "MIT", - "repository": "sindresorhus/is-installed-globally", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "global", - "package", - "globally", - "module", - "install", - "installed", - "npm", - "yarn", - "is", - "check", - "detect", - "local", - "locally", - "cli", - "bin", - "binary" - ], - "dependencies": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" - }, - "devDependencies": { - "ava": "^2.4.0", - "cpy": "^7.3.0", - "del": "^5.1.0", - "execa": "^2.0.4", - "make-dir": "^3.0.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } + "name": "is-installed-globally", + "version": "0.3.2", + "description": "Check if your package was installed globally", + "license": "MIT", + "repository": "sindresorhus/is-installed-globally", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "global", + "package", + "globally", + "module", + "install", + "installed", + "npm", + "yarn", + "is", + "check", + "detect", + "local", + "locally", + "cli", + "bin", + "binary" + ], + "dependencies": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + }, + "devDependencies": { + "ava": "^2.4.0", + "cpy": "^7.3.0", + "del": "^5.1.0", + "execa": "^2.0.4", + "make-dir": "^3.0.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz" +,"_integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==" +,"_from": "is-installed-globally@0.3.2" } \ No newline at end of file diff --git a/node_modules/is-interactive/package.json b/node_modules/is-interactive/package.json index 2c0f4c55d..c23793c1e 100644 --- a/node_modules/is-interactive/package.json +++ b/node_modules/is-interactive/package.json @@ -1,38 +1,42 @@ { - "name": "is-interactive", - "version": "1.0.0", - "description": "Check if stdout or stderr is interactive", - "license": "MIT", - "repository": "sindresorhus/is-interactive", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "interactive", - "stdout", - "stderr", - "detect", - "is", - "terminal", - "shell", - "tty" - ], - "devDependencies": { - "@types/node": "^12.0.12", - "ava": "^2.1.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - } + "name": "is-interactive", + "version": "1.0.0", + "description": "Check if stdout or stderr is interactive", + "license": "MIT", + "repository": "sindresorhus/is-interactive", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "interactive", + "stdout", + "stderr", + "detect", + "is", + "terminal", + "shell", + "tty" + ], + "devDependencies": { + "@types/node": "^12.0.12", + "ava": "^2.1.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" +,"_integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==" +,"_from": "is-interactive@1.0.0" } \ No newline at end of file diff --git a/node_modules/is-npm/package.json b/node_modules/is-npm/package.json index 07c9dcb40..a405f9f87 100644 --- a/node_modules/is-npm/package.json +++ b/node_modules/is-npm/package.json @@ -1,37 +1,41 @@ { - "name": "is-npm", - "version": "4.0.0", - "description": "Check if your code is running as an npm script", - "license": "MIT", - "repository": "sindresorhus/is-npm", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "is", - "check", - "detect", - "env", - "environment", - "run", - "script" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd-check": "^0.6.0", - "xo": "^0.25.3" - } + "name": "is-npm", + "version": "4.0.0", + "description": "Check if your code is running as an npm script", + "license": "MIT", + "repository": "sindresorhus/is-npm", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "is", + "check", + "detect", + "env", + "environment", + "run", + "script" + ], + "devDependencies": { + "ava": "^2.4.0", + "tsd-check": "^0.6.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz" +,"_integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==" +,"_from": "is-npm@4.0.0" } \ No newline at end of file diff --git a/node_modules/is-number/package.json b/node_modules/is-number/package.json index 1749833c1..002361756 100644 --- a/node_modules/is-number/package.json +++ b/node_modules/is-number/package.json @@ -79,4 +79,8 @@ "reflinks": true } } + +,"_resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" +,"_integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" +,"_from": "is-number@7.0.0" } \ No newline at end of file diff --git a/node_modules/is-obj/package.json b/node_modules/is-obj/package.json index 1485e78dd..0db846586 100644 --- a/node_modules/is-obj/package.json +++ b/node_modules/is-obj/package.json @@ -1,34 +1,38 @@ { - "name": "is-obj", - "version": "2.0.0", - "description": "Check if a value is an object", - "license": "MIT", - "repository": "sindresorhus/is-obj", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "is", - "check", - "test", - "type" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "is-obj", + "version": "2.0.0", + "description": "Check if a value is an object", + "license": "MIT", + "repository": "sindresorhus/is-obj", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "is", + "check", + "test", + "type" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz" +,"_integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" +,"_from": "is-obj@2.0.0" } \ No newline at end of file diff --git a/node_modules/is-path-cwd/package.json b/node_modules/is-path-cwd/package.json index 064cba0b0..55ea5ecb4 100644 --- a/node_modules/is-path-cwd/package.json +++ b/node_modules/is-path-cwd/package.json @@ -1,36 +1,40 @@ { - "name": "is-path-cwd", - "version": "2.2.0", - "description": "Check if a path is the current working directory", - "license": "MIT", - "repository": "sindresorhus/is-path-cwd", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "cwd", - "pwd", - "check", - "filepath", - "file", - "folder" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "is-path-cwd", + "version": "2.2.0", + "description": "Check if a path is the current working directory", + "license": "MIT", + "repository": "sindresorhus/is-path-cwd", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "cwd", + "pwd", + "check", + "filepath", + "file", + "folder" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz" +,"_integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" +,"_from": "is-path-cwd@2.2.0" } \ No newline at end of file diff --git a/node_modules/is-path-inside/package.json b/node_modules/is-path-inside/package.json index 8d9d9343a..a6e54a227 100644 --- a/node_modules/is-path-inside/package.json +++ b/node_modules/is-path-inside/package.json @@ -1,36 +1,40 @@ { - "name": "is-path-inside", - "version": "3.0.2", - "description": "Check if a path is inside another path", - "license": "MIT", - "repository": "sindresorhus/is-path-inside", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "inside", - "folder", - "directory", - "dir", - "file", - "resolve" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "is-path-inside", + "version": "3.0.2", + "description": "Check if a path is inside another path", + "license": "MIT", + "repository": "sindresorhus/is-path-inside", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "inside", + "folder", + "directory", + "dir", + "file", + "resolve" + ], + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz" +,"_integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==" +,"_from": "is-path-inside@3.0.2" } \ No newline at end of file diff --git a/node_modules/is-plain-object/package.json b/node_modules/is-plain-object/package.json index 986ffab26..300c45203 100644 --- a/node_modules/is-plain-object/package.json +++ b/node_modules/is-plain-object/package.json @@ -79,4 +79,8 @@ "reflinks": true } } + +,"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz" +,"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==" +,"_from": "is-plain-object@3.0.0" } \ No newline at end of file diff --git a/node_modules/is-promise/package.json b/node_modules/is-promise/package.json index e729cac00..ee9c0f64f 100644 --- a/node_modules/is-promise/package.json +++ b/node_modules/is-promise/package.json @@ -27,4 +27,8 @@ }, "author": "ForbesLindesay", "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/is-promise/-/is-promise-3.0.0.tgz" +,"_integrity": "sha512-aTHJ4BvETyySzLhguH+7sL4b8765eecqq7ZrHVuhZr3FjCL/IV+LsvisEeH+9d0AkChYny3ad1KEL+mKy4ot7A==" +,"_from": "is-promise@3.0.0" } \ No newline at end of file diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index e0d17830e..0f50caac8 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -35,4 +35,8 @@ "tempfile": "^1.1.0", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" +,"_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" +,"_from": "is-stream@1.1.0" } \ No newline at end of file diff --git a/node_modules/is-typedarray/package.json b/node_modules/is-typedarray/package.json index 6fc813ab7..73e4061e0 100644 --- a/node_modules/is-typedarray/package.json +++ b/node_modules/is-typedarray/package.json @@ -27,4 +27,8 @@ "url": "https://github.com/hughsk/is-typedarray/issues" }, "homepage": "https://github.com/hughsk/is-typedarray" + +,"_resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" +,"_integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" +,"_from": "is-typedarray@1.0.0" } \ No newline at end of file diff --git a/node_modules/is-yarn-global/package.json b/node_modules/is-yarn-global/package.json index 25b0e3dfc..63bc4b8d4 100644 --- a/node_modules/is-yarn-global/package.json +++ b/node_modules/is-yarn-global/package.json @@ -12,4 +12,8 @@ "ava": "^0.24.0", "xo": "^0.18.2" } + +,"_resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz" +,"_integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" +,"_from": "is-yarn-global@0.3.0" } \ No newline at end of file diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json index 5e8bc7867..4ae1ed4ce 100644 --- a/node_modules/isexe/package.json +++ b/node_modules/isexe/package.json @@ -28,4 +28,8 @@ "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme" + +,"_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" +,"_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" +,"_from": "isexe@2.0.0" } \ No newline at end of file diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index c59d1ba3a..8ddad953f 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -77,4 +77,8 @@ "verb" ] } + +,"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz" +,"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==" +,"_from": "isobject@4.0.0" } \ No newline at end of file diff --git a/node_modules/js-string-escape/package.json b/node_modules/js-string-escape/package.json index 5675486fe..2bb2f6640 100644 --- a/node_modules/js-string-escape/package.json +++ b/node_modules/js-string-escape/package.json @@ -25,7 +25,7 @@ } ], "license": "MIT", - "devDependencies": { + "devDependencies" : { "tap": "~> 0.4.2", "punycode": "~> 1.2.1" }, @@ -35,4 +35,8 @@ "files": [ "index.js" ] + +,"_resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz" +,"_integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=" +,"_from": "js-string-escape@1.0.1" } \ No newline at end of file diff --git a/node_modules/js-tokens/package.json b/node_modules/js-tokens/package.json index a4c280b67..368221c86 100644 --- a/node_modules/js-tokens/package.json +++ b/node_modules/js-tokens/package.json @@ -27,4 +27,8 @@ "everything.js": "1.0.3", "mocha": "5.0.0" } + +,"_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" +,"_integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" +,"_from": "js-tokens@4.0.0" } \ No newline at end of file diff --git a/node_modules/js-yaml/node_modules/esprima/package.json b/node_modules/js-yaml/node_modules/esprima/package.json index 55d445995..942d939a5 100644 --- a/node_modules/js-yaml/node_modules/esprima/package.json +++ b/node_modules/js-yaml/node_modules/esprima/package.json @@ -109,4 +109,8 @@ "generate-regex": "node tools/generate-identifier-regex.js", "generate-xhtml-entities": "node tools/generate-xhtml-entities.js" } + +,"_resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" +,"_integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" +,"_from": "esprima@4.0.1" } \ No newline at end of file diff --git a/node_modules/js-yaml/package.json b/node_modules/js-yaml/package.json index dbaa43e0c..dd41f7f11 100644 --- a/node_modules/js-yaml/package.json +++ b/node_modules/js-yaml/package.json @@ -44,4 +44,8 @@ "scripts": { "test": "make test" } + +,"_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz" +,"_integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==" +,"_from": "js-yaml@3.13.1" } \ No newline at end of file diff --git a/node_modules/json-buffer/package.json b/node_modules/json-buffer/package.json index 3c51a6781..003343ae6 100644 --- a/node_modules/json-buffer/package.json +++ b/node_modules/json-buffer/package.json @@ -31,4 +31,8 @@ "android-browser/4.2..latest" ] } + +,"_resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz" +,"_integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" +,"_from": "json-buffer@3.0.0" } \ No newline at end of file diff --git a/node_modules/json-parse-better-errors/package.json b/node_modules/json-parse-better-errors/package.json index 89b9301d6..2d2d208c3 100644 --- a/node_modules/json-parse-better-errors/package.json +++ b/node_modules/json-parse-better-errors/package.json @@ -42,4 +42,8 @@ ] } } + +,"_resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" +,"_integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" +,"_from": "json-parse-better-errors@1.0.2" } \ No newline at end of file diff --git a/node_modules/json-stringify-safe/package.json b/node_modules/json-stringify-safe/package.json index 7493a587d..5d5488725 100644 --- a/node_modules/json-stringify-safe/package.json +++ b/node_modules/json-stringify-safe/package.json @@ -28,4 +28,8 @@ "must": ">= 0.12 < 0.13", "sinon": ">= 1.12.2 < 2" } + +,"_resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" +,"_integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" +,"_from": "json-stringify-safe@5.0.1" } \ No newline at end of file diff --git a/node_modules/jsonschema/package.json b/node_modules/jsonschema/package.json index 8d384e2d4..a0f4e3e2c 100644 --- a/node_modules/jsonschema/package.json +++ b/node_modules/jsonschema/package.json @@ -35,4 +35,8 @@ "scripts": { "test": "./node_modules/.bin/mocha -R spec" } + +,"_resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.6.tgz" +,"_integrity": "sha512-SqhURKZG07JyKKeo/ir24QnS4/BV7a6gQy93bUSe4lUdNp0QNpIz2c9elWJQ9dpc5cQYY6cvCzgRwy0MQCLyqA==" +,"_from": "jsonschema@1.2.6" } \ No newline at end of file diff --git a/node_modules/keyv/package.json b/node_modules/keyv/package.json index e179afca8..22585d90b 100644 --- a/node_modules/keyv/package.json +++ b/node_modules/keyv/package.json @@ -46,4 +46,8 @@ "timekeeper": "^2.0.0", "xo": "^0.20.1" } + +,"_resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz" +,"_integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==" +,"_from": "keyv@3.1.0" } \ No newline at end of file diff --git a/node_modules/latest-version/package.json b/node_modules/latest-version/package.json index 601992a28..48621639f 100644 --- a/node_modules/latest-version/package.json +++ b/node_modules/latest-version/package.json @@ -1,42 +1,46 @@ { - "name": "latest-version", - "version": "5.1.0", - "description": "Get the latest version of an npm package", - "license": "MIT", - "repository": "sindresorhus/latest-version", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "latest", - "version", - "npm", - "pkg", - "package", - "package.json", - "current", - "module" - ], - "dependencies": { - "package-json": "^6.3.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "semver": "^6.0.0", - "semver-regex": "^2.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "latest-version", + "version": "5.1.0", + "description": "Get the latest version of an npm package", + "license": "MIT", + "repository": "sindresorhus/latest-version", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "latest", + "version", + "npm", + "pkg", + "package", + "package.json", + "current", + "module" + ], + "dependencies": { + "package-json": "^6.3.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "semver": "^6.0.0", + "semver-regex": "^2.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz" +,"_integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==" +,"_from": "latest-version@5.1.0" } \ No newline at end of file diff --git a/node_modules/lines-and-columns/package.json b/node_modules/lines-and-columns/package.json index 646cb2301..0ac37ec31 100644 --- a/node_modules/lines-and-columns/package.json +++ b/node_modules/lines-and-columns/package.json @@ -42,4 +42,8 @@ "typescript": "^2.1.4" }, "version": "1.1.6" + +,"_resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz" +,"_integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" +,"_from": "lines-and-columns@1.1.6" } \ No newline at end of file diff --git a/node_modules/load-json-file/node_modules/strip-bom/package.json b/node_modules/load-json-file/node_modules/strip-bom/package.json index f37e6ab2e..a2e66c154 100644 --- a/node_modules/load-json-file/node_modules/strip-bom/package.json +++ b/node_modules/load-json-file/node_modules/strip-bom/package.json @@ -37,4 +37,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" +,"_integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" +,"_from": "strip-bom@3.0.0" } \ No newline at end of file diff --git a/node_modules/load-json-file/node_modules/type-fest/package.json b/node_modules/load-json-file/node_modules/type-fest/package.json index e0a025de5..3661ed5f9 100644 --- a/node_modules/load-json-file/node_modules/type-fest/package.json +++ b/node_modules/load-json-file/node_modules/type-fest/package.json @@ -1,49 +1,53 @@ { - "name": "type-fest", - "version": "0.3.1", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.3.0", - "@typescript-eslint/eslint-plugin": "^1.5.0", - "eslint-config-xo-typescript": "^0.9.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off" - } - } + "name": "type-fest", + "version": "0.3.1", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.3.0", + "@typescript-eslint/eslint-plugin": "^1.5.0", + "eslint-config-xo-typescript": "^0.9.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz" +,"_integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==" +,"_from": "type-fest@0.3.1" } \ No newline at end of file diff --git a/node_modules/load-json-file/package.json b/node_modules/load-json-file/package.json index 644fa615e..16da414d5 100644 --- a/node_modules/load-json-file/package.json +++ b/node_modules/load-json-file/package.json @@ -1,43 +1,47 @@ { - "name": "load-json-file", - "version": "5.3.0", - "description": "Read and parse a JSON file", - "license": "MIT", - "repository": "sindresorhus/load-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "read", - "json", - "parse", - "file", - "fs", - "graceful", - "load" - ], - "dependencies": { - "graceful-fs": "^4.1.15", - "parse-json": "^4.0.0", - "pify": "^4.0.1", - "strip-bom": "^3.0.0", - "type-fest": "^0.3.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "load-json-file", + "version": "5.3.0", + "description": "Read and parse a JSON file", + "license": "MIT", + "repository": "sindresorhus/load-json-file", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "read", + "json", + "parse", + "file", + "fs", + "graceful", + "load" + ], + "dependencies": { + "graceful-fs": "^4.1.15", + "parse-json": "^4.0.0", + "pify": "^4.0.1", + "strip-bom": "^3.0.0", + "type-fest": "^0.3.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz" +,"_integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==" +,"_from": "load-json-file@5.3.0" } \ No newline at end of file diff --git a/node_modules/locate-path/package.json b/node_modules/locate-path/package.json index c3cac4f11..a73101f8e 100644 --- a/node_modules/locate-path/package.json +++ b/node_modules/locate-path/package.json @@ -1,45 +1,49 @@ { - "name": "locate-path", - "version": "5.0.0", - "description": "Get the first path that exists on disk of multiple paths", - "license": "MIT", - "repository": "sindresorhus/locate-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "locate", - "path", - "paths", - "file", - "files", - "exists", - "find", - "finder", - "search", - "searcher", - "array", - "iterable", - "iterator" - ], - "dependencies": { - "p-locate": "^4.1.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "locate-path", + "version": "5.0.0", + "description": "Get the first path that exists on disk of multiple paths", + "license": "MIT", + "repository": "sindresorhus/locate-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "locate", + "path", + "paths", + "file", + "files", + "exists", + "find", + "finder", + "search", + "searcher", + "array", + "iterable", + "iterator" + ], + "dependencies": { + "p-locate": "^4.1.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" +,"_integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==" +,"_from": "locate-path@5.0.0" } \ No newline at end of file diff --git a/node_modules/lodash.clonedeep/package.json b/node_modules/lodash.clonedeep/package.json index 06e0a424b..63593f28b 100644 --- a/node_modules/lodash.clonedeep/package.json +++ b/node_modules/lodash.clonedeep/package.json @@ -13,7 +13,9 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + +,"_resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz" +,"_integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" +,"_from": "lodash.clonedeep@4.5.0" } \ No newline at end of file diff --git a/node_modules/lodash.flattendeep/package.json b/node_modules/lodash.flattendeep/package.json index 24bf32a74..d70de5dc8 100644 --- a/node_modules/lodash.flattendeep/package.json +++ b/node_modules/lodash.flattendeep/package.json @@ -13,7 +13,9 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + +,"_resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz" +,"_integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=" +,"_from": "lodash.flattendeep@4.4.0" } \ No newline at end of file diff --git a/node_modules/lodash.islength/package.json b/node_modules/lodash.islength/package.json index e8687664b..dfda9a8e9 100644 --- a/node_modules/lodash.islength/package.json +++ b/node_modules/lodash.islength/package.json @@ -13,7 +13,9 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + +,"_resolved": "https://registry.npmjs.org/lodash.islength/-/lodash.islength-4.0.1.tgz" +,"_integrity": "sha1-Tpho1FJXXXUK/9NYyXlUPcIO1Xc=" +,"_from": "lodash.islength@4.0.1" } \ No newline at end of file diff --git a/node_modules/lodash.merge/package.json b/node_modules/lodash.merge/package.json index 41a93f294..64c7bcf4c 100644 --- a/node_modules/lodash.merge/package.json +++ b/node_modules/lodash.merge/package.json @@ -12,7 +12,9 @@ "Mathias Bynens " ], "repository": "lodash/lodash", - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } + +,"_resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" +,"_integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" +,"_from": "lodash.merge@4.6.2" } \ No newline at end of file diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json index d0967f7a9..205e9bb0a 100644 --- a/node_modules/lodash/package.json +++ b/node_modules/lodash/package.json @@ -13,7 +13,9 @@ "John-David Dalton ", "Mathias Bynens " ], - "scripts": { - "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" - } + "scripts": { "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" } + +,"_resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz" +,"_integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" +,"_from": "lodash@4.17.15" } \ No newline at end of file diff --git a/node_modules/log-symbols/package.json b/node_modules/log-symbols/package.json index a7bb760a1..fe17beec9 100644 --- a/node_modules/log-symbols/package.json +++ b/node_modules/log-symbols/package.json @@ -1,50 +1,54 @@ { - "name": "log-symbols", - "version": "3.0.0", - "description": "Colored symbols for various log levels. Example: `✔︎ Success`", - "license": "MIT", - "repository": "sindresorhus/log-symbols", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "browser.js" - ], - "keywords": [ - "unicode", - "cli", - "cmd", - "command-line", - "characters", - "symbol", - "symbols", - "figure", - "figures", - "fallback", - "windows", - "log", - "logging", - "terminal", - "stdout" - ], - "dependencies": { - "chalk": "^2.4.2" - }, - "devDependencies": { - "ava": "^1.4.1", - "strip-ansi": "^5.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "log-symbols", + "version": "3.0.0", + "description": "Colored symbols for various log levels. Example: `✔︎ Success`", + "license": "MIT", + "repository": "sindresorhus/log-symbols", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "browser.js" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback", + "windows", + "log", + "logging", + "terminal", + "stdout" + ], + "dependencies": { + "chalk": "^2.4.2" + }, + "devDependencies": { + "ava": "^1.4.1", + "strip-ansi": "^5.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz" +,"_integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==" +,"_from": "log-symbols@3.0.0" } \ No newline at end of file diff --git a/node_modules/long/package.json b/node_modules/long/package.json index 922ef794d..3be939df4 100644 --- a/node_modules/long/package.json +++ b/node_modules/long/package.json @@ -1,34 +1,38 @@ { - "name": "long", - "version": "4.0.0", - "author": "Daniel Wirtz ", - "description": "A Long class for representing a 64-bit two's-complement integer value.", - "main": "src/long.js", - "repository": { - "type": "git", - "url": "https://github.com/dcodeIO/long.js.git" - }, - "bugs": { - "url": "https://github.com/dcodeIO/long.js/issues" - }, - "keywords": [ - "math" - ], - "dependencies": {}, - "devDependencies": { - "webpack": "^3.10.0" - }, - "license": "Apache-2.0", - "scripts": { - "build": "webpack", - "test": "node tests" - }, - "files": [ - "index.js", - "LICENSE", - "README.md", - "src/long.js", - "dist/long.js", - "dist/long.js.map" - ] + "name": "long", + "version": "4.0.0", + "author": "Daniel Wirtz ", + "description": "A Long class for representing a 64-bit two's-complement integer value.", + "main": "src/long.js", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/long.js.git" + }, + "bugs": { + "url": "https://github.com/dcodeIO/long.js/issues" + }, + "keywords": [ + "math" + ], + "dependencies": {}, + "devDependencies": { + "webpack": "^3.10.0" + }, + "license": "Apache-2.0", + "scripts": { + "build": "webpack", + "test": "node tests" + }, + "files": [ + "index.js", + "LICENSE", + "README.md", + "src/long.js", + "dist/long.js", + "dist/long.js.map" + ] + +,"_resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz" +,"_integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" +,"_from": "long@4.0.0" } \ No newline at end of file diff --git a/node_modules/lowercase-keys/package.json b/node_modules/lowercase-keys/package.json index e28b4c1dd..9723e2602 100644 --- a/node_modules/lowercase-keys/package.json +++ b/node_modules/lowercase-keys/package.json @@ -32,4 +32,8 @@ "devDependencies": { "ava": "*" } + +,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz" +,"_integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" +,"_from": "lowercase-keys@1.0.1" } \ No newline at end of file diff --git a/node_modules/macos-release/package.json b/node_modules/macos-release/package.json index 78bde8578..870c40cb0 100644 --- a/node_modules/macos-release/package.json +++ b/node_modules/macos-release/package.json @@ -1,39 +1,43 @@ { - "name": "macos-release", - "version": "2.3.0", - "description": "Get the name and version of a macOS release from the Darwin version", - "license": "MIT", - "repository": "sindresorhus/macos-release", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "macos", - "os", - "darwin", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "macos-release", + "version": "2.3.0", + "description": "Get the name and version of a macOS release from the Darwin version", + "license": "MIT", + "repository": "sindresorhus/macos-release", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "macos", + "os", + "darwin", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz" +,"_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==" +,"_from": "macos-release@2.3.0" } \ No newline at end of file diff --git a/node_modules/make-dir/node_modules/semver/package.json b/node_modules/make-dir/node_modules/semver/package.json index a330b56c2..13030769c 100644 --- a/node_modules/make-dir/node_modules/semver/package.json +++ b/node_modules/make-dir/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" +,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" +,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/make-dir/package.json b/node_modules/make-dir/package.json index f644e281a..27e91efaf 100644 --- a/node_modules/make-dir/package.json +++ b/node_modules/make-dir/package.json @@ -1,59 +1,63 @@ { - "name": "make-dir", - "version": "3.0.2", - "description": "Make a directory and its parents if needed - Think `mkdir -p`", - "license": "MIT", - "repository": "sindresorhus/make-dir", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "mkdir", - "mkdirp", - "make", - "directories", - "dir", - "dirs", - "folders", - "directory", - "folder", - "path", - "parent", - "parents", - "intermediate", - "recursively", - "recursive", - "create", - "fs", - "filesystem", - "file-system" - ], - "dependencies": { - "semver": "^6.0.0" - }, - "devDependencies": { - "@types/graceful-fs": "^4.1.3", - "@types/node": "^13.7.1", - "ava": "^1.4.0", - "codecov": "^3.2.0", - "graceful-fs": "^4.1.15", - "nyc": "^15.0.0", - "path-type": "^4.0.0", - "tempy": "^0.2.1", - "tsd": "^0.11.0", - "xo": "^0.25.4" - } + "name": "make-dir", + "version": "3.0.2", + "description": "Make a directory and its parents if needed - Think `mkdir -p`", + "license": "MIT", + "repository": "sindresorhus/make-dir", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "mkdir", + "mkdirp", + "make", + "directories", + "dir", + "dirs", + "folders", + "directory", + "folder", + "path", + "parent", + "parents", + "intermediate", + "recursively", + "recursive", + "create", + "fs", + "filesystem", + "file-system" + ], + "dependencies": { + "semver": "^6.0.0" + }, + "devDependencies": { + "@types/graceful-fs": "^4.1.3", + "@types/node": "^13.7.1", + "ava": "^1.4.0", + "codecov": "^3.2.0", + "graceful-fs": "^4.1.15", + "nyc": "^15.0.0", + "path-type": "^4.0.0", + "tempy": "^0.2.1", + "tsd": "^0.11.0", + "xo": "^0.25.4" + } + +,"_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.0.2.tgz" +,"_integrity": "sha512-rYKABKutXa6vXTXhoV18cBE7PaewPXHe/Bdq4v+ZLMhxbWApkFFplT0LcbMW+6BbjnQXzZ/sAvSE/JdguApG5w==" +,"_from": "make-dir@3.0.2" } \ No newline at end of file diff --git a/node_modules/map-age-cleaner/package.json b/node_modules/map-age-cleaner/package.json index 4478f2268..2ce35979d 100644 --- a/node_modules/map-age-cleaner/package.json +++ b/node_modules/map-age-cleaner/package.json @@ -1,59 +1,63 @@ { - "name": "map-age-cleaner", - "version": "0.1.3", - "description": "Automatically cleanup expired items in a Map", - "license": "MIT", - "repository": "SamVerschueren/map-age-cleaner", - "author": { - "name": "Sam Verschueren", - "email": "sam.verschueren@gmail.com", - "url": "github.com/SamVerschueren" - }, - "main": "dist/index.js", - "engines": { - "node": ">=6" - }, - "scripts": { - "prepublishOnly": "npm run build", - "pretest": "npm run build -- --sourceMap", - "test": "npm run lint && nyc ava dist/test.js", - "lint": "tslint --format stylish --project .", - "build": "npm run clean && tsc", - "clean": "del-cli dist" - }, - "files": [ - "dist/index.js", - "dist/index.d.ts" - ], - "keywords": [ - "map", - "age", - "cleaner", - "maxage", - "expire", - "expiration", - "expiring" - ], - "dependencies": { - "p-defer": "^1.0.0" - }, - "devDependencies": { - "@types/delay": "^2.0.1", - "@types/node": "^10.7.1", - "ava": "^0.25.0", - "codecov": "^3.0.0", - "del-cli": "^1.1.0", - "delay": "^3.0.0", - "nyc": "^12.0.0", - "tslint": "^5.11.0", - "tslint-xo": "^0.9.0", - "typescript": "^3.0.1" - }, - "typings": "dist/index.d.ts", - "sideEffects": false, - "nyc": { - "exclude": [ - "dist/test.js" - ] - } + "name": "map-age-cleaner", + "version": "0.1.3", + "description": "Automatically cleanup expired items in a Map", + "license": "MIT", + "repository": "SamVerschueren/map-age-cleaner", + "author": { + "name": "Sam Verschueren", + "email": "sam.verschueren@gmail.com", + "url": "github.com/SamVerschueren" + }, + "main": "dist/index.js", + "engines": { + "node": ">=6" + }, + "scripts": { + "prepublishOnly": "npm run build", + "pretest": "npm run build -- --sourceMap", + "test": "npm run lint && nyc ava dist/test.js", + "lint": "tslint --format stylish --project .", + "build": "npm run clean && tsc", + "clean": "del-cli dist" + }, + "files": [ + "dist/index.js", + "dist/index.d.ts" + ], + "keywords": [ + "map", + "age", + "cleaner", + "maxage", + "expire", + "expiration", + "expiring" + ], + "dependencies": { + "p-defer": "^1.0.0" + }, + "devDependencies": { + "@types/delay": "^2.0.1", + "@types/node": "^10.7.1", + "ava": "^0.25.0", + "codecov": "^3.0.0", + "del-cli": "^1.1.0", + "delay": "^3.0.0", + "nyc": "^12.0.0", + "tslint": "^5.11.0", + "tslint-xo": "^0.9.0", + "typescript": "^3.0.1" + }, + "typings": "dist/index.d.ts", + "sideEffects": false, + "nyc": { + "exclude": [ + "dist/test.js" + ] + } + +,"_resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz" +,"_integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==" +,"_from": "map-age-cleaner@0.1.3" } \ No newline at end of file diff --git a/node_modules/matcher/node_modules/escape-string-regexp/package.json b/node_modules/matcher/node_modules/escape-string-regexp/package.json index 053b31334..29a6312fd 100644 --- a/node_modules/matcher/node_modules/escape-string-regexp/package.json +++ b/node_modules/matcher/node_modules/escape-string-regexp/package.json @@ -1,38 +1,42 @@ { - "name": "escape-string-regexp", - "version": "4.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "regular", - "expression", - "string", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.11.0", - "xo": "^0.28.3" - } + "name": "escape-string-regexp", + "version": "4.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "regular", + "expression", + "string", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.11.0", + "xo": "^0.28.3" + } + +,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" +,"_integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" +,"_from": "escape-string-regexp@4.0.0" } \ No newline at end of file diff --git a/node_modules/matcher/package.json b/node_modules/matcher/package.json index af3a3845f..bae54d9ae 100644 --- a/node_modules/matcher/package.json +++ b/node_modules/matcher/package.json @@ -1,54 +1,58 @@ { - "name": "matcher", - "version": "3.0.0", - "description": "Simple wildcard matching", - "license": "MIT", - "repository": "sindresorhus/matcher", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "matcha bench.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "matcher", - "matching", - "match", - "regex", - "regexp", - "regular", - "expression", - "wildcard", - "pattern", - "string", - "filter", - "glob", - "globber", - "globbing", - "minimatch" - ], - "dependencies": { - "escape-string-regexp": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "matcha": "^0.7.0", - "tsd": "^0.11.0", - "xo": "^0.30.0" - }, - "xo": { - "rules": { - "@typescript-eslint/member-ordering": "off" - } - } + "name": "matcher", + "version": "3.0.0", + "description": "Simple wildcard matching", + "license": "MIT", + "repository": "sindresorhus/matcher", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "matcha bench.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "matcher", + "matching", + "match", + "regex", + "regexp", + "regular", + "expression", + "wildcard", + "pattern", + "string", + "filter", + "glob", + "globber", + "globbing", + "minimatch" + ], + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "matcha": "^0.7.0", + "tsd": "^0.11.0", + "xo": "^0.30.0" + }, + "xo": { + "rules": { + "@typescript-eslint/member-ordering": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz" +,"_integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==" +,"_from": "matcher@3.0.0" } \ No newline at end of file diff --git a/node_modules/md5-hex/package.json b/node_modules/md5-hex/package.json index a71c11260..63e1c3de6 100644 --- a/node_modules/md5-hex/package.json +++ b/node_modules/md5-hex/package.json @@ -1,41 +1,45 @@ { - "name": "md5-hex", - "version": "3.0.1", - "description": "Create a MD5 hash with hex encoding", - "license": "MIT", - "repository": "sindresorhus/md5-hex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "browser.js" - ], - "keywords": [ - "hash", - "crypto", - "md5", - "hex", - "buffer", - "browser" - ], - "dependencies": { - "blueimp-md5": "^2.10.0" - }, - "devDependencies": { - "@types/node": "^12.6.2", - "ava": "^2.2.0", - "tsd": "^0.7.4", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "md5-hex", + "version": "3.0.1", + "description": "Create a MD5 hash with hex encoding", + "license": "MIT", + "repository": "sindresorhus/md5-hex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "browser.js" + ], + "keywords": [ + "hash", + "crypto", + "md5", + "hex", + "buffer", + "browser" + ], + "dependencies": { + "blueimp-md5": "^2.10.0" + }, + "devDependencies": { + "@types/node": "^12.6.2", + "ava": "^2.2.0", + "tsd": "^0.7.4", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-3.0.1.tgz" +,"_integrity": "sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==" +,"_from": "md5-hex@3.0.1" } \ No newline at end of file diff --git a/node_modules/md5-o-matic/package.json b/node_modules/md5-o-matic/package.json index 72382adbc..d5aeffd9f 100644 --- a/node_modules/md5-o-matic/package.json +++ b/node_modules/md5-o-matic/package.json @@ -28,9 +28,9 @@ }, "licenses": [ { - "type": "MIT", - "url": "https://github.com/trentmillar/md5-o-matic/blob/master/LICENSE" - } + "type": "MIT", + "url": "https://github.com/trentmillar/md5-o-matic/blob/master/LICENSE" + } ], "devDependencies": { "mocha": "", @@ -41,4 +41,8 @@ "url": "https://github.com/trentmillar/md5-o-matic/issues" }, "homepage": "https://github.com/trentmillar/md5-o-matic" + +,"_resolved": "https://registry.npmjs.org/md5-o-matic/-/md5-o-matic-0.1.1.tgz" +,"_integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=" +,"_from": "md5-o-matic@0.1.1" } \ No newline at end of file diff --git a/node_modules/md5/package.json b/node_modules/md5/package.json index fdcac15a4..644e305f0 100644 --- a/node_modules/md5/package.json +++ b/node_modules/md5/package.json @@ -33,4 +33,8 @@ }, "optionalDependencies": {}, "license": "BSD-3-Clause" + +,"_resolved": "https://registry.npmjs.org/md5/-/md5-2.2.1.tgz" +,"_integrity": "sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=" +,"_from": "md5@2.2.1" } \ No newline at end of file diff --git a/node_modules/mem/node_modules/mimic-fn/package.json b/node_modules/mem/node_modules/mimic-fn/package.json index ac43d06ca..ae102f417 100644 --- a/node_modules/mem/node_modules/mimic-fn/package.json +++ b/node_modules/mem/node_modules/mimic-fn/package.json @@ -1,42 +1,46 @@ { - "name": "mimic-fn", - "version": "3.0.0", - "description": "Make a function mimic another one", - "license": "MIT", - "repository": "sindresorhus/mimic-fn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "function", - "mimic", - "imitate", - "rename", - "copy", - "inherit", - "properties", - "name", - "func", - "fn", - "set", - "infer", - "change" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "mimic-fn", + "version": "3.0.0", + "description": "Make a function mimic another one", + "license": "MIT", + "repository": "sindresorhus/mimic-fn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "function", + "mimic", + "imitate", + "rename", + "copy", + "inherit", + "properties", + "name", + "func", + "fn", + "set", + "infer", + "change" + ], + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.0.0.tgz" +,"_integrity": "sha512-PiVO95TKvhiwgSwg1IdLYlCTdul38yZxZMIcnDSFIBUm4BNZha2qpQ4GpJ++15bHoKDtrW2D69lMfFwdFYtNZQ==" +,"_from": "mimic-fn@3.0.0" } \ No newline at end of file diff --git a/node_modules/mem/package.json b/node_modules/mem/package.json index dba9edb68..645ec3287 100644 --- a/node_modules/mem/package.json +++ b/node_modules/mem/package.json @@ -1,46 +1,50 @@ { - "name": "mem", - "version": "6.1.0", - "description": "Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input", - "license": "MIT", - "repository": "sindresorhus/mem", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "memoize", - "function", - "mem", - "memoization", - "cache", - "caching", - "optimize", - "performance", - "ttl", - "expire", - "promise" - ], - "dependencies": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "delay": "^4.1.0", - "serialize-javascript": "^2.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "mem", + "version": "6.1.0", + "description": "Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input", + "license": "MIT", + "repository": "sindresorhus/mem", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "memoize", + "function", + "mem", + "memoization", + "cache", + "caching", + "optimize", + "performance", + "ttl", + "expire", + "promise" + ], + "dependencies": { + "map-age-cleaner": "^0.1.3", + "mimic-fn": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "delay": "^4.1.0", + "serialize-javascript": "^2.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/mem/-/mem-6.1.0.tgz" +,"_integrity": "sha512-RlbnLQgRHk5lwqTtpEkBTQ2ll/CG/iB+J4Hy2Wh97PjgZgXgWJWrFF+XXujh3UUVLvR4OOTgZzcWMMwnehlEUg==" +,"_from": "mem@6.1.0" } \ No newline at end of file diff --git a/node_modules/merge2/package.json b/node_modules/merge2/package.json index 1e09cf88b..972cfb99e 100644 --- a/node_modules/merge2/package.json +++ b/node_modules/merge2/package.json @@ -1,43 +1,47 @@ -{ - "name": "merge2", - "description": "Merge multiple streams into one stream in sequence or parallel.", - "authors": [ - "Yan Qing " - ], - "license": "MIT", - "version": "1.3.0", - "main": "./index.js", - "repository": { - "type": "git", - "url": "git@github.com:teambition/merge2.git" - }, - "homepage": "https://github.com/teambition/merge2", - "keywords": [ - "merge2", - "multiple", - "sequence", - "parallel", - "merge", - "stream", - "merge stream", - "sync" - ], - "engines": { - "node": ">= 6" - }, - "dependencies": {}, - "devDependencies": { - "standard": "^14.2.0", - "through2": "^3.0.1", - "thunks": "^4.9.5", - "tman": "^1.9.0", - "to-through": "^2.0.0" - }, - "scripts": { - "test": "standard && tman" - }, - "files": [ - "README.md", - "index.js" - ] +{ + "name": "merge2", + "description": "Merge multiple streams into one stream in sequence or parallel.", + "authors": [ + "Yan Qing " + ], + "license": "MIT", + "version": "1.3.0", + "main": "./index.js", + "repository": { + "type": "git", + "url": "git@github.com:teambition/merge2.git" + }, + "homepage": "https://github.com/teambition/merge2", + "keywords": [ + "merge2", + "multiple", + "sequence", + "parallel", + "merge", + "stream", + "merge stream", + "sync" + ], + "engines": { + "node": ">= 6" + }, + "dependencies": {}, + "devDependencies": { + "standard": "^14.2.0", + "through2": "^3.0.1", + "thunks": "^4.9.5", + "tman": "^1.9.0", + "to-through": "^2.0.0" + }, + "scripts": { + "test": "standard && tman" + }, + "files": [ + "README.md", + "index.js" + ] + +,"_resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz" +,"_integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==" +,"_from": "merge2@1.3.0" } \ No newline at end of file diff --git a/node_modules/micromatch/package.json b/node_modules/micromatch/package.json index 0b870b1fe..5fbff1a64 100644 --- a/node_modules/micromatch/package.json +++ b/node_modules/micromatch/package.json @@ -115,4 +115,8 @@ "multimatch" ] } + +,"_resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz" +,"_integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==" +,"_from": "micromatch@4.0.2" } \ No newline at end of file diff --git a/node_modules/mimic-fn/package.json b/node_modules/mimic-fn/package.json index cddfcb379..0ed35fde3 100644 --- a/node_modules/mimic-fn/package.json +++ b/node_modules/mimic-fn/package.json @@ -1,42 +1,46 @@ { - "name": "mimic-fn", - "version": "2.1.0", - "description": "Make a function mimic another one", - "license": "MIT", - "repository": "sindresorhus/mimic-fn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "function", - "mimic", - "imitate", - "rename", - "copy", - "inherit", - "properties", - "name", - "func", - "fn", - "set", - "infer", - "change" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "mimic-fn", + "version": "2.1.0", + "description": "Make a function mimic another one", + "license": "MIT", + "repository": "sindresorhus/mimic-fn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "function", + "mimic", + "imitate", + "rename", + "copy", + "inherit", + "properties", + "name", + "func", + "fn", + "set", + "infer", + "change" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" +,"_integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" +,"_from": "mimic-fn@2.1.0" } \ No newline at end of file diff --git a/node_modules/mimic-response/package.json b/node_modules/mimic-response/package.json index 953152b76..f491ccda6 100644 --- a/node_modules/mimic-response/package.json +++ b/node_modules/mimic-response/package.json @@ -34,4 +34,8 @@ "pify": "^3.0.0", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" +,"_integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" +,"_from": "mimic-response@1.0.1" } \ No newline at end of file diff --git a/node_modules/minimatch/package.json b/node_modules/minimatch/package.json index 8c89ea278..243f26056 100644 --- a/node_modules/minimatch/package.json +++ b/node_modules/minimatch/package.json @@ -27,4 +27,8 @@ "files": [ "minimatch.js" ] + +,"_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" +,"_integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" +,"_from": "minimatch@3.0.4" } \ No newline at end of file diff --git a/node_modules/minimist/package.json b/node_modules/minimist/package.json index 6d7171689..71b4f816e 100644 --- a/node_modules/minimist/package.json +++ b/node_modules/minimist/package.json @@ -42,4 +42,8 @@ "url": "http://substack.net" }, "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz" +,"_integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" +,"_from": "minimist@1.2.5" } \ No newline at end of file diff --git a/node_modules/mkdirp/package.json b/node_modules/mkdirp/package.json index b335f1ae0..8f5b167f8 100644 --- a/node_modules/mkdirp/package.json +++ b/node_modules/mkdirp/package.json @@ -31,4 +31,8 @@ "bin", "index.js" ] + +,"_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz" +,"_integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==" +,"_from": "mkdirp@0.5.4" } \ No newline at end of file diff --git a/node_modules/ms/package.json b/node_modules/ms/package.json index 3408eef7c..e286ef2be 100644 --- a/node_modules/ms/package.json +++ b/node_modules/ms/package.json @@ -34,4 +34,8 @@ "lint-staged": "5.0.0", "mocha": "4.0.1" } + +,"_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" +,"_integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" +,"_from": "ms@2.1.2" } \ No newline at end of file diff --git a/node_modules/mute-stream/package.json b/node_modules/mute-stream/package.json index dcd78bedf..92cedb79a 100644 --- a/node_modules/mute-stream/package.json +++ b/node_modules/mute-stream/package.json @@ -26,4 +26,8 @@ "files": [ "mute.js" ] + +,"_resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" +,"_integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" +,"_from": "mute-stream@0.0.8" } \ No newline at end of file diff --git a/node_modules/nice-try/package.json b/node_modules/nice-try/package.json index 9d6f07278..c118b5728 100644 --- a/node_modules/nice-try/package.json +++ b/node_modules/nice-try/package.json @@ -30,4 +30,8 @@ "nyc": "^12.0.1", "mocha": "^5.1.1" } + +,"_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" +,"_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" +,"_from": "nice-try@1.0.5" } \ No newline at end of file diff --git a/node_modules/nock/package.json b/node_modules/nock/package.json index 9f0f2004f..ff6dddc87 100644 --- a/node_modules/nock/package.json +++ b/node_modules/nock/package.json @@ -83,4 +83,8 @@ "lib", "types/index.d.ts" ] + +,"_resolved": "https://registry.npmjs.org/nock/-/nock-12.0.3.tgz" +,"_integrity": "sha512-QNb/j8kbFnKCiyqi9C5DD0jH/FubFGj5rt9NQFONXwQm3IPB0CULECg/eS3AU1KgZb/6SwUa4/DTRKhVxkGABw==" +,"_from": "nock@12.0.3" } \ No newline at end of file diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index 78a30d35a..d9dc1c211 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -63,4 +63,8 @@ "whatwg-url": "^5.0.0" }, "dependencies": {} + +,"_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz" +,"_integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" +,"_from": "node-fetch@2.6.0" } \ No newline at end of file diff --git a/node_modules/normalize-package-data/node_modules/semver/package.json b/node_modules/normalize-package-data/node_modules/semver/package.json index 90e287ecf..31e12dde0 100644 --- a/node_modules/normalize-package-data/node_modules/semver/package.json +++ b/node_modules/normalize-package-data/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" +,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" +,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/normalize-package-data/package.json b/node_modules/normalize-package-data/package.json index b427a6052..c73c60bb1 100644 --- a/node_modules/normalize-package-data/package.json +++ b/node_modules/normalize-package-data/package.json @@ -28,4 +28,8 @@ "lib/*.json", "AUTHORS" ] + +,"_resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" +,"_integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" +,"_from": "normalize-package-data@2.5.0" } \ No newline at end of file diff --git a/node_modules/normalize-url/package.json b/node_modules/normalize-url/package.json index 84adbb278..6d81b2f93 100644 --- a/node_modules/normalize-url/package.json +++ b/node_modules/normalize-url/package.json @@ -1,44 +1,48 @@ { - "name": "normalize-url", - "version": "4.5.0", - "description": "Normalize a URL", - "license": "MIT", - "repository": "sindresorhus/normalize-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "normalize", - "url", - "uri", - "address", - "string", - "normalization", - "normalisation", - "query", - "querystring", - "simplify", - "strip", - "trim", - "canonical" - ], - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.6", - "nyc": "^14.1.1", - "tsd": "^0.8.0", - "xo": "^0.24.0" - } + "name": "normalize-url", + "version": "4.5.0", + "description": "Normalize a URL", + "license": "MIT", + "repository": "sindresorhus/normalize-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "normalize", + "url", + "uri", + "address", + "string", + "normalization", + "normalisation", + "query", + "querystring", + "simplify", + "strip", + "trim", + "canonical" + ], + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.6", + "nyc": "^14.1.1", + "tsd": "^0.8.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz" +,"_integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" +,"_from": "normalize-url@4.5.0" } \ No newline at end of file diff --git a/node_modules/npm-run-path/package.json b/node_modules/npm-run-path/package.json index 509723438..557c23e7b 100644 --- a/node_modules/npm-run-path/package.json +++ b/node_modules/npm-run-path/package.json @@ -42,4 +42,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" +,"_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=" +,"_from": "npm-run-path@2.0.2" } \ No newline at end of file diff --git a/node_modules/once/package.json b/node_modules/once/package.json index c827b2595..a498f74fd 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -30,4 +30,8 @@ ], "author": "Isaac Z. Schlueter (http://blog.izs.me/)", "license": "ISC" + +,"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz" +,"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" +,"_from": "once@1.4.0" } \ No newline at end of file diff --git a/node_modules/onetime/package.json b/node_modules/onetime/package.json index 19a7f198c..93be75fae 100644 --- a/node_modules/onetime/package.json +++ b/node_modules/onetime/package.json @@ -1,42 +1,46 @@ { - "name": "onetime", - "version": "5.1.0", - "description": "Ensure a function is only called once", - "license": "MIT", - "repository": "sindresorhus/onetime", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "once", - "function", - "one", - "onetime", - "func", - "fn", - "single", - "call", - "called", - "prevent" - ], - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "onetime", + "version": "5.1.0", + "description": "Ensure a function is only called once", + "license": "MIT", + "repository": "sindresorhus/onetime", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "once", + "function", + "one", + "onetime", + "func", + "fn", + "single", + "call", + "called", + "prevent" + ], + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz" +,"_integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==" +,"_from": "onetime@5.1.0" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/ansi-styles/package.json b/node_modules/ora/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/ora/node_modules/ansi-styles/package.json +++ b/node_modules/ora/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/chalk/package.json b/node_modules/ora/node_modules/chalk/package.json index b68e931e7..c75d30e94 100644 --- a/node_modules/ora/node_modules/chalk/package.json +++ b/node_modules/ora/node_modules/chalk/package.json @@ -1,63 +1,67 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" +,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" +,"_from": "chalk@3.0.0" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/color-convert/package.json b/node_modules/ora/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/ora/node_modules/color-convert/package.json +++ b/node_modules/ora/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/color-name/package.json b/node_modules/ora/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/ora/node_modules/color-name/package.json +++ b/node_modules/ora/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/has-flag/package.json b/node_modules/ora/node_modules/has-flag/package.json index 55d0058e4..5b10a2844 100644 --- a/node_modules/ora/node_modules/has-flag/package.json +++ b/node_modules/ora/node_modules/has-flag/package.json @@ -1,46 +1,50 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" +,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" +,"_from": "has-flag@4.0.0" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/supports-color/package.json b/node_modules/ora/node_modules/supports-color/package.json index 79856038d..f0982eb21 100644 --- a/node_modules/ora/node_modules/supports-color/package.json +++ b/node_modules/ora/node_modules/supports-color/package.json @@ -1,53 +1,57 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" +,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" +,"_from": "supports-color@7.1.0" } \ No newline at end of file diff --git a/node_modules/ora/package.json b/node_modules/ora/package.json index f5e907f91..29fd1e344 100644 --- a/node_modules/ora/package.json +++ b/node_modules/ora/package.json @@ -1,56 +1,60 @@ { - "name": "ora", - "version": "4.0.4", - "description": "Elegant terminal spinner", - "license": "MIT", - "repository": "sindresorhus/ora", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "spinner", - "spinners", - "terminal", - "term", - "console", - "ascii", - "unicode", - "loading", - "indicator", - "progress", - "busy", - "wait", - "idle" - ], - "dependencies": { - "chalk": "^3.0.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.2.0", - "is-interactive": "^1.0.0", - "log-symbols": "^3.0.0", - "mute-stream": "0.0.8", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "devDependencies": { - "@types/node": "^12.7.5", - "ava": "^2.4.0", - "get-stream": "^5.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } + "name": "ora", + "version": "4.0.4", + "description": "Elegant terminal spinner", + "license": "MIT", + "repository": "sindresorhus/ora", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "spinner", + "spinners", + "terminal", + "term", + "console", + "ascii", + "unicode", + "loading", + "indicator", + "progress", + "busy", + "wait", + "idle" + ], + "dependencies": { + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.2.0", + "is-interactive": "^1.0.0", + "log-symbols": "^3.0.0", + "mute-stream": "0.0.8", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "devDependencies": { + "@types/node": "^12.7.5", + "ava": "^2.4.0", + "get-stream": "^5.1.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ora/-/ora-4.0.4.tgz" +,"_integrity": "sha512-77iGeVU1cIdRhgFzCK8aw1fbtT1B/iZAvWjS+l/o1x0RShMgxHUZaD2yDpWsNCPwXg9z1ZA78Kbdvr8kBmG/Ww==" +,"_from": "ora@4.0.4" } \ No newline at end of file diff --git a/node_modules/os-name/package.json b/node_modules/os-name/package.json index 3418bf392..2ce367f0e 100644 --- a/node_modules/os-name/package.json +++ b/node_modules/os-name/package.json @@ -1,45 +1,49 @@ { - "name": "os-name", - "version": "3.1.0", - "description": "Get the name of the current operating system. Example: macOS Sierra", - "license": "MIT", - "repository": "sindresorhus/os-name", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "os", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version", - "macos", - "windows", - "linux" - ], - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "devDependencies": { - "@types/node": "^11.13.0", - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "os-name", + "version": "3.1.0", + "description": "Get the name of the current operating system. Example: macOS Sierra", + "license": "MIT", + "repository": "sindresorhus/os-name", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "os", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version", + "macos", + "windows", + "linux" + ], + "dependencies": { + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, + "devDependencies": { + "@types/node": "^11.13.0", + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz" +,"_integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==" +,"_from": "os-name@3.1.0" } \ No newline at end of file diff --git a/node_modules/p-cancelable/package.json b/node_modules/p-cancelable/package.json index 98d0b765a..7ffb5608e 100644 --- a/node_modules/p-cancelable/package.json +++ b/node_modules/p-cancelable/package.json @@ -1,49 +1,53 @@ { - "name": "p-cancelable", - "version": "1.1.0", - "description": "Create a promise that can be canceled", - "license": "MIT", - "repository": "sindresorhus/p-cancelable", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "cancelable", - "cancel", - "canceled", - "canceling", - "cancellable", - "cancellation", - "abort", - "abortable", - "aborting", - "cleanup", - "task", - "token", - "async", - "function", - "await", - "promises", - "bluebird" - ], - "devDependencies": { - "ava": "^1.3.1", - "delay": "^4.1.0", - "promise.prototype.finally": "^3.1.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } + "name": "p-cancelable", + "version": "1.1.0", + "description": "Create a promise that can be canceled", + "license": "MIT", + "repository": "sindresorhus/p-cancelable", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "cancelable", + "cancel", + "canceled", + "canceling", + "cancellable", + "cancellation", + "abort", + "abortable", + "aborting", + "cleanup", + "task", + "token", + "async", + "function", + "await", + "promises", + "bluebird" + ], + "devDependencies": { + "ava": "^1.3.1", + "delay": "^4.1.0", + "promise.prototype.finally": "^3.1.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz" +,"_integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" +,"_from": "p-cancelable@1.1.0" } \ No newline at end of file diff --git a/node_modules/p-defer/package.json b/node_modules/p-defer/package.json index d7f9b811b..5b8a525ca 100644 --- a/node_modules/p-defer/package.json +++ b/node_modules/p-defer/package.json @@ -38,4 +38,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz" +,"_integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" +,"_from": "p-defer@1.0.0" } \ No newline at end of file diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index 8a58ebb94..719d847cf 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -39,4 +39,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" +,"_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" +,"_from": "p-finally@1.0.0" } \ No newline at end of file diff --git a/node_modules/p-limit/package.json b/node_modules/p-limit/package.json index 8a8f33e00..256a22233 100644 --- a/node_modules/p-limit/package.json +++ b/node_modules/p-limit/package.json @@ -1,51 +1,55 @@ { - "name": "p-limit", - "version": "2.2.1", - "description": "Run multiple promise-returning & async functions with limited concurrency", - "license": "MIT", - "repository": "sindresorhus/p-limit", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "limit", - "limited", - "concurrency", - "throttle", - "throat", - "rate", - "batch", - "ratelimit", - "task", - "queue", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-try": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.2.1", - "delay": "^4.1.0", - "in-range": "^1.0.0", - "random-int": "^1.0.0", - "time-span": "^2.0.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } + "name": "p-limit", + "version": "2.2.1", + "description": "Run multiple promise-returning & async functions with limited concurrency", + "license": "MIT", + "repository": "sindresorhus/p-limit", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "limit", + "limited", + "concurrency", + "throttle", + "throat", + "rate", + "batch", + "ratelimit", + "task", + "queue", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-try": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.2.1", + "delay": "^4.1.0", + "in-range": "^1.0.0", + "random-int": "^1.0.0", + "time-span": "^2.0.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz" +,"_integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==" +,"_from": "p-limit@2.2.1" } \ No newline at end of file diff --git a/node_modules/p-locate/package.json b/node_modules/p-locate/package.json index 24bf49512..d2e602eee 100644 --- a/node_modules/p-locate/package.json +++ b/node_modules/p-locate/package.json @@ -1,53 +1,57 @@ { - "name": "p-locate", - "version": "4.1.0", - "description": "Get the first fulfilled promise that satisfies the provided testing function", - "license": "MIT", - "repository": "sindresorhus/p-locate", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "locate", - "find", - "finder", - "search", - "searcher", - "test", - "array", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "fastest", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-limit": "^2.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "delay": "^4.1.0", - "in-range": "^1.0.0", - "time-span": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "p-locate", + "version": "4.1.0", + "description": "Get the first fulfilled promise that satisfies the provided testing function", + "license": "MIT", + "repository": "sindresorhus/p-locate", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "locate", + "find", + "finder", + "search", + "searcher", + "test", + "array", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "fastest", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-limit": "^2.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "delay": "^4.1.0", + "in-range": "^1.0.0", + "time-span": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" +,"_integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==" +,"_from": "p-locate@4.1.0" } \ No newline at end of file diff --git a/node_modules/p-map/package.json b/node_modules/p-map/package.json index 8782cb6af..0292392d0 100644 --- a/node_modules/p-map/package.json +++ b/node_modules/p-map/package.json @@ -1,53 +1,57 @@ { - "name": "p-map", - "version": "4.0.0", - "description": "Map over promises concurrently", - "license": "MIT", - "repository": "sindresorhus/p-map", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "map", - "resolved", - "wait", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "async", - "await", - "promises", - "concurrently", - "concurrency", - "parallel", - "bluebird" - ], - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "delay": "^4.1.0", - "in-range": "^2.0.0", - "random-int": "^2.0.0", - "time-span": "^3.1.0", - "tsd": "^0.7.4", - "xo": "^0.27.2" - } + "name": "p-map", + "version": "4.0.0", + "description": "Map over promises concurrently", + "license": "MIT", + "repository": "sindresorhus/p-map", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "map", + "resolved", + "wait", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "async", + "await", + "promises", + "concurrently", + "concurrency", + "parallel", + "bluebird" + ], + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "delay": "^4.1.0", + "in-range": "^2.0.0", + "random-int": "^2.0.0", + "time-span": "^3.1.0", + "tsd": "^0.7.4", + "xo": "^0.27.2" + } + +,"_resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" +,"_integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==" +,"_from": "p-map@4.0.0" } \ No newline at end of file diff --git a/node_modules/p-try/package.json b/node_modules/p-try/package.json index 43c139fa7..640f8f8d2 100644 --- a/node_modules/p-try/package.json +++ b/node_modules/p-try/package.json @@ -1,42 +1,46 @@ { - "name": "p-try", - "version": "2.2.0", - "description": "`Start a promise chain", - "license": "MIT", - "repository": "sindresorhus/p-try", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "try", - "resolve", - "function", - "catch", - "async", - "await", - "promises", - "settled", - "ponyfill", - "polyfill", - "shim", - "bluebird" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "p-try", + "version": "2.2.0", + "description": "`Start a promise chain", + "license": "MIT", + "repository": "sindresorhus/p-try", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "try", + "resolve", + "function", + "catch", + "async", + "await", + "promises", + "settled", + "ponyfill", + "polyfill", + "shim", + "bluebird" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" +,"_integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" +,"_from": "p-try@2.2.0" } \ No newline at end of file diff --git a/node_modules/package-json/node_modules/semver/package.json b/node_modules/package-json/node_modules/semver/package.json index a330b56c2..13030769c 100644 --- a/node_modules/package-json/node_modules/semver/package.json +++ b/node_modules/package-json/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" +,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" +,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/package-json/package.json b/node_modules/package-json/package.json index f090b5552..03db7a062 100644 --- a/node_modules/package-json/package.json +++ b/node_modules/package-json/package.json @@ -1,46 +1,50 @@ { - "name": "package-json", - "version": "6.5.0", - "description": "Get metadata of a package from the npm registry", - "license": "MIT", - "repository": "sindresorhus/package-json", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "registry", - "package", - "pkg", - "package.json", - "json", - "module", - "scope", - "scoped" - ], - "dependencies": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "devDependencies": { - "@types/node": "^12.6.8", - "ava": "^2.2.0", - "mock-private-registry": "^1.1.2", - "tsd": "^0.7.4", - "xo": "^0.24.0" - } + "name": "package-json", + "version": "6.5.0", + "description": "Get metadata of a package from the npm registry", + "license": "MIT", + "repository": "sindresorhus/package-json", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "registry", + "package", + "pkg", + "package.json", + "json", + "module", + "scope", + "scoped" + ], + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "devDependencies": { + "@types/node": "^12.6.8", + "ava": "^2.2.0", + "mock-private-registry": "^1.1.2", + "tsd": "^0.7.4", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz" +,"_integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==" +,"_from": "package-json@6.5.0" } \ No newline at end of file diff --git a/node_modules/parse-json/package.json b/node_modules/parse-json/package.json index 9bbcba68c..feb71a05a 100644 --- a/node_modules/parse-json/package.json +++ b/node_modules/parse-json/package.json @@ -40,4 +40,8 @@ "nyc": "^11.2.1", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" +,"_integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=" +,"_from": "parse-json@4.0.0" } \ No newline at end of file diff --git a/node_modules/parse-ms/package.json b/node_modules/parse-ms/package.json index 556e3e088..e1671d4de 100644 --- a/node_modules/parse-ms/package.json +++ b/node_modules/parse-ms/package.json @@ -1,40 +1,44 @@ { - "name": "parse-ms", - "version": "2.1.0", - "description": "Parse milliseconds into an object", - "license": "MIT", - "repository": "sindresorhus/parse-ms", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "browser", - "parse", - "time", - "ms", - "milliseconds", - "microseconds", - "nanoseconds", - "duration", - "period", - "range", - "interval" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "parse-ms", + "version": "2.1.0", + "description": "Parse milliseconds into an object", + "license": "MIT", + "repository": "sindresorhus/parse-ms", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "browser", + "parse", + "time", + "ms", + "milliseconds", + "microseconds", + "nanoseconds", + "duration", + "period", + "range", + "interval" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz" +,"_integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==" +,"_from": "parse-ms@2.1.0" } \ No newline at end of file diff --git a/node_modules/path-exists/package.json b/node_modules/path-exists/package.json index 90039cc2f..60c6b6518 100644 --- a/node_modules/path-exists/package.json +++ b/node_modules/path-exists/package.json @@ -1,39 +1,43 @@ { - "name": "path-exists", - "version": "4.0.0", - "description": "Check if a path exists", - "license": "MIT", - "repository": "sindresorhus/path-exists", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "exists", - "exist", - "file", - "filepath", - "fs", - "filesystem", - "file-system", - "access", - "stat" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "path-exists", + "version": "4.0.0", + "description": "Check if a path exists", + "license": "MIT", + "repository": "sindresorhus/path-exists", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "exists", + "exist", + "file", + "filepath", + "fs", + "filesystem", + "file-system", + "access", + "stat" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" +,"_integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" +,"_from": "path-exists@4.0.0" } \ No newline at end of file diff --git a/node_modules/path-is-absolute/package.json b/node_modules/path-is-absolute/package.json index b17117f3e..a29658e3f 100644 --- a/node_modules/path-is-absolute/package.json +++ b/node_modules/path-is-absolute/package.json @@ -40,4 +40,8 @@ "devDependencies": { "xo": "^0.16.0" } + +,"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" +,"_integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" +,"_from": "path-is-absolute@1.0.1" } \ No newline at end of file diff --git a/node_modules/path-key/package.json b/node_modules/path-key/package.json index 843f0b378..d9d275133 100644 --- a/node_modules/path-key/package.json +++ b/node_modules/path-key/package.json @@ -36,4 +36,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" +,"_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" +,"_from": "path-key@2.0.1" } \ No newline at end of file diff --git a/node_modules/path-parse/package.json b/node_modules/path-parse/package.json index b5cca7a87..0d977469c 100644 --- a/node_modules/path-parse/package.json +++ b/node_modules/path-parse/package.json @@ -30,4 +30,8 @@ "url": "https://github.com/jbgutierrez/path-parse/issues" }, "homepage": "https://github.com/jbgutierrez/path-parse#readme" + +,"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz" +,"_integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" +,"_from": "path-parse@1.0.6" } \ No newline at end of file diff --git a/node_modules/path-type/package.json b/node_modules/path-type/package.json index 25d8b90c3..d23031a1c 100644 --- a/node_modules/path-type/package.json +++ b/node_modules/path-type/package.json @@ -1,45 +1,49 @@ { - "name": "path-type", - "version": "4.0.0", - "description": "Check if a path is a file, directory, or symlink", - "license": "MIT", - "repository": "sindresorhus/path-type", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "devDependencies": { - "ava": "^1.3.1", - "nyc": "^13.3.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } + "name": "path-type", + "version": "4.0.0", + "description": "Check if a path is a file, directory, or symlink", + "license": "MIT", + "repository": "sindresorhus/path-type", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "fs", + "type", + "is", + "check", + "directory", + "dir", + "file", + "filepath", + "symlink", + "symbolic", + "link", + "stat", + "stats", + "filesystem" + ], + "devDependencies": { + "ava": "^1.3.1", + "nyc": "^13.3.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" +,"_integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" +,"_from": "path-type@4.0.0" } \ No newline at end of file diff --git a/node_modules/path/package.json b/node_modules/path/package.json index de70fbf83..db81af50e 100644 --- a/node_modules/path/package.json +++ b/node_modules/path/package.json @@ -1,24 +1,28 @@ -{ - "author": { - "name": "Joyent", - "url": "http://www.joyent.com" - }, - "name": "path", - "description": "Node.JS path module", - "keywords": [ - "ender", - "path" - ], - "license": "MIT", - "version": "0.12.7", - "homepage": "http://nodejs.org/docs/latest/api/path.html", - "repository": { - "type": "git", - "url": "git://github.com/jinder/path.git" - }, - "main": "./path.js", - "dependencies": { - "process": "^0.11.1", - "util": "^0.10.3" - } +{ + "author": { + "name": "Joyent", + "url": "http://www.joyent.com" + }, + "name": "path", + "description": "Node.JS path module", + "keywords": [ + "ender", + "path" + ], + "license": "MIT", + "version": "0.12.7", + "homepage": "http://nodejs.org/docs/latest/api/path.html", + "repository": { + "type": "git", + "url": "git://github.com/jinder/path.git" + }, + "main": "./path.js", + "dependencies": { + "process": "^0.11.1", + "util": "^0.10.3" + } + +,"_resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz" +,"_integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=" +,"_from": "path@0.12.7" } \ No newline at end of file diff --git a/node_modules/picomatch/package.json b/node_modules/picomatch/package.json index 882d1dff3..4353f3b7a 100755 --- a/node_modules/picomatch/package.json +++ b/node_modules/picomatch/package.json @@ -78,4 +78,8 @@ "picomatch" ] } + +,"_resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz" +,"_integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" +,"_from": "picomatch@2.2.2" } \ No newline at end of file diff --git a/node_modules/pify/package.json b/node_modules/pify/package.json index ea9e54fd5..472c0913a 100644 --- a/node_modules/pify/package.json +++ b/node_modules/pify/package.json @@ -1,51 +1,55 @@ { - "name": "pify", - "version": "4.0.1", - "description": "Promisify a callback-style function", - "license": "MIT", - "repository": "sindresorhus/pify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava", - "optimization-test": "node --allow-natives-syntax optimization-test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "promises", - "promisify", - "all", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "await", - "es2015", - "bluebird" - ], - "devDependencies": { - "ava": "^0.25.0", - "pinkie-promise": "^2.0.0", - "v8-natives": "^1.1.0", - "xo": "^0.23.0" - } + "name": "pify", + "version": "4.0.1", + "description": "Promisify a callback-style function", + "license": "MIT", + "repository": "sindresorhus/pify", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava", + "optimization-test": "node --allow-natives-syntax optimization-test.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "promise", + "promises", + "promisify", + "all", + "denodify", + "denodeify", + "callback", + "cb", + "node", + "then", + "thenify", + "convert", + "transform", + "wrap", + "wrapper", + "bind", + "to", + "async", + "await", + "es2015", + "bluebird" + ], + "devDependencies": { + "ava": "^0.25.0", + "pinkie-promise": "^2.0.0", + "v8-natives": "^1.1.0", + "xo": "^0.23.0" + } + +,"_resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" +,"_integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" +,"_from": "pify@4.0.1" } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/find-up/package.json b/node_modules/pkg-conf/node_modules/find-up/package.json index c4045d882..95f70cb5b 100644 --- a/node_modules/pkg-conf/node_modules/find-up/package.json +++ b/node_modules/pkg-conf/node_modules/find-up/package.json @@ -1,50 +1,54 @@ { - "name": "find-up", - "version": "3.0.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "tempy": "^0.2.1", - "xo": "*" - } + "name": "find-up", + "version": "3.0.0", + "description": "Find a file or directory by walking up parent directories", + "license": "MIT", + "repository": "sindresorhus/find-up", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "package", + "resolve", + "parent", + "parents", + "folder", + "directory", + "dir", + "walk", + "walking", + "path" + ], + "dependencies": { + "locate-path": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "tempy": "^0.2.1", + "xo": "*" + } + +,"_resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" +,"_integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==" +,"_from": "find-up@3.0.0" } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/locate-path/package.json b/node_modules/pkg-conf/node_modules/locate-path/package.json index ee35ddc2c..f6ac4647d 100644 --- a/node_modules/pkg-conf/node_modules/locate-path/package.json +++ b/node_modules/pkg-conf/node_modules/locate-path/package.json @@ -1,44 +1,48 @@ { - "name": "locate-path", - "version": "3.0.0", - "description": "Get the first path that exists on disk of multiple paths", - "license": "MIT", - "repository": "sindresorhus/locate-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "locate", - "path", - "paths", - "file", - "files", - "exists", - "find", - "finder", - "search", - "searcher", - "array", - "iterable", - "iterator" - ], - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } + "name": "locate-path", + "version": "3.0.0", + "description": "Get the first path that exists on disk of multiple paths", + "license": "MIT", + "repository": "sindresorhus/locate-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "locate", + "path", + "paths", + "file", + "files", + "exists", + "find", + "finder", + "search", + "searcher", + "array", + "iterable", + "iterator" + ], + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "xo": "*" + } + +,"_resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" +,"_integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==" +,"_from": "locate-path@3.0.0" } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/p-locate/package.json b/node_modules/pkg-conf/node_modules/p-locate/package.json index fd4966219..4e4995c8a 100644 --- a/node_modules/pkg-conf/node_modules/p-locate/package.json +++ b/node_modules/pkg-conf/node_modules/p-locate/package.json @@ -1,51 +1,55 @@ { - "name": "p-locate", - "version": "3.0.0", - "description": "Get the first fulfilled promise that satisfies the provided testing function", - "license": "MIT", - "repository": "sindresorhus/p-locate", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "locate", - "find", - "finder", - "search", - "searcher", - "test", - "array", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "fastest", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-limit": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "delay": "^3.0.0", - "in-range": "^1.0.0", - "time-span": "^2.0.0", - "xo": "*" - } + "name": "p-locate", + "version": "3.0.0", + "description": "Get the first fulfilled promise that satisfies the provided testing function", + "license": "MIT", + "repository": "sindresorhus/p-locate", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "promise", + "locate", + "find", + "finder", + "search", + "searcher", + "test", + "array", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "fastest", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-limit": "^2.0.0" + }, + "devDependencies": { + "ava": "*", + "delay": "^3.0.0", + "in-range": "^1.0.0", + "time-span": "^2.0.0", + "xo": "*" + } + +,"_resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" +,"_integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==" +,"_from": "p-locate@3.0.0" } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/path-exists/package.json b/node_modules/pkg-conf/node_modules/path-exists/package.json index ed507545d..5492ad2c0 100644 --- a/node_modules/pkg-conf/node_modules/path-exists/package.json +++ b/node_modules/pkg-conf/node_modules/path-exists/package.json @@ -37,4 +37,8 @@ "xo": { "esnext": true } + +,"_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" +,"_integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" +,"_from": "path-exists@3.0.0" } \ No newline at end of file diff --git a/node_modules/pkg-conf/package.json b/node_modules/pkg-conf/package.json index 9b163c318..79ff89c59 100644 --- a/node_modules/pkg-conf/package.json +++ b/node_modules/pkg-conf/package.json @@ -1,51 +1,55 @@ { - "name": "pkg-conf", - "version": "3.1.0", - "description": "Get namespaced config from the closest package.json", - "license": "MIT", - "repository": "sindresorhus/pkg-conf", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "config", - "conf", - "configuration", - "object", - "namespace", - "namespaced" - ], - "dependencies": { - "find-up": "^3.0.0", - "load-json-file": "^5.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "fixture": { - "foo": true - } + "name": "pkg-conf", + "version": "3.1.0", + "description": "Get namespaced config from the closest package.json", + "license": "MIT", + "repository": "sindresorhus/pkg-conf", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "json", + "read", + "parse", + "file", + "fs", + "graceful", + "load", + "pkg", + "package", + "config", + "conf", + "configuration", + "object", + "namespace", + "namespaced" + ], + "dependencies": { + "find-up": "^3.0.0", + "load-json-file": "^5.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "fixture": { + "foo": true + } + +,"_resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz" +,"_integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==" +,"_from": "pkg-conf@3.1.0" } \ No newline at end of file diff --git a/node_modules/pkg-dir/package.json b/node_modules/pkg-dir/package.json index 6759a9ce7..b3e8f03d6 100644 --- a/node_modules/pkg-dir/package.json +++ b/node_modules/pkg-dir/package.json @@ -1,56 +1,60 @@ { - "name": "pkg-dir", - "version": "4.2.0", - "description": "Find the root directory of a Node.js project or npm package", - "license": "MIT", - "repository": "sindresorhus/pkg-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "package", - "json", - "root", - "npm", - "entry", - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "find-up": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tempy": "^0.3.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "pkg-dir", + "version": "4.2.0", + "description": "Find the root directory of a Node.js project or npm package", + "license": "MIT", + "repository": "sindresorhus/pkg-dir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "package", + "json", + "root", + "npm", + "entry", + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "resolve", + "parent", + "parents", + "folder", + "directory", + "dir", + "walk", + "walking", + "path" + ], + "dependencies": { + "find-up": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tempy": "^0.3.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" +,"_integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==" +,"_from": "pkg-dir@4.2.0" } \ No newline at end of file diff --git a/node_modules/plur/package.json b/node_modules/plur/package.json index fe91e1771..45f858310 100644 --- a/node_modules/plur/package.json +++ b/node_modules/plur/package.json @@ -1,43 +1,47 @@ { - "name": "plur", - "version": "4.0.0", - "description": "Pluralize a word", - "license": "MIT", - "repository": "sindresorhus/plur", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "plural", - "plurals", - "pluralize", - "singular", - "count", - "word", - "string", - "irregular", - "noun", - "nouns" - ], - "dependencies": { - "irregular-plurals": "^3.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.11.0", - "xo": "^0.26.1" - } + "name": "plur", + "version": "4.0.0", + "description": "Pluralize a word", + "license": "MIT", + "repository": "sindresorhus/plur", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "plural", + "plurals", + "pluralize", + "singular", + "count", + "word", + "string", + "irregular", + "noun", + "nouns" + ], + "dependencies": { + "irregular-plurals": "^3.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.11.0", + "xo": "^0.26.1" + } + +,"_resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz" +,"_integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==" +,"_from": "plur@4.0.0" } \ No newline at end of file diff --git a/node_modules/prepend-http/package.json b/node_modules/prepend-http/package.json index 9dfb56a48..70c7570b1 100644 --- a/node_modules/prepend-http/package.json +++ b/node_modules/prepend-http/package.json @@ -32,4 +32,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz" +,"_integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" +,"_from": "prepend-http@2.0.0" } \ No newline at end of file diff --git a/node_modules/pretty-ms/package.json b/node_modules/pretty-ms/package.json index c491ffca7..6525d591a 100644 --- a/node_modules/pretty-ms/package.json +++ b/node_modules/pretty-ms/package.json @@ -1,49 +1,53 @@ { - "name": "pretty-ms", - "version": "6.0.1", - "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", - "license": "MIT", - "repository": "sindresorhus/pretty-ms", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "pretty", - "prettify", - "human", - "humanize", - "humanized", - "readable", - "time", - "ms", - "milliseconds", - "duration", - "period", - "range", - "text", - "string", - "number", - "hrtime" - ], - "dependencies": { - "parse-ms": "^2.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "pretty-ms", + "version": "6.0.1", + "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", + "license": "MIT", + "repository": "sindresorhus/pretty-ms", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "pretty", + "prettify", + "human", + "humanize", + "humanized", + "readable", + "time", + "ms", + "milliseconds", + "duration", + "period", + "range", + "text", + "string", + "number", + "hrtime" + ], + "dependencies": { + "parse-ms": "^2.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-6.0.1.tgz" +,"_integrity": "sha512-ke4njoVmlotekHlHyCZ3wI/c5AMT8peuHs8rKJqekj/oR5G8lND2dVpicFlUz5cbZgE290vvkMuDwfj/OcW1kw==" +,"_from": "pretty-ms@6.0.1" } \ No newline at end of file diff --git a/node_modules/process/package.json b/node_modules/process/package.json index 390815d12..234b66489 100644 --- a/node_modules/process/package.json +++ b/node_modules/process/package.json @@ -24,4 +24,8 @@ "mocha": "2.2.1", "zuul": "^3.10.3" } + +,"_resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz" +,"_integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" +,"_from": "process@0.11.10" } \ No newline at end of file diff --git a/node_modules/propagate/package.json b/node_modules/propagate/package.json index b4df513bb..10591eeb1 100644 --- a/node_modules/propagate/package.json +++ b/node_modules/propagate/package.json @@ -50,4 +50,8 @@ ] }, "license": "MIT" + +,"_resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz" +,"_integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==" +,"_from": "propagate@2.0.1" } \ No newline at end of file diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json index 638a6a24d..be95fced6 100644 --- a/node_modules/pump/package.json +++ b/node_modules/pump/package.json @@ -21,4 +21,8 @@ "scripts": { "test": "node test-browser.js && node test-node.js" } + +,"_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" +,"_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==" +,"_from": "pump@3.0.0" } \ No newline at end of file diff --git a/node_modules/pupa/package.json b/node_modules/pupa/package.json index 0bb8cca69..c8d005bd2 100644 --- a/node_modules/pupa/package.json +++ b/node_modules/pupa/package.json @@ -1,47 +1,51 @@ { - "name": "pupa", - "version": "2.0.1", - "description": "Simple micro templating", - "license": "MIT", - "repository": "sindresorhus/pupa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "formatting", - "template", - "object", - "format", - "interpolate", - "interpolation", - "templating", - "expand", - "simple", - "replace", - "placeholders", - "values", - "transform", - "micro" - ], - "dependencies": { - "escape-goat": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "pupa", + "version": "2.0.1", + "description": "Simple micro templating", + "license": "MIT", + "repository": "sindresorhus/pupa", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "formatting", + "template", + "object", + "format", + "interpolate", + "interpolation", + "templating", + "expand", + "simple", + "replace", + "placeholders", + "values", + "transform", + "micro" + ], + "dependencies": { + "escape-goat": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz" +,"_integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==" +,"_from": "pupa@2.0.1" } \ No newline at end of file diff --git a/node_modules/rc/package.json b/node_modules/rc/package.json index 07a1a16b0..9076eabc1 100644 --- a/node_modules/rc/package.json +++ b/node_modules/rc/package.json @@ -26,4 +26,8 @@ "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" } + +,"_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" +,"_integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==" +,"_from": "rc@1.2.8" } \ No newline at end of file diff --git a/node_modules/read-pkg/node_modules/parse-json/package.json b/node_modules/read-pkg/node_modules/parse-json/package.json index 6c5bb850d..a7d2d869f 100644 --- a/node_modules/read-pkg/node_modules/parse-json/package.json +++ b/node_modules/read-pkg/node_modules/parse-json/package.json @@ -1,44 +1,48 @@ { - "name": "parse-json", - "version": "5.0.0", - "description": "Parse JSON with more helpful errors", - "license": "MIT", - "repository": "sindresorhus/parse-json", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js", - "vendor" - ], - "keywords": [ - "parse", - "json", - "graceful", - "error", - "message", - "humanize", - "friendly", - "helpful", - "string" - ], - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - }, - "devDependencies": { - "ava": "^1.4.1", - "nyc": "^14.1.1", - "xo": "^0.24.0" - } + "name": "parse-json", + "version": "5.0.0", + "description": "Parse JSON with more helpful errors", + "license": "MIT", + "repository": "sindresorhus/parse-json", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js", + "vendor" + ], + "keywords": [ + "parse", + "json", + "graceful", + "error", + "message", + "humanize", + "friendly", + "helpful", + "string" + ], + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + }, + "devDependencies": { + "ava": "^1.4.1", + "nyc": "^14.1.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz" +,"_integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==" +,"_from": "parse-json@5.0.0" } \ No newline at end of file diff --git a/node_modules/read-pkg/node_modules/type-fest/package.json b/node_modules/read-pkg/node_modules/type-fest/package.json index 03b929edc..53c4885e1 100644 --- a/node_modules/read-pkg/node_modules/type-fest/package.json +++ b/node_modules/read-pkg/node_modules/type-fest/package.json @@ -1,51 +1,55 @@ { - "name": "type-fest", - "version": "0.6.0", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.4.0", - "@typescript-eslint/eslint-plugin": "^1.9.0", - "@typescript-eslint/parser": "^1.10.2", - "eslint-config-xo-typescript": "^0.14.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off", - "@typescript-eslint/indent": "off" - } - } + "name": "type-fest", + "version": "0.6.0", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.4.0", + "@typescript-eslint/eslint-plugin": "^1.9.0", + "@typescript-eslint/parser": "^1.10.2", + "eslint-config-xo-typescript": "^0.14.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off", + "@typescript-eslint/indent": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" +,"_integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" +,"_from": "type-fest@0.6.0" } \ No newline at end of file diff --git a/node_modules/read-pkg/package.json b/node_modules/read-pkg/package.json index 8330328dd..6e82a6263 100644 --- a/node_modules/read-pkg/package.json +++ b/node_modules/read-pkg/package.json @@ -1,49 +1,53 @@ { - "name": "read-pkg", - "version": "5.2.0", - "description": "Read a package.json file", - "license": "MIT", - "repository": "sindresorhus/read-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "package", - "normalize" - ], - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "test/test.js" - ] - } + "name": "read-pkg", + "version": "5.2.0", + "description": "Read a package.json file", + "license": "MIT", + "repository": "sindresorhus/read-pkg", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "json", + "read", + "parse", + "file", + "fs", + "graceful", + "load", + "package", + "normalize" + ], + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "test/test.js" + ] + } + +,"_resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" +,"_integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==" +,"_from": "read-pkg@5.2.0" } \ No newline at end of file diff --git a/node_modules/readdirp/package.json b/node_modules/readdirp/package.json index a7424e864..ff5319ec6 100644 --- a/node_modules/readdirp/package.json +++ b/node_modules/readdirp/package.json @@ -118,4 +118,8 @@ ] } } + +,"_resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz" +,"_integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==" +,"_from": "readdirp@3.4.0" } \ No newline at end of file diff --git a/node_modules/registry-auth-token/package.json b/node_modules/registry-auth-token/package.json index f98fc4d62..34f0388d4 100644 --- a/node_modules/registry-auth-token/package.json +++ b/node_modules/registry-auth-token/package.json @@ -45,4 +45,8 @@ "coverage/**" ] } + +,"_resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz" +,"_integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==" +,"_from": "registry-auth-token@4.1.1" } \ No newline at end of file diff --git a/node_modules/registry-url/package.json b/node_modules/registry-url/package.json index eb2b76756..6dd01ea86 100644 --- a/node_modules/registry-url/package.json +++ b/node_modules/registry-url/package.json @@ -1,44 +1,48 @@ { - "name": "registry-url", - "version": "5.1.0", - "description": "Get the set npm registry URL", - "license": "MIT", - "repository": "sindresorhus/registry-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "conf", - "config", - "npmconf", - "registry", - "url", - "uri", - "scope" - ], - "dependencies": { - "rc": "^1.2.8" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "ava": { - "serial": true - } + "name": "registry-url", + "version": "5.1.0", + "description": "Get the set npm registry URL", + "license": "MIT", + "repository": "sindresorhus/registry-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "conf", + "config", + "npmconf", + "registry", + "url", + "uri", + "scope" + ], + "dependencies": { + "rc": "^1.2.8" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "ava": { + "serial": true + } + +,"_resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz" +,"_integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==" +,"_from": "registry-url@5.1.0" } \ No newline at end of file diff --git a/node_modules/removeNPMAbsolutePaths/package.json b/node_modules/removeNPMAbsolutePaths/package.json index 28ccddcaa..d4af1b912 100644 --- a/node_modules/removeNPMAbsolutePaths/package.json +++ b/node_modules/removeNPMAbsolutePaths/package.json @@ -49,4 +49,8 @@ "engines": { "node": ">=4.0.0" } + +,"_resolved": "https://registry.npmjs.org/removeNPMAbsolutePaths/-/removeNPMAbsolutePaths-2.0.0.tgz" +,"_integrity": "sha512-Hea7U6iJcD0NE/aqBqxBMPKeKaxjqMNyTTajmH2dH9hhafJ9Tem5r4UeJK8+BdE1MK9lqoOYqNM0Sq9rl1OIbQ==" +,"_from": "removeNPMAbsolutePaths@2.0.0" } \ No newline at end of file diff --git a/node_modules/require-directory/package.json b/node_modules/require-directory/package.json index 0970ec04c..1b68543bd 100644 --- a/node_modules/require-directory/package.json +++ b/node_modules/require-directory/package.json @@ -37,4 +37,8 @@ "test": "mocha", "lint": "jshint index.js test/test.js" } + +,"_resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" +,"_integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" +,"_from": "require-directory@2.1.1" } \ No newline at end of file diff --git a/node_modules/require-main-filename/package.json b/node_modules/require-main-filename/package.json index 3c441b325..0a3da3583 100644 --- a/node_modules/require-main-filename/package.json +++ b/node_modules/require-main-filename/package.json @@ -32,4 +32,8 @@ "standard-version": "^4.0.0", "tap": "^11.0.0" } + +,"_resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" +,"_integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" +,"_from": "require-main-filename@2.0.0" } \ No newline at end of file diff --git a/node_modules/resolve-cwd/package.json b/node_modules/resolve-cwd/package.json index a7d509c0f..12db21aad 100644 --- a/node_modules/resolve-cwd/package.json +++ b/node_modules/resolve-cwd/package.json @@ -1,43 +1,47 @@ { - "name": "resolve-cwd", - "version": "3.0.0", - "description": "Resolve the path of a module like `require.resolve()` but from the current working directory", - "license": "MIT", - "repository": "sindresorhus/resolve-cwd", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "require", - "resolve", - "path", - "module", - "from", - "like", - "cwd", - "current", - "working", - "directory", - "import" - ], - "dependencies": { - "resolve-from": "^5.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "resolve-cwd", + "version": "3.0.0", + "description": "Resolve the path of a module like `require.resolve()` but from the current working directory", + "license": "MIT", + "repository": "sindresorhus/resolve-cwd", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "require", + "resolve", + "path", + "module", + "from", + "like", + "cwd", + "current", + "working", + "directory", + "import" + ], + "dependencies": { + "resolve-from": "^5.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" +,"_integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==" +,"_from": "resolve-cwd@3.0.0" } \ No newline at end of file diff --git a/node_modules/resolve-from/package.json b/node_modules/resolve-from/package.json index 3d6db83a4..b2627367a 100644 --- a/node_modules/resolve-from/package.json +++ b/node_modules/resolve-from/package.json @@ -1,36 +1,40 @@ { - "name": "resolve-from", - "version": "5.0.0", - "description": "Resolve the path of a module like `require.resolve()` but from a given path", - "license": "MIT", - "repository": "sindresorhus/resolve-from", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "require", - "resolve", - "path", - "module", - "from", - "like", - "import" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "resolve-from", + "version": "5.0.0", + "description": "Resolve the path of a module like `require.resolve()` but from a given path", + "license": "MIT", + "repository": "sindresorhus/resolve-from", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "require", + "resolve", + "path", + "module", + "from", + "like", + "import" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" +,"_integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" +,"_from": "resolve-from@5.0.0" } \ No newline at end of file diff --git a/node_modules/resolve/package.json b/node_modules/resolve/package.json index f8e40a6ac..1f3180fee 100644 --- a/node_modules/resolve/package.json +++ b/node_modules/resolve/package.json @@ -1,47 +1,51 @@ { - "name": "resolve", - "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", - "version": "1.13.1", - "repository": { - "type": "git", - "url": "git://github.com/browserify/resolve.git" - }, - "main": "index.js", - "keywords": [ - "resolve", - "require", - "node", - "module" - ], - "scripts": { - "prepublish": "safe-publish-latest", - "lint": "eslint .", - "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", - "tests-only": "tape test/*.js", - "pretest": "npm run lint", - "test": "npm run --silent tests-only", - "posttest": "npm run test:multirepo", - "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" - }, - "devDependencies": { - "@ljharb/eslint-config": "^15.0.2", - "array.prototype.map": "^1.0.1", - "eslint": "^6.7.1", - "object-keys": "^1.1.1", - "safe-publish-latest": "^1.1.4", - "tap": "0.4.13", - "tape": "^4.11.0" - }, - "license": "MIT", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "dependencies": { - "path-parse": "^1.0.6" - } + "name": "resolve", + "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", + "version": "1.13.1", + "repository": { + "type": "git", + "url": "git://github.com/browserify/resolve.git" + }, + "main": "index.js", + "keywords": [ + "resolve", + "require", + "node", + "module" + ], + "scripts": { + "prepublish": "safe-publish-latest", + "lint": "eslint .", + "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", + "tests-only": "tape test/*.js", + "pretest": "npm run lint", + "test": "npm run --silent tests-only", + "posttest": "npm run test:multirepo", + "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" + }, + "devDependencies": { + "@ljharb/eslint-config": "^15.0.2", + "array.prototype.map": "^1.0.1", + "eslint": "^6.7.1", + "object-keys": "^1.1.1", + "safe-publish-latest": "^1.1.4", + "tap": "0.4.13", + "tape": "^4.11.0" + }, + "license": "MIT", + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "dependencies": { + "path-parse": "^1.0.6" + } + +,"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz" +,"_integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==" +,"_from": "resolve@1.13.1" } \ No newline at end of file diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json index a60376465..c13b8cf6a 100644 --- a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +++ b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json @@ -1,3 +1,3 @@ { "main": "main.js" -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/baz/package.json b/node_modules/resolve/test/resolver/baz/package.json index ddf31dc61..c41e4dbf7 100644 --- a/node_modules/resolve/test/resolver/baz/package.json +++ b/node_modules/resolve/test/resolver/baz/package.json @@ -1,3 +1,3 @@ { - "main": "quux.js" -} \ No newline at end of file + "main": "quux.js" +} diff --git a/node_modules/resolve/test/resolver/browser_field/package.json b/node_modules/resolve/test/resolver/browser_field/package.json index 291ab03bc..bf406f083 100644 --- a/node_modules/resolve/test/resolver/browser_field/package.json +++ b/node_modules/resolve/test/resolver/browser_field/package.json @@ -2,4 +2,4 @@ "name": "browser_field", "main": "a", "browser": "b" -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/dot_main/package.json b/node_modules/resolve/test/resolver/dot_main/package.json index d08e00e9d..d7f4fc807 100644 --- a/node_modules/resolve/test/resolver/dot_main/package.json +++ b/node_modules/resolve/test/resolver/dot_main/package.json @@ -1,3 +1,3 @@ { - "main": "." -} \ No newline at end of file + "main": "." +} diff --git a/node_modules/resolve/test/resolver/dot_slash_main/package.json b/node_modules/resolve/test/resolver/dot_slash_main/package.json index a92bfd7b1..f51287b9d 100644 --- a/node_modules/resolve/test/resolver/dot_slash_main/package.json +++ b/node_modules/resolve/test/resolver/dot_slash_main/package.json @@ -1,3 +1,3 @@ { - "main": "./" -} \ No newline at end of file + "main": "./" +} diff --git a/node_modules/resolve/test/resolver/incorrect_main/package.json b/node_modules/resolve/test/resolver/incorrect_main/package.json index b3b73da08..b71880417 100644 --- a/node_modules/resolve/test/resolver/incorrect_main/package.json +++ b/node_modules/resolve/test/resolver/incorrect_main/package.json @@ -1,3 +1,3 @@ { - "main": "wrong.js" -} \ No newline at end of file + "main": "wrong.js" +} diff --git a/node_modules/resolve/test/resolver/invalid_main/package.json b/node_modules/resolve/test/resolver/invalid_main/package.json index 3158504f6..0cf827995 100644 --- a/node_modules/resolve/test/resolver/invalid_main/package.json +++ b/node_modules/resolve/test/resolver/invalid_main/package.json @@ -4,4 +4,4 @@ "why is this a thing", "srsly omg wtf" ] -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/multirepo/package.json b/node_modules/resolve/test/resolver/multirepo/package.json index 9c6d56b61..8508f9d2c 100644 --- a/node_modules/resolve/test/resolver/multirepo/package.json +++ b/node_modules/resolve/test/resolver/multirepo/package.json @@ -17,4 +17,4 @@ "devDependencies": { "lerna": "^3.4.3" } -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json index a2bbfff89..204de51e0 100644 --- a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +++ b/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json @@ -11,4 +11,4 @@ "dependencies": { "@my-scope/package-b": "^0.0.0" } -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json index f7adacdeb..f57c3b5f5 100644 --- a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +++ b/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json @@ -11,4 +11,4 @@ "dependencies": { "@my-scope/package-a": "^0.0.0" } -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json b/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json index f3fffe71c..acfe9e951 100644 --- a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +++ b/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json @@ -12,4 +12,4 @@ "dependencies": { "buffer": "*" } -} \ No newline at end of file +} diff --git a/node_modules/resolve/test/resolver/symlinked/package/package.json b/node_modules/resolve/test/resolver/symlinked/package/package.json index b6e6d85fd..8e1b58591 100644 --- a/node_modules/resolve/test/resolver/symlinked/package/package.json +++ b/node_modules/resolve/test/resolver/symlinked/package/package.json @@ -1,3 +1,3 @@ { - "main": "bar.js" + "main": "bar.js" } \ No newline at end of file diff --git a/node_modules/responselike/package.json b/node_modules/responselike/package.json index 67f605a8d..5b53db282 100644 --- a/node_modules/responselike/package.json +++ b/node_modules/responselike/package.json @@ -35,4 +35,8 @@ "dependencies": { "lowercase-keys": "^1.0.0" } + +,"_resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz" +,"_integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=" +,"_from": "responselike@1.0.2" } \ No newline at end of file diff --git a/node_modules/restore-cursor/package.json b/node_modules/restore-cursor/package.json index d23571572..8e480e1f3 100644 --- a/node_modules/restore-cursor/package.json +++ b/node_modules/restore-cursor/package.json @@ -1,52 +1,56 @@ { - "name": "restore-cursor", - "version": "3.1.0", - "description": "Gracefully restore the CLI cursor on exit", - "license": "MIT", - "repository": "sindresorhus/restore-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "exit", - "quit", - "process", - "graceful", - "shutdown", - "sigterm", - "sigint", - "terminate", - "kill", - "stop", - "cli", - "cursor", - "ansi", - "show", - "term", - "terminal", - "console", - "tty", - "shell", - "command-line" - ], - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "devDependencies": { - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "restore-cursor", + "version": "3.1.0", + "description": "Gracefully restore the CLI cursor on exit", + "license": "MIT", + "repository": "sindresorhus/restore-cursor", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "exit", + "quit", + "process", + "graceful", + "shutdown", + "sigterm", + "sigint", + "terminate", + "kill", + "stop", + "cli", + "cursor", + "ansi", + "show", + "term", + "terminal", + "console", + "tty", + "shell", + "command-line" + ], + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "devDependencies": { + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" +,"_integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==" +,"_from": "restore-cursor@3.1.0" } \ No newline at end of file diff --git a/node_modules/reusify/package.json b/node_modules/reusify/package.json index 4572b152f..27f301caa 100644 --- a/node_modules/reusify/package.json +++ b/node_modules/reusify/package.json @@ -42,4 +42,8 @@ "standard": "^10.0.3", "tape": "^4.8.0" } + +,"_resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" +,"_integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" +,"_from": "reusify@1.0.4" } \ No newline at end of file diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index 56eb03067..2fc16433b 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -29,4 +29,8 @@ "funding": { "url": "https://github.com/sponsors/isaacs" } + +,"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" +,"_integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" +,"_from": "rimraf@3.0.2" } \ No newline at end of file diff --git a/node_modules/run-parallel/package.json b/node_modules/run-parallel/package.json index 87ebaf64b..51925c0e7 100644 --- a/node_modules/run-parallel/package.json +++ b/node_modules/run-parallel/package.json @@ -39,4 +39,8 @@ "test-browser-local": "airtap --local -- test/*.js", "test-node": "tape test/*.js" } + +,"_resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz" +,"_integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==" +,"_from": "run-parallel@1.1.9" } \ No newline at end of file diff --git a/node_modules/safe-buffer/package.json b/node_modules/safe-buffer/package.json index fdb8bc5f3..9c8aef798 100644 --- a/node_modules/safe-buffer/package.json +++ b/node_modules/safe-buffer/package.json @@ -34,4 +34,8 @@ "scripts": { "test": "standard && tape test/*.js" } + +,"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" +,"_integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" +,"_from": "safe-buffer@5.1.2" } \ No newline at end of file diff --git a/node_modules/semver-diff/node_modules/semver/package.json b/node_modules/semver-diff/node_modules/semver/package.json index a330b56c2..13030769c 100644 --- a/node_modules/semver-diff/node_modules/semver/package.json +++ b/node_modules/semver-diff/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" +,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" +,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/semver-diff/package.json b/node_modules/semver-diff/package.json index 0cc0c3e34..d32c5a7e9 100644 --- a/node_modules/semver-diff/package.json +++ b/node_modules/semver-diff/package.json @@ -1,37 +1,41 @@ { - "name": "semver-diff", - "version": "3.1.1", - "description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch", - "license": "MIT", - "repository": "sindresorhus/semver-diff", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "semver", - "version", - "semantic", - "diff", - "difference" - ], - "dependencies": { - "semver": "^6.3.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" - } + "name": "semver-diff", + "version": "3.1.1", + "description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch", + "license": "MIT", + "repository": "sindresorhus/semver-diff", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "semver", + "version", + "semantic", + "diff", + "difference" + ], + "dependencies": { + "semver": "^6.3.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.9.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz" +,"_integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==" +,"_from": "semver-diff@3.1.1" } \ No newline at end of file diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index e04ff84a8..9aa9bd2a9 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -35,4 +35,8 @@ "engines": { "node": ">=10" } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz" +,"_integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" +,"_from": "semver@7.3.2" } \ No newline at end of file diff --git a/node_modules/serialize-error/package.json b/node_modules/serialize-error/package.json index 7be0a0f03..c660f73b3 100644 --- a/node_modules/serialize-error/package.json +++ b/node_modules/serialize-error/package.json @@ -33,4 +33,8 @@ "ava": "*", "xo": "^0.16.0" } + +,"_resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz" +,"_integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=" +,"_from": "serialize-error@2.1.0" } \ No newline at end of file diff --git a/node_modules/set-blocking/package.json b/node_modules/set-blocking/package.json index c082db72c..993bdc2f7 100644 --- a/node_modules/set-blocking/package.json +++ b/node_modules/set-blocking/package.json @@ -39,4 +39,8 @@ "index.js", "LICENSE.txt" ] + +,"_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" +,"_integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" +,"_from": "set-blocking@2.0.0" } \ No newline at end of file diff --git a/node_modules/shebang-command/package.json b/node_modules/shebang-command/package.json index a836941a1..3009d53eb 100644 --- a/node_modules/shebang-command/package.json +++ b/node_modules/shebang-command/package.json @@ -36,4 +36,8 @@ "test.js" ] } + +,"_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" +,"_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=" +,"_from": "shebang-command@1.2.0" } \ No newline at end of file diff --git a/node_modules/shebang-regex/package.json b/node_modules/shebang-regex/package.json index f174dc29e..665793c1d 100644 --- a/node_modules/shebang-regex/package.json +++ b/node_modules/shebang-regex/package.json @@ -29,4 +29,8 @@ "devDependencies": { "ava": "0.0.4" } + +,"_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" +,"_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" +,"_from": "shebang-regex@1.0.0" } \ No newline at end of file diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index 2bee5637f..c3b2677a9 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -35,4 +35,8 @@ "standard-version": "^2.3.0", "tap": "^8.0.1" } + +,"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" +,"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" +,"_from": "signal-exit@3.0.2" } \ No newline at end of file diff --git a/node_modules/slash/package.json b/node_modules/slash/package.json index c845a31bb..8100df404 100644 --- a/node_modules/slash/package.json +++ b/node_modules/slash/package.json @@ -1,35 +1,39 @@ { - "name": "slash", - "version": "3.0.0", - "description": "Convert Windows backslash paths to slash paths", - "license": "MIT", - "repository": "sindresorhus/slash", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "seperator", - "slash", - "backslash", - "windows", - "convert" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "slash", + "version": "3.0.0", + "description": "Convert Windows backslash paths to slash paths", + "license": "MIT", + "repository": "sindresorhus/slash", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "seperator", + "slash", + "backslash", + "windows", + "convert" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" +,"_integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" +,"_from": "slash@3.0.0" } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/ansi-styles/package.json b/node_modules/slice-ansi/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/slice-ansi/node_modules/ansi-styles/package.json +++ b/node_modules/slice-ansi/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/astral-regex/package.json b/node_modules/slice-ansi/node_modules/astral-regex/package.json index 744e3ea07..e21b198d7 100644 --- a/node_modules/slice-ansi/node_modules/astral-regex/package.json +++ b/node_modules/slice-ansi/node_modules/astral-regex/package.json @@ -1,33 +1,37 @@ { - "name": "astral-regex", - "version": "2.0.0", - "description": "Regular expression for matching astral symbols", - "license": "MIT", - "repository": "kevva/astral-regex", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "astral", - "emoji", - "regex", - "surrogate" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "astral-regex", + "version": "2.0.0", + "description": "Regular expression for matching astral symbols", + "license": "MIT", + "repository": "kevva/astral-regex", + "author": { + "name": "Kevin Mårtensson", + "email": "kevinmartensson@gmail.com", + "url": "github.com/kevva" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "astral", + "emoji", + "regex", + "surrogate" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" +,"_integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==" +,"_from": "astral-regex@2.0.0" } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/color-convert/package.json b/node_modules/slice-ansi/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/slice-ansi/node_modules/color-convert/package.json +++ b/node_modules/slice-ansi/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/color-name/package.json b/node_modules/slice-ansi/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/slice-ansi/node_modules/color-name/package.json +++ b/node_modules/slice-ansi/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/slice-ansi/package.json b/node_modules/slice-ansi/package.json index a5e103ef1..9f38fa41f 100644 --- a/node_modules/slice-ansi/package.json +++ b/node_modules/slice-ansi/package.json @@ -1,51 +1,55 @@ { - "name": "slice-ansi", - "version": "3.0.0", - "description": "Slice a string with ANSI escape codes", - "license": "MIT", - "repository": "chalk/slice-ansi", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "slice", - "string", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "chalk": "^2.4.2", - "random-item": "^3.0.0", - "strip-ansi": "^5.0.0", - "xo": "^0.24.0" - } + "name": "slice-ansi", + "version": "3.0.0", + "description": "Slice a string with ANSI escape codes", + "license": "MIT", + "repository": "chalk/slice-ansi", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "slice", + "string", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "chalk": "^2.4.2", + "random-item": "^3.0.0", + "strip-ansi": "^5.0.0", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz" +,"_integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==" +,"_from": "slice-ansi@3.0.0" } \ No newline at end of file diff --git a/node_modules/source-map/package.json b/node_modules/source-map/package.json index eb649bf17..fb225f899 100644 --- a/node_modules/source-map/package.json +++ b/node_modules/source-map/package.json @@ -70,4 +70,8 @@ "webpack": "^1.12.0" }, "typings": "source-map" + +,"_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" +,"_integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" +,"_from": "source-map@0.6.1" } \ No newline at end of file diff --git a/node_modules/spdx-correct/package.json b/node_modules/spdx-correct/package.json index 4002158a8..5fc48f0fd 100644 --- a/node_modules/spdx-correct/package.json +++ b/node_modules/spdx-correct/package.json @@ -36,4 +36,8 @@ "lint": "standard && standard-markdown README.md", "test": "defence README.md | replace-require-self | node && node test.js" } + +,"_resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz" +,"_integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==" +,"_from": "spdx-correct@3.1.0" } \ No newline at end of file diff --git a/node_modules/spdx-exceptions/package.json b/node_modules/spdx-exceptions/package.json index 1b39b16d9..d48a49097 100644 --- a/node_modules/spdx-exceptions/package.json +++ b/node_modules/spdx-exceptions/package.json @@ -14,4 +14,8 @@ "scripts": { "build": "node build.js" } + +,"_resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" +,"_integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" +,"_from": "spdx-exceptions@2.3.0" } \ No newline at end of file diff --git a/node_modules/spdx-expression-parse/package.json b/node_modules/spdx-expression-parse/package.json index 93d94baa4..eeb3dd83b 100644 --- a/node_modules/spdx-expression-parse/package.json +++ b/node_modules/spdx-expression-parse/package.json @@ -37,4 +37,8 @@ "test:mocha": "mocha test/index.js", "test": "npm run test:mocha && npm run test:readme" } + +,"_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz" +,"_integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==" +,"_from": "spdx-expression-parse@3.0.0" } \ No newline at end of file diff --git a/node_modules/spdx-license-ids/package.json b/node_modules/spdx-license-ids/package.json index a21e42587..0aff08f25 100644 --- a/node_modules/spdx-license-ids/package.json +++ b/node_modules/spdx-license-ids/package.json @@ -1,39 +1,43 @@ { - "name": "spdx-license-ids", - "version": "3.0.5", - "description": "A list of SPDX license identifiers", - "repository": "shinnn/spdx-license-ids", - "author": "Shinnosuke Watanabe (https://github.com/shinnn)", - "license": "CC0-1.0", - "scripts": { - "build": "node build.js", - "pretest": "eslint .", - "test": "node test.js" - }, - "files": [ - "deprecated.json", - "index.json" - ], - "keywords": [ - "spdx", - "license", - "licenses", - "id", - "identifier", - "identifiers", - "json", - "array", - "oss" - ], - "devDependencies": { - "@shinnn/eslint-config": "^6.8.7", - "chalk": "^2.4.1", - "eslint": "^5.10.0", - "get-spdx-license-ids": "^2.1.0", - "rmfr": "^2.0.0", - "tape": "^4.9.1" - }, - "eslintConfig": { - "extends": "@shinnn" - } + "name": "spdx-license-ids", + "version": "3.0.5", + "description": "A list of SPDX license identifiers", + "repository": "shinnn/spdx-license-ids", + "author": "Shinnosuke Watanabe (https://github.com/shinnn)", + "license": "CC0-1.0", + "scripts": { + "build": "node build.js", + "pretest": "eslint .", + "test": "node test.js" + }, + "files": [ + "deprecated.json", + "index.json" + ], + "keywords": [ + "spdx", + "license", + "licenses", + "id", + "identifier", + "identifiers", + "json", + "array", + "oss" + ], + "devDependencies": { + "@shinnn/eslint-config": "^6.8.7", + "chalk": "^2.4.1", + "eslint": "^5.10.0", + "get-spdx-license-ids": "^2.1.0", + "rmfr": "^2.0.0", + "tape": "^4.9.1" + }, + "eslintConfig": { + "extends": "@shinnn" + } + +,"_resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz" +,"_integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==" +,"_from": "spdx-license-ids@3.0.5" } \ No newline at end of file diff --git a/node_modules/sprintf-js/package.json b/node_modules/sprintf-js/package.json index b49b1926d..309df0030 100644 --- a/node_modules/sprintf-js/package.json +++ b/node_modules/sprintf-js/package.json @@ -1,22 +1,26 @@ { - "name": "sprintf-js", - "version": "1.0.3", - "description": "JavaScript sprintf implementation", - "author": "Alexandru Marasteanu (http://alexei.ro/)", - "main": "src/sprintf.js", - "scripts": { - "test": "mocha test/test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/alexei/sprintf.js.git" - }, - "license": "BSD-3-Clause", - "readmeFilename": "README.md", - "devDependencies": { - "mocha": "*", - "grunt": "*", - "grunt-contrib-watch": "*", - "grunt-contrib-uglify": "*" - } + "name": "sprintf-js", + "version": "1.0.3", + "description": "JavaScript sprintf implementation", + "author": "Alexandru Marasteanu (http://alexei.ro/)", + "main": "src/sprintf.js", + "scripts": { + "test": "mocha test/test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/alexei/sprintf.js.git" + }, + "license": "BSD-3-Clause", + "readmeFilename": "README.md", + "devDependencies": { + "mocha": "*", + "grunt": "*", + "grunt-contrib-watch": "*", + "grunt-contrib-uglify": "*" + } + +,"_resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" +,"_integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" +,"_from": "sprintf-js@1.0.3" } \ No newline at end of file diff --git a/node_modules/string-width/package.json b/node_modules/string-width/package.json index 8a570010a..c3ea56436 100644 --- a/node_modules/string-width/package.json +++ b/node_modules/string-width/package.json @@ -1,56 +1,60 @@ { - "name": "string-width", - "version": "4.2.0", - "description": "Get the visual width of a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/string-width", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "character", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "string-width", + "version": "4.2.0", + "description": "Get the visual width of a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/string-width", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "character", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz" +,"_integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==" +,"_from": "string-width@4.2.0" } \ No newline at end of file diff --git a/node_modules/strip-ansi/node_modules/ansi-regex/package.json b/node_modules/strip-ansi/node_modules/ansi-regex/package.json index b6c1efa36..555b26d73 100644 --- a/node_modules/strip-ansi/node_modules/ansi-regex/package.json +++ b/node_modules/strip-ansi/node_modules/ansi-regex/package.json @@ -1,55 +1,59 @@ { - "name": "ansi-regex", - "version": "5.0.0", - "description": "Regular expression for matching ANSI escape codes", - "license": "MIT", - "repository": "chalk/ansi-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "view-supported": "node fixtures/view-codes.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" - } + "name": "ansi-regex", + "version": "5.0.0", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.9.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz" +,"_integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" +,"_from": "ansi-regex@5.0.0" } \ No newline at end of file diff --git a/node_modules/strip-ansi/package.json b/node_modules/strip-ansi/package.json index 303816b1a..4fca79c1c 100644 --- a/node_modules/strip-ansi/package.json +++ b/node_modules/strip-ansi/package.json @@ -1,54 +1,58 @@ { - "name": "strip-ansi", - "version": "6.0.0", - "description": "Strip ANSI escape codes from a string", - "license": "MIT", - "repository": "chalk/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "strip", - "trim", - "remove", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } + "name": "strip-ansi", + "version": "6.0.0", + "description": "Strip ANSI escape codes from a string", + "license": "MIT", + "repository": "chalk/strip-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz" +,"_integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==" +,"_from": "strip-ansi@6.0.0" } \ No newline at end of file diff --git a/node_modules/strip-eof/package.json b/node_modules/strip-eof/package.json index 2e22eeb61..d054db16c 100644 --- a/node_modules/strip-eof/package.json +++ b/node_modules/strip-eof/package.json @@ -36,4 +36,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" +,"_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" +,"_from": "strip-eof@1.0.0" } \ No newline at end of file diff --git a/node_modules/strip-json-comments/package.json b/node_modules/strip-json-comments/package.json index 2b00952d9..19d3a720c 100644 --- a/node_modules/strip-json-comments/package.json +++ b/node_modules/strip-json-comments/package.json @@ -39,4 +39,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" +,"_integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" +,"_from": "strip-json-comments@2.0.1" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/ansi-regex/package.json b/node_modules/supertap/node_modules/ansi-regex/package.json index d8a414df3..c79b39f0a 100644 --- a/node_modules/supertap/node_modules/ansi-regex/package.json +++ b/node_modules/supertap/node_modules/ansi-regex/package.json @@ -50,4 +50,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz" +,"_integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" +,"_from": "ansi-regex@3.0.0" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/arrify/package.json b/node_modules/supertap/node_modules/arrify/package.json index d60245659..bfc8621c9 100644 --- a/node_modules/supertap/node_modules/arrify/package.json +++ b/node_modules/supertap/node_modules/arrify/package.json @@ -30,4 +30,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" +,"_integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" +,"_from": "arrify@1.0.1" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/indent-string/package.json b/node_modules/supertap/node_modules/indent-string/package.json index e235bb620..796eb8ecd 100644 --- a/node_modules/supertap/node_modules/indent-string/package.json +++ b/node_modules/supertap/node_modules/indent-string/package.json @@ -33,4 +33,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz" +,"_integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=" +,"_from": "indent-string@3.2.0" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/strip-ansi/package.json b/node_modules/supertap/node_modules/strip-ansi/package.json index e6f25b887..14a8f1c3a 100644 --- a/node_modules/supertap/node_modules/strip-ansi/package.json +++ b/node_modules/supertap/node_modules/strip-ansi/package.json @@ -49,4 +49,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz" +,"_integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=" +,"_from": "strip-ansi@4.0.0" } \ No newline at end of file diff --git a/node_modules/supertap/package.json b/node_modules/supertap/package.json index 5fdd242e6..7e7510710 100644 --- a/node_modules/supertap/package.json +++ b/node_modules/supertap/package.json @@ -50,4 +50,8 @@ "ava": { "serial": true } + +,"_resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz" +,"_integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==" +,"_from": "supertap@1.0.0" } \ No newline at end of file diff --git a/node_modules/supports-color/package.json b/node_modules/supports-color/package.json index efeb00b06..c01bdec70 100644 --- a/node_modules/supports-color/package.json +++ b/node_modules/supports-color/package.json @@ -1,53 +1,57 @@ { - "name": "supports-color", - "version": "5.5.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^3.0.0" - }, - "devDependencies": { - "ava": "^0.25.0", - "import-fresh": "^2.0.0", - "xo": "^0.20.0" - }, - "browser": "browser.js" + "name": "supports-color", + "version": "5.5.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^3.0.0" + }, + "devDependencies": { + "ava": "^0.25.0", + "import-fresh": "^2.0.0", + "xo": "^0.20.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" +,"_integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==" +,"_from": "supports-color@5.5.0" } \ No newline at end of file diff --git a/node_modules/temp-dir/package.json b/node_modules/temp-dir/package.json index ad951f149..3fcb881fc 100644 --- a/node_modules/temp-dir/package.json +++ b/node_modules/temp-dir/package.json @@ -1,41 +1,45 @@ { - "name": "temp-dir", - "version": "2.0.0", - "description": "Get the real path of the system temp directory", - "license": "MIT", - "repository": "sindresorhus/temp-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "temp", - "tmpdir", - "os", - "system", - "real", - "path", - "realpath", - "resolved", - "temporary", - "directory", - "folder" - ], - "devDependencies": { - "ava": "^1.4.1", - "proxyquire": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "temp-dir", + "version": "2.0.0", + "description": "Get the real path of the system temp directory", + "license": "MIT", + "repository": "sindresorhus/temp-dir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "temp", + "tmpdir", + "os", + "system", + "real", + "path", + "realpath", + "resolved", + "temporary", + "directory", + "folder" + ], + "devDependencies": { + "ava": "^1.4.1", + "proxyquire": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz" +,"_integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==" +,"_from": "temp-dir@2.0.0" } \ No newline at end of file diff --git a/node_modules/term-size/package.json b/node_modules/term-size/package.json index 6e1b27a37..d0980deb6 100644 --- a/node_modules/term-size/package.json +++ b/node_modules/term-size/package.json @@ -1,43 +1,47 @@ { - "name": "term-size", - "version": "2.2.0", - "description": "Reliably get the terminal window size (columns & rows)", - "license": "MIT", - "repository": "sindresorhus/term-size", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "vendor" - ], - "keywords": [ - "terminal", - "size", - "console", - "window", - "width", - "height", - "columns", - "rows", - "lines", - "tty", - "redirected" - ], - "devDependencies": { - "ava": "^2.4.0", - "execa": "^3.4.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "term-size", + "version": "2.2.0", + "description": "Reliably get the terminal window size (columns & rows)", + "license": "MIT", + "repository": "sindresorhus/term-size", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "vendor" + ], + "keywords": [ + "terminal", + "size", + "console", + "window", + "width", + "height", + "columns", + "rows", + "lines", + "tty", + "redirected" + ], + "devDependencies": { + "ava": "^2.4.0", + "execa": "^3.4.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz" +,"_integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==" +,"_from": "term-size@2.2.0" } \ No newline at end of file diff --git a/node_modules/time-zone/package.json b/node_modules/time-zone/package.json index 8e3e1e1a1..65a9f716a 100644 --- a/node_modules/time-zone/package.json +++ b/node_modules/time-zone/package.json @@ -32,4 +32,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz" +,"_integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=" +,"_from": "time-zone@1.0.0" } \ No newline at end of file diff --git a/node_modules/to-readable-stream/package.json b/node_modules/to-readable-stream/package.json index 3a078880d..f1aa3fdf1 100644 --- a/node_modules/to-readable-stream/package.json +++ b/node_modules/to-readable-stream/package.json @@ -1,40 +1,44 @@ { - "name": "to-readable-stream", - "version": "1.0.0", - "description": "Convert a string/Buffer/Uint8Array to a readable stream", - "license": "MIT", - "repository": "sindresorhus/to-readable-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "stream", - "readablestream", - "string", - "buffer", - "uint8array", - "from", - "into", - "to", - "transform", - "convert", - "readable", - "pull" - ], - "devDependencies": { - "ava": "*", - "get-stream": "^3.0.0", - "xo": "*" - } + "name": "to-readable-stream", + "version": "1.0.0", + "description": "Convert a string/Buffer/Uint8Array to a readable stream", + "license": "MIT", + "repository": "sindresorhus/to-readable-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "stream", + "readablestream", + "string", + "buffer", + "uint8array", + "from", + "into", + "to", + "transform", + "convert", + "readable", + "pull" + ], + "devDependencies": { + "ava": "*", + "get-stream": "^3.0.0", + "xo": "*" + } + +,"_resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz" +,"_integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" +,"_from": "to-readable-stream@1.0.0" } \ No newline at end of file diff --git a/node_modules/to-regex-range/package.json b/node_modules/to-regex-range/package.json index 54d82acde..fe98f0685 100644 --- a/node_modules/to-regex-range/package.json +++ b/node_modules/to-regex-range/package.json @@ -85,4 +85,8 @@ ] } } + +,"_resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" +,"_integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" +,"_from": "to-regex-range@5.0.1" } \ No newline at end of file diff --git a/node_modules/trim-off-newlines/package.json b/node_modules/trim-off-newlines/package.json index 83b8f3d6a..91a1806f6 100644 --- a/node_modules/trim-off-newlines/package.json +++ b/node_modules/trim-off-newlines/package.json @@ -45,4 +45,8 @@ "mocha" ] } + +,"_resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz" +,"_integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=" +,"_from": "trim-off-newlines@1.0.1" } \ No newline at end of file diff --git a/node_modules/tslib/package.json b/node_modules/tslib/package.json index 7878659d5..991aea3b7 100644 --- a/node_modules/tslib/package.json +++ b/node_modules/tslib/package.json @@ -1,29 +1,33 @@ { - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.11.1", - "license": "Apache-2.0", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false + "name": "tslib", + "author": "Microsoft Corp.", + "homepage": "https://www.typescriptlang.org/", + "version": "1.11.1", + "license": "Apache-2.0", + "description": "Runtime library for TypeScript helper functions", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript", + "tslib", + "runtime" + ], + "bugs": { + "url": "https://github.com/Microsoft/TypeScript/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/tslib.git" + }, + "main": "tslib.js", + "module": "tslib.es6.js", + "jsnext:main": "tslib.es6.js", + "typings": "tslib.d.ts", + "sideEffects": false + +,"_resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz" +,"_integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" +,"_from": "tslib@1.11.1" } \ No newline at end of file diff --git a/node_modules/tslint/node_modules/semver/package.json b/node_modules/tslint/node_modules/semver/package.json index 90e287ecf..31e12dde0 100644 --- a/node_modules/tslint/node_modules/semver/package.json +++ b/node_modules/tslint/node_modules/semver/package.json @@ -25,4 +25,8 @@ "tap": { "check-coverage": true } + +,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" +,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" +,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/tslint/package.json b/node_modules/tslint/package.json index 02f832328..8f918b1d6 100644 --- a/node_modules/tslint/package.json +++ b/node_modules/tslint/package.json @@ -1,93 +1,97 @@ { - "name": "tslint", - "version": "6.1.0", - "description": "An extensible static analysis linter for the TypeScript language", - "bin": { - "tslint": "./bin/tslint" - }, - "main": "./lib/index.js", - "typings": "./lib/index.d.ts", - "scripts": { - "clean": "npm-run-all -p clean:core clean:test", - "clean:core": "rimraf lib", - "clean:test": "rimraf build && rimraf test/config/node_modules", - "docs": "node scripts/buildDocs.js", - "compile": "npm-run-all -p compile:core compile:test -s compile:scripts", - "compile:core": "tsc -p src", - "compile:scripts": "tsc -p scripts", - "compile:test": "tsc -p test", - "lint": "npm-run-all -p lint:from-installed lint:from-bin", - "lint:from-bin": "node bin/tslint --project test/tsconfig.json --format codeFrame", - "lint:from-installed": "tslint --project test/tsconfig.json --format codeFrame", - "lint-fix": "yarn lint:from-installed --fix", - "publish:local": "./scripts/npmPublish.sh", - "test": "npm-run-all test:pre -p test:mocha test:rules", - "test:pre": "cd ./test/config && npm install --no-save", - "test:mocha": "mocha --reporter spec --colors \"build/test/**/*Tests.js\"", - "test:rules": "node ./build/test/ruleTestRunner.js", - "verify": "npm-run-all clean compile lint test docs", - "coverage": "rimraf coverage .nyc_output && nyc npm test" - }, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.10.0", - "tsutils": "^2.29.0" - }, - "peerDependencies": { - "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" - }, - "devDependencies": { - "@octokit/rest": "^16.24.3", - "@types/babel__code-frame": "^7.0.1", - "@types/chai": "^3.5.0", - "@types/diff": "^3.2.0", - "@types/glob": "^5.0.30", - "@types/js-yaml": "^3.5.31", - "@types/minimatch": "^2.0.29", - "@types/mkdirp": "^0.5.2", - "@types/mocha": "^5.2.6", - "@types/node": "^7.0.29", - "@types/resolve": "^0.0.4", - "@types/rimraf": "^2.0.2", - "@types/semver": "^5.3.30", - "chai": "^3.5.0", - "husky": "^0.14.3", - "json-stringify-pretty-compact": "^1.2.0", - "mocha": "^6.1.4", - "npm-run-all": "^4.0.2", - "nyc": "^14.1.1", - "prettier": "~1.16.4", - "rimraf": "^2.5.4", - "ts-node": "^3.3.0", - "tslint": "~5.13.0", - "tslint-config-prettier": "^1.18.0", - "tslint-plugin-prettier": "^2.0.1", - "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", - "typescript": "~3.8.2", - "yarn-deduplicate": "^1.1.1" - }, - "engines": { - "node": ">=4.8.0" - }, - "homepage": "https://palantir.github.io/tslint", - "repository": { - "type": "git", - "url": "https://github.com/palantir/tslint.git" - }, - "keywords": [ - "cli", - "typescript", - "linter" - ], - "license": "Apache-2.0" + "name": "tslint", + "version": "6.1.0", + "description": "An extensible static analysis linter for the TypeScript language", + "bin": { + "tslint": "./bin/tslint" + }, + "main": "./lib/index.js", + "typings": "./lib/index.d.ts", + "scripts": { + "clean": "npm-run-all -p clean:core clean:test", + "clean:core": "rimraf lib", + "clean:test": "rimraf build && rimraf test/config/node_modules", + "docs": "node scripts/buildDocs.js", + "compile": "npm-run-all -p compile:core compile:test -s compile:scripts", + "compile:core": "tsc -p src", + "compile:scripts": "tsc -p scripts", + "compile:test": "tsc -p test", + "lint": "npm-run-all -p lint:from-installed lint:from-bin", + "lint:from-bin": "node bin/tslint --project test/tsconfig.json --format codeFrame", + "lint:from-installed": "tslint --project test/tsconfig.json --format codeFrame", + "lint-fix": "yarn lint:from-installed --fix", + "publish:local": "./scripts/npmPublish.sh", + "test": "npm-run-all test:pre -p test:mocha test:rules", + "test:pre": "cd ./test/config && npm install --no-save", + "test:mocha": "mocha --reporter spec --colors \"build/test/**/*Tests.js\"", + "test:rules": "node ./build/test/ruleTestRunner.js", + "verify": "npm-run-all clean compile lint test docs", + "coverage": "rimraf coverage .nyc_output && nyc npm test" + }, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.10.0", + "tsutils": "^2.29.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" + }, + "devDependencies": { + "@octokit/rest": "^16.24.3", + "@types/babel__code-frame": "^7.0.1", + "@types/chai": "^3.5.0", + "@types/diff": "^3.2.0", + "@types/glob": "^5.0.30", + "@types/js-yaml": "^3.5.31", + "@types/minimatch": "^2.0.29", + "@types/mkdirp": "^0.5.2", + "@types/mocha": "^5.2.6", + "@types/node": "^7.0.29", + "@types/resolve": "^0.0.4", + "@types/rimraf": "^2.0.2", + "@types/semver": "^5.3.30", + "chai": "^3.5.0", + "husky": "^0.14.3", + "json-stringify-pretty-compact": "^1.2.0", + "mocha": "^6.1.4", + "npm-run-all": "^4.0.2", + "nyc": "^14.1.1", + "prettier": "~1.16.4", + "rimraf": "^2.5.4", + "ts-node": "^3.3.0", + "tslint": "~5.13.0", + "tslint-config-prettier": "^1.18.0", + "tslint-plugin-prettier": "^2.0.1", + "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", + "typescript": "~3.8.2", + "yarn-deduplicate": "^1.1.1" + }, + "engines": { + "node": ">=4.8.0" + }, + "homepage": "https://palantir.github.io/tslint", + "repository": { + "type": "git", + "url": "https://github.com/palantir/tslint.git" + }, + "keywords": [ + "cli", + "typescript", + "linter" + ], + "license": "Apache-2.0" + +,"_resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.0.tgz" +,"_integrity": "sha512-fXjYd/61vU6da04E505OZQGb2VCN2Mq3doeWcOIryuG+eqdmFUXTYVwdhnbEu2k46LNLgUYt9bI5icQze/j0bQ==" +,"_from": "tslint@6.1.0" } \ No newline at end of file diff --git a/node_modules/tsutils/package.json b/node_modules/tsutils/package.json index 7c72f9465..71967fb7a 100644 --- a/node_modules/tsutils/package.json +++ b/node_modules/tsutils/package.json @@ -52,4 +52,8 @@ "dependencies": { "tslib": "^1.8.1" } + +,"_resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz" +,"_integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==" +,"_from": "tsutils@2.29.0" } \ No newline at end of file diff --git a/node_modules/typedarray-to-buffer/package.json b/node_modules/typedarray-to-buffer/package.json index 208763783..afaac5233 100644 --- a/node_modules/typedarray-to-buffer/package.json +++ b/node_modules/typedarray-to-buffer/package.json @@ -47,4 +47,8 @@ "test-browser-local": "airtap --local -- test/*.js", "test-node": "tape test/*.js" } + +,"_resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" +,"_integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==" +,"_from": "typedarray-to-buffer@3.1.5" } \ No newline at end of file diff --git a/node_modules/typescript/package.json b/node_modules/typescript/package.json index c2efe1e26..6e6dadab8 100644 --- a/node_modules/typescript/package.json +++ b/node_modules/typescript/package.json @@ -1,134 +1,138 @@ { - "name": "typescript", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "3.7.5", - "license": "Apache-2.0", - "description": "TypeScript is a language for application scale JavaScript development", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/TypeScript.git" - }, - "main": "./lib/typescript.js", - "typings": "./lib/typescript.d.ts", - "bin": { - "tsc": "./bin/tsc", - "tsserver": "./bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - }, - "devDependencies": { - "@octokit/rest": "latest", - "@types/browserify": "latest", - "@types/chai": "latest", - "@types/convert-source-map": "latest", - "@types/glob": "latest", - "@types/gulp": "^4.0.5", - "@types/gulp-concat": "latest", - "@types/gulp-newer": "latest", - "@types/gulp-rename": "0.0.33", - "@types/gulp-sourcemaps": "0.0.32", - "@types/jake": "latest", - "@types/merge2": "latest", - "@types/microsoft__typescript-etw": "latest", - "@types/minimatch": "latest", - "@types/minimist": "latest", - "@types/mkdirp": "latest", - "@types/mocha": "latest", - "@types/ms": "latest", - "@types/node": "latest", - "@types/node-fetch": "^2.3.4", - "@types/q": "latest", - "@types/source-map-support": "latest", - "@types/through2": "latest", - "@types/travis-fold": "latest", - "@types/xml2js": "^0.4.0", - "@typescript-eslint/eslint-plugin": "2.3.2", - "@typescript-eslint/experimental-utils": "2.3.2", - "@typescript-eslint/parser": "2.3.2", - "async": "latest", - "azure-devops-node-api": "^8.0.0", - "browser-resolve": "^1.11.2", - "browserify": "latest", - "chai": "latest", - "chalk": "latest", - "convert-source-map": "latest", - "del": "5.1.0", - "eslint": "6.5.1", - "eslint-formatter-autolinkable-stylish": "1.0.3", - "eslint-plugin-import": "2.18.2", - "eslint-plugin-jsdoc": "15.9.9", - "eslint-plugin-no-null": "1.0.2", - "fancy-log": "latest", - "fs-extra": "^6.0.1", - "glob": "latest", - "gulp": "^4.0.0", - "gulp-concat": "latest", - "gulp-insert": "latest", - "gulp-newer": "latest", - "gulp-rename": "latest", - "gulp-sourcemaps": "latest", - "istanbul": "latest", - "merge2": "latest", - "minimist": "latest", - "mkdirp": "latest", - "mocha": "latest", - "mocha-fivemat-progress-reporter": "latest", - "ms": "latest", - "node-fetch": "^2.6.0", - "plugin-error": "latest", - "pretty-hrtime": "^1.0.3", - "prex": "^0.4.3", - "q": "latest", - "remove-internal": "^2.9.2", - "simple-git": "^1.113.0", - "source-map-support": "latest", - "through2": "latest", - "travis-fold": "latest", - "typescript": "next", - "vinyl": "latest", - "vinyl-sourcemaps-apply": "latest", - "xml2js": "^0.4.19" - }, - "scripts": { - "prepare": "gulp build-eslint-rules", - "pretest": "gulp tests", - "test": "gulp runtests-parallel --light=false", - "test:eslint-rules": "gulp run-eslint-rules-tests", - "build": "npm run build:compiler && npm run build:tests", - "build:compiler": "gulp local", - "build:tests": "gulp tests", - "start": "node lib/tsc", - "clean": "gulp clean", - "gulp": "gulp", - "jake": "gulp", - "lint": "gulp lint", - "lint:ci": "gulp lint --ci", - "lint:compiler": "gulp lint-compiler", - "lint:scripts": "gulp lint-scripts", - "setup-hooks": "node scripts/link-hooks.js", - "update-costly-tests": "node scripts/costly-tests.js" - }, - "browser": { - "fs": false, - "os": false, - "path": false, - "crypto": false, - "buffer": false, - "@microsoft/typescript-etw": false, - "source-map-support": false, - "inspector": false - }, - "dependencies": {} + "name": "typescript", + "author": "Microsoft Corp.", + "homepage": "https://www.typescriptlang.org/", + "version": "3.7.5", + "license": "Apache-2.0", + "description": "TypeScript is a language for application scale JavaScript development", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript" + ], + "bugs": { + "url": "https://github.com/Microsoft/TypeScript/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/TypeScript.git" + }, + "main": "./lib/typescript.js", + "typings": "./lib/typescript.d.ts", + "bin": { + "tsc": "./bin/tsc", + "tsserver": "./bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + }, + "devDependencies": { + "@octokit/rest": "latest", + "@types/browserify": "latest", + "@types/chai": "latest", + "@types/convert-source-map": "latest", + "@types/glob": "latest", + "@types/gulp": "^4.0.5", + "@types/gulp-concat": "latest", + "@types/gulp-newer": "latest", + "@types/gulp-rename": "0.0.33", + "@types/gulp-sourcemaps": "0.0.32", + "@types/jake": "latest", + "@types/merge2": "latest", + "@types/microsoft__typescript-etw": "latest", + "@types/minimatch": "latest", + "@types/minimist": "latest", + "@types/mkdirp": "latest", + "@types/mocha": "latest", + "@types/ms": "latest", + "@types/node": "latest", + "@types/node-fetch": "^2.3.4", + "@types/q": "latest", + "@types/source-map-support": "latest", + "@types/through2": "latest", + "@types/travis-fold": "latest", + "@types/xml2js": "^0.4.0", + "@typescript-eslint/eslint-plugin": "2.3.2", + "@typescript-eslint/experimental-utils": "2.3.2", + "@typescript-eslint/parser": "2.3.2", + "async": "latest", + "azure-devops-node-api": "^8.0.0", + "browser-resolve": "^1.11.2", + "browserify": "latest", + "chai": "latest", + "chalk": "latest", + "convert-source-map": "latest", + "del": "5.1.0", + "eslint": "6.5.1", + "eslint-formatter-autolinkable-stylish": "1.0.3", + "eslint-plugin-import": "2.18.2", + "eslint-plugin-jsdoc": "15.9.9", + "eslint-plugin-no-null": "1.0.2", + "fancy-log": "latest", + "fs-extra": "^6.0.1", + "glob": "latest", + "gulp": "^4.0.0", + "gulp-concat": "latest", + "gulp-insert": "latest", + "gulp-newer": "latest", + "gulp-rename": "latest", + "gulp-sourcemaps": "latest", + "istanbul": "latest", + "merge2": "latest", + "minimist": "latest", + "mkdirp": "latest", + "mocha": "latest", + "mocha-fivemat-progress-reporter": "latest", + "ms": "latest", + "node-fetch": "^2.6.0", + "plugin-error": "latest", + "pretty-hrtime": "^1.0.3", + "prex": "^0.4.3", + "q": "latest", + "remove-internal": "^2.9.2", + "simple-git": "^1.113.0", + "source-map-support": "latest", + "through2": "latest", + "travis-fold": "latest", + "typescript": "next", + "vinyl": "latest", + "vinyl-sourcemaps-apply": "latest", + "xml2js": "^0.4.19" + }, + "scripts": { + "prepare": "gulp build-eslint-rules", + "pretest": "gulp tests", + "test": "gulp runtests-parallel --light=false", + "test:eslint-rules": "gulp run-eslint-rules-tests", + "build": "npm run build:compiler && npm run build:tests", + "build:compiler": "gulp local", + "build:tests": "gulp tests", + "start": "node lib/tsc", + "clean": "gulp clean", + "gulp": "gulp", + "jake": "gulp", + "lint": "gulp lint", + "lint:ci": "gulp lint --ci", + "lint:compiler": "gulp lint-compiler", + "lint:scripts": "gulp lint-scripts", + "setup-hooks": "node scripts/link-hooks.js", + "update-costly-tests": "node scripts/costly-tests.js" + }, + "browser": { + "fs": false, + "os": false, + "path": false, + "crypto": false, + "buffer": false, + "@microsoft/typescript-etw": false, + "source-map-support": false, + "inspector": false + }, + "dependencies": {} + +,"_resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz" +,"_integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==" +,"_from": "typescript@3.7.5" } \ No newline at end of file diff --git a/node_modules/unique-string/package.json b/node_modules/unique-string/package.json index 0bf04f042..808e91cf2 100644 --- a/node_modules/unique-string/package.json +++ b/node_modules/unique-string/package.json @@ -1,40 +1,44 @@ { - "name": "unique-string", - "version": "2.0.0", - "description": "Generate a unique random string", - "license": "MIT", - "repository": "sindresorhus/unique-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "unique", - "string", - "random", - "text", - "id", - "identifier", - "slug", - "hex" - ], - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "unique-string", + "version": "2.0.0", + "description": "Generate a unique random string", + "license": "MIT", + "repository": "sindresorhus/unique-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "unique", + "string", + "random", + "text", + "id", + "identifier", + "slug", + "hex" + ], + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz" +,"_integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==" +,"_from": "unique-string@2.0.0" } \ No newline at end of file diff --git a/node_modules/universal-user-agent/package.json b/node_modules/universal-user-agent/package.json index 507ae8da8..9870ef087 100644 --- a/node_modules/universal-user-agent/package.json +++ b/node_modules/universal-user-agent/package.json @@ -30,4 +30,8 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" + +,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-5.0.0.tgz" +,"_integrity": "sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q==" +,"_from": "universal-user-agent@5.0.0" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/ansi-styles/package.json b/node_modules/update-notifier/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/update-notifier/node_modules/ansi-styles/package.json +++ b/node_modules/update-notifier/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/chalk/package.json b/node_modules/update-notifier/node_modules/chalk/package.json index b68e931e7..c75d30e94 100644 --- a/node_modules/update-notifier/node_modules/chalk/package.json +++ b/node_modules/update-notifier/node_modules/chalk/package.json @@ -1,63 +1,67 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } + +,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" +,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" +,"_from": "chalk@3.0.0" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/color-convert/package.json b/node_modules/update-notifier/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/update-notifier/node_modules/color-convert/package.json +++ b/node_modules/update-notifier/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/color-name/package.json b/node_modules/update-notifier/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/update-notifier/node_modules/color-name/package.json +++ b/node_modules/update-notifier/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/has-flag/package.json b/node_modules/update-notifier/node_modules/has-flag/package.json index 55d0058e4..5b10a2844 100644 --- a/node_modules/update-notifier/node_modules/has-flag/package.json +++ b/node_modules/update-notifier/node_modules/has-flag/package.json @@ -1,46 +1,50 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" +,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" +,"_from": "has-flag@4.0.0" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/supports-color/package.json b/node_modules/update-notifier/node_modules/supports-color/package.json index 79856038d..f0982eb21 100644 --- a/node_modules/update-notifier/node_modules/supports-color/package.json +++ b/node_modules/update-notifier/node_modules/supports-color/package.json @@ -1,53 +1,57 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" + +,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" +,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" +,"_from": "supports-color@7.1.0" } \ No newline at end of file diff --git a/node_modules/update-notifier/package.json b/node_modules/update-notifier/package.json index 604f5db25..5aa45bd9c 100644 --- a/node_modules/update-notifier/package.json +++ b/node_modules/update-notifier/package.json @@ -1,64 +1,68 @@ { - "name": "update-notifier", - "version": "4.1.0", - "description": "Update notifications for your CLI app", - "license": "BSD-2-Clause", - "repository": "yeoman/update-notifier", - "funding": "https://github.com/yeoman/update-notifier?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava --timeout=20s -s" - }, - "files": [ - "index.js", - "check.js" - ], - "keywords": [ - "npm", - "update", - "updater", - "notify", - "notifier", - "check", - "checker", - "cli", - "module", - "package", - "version" - ], - "dependencies": { - "boxen": "^4.2.0", - "chalk": "^3.0.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.3.1", - "is-npm": "^4.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.0.0", - "pupa": "^2.0.1", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "clear-module": "^4.0.0", - "fixture-stdout": "^0.2.1", - "mock-require": "^3.0.3", - "strip-ansi": "^6.0.0", - "xo": "^0.26.1" - }, - "xo": { - "rules": { - "prefer-object-spread": 0 - } - } + "name": "update-notifier", + "version": "4.1.0", + "description": "Update notifications for your CLI app", + "license": "BSD-2-Clause", + "repository": "yeoman/update-notifier", + "funding": "https://github.com/yeoman/update-notifier?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava --timeout=20s -s" + }, + "files": [ + "index.js", + "check.js" + ], + "keywords": [ + "npm", + "update", + "updater", + "notify", + "notifier", + "check", + "checker", + "cli", + "module", + "package", + "version" + ], + "dependencies": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "clear-module": "^4.0.0", + "fixture-stdout": "^0.2.1", + "mock-require": "^3.0.3", + "strip-ansi": "^6.0.0", + "xo": "^0.26.1" + }, + "xo": { + "rules": { + "prefer-object-spread": 0 + } + } + +,"_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz" +,"_integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew==" +,"_from": "update-notifier@4.1.0" } \ No newline at end of file diff --git a/node_modules/url-parse-lax/package.json b/node_modules/url-parse-lax/package.json index fb99b48ca..f62c1616c 100644 --- a/node_modules/url-parse-lax/package.json +++ b/node_modules/url-parse-lax/package.json @@ -39,4 +39,8 @@ "ava": "*", "xo": "*" } + +,"_resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz" +,"_integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=" +,"_from": "url-parse-lax@3.0.0" } \ No newline at end of file diff --git a/node_modules/util/package.json b/node_modules/util/package.json index 3ea19135d..e007ee0db 100644 --- a/node_modules/util/package.json +++ b/node_modules/util/package.json @@ -32,4 +32,8 @@ "browser": { "./support/isBuffer.js": "./support/isBufferBrowser.js" } + +,"_resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz" +,"_integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==" +,"_from": "util@0.10.4" } \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json index 4b23f72c7..3777855f5 100644 --- a/node_modules/uuid/package.json +++ b/node_modules/uuid/package.json @@ -46,4 +46,8 @@ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } + +,"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz" +,"_integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" +,"_from": "uuid@3.4.0" } \ No newline at end of file diff --git a/node_modules/validate-npm-package-license/package.json b/node_modules/validate-npm-package-license/package.json index 06ebbfc74..586f12a17 100644 --- a/node_modules/validate-npm-package-license/package.json +++ b/node_modules/validate-npm-package-license/package.json @@ -25,4 +25,8 @@ "scripts": { "test": "defence README.md | replace-require-self | node" } + +,"_resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" +,"_integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==" +,"_from": "validate-npm-package-license@3.0.4" } \ No newline at end of file diff --git a/node_modules/wcwidth/package.json b/node_modules/wcwidth/package.json index 232687f75..12cb1c239 100644 --- a/node_modules/wcwidth/package.json +++ b/node_modules/wcwidth/package.json @@ -39,4 +39,8 @@ "url": "https://github.com/timoxley/wcwidth/issues" }, "homepage": "https://github.com/timoxley/wcwidth#readme" + +,"_resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" +,"_integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=" +,"_from": "wcwidth@1.0.1" } \ No newline at end of file diff --git a/node_modules/well-known-symbols/package.json b/node_modules/well-known-symbols/package.json index 3506ecbc2..83e7f542d 100644 --- a/node_modules/well-known-symbols/package.json +++ b/node_modules/well-known-symbols/package.json @@ -46,4 +46,8 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" + +,"_resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-2.0.0.tgz" +,"_integrity": "sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==" +,"_from": "well-known-symbols@2.0.0" } \ No newline at end of file diff --git a/node_modules/which-module/package.json b/node_modules/which-module/package.json index 3d784c798..fc272b5fa 100644 --- a/node_modules/which-module/package.json +++ b/node_modules/which-module/package.json @@ -38,4 +38,8 @@ "standard": "^10.0.2", "standard-version": "^4.0.0" } + +,"_resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" +,"_integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" +,"_from": "which-module@2.0.0" } \ No newline at end of file diff --git a/node_modules/which/package.json b/node_modules/which/package.json index 6844ec286..740862f21 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -27,4 +27,8 @@ "which.js", "bin/which" ] + +,"_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz" +,"_integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==" +,"_from": "which@1.3.1" } \ No newline at end of file diff --git a/node_modules/widest-line/package.json b/node_modules/widest-line/package.json index 55d21f276..5795ae553 100644 --- a/node_modules/widest-line/package.json +++ b/node_modules/widest-line/package.json @@ -1,54 +1,58 @@ { - "name": "widest-line", - "version": "3.1.0", - "description": "Get the visual width of the widest line in a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/widest-line", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "character", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "string-width": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } + "name": "widest-line", + "version": "3.1.0", + "description": "Get the visual width of the widest line in a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/widest-line", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "character", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "string-width": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz" +,"_integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==" +,"_from": "widest-line@3.1.0" } \ No newline at end of file diff --git a/node_modules/windows-release/package.json b/node_modules/windows-release/package.json index b87232dd6..c9adabf01 100644 --- a/node_modules/windows-release/package.json +++ b/node_modules/windows-release/package.json @@ -1,43 +1,47 @@ { - "name": "windows-release", - "version": "3.2.0", - "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", - "license": "MIT", - "repository": "sindresorhus/windows-release", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "os", - "win", - "win32", - "windows", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "dependencies": { - "execa": "^1.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "windows-release", + "version": "3.2.0", + "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", + "license": "MIT", + "repository": "sindresorhus/windows-release", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "os", + "win", + "win32", + "windows", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version" + ], + "dependencies": { + "execa": "^1.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.2.0.tgz" +,"_integrity": "sha512-QTlz2hKLrdqukrsapKsINzqMgOUpQW268eJ0OaOpJN32h272waxR9fkB9VoWRtK7uKHG5EHJcTXQBD8XZVJkFA==" +,"_from": "windows-release@3.2.0" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json b/node_modules/wrap-ansi/node_modules/ansi-styles/package.json index 1a7731952..f970a55ac 100644 --- a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +++ b/node_modules/wrap-ansi/node_modules/ansi-styles/package.json @@ -1,57 +1,61 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } + +,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" +,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" +,"_from": "ansi-styles@4.2.1" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/color-convert/package.json b/node_modules/wrap-ansi/node_modules/color-convert/package.json index d169f869b..26354b46e 100644 --- a/node_modules/wrap-ansi/node_modules/color-convert/package.json +++ b/node_modules/wrap-ansi/node_modules/color-convert/package.json @@ -45,4 +45,8 @@ "dependencies": { "color-name": "~1.1.4" } + +,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" +,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" +,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/color-name/package.json b/node_modules/wrap-ansi/node_modules/color-name/package.json index fecb8dcfb..14739f13f 100644 --- a/node_modules/wrap-ansi/node_modules/color-name/package.json +++ b/node_modules/wrap-ansi/node_modules/color-name/package.json @@ -1,28 +1,32 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" + +,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" +,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" +,"_from": "color-name@1.1.4" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/package.json b/node_modules/wrap-ansi/package.json index 821aebb90..cd22ae882 100644 --- a/node_modules/wrap-ansi/package.json +++ b/node_modules/wrap-ansi/package.json @@ -1,61 +1,65 @@ { - "name": "wrap-ansi", - "version": "6.2.0", - "description": "Wordwrap a string with ANSI escape codes", - "license": "MIT", - "repository": "chalk/wrap-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "wrap", - "break", - "wordwrap", - "wordbreak", - "linewrap", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "chalk": "^2.4.2", - "coveralls": "^3.0.3", - "has-ansi": "^3.0.0", - "nyc": "^14.1.1", - "xo": "^0.24.0" - } + "name": "wrap-ansi", + "version": "6.2.0", + "description": "Wordwrap a string with ANSI escape codes", + "license": "MIT", + "repository": "chalk/wrap-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "wrap", + "break", + "wordwrap", + "wordbreak", + "linewrap", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "chalk": "^2.4.2", + "coveralls": "^3.0.3", + "has-ansi": "^3.0.0", + "nyc": "^14.1.1", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" +,"_integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==" +,"_from": "wrap-ansi@6.2.0" } \ No newline at end of file diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index 277d8831b..afa77fdc3 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -26,4 +26,8 @@ "url": "https://github.com/npm/wrappy/issues" }, "homepage": "https://github.com/npm/wrappy" + +,"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" +,"_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" +,"_from": "wrappy@1.0.2" } \ No newline at end of file diff --git a/node_modules/write-file-atomic/package.json b/node_modules/write-file-atomic/package.json index 58ff19175..e9740c053 100644 --- a/node_modules/write-file-atomic/package.json +++ b/node_modules/write-file-atomic/package.json @@ -45,4 +45,8 @@ "tap": { "100": true } + +,"_resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" +,"_integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==" +,"_from": "write-file-atomic@3.0.3" } \ No newline at end of file diff --git a/node_modules/xdg-basedir/package.json b/node_modules/xdg-basedir/package.json index 1028a16cf..c1fa79ef9 100644 --- a/node_modules/xdg-basedir/package.json +++ b/node_modules/xdg-basedir/package.json @@ -1,41 +1,45 @@ { - "name": "xdg-basedir", - "version": "4.0.0", - "description": "Get XDG Base Directory paths", - "license": "MIT", - "repository": "sindresorhus/xdg-basedir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "xdg", - "base", - "directory", - "basedir", - "path", - "data", - "config", - "cache", - "linux", - "unix", - "spec" - ], - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } + "name": "xdg-basedir", + "version": "4.0.0", + "description": "Get XDG Base Directory paths", + "license": "MIT", + "repository": "sindresorhus/xdg-basedir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "xdg", + "base", + "directory", + "basedir", + "path", + "data", + "config", + "cache", + "linux", + "unix", + "spec" + ], + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } + +,"_resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz" +,"_integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" +,"_from": "xdg-basedir@4.0.0" } \ No newline at end of file diff --git a/node_modules/y18n/package.json b/node_modules/y18n/package.json index 57f8da1ad..28d76228e 100644 --- a/node_modules/y18n/package.json +++ b/node_modules/y18n/package.json @@ -36,4 +36,8 @@ "standard": "^10.0.0-beta.0", "standard-version": "^4.2.0" } + +,"_resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz" +,"_integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" +,"_from": "y18n@4.0.0" } \ No newline at end of file diff --git a/node_modules/yargs-parser/package.json b/node_modules/yargs-parser/package.json index b611d3f6b..8fc562099 100644 --- a/node_modules/yargs-parser/package.json +++ b/node_modules/yargs-parser/package.json @@ -43,4 +43,8 @@ "engines": { "node": ">=6" } + +,"_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.2.tgz" +,"_integrity": "sha512-hlIPNR3IzC1YuL1c2UwwDKpXlNFBqD1Fswwh1khz5+d8Cq/8yc/Mn0i+rQXduu8hcrFKvO7Eryk+09NecTQAAQ==" +,"_from": "yargs-parser@18.1.2" } \ No newline at end of file diff --git a/node_modules/yargs/package.json b/node_modules/yargs/package.json index 745bae01a..c260dec39 100644 --- a/node_modules/yargs/package.json +++ b/node_modules/yargs/package.json @@ -75,4 +75,8 @@ "engines": { "node": ">=8" } + +,"_resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz" +,"_integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==" +,"_from": "yargs@15.3.1" } \ No newline at end of file diff --git a/node_modules/zlib/package.json b/node_modules/zlib/package.json index 5fa94d181..3c97a7452 100644 --- a/node_modules/zlib/package.json +++ b/node_modules/zlib/package.json @@ -1,20 +1,22 @@ { - "name": "zlib", - "description": "Simple, synchronous deflate/inflate for buffers", - "version": "1.0.5", - "homepage": "https://github.com/kkaefer/node-zlib", - "author": "Konstantin Käfer ", - "repository": { - "type": "git", - "url": "git://github.com/kkaefer/node-zlib.git" - }, - "engines": { - "node": ">=0.2.0" - }, - "licenses": [ - { - "type": "BSD" - } - ], - "main": "./lib/zlib" + "name": "zlib", + "description": "Simple, synchronous deflate/inflate for buffers", + "version": "1.0.5", + "homepage": "https://github.com/kkaefer/node-zlib", + "author": "Konstantin Käfer ", + "repository": { + "type": "git", + "url": "git://github.com/kkaefer/node-zlib.git" + }, + "engines": { + "node": ">=0.2.0" + }, + "licenses": [ + { "type": "BSD" } + ], + "main": "./lib/zlib" + +,"_resolved": "https://registry.npmjs.org/zlib/-/zlib-1.0.5.tgz" +,"_integrity": "sha1-bnyXL8NxxkWmr7A6sUdp3vEU/MA=" +,"_from": "zlib@1.0.5" } \ No newline at end of file From 2758bd30c85d036d5a0f3d5dcd35df3152955453 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 14:47:35 +0200 Subject: [PATCH 04/38] avoid floating point division of ram --- lib/finalize-db.test.js | 2 +- lib/finalize-db.test.js.map | 2 +- src/finalize-db.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/finalize-db.test.js b/lib/finalize-db.test.js index 9af9f1e1d..e8a078ba8 100644 --- a/lib/finalize-db.test.js +++ b/lib/finalize-db.test.js @@ -14,7 +14,7 @@ const ava_1 = __importDefault(require("ava")); const os = __importStar(require("os")); const finalize_db_1 = require("./finalize-db"); ava_1.default('getMemoryFlag() should return the correct --ram flag', t => { - const totalMem = os.totalmem() / (1024 * 1024); + const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); const tests = { "": `--ram=${totalMem - 256}`, "512": "--ram=512", diff --git a/lib/finalize-db.test.js.map b/lib/finalize-db.test.js.map index cc79c3bd1..4ca263fa9 100644 --- a/lib/finalize-db.test.js.map +++ b/lib/finalize-db.test.js.map @@ -1 +1 @@ -{"version":3,"file":"finalize-db.test.js","sourceRoot":"","sources":["../src/finalize-db.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,+CAGuB;AAEvB,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EAAE;IAE7D,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG;QACV,EAAE,EAAE,SAAS,QAAQ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AElE,MAAM,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;IAEjC,MAAM,KAAK,GAAG;QACV,GAAG,EAAE,aAAa;QAClB,GAAG,EAAE,aAAa;QAClB,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,CAAC,EAAE,aAAa,OAAO,EAAE;KAC7C,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEvD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,4BAAc,EAAE,CAAC;QAC9B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IAC/D,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,4BAAc,CAAC,CAAC;KAC5B;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/finalize-db.test.ts b/src/finalize-db.test.ts index 94472a7bc..997237269 100644 --- a/src/finalize-db.test.ts +++ b/src/finalize-db.test.ts @@ -8,7 +8,7 @@ import { test('getMemoryFlag() should return the correct --ram flag', t => { - const totalMem = os.totalmem() / (1024 * 1024); + const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); const tests = { "": `--ram=${totalMem - 256}`, From dcba70915d1ffc1e7ddea2f715e972e1a05c30f1 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 17:17:25 +0200 Subject: [PATCH 05/38] move functions to util.ts --- lib/finalize-db.js | 39 ++----------------------- lib/finalize-db.js.map | 2 +- lib/finalize-db.test.js | 51 -------------------------------- lib/finalize-db.test.js.map | 2 +- lib/util.js | 46 +++++++++++++++++++++++++++++ lib/util.js.map | 2 +- lib/util.test.js | 38 ++++++++++++++++++++++++ lib/util.test.js.map | 2 +- src/finalize-db.test.ts | 58 ------------------------------------- src/finalize-db.ts | 38 ++---------------------- src/util.test.ts | 52 +++++++++++++++++++++++++++++++++ src/util.ts | 45 ++++++++++++++++++++++++++++ 12 files changed, 189 insertions(+), 186 deletions(-) delete mode 100644 src/finalize-db.test.ts diff --git a/lib/finalize-db.js b/lib/finalize-db.js index 5900409d5..51f979450 100644 --- a/lib/finalize-db.js +++ b/lib/finalize-db.js @@ -11,7 +11,6 @@ const core = __importStar(require("@actions/core")); const exec = __importStar(require("@actions/exec")); const io = __importStar(require("@actions/io")); const fs = __importStar(require("fs")); -const os = __importStar(require("os")); const path = __importStar(require("path")); const configUtils = __importStar(require("./config-utils")); const externalQueries = __importStar(require("./external-queries")); @@ -37,40 +36,6 @@ function queryIsDisabled(language, query) { return (DISABLED_BUILTIN_QUERIES[language] || []) .some(disabledQuery => query.endsWith(disabledQuery)); } -function getMemoryFlag() { - let memoryToUseMegaBytes; - const memoryToUseString = core.getInput("ram"); - if (memoryToUseString) { - memoryToUseMegaBytes = Number(memoryToUseString); - if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { - throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); - } - } - else { - const totalMemoryBytes = os.totalmem(); - const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); - const systemReservedMemoryMegaBytes = 256; - memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; - } - return "--ram=" + Math.floor(memoryToUseMegaBytes); -} -exports.getMemoryFlag = getMemoryFlag; -function getThreadsFlag() { - let numThreads = 1; - const numThreadsString = core.getInput("threads"); - if (numThreadsString) { - numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads) || numThreads < 0) { - throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); - } - const maxThreads = os.cpus().length; - if (numThreads > maxThreads) { - numThreads = maxThreads; - } - } - return `--threads=${numThreads}`; -} -exports.getThreadsFlag = getThreadsFlag; async function createdDBForScannedLanguages(codeqlCmd, databaseFolder) { const scannedLanguages = process.env[sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES]; if (scannedLanguages) { @@ -180,8 +145,8 @@ async function runQueries(codeqlCmd, databaseFolder, sarifFolder, config) { await exec.exec(codeqlCmd, [ 'database', 'analyze', - getMemoryFlag(), - getThreadsFlag(), + util.getMemoryFlag(), + util.getThreadsFlag(), path.join(databaseFolder, database), '--format=sarif-latest', '--output=' + sarifFile, diff --git a/lib/finalize-db.js.map b/lib/finalize-db.js.map index 97e6831b3..862f89889 100644 --- a/lib/finalize-db.js.map +++ b/lib/finalize-db.js.map @@ -1 +1 @@ -{"version":3,"file":"finalize-db.js","sourceRoot":"","sources":["../src/finalize-db.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,gEAAkD;AAClD,yDAA2C;AAC3C,6CAA+B;AAE/B;;;;;;;;GAQG;AACH,MAAM,wBAAwB,GAAsC;IAClE,QAAQ,EAAE;QACR,uDAAuD;QACvD,0DAA0D;KAC3D;CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAQ,EAAE,KAAK;IACtC,OAAO,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9C,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,aAAa;IAC3B,IAAI,oBAA4B,CAAC;IACjC,MAAM,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC/C,IAAI,iBAAiB,EAAE;QACrB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R;SACF;KAEF;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACpE,OAAO;KACR;IAED,MAAM,IAAI,CAAC,qBAAqB,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,yBAAyB,GAAG,CAAC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/finalize-db.test.js b/lib/finalize-db.test.js index e8a078ba8..06a976fdc 100644 --- a/lib/finalize-db.test.js +++ b/lib/finalize-db.test.js @@ -1,53 +1,2 @@ "use strict"; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -var __importStar = (this && this.__importStar) || function (mod) { - 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 ava_1 = __importDefault(require("ava")); -const os = __importStar(require("os")); -const finalize_db_1 = require("./finalize-db"); -ava_1.default('getMemoryFlag() should return the correct --ram flag', t => { - const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); - const tests = { - "": `--ram=${totalMem - 256}`, - "512": "--ram=512", - }; - for (const [input, expectedFlag] of Object.entries(tests)) { - process.env['INPUT_RAM'] = input; - const flag = finalize_db_1.getMemoryFlag(); - t.deepEqual(flag, expectedFlag); - } -}); -ava_1.default('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { - process.env['INPUT_RAM'] = input; - t.throws(finalize_db_1.getMemoryFlag); - } -}); -ava_1.default('getThreadsFlag() should return the correct --threads flag', t => { - const numCpus = os.cpus().length; - const tests = { - "0": "--threads=0", - "1": "--threads=1", - [`${numCpus + 1}`]: `--threads=${numCpus}` - }; - for (const [input, expectedFlag] of Object.entries(tests)) { - process.env['INPUT_THREADS'] = input; - const flag = finalize_db_1.getThreadsFlag(); - t.deepEqual(flag, expectedFlag); - } -}); -ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { - process.env['INPUT_THREADS'] = input; - t.throws(finalize_db_1.getThreadsFlag); - } -}); //# sourceMappingURL=finalize-db.test.js.map \ No newline at end of file diff --git a/lib/finalize-db.test.js.map b/lib/finalize-db.test.js.map index 4ca263fa9..2114e3726 100644 --- a/lib/finalize-db.test.js.map +++ b/lib/finalize-db.test.js.map @@ -1 +1 @@ -{"version":3,"file":"finalize-db.test.js","sourceRoot":"","sources":["../src/finalize-db.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,+CAGuB;AAEvB,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EAAE;IAE7D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAE3D,MAAM,KAAK,GAAG;QACV,EAAE,EAAE,SAAS,QAAQ,GAAG,GAAG,EAAE;QAC7B,KAAK,EAAE,WAAW;KACrB,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEvD,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QAEjC,MAAM,IAAI,GAAG,2BAAa,EAAE,CAAC;QAC7B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,uDAAuD,EAAE,CAAC,CAAC,EAAE;IAC9D,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;QACjC,CAAC,CAAC,MAAM,CAAC,2BAAa,CAAC,CAAC;KAC3B;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,2DAA2D,EAAE,CAAC,CAAC,EAAE;IAElE,MAAM,OAAO,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;IAEjC,MAAM,KAAK,GAAG;QACV,GAAG,EAAE,aAAa;QAClB,GAAG,EAAE,aAAa;QAClB,CAAC,GAAG,OAAO,GAAG,CAAC,EAAE,CAAC,EAAE,aAAa,OAAO,EAAE;KAC7C,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEvD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,4BAAc,EAAE,CAAC;QAC9B,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACL,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IAC/D,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,4BAAc,CAAC,CAAC;KAC5B;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"finalize-db.test.js","sourceRoot":"","sources":["../src/finalize-db.test.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index 62f53c57d..53e476b64 100644 --- a/lib/util.js +++ b/lib/util.js @@ -354,4 +354,50 @@ async function withTmpDir(body) { return result; } exports.withTmpDir = withTmpDir; +/** + * Get the value specified for the `ram` input. If no value was specified, the + * total available memory will be used minus 256 MB. + * + * @returns string + */ +function getMemoryFlag() { + let memoryToUseMegaBytes; + const memoryToUseString = core.getInput("ram"); + if (memoryToUseString) { + memoryToUseMegaBytes = Number(memoryToUseString); + if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { + throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); + } + } + else { + const totalMemoryBytes = os.totalmem(); + const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); + const systemReservedMemoryMegaBytes = 256; + memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; + } + return "--ram=" + Math.floor(memoryToUseMegaBytes); +} +exports.getMemoryFlag = getMemoryFlag; +/** + * Get the value specified for the `threads` input. The value defaults to 1. + * The value will be capped to the number of available CPUs. + * + * @returns string + */ +function getThreadsFlag() { + let numThreads = 1; + const numThreadsString = core.getInput("threads"); + if (numThreadsString) { + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads) || numThreads < 0) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } + } + return `--threads=${numThreads}`; +} +exports.getThreadsFlag = getThreadsFlag; //# sourceMappingURL=util.js.map \ No newline at end of file diff --git a/lib/util.js.map b/lib/util.js.map index d10d7c631..a143abb96 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AAC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AAClB,CAAC;AALD,gCAKC"} \ No newline at end of file +{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE7E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACnB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACf;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAC9F,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;KACf;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAhBD,oCAgBC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACjD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,SAAS,GAAG,mCAAmC,CAAC,CAAC;KACpE;IACD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC;AACjB,CAAC;AAPD,kDAOC;AAED;;GAEG;AACH,KAAK,UAAU,kBAAkB;;IAC7B,8DAA8D;IAC9D,MAAM,eAAe,GAAG;QACpB,GAAG,EAAE,KAAK;QACV,KAA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AAI,UAAU,GAAG,CAAC,EAAE;YAC9C,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAdH,wCAcG"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index e0b879b30..dd691aeea 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -12,10 +12,48 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const ava_1 = __importDefault(require("ava")); const fs = __importStar(require("fs")); +const os = __importStar(require("os")); const util = __importStar(require("./util")); ava_1.default('getToolNames', t => { const input = fs.readFileSync(__dirname + '/../src/testdata/tool-names.sarif', 'utf8'); const toolNames = util.getToolNames(input); t.deepEqual(toolNames, ["CodeQL command-line toolchain", "ESLint"]); }); +ava_1.default('getMemoryFlag() should return the correct --ram flag', t => { + const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); + const tests = { + "": `--ram=${totalMem - 256}`, + "512": "--ram=512", + }; + for (const [input, expectedFlag] of Object.entries(tests)) { + process.env['INPUT_RAM'] = input; + const flag = util.getMemoryFlag(); + t.deepEqual(flag, expectedFlag); + } +}); +ava_1.default('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_RAM'] = input; + t.throws(util.getMemoryFlag); + } +}); +ava_1.default('getThreadsFlag() should return the correct --threads flag', t => { + const numCpus = os.cpus().length; + const tests = { + "0": "--threads=0", + "1": "--threads=1", + [`${numCpus + 1}`]: `--threads=${numCpus}` + }; + for (const [input, expectedFlag] of Object.entries(tests)) { + process.env['INPUT_THREADS'] = input; + const flag = util.getThreadsFlag(); + t.deepEqual(flag, expectedFlag); + } +}); +ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_THREADS'] = input; + t.throws(util.getThreadsFlag); + } +}); //# sourceMappingURL=util.test.js.map \ No newline at end of file diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 798e8f413..2aac5e0ef 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,6CAA+B;AAE/B,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,6CAA+B;AAE/B,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EA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K,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACnC;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IACjE,KAAK,MAAM,KAAK,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE;QAClC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KACjC;AACH,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/finalize-db.test.ts b/src/finalize-db.test.ts deleted file mode 100644 index 997237269..000000000 --- a/src/finalize-db.test.ts +++ /dev/null @@ -1,58 +0,0 @@ -import test from "ava"; -import * as os from "os"; - -import { - getMemoryFlag, - getThreadsFlag -} from "./finalize-db"; - -test('getMemoryFlag() should return the correct --ram flag', t => { - - const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); - - const tests = { - "": `--ram=${totalMem - 256}`, - "512": "--ram=512", - }; - - for (const [input, expectedFlag] of Object.entries(tests)) { - - process.env['INPUT_RAM'] = input; - - const flag = getMemoryFlag(); - t.deepEqual(flag, expectedFlag); - } -}); - -test('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { - process.env['INPUT_RAM'] = input; - t.throws(getMemoryFlag); - } -}); - -test('getThreadsFlag() should return the correct --threads flag', t => { - - const numCpus = os.cpus().length; - - const tests = { - "0": "--threads=0", - "1": "--threads=1", - [`${numCpus + 1}`]: `--threads=${numCpus}` - }; - - for (const [input, expectedFlag] of Object.entries(tests)) { - - process.env['INPUT_THREADS'] = input; - - const flag = getThreadsFlag(); - t.deepEqual(flag, expectedFlag); - } -}); - -test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { - process.env['INPUT_THREADS'] = input; - t.throws(getThreadsFlag); - } -}); diff --git a/src/finalize-db.ts b/src/finalize-db.ts index 1d39100c1..b3a406011 100644 --- a/src/finalize-db.ts +++ b/src/finalize-db.ts @@ -2,7 +2,6 @@ import * as core from '@actions/core'; import * as exec from '@actions/exec'; import * as io from '@actions/io'; import * as fs from 'fs'; -import * as os from 'os'; import * as path from 'path'; import * as configUtils from './config-utils'; @@ -32,39 +31,6 @@ function queryIsDisabled(language, query): boolean { .some(disabledQuery => query.endsWith(disabledQuery)); } -export function getMemoryFlag(): string { - let memoryToUseMegaBytes: number; - const memoryToUseString = core.getInput("ram"); - if (memoryToUseString) { - memoryToUseMegaBytes = Number(memoryToUseString); - if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { - throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); - } - } else { - const totalMemoryBytes = os.totalmem(); - const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); - const systemReservedMemoryMegaBytes = 256; - memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; - } - return "--ram=" + Math.floor(memoryToUseMegaBytes); -} - -export function getThreadsFlag(): string { - let numThreads = 1; - const numThreadsString = core.getInput("threads"); - if (numThreadsString) { - numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads) || numThreads < 0) { - throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); - } - const maxThreads = os.cpus().length; - if (numThreads > maxThreads) { - numThreads = maxThreads; - } - } - return `--threads=${numThreads}`; -} - async function createdDBForScannedLanguages(codeqlCmd: string, databaseFolder: string) { const scannedLanguages = process.env[sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES]; if (scannedLanguages) { @@ -216,8 +182,8 @@ async function runQueries(codeqlCmd: string, databaseFolder: string, sarifFolder await exec.exec(codeqlCmd, [ 'database', 'analyze', - getMemoryFlag(), - getThreadsFlag(), + util.getMemoryFlag(), + util.getThreadsFlag(), path.join(databaseFolder, database), '--format=sarif-latest', '--output=' + sarifFile, diff --git a/src/util.test.ts b/src/util.test.ts index e530b2aca..3c53ba6e2 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -1,5 +1,6 @@ import test from 'ava'; import * as fs from 'fs'; +import * as os from "os"; import * as util from './util'; @@ -8,3 +9,54 @@ test('getToolNames', t => { const toolNames = util.getToolNames(input); t.deepEqual(toolNames, ["CodeQL command-line toolchain", "ESLint"]); }); + +test('getMemoryFlag() should return the correct --ram flag', t => { + + const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); + + const tests = { + "": `--ram=${totalMem - 256}`, + "512": "--ram=512", + }; + + for (const [input, expectedFlag] of Object.entries(tests)) { + + process.env['INPUT_RAM'] = input; + + const flag = util.getMemoryFlag(); + t.deepEqual(flag, expectedFlag); + } +}); + +test('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_RAM'] = input; + t.throws(util.getMemoryFlag); + } +}); + +test('getThreadsFlag() should return the correct --threads flag', t => { + + const numCpus = os.cpus().length; + + const tests = { + "0": "--threads=0", + "1": "--threads=1", + [`${numCpus + 1}`]: `--threads=${numCpus}` + }; + + for (const [input, expectedFlag] of Object.entries(tests)) { + + process.env['INPUT_THREADS'] = input; + + const flag = util.getThreadsFlag(); + t.deepEqual(flag, expectedFlag); + } +}); + +test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { + for (const input of ["-1", "hello!"]) { + process.env['INPUT_THREADS'] = input; + t.throws(util.getThreadsFlag); + } +}); diff --git a/src/util.ts b/src/util.ts index d81f824b9..250f05e93 100644 --- a/src/util.ts +++ b/src/util.ts @@ -393,3 +393,48 @@ export async function withTmpDir(body: (tmpDir: string) => Promise): Promi fs.rmdirSync(tmpDir, { recursive: true }); return result; } + +/** + * Get the value specified for the `ram` input. If no value was specified, the + * total available memory will be used minus 256 MB. + * + * @returns string + */ +export function getMemoryFlag(): string { + let memoryToUseMegaBytes: number; + const memoryToUseString = core.getInput("ram"); + if (memoryToUseString) { + memoryToUseMegaBytes = Number(memoryToUseString); + if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { + throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); + } + } else { + const totalMemoryBytes = os.totalmem(); + const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); + const systemReservedMemoryMegaBytes = 256; + memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; + } + return "--ram=" + Math.floor(memoryToUseMegaBytes); + } + + /** + * Get the value specified for the `threads` input. The value defaults to 1. + * The value will be capped to the number of available CPUs. + * + * @returns string + */ +export function getThreadsFlag(): string { + let numThreads = 1; + const numThreadsString = core.getInput("threads"); + if (numThreadsString) { + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads) || numThreads < 0) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } + } + return `--threads=${numThreads}`; + } From bc9591a12b90e3ce18a7ad5cad1d16d0d539f4b5 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 17:20:03 +0200 Subject: [PATCH 06/38] revert node_modules from master --- node_modules/@actions/core/package.json | 4 - node_modules/@actions/exec/package.json | 4 - .../node_modules/tunnel/package.json | 4 - .../@actions/http-client/package.json | 4 - node_modules/@actions/io/package.json | 4 - .../node_modules/@actions/core/package.json | 4 - .../node_modules/semver/package.json | 4 - node_modules/@actions/tool-cache/package.json | 4 - .../escape-string-regexp/package.json | 86 ++-- node_modules/@ava/typescript/package.json | 4 - node_modules/@babel/code-frame/package.json | 4 - node_modules/@babel/highlight/package.json | 4 - .../react/node_modules/arrify/package.json | 4 - node_modules/@concordance/react/package.json | 4 - node_modules/@nodelib/fs.scandir/package.json | 4 - node_modules/@nodelib/fs.stat/package.json | 4 - node_modules/@nodelib/fs.walk/package.json | 4 - node_modules/@octokit/auth-token/package.json | 4 - node_modules/@octokit/core/package.json | 4 - node_modules/@octokit/endpoint/package.json | 4 - .../universal-user-agent/package.json | 4 - node_modules/@octokit/graphql/package.json | 4 - .../plugin-paginate-rest/package.json | 4 - .../@octokit/plugin-request-log/package.json | 4 - .../plugin-rest-endpoint-methods/package.json | 4 - .../@octokit/request-error/package.json | 4 - node_modules/@octokit/request/package.json | 4 - node_modules/@octokit/rest/package.json | 4 - node_modules/@octokit/types/package.json | 4 - node_modules/@sindresorhus/is/package.json | 126 +++-- .../@szmarczak/http-timer/package.json | 94 ++-- node_modules/@types/color-name/package.json | 46 +- node_modules/@types/events/package.json | 54 +- node_modules/@types/glob/package.json | 68 ++- node_modules/@types/jszip/package.json | 60 ++- node_modules/@types/long/package.json | 44 +- node_modules/@types/minimatch/package.json | 52 +- node_modules/@types/nock/package.json | 28 +- node_modules/@types/node/package.json | 462 +++++++++--------- .../normalize-package-data/package.json | 44 +- node_modules/@types/semver/package.json | 98 ++-- node_modules/acorn/package.json | 12 +- node_modules/aggregate-error/package.json | 82 ++-- .../node_modules/emoji-regex/package.json | 4 - .../is-fullwidth-code-point/package.json | 4 - .../node_modules/string-width/package.json | 112 ++--- .../node_modules/strip-ansi/package.json | 108 ++-- node_modules/ansi-align/package.json | 4 - node_modules/ansi-regex/package.json | 106 ++-- node_modules/ansi-styles/package.json | 112 ++--- node_modules/argparse/package.json | 4 - node_modules/array-find-index/package.json | 4 - node_modules/array-union/package.json | 76 ++- node_modules/arrgv/package.json | 4 - node_modules/arrify/package.json | 70 ++- .../ava/node_modules/acorn-walk/package.json | 8 +- .../ava/node_modules/ansi-styles/package.json | 114 +++-- .../ava/node_modules/chalk/package.json | 136 +++--- .../node_modules/color-convert/package.json | 4 - .../ava/node_modules/color-name/package.json | 58 +-- .../escape-string-regexp/package.json | 86 ++-- .../ava/node_modules/has-flag/package.json | 92 ++-- .../source-map-support/package.json | 4 - .../ava/node_modules/stack-utils/package.json | 4 - .../node_modules/supports-color/package.json | 106 ++-- node_modules/ava/package.json | 280 ++++++----- node_modules/balanced-match/package.json | 4 - node_modules/before-after-hook/package.json | 4 - node_modules/binary-extensions/package.json | 76 ++- node_modules/blueimp-md5/package.json | 4 - .../node_modules/ansi-styles/package.json | 114 +++-- .../boxen/node_modules/chalk/package.json | 126 +++-- .../node_modules/color-convert/package.json | 4 - .../node_modules/color-name/package.json | 58 +-- .../boxen/node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- .../boxen/node_modules/type-fest/package.json | 102 ++-- node_modules/boxen/package.json | 102 ++-- node_modules/brace-expansion/package.json | 4 - node_modules/braces/package.json | 4 - node_modules/buffer-from/package.json | 4 - node_modules/builtin-modules/package.json | 4 - .../node_modules/get-stream/package.json | 98 ++-- .../node_modules/lowercase-keys/package.json | 76 ++- node_modules/cacheable-request/package.json | 112 ++--- node_modules/callsites/package.json | 78 ++- node_modules/camelcase/package.json | 86 ++-- node_modules/chalk/package.json | 142 +++--- node_modules/charenc/package.json | 4 - .../node_modules/anymatch/package.json | 4 - .../node_modules/normalize-path/package.json | 4 - node_modules/chokidar/package.json | 4 - node_modules/chunkd/package.json | 108 ++-- node_modules/ci-info/package.json | 4 - node_modules/ci-parallel-vars/package.json | 4 - node_modules/clean-stack/package.json | 78 ++- node_modules/clean-yaml-object/package.json | 4 - node_modules/cli-boxes/package.json | 82 ++-- node_modules/cli-cursor/package.json | 92 ++-- node_modules/cli-spinners/package.json | 94 ++-- node_modules/cli-truncate/package.json | 92 ++-- node_modules/cliui/package.json | 4 - node_modules/clone-response/package.json | 4 - node_modules/clone/package.json | 4 - node_modules/code-excerpt/package.json | 4 - node_modules/color-convert/package.json | 4 - node_modules/color-name/package.json | 4 - node_modules/commander/package.json | 4 - node_modules/common-path-prefix/package.json | 4 - node_modules/concat-map/package.json | 100 ++-- .../node_modules/md5-hex/package.json | 4 - .../node_modules/semver/package.json | 4 - node_modules/concordance/package.json | 4 - node_modules/configstore/package.json | 92 ++-- node_modules/console-log-level/package.json | 4 - node_modules/convert-source-map/package.json | 4 - node_modules/convert-to-spaces/package.json | 4 - .../node_modules/semver/package.json | 4 - node_modules/cross-spawn/package.json | 4 - node_modules/crypt/package.json | 4 - .../crypto-random-string/package.json | 80 ++- node_modules/currently-unhandled/package.json | 4 - node_modules/date-time/package.json | 4 - node_modules/debug/package.json | 4 - node_modules/decamelize/package.json | 4 - node_modules/decompress-response/package.json | 4 - node_modules/deep-extend/package.json | 4 - node_modules/defaults/package.json | 4 - node_modules/defer-to-connect/package.json | 12 +- .../del/node_modules/globby/package.json | 166 +++---- .../del/node_modules/p-map/package.json | 104 ++-- node_modules/del/package.json | 130 +++-- node_modules/deprecation/package.json | 4 - node_modules/diff/package.json | 4 - node_modules/dir-glob/package.json | 76 ++- node_modules/dot-prop/package.json | 90 ++-- node_modules/duplexer3/package.json | 6 +- node_modules/emittery/package.json | 134 +++-- node_modules/emoji-regex/package.json | 4 - node_modules/end-of-stream/package.json | 4 - node_modules/equal-length/package.json | 4 - node_modules/error-ex/package.json | 4 - node_modules/escape-goat/package.json | 90 ++-- .../escape-string-regexp/package.json | 4 - node_modules/esutils/package.json | 4 - node_modules/execa/package.json | 138 +++--- node_modules/fast-diff/package.json | 4 - node_modules/fast-glob/package.json | 4 - node_modules/fastq/package.json | 4 - node_modules/figures/package.json | 90 ++-- node_modules/file-url/package.json | 70 ++- node_modules/fill-range/package.json | 4 - node_modules/find-up/package.json | 106 ++-- node_modules/fs.realpath/package.json | 4 - node_modules/fs/package.json | 4 - node_modules/fsevents/package.json | 4 - node_modules/get-caller-file/package.json | 4 - node_modules/get-stream/package.json | 92 ++-- node_modules/glob-parent/package.json | 4 - node_modules/glob/package.json | 4 - node_modules/global-dirs/package.json | 110 ++--- node_modules/globby/package.json | 164 +++---- node_modules/got/package.json | 148 +++--- node_modules/graceful-fs/package.json | 4 - node_modules/has-flag/package.json | 4 - node_modules/has-yarn/package.json | 78 ++- node_modules/hosted-git-info/package.json | 4 - .../http-cache-semantics/package.json | 48 +- node_modules/ignore-by-default/package.json | 4 - node_modules/ignore/package.json | 4 - node_modules/import-lazy/package.json | 4 - node_modules/import-local/package.json | 102 ++-- node_modules/imurmurhash/package.json | 10 +- node_modules/indent-string/package.json | 74 ++- node_modules/inflight/package.json | 4 - node_modules/inherits/package.json | 4 - node_modules/ini/package.json | 4 - node_modules/irregular-plurals/package.json | 92 ++-- node_modules/is-arrayish/package.json | 4 - node_modules/is-binary-path/package.json | 80 ++- node_modules/is-buffer/package.json | 4 - node_modules/is-ci/package.json | 4 - node_modules/is-error/package.json | 7 +- node_modules/is-extglob/package.json | 4 - .../is-fullwidth-code-point/package.json | 84 ++-- node_modules/is-glob/package.json | 4 - .../is-installed-globally/package.json | 108 ++-- node_modules/is-interactive/package.json | 76 ++- node_modules/is-npm/package.json | 74 ++- node_modules/is-number/package.json | 4 - node_modules/is-obj/package.json | 68 ++- node_modules/is-path-cwd/package.json | 72 ++- node_modules/is-path-inside/package.json | 72 ++- node_modules/is-plain-object/package.json | 4 - node_modules/is-promise/package.json | 4 - node_modules/is-stream/package.json | 4 - node_modules/is-typedarray/package.json | 4 - node_modules/is-yarn-global/package.json | 4 - node_modules/isexe/package.json | 4 - node_modules/isobject/package.json | 4 - node_modules/js-string-escape/package.json | 6 +- node_modules/js-tokens/package.json | 4 - .../js-yaml/node_modules/esprima/package.json | 4 - node_modules/js-yaml/package.json | 4 - node_modules/json-buffer/package.json | 4 - .../json-parse-better-errors/package.json | 4 - node_modules/json-stringify-safe/package.json | 4 - node_modules/jsonschema/package.json | 4 - node_modules/keyv/package.json | 4 - node_modules/latest-version/package.json | 84 ++-- node_modules/lines-and-columns/package.json | 4 - .../node_modules/strip-bom/package.json | 4 - .../node_modules/type-fest/package.json | 98 ++-- node_modules/load-json-file/package.json | 86 ++-- node_modules/locate-path/package.json | 90 ++-- node_modules/lodash.clonedeep/package.json | 8 +- node_modules/lodash.flattendeep/package.json | 8 +- node_modules/lodash.islength/package.json | 8 +- node_modules/lodash.merge/package.json | 8 +- node_modules/lodash/package.json | 8 +- node_modules/log-symbols/package.json | 100 ++-- node_modules/long/package.json | 68 ++- node_modules/lowercase-keys/package.json | 4 - node_modules/macos-release/package.json | 78 ++- .../make-dir/node_modules/semver/package.json | 4 - node_modules/make-dir/package.json | 118 +++-- node_modules/map-age-cleaner/package.json | 118 +++-- .../escape-string-regexp/package.json | 76 ++- node_modules/matcher/package.json | 108 ++-- node_modules/md5-hex/package.json | 82 ++-- node_modules/md5-o-matic/package.json | 10 +- node_modules/md5/package.json | 4 - .../mem/node_modules/mimic-fn/package.json | 84 ++-- node_modules/mem/package.json | 92 ++-- node_modules/merge2/package.json | 88 ++-- node_modules/micromatch/package.json | 4 - node_modules/mimic-fn/package.json | 84 ++-- node_modules/mimic-response/package.json | 4 - node_modules/minimatch/package.json | 4 - node_modules/minimist/package.json | 4 - node_modules/mkdirp/package.json | 4 - node_modules/ms/package.json | 4 - node_modules/mute-stream/package.json | 4 - node_modules/nice-try/package.json | 4 - node_modules/nock/package.json | 4 - node_modules/node-fetch/package.json | 4 - .../node_modules/semver/package.json | 4 - .../normalize-package-data/package.json | 4 - node_modules/normalize-url/package.json | 88 ++-- node_modules/npm-run-path/package.json | 4 - node_modules/once/package.json | 4 - node_modules/onetime/package.json | 84 ++-- .../ora/node_modules/ansi-styles/package.json | 114 +++-- .../ora/node_modules/chalk/package.json | 126 +++-- .../node_modules/color-convert/package.json | 4 - .../ora/node_modules/color-name/package.json | 58 +-- .../ora/node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- node_modules/ora/package.json | 112 ++--- node_modules/os-name/package.json | 90 ++-- node_modules/p-cancelable/package.json | 98 ++-- node_modules/p-defer/package.json | 4 - node_modules/p-finally/package.json | 4 - node_modules/p-limit/package.json | 102 ++-- node_modules/p-locate/package.json | 106 ++-- node_modules/p-map/package.json | 106 ++-- node_modules/p-try/package.json | 84 ++-- .../node_modules/semver/package.json | 4 - node_modules/package-json/package.json | 92 ++-- node_modules/parse-json/package.json | 4 - node_modules/parse-ms/package.json | 80 ++- node_modules/path-exists/package.json | 78 ++- node_modules/path-is-absolute/package.json | 4 - node_modules/path-key/package.json | 4 - node_modules/path-parse/package.json | 4 - node_modules/path-type/package.json | 90 ++-- node_modules/path/package.json | 50 +- node_modules/picomatch/package.json | 4 - node_modules/pify/package.json | 102 ++-- .../node_modules/find-up/package.json | 100 ++-- .../node_modules/locate-path/package.json | 88 ++-- .../node_modules/p-locate/package.json | 102 ++-- .../node_modules/path-exists/package.json | 4 - node_modules/pkg-conf/package.json | 102 ++-- node_modules/pkg-dir/package.json | 112 ++--- node_modules/plur/package.json | 86 ++-- node_modules/prepend-http/package.json | 4 - node_modules/pretty-ms/package.json | 98 ++-- node_modules/process/package.json | 4 - node_modules/propagate/package.json | 4 - node_modules/pump/package.json | 4 - node_modules/pupa/package.json | 94 ++-- node_modules/rc/package.json | 4 - .../node_modules/parse-json/package.json | 88 ++-- .../node_modules/type-fest/package.json | 102 ++-- node_modules/read-pkg/package.json | 98 ++-- node_modules/readdirp/package.json | 4 - node_modules/registry-auth-token/package.json | 4 - node_modules/registry-url/package.json | 88 ++-- .../removeNPMAbsolutePaths/package.json | 4 - node_modules/require-directory/package.json | 4 - .../require-main-filename/package.json | 4 - node_modules/resolve-cwd/package.json | 86 ++-- node_modules/resolve-from/package.json | 72 ++- node_modules/resolve/package.json | 94 ++-- .../test/module_dir/zmodules/bbb/package.json | 2 +- .../resolve/test/resolver/baz/package.json | 4 +- .../test/resolver/browser_field/package.json | 2 +- .../test/resolver/dot_main/package.json | 4 +- .../test/resolver/dot_slash_main/package.json | 4 +- .../test/resolver/incorrect_main/package.json | 4 +- .../test/resolver/invalid_main/package.json | 2 +- .../test/resolver/multirepo/package.json | 2 +- .../multirepo/packages/package-a/package.json | 2 +- .../multirepo/packages/package-b/package.json | 2 +- .../nested_symlinks/mylib/package.json | 2 +- .../resolver/symlinked/package/package.json | 2 +- node_modules/responselike/package.json | 4 - node_modules/restore-cursor/package.json | 104 ++-- node_modules/reusify/package.json | 4 - node_modules/rimraf/package.json | 4 - node_modules/run-parallel/package.json | 4 - node_modules/safe-buffer/package.json | 4 - .../node_modules/semver/package.json | 4 - node_modules/semver-diff/package.json | 74 ++- node_modules/semver/package.json | 4 - node_modules/serialize-error/package.json | 4 - node_modules/set-blocking/package.json | 4 - node_modules/shebang-command/package.json | 4 - node_modules/shebang-regex/package.json | 4 - node_modules/signal-exit/package.json | 4 - node_modules/slash/package.json | 70 ++- .../node_modules/ansi-styles/package.json | 114 +++-- .../node_modules/astral-regex/package.json | 66 ++- .../node_modules/color-convert/package.json | 4 - .../node_modules/color-name/package.json | 58 +-- node_modules/slice-ansi/package.json | 102 ++-- node_modules/source-map/package.json | 4 - node_modules/spdx-correct/package.json | 4 - node_modules/spdx-exceptions/package.json | 4 - .../spdx-expression-parse/package.json | 4 - node_modules/spdx-license-ids/package.json | 78 ++- node_modules/sprintf-js/package.json | 44 +- node_modules/string-width/package.json | 112 ++--- .../node_modules/ansi-regex/package.json | 110 ++--- node_modules/strip-ansi/package.json | 108 ++-- node_modules/strip-eof/package.json | 4 - node_modules/strip-json-comments/package.json | 4 - .../node_modules/ansi-regex/package.json | 4 - .../supertap/node_modules/arrify/package.json | 4 - .../node_modules/indent-string/package.json | 4 - .../node_modules/strip-ansi/package.json | 4 - node_modules/supertap/package.json | 4 - node_modules/supports-color/package.json | 106 ++-- node_modules/temp-dir/package.json | 82 ++-- node_modules/term-size/package.json | 86 ++-- node_modules/time-zone/package.json | 4 - node_modules/to-readable-stream/package.json | 80 ++- node_modules/to-regex-range/package.json | 4 - node_modules/trim-off-newlines/package.json | 4 - node_modules/tslib/package.json | 58 +-- .../tslint/node_modules/semver/package.json | 4 - node_modules/tslint/package.json | 186 ++++--- node_modules/tsutils/package.json | 4 - .../typedarray-to-buffer/package.json | 4 - node_modules/typescript/package.json | 268 +++++----- node_modules/unique-string/package.json | 80 ++- .../universal-user-agent/package.json | 4 - .../node_modules/ansi-styles/package.json | 114 +++-- .../node_modules/chalk/package.json | 126 +++-- .../node_modules/color-convert/package.json | 4 - .../node_modules/color-name/package.json | 58 +-- .../node_modules/has-flag/package.json | 92 ++-- .../node_modules/supports-color/package.json | 106 ++-- node_modules/update-notifier/package.json | 128 +++-- node_modules/url-parse-lax/package.json | 4 - node_modules/util/package.json | 4 - node_modules/uuid/package.json | 4 - .../validate-npm-package-license/package.json | 4 - node_modules/wcwidth/package.json | 4 - node_modules/well-known-symbols/package.json | 4 - node_modules/which-module/package.json | 4 - node_modules/which/package.json | 4 - node_modules/widest-line/package.json | 108 ++-- node_modules/windows-release/package.json | 86 ++-- .../node_modules/ansi-styles/package.json | 114 +++-- .../node_modules/color-convert/package.json | 4 - .../node_modules/color-name/package.json | 58 +-- node_modules/wrap-ansi/package.json | 122 +++-- node_modules/wrappy/package.json | 4 - node_modules/write-file-atomic/package.json | 4 - node_modules/xdg-basedir/package.json | 82 ++-- node_modules/y18n/package.json | 4 - node_modules/yargs-parser/package.json | 4 - node_modules/yargs/package.json | 4 - node_modules/zlib/package.json | 38 +- 396 files changed, 7569 insertions(+), 9072 deletions(-) diff --git a/node_modules/@actions/core/package.json b/node_modules/@actions/core/package.json index f0c526e1c..ac8962e99 100644 --- a/node_modules/@actions/core/package.json +++ b/node_modules/@actions/core/package.json @@ -35,8 +35,4 @@ "devDependencies": { "@types/node": "^12.0.2" } - -,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.0.tgz" -,"_integrity": "sha512-ZKdyhlSlyz38S6YFfPnyNgCDZuAF2T0Qv5eHflNWytPS8Qjvz39bZFMry9Bb/dpSnqWcNeav5yM2CTYpJeY+Dw==" -,"_from": "@actions/core@1.2.0" } \ No newline at end of file diff --git a/node_modules/@actions/exec/package.json b/node_modules/@actions/exec/package.json index bb85262a2..5255e599d 100644 --- a/node_modules/@actions/exec/package.json +++ b/node_modules/@actions/exec/package.json @@ -35,8 +35,4 @@ "@actions/io": "^1.0.1" }, "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" - -,"_resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.0.1.tgz" -,"_integrity": "sha512-nvFkxwiicvpzNiCBF4wFBDfnBvi7xp/as7LE1hBxBxKG2L29+gkIPBiLKMVORL+Hg3JNf07AKRfl0V5djoypjQ==" -,"_from": "@actions/exec@1.0.1" } \ No newline at end of file diff --git a/node_modules/@actions/http-client/node_modules/tunnel/package.json b/node_modules/@actions/http-client/node_modules/tunnel/package.json index eef71891b..27cce6b48 100644 --- a/node_modules/@actions/http-client/node_modules/tunnel/package.json +++ b/node_modules/@actions/http-client/node_modules/tunnel/package.json @@ -31,8 +31,4 @@ "engines": { "node": ">=0.6.11 <=0.7.0 || >=0.7.3" } - -,"_resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz" -,"_integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" -,"_from": "tunnel@0.0.6" } \ No newline at end of file diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json index 4c7296d59..fbfec5f9d 100644 --- a/node_modules/@actions/http-client/package.json +++ b/node_modules/@actions/http-client/package.json @@ -36,8 +36,4 @@ "dependencies": { "tunnel": "0.0.6" } - -,"_resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-1.0.8.tgz" -,"_integrity": "sha512-G4JjJ6f9Hb3Zvejj+ewLLKLf99ZC+9v+yCxoYf9vSyH+WkzPLB2LuUtRMGNkooMqdugGBFStIKXOuvH1W+EctA==" -,"_from": "@actions/http-client@1.0.8" } \ No newline at end of file diff --git a/node_modules/@actions/io/package.json b/node_modules/@actions/io/package.json index 3a303f251..c19c88922 100644 --- a/node_modules/@actions/io/package.json +++ b/node_modules/@actions/io/package.json @@ -32,8 +32,4 @@ "url": "https://github.com/actions/toolkit/issues" }, "gitHead": "a2ab4bcf78e4f7080f0d45856e6eeba16f0bbc52" - -,"_resolved": "https://registry.npmjs.org/@actions/io/-/io-1.0.1.tgz" -,"_integrity": "sha512-rhq+tfZukbtaus7xyUtwKfuiCRXd1hWSfmJNEpFgBQJ4woqPEpsBw04awicjwz9tyG2/MVhAEMfVn664Cri5zA==" -,"_from": "@actions/io@1.0.1" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json b/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json index dd01abb87..e32e6425d 100644 --- a/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json +++ b/node_modules/@actions/tool-cache/node_modules/@actions/core/package.json @@ -37,8 +37,4 @@ "devDependencies": { "@types/node": "^12.0.2" } - -,"_resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.4.tgz" -,"_integrity": "sha512-YJCEq8BE3CdN8+7HPZ/4DxJjk/OkZV2FFIf+DlZTC/4iBlzYCD5yjRR6eiOS5llO11zbRltIRuKAjMKaWTE6cg==" -,"_from": "@actions/core@1.2.4" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/node_modules/semver/package.json b/node_modules/@actions/tool-cache/node_modules/semver/package.json index 13030769c..a330b56c2 100644 --- a/node_modules/@actions/tool-cache/node_modules/semver/package.json +++ b/node_modules/@actions/tool-cache/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" -,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" -,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/@actions/tool-cache/package.json b/node_modules/@actions/tool-cache/package.json index 17c984e44..ddce94d82 100644 --- a/node_modules/@actions/tool-cache/package.json +++ b/node_modules/@actions/tool-cache/package.json @@ -49,8 +49,4 @@ "@types/uuid": "^3.4.4", "nock": "^10.0.6" } - -,"_resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-1.5.5.tgz" -,"_integrity": "sha512-y/YO37BOaXzOEHpvoGZDLCwvg6XZWQ7Ala4Np4xzrKD1r48mff+K/GAmzXMejnApU7kgqC6lL/aCKTZDCrhdmw==" -,"_from": "@actions/tool-cache@1.5.5" } \ No newline at end of file diff --git a/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json b/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json index 99dd980e9..d7bec7c3d 100644 --- a/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json +++ b/node_modules/@ava/typescript/node_modules/escape-string-regexp/package.json @@ -1,47 +1,43 @@ { - "name": "escape-string-regexp", - "version": "2.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Boy Nicolai Appelman (jbna.nl)" - ], - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "re", - "regular", - "expression", - "string", - "str", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" -,"_integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" -,"_from": "escape-string-regexp@2.0.0" + "name": "escape-string-regexp", + "version": "2.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Boy Nicolai Appelman (jbna.nl)" + ], + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "re", + "regular", + "expression", + "string", + "str", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/@ava/typescript/package.json b/node_modules/@ava/typescript/package.json index be099a845..d064983ae 100644 --- a/node_modules/@ava/typescript/package.json +++ b/node_modules/@ava/typescript/package.json @@ -39,8 +39,4 @@ "import/order": "off" } } - -,"_resolved": "https://registry.npmjs.org/@ava/typescript/-/typescript-1.1.1.tgz" -,"_integrity": "sha512-KbLUAe2cWXK63WLK6LnOJonjwEDU/8MNXCOA1ooX/YFZgKRmeAD1kZu+2K0ks5fnOCEcckNQAooyBNGdZUmMQA==" -,"_from": "@ava/typescript@1.1.1" } \ No newline at end of file diff --git a/node_modules/@babel/code-frame/package.json b/node_modules/@babel/code-frame/package.json index bdf027869..ce0bf0f62 100644 --- a/node_modules/@babel/code-frame/package.json +++ b/node_modules/@babel/code-frame/package.json @@ -18,8 +18,4 @@ "strip-ansi": "^4.0.0" }, "gitHead": "0407f034f09381b95e9cabefbf6b176c76485a43" - -,"_resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz" -,"_integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==" -,"_from": "@babel/code-frame@7.5.5" } \ No newline at end of file diff --git a/node_modules/@babel/highlight/package.json b/node_modules/@babel/highlight/package.json index d6588bcfa..c958a9e8d 100644 --- a/node_modules/@babel/highlight/package.json +++ b/node_modules/@babel/highlight/package.json @@ -19,8 +19,4 @@ "strip-ansi": "^4.0.0" }, "gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4" - -,"_resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz" -,"_integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==" -,"_from": "@babel/highlight@7.5.0" } \ No newline at end of file diff --git a/node_modules/@concordance/react/node_modules/arrify/package.json b/node_modules/@concordance/react/node_modules/arrify/package.json index bfc8621c9..d60245659 100644 --- a/node_modules/@concordance/react/node_modules/arrify/package.json +++ b/node_modules/@concordance/react/node_modules/arrify/package.json @@ -30,8 +30,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" -,"_integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" -,"_from": "arrify@1.0.1" } \ No newline at end of file diff --git a/node_modules/@concordance/react/package.json b/node_modules/@concordance/react/package.json index e65f61ee9..f0ba9b96c 100644 --- a/node_modules/@concordance/react/package.json +++ b/node_modules/@concordance/react/package.json @@ -72,8 +72,4 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" - -,"_resolved": "https://registry.npmjs.org/@concordance/react/-/react-2.0.0.tgz" -,"_integrity": "sha512-huLSkUuM2/P+U0uy2WwlKuixMsTODD8p4JVQBI4VKeopkiN0C7M3N9XYVawb4M+4spN5RrO/eLhk7KoQX6nsfA==" -,"_from": "@concordance/react@2.0.0" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.scandir/package.json b/node_modules/@nodelib/fs.scandir/package.json index 5ed6f43c3..5a32a9fea 100644 --- a/node_modules/@nodelib/fs.scandir/package.json +++ b/node_modules/@nodelib/fs.scandir/package.json @@ -32,8 +32,4 @@ "run-parallel": "^1.1.9" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" - -,"_resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz" -,"_integrity": "sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==" -,"_from": "@nodelib/fs.scandir@2.1.3" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.stat/package.json b/node_modules/@nodelib/fs.stat/package.json index 014b307de..96a5ebb31 100644 --- a/node_modules/@nodelib/fs.stat/package.json +++ b/node_modules/@nodelib/fs.stat/package.json @@ -26,8 +26,4 @@ "watch": "npm run clean && npm run compile:watch" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" - -,"_resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz" -,"_integrity": "sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==" -,"_from": "@nodelib/fs.stat@2.0.3" } \ No newline at end of file diff --git a/node_modules/@nodelib/fs.walk/package.json b/node_modules/@nodelib/fs.walk/package.json index 5289c2a75..9490845bf 100644 --- a/node_modules/@nodelib/fs.walk/package.json +++ b/node_modules/@nodelib/fs.walk/package.json @@ -32,8 +32,4 @@ "fastq": "^1.6.0" }, "gitHead": "3b1ef7554ad7c061b3580858101d483fba847abf" - -,"_resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz" -,"_integrity": "sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==" -,"_from": "@nodelib/fs.walk@1.2.4" } \ No newline at end of file diff --git a/node_modules/@octokit/auth-token/package.json b/node_modules/@octokit/auth-token/package.json index 71f2d0260..5add1ac3d 100644 --- a/node_modules/@octokit/auth-token/package.json +++ b/node_modules/@octokit/auth-token/package.json @@ -44,8 +44,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.4.0.tgz" -,"_integrity": "sha512-eoOVMjILna7FVQf96iWc3+ZtE/ZT6y8ob8ZzcqKY1ibSQCnu4O/B7pJvzMx5cyZ/RjAff6DAdEb0O0Cjcxidkg==" -,"_from": "@octokit/auth-token@2.4.0" } \ No newline at end of file diff --git a/node_modules/@octokit/core/package.json b/node_modules/@octokit/core/package.json index 965b7ab8f..5eab6c145 100644 --- a/node_modules/@octokit/core/package.json +++ b/node_modules/@octokit/core/package.json @@ -54,8 +54,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/core/-/core-2.4.2.tgz" -,"_integrity": "sha512-fUx/Qt774cgiPhb3HRKfdl6iufVL/ltECkwkCg373I4lIPYvAPY4cbidVZqyVqHI+ThAIlFlTW8FT4QHChv3Sg==" -,"_from": "@octokit/core@2.4.2" } \ No newline at end of file diff --git a/node_modules/@octokit/endpoint/package.json b/node_modules/@octokit/endpoint/package.json index 6ad4cc528..49e716c34 100644 --- a/node_modules/@octokit/endpoint/package.json +++ b/node_modules/@octokit/endpoint/package.json @@ -48,8 +48,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-5.5.3.tgz" -,"_integrity": "sha512-EzKwkwcxeegYYah5ukEeAI/gYRLv2Y9U5PpIsseGSFDk+G3RbipQGBs8GuYS1TLCtQaqoO66+aQGtITPalxsNQ==" -,"_from": "@octokit/endpoint@5.5.3" } \ No newline at end of file diff --git a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json b/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json index eb8e2be66..ad2c9a9f4 100644 --- a/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json +++ b/node_modules/@octokit/graphql/node_modules/universal-user-agent/package.json @@ -30,8 +30,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-4.0.1.tgz" -,"_integrity": "sha512-LnST3ebHwVL2aNe4mejI9IQh2HfZ1RLo8Io2HugSif8ekzD1TlWpHpColOB/eh8JHMLkGH3Akqf040I+4ylNxg==" -,"_from": "universal-user-agent@4.0.1" } \ No newline at end of file diff --git a/node_modules/@octokit/graphql/package.json b/node_modules/@octokit/graphql/package.json index 52fa976f7..958b0c83e 100644 --- a/node_modules/@octokit/graphql/package.json +++ b/node_modules/@octokit/graphql/package.json @@ -51,8 +51,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "deno": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.3.1.tgz" -,"_integrity": "sha512-hCdTjfvrK+ilU2keAdqNBWOk+gm1kai1ZcdjRfB30oA3/T6n53UVJb7w0L5cR3/rhU91xT3HSqCd+qbvH06yxA==" -,"_from": "@octokit/graphql@4.3.1" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-paginate-rest/package.json b/node_modules/@octokit/plugin-paginate-rest/package.json index d2c998e8b..2c0d4c9f4 100644 --- a/node_modules/@octokit/plugin-paginate-rest/package.json +++ b/node_modules/@octokit/plugin-paginate-rest/package.json @@ -43,8 +43,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.0.2.tgz" -,"_integrity": "sha512-HzODcSUt9mjErly26TlTOGZrhf9bmF/FEDQ2zln1izhgmIV6ulsjsHmgmR4VZ0wzVr/m52Eb6U2XuyS8fkcR1A==" -,"_from": "@octokit/plugin-paginate-rest@2.0.2" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-request-log/package.json b/node_modules/@octokit/plugin-request-log/package.json index dde789f3c..ff6a0b1d3 100644 --- a/node_modules/@octokit/plugin-request-log/package.json +++ b/node_modules/@octokit/plugin-request-log/package.json @@ -41,8 +41,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.0.tgz" -,"_integrity": "sha512-ywoxP68aOT3zHCLgWZgwUJatiENeHE7xJzYjfz8WI0goynp96wETBF+d95b8g/uL4QmS6owPVlaxiz3wyMAzcw==" -,"_from": "@octokit/plugin-request-log@1.0.0" } \ No newline at end of file diff --git a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json index 3775af4bc..261fbec2b 100644 --- a/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +++ b/node_modules/@octokit/plugin-rest-endpoint-methods/package.json @@ -54,8 +54,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-3.3.1.tgz" -,"_integrity": "sha512-iLAXPLWBZaP6ocy1GFfZUCzyN4cwg3y2JE6yZjQo0zLE3UaewC3TI68/TnS4ilyhXDxh81Jr1qwPN1AqTp8t3w==" -,"_from": "@octokit/plugin-rest-endpoint-methods@3.3.1" } \ No newline at end of file diff --git a/node_modules/@octokit/request-error/package.json b/node_modules/@octokit/request-error/package.json index 5d11805dd..0938401ac 100644 --- a/node_modules/@octokit/request-error/package.json +++ b/node_modules/@octokit/request-error/package.json @@ -51,8 +51,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-1.2.1.tgz" -,"_integrity": "sha512-+6yDyk1EES6WK+l3viRDElw96MvwfJxCt45GvmjDUKWjYIb3PJZQkq3i46TwGwoPD4h8NmTrENmtyA1FwbmhRA==" -,"_from": "@octokit/request-error@1.2.1" } \ No newline at end of file diff --git a/node_modules/@octokit/request/package.json b/node_modules/@octokit/request/package.json index 6fa672d8d..e14ca5a44 100644 --- a/node_modules/@octokit/request/package.json +++ b/node_modules/@octokit/request/package.json @@ -61,8 +61,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.3.2.tgz" -,"_integrity": "sha512-7NPJpg19wVQy1cs2xqXjjRq/RmtSomja/VSWnptfYwuBxLdbYh2UjhGi0Wx7B1v5Iw5GKhfFDQL7jM7SSp7K2g==" -,"_from": "@octokit/request@5.3.2" } \ No newline at end of file diff --git a/node_modules/@octokit/rest/package.json b/node_modules/@octokit/rest/package.json index 2ea157f22..6cf0f21e4 100644 --- a/node_modules/@octokit/rest/package.json +++ b/node_modules/@octokit/rest/package.json @@ -65,8 +65,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-17.1.0.tgz" -,"_integrity": "sha512-L5YtpxHZSHZCh2xETbzxz8clBGmcpT+5e78JLZQ+VfuHrHJ1J/r+R2PGwKHwClUEECTeWFMMdAtIik+OCkANBg==" -,"_from": "@octokit/rest@17.1.0" } \ No newline at end of file diff --git a/node_modules/@octokit/types/package.json b/node_modules/@octokit/types/package.json index da45e714b..8176f97b4 100644 --- a/node_modules/@octokit/types/package.json +++ b/node_modules/@octokit/types/package.json @@ -62,8 +62,4 @@ "dependencies": { "@types/node": ">= 8" } - -,"_resolved": "https://registry.npmjs.org/@octokit/types/-/types-2.5.0.tgz" -,"_integrity": "sha512-KEnLwOfdXzxPNL34fj508bhi9Z9cStyN7qY1kOfVahmqtAfrWw6Oq3P4R+dtsg0lYtZdWBpUrS/Ixmd5YILSww==" -,"_from": "@octokit/types@2.5.0" } \ No newline at end of file diff --git a/node_modules/@sindresorhus/is/package.json b/node_modules/@sindresorhus/is/package.json index b08acf00a..66fc8bad1 100644 --- a/node_modules/@sindresorhus/is/package.json +++ b/node_modules/@sindresorhus/is/package.json @@ -1,67 +1,63 @@ { - "name": "@sindresorhus/is", - "version": "0.14.0", - "description": "Type check values: `is.string('🦄') //=> true`", - "license": "MIT", - "repository": "sindresorhus/is", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "dist/index.js", - "engines": { - "node": ">=6" - }, - "scripts": { - "lint": "tslint --format stylish --project .", - "build": "del dist && tsc", - "test": "npm run lint && npm run build && ava dist/tests", - "prepublish": "npm run build && del dist/tests" - }, - "files": [ - "dist" - ], - "keywords": [ - "type", - "types", - "is", - "check", - "checking", - "validate", - "validation", - "utility", - "util", - "typeof", - "instanceof", - "object", - "assert", - "assertion", - "test", - "kind", - "primitive", - "verify", - "compare" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.1.0", - "@types/jsdom": "^11.12.0", - "@types/node": "^10.12.10", - "@types/tempy": "^0.2.0", - "@types/zen-observable": "^0.8.0", - "ava": "^0.25.0", - "del-cli": "^1.1.0", - "jsdom": "^11.6.2", - "rxjs": "^6.3.3", - "tempy": "^0.2.1", - "tslint": "^5.9.1", - "tslint-xo": "^0.10.0", - "typescript": "^3.2.1", - "zen-observable": "^0.8.8" - }, - "types": "dist/index.d.ts" - -,"_resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz" -,"_integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==" -,"_from": "@sindresorhus/is@0.14.0" + "name": "@sindresorhus/is", + "version": "0.14.0", + "description": "Type check values: `is.string('🦄') //=> true`", + "license": "MIT", + "repository": "sindresorhus/is", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "dist/index.js", + "engines": { + "node": ">=6" + }, + "scripts": { + "lint": "tslint --format stylish --project .", + "build": "del dist && tsc", + "test": "npm run lint && npm run build && ava dist/tests", + "prepublish": "npm run build && del dist/tests" + }, + "files": [ + "dist" + ], + "keywords": [ + "type", + "types", + "is", + "check", + "checking", + "validate", + "validation", + "utility", + "util", + "typeof", + "instanceof", + "object", + "assert", + "assertion", + "test", + "kind", + "primitive", + "verify", + "compare" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.1.0", + "@types/jsdom": "^11.12.0", + "@types/node": "^10.12.10", + "@types/tempy": "^0.2.0", + "@types/zen-observable": "^0.8.0", + "ava": "^0.25.0", + "del-cli": "^1.1.0", + "jsdom": "^11.6.2", + "rxjs": "^6.3.3", + "tempy": "^0.2.1", + "tslint": "^5.9.1", + "tslint-xo": "^0.10.0", + "typescript": "^3.2.1", + "zen-observable": "^0.8.8" + }, + "types": "dist/index.d.ts" } \ No newline at end of file diff --git a/node_modules/@szmarczak/http-timer/package.json b/node_modules/@szmarczak/http-timer/package.json index ce9d4c665..cf366a763 100755 --- a/node_modules/@szmarczak/http-timer/package.json +++ b/node_modules/@szmarczak/http-timer/package.json @@ -1,51 +1,47 @@ { - "name": "@szmarczak/http-timer", - "version": "1.1.2", - "description": "Timings for HTTP requests", - "main": "source", - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && nyc ava", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "source" - ], - "keywords": [ - "http", - "https", - "timer", - "timings" - ], - "repository": { - "type": "git", - "url": "git+https://github.com/szmarczak/http-timer.git" - }, - "author": "Szymon Marczak", - "license": "MIT", - "bugs": { - "url": "https://github.com/szmarczak/http-timer/issues" - }, - "homepage": "https://github.com/szmarczak/http-timer#readme", - "xo": { - "rules": { - "unicorn/filename-case": "camelCase" - } - }, - "devDependencies": { - "ava": "^0.25.0", - "coveralls": "^3.0.2", - "p-event": "^2.1.0", - "nyc": "^12.0.2", - "xo": "^0.22.0" - }, - "dependencies": { - "defer-to-connect": "^1.0.1" - } - -,"_resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz" -,"_integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==" -,"_from": "@szmarczak/http-timer@1.1.2" + "name": "@szmarczak/http-timer", + "version": "1.1.2", + "description": "Timings for HTTP requests", + "main": "source", + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && nyc ava", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "source" + ], + "keywords": [ + "http", + "https", + "timer", + "timings" + ], + "repository": { + "type": "git", + "url": "git+https://github.com/szmarczak/http-timer.git" + }, + "author": "Szymon Marczak", + "license": "MIT", + "bugs": { + "url": "https://github.com/szmarczak/http-timer/issues" + }, + "homepage": "https://github.com/szmarczak/http-timer#readme", + "xo": { + "rules": { + "unicorn/filename-case": "camelCase" + } + }, + "devDependencies": { + "ava": "^0.25.0", + "coveralls": "^3.0.2", + "p-event": "^2.1.0", + "nyc": "^12.0.2", + "xo": "^0.22.0" + }, + "dependencies": { + "defer-to-connect": "^1.0.1" + } } \ No newline at end of file diff --git a/node_modules/@types/color-name/package.json b/node_modules/@types/color-name/package.json index da77dae61..de213731b 100644 --- a/node_modules/@types/color-name/package.json +++ b/node_modules/@types/color-name/package.json @@ -1,27 +1,23 @@ { - "name": "@types/color-name", - "version": "1.1.1", - "description": "TypeScript definitions for color-name", - "license": "MIT", - "contributors": [ - { - "name": "Junyoung Clare Jang", - "url": "https://github.com/Ailrun", - "githubUsername": "Ailrun" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz" -,"_integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" -,"_from": "@types/color-name@1.1.1" + "name": "@types/color-name", + "version": "1.1.1", + "description": "TypeScript definitions for color-name", + "license": "MIT", + "contributors": [ + { + "name": "Junyoung Clare Jang", + "url": "https://github.com/Ailrun", + "githubUsername": "Ailrun" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e22c6881e2dcf766e32142cbb82d9acf9c08258bdf0da8e76c8a448d1be44ac7", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/events/package.json b/node_modules/@types/events/package.json index ec26d33d0..511653a8c 100644 --- a/node_modules/@types/events/package.json +++ b/node_modules/@types/events/package.json @@ -1,32 +1,28 @@ { - "name": "@types/events", - "version": "3.0.0", - "description": "TypeScript definitions for events", - "license": "MIT", - "contributors": [ - { - "name": "Yasunori Ohoka", - "url": "https://github.com/yasupeke", - "githubUsername": "yasupeke" - }, - { - "name": "Shenwei Wang", - "url": "https://github.com/weareoutman", - "githubUsername": "weareoutman" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + "name": "@types/events", + "version": "3.0.0", + "description": "TypeScript definitions for events", + "license": "MIT", + "contributors": [ + { + "name": "Yasunori Ohoka", + "url": "https://github.com/yasupeke", + "githubUsername": "yasupeke" }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "ae078136220837864b64cc7c1c5267ca1ceb809166fb74569e637bc7de9f2e12", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz" -,"_integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==" -,"_from": "@types/events@3.0.0" + { + "name": "Shenwei Wang", + "url": "https://github.com/weareoutman", + "githubUsername": "weareoutman" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "ae078136220837864b64cc7c1c5267ca1ceb809166fb74569e637bc7de9f2e12", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/glob/package.json b/node_modules/@types/glob/package.json index 7b98f8851..599e299a4 100644 --- a/node_modules/@types/glob/package.json +++ b/node_modules/@types/glob/package.json @@ -1,40 +1,36 @@ { - "name": "@types/glob", - "version": "7.1.1", - "description": "TypeScript definitions for Glob", - "license": "MIT", - "contributors": [ - { - "name": "vvakame", - "url": "https://github.com/vvakame", - "githubUsername": "vvakame" - }, - { - "name": "voy", - "url": "https://github.com/voy", - "githubUsername": "voy" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + "name": "@types/glob", + "version": "7.1.1", + "description": "TypeScript definitions for Glob", + "license": "MIT", + "contributors": [ + { + "name": "vvakame", + "url": "https://github.com/vvakame", + "githubUsername": "vvakame" }, - "scripts": {}, - "dependencies": { - "@types/events": "*", - "@types/minimatch": "*", - "@types/node": "*" + { + "name": "voy", + "url": "https://github.com/voy", + "githubUsername": "voy" }, - "typesPublisherContentHash": "43019f2af91c7a4ca3453c4b806a01c521ca3008ffe1bfefd37c5f9d6135660e", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz" -,"_integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==" -,"_from": "@types/glob@7.1.1" + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": { + "@types/events": "*", + "@types/minimatch": "*", + "@types/node": "*" + }, + "typesPublisherContentHash": "43019f2af91c7a4ca3453c4b806a01c521ca3008ffe1bfefd37c5f9d6135660e", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/jszip/package.json b/node_modules/@types/jszip/package.json index 3f6eafbd7..5712e3e9d 100644 --- a/node_modules/@types/jszip/package.json +++ b/node_modules/@types/jszip/package.json @@ -1,35 +1,31 @@ { - "name": "@types/jszip", - "version": "3.1.6", - "description": "TypeScript definitions for JSZip", - "license": "MIT", - "contributors": [ - { - "name": "mzeiher", - "url": "https://github.com/mzeiher", - "githubUsername": "mzeiher" - }, - { - "name": "forabi", - "url": "https://github.com/forabi", - "githubUsername": "forabi" - } - ], - "main": "", - "types": "index", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/jszip" + "name": "@types/jszip", + "version": "3.1.6", + "description": "TypeScript definitions for JSZip", + "license": "MIT", + "contributors": [ + { + "name": "mzeiher", + "url": "https://github.com/mzeiher", + "githubUsername": "mzeiher" }, - "scripts": {}, - "dependencies": { - "@types/node": "*" - }, - "typesPublisherContentHash": "b39880f7d79a626d32182cc6886711e3db5e4728ace6005cbfd57457fee69d85", - "typeScriptVersion": "2.3" - -,"_resolved": "https://registry.npmjs.org/@types/jszip/-/jszip-3.1.6.tgz" -,"_integrity": "sha512-m8uFcI+O2EupCfbEVQWsBM/4nhbegjOHL7cQgBpM95FeF98kdFJXzy9/8yhx4b3lCRl/gMBhcvyh30Qt3X+XPQ==" -,"_from": "@types/jszip@3.1.6" + { + "name": "forabi", + "url": "https://github.com/forabi", + "githubUsername": "forabi" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/jszip" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "b39880f7d79a626d32182cc6886711e3db5e4728ace6005cbfd57457fee69d85", + "typeScriptVersion": "2.3" } \ No newline at end of file diff --git a/node_modules/@types/long/package.json b/node_modules/@types/long/package.json index 690bb90f3..71fc5eae5 100644 --- a/node_modules/@types/long/package.json +++ b/node_modules/@types/long/package.json @@ -1,26 +1,22 @@ { - "name": "@types/long", - "version": "4.0.0", - "description": "TypeScript definitions for long.js", - "license": "MIT", - "contributors": [ - { - "name": "Peter Kooijmans", - "url": "https://github.com/peterkooijmans", - "githubUsername": "peterkooijmans" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "cc3246302180c8c161d2e2c0c3f0a419226efa475d2cd5afbe51986d60cd8287", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.0.tgz" -,"_integrity": "sha512-1w52Nyx4Gq47uuu0EVcsHBxZFJgurQ+rTKS3qMHxR1GY2T8c2AJYd6vZoZ9q1rupaDjU0yT+Jc2XTyXkjeMA+Q==" -,"_from": "@types/long@4.0.0" + "name": "@types/long", + "version": "4.0.0", + "description": "TypeScript definitions for long.js", + "license": "MIT", + "contributors": [ + { + "name": "Peter Kooijmans", + "url": "https://github.com/peterkooijmans", + "githubUsername": "peterkooijmans" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "cc3246302180c8c161d2e2c0c3f0a419226efa475d2cd5afbe51986d60cd8287", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/minimatch/package.json b/node_modules/@types/minimatch/package.json index 2ffb9f1c8..85e258799 100644 --- a/node_modules/@types/minimatch/package.json +++ b/node_modules/@types/minimatch/package.json @@ -1,31 +1,27 @@ { - "name": "@types/minimatch", - "version": "3.0.3", - "description": "TypeScript definitions for Minimatch", - "license": "MIT", - "contributors": [ - { - "name": "vvakame", - "url": "https://github.com/vvakame", - "githubUsername": "vvakame" - }, - { - "name": "Shant Marouti", - "url": "https://github.com/shantmarouti", - "githubUsername": "shantmarouti" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + "name": "@types/minimatch", + "version": "3.0.3", + "description": "TypeScript definitions for Minimatch", + "license": "MIT", + "contributors": [ + { + "name": "vvakame", + "url": "https://github.com/vvakame", + "githubUsername": "vvakame" }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "e768e36348874adcc93ac67e9c3c7b5fcbd39079c0610ec16e410b8f851308d1", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz" -,"_integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" -,"_from": "@types/minimatch@3.0.3" + { + "name": "Shant Marouti", + "url": "https://github.com/shantmarouti", + "githubUsername": "shantmarouti" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e768e36348874adcc93ac67e9c3c7b5fcbd39079c0610ec16e410b8f851308d1", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/nock/package.json b/node_modules/@types/nock/package.json index 28efa45be..04a7fbeda 100644 --- a/node_modules/@types/nock/package.json +++ b/node_modules/@types/nock/package.json @@ -1,18 +1,14 @@ { - "name": "@types/nock", - "version": "11.1.0", - "typings": null, - "description": "Stub TypeScript definitions entry for nock, which provides its own types definitions", - "main": "", - "scripts": {}, - "author": "", - "repository": "https://github.com/nock/nock", - "license": "MIT", - "dependencies": { - "nock": "*" - } - -,"_resolved": "https://registry.npmjs.org/@types/nock/-/nock-11.1.0.tgz" -,"_integrity": "sha512-jI/ewavBQ7X5178262JQR0ewicPAcJhXS/iFaNJl0VHLfyosZ/kwSrsa6VNQNSO8i9d8SqdRgOtZSOKJ/+iNMw==" -,"_from": "@types/nock@11.1.0" + "name": "@types/nock", + "version": "11.1.0", + "typings": null, + "description": "Stub TypeScript definitions entry for nock, which provides its own types definitions", + "main": "", + "scripts": {}, + "author": "", + "repository": "https://github.com/nock/nock", + "license": "MIT", + "dependencies": { + "nock": "*" + } } \ No newline at end of file diff --git a/node_modules/@types/node/package.json b/node_modules/@types/node/package.json index c62c0141d..f3863a09b 100644 --- a/node_modules/@types/node/package.json +++ b/node_modules/@types/node/package.json @@ -1,235 +1,231 @@ { - "name": "@types/node", - "version": "12.12.14", - "description": "TypeScript definitions for Node.js", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "url": "https://github.com/Microsoft", - "githubUsername": "Microsoft" - }, - { - "name": "DefinitelyTyped", - "url": "https://github.com/DefinitelyTyped", - "githubUsername": "DefinitelyTyped" - }, - { - "name": "Alberto Schiabel", - "url": "https://github.com/jkomyno", - "githubUsername": "jkomyno" - }, - { - "name": "Alexander T.", - "url": "https://github.com/a-tarasyuk", - "githubUsername": "a-tarasyuk" - }, - { - "name": "Alvis HT Tang", - "url": "https://github.com/alvis", - "githubUsername": "alvis" - }, - { - "name": "Andrew Makarov", - "url": "https://github.com/r3nya", - "githubUsername": "r3nya" - }, - { - "name": "Benjamin Toueg", - "url": "https://github.com/btoueg", - "githubUsername": "btoueg" - }, - { - "name": "Bruno Scheufler", - "url": "https://github.com/brunoscheufler", - "githubUsername": "brunoscheufler" - }, - { - "name": "Chigozirim C.", - "url": "https://github.com/smac89", - "githubUsername": "smac89" - }, - { - "name": "Christian Vaagland Tellnes", - "url": "https://github.com/tellnes", - "githubUsername": "tellnes" - }, - { - "name": "David Junger", - "url": "https://github.com/touffy", - "githubUsername": "touffy" - }, - { - "name": "Deividas Bakanas", - "url": "https://github.com/DeividasBakanas", - "githubUsername": "DeividasBakanas" - }, - { - "name": "Eugene Y. Q. Shen", - "url": "https://github.com/eyqs", - "githubUsername": "eyqs" - }, - { - "name": "Flarna", - "url": "https://github.com/Flarna", - "githubUsername": "Flarna" - }, - { - "name": "Hannes Magnusson", - "url": "https://github.com/Hannes-Magnusson-CK", - "githubUsername": "Hannes-Magnusson-CK" - }, - { - "name": "Hoàng Văn Khải", - "url": "https://github.com/KSXGitHub", - "githubUsername": "KSXGitHub" - }, - { - "name": "Huw", - "url": "https://github.com/hoo29", - "githubUsername": "hoo29" - }, - { - "name": "Kelvin Jin", - "url": "https://github.com/kjin", - "githubUsername": "kjin" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - }, - { - "name": "Lishude", - "url": "https://github.com/islishude", - "githubUsername": "islishude" - }, - { - "name": "Mariusz Wiktorczyk", - "url": "https://github.com/mwiktorczyk", - "githubUsername": "mwiktorczyk" - }, - { - "name": "Mohsen Azimi", - "url": "https://github.com/mohsen1", - "githubUsername": "mohsen1" - }, - { - "name": "Nicolas Even", - "url": "https://github.com/n-e", - "githubUsername": "n-e" - }, - { - "name": "Nicolas Voigt", - "url": "https://github.com/octo-sniffle", - "githubUsername": "octo-sniffle" - }, - { - "name": "Nikita Galkin", - "url": "https://github.com/galkin", - "githubUsername": "galkin" - }, - { - "name": "Parambir Singh", - "url": "https://github.com/parambirs", - "githubUsername": "parambirs" - }, - { - "name": "Sebastian Silbermann", - "url": "https://github.com/eps1lon", - "githubUsername": "eps1lon" - }, - { - "name": "Simon Schick", - "url": "https://github.com/SimonSchick", - "githubUsername": "SimonSchick" - }, - { - "name": "Thomas den Hollander", - "url": "https://github.com/ThomasdenH", - "githubUsername": "ThomasdenH" - }, - { - "name": "Wilco Bakker", - "url": "https://github.com/WilcoBakker", - "githubUsername": "WilcoBakker" - }, - { - "name": "wwwy3y3", - "url": "https://github.com/wwwy3y3", - "githubUsername": "wwwy3y3" - }, - { - "name": "Zane Hannan AU", - "url": "https://github.com/ZaneHannanAU", - "githubUsername": "ZaneHannanAU" - }, - { - "name": "Samuel Ainsworth", - "url": "https://github.com/samuela", - "githubUsername": "samuela" - }, - { - "name": "Kyle Uehlein", - "url": "https://github.com/kuehlein", - "githubUsername": "kuehlein" - }, - { - "name": "Jordi Oliveras Rovira", - "url": "https://github.com/j-oliveras", - "githubUsername": "j-oliveras" - }, - { - "name": "Thanik Bhongbhibhat", - "url": "https://github.com/bhongy", - "githubUsername": "bhongy" - }, - { - "name": "Marcin Kopacz", - "url": "https://github.com/chyzwar", - "githubUsername": "chyzwar" - }, - { - "name": "Trivikram Kamat", - "url": "https://github.com/trivikr", - "githubUsername": "trivikr" - }, - { - "name": "Minh Son Nguyen", - "url": "https://github.com/nguymin4", - "githubUsername": "nguymin4" - }, - { - "name": "Junxiao Shi", - "url": "https://github.com/yoursunny", - "githubUsername": "yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "url": "https://github.com/qwelias", - "githubUsername": "qwelias" - } - ], - "main": "", - "types": "index.d.ts", - "typesVersions": { - ">=3.2.0-0": { - "*": [ - "ts3.2/*" - ] - } - }, - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "305a8ff81632f0e70287898475e87d6aedbd683a5e37cb775f9ea845625cfa06", - "typeScriptVersion": "2.8" - -,"_resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz" -,"_integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==" -,"_from": "@types/node@12.12.14" + "name": "@types/node", + "version": "12.12.14", + "description": "TypeScript definitions for Node.js", + "license": "MIT", + "contributors": [ + { + "name": "Microsoft TypeScript", + "url": "https://github.com/Microsoft", + "githubUsername": "Microsoft" + }, + { + "name": "DefinitelyTyped", + "url": "https://github.com/DefinitelyTyped", + "githubUsername": "DefinitelyTyped" + }, + { + "name": "Alberto Schiabel", + "url": "https://github.com/jkomyno", + "githubUsername": "jkomyno" + }, + { + "name": "Alexander T.", + "url": "https://github.com/a-tarasyuk", + "githubUsername": "a-tarasyuk" + }, + { + "name": "Alvis HT Tang", + "url": "https://github.com/alvis", + "githubUsername": "alvis" + }, + { + "name": "Andrew Makarov", + "url": "https://github.com/r3nya", + "githubUsername": "r3nya" + }, + { + "name": "Benjamin Toueg", + "url": "https://github.com/btoueg", + "githubUsername": "btoueg" + }, + { + "name": "Bruno Scheufler", + "url": "https://github.com/brunoscheufler", + "githubUsername": "brunoscheufler" + }, + { + "name": "Chigozirim C.", + "url": "https://github.com/smac89", + "githubUsername": "smac89" + }, + { + "name": "Christian Vaagland Tellnes", + "url": "https://github.com/tellnes", + "githubUsername": "tellnes" + }, + { + "name": "David Junger", + "url": "https://github.com/touffy", + "githubUsername": "touffy" + }, + { + "name": "Deividas Bakanas", + "url": "https://github.com/DeividasBakanas", + "githubUsername": "DeividasBakanas" + }, + { + "name": "Eugene Y. Q. Shen", + "url": "https://github.com/eyqs", + "githubUsername": "eyqs" + }, + { + "name": "Flarna", + "url": "https://github.com/Flarna", + "githubUsername": "Flarna" + }, + { + "name": "Hannes Magnusson", + "url": "https://github.com/Hannes-Magnusson-CK", + "githubUsername": "Hannes-Magnusson-CK" + }, + { + "name": "Hoàng Văn Khải", + "url": "https://github.com/KSXGitHub", + "githubUsername": "KSXGitHub" + }, + { + "name": "Huw", + "url": "https://github.com/hoo29", + "githubUsername": "hoo29" + }, + { + "name": "Kelvin Jin", + "url": "https://github.com/kjin", + "githubUsername": "kjin" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "Lishude", + "url": "https://github.com/islishude", + "githubUsername": "islishude" + }, + { + "name": "Mariusz Wiktorczyk", + "url": "https://github.com/mwiktorczyk", + "githubUsername": "mwiktorczyk" + }, + { + "name": "Mohsen Azimi", + "url": "https://github.com/mohsen1", + "githubUsername": "mohsen1" + }, + { + "name": "Nicolas Even", + "url": "https://github.com/n-e", + "githubUsername": "n-e" + }, + { + "name": "Nicolas Voigt", + "url": "https://github.com/octo-sniffle", + "githubUsername": "octo-sniffle" + }, + { + "name": "Nikita Galkin", + "url": "https://github.com/galkin", + "githubUsername": "galkin" + }, + { + "name": "Parambir Singh", + "url": "https://github.com/parambirs", + "githubUsername": "parambirs" + }, + { + "name": "Sebastian Silbermann", + "url": "https://github.com/eps1lon", + "githubUsername": "eps1lon" + }, + { + "name": "Simon Schick", + "url": "https://github.com/SimonSchick", + "githubUsername": "SimonSchick" + }, + { + "name": "Thomas den Hollander", + "url": "https://github.com/ThomasdenH", + "githubUsername": "ThomasdenH" + }, + { + "name": "Wilco Bakker", + "url": "https://github.com/WilcoBakker", + "githubUsername": "WilcoBakker" + }, + { + "name": "wwwy3y3", + "url": "https://github.com/wwwy3y3", + "githubUsername": "wwwy3y3" + }, + { + "name": "Zane Hannan AU", + "url": "https://github.com/ZaneHannanAU", + "githubUsername": "ZaneHannanAU" + }, + { + "name": "Samuel Ainsworth", + "url": "https://github.com/samuela", + "githubUsername": "samuela" + }, + { + "name": "Kyle Uehlein", + "url": "https://github.com/kuehlein", + "githubUsername": "kuehlein" + }, + { + "name": "Jordi Oliveras Rovira", + "url": "https://github.com/j-oliveras", + "githubUsername": "j-oliveras" + }, + { + "name": "Thanik Bhongbhibhat", + "url": "https://github.com/bhongy", + "githubUsername": "bhongy" + }, + { + "name": "Marcin Kopacz", + "url": "https://github.com/chyzwar", + "githubUsername": "chyzwar" + }, + { + "name": "Trivikram Kamat", + "url": "https://github.com/trivikr", + "githubUsername": "trivikr" + }, + { + "name": "Minh Son Nguyen", + "url": "https://github.com/nguymin4", + "githubUsername": "nguymin4" + }, + { + "name": "Junxiao Shi", + "url": "https://github.com/yoursunny", + "githubUsername": "yoursunny" + }, + { + "name": "Ilia Baryshnikov", + "url": "https://github.com/qwelias", + "githubUsername": "qwelias" + } + ], + "main": "", + "types": "index.d.ts", + "typesVersions": { + ">=3.2.0-0": { + "*": [ + "ts3.2/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "305a8ff81632f0e70287898475e87d6aedbd683a5e37cb775f9ea845625cfa06", + "typeScriptVersion": "2.8" } \ No newline at end of file diff --git a/node_modules/@types/normalize-package-data/package.json b/node_modules/@types/normalize-package-data/package.json index 82b657ae0..830641a9d 100755 --- a/node_modules/@types/normalize-package-data/package.json +++ b/node_modules/@types/normalize-package-data/package.json @@ -1,26 +1,22 @@ { - "name": "@types/normalize-package-data", - "version": "2.4.0", - "description": "TypeScript definitions for normalize-package-data", - "license": "MIT", - "contributors": [ - { - "name": "Jeff Dickey", - "url": "https://github.com/jdxcode", - "githubUsername": "jdxcode" - } - ], - "main": "", - "repository": { - "type": "git", - "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "5d2101e9e55c73e1d649a6c311e0d40bdfaa25bb06bb75ea6f3bb0d149c1303b", - "typeScriptVersion": "2.0" - -,"_resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz" -,"_integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==" -,"_from": "@types/normalize-package-data@2.4.0" + "name": "@types/normalize-package-data", + "version": "2.4.0", + "description": "TypeScript definitions for normalize-package-data", + "license": "MIT", + "contributors": [ + { + "name": "Jeff Dickey", + "url": "https://github.com/jdxcode", + "githubUsername": "jdxcode" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "5d2101e9e55c73e1d649a6c311e0d40bdfaa25bb06bb75ea6f3bb0d149c1303b", + "typeScriptVersion": "2.0" } \ No newline at end of file diff --git a/node_modules/@types/semver/package.json b/node_modules/@types/semver/package.json index 5bff6095b..eb5d0f55c 100644 --- a/node_modules/@types/semver/package.json +++ b/node_modules/@types/semver/package.json @@ -1,55 +1,51 @@ { - "name": "@types/semver", - "version": "7.2.0", - "description": "TypeScript definitions for semver", - "license": "MIT", - "contributors": [ - { - "name": "Bart van der Schoor", - "url": "https://github.com/Bartvds", - "githubUsername": "Bartvds" - }, - { - "name": "BendingBender", - "url": "https://github.com/BendingBender", - "githubUsername": "BendingBender" - }, - { - "name": "Lucian Buzzo", - "url": "https://github.com/LucianBuzzo", - "githubUsername": "LucianBuzzo" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - }, - { - "name": "ExE Boss", - "url": "https://github.com/ExE-Boss", - "githubUsername": "ExE-Boss" - }, - { - "name": "Piotr Błażejewicz", - "url": "https://github.com/peterblazejewicz", - "githubUsername": "peterblazejewicz" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/semver" + "name": "@types/semver", + "version": "7.2.0", + "description": "TypeScript definitions for semver", + "license": "MIT", + "contributors": [ + { + "name": "Bart van der Schoor", + "url": "https://github.com/Bartvds", + "githubUsername": "Bartvds" }, - "scripts": {}, - "dependencies": { - "@types/node": "*" + { + "name": "BendingBender", + "url": "https://github.com/BendingBender", + "githubUsername": "BendingBender" }, - "typesPublisherContentHash": "a85c812786f6121af7012f9234a35445623e4933797ddf4b52584d65deaec9ef", - "typeScriptVersion": "2.9" - -,"_resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.2.0.tgz" -,"_integrity": "sha512-TbB0A8ACUWZt3Y6bQPstW9QNbhNeebdgLX4T/ZfkrswAfUzRiXrgd9seol+X379Wa589Pu4UEx9Uok0D4RjRCQ==" -,"_from": "@types/semver@7.2.0" + { + "name": "Lucian Buzzo", + "url": "https://github.com/LucianBuzzo", + "githubUsername": "LucianBuzzo" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "ExE Boss", + "url": "https://github.com/ExE-Boss", + "githubUsername": "ExE-Boss" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/semver" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "a85c812786f6121af7012f9234a35445623e4933797ddf4b52584d65deaec9ef", + "typeScriptVersion": "2.9" } \ No newline at end of file diff --git a/node_modules/acorn/package.json b/node_modules/acorn/package.json index 3509ed8ad..40a5beda7 100644 --- a/node_modules/acorn/package.json +++ b/node_modules/acorn/package.json @@ -6,7 +6,9 @@ "types": "dist/acorn.d.ts", "module": "dist/acorn.mjs", "version": "7.1.1", - "engines": {"node": ">=0.4.0"}, + "engines": { + "node": ">=0.4.0" + }, "maintainers": [ { "name": "Marijn Haverbeke", @@ -31,9 +33,7 @@ "scripts": { "prepare": "cd ..; npm run build:main && npm run build:bin" }, - "bin": {"acorn": "./bin/acorn"} - -,"_resolved": "https://registry.npmjs.org/acorn/-/acorn-7.1.1.tgz" -,"_integrity": "sha512-add7dgA5ppRPxCFJoAGfMDi7PIBXq1RtGo7BhbLaxwrXPOmw8gq48Y9ozT01hUKy9byMjlR20EJhu5zlkErEkg==" -,"_from": "acorn@7.1.1" + "bin": { + "acorn": "./bin/acorn" + } } \ No newline at end of file diff --git a/node_modules/aggregate-error/package.json b/node_modules/aggregate-error/package.json index bea3cd781..975b087d9 100644 --- a/node_modules/aggregate-error/package.json +++ b/node_modules/aggregate-error/package.json @@ -1,45 +1,41 @@ { - "name": "aggregate-error", - "version": "3.0.1", - "description": "Create an error from multiple errors", - "license": "MIT", - "repository": "sindresorhus/aggregate-error", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "aggregate", - "error", - "combine", - "multiple", - "many", - "collection", - "iterable", - "iterator" - ], - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.7.1", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.0.1.tgz" -,"_integrity": "sha512-quoaXsZ9/BLNae5yiNoUz+Nhkwz83GhWwtYFglcjEQB2NDHCIpApbqXxIFnm4Pq/Nvhrsq5sYJFyohrrxnTGAA==" -,"_from": "aggregate-error@3.0.1" + "name": "aggregate-error", + "version": "3.0.1", + "description": "Create an error from multiple errors", + "license": "MIT", + "repository": "sindresorhus/aggregate-error", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "aggregate", + "error", + "combine", + "multiple", + "many", + "collection", + "iterable", + "iterator" + ], + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.7.1", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/emoji-regex/package.json b/node_modules/ansi-align/node_modules/emoji-regex/package.json index 0815d4b6b..9b1f7fa11 100644 --- a/node_modules/ansi-align/node_modules/emoji-regex/package.json +++ b/node_modules/ansi-align/node_modules/emoji-regex/package.json @@ -48,8 +48,4 @@ "unicode-11.0.0": "^0.7.7", "unicode-tr51": "^9.0.1" } - -,"_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz" -,"_integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==" -,"_from": "emoji-regex@7.0.3" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json b/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json index 2a660ef08..26bde6763 100644 --- a/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json +++ b/node_modules/ansi-align/node_modules/is-fullwidth-code-point/package.json @@ -42,8 +42,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz" -,"_integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" -,"_from": "is-fullwidth-code-point@2.0.0" } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/string-width/package.json b/node_modules/ansi-align/node_modules/string-width/package.json index 04b93127c..999be2234 100644 --- a/node_modules/ansi-align/node_modules/string-width/package.json +++ b/node_modules/ansi-align/node_modules/string-width/package.json @@ -1,60 +1,56 @@ { - "name": "string-width", - "version": "3.1.0", - "description": "Get the visual width of a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/string-width", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "string", - "str", - "character", - "char", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - }, - "devDependencies": { - "ava": "^1.0.1", - "xo": "^0.23.0" - } - -,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz" -,"_integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==" -,"_from": "string-width@3.1.0" + "name": "string-width", + "version": "3.1.0", + "description": "Get the visual width of a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/string-width", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "string", + "str", + "character", + "char", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "emoji-regex": "^7.0.1", + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^5.1.0" + }, + "devDependencies": { + "ava": "^1.0.1", + "xo": "^0.23.0" + } } \ No newline at end of file diff --git a/node_modules/ansi-align/node_modules/strip-ansi/package.json b/node_modules/ansi-align/node_modules/strip-ansi/package.json index b8c890988..8da283c17 100644 --- a/node_modules/ansi-align/node_modules/strip-ansi/package.json +++ b/node_modules/ansi-align/node_modules/strip-ansi/package.json @@ -1,58 +1,54 @@ { - "name": "strip-ansi", - "version": "5.2.0", - "description": "Strip ANSI escape codes from a string", - "license": "MIT", - "repository": "chalk/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "strip", - "trim", - "remove", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "devDependencies": { - "ava": "^1.3.1", - "tsd-check": "^0.5.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz" -,"_integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==" -,"_from": "strip-ansi@5.2.0" + "name": "strip-ansi", + "version": "5.2.0", + "description": "Strip ANSI escape codes from a string", + "license": "MIT", + "repository": "chalk/strip-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "devDependencies": { + "ava": "^1.3.1", + "tsd-check": "^0.5.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ansi-align/package.json b/node_modules/ansi-align/package.json index c44a43b98..dd0ee2023 100644 --- a/node_modules/ansi-align/package.json +++ b/node_modules/ansi-align/package.json @@ -40,8 +40,4 @@ "standard": "^12.0.1", "standard-version": "^4.4.0" } - -,"_resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz" -,"_integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==" -,"_from": "ansi-align@3.0.0" } \ No newline at end of file diff --git a/node_modules/ansi-regex/package.json b/node_modules/ansi-regex/package.json index 3a7e5ef08..cbf44fadd 100644 --- a/node_modules/ansi-regex/package.json +++ b/node_modules/ansi-regex/package.json @@ -1,57 +1,53 @@ { - "name": "ansi-regex", - "version": "4.1.0", - "description": "Regular expression for matching ANSI escape codes", - "license": "MIT", - "repository": "chalk/ansi-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava", - "view-supported": "node fixtures/view-codes.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "devDependencies": { - "ava": "^0.25.0", - "xo": "^0.23.0" - } - -,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz" -,"_integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==" -,"_from": "ansi-regex@4.1.0" + "name": "ansi-regex", + "version": "4.1.0", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "^0.25.0", + "xo": "^0.23.0" + } } \ No newline at end of file diff --git a/node_modules/ansi-styles/package.json b/node_modules/ansi-styles/package.json index 8e2972cd4..a5eb4ff0f 100644 --- a/node_modules/ansi-styles/package.json +++ b/node_modules/ansi-styles/package.json @@ -1,60 +1,56 @@ { - "name": "ansi-styles", - "version": "3.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "color-convert": "^1.9.0" - }, - "devDependencies": { - "ava": "*", - "babel-polyfill": "^6.23.0", - "svg-term-cli": "^2.1.1", - "xo": "*" - }, - "ava": { - "require": "babel-polyfill" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz" -,"_integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==" -,"_from": "ansi-styles@3.2.1" + "name": "ansi-styles", + "version": "3.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "color-convert": "^1.9.0" + }, + "devDependencies": { + "ava": "*", + "babel-polyfill": "^6.23.0", + "svg-term-cli": "^2.1.1", + "xo": "*" + }, + "ava": { + "require": "babel-polyfill" + } } \ No newline at end of file diff --git a/node_modules/argparse/package.json b/node_modules/argparse/package.json index 6bb96cb71..b16de2518 100644 --- a/node_modules/argparse/package.json +++ b/node_modules/argparse/package.json @@ -31,8 +31,4 @@ "mocha": "^3.1.0", "ndoc": "^5.0.1" } - -,"_resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz" -,"_integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==" -,"_from": "argparse@1.0.10" } \ No newline at end of file diff --git a/node_modules/array-find-index/package.json b/node_modules/array-find-index/package.json index 8fdab7d97..ed7544350 100644 --- a/node_modules/array-find-index/package.json +++ b/node_modules/array-find-index/package.json @@ -32,8 +32,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz" -,"_integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=" -,"_from": "array-find-index@1.0.2" } \ No newline at end of file diff --git a/node_modules/array-union/package.json b/node_modules/array-union/package.json index a7f5d17e0..ca61e74cb 100644 --- a/node_modules/array-union/package.json +++ b/node_modules/array-union/package.json @@ -1,42 +1,38 @@ { - "name": "array-union", - "version": "2.1.0", - "description": "Create an array of unique values, in order, from the input arrays", - "license": "MIT", - "repository": "sindresorhus/array-union", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "array", - "set", - "uniq", - "unique", - "duplicate", - "remove", - "union", - "combine", - "merge" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz" -,"_integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" -,"_from": "array-union@2.1.0" + "name": "array-union", + "version": "2.1.0", + "description": "Create an array of unique values, in order, from the input arrays", + "license": "MIT", + "repository": "sindresorhus/array-union", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "array", + "set", + "uniq", + "unique", + "duplicate", + "remove", + "union", + "combine", + "merge" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/arrgv/package.json b/node_modules/arrgv/package.json index db0f2f523..620775aeb 100644 --- a/node_modules/arrgv/package.json +++ b/node_modules/arrgv/package.json @@ -30,8 +30,4 @@ "argv" ], "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/arrgv/-/arrgv-1.0.2.tgz" -,"_integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==" -,"_from": "arrgv@1.0.2" } \ No newline at end of file diff --git a/node_modules/arrify/package.json b/node_modules/arrify/package.json index 5a1a8c0b5..223b18354 100644 --- a/node_modules/arrify/package.json +++ b/node_modules/arrify/package.json @@ -1,39 +1,35 @@ { - "name": "arrify", - "version": "2.0.1", - "description": "Convert a value to an array", - "license": "MIT", - "repository": "sindresorhus/arrify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "array", - "arrify", - "arrayify", - "convert", - "value", - "ensure" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz" -,"_integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==" -,"_from": "arrify@2.0.1" + "name": "arrify", + "version": "2.0.1", + "description": "Convert a value to an array", + "license": "MIT", + "repository": "sindresorhus/arrify", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "array", + "arrify", + "arrayify", + "convert", + "value", + "ensure" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ava/node_modules/acorn-walk/package.json b/node_modules/ava/node_modules/acorn-walk/package.json index 555e40782..1cbd11682 100644 --- a/node_modules/ava/node_modules/acorn-walk/package.json +++ b/node_modules/ava/node_modules/acorn-walk/package.json @@ -6,7 +6,9 @@ "types": "dist/walk.d.ts", "module": "dist/walk.mjs", "version": "7.1.1", - "engines": {"node": ">=0.4.0"}, + "engines": { + "node": ">=0.4.0" + }, "maintainers": [ { "name": "Marijn Haverbeke", @@ -31,8 +33,4 @@ "prepare": "cd ..; npm run build:walk" }, "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.1.1.tgz" -,"_integrity": "sha512-wdlPY2tm/9XBr7QkKlq0WQVgiuGTX6YWPyRyBviSoScBuLfTVQhvwg6wJ369GJ/1nPfTLMfnrFIfjqVg6d+jQQ==" -,"_from": "acorn-walk@7.1.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/ansi-styles/package.json b/node_modules/ava/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/ava/node_modules/ansi-styles/package.json +++ b/node_modules/ava/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/ava/node_modules/chalk/package.json b/node_modules/ava/node_modules/chalk/package.json index 1266d81f3..bb745bb89 100644 --- a/node_modules/ava/node_modules/chalk/package.json +++ b/node_modules/ava/node_modules/chalk/package.json @@ -1,72 +1,68 @@ { - "name": "chalk", - "version": "4.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", - "main": "source", - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^4.0.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^15.0.0", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.28.2" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-4.0.0.tgz" -,"_integrity": "sha512-N9oWFcegS0sFr9oh1oz2d7Npos6vNoWW9HvtCg5N1KRFpUhaAhvTv5Y58g880fZaEYSNm3qDz8SU1UrGvp+n7A==" -,"_from": "chalk@4.0.0" + "name": "chalk", + "version": "4.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "funding": "https://github.com/chalk/chalk?sponsor=1", + "main": "source", + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^4.0.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^15.0.0", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.28.2" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off", + "@typescript-eslint/member-ordering": "off", + "no-redeclare": "off", + "unicorn/string-content": "off", + "unicorn/better-regex": "off" + } + } } \ No newline at end of file diff --git a/node_modules/ava/node_modules/color-convert/package.json b/node_modules/ava/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/ava/node_modules/color-convert/package.json +++ b/node_modules/ava/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/color-name/package.json b/node_modules/ava/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/ava/node_modules/color-name/package.json +++ b/node_modules/ava/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/escape-string-regexp/package.json b/node_modules/ava/node_modules/escape-string-regexp/package.json index 99dd980e9..d7bec7c3d 100644 --- a/node_modules/ava/node_modules/escape-string-regexp/package.json +++ b/node_modules/ava/node_modules/escape-string-regexp/package.json @@ -1,47 +1,43 @@ { - "name": "escape-string-regexp", - "version": "2.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "maintainers": [ - "Sindre Sorhus (sindresorhus.com)", - "Joshua Boy Nicolai Appelman (jbna.nl)" - ], - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "re", - "regular", - "expression", - "string", - "str", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz" -,"_integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==" -,"_from": "escape-string-regexp@2.0.0" + "name": "escape-string-regexp", + "version": "2.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "maintainers": [ + "Sindre Sorhus (sindresorhus.com)", + "Joshua Boy Nicolai Appelman (jbna.nl)" + ], + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "re", + "regular", + "expression", + "string", + "str", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ava/node_modules/has-flag/package.json b/node_modules/ava/node_modules/has-flag/package.json index 5b10a2844..55d0058e4 100644 --- a/node_modules/ava/node_modules/has-flag/package.json +++ b/node_modules/ava/node_modules/has-flag/package.json @@ -1,50 +1,46 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" -,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" -,"_from": "has-flag@4.0.0" + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ava/node_modules/source-map-support/package.json b/node_modules/ava/node_modules/source-map-support/package.json index febada891..f15f25283 100644 --- a/node_modules/ava/node_modules/source-map-support/package.json +++ b/node_modules/ava/node_modules/source-map-support/package.json @@ -28,8 +28,4 @@ "url": "https://github.com/evanw/node-source-map-support/issues" }, "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz" -,"_integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==" -,"_from": "source-map-support@0.5.19" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/stack-utils/package.json b/node_modules/ava/node_modules/stack-utils/package.json index 1f6223fa4..186d32844 100644 --- a/node_modules/ava/node_modules/stack-utils/package.json +++ b/node_modules/ava/node_modules/stack-utils/package.json @@ -32,8 +32,4 @@ "q": "^1.5.1", "tap": "=14.10.2-unbundled" } - -,"_resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.2.tgz" -,"_integrity": "sha512-0H7QK2ECz3fyZMzQ8rH0j2ykpfbnd20BFtfg/SqVC2+sCTtcw0aDTGB7dk+de4U4uUeuz6nOtJcrkFFLG1B0Rg==" -,"_from": "stack-utils@2.0.2" } \ No newline at end of file diff --git a/node_modules/ava/node_modules/supports-color/package.json b/node_modules/ava/node_modules/supports-color/package.json index f0982eb21..79856038d 100644 --- a/node_modules/ava/node_modules/supports-color/package.json +++ b/node_modules/ava/node_modules/supports-color/package.json @@ -1,57 +1,53 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" -,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" -,"_from": "supports-color@7.1.0" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/ava/package.json b/node_modules/ava/package.json index 79ccc8482..03146bb13 100644 --- a/node_modules/ava/package.json +++ b/node_modules/ava/package.json @@ -1,144 +1,140 @@ { - "name": "ava", - "version": "3.8.1", - "description": "Testing can be a drag. AVA helps you get it done.", - "license": "MIT", - "repository": "avajs/ava", - "homepage": "https://avajs.dev", - "bin": "cli.js", - "engines": { - "node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0 <14 || >=14.0.0" - }, - "scripts": { - "test": "xo && tsd && c8 tap" - }, - "files": [ - "lib", - "*.js", - "!*.config.js", - "index.d.ts" - ], - "keywords": [ - "🦄", - "test", - "runner", - "testing", - "ava", - "concurrent", - "parallel", - "fast", - "tdd", - "cli-app", - "cli", - "jest", - "mocha", - "tape", - "tap", - "qunit", - "jasmine", - "babel", - "assert", - "assertion", - "promise", - "promises", - "async", - "function", - "await", - "generator", - "generators", - "yield", - "observable", - "observables", - "unit", - "snapshot", - "expect", - "typescript" - ], - "dependencies": { - "@concordance/react": "^2.0.0", - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1", - "ansi-styles": "^4.2.1", - "arrgv": "^1.0.2", - "arrify": "^2.0.1", - "callsites": "^3.1.0", - "chalk": "^4.0.0", - "chokidar": "^3.4.0", - "chunkd": "^2.0.1", - "ci-info": "^2.0.0", - "ci-parallel-vars": "^1.0.0", - "clean-yaml-object": "^0.1.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^2.1.1", - "common-path-prefix": "^3.0.0", - "concordance": "^4.0.0", - "convert-source-map": "^1.7.0", - "currently-unhandled": "^0.4.1", - "debug": "^4.1.1", - "del": "^5.1.0", - "emittery": "^0.6.0", - "equal-length": "^1.0.0", - "figures": "^3.2.0", - "globby": "^11.0.0", - "ignore-by-default": "^1.0.0", - "import-local": "^3.0.2", - "indent-string": "^4.0.0", - "is-error": "^2.2.2", - "is-plain-object": "^3.0.0", - "is-promise": "^3.0.0", - "lodash": "^4.17.15", - "matcher": "^3.0.0", - "md5-hex": "^3.0.1", - "mem": "^6.1.0", - "ms": "^2.1.2", - "ora": "^4.0.4", - "p-map": "^4.0.0", - "picomatch": "^2.2.2", - "pkg-conf": "^3.1.0", - "plur": "^4.0.0", - "pretty-ms": "^6.0.1", - "read-pkg": "^5.2.0", - "resolve-cwd": "^3.0.0", - "slash": "^3.0.0", - "source-map-support": "^0.5.19", - "stack-utils": "^2.0.1", - "strip-ansi": "^6.0.0", - "supertap": "^1.0.0", - "temp-dir": "^2.0.0", - "trim-off-newlines": "^1.0.1", - "update-notifier": "^4.1.0", - "write-file-atomic": "^3.0.3", - "yargs": "^15.3.1" - }, - "devDependencies": { - "@ava/babel": "^1.0.1", - "@babel/plugin-proposal-do-expressions": "^7.8.3", - "@sinonjs/fake-timers": "^6.0.1", - "ansi-escapes": "^4.3.1", - "c8": "^7.1.0", - "delay": "^4.3.0", - "esm": "^3.2.25", - "execa": "^4.0.0", - "get-stream": "^5.1.0", - "p-event": "^4.1.0", - "proxyquire": "^2.1.3", - "react": "^16.13.1", - "react-test-renderer": "^16.13.1", - "replace-string": "^3.0.0", - "sinon": "^9.0.2", - "source-map-fixtures": "^2.1.0", - "tap": "^14.10.7", - "temp-write": "^4.0.0", - "tempy": "^0.5.0", - "touch": "^3.1.0", - "tsd": "^0.11.0", - "typescript": "^3.8.3", - "xo": "^0.30.0", - "zen-observable": "^0.8.15" - } - -,"_resolved": "https://registry.npmjs.org/ava/-/ava-3.8.1.tgz" -,"_integrity": "sha512-OPWrTxcf1EbtAaGGFQPLbx4AaVqPrFMumKOKn2SzIRo+RTKb33lF2aoVnWqBeZaJ68uSc9R6jqIE7qkG6O33uQ==" -,"_from": "ava@3.8.1" + "name": "ava", + "version": "3.8.1", + "description": "Testing can be a drag. AVA helps you get it done.", + "license": "MIT", + "repository": "avajs/ava", + "homepage": "https://avajs.dev", + "bin": "cli.js", + "engines": { + "node": ">=10.18.0 <11 || >=12.14.0 <13 || >=13.5.0 <14 || >=14.0.0" + }, + "scripts": { + "test": "xo && tsd && c8 tap" + }, + "files": [ + "lib", + "*.js", + "!*.config.js", + "index.d.ts" + ], + "keywords": [ + "🦄", + "test", + "runner", + "testing", + "ava", + "concurrent", + "parallel", + "fast", + "tdd", + "cli-app", + "cli", + "jest", + "mocha", + "tape", + "tap", + "qunit", + "jasmine", + "babel", + "assert", + "assertion", + "promise", + "promises", + "async", + "function", + "await", + "generator", + "generators", + "yield", + "observable", + "observables", + "unit", + "snapshot", + "expect", + "typescript" + ], + "dependencies": { + "@concordance/react": "^2.0.0", + "acorn": "^7.1.1", + "acorn-walk": "^7.1.1", + "ansi-styles": "^4.2.1", + "arrgv": "^1.0.2", + "arrify": "^2.0.1", + "callsites": "^3.1.0", + "chalk": "^4.0.0", + "chokidar": "^3.4.0", + "chunkd": "^2.0.1", + "ci-info": "^2.0.0", + "ci-parallel-vars": "^1.0.0", + "clean-yaml-object": "^0.1.0", + "cli-cursor": "^3.1.0", + "cli-truncate": "^2.1.0", + "code-excerpt": "^2.1.1", + "common-path-prefix": "^3.0.0", + "concordance": "^4.0.0", + "convert-source-map": "^1.7.0", + "currently-unhandled": "^0.4.1", + "debug": "^4.1.1", + "del": "^5.1.0", + "emittery": "^0.6.0", + "equal-length": "^1.0.0", + "figures": "^3.2.0", + "globby": "^11.0.0", + "ignore-by-default": "^1.0.0", + "import-local": "^3.0.2", + "indent-string": "^4.0.0", + "is-error": "^2.2.2", + "is-plain-object": "^3.0.0", + "is-promise": "^3.0.0", + "lodash": "^4.17.15", + "matcher": "^3.0.0", + "md5-hex": "^3.0.1", + "mem": "^6.1.0", + "ms": "^2.1.2", + "ora": "^4.0.4", + "p-map": "^4.0.0", + "picomatch": "^2.2.2", + "pkg-conf": "^3.1.0", + "plur": "^4.0.0", + "pretty-ms": "^6.0.1", + "read-pkg": "^5.2.0", + "resolve-cwd": "^3.0.0", + "slash": "^3.0.0", + "source-map-support": "^0.5.19", + "stack-utils": "^2.0.1", + "strip-ansi": "^6.0.0", + "supertap": "^1.0.0", + "temp-dir": "^2.0.0", + "trim-off-newlines": "^1.0.1", + "update-notifier": "^4.1.0", + "write-file-atomic": "^3.0.3", + "yargs": "^15.3.1" + }, + "devDependencies": { + "@ava/babel": "^1.0.1", + "@babel/plugin-proposal-do-expressions": "^7.8.3", + "@sinonjs/fake-timers": "^6.0.1", + "ansi-escapes": "^4.3.1", + "c8": "^7.1.0", + "delay": "^4.3.0", + "esm": "^3.2.25", + "execa": "^4.0.0", + "get-stream": "^5.1.0", + "p-event": "^4.1.0", + "proxyquire": "^2.1.3", + "react": "^16.13.1", + "react-test-renderer": "^16.13.1", + "replace-string": "^3.0.0", + "sinon": "^9.0.2", + "source-map-fixtures": "^2.1.0", + "tap": "^14.10.7", + "temp-write": "^4.0.0", + "tempy": "^0.5.0", + "touch": "^3.1.0", + "tsd": "^0.11.0", + "typescript": "^3.8.3", + "xo": "^0.30.0", + "zen-observable": "^0.8.15" + } } \ No newline at end of file diff --git a/node_modules/balanced-match/package.json b/node_modules/balanced-match/package.json index 5fc21da86..55ba6f00e 100644 --- a/node_modules/balanced-match/package.json +++ b/node_modules/balanced-match/package.json @@ -46,8 +46,4 @@ "android-browser/4.2..latest" ] } - -,"_resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz" -,"_integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" -,"_from": "balanced-match@1.0.0" } \ No newline at end of file diff --git a/node_modules/before-after-hook/package.json b/node_modules/before-after-hook/package.json index e43a284df..ddd5acbe7 100644 --- a/node_modules/before-after-hook/package.json +++ b/node_modules/before-after-hook/package.json @@ -67,8 +67,4 @@ } ] } - -,"_resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.1.0.tgz" -,"_integrity": "sha512-IWIbu7pMqyw3EAJHzzHbWa85b6oud/yfKYg5rqB5hNE8CeMi3nX+2C2sj0HswfblST86hpVEOAb9x34NZd6P7A==" -,"_from": "before-after-hook@2.1.0" } \ No newline at end of file diff --git a/node_modules/binary-extensions/package.json b/node_modules/binary-extensions/package.json index 29fed23f6..e1ec6292f 100644 --- a/node_modules/binary-extensions/package.json +++ b/node_modules/binary-extensions/package.json @@ -1,42 +1,38 @@ { - "name": "binary-extensions", - "version": "2.0.0", - "description": "List of binary file extensions", - "license": "MIT", - "repository": "sindresorhus/binary-extensions", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "binary-extensions.json", - "binary-extensions.json.d.ts" - ], - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "json", - "list", - "array" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.0.0.tgz" -,"_integrity": "sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow==" -,"_from": "binary-extensions@2.0.0" + "name": "binary-extensions", + "version": "2.0.0", + "description": "List of binary file extensions", + "license": "MIT", + "repository": "sindresorhus/binary-extensions", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "binary-extensions.json", + "binary-extensions.json.d.ts" + ], + "keywords": [ + "binary", + "extensions", + "extension", + "file", + "json", + "list", + "array" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/blueimp-md5/package.json b/node_modules/blueimp-md5/package.json index 4fcfc0813..c7b89fc14 100644 --- a/node_modules/blueimp-md5/package.json +++ b/node_modules/blueimp-md5/package.json @@ -70,8 +70,4 @@ "js/*.js.map" ], "main": "js/md5.js" - -,"_resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.15.0.tgz" -,"_integrity": "sha512-Zc6sowqlCWu3+V0bocZwdaPPXlRv14EHtYcQDCOghj9EdyKLMkAOODBh3HHAx5r7QRylDYCOaXa/b/edgBLDpA==" -,"_from": "blueimp-md5@2.15.0" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/ansi-styles/package.json b/node_modules/boxen/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/boxen/node_modules/ansi-styles/package.json +++ b/node_modules/boxen/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/chalk/package.json b/node_modules/boxen/node_modules/chalk/package.json index c75d30e94..b68e931e7 100644 --- a/node_modules/boxen/node_modules/chalk/package.json +++ b/node_modules/boxen/node_modules/chalk/package.json @@ -1,67 +1,63 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" -,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" -,"_from": "chalk@3.0.0" + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/color-convert/package.json b/node_modules/boxen/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/boxen/node_modules/color-convert/package.json +++ b/node_modules/boxen/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/color-name/package.json b/node_modules/boxen/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/boxen/node_modules/color-name/package.json +++ b/node_modules/boxen/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/has-flag/package.json b/node_modules/boxen/node_modules/has-flag/package.json index 5b10a2844..55d0058e4 100644 --- a/node_modules/boxen/node_modules/has-flag/package.json +++ b/node_modules/boxen/node_modules/has-flag/package.json @@ -1,50 +1,46 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" -,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" -,"_from": "has-flag@4.0.0" + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/supports-color/package.json b/node_modules/boxen/node_modules/supports-color/package.json index f0982eb21..79856038d 100644 --- a/node_modules/boxen/node_modules/supports-color/package.json +++ b/node_modules/boxen/node_modules/supports-color/package.json @@ -1,57 +1,53 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" -,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" -,"_from": "supports-color@7.1.0" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/boxen/node_modules/type-fest/package.json b/node_modules/boxen/node_modules/type-fest/package.json index e896022e8..4ae131df3 100644 --- a/node_modules/boxen/node_modules/type-fest/package.json +++ b/node_modules/boxen/node_modules/type-fest/package.json @@ -1,55 +1,51 @@ { - "name": "type-fest", - "version": "0.8.1", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.4.0", - "@typescript-eslint/eslint-plugin": "^2.2.0", - "@typescript-eslint/parser": "^2.2.0", - "eslint-config-xo-typescript": "^0.18.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off", - "@typescript-eslint/indent": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz" -,"_integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==" -,"_from": "type-fest@0.8.1" + "name": "type-fest", + "version": "0.8.1", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.4.0", + "@typescript-eslint/eslint-plugin": "^2.2.0", + "@typescript-eslint/parser": "^2.2.0", + "eslint-config-xo-typescript": "^0.18.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off", + "@typescript-eslint/indent": "off" + } + } } \ No newline at end of file diff --git a/node_modules/boxen/package.json b/node_modules/boxen/package.json index 003986fb7..9ecbd6db5 100644 --- a/node_modules/boxen/package.json +++ b/node_modules/boxen/package.json @@ -1,55 +1,51 @@ { - "name": "boxen", - "version": "4.2.0", - "description": "Create boxes in the terminal", - "license": "MIT", - "repository": "sindresorhus/boxen", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "box", - "boxes", - "terminal", - "term", - "console", - "ascii", - "unicode", - "border", - "text" - ], - "dependencies": { - "ansi-align": "^3.0.0", - "camelcase": "^5.3.1", - "chalk": "^3.0.0", - "cli-boxes": "^2.2.0", - "string-width": "^4.1.0", - "term-size": "^2.1.0", - "type-fest": "^0.8.1", - "widest-line": "^3.1.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "nyc": "^14.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/boxen/-/boxen-4.2.0.tgz" -,"_integrity": "sha512-eB4uT9RGzg2odpER62bBwSLvUeGC+WbRjjyyFhGsKnc8wp/m0+hQsMUvUe3H2V0D5vw0nBdO1hCJoZo5mKeuIQ==" -,"_from": "boxen@4.2.0" + "name": "boxen", + "version": "4.2.0", + "description": "Create boxes in the terminal", + "license": "MIT", + "repository": "sindresorhus/boxen", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "box", + "boxes", + "terminal", + "term", + "console", + "ascii", + "unicode", + "border", + "text" + ], + "dependencies": { + "ansi-align": "^3.0.0", + "camelcase": "^5.3.1", + "chalk": "^3.0.0", + "cli-boxes": "^2.2.0", + "string-width": "^4.1.0", + "term-size": "^2.1.0", + "type-fest": "^0.8.1", + "widest-line": "^3.1.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "nyc": "^14.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/brace-expansion/package.json b/node_modules/brace-expansion/package.json index 99f83cd7d..c8e652883 100644 --- a/node_modules/brace-expansion/package.json +++ b/node_modules/brace-expansion/package.json @@ -44,8 +44,4 @@ "android-browser/4.2..latest" ] } - -,"_resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz" -,"_integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==" -,"_from": "brace-expansion@1.1.11" } \ No newline at end of file diff --git a/node_modules/braces/package.json b/node_modules/braces/package.json index 008f6401a..da327631e 100644 --- a/node_modules/braces/package.json +++ b/node_modules/braces/package.json @@ -74,8 +74,4 @@ "gulp-format-md" ] } - -,"_resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz" -,"_integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==" -,"_from": "braces@3.0.2" } \ No newline at end of file diff --git a/node_modules/buffer-from/package.json b/node_modules/buffer-from/package.json index a01e0f19a..22277b00f 100644 --- a/node_modules/buffer-from/package.json +++ b/node_modules/buffer-from/package.json @@ -16,8 +16,4 @@ "buffer", "buffer from" ] - -,"_resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" -,"_integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==" -,"_from": "buffer-from@1.1.1" } \ No newline at end of file diff --git a/node_modules/builtin-modules/package.json b/node_modules/builtin-modules/package.json index 830ed46e2..3ea9033b3 100644 --- a/node_modules/builtin-modules/package.json +++ b/node_modules/builtin-modules/package.json @@ -37,8 +37,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz" -,"_integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=" -,"_from": "builtin-modules@1.1.1" } \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/get-stream/package.json b/node_modules/cacheable-request/node_modules/get-stream/package.json index 646812e99..7c86cfc9f 100644 --- a/node_modules/cacheable-request/node_modules/get-stream/package.json +++ b/node_modules/cacheable-request/node_modules/get-stream/package.json @@ -1,53 +1,49 @@ { - "name": "get-stream", - "version": "5.1.0", - "description": "Get a stream as a string, buffer, or array", - "license": "MIT", - "repository": "sindresorhus/get-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "buffer-stream.js" - ], - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object" - ], - "dependencies": { - "pump": "^3.0.0" - }, - "devDependencies": { - "@types/node": "^11.13.0", - "ava": "^1.4.1", - "into-stream": "^5.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz" -,"_integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==" -,"_from": "get-stream@5.1.0" + "name": "get-stream", + "version": "5.1.0", + "description": "Get a stream as a string, buffer, or array", + "license": "MIT", + "repository": "sindresorhus/get-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "buffer-stream.js" + ], + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object" + ], + "dependencies": { + "pump": "^3.0.0" + }, + "devDependencies": { + "@types/node": "^11.13.0", + "ava": "^1.4.1", + "into-stream": "^5.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json index abe6ca778..f9e75a348 100644 --- a/node_modules/cacheable-request/node_modules/lowercase-keys/package.json +++ b/node_modules/cacheable-request/node_modules/lowercase-keys/package.json @@ -1,42 +1,38 @@ { - "name": "lowercase-keys", - "version": "2.0.0", - "description": "Lowercase the keys of an object", - "license": "MIT", - "repository": "sindresorhus/lowercase-keys", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "assign", - "extend", - "properties", - "lowercase", - "lower-case", - "case", - "keys", - "key" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz" -,"_integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==" -,"_from": "lowercase-keys@2.0.0" + "name": "lowercase-keys", + "version": "2.0.0", + "description": "Lowercase the keys of an object", + "license": "MIT", + "repository": "sindresorhus/lowercase-keys", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "assign", + "extend", + "properties", + "lowercase", + "lower-case", + "case", + "keys", + "key" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/cacheable-request/package.json b/node_modules/cacheable-request/package.json index 3b9865307..ba9468bd6 100644 --- a/node_modules/cacheable-request/package.json +++ b/node_modules/cacheable-request/package.json @@ -1,60 +1,56 @@ { - "name": "cacheable-request", - "version": "6.1.0", - "description": "Wrap native HTTP requests with RFC compliant cache support", - "license": "MIT", - "repository": "lukechilds/cacheable-request", - "author": "Luke Childs (http://lukechilds.co.uk)", - "main": "src/index.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava", - "coverage": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "src" - ], - "keywords": [ - "HTTP", - "HTTPS", - "cache", - "caching", - "layer", - "cacheable", - "RFC 7234", - "RFC", - "7234", - "compliant" - ], - "dependencies": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "devDependencies": { - "@keyv/sqlite": "^2.0.0", - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "create-test-server": "3.0.0", - "delay": "^4.0.0", - "eslint-config-xo-lukechilds": "^1.0.0", - "nyc": "^14.1.1", - "pify": "^4.0.0", - "sqlite3": "^4.0.2", - "this": "^1.0.2", - "xo": "^0.23.0" - }, - "xo": { - "extends": "xo-lukechilds" - } - -,"_resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz" -,"_integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==" -,"_from": "cacheable-request@6.1.0" + "name": "cacheable-request", + "version": "6.1.0", + "description": "Wrap native HTTP requests with RFC compliant cache support", + "license": "MIT", + "repository": "lukechilds/cacheable-request", + "author": "Luke Childs (http://lukechilds.co.uk)", + "main": "src/index.js", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava", + "coverage": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "src" + ], + "keywords": [ + "HTTP", + "HTTPS", + "cache", + "caching", + "layer", + "cacheable", + "RFC 7234", + "RFC", + "7234", + "compliant" + ], + "dependencies": { + "clone-response": "^1.0.2", + "get-stream": "^5.1.0", + "http-cache-semantics": "^4.0.0", + "keyv": "^3.0.0", + "lowercase-keys": "^2.0.0", + "normalize-url": "^4.1.0", + "responselike": "^1.0.2" + }, + "devDependencies": { + "@keyv/sqlite": "^2.0.0", + "ava": "^1.1.0", + "coveralls": "^3.0.0", + "create-test-server": "3.0.0", + "delay": "^4.0.0", + "eslint-config-xo-lukechilds": "^1.0.0", + "nyc": "^14.1.1", + "pify": "^4.0.0", + "sqlite3": "^4.0.2", + "this": "^1.0.2", + "xo": "^0.23.0" + }, + "xo": { + "extends": "xo-lukechilds" + } } \ No newline at end of file diff --git a/node_modules/callsites/package.json b/node_modules/callsites/package.json index 7e70e5686..46b1de0c6 100644 --- a/node_modules/callsites/package.json +++ b/node_modules/callsites/package.json @@ -1,43 +1,39 @@ { - "name": "callsites", - "version": "3.1.0", - "description": "Get callsites from the V8 stack trace API", - "license": "MIT", - "repository": "sindresorhus/callsites", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "stacktrace", - "v8", - "callsite", - "callsites", - "stack", - "trace", - "function", - "file", - "line", - "debug" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz" -,"_integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==" -,"_from": "callsites@3.1.0" + "name": "callsites", + "version": "3.1.0", + "description": "Get callsites from the V8 stack trace API", + "license": "MIT", + "repository": "sindresorhus/callsites", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "stacktrace", + "v8", + "callsite", + "callsites", + "stack", + "trace", + "function", + "file", + "line", + "debug" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/camelcase/package.json b/node_modules/camelcase/package.json index 07bc8fe9c..1b48bb0da 100644 --- a/node_modules/camelcase/package.json +++ b/node_modules/camelcase/package.json @@ -1,47 +1,43 @@ { - "name": "camelcase", - "version": "5.3.1", - "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", - "license": "MIT", - "repository": "sindresorhus/camelcase", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "camelcase", - "camel-case", - "camel", - "case", - "dash", - "hyphen", - "dot", - "underscore", - "separator", - "string", - "text", - "convert", - "pascalcase", - "pascal-case" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz" -,"_integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==" -,"_from": "camelcase@5.3.1" + "name": "camelcase", + "version": "5.3.1", + "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", + "license": "MIT", + "repository": "sindresorhus/camelcase", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "camelcase", + "camel-case", + "camel", + "case", + "dash", + "hyphen", + "dot", + "underscore", + "separator", + "string", + "text", + "convert", + "pascalcase", + "pascal-case" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/chalk/package.json b/node_modules/chalk/package.json index 0b96e3717..aed521aec 100644 --- a/node_modules/chalk/package.json +++ b/node_modules/chalk/package.json @@ -1,75 +1,71 @@ { - "name": "chalk", - "version": "2.4.2", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", - "bench": "matcha benchmark.js", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "index.js", - "templates.js", - "types/index.d.ts", - "index.js.flow" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "devDependencies": { - "ava": "*", - "coveralls": "^3.0.0", - "execa": "^0.9.0", - "flow-bin": "^0.68.0", - "import-fresh": "^2.0.0", - "matcha": "^0.7.0", - "nyc": "^11.0.2", - "resolve-from": "^4.0.0", - "typescript": "^2.5.3", - "xo": "*" - }, - "types": "types/index.d.ts", - "xo": { - "envs": [ - "node", - "mocha" - ], - "ignores": [ - "test/_flow.js" - ] - } - -,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz" -,"_integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==" -,"_from": "chalk@2.4.2" + "name": "chalk", + "version": "2.4.2", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && tsc --project types && flow --max-warnings=0 && nyc ava", + "bench": "matcha benchmark.js", + "coveralls": "nyc report --reporter=text-lcov | coveralls" + }, + "files": [ + "index.js", + "templates.js", + "types/index.d.ts", + "index.js.flow" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "devDependencies": { + "ava": "*", + "coveralls": "^3.0.0", + "execa": "^0.9.0", + "flow-bin": "^0.68.0", + "import-fresh": "^2.0.0", + "matcha": "^0.7.0", + "nyc": "^11.0.2", + "resolve-from": "^4.0.0", + "typescript": "^2.5.3", + "xo": "*" + }, + "types": "types/index.d.ts", + "xo": { + "envs": [ + "node", + "mocha" + ], + "ignores": [ + "test/_flow.js" + ] + } } \ No newline at end of file diff --git a/node_modules/charenc/package.json b/node_modules/charenc/package.json index df5475001..80ac698de 100644 --- a/node_modules/charenc/package.json +++ b/node_modules/charenc/package.json @@ -21,8 +21,4 @@ "engines": { "node": "*" } - -,"_resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz" -,"_integrity": "sha1-wKHS86cJLgN3S/qD8UwPxXkKhmc=" -,"_from": "charenc@0.0.2" } \ No newline at end of file diff --git a/node_modules/chokidar/node_modules/anymatch/package.json b/node_modules/chokidar/node_modules/anymatch/package.json index 5b9f2c4fa..aa33dbcdb 100644 --- a/node_modules/chokidar/node_modules/anymatch/package.json +++ b/node_modules/chokidar/node_modules/anymatch/package.json @@ -45,8 +45,4 @@ "engines": { "node": ">= 8" } - -,"_resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz" -,"_integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==" -,"_from": "anymatch@3.1.1" } \ No newline at end of file diff --git a/node_modules/chokidar/node_modules/normalize-path/package.json b/node_modules/chokidar/node_modules/normalize-path/package.json index 73ab0c933..101634b95 100644 --- a/node_modules/chokidar/node_modules/normalize-path/package.json +++ b/node_modules/chokidar/node_modules/normalize-path/package.json @@ -74,8 +74,4 @@ "reflinks": true } } - -,"_resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz" -,"_integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==" -,"_from": "normalize-path@3.0.0" } \ No newline at end of file diff --git a/node_modules/chokidar/package.json b/node_modules/chokidar/package.json index 0891bbdf2..84d082a47 100644 --- a/node_modules/chokidar/package.json +++ b/node_modules/chokidar/package.json @@ -125,8 +125,4 @@ "text" ] } - -,"_resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.4.0.tgz" -,"_integrity": "sha512-aXAaho2VJtisB/1fg1+3nlLJqGOuewTzQpd/Tz0yTg2R0e4IGtshYvtjowyEumcBv2z+y4+kc75Mz7j5xJskcQ==" -,"_from": "chokidar@3.4.0" } \ No newline at end of file diff --git a/node_modules/chunkd/package.json b/node_modules/chunkd/package.json index ea5843112..6dfab968b 100644 --- a/node_modules/chunkd/package.json +++ b/node_modules/chunkd/package.json @@ -1,58 +1,54 @@ { - "name": "chunkd", - "version": "2.0.1", - "description": "Get a chunk of an array based on the total number of chunks and current index", - "main": "dist/chunkd.js", - "repository": "jamiebuilds/chunkd", - "author": "Jamie Kyle ", - "license": "MIT", - "keywords": [ - "util", - "chunk", - "index", - "total" - ], - "files": [ - "dist" - ], - "scripts": { - "check:typescript": "tsc --noEmit", - "check:prettier": "prettier --check '**'", - "build": "rm -rf dist && tsc", - "format": "prettier --write '**'", - "test": "ava", - "prepublishOnly": "npm run -s build" - }, - "devDependencies": { - "ava": "^2.4.0", - "husky": "^3.1.0", - "lint-staged": "^9.4.3", - "prettier": "^1.19.1", - "ts-node": "^8.5.2", - "typescript": "^3.7.2" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*": [ - "prettier --write", - "git add" - ] - }, - "ava": { - "compileEnhancements": false, - "extensions": [ - "ts" - ], - "require": [ - "ts-node/register" - ] - } - -,"_resolved": "https://registry.npmjs.org/chunkd/-/chunkd-2.0.1.tgz" -,"_integrity": "sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==" -,"_from": "chunkd@2.0.1" + "name": "chunkd", + "version": "2.0.1", + "description": "Get a chunk of an array based on the total number of chunks and current index", + "main": "dist/chunkd.js", + "repository": "jamiebuilds/chunkd", + "author": "Jamie Kyle ", + "license": "MIT", + "keywords": [ + "util", + "chunk", + "index", + "total" + ], + "files": [ + "dist" + ], + "scripts": { + "check:typescript": "tsc --noEmit", + "check:prettier": "prettier --check '**'", + "build": "rm -rf dist && tsc", + "format": "prettier --write '**'", + "test": "ava", + "prepublishOnly": "npm run -s build" + }, + "devDependencies": { + "ava": "^2.4.0", + "husky": "^3.1.0", + "lint-staged": "^9.4.3", + "prettier": "^1.19.1", + "ts-node": "^8.5.2", + "typescript": "^3.7.2" + }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*": [ + "prettier --write", + "git add" + ] + }, + "ava": { + "compileEnhancements": false, + "extensions": [ + "ts" + ], + "require": [ + "ts-node/register" + ] + } } \ No newline at end of file diff --git a/node_modules/ci-info/package.json b/node_modules/ci-info/package.json index a62c59e19..b3f5c2ca9 100644 --- a/node_modules/ci-info/package.json +++ b/node_modules/ci-info/package.json @@ -33,8 +33,4 @@ 55.778231, 12.593179 ] - -,"_resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz" -,"_integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==" -,"_from": "ci-info@2.0.0" } \ No newline at end of file diff --git a/node_modules/ci-parallel-vars/package.json b/node_modules/ci-parallel-vars/package.json index a865c584e..5e6cc758a 100644 --- a/node_modules/ci-parallel-vars/package.json +++ b/node_modules/ci-parallel-vars/package.json @@ -33,8 +33,4 @@ "flow-bin": "^0.73.0", "spawndamnit": "^2.0.0" } - -,"_resolved": "https://registry.npmjs.org/ci-parallel-vars/-/ci-parallel-vars-1.0.0.tgz" -,"_integrity": "sha512-u6dx20FBXm+apMi+5x7UVm6EH7BL1gc4XrcnQewjcB7HWRcor/V5qWc3RG2HwpgDJ26gIi2DSEu3B7sXynAw/g==" -,"_from": "ci-parallel-vars@1.0.0" } \ No newline at end of file diff --git a/node_modules/clean-stack/package.json b/node_modules/clean-stack/package.json index c727708c6..fb9bd0b77 100644 --- a/node_modules/clean-stack/package.json +++ b/node_modules/clean-stack/package.json @@ -1,43 +1,39 @@ { - "name": "clean-stack", - "version": "2.2.0", - "description": "Clean up error stack traces", - "license": "MIT", - "repository": "sindresorhus/clean-stack", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "clean", - "stack", - "trace", - "traces", - "error", - "err", - "electron" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "browser": { - "os": false - } - -,"_resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz" -,"_integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==" -,"_from": "clean-stack@2.2.0" + "name": "clean-stack", + "version": "2.2.0", + "description": "Clean up error stack traces", + "license": "MIT", + "repository": "sindresorhus/clean-stack", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "clean", + "stack", + "trace", + "traces", + "error", + "err", + "electron" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "browser": { + "os": false + } } \ No newline at end of file diff --git a/node_modules/clean-yaml-object/package.json b/node_modules/clean-yaml-object/package.json index 6b362458f..27a6564ba 100644 --- a/node_modules/clean-yaml-object/package.json +++ b/node_modules/clean-yaml-object/package.json @@ -34,8 +34,4 @@ "nyc": "^5.3.0", "xo": "^0.12.1" } - -,"_resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz" -,"_integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=" -,"_from": "clean-yaml-object@0.1.0" } \ No newline at end of file diff --git a/node_modules/cli-boxes/package.json b/node_modules/cli-boxes/package.json index c4becb60f..f77701b7e 100644 --- a/node_modules/cli-boxes/package.json +++ b/node_modules/cli-boxes/package.json @@ -1,45 +1,41 @@ { - "name": "cli-boxes", - "version": "2.2.0", - "description": "Boxes for use in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-boxes", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "boxes.json" - ], - "keywords": [ - "cli", - "box", - "boxes", - "terminal", - "term", - "console", - "ascii", - "unicode", - "border", - "text", - "json" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.0.tgz" -,"_integrity": "sha512-gpaBrMAizVEANOpfZp/EEUixTXDyGt7DFzdK5hU+UbWt/J0lB0w20ncZj59Z9a93xHb9u12zF5BS6i9RKbtg4w==" -,"_from": "cli-boxes@2.2.0" + "name": "cli-boxes", + "version": "2.2.0", + "description": "Boxes for use in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-boxes", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "boxes.json" + ], + "keywords": [ + "cli", + "box", + "boxes", + "terminal", + "term", + "console", + "ascii", + "unicode", + "border", + "text", + "json" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/cli-cursor/package.json b/node_modules/cli-cursor/package.json index c4e5e9014..38d50d2c4 100644 --- a/node_modules/cli-cursor/package.json +++ b/node_modules/cli-cursor/package.json @@ -1,50 +1,46 @@ { - "name": "cli-cursor", - "version": "3.1.0", - "description": "Toggle the CLI cursor", - "license": "MIT", - "repository": "sindresorhus/cli-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "cursor", - "ansi", - "toggle", - "display", - "show", - "hide", - "term", - "terminal", - "console", - "tty", - "shell", - "command-line" - ], - "dependencies": { - "restore-cursor": "^3.1.0" - }, - "devDependencies": { - "@types/node": "^12.0.7", - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz" -,"_integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==" -,"_from": "cli-cursor@3.1.0" + "name": "cli-cursor", + "version": "3.1.0", + "description": "Toggle the CLI cursor", + "license": "MIT", + "repository": "sindresorhus/cli-cursor", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "cursor", + "ansi", + "toggle", + "display", + "show", + "hide", + "term", + "terminal", + "console", + "tty", + "shell", + "command-line" + ], + "dependencies": { + "restore-cursor": "^3.1.0" + }, + "devDependencies": { + "@types/node": "^12.0.7", + "ava": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/cli-spinners/package.json b/node_modules/cli-spinners/package.json index 4fb3ec4b0..23323c5f4 100644 --- a/node_modules/cli-spinners/package.json +++ b/node_modules/cli-spinners/package.json @@ -1,51 +1,47 @@ { - "name": "cli-spinners", - "version": "2.3.0", - "description": "Spinners for use in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-spinners", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd", - "asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet" - }, - "files": [ - "index.js", - "index.d.ts", - "spinners.json" - ], - "keywords": [ - "cli", - "spinner", - "spinners", - "terminal", - "term", - "console", - "ascii", - "unicode", - "loading", - "indicator", - "progress", - "busy", - "wait", - "idle", - "json" - ], - "devDependencies": { - "ava": "^1.4.1", - "log-update": "^3.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.3.0.tgz" -,"_integrity": "sha512-Xs2Hf2nzrvJMFKimOR7YR0QwZ8fc0u98kdtwN1eNAZzNQgH3vK2pXzff6GJtKh7S5hoJ87ECiAiZFS2fb5Ii2w==" -,"_from": "cli-spinners@2.3.0" + "name": "cli-spinners", + "version": "2.3.0", + "description": "Spinners for use in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-spinners", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd", + "asciicast": "asciinema rec --command='node example-all.js' --title='cli-spinner' --quiet" + }, + "files": [ + "index.js", + "index.d.ts", + "spinners.json" + ], + "keywords": [ + "cli", + "spinner", + "spinners", + "terminal", + "term", + "console", + "ascii", + "unicode", + "loading", + "indicator", + "progress", + "busy", + "wait", + "idle", + "json" + ], + "devDependencies": { + "ava": "^1.4.1", + "log-update": "^3.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/cli-truncate/package.json b/node_modules/cli-truncate/package.json index e4933a52c..0d9e9a141 100644 --- a/node_modules/cli-truncate/package.json +++ b/node_modules/cli-truncate/package.json @@ -1,50 +1,46 @@ { - "name": "cli-truncate", - "version": "2.1.0", - "description": "Truncate a string to a specific width in the terminal", - "license": "MIT", - "repository": "sindresorhus/cli-truncate", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "truncate", - "ellipsis", - "text", - "limit", - "slice", - "cli", - "terminal", - "term", - "shell", - "width", - "ansi", - "string" - ], - "dependencies": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz" -,"_integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==" -,"_from": "cli-truncate@2.1.0" + "name": "cli-truncate", + "version": "2.1.0", + "description": "Truncate a string to a specific width in the terminal", + "license": "MIT", + "repository": "sindresorhus/cli-truncate", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "truncate", + "ellipsis", + "text", + "limit", + "slice", + "cli", + "terminal", + "term", + "shell", + "width", + "ansi", + "string" + ], + "dependencies": { + "slice-ansi": "^3.0.0", + "string-width": "^4.2.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/cliui/package.json b/node_modules/cliui/package.json index 513f5ba00..2869089cc 100644 --- a/node_modules/cliui/package.json +++ b/node_modules/cliui/package.json @@ -62,8 +62,4 @@ "engine": { "node": ">=8" } - -,"_resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz" -,"_integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==" -,"_from": "cliui@6.0.0" } \ No newline at end of file diff --git a/node_modules/clone-response/package.json b/node_modules/clone-response/package.json index e6bead037..24e834356 100644 --- a/node_modules/clone-response/package.json +++ b/node_modules/clone-response/package.json @@ -41,8 +41,4 @@ "pify": "^3.0.0", "xo": "^0.19.0" } - -,"_resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz" -,"_integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=" -,"_from": "clone-response@1.0.2" } \ No newline at end of file diff --git a/node_modules/clone/package.json b/node_modules/clone/package.json index 075e6aeae..9305b656e 100644 --- a/node_modules/clone/package.json +++ b/node_modules/clone/package.json @@ -48,8 +48,4 @@ "scripts": { "test": "nodeunit test.js" } - -,"_resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz" -,"_integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=" -,"_from": "clone@1.0.4" } \ No newline at end of file diff --git a/node_modules/code-excerpt/package.json b/node_modules/code-excerpt/package.json index 9ec17bf8e..1f55433e7 100644 --- a/node_modules/code-excerpt/package.json +++ b/node_modules/code-excerpt/package.json @@ -28,8 +28,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-2.1.1.tgz" -,"_integrity": "sha512-tJLhH3EpFm/1x7heIW0hemXJTUU5EWl2V0EIX558jp05Mt1U6DVryCgkp3l37cxqs+DNbNgxG43SkwJXpQ14Jw==" -,"_from": "code-excerpt@2.1.1" } \ No newline at end of file diff --git a/node_modules/color-convert/package.json b/node_modules/color-convert/package.json index faaa48587..6446c22d5 100644 --- a/node_modules/color-convert/package.json +++ b/node_modules/color-convert/package.json @@ -43,8 +43,4 @@ "dependencies": { "color-name": "1.1.3" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz" -,"_integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==" -,"_from": "color-convert@1.9.3" } \ No newline at end of file diff --git a/node_modules/color-name/package.json b/node_modules/color-name/package.json index 0afa4856d..40d588535 100644 --- a/node_modules/color-name/package.json +++ b/node_modules/color-name/package.json @@ -22,8 +22,4 @@ "url": "https://github.com/dfcreative/color-name/issues" }, "homepage": "https://github.com/dfcreative/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz" -,"_integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" -,"_from": "color-name@1.1.3" } \ No newline at end of file diff --git a/node_modules/commander/package.json b/node_modules/commander/package.json index 4c42e53cc..8b14f0069 100644 --- a/node_modules/commander/package.json +++ b/node_modules/commander/package.json @@ -35,8 +35,4 @@ "typescript": "^3.6.3" }, "typings": "typings/index.d.ts" - -,"_resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz" -,"_integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==" -,"_from": "commander@2.20.3" } \ No newline at end of file diff --git a/node_modules/common-path-prefix/package.json b/node_modules/common-path-prefix/package.json index 81747f16b..5fbc77c3a 100644 --- a/node_modules/common-path-prefix/package.json +++ b/node_modules/common-path-prefix/package.json @@ -38,8 +38,4 @@ "nyc": "^14.1.1", "standard": "^14.0.2" } - -,"_resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz" -,"_integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==" -,"_from": "common-path-prefix@3.0.0" } \ No newline at end of file diff --git a/node_modules/concat-map/package.json b/node_modules/concat-map/package.json index 03d173495..396f2c1b9 100644 --- a/node_modules/concat-map/package.json +++ b/node_modules/concat-map/package.json @@ -1,47 +1,59 @@ { - "name" : "concat-map", - "description" : "concatenative mapdashery", - "version" : "0.0.1", - "repository" : { - "type" : "git", - "url" : "git://github.com/substack/node-concat-map.git" - }, - "main" : "index.js", - "keywords" : [ - "concat", - "concatMap", - "map", - "functional", - "higher-order" - ], - "directories" : { - "example" : "example", - "test" : "test" - }, - "scripts" : { - "test" : "tape test/*.js" - }, - "devDependencies" : { - "tape" : "~2.4.0" - }, - "license" : "MIT", - "author" : { - "name" : "James Halliday", - "email" : "mail@substack.net", - "url" : "http://substack.net" - }, - "testling" : { - "files" : "test/*.js", - "browsers" : { - "ie" : [ 6, 7, 8, 9 ], - "ff" : [ 3.5, 10, 15.0 ], - "chrome" : [ 10, 22 ], - "safari" : [ 5.1 ], - "opera" : [ 12 ] - } + "name": "concat-map", + "description": "concatenative mapdashery", + "version": "0.0.1", + "repository": { + "type": "git", + "url": "git://github.com/substack/node-concat-map.git" + }, + "main": "index.js", + "keywords": [ + "concat", + "concatMap", + "map", + "functional", + "higher-order" + ], + "directories": { + "example": "example", + "test": "test" + }, + "scripts": { + "test": "tape test/*.js" + }, + "devDependencies": { + "tape": "~2.4.0" + }, + "license": "MIT", + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + }, + "testling": { + "files": "test/*.js", + "browsers": { + "ie": [ + 6, + 7, + 8, + 9 + ], + "ff": [ + 3.5, + 10, + 15 + ], + "chrome": [ + 10, + 22 + ], + "safari": [ + 5.1 + ], + "opera": [ + 12 + ] } - -,"_resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz" -,"_integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" -,"_from": "concat-map@0.0.1" + } } \ No newline at end of file diff --git a/node_modules/concordance/node_modules/md5-hex/package.json b/node_modules/concordance/node_modules/md5-hex/package.json index 9898d7cc7..f45fb17da 100644 --- a/node_modules/concordance/node_modules/md5-hex/package.json +++ b/node_modules/concordance/node_modules/md5-hex/package.json @@ -36,8 +36,4 @@ "xo": "*" }, "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-2.0.0.tgz" -,"_integrity": "sha1-0FiOnxx0lUSS7NJKwKxs6ZfZLjM=" -,"_from": "md5-hex@2.0.0" } \ No newline at end of file diff --git a/node_modules/concordance/node_modules/semver/package.json b/node_modules/concordance/node_modules/semver/package.json index 31e12dde0..90e287ecf 100644 --- a/node_modules/concordance/node_modules/semver/package.json +++ b/node_modules/concordance/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" -,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" -,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/concordance/package.json b/node_modules/concordance/package.json index 0810c2a4b..6c8901446 100644 --- a/node_modules/concordance/package.json +++ b/node_modules/concordance/package.json @@ -61,8 +61,4 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" - -,"_resolved": "https://registry.npmjs.org/concordance/-/concordance-4.0.0.tgz" -,"_integrity": "sha512-l0RFuB8RLfCS0Pt2Id39/oCPykE01pyxgAFypWTlaGRgvLkZrtczZ8atEHpTeEIW+zYWXTBuA9cCSeEOScxReQ==" -,"_from": "concordance@4.0.0" } \ No newline at end of file diff --git a/node_modules/configstore/package.json b/node_modules/configstore/package.json index 26ac1332f..08dd5b83a 100644 --- a/node_modules/configstore/package.json +++ b/node_modules/configstore/package.json @@ -1,50 +1,46 @@ { - "name": "configstore", - "version": "5.0.1", - "description": "Easily load and save config without having to think about where and how", - "license": "BSD-2-Clause", - "repository": "yeoman/configstore", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "config", - "store", - "storage", - "configuration", - "settings", - "preferences", - "json", - "data", - "persist", - "persistent", - "save" - ], - "dependencies": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz" -,"_integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==" -,"_from": "configstore@5.0.1" + "name": "configstore", + "version": "5.0.1", + "description": "Easily load and save config without having to think about where and how", + "license": "BSD-2-Clause", + "repository": "yeoman/configstore", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "config", + "store", + "storage", + "configuration", + "settings", + "preferences", + "json", + "data", + "persist", + "persistent", + "save" + ], + "dependencies": { + "dot-prop": "^5.2.0", + "graceful-fs": "^4.1.2", + "make-dir": "^3.0.0", + "unique-string": "^2.0.0", + "write-file-atomic": "^3.0.0", + "xdg-basedir": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/console-log-level/package.json b/node_modules/console-log-level/package.json index a511957fd..55a7bcc1c 100644 --- a/node_modules/console-log-level/package.json +++ b/node_modules/console-log-level/package.json @@ -34,8 +34,4 @@ 55.778253, 12.593208 ] - -,"_resolved": "https://registry.npmjs.org/console-log-level/-/console-log-level-1.4.1.tgz" -,"_integrity": "sha512-VZzbIORbP+PPcN/gg3DXClTLPLg5Slwd5fL2MIc+o1qZ4BXBvWyc6QxPk6T/Mkr6IVjRpoAGf32XxP3ZWMVRcQ==" -,"_from": "console-log-level@1.4.1" } \ No newline at end of file diff --git a/node_modules/convert-source-map/package.json b/node_modules/convert-source-map/package.json index 60f4a887c..40ec9f5af 100644 --- a/node_modules/convert-source-map/package.json +++ b/node_modules/convert-source-map/package.json @@ -41,8 +41,4 @@ "browser": { "fs": false } - -,"_resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz" -,"_integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==" -,"_from": "convert-source-map@1.7.0" } \ No newline at end of file diff --git a/node_modules/convert-to-spaces/package.json b/node_modules/convert-to-spaces/package.json index 59b226f37..330450e4d 100644 --- a/node_modules/convert-to-spaces/package.json +++ b/node_modules/convert-to-spaces/package.json @@ -22,8 +22,4 @@ "ava": "^0.18.2", "xo": "^0.17.1" } - -,"_resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz" -,"_integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=" -,"_from": "convert-to-spaces@1.0.2" } \ No newline at end of file diff --git a/node_modules/cross-spawn/node_modules/semver/package.json b/node_modules/cross-spawn/node_modules/semver/package.json index 31e12dde0..90e287ecf 100644 --- a/node_modules/cross-spawn/node_modules/semver/package.json +++ b/node_modules/cross-spawn/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" -,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" -,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/cross-spawn/package.json b/node_modules/cross-spawn/package.json index 3d5bf3149..f1c88a040 100644 --- a/node_modules/cross-spawn/package.json +++ b/node_modules/cross-spawn/package.json @@ -73,8 +73,4 @@ "engines": { "node": ">=4.8" } - -,"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz" -,"_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==" -,"_from": "cross-spawn@6.0.5" } \ No newline at end of file diff --git a/node_modules/crypt/package.json b/node_modules/crypt/package.json index 7177e5102..b4b8c991c 100644 --- a/node_modules/crypt/package.json +++ b/node_modules/crypt/package.json @@ -19,8 +19,4 @@ "engines": { "node": "*" } - -,"_resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz" -,"_integrity": "sha1-iNf/fsDfuG9xPch7u0LQRNPmxBs=" -,"_from": "crypt@0.0.2" } \ No newline at end of file diff --git a/node_modules/crypto-random-string/package.json b/node_modules/crypto-random-string/package.json index 6089e2c65..ef7255a61 100644 --- a/node_modules/crypto-random-string/package.json +++ b/node_modules/crypto-random-string/package.json @@ -1,44 +1,40 @@ { - "name": "crypto-random-string", - "version": "2.0.0", - "description": "Generate a cryptographically strong random string", - "license": "MIT", - "repository": "sindresorhus/crypto-random-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "random", - "string", - "text", - "id", - "identifier", - "slug", - "salt", - "crypto", - "strong", - "secure", - "hex" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz" -,"_integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==" -,"_from": "crypto-random-string@2.0.0" + "name": "crypto-random-string", + "version": "2.0.0", + "description": "Generate a cryptographically strong random string", + "license": "MIT", + "repository": "sindresorhus/crypto-random-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "random", + "string", + "text", + "id", + "identifier", + "slug", + "salt", + "crypto", + "strong", + "secure", + "hex" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/currently-unhandled/package.json b/node_modules/currently-unhandled/package.json index dc5fb68f0..99380249b 100644 --- a/node_modules/currently-unhandled/package.json +++ b/node_modules/currently-unhandled/package.json @@ -68,8 +68,4 @@ "node" ] } - -,"_resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz" -,"_integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=" -,"_from": "currently-unhandled@0.4.1" } \ No newline at end of file diff --git a/node_modules/date-time/package.json b/node_modules/date-time/package.json index 941e5ee31..3b28adcd3 100644 --- a/node_modules/date-time/package.json +++ b/node_modules/date-time/package.json @@ -36,8 +36,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/date-time/-/date-time-2.1.0.tgz" -,"_integrity": "sha512-/9+C44X7lot0IeiyfgJmETtRMhBidBYM2QFFIkGa0U1k+hSyY87Nw7PY3eDqpvCBm7I3WCSfPeZskW/YYq6m4g==" -,"_from": "date-time@2.1.0" } \ No newline at end of file diff --git a/node_modules/debug/package.json b/node_modules/debug/package.json index c8c751660..a71916fc4 100644 --- a/node_modules/debug/package.json +++ b/node_modules/debug/package.json @@ -60,8 +60,4 @@ "main": "./src/index.js", "browser": "./src/browser.js", "unpkg": "./dist/debug.js" - -,"_resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz" -,"_integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==" -,"_from": "debug@4.1.1" } \ No newline at end of file diff --git a/node_modules/decamelize/package.json b/node_modules/decamelize/package.json index 5e14849d9..861013122 100644 --- a/node_modules/decamelize/package.json +++ b/node_modules/decamelize/package.json @@ -35,8 +35,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz" -,"_integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=" -,"_from": "decamelize@1.2.0" } \ No newline at end of file diff --git a/node_modules/decompress-response/package.json b/node_modules/decompress-response/package.json index 85552180c..25f1828ef 100644 --- a/node_modules/decompress-response/package.json +++ b/node_modules/decompress-response/package.json @@ -50,8 +50,4 @@ "pify": "^3.0.0", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz" -,"_integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=" -,"_from": "decompress-response@3.3.0" } \ No newline at end of file diff --git a/node_modules/deep-extend/package.json b/node_modules/deep-extend/package.json index 3aca83419..e507ea0fb 100644 --- a/node_modules/deep-extend/package.json +++ b/node_modules/deep-extend/package.json @@ -59,8 +59,4 @@ "index.js", "lib/" ] - -,"_resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz" -,"_integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==" -,"_from": "deep-extend@0.6.0" } \ No newline at end of file diff --git a/node_modules/defaults/package.json b/node_modules/defaults/package.json index 218c9d9f0..f34731bf6 100644 --- a/node_modules/defaults/package.json +++ b/node_modules/defaults/package.json @@ -23,8 +23,4 @@ "devDependencies": { "tap": "^2.0.0" } - -,"_resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz" -,"_integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=" -,"_from": "defaults@1.0.3" } \ No newline at end of file diff --git a/node_modules/defer-to-connect/package.json b/node_modules/defer-to-connect/package.json index 7a083be4c..a47091f68 100644 --- a/node_modules/defer-to-connect/package.json +++ b/node_modules/defer-to-connect/package.json @@ -65,14 +65,10 @@ ], "require": [ "ts-node/register" - ], - "files": [ - "!dist/tests/test.d.ts" - ] + ], + "files": [ + "!dist/tests/test.d.ts" + ] }, "types": "dist" - -,"_resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz" -,"_integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==" -,"_from": "defer-to-connect@1.1.3" } \ No newline at end of file diff --git a/node_modules/del/node_modules/globby/package.json b/node_modules/del/node_modules/globby/package.json index 16a8110db..e8b134ab4 100644 --- a/node_modules/del/node_modules/globby/package.json +++ b/node_modules/del/node_modules/globby/package.json @@ -1,87 +1,83 @@ { - "name": "globby", - "version": "10.0.2", - "description": "Extends `glob` with support for multiple patterns and exposes a Promise API", - "license": "MIT", - "repository": "sindresorhus/globby", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "bench": "npm update glob-stream fast-glob && matcha bench.js", - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "gitignore.js", - "index.d.ts", - "stream-utils.js" - ], - "keywords": [ - "all", - "array", - "directories", - "expand", - "files", - "filesystem", - "filter", - "find", - "fnmatch", - "folders", - "fs", - "glob", - "globbing", - "globs", - "gulpfriendly", - "match", - "matcher", - "minimatch", - "multi", - "multiple", - "paths", - "pattern", - "patterns", - "traverse", - "util", - "utility", - "wildcard", - "wildcards", - "promise", - "gitignore", - "git" - ], - "dependencies": { - "@types/glob": "^7.1.1", - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.0.3", - "glob": "^7.1.3", - "ignore": "^5.1.1", - "merge2": "^1.2.3", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "get-stream": "^5.1.0", - "glob-stream": "^6.1.0", - "globby": "sindresorhus/globby#master", - "matcha": "^0.7.0", - "rimraf": "^2.6.3", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } - -,"_resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz" -,"_integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==" -,"_from": "globby@10.0.2" + "name": "globby", + "version": "10.0.2", + "description": "Extends `glob` with support for multiple patterns and exposes a Promise API", + "license": "MIT", + "repository": "sindresorhus/globby", + "author": { + "email": "sindresorhus@gmail.com", + "name": "Sindre Sorhus", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "bench": "npm update glob-stream fast-glob && matcha bench.js", + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "gitignore.js", + "index.d.ts", + "stream-utils.js" + ], + "keywords": [ + "all", + "array", + "directories", + "expand", + "files", + "filesystem", + "filter", + "find", + "fnmatch", + "folders", + "fs", + "glob", + "globbing", + "globs", + "gulpfriendly", + "match", + "matcher", + "minimatch", + "multi", + "multiple", + "paths", + "pattern", + "patterns", + "traverse", + "util", + "utility", + "wildcard", + "wildcards", + "promise", + "gitignore", + "git" + ], + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "get-stream": "^5.1.0", + "glob-stream": "^6.1.0", + "globby": "sindresorhus/globby#master", + "matcha": "^0.7.0", + "rimraf": "^2.6.3", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } } \ No newline at end of file diff --git a/node_modules/del/node_modules/p-map/package.json b/node_modules/del/node_modules/p-map/package.json index 72331066c..df6f80d15 100644 --- a/node_modules/del/node_modules/p-map/package.json +++ b/node_modules/del/node_modules/p-map/package.json @@ -1,56 +1,52 @@ { - "name": "p-map", - "version": "3.0.0", - "description": "Map over promises concurrently", - "license": "MIT", - "repository": "sindresorhus/p-map", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "map", - "resolved", - "wait", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "async", - "await", - "promises", - "concurrently", - "concurrency", - "parallel", - "bluebird" - ], - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "delay": "^4.1.0", - "in-range": "^2.0.0", - "random-int": "^2.0.0", - "time-span": "^3.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz" -,"_integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==" -,"_from": "p-map@3.0.0" + "name": "p-map", + "version": "3.0.0", + "description": "Map over promises concurrently", + "license": "MIT", + "repository": "sindresorhus/p-map", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "map", + "resolved", + "wait", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "async", + "await", + "promises", + "concurrently", + "concurrency", + "parallel", + "bluebird" + ], + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "delay": "^4.1.0", + "in-range": "^2.0.0", + "random-int": "^2.0.0", + "time-span": "^3.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/del/package.json b/node_modules/del/package.json index 9d3e2a7af..e230d78b8 100644 --- a/node_modules/del/package.json +++ b/node_modules/del/package.json @@ -1,69 +1,65 @@ { - "name": "del", - "version": "5.1.0", - "description": "Delete files and directories", - "license": "MIT", - "repository": "sindresorhus/del", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "node benchmark.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "delete", - "files", - "folders", - "directories", - "remove", - "destroy", - "trash", - "unlink", - "clean", - "cleaning", - "cleanup", - "rm", - "rmrf", - "rimraf", - "rmdir", - "glob", - "gulpfriendly", - "file", - "folder", - "directory", - "fs", - "filesystem" - ], - "dependencies": { - "globby": "^10.0.1", - "graceful-fs": "^4.2.2", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.1", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.3.0", - "benchmark": "^2.1.4", - "make-dir": "^3.0.0", - "tempy": "^0.3.0", - "tsd": "^0.7.4", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/del/-/del-5.1.0.tgz" -,"_integrity": "sha512-wH9xOVHnczo9jN2IW68BabcecVPxacIA3g/7z6vhSU/4stOKQzeCRK0yD0A24WiAAUJmmVpWqrERcTxnLo3AnA==" -,"_from": "del@5.1.0" + "name": "del", + "version": "5.1.0", + "description": "Delete files and directories", + "license": "MIT", + "repository": "sindresorhus/del", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "node benchmark.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "delete", + "files", + "folders", + "directories", + "remove", + "destroy", + "trash", + "unlink", + "clean", + "cleaning", + "cleanup", + "rm", + "rmrf", + "rimraf", + "rmdir", + "glob", + "gulpfriendly", + "file", + "folder", + "directory", + "fs", + "filesystem" + ], + "dependencies": { + "globby": "^10.0.1", + "graceful-fs": "^4.2.2", + "is-glob": "^4.0.1", + "is-path-cwd": "^2.2.0", + "is-path-inside": "^3.0.1", + "p-map": "^3.0.0", + "rimraf": "^3.0.0", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.3.0", + "benchmark": "^2.1.4", + "make-dir": "^3.0.0", + "tempy": "^0.3.0", + "tsd": "^0.7.4", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/deprecation/package.json b/node_modules/deprecation/package.json index bdbdea7e7..02e6bc9d4 100644 --- a/node_modules/deprecation/package.json +++ b/node_modules/deprecation/package.json @@ -31,8 +31,4 @@ "@pika/plugin-standard-pkg": "^0.4.0", "semantic-release": "^15.13.3" } - -,"_resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz" -,"_integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" -,"_from": "deprecation@2.3.1" } \ No newline at end of file diff --git a/node_modules/diff/package.json b/node_modules/diff/package.json index 1c2f99fd6..4ff484e88 100644 --- a/node_modules/diff/package.json +++ b/node_modules/diff/package.json @@ -70,8 +70,4 @@ "webpack-dev-server": "^3.1.14" }, "optionalDependencies": {} - -,"_resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz" -,"_integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" -,"_from": "diff@4.0.2" } \ No newline at end of file diff --git a/node_modules/dir-glob/package.json b/node_modules/dir-glob/package.json index e71af2f29..e2334d4af 100644 --- a/node_modules/dir-glob/package.json +++ b/node_modules/dir-glob/package.json @@ -1,42 +1,38 @@ { - "name": "dir-glob", - "version": "3.0.1", - "description": "Convert directories to glob compatible strings", - "license": "MIT", - "repository": "kevva/dir-glob", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "convert", - "directory", - "extensions", - "files", - "glob" - ], - "dependencies": { - "path-type": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "del": "^4.1.1", - "make-dir": "^3.0.0", - "rimraf": "^2.5.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz" -,"_integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==" -,"_from": "dir-glob@3.0.1" + "name": "dir-glob", + "version": "3.0.1", + "description": "Convert directories to glob compatible strings", + "license": "MIT", + "repository": "kevva/dir-glob", + "author": { + "name": "Kevin Mårtensson", + "email": "kevinmartensson@gmail.com", + "url": "github.com/kevva" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "convert", + "directory", + "extensions", + "files", + "glob" + ], + "dependencies": { + "path-type": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "del": "^4.1.1", + "make-dir": "^3.0.0", + "rimraf": "^2.5.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/dot-prop/package.json b/node_modules/dot-prop/package.json index c242c18ce..a1c3610c3 100644 --- a/node_modules/dot-prop/package.json +++ b/node_modules/dot-prop/package.json @@ -1,49 +1,45 @@ { - "name": "dot-prop", - "version": "5.2.0", - "description": "Get, set, or delete a property from a nested object using a dot path", - "license": "MIT", - "repository": "sindresorhus/dot-prop", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "node bench.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "prop", - "property", - "dot", - "path", - "get", - "set", - "delete", - "access", - "notation", - "dotty" - ], - "dependencies": { - "is-obj": "^2.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "benchmark": "^2.1.4", - "tsd": "^0.7.2", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz" -,"_integrity": "sha512-uEUyaDKoSQ1M4Oq8l45hSE26SnTxL6snNnqvK/VWx5wJhmff5z0FUVJDKDanor/6w3kzE3i7XZOk+7wC0EXr1A==" -,"_from": "dot-prop@5.2.0" + "name": "dot-prop", + "version": "5.2.0", + "description": "Get, set, or delete a property from a nested object using a dot path", + "license": "MIT", + "repository": "sindresorhus/dot-prop", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "node bench.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "prop", + "property", + "dot", + "path", + "get", + "set", + "delete", + "access", + "notation", + "dotty" + ], + "dependencies": { + "is-obj": "^2.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "benchmark": "^2.1.4", + "tsd": "^0.7.2", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/duplexer3/package.json b/node_modules/duplexer3/package.json index 5b2c79aba..195def149 100644 --- a/node_modules/duplexer3/package.json +++ b/node_modules/duplexer3/package.json @@ -3,7 +3,7 @@ "version": "0.1.4", "description": "Like duplexer but using streams3", "engine": { - "node": ">=4" + "node": ">=4" }, "files": [ "index.js" @@ -25,8 +25,4 @@ "devDependencies": { "mocha": "^2.2.5" } - -,"_resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz" -,"_integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=" -,"_from": "duplexer3@0.1.4" } \ No newline at end of file diff --git a/node_modules/emittery/package.json b/node_modules/emittery/package.json index b6d92c0fb..1bc264a4c 100644 --- a/node_modules/emittery/package.json +++ b/node_modules/emittery/package.json @@ -1,71 +1,67 @@ { - "name": "emittery", - "version": "0.6.0", - "description": "Simple and modern async event emitter", - "license": "MIT", - "repository": "sindresorhus/emittery", - "funding": "https://github.com/sindresorhus/emittery?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "event", - "emitter", - "eventemitter", - "events", - "async", - "emit", - "on", - "once", - "off", - "listener", - "subscribe", - "unsubscribe", - "pubsub", - "tiny", - "addlistener", - "addeventlistener", - "dispatch", - "dispatcher", - "observer", - "trigger", - "await", - "promise", - "typescript", - "ts", - "typed" - ], - "devDependencies": { - "@types/node": "^13.7.5", - "ava": "^2.4.0", - "codecov": "^3.1.0", - "delay": "^4.3.0", - "nyc": "^15.0.0", - "p-event": "^4.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.4" - }, - "nyc": { - "reporter": [ - "html", - "lcov", - "text" - ] - } - -,"_resolved": "https://registry.npmjs.org/emittery/-/emittery-0.6.0.tgz" -,"_integrity": "sha512-6EMRGr9KzYWp8DzHFZsKVZBsMO6QhAeHMeHND8rhyBNCHKMLpgW9tZv40bwN3rAIKRS5CxcK8oLRKUJSB9h7yQ==" -,"_from": "emittery@0.6.0" + "name": "emittery", + "version": "0.6.0", + "description": "Simple and modern async event emitter", + "license": "MIT", + "repository": "sindresorhus/emittery", + "funding": "https://github.com/sindresorhus/emittery?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "event", + "emitter", + "eventemitter", + "events", + "async", + "emit", + "on", + "once", + "off", + "listener", + "subscribe", + "unsubscribe", + "pubsub", + "tiny", + "addlistener", + "addeventlistener", + "dispatch", + "dispatcher", + "observer", + "trigger", + "await", + "promise", + "typescript", + "ts", + "typed" + ], + "devDependencies": { + "@types/node": "^13.7.5", + "ava": "^2.4.0", + "codecov": "^3.1.0", + "delay": "^4.3.0", + "nyc": "^15.0.0", + "p-event": "^4.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.4" + }, + "nyc": { + "reporter": [ + "html", + "lcov", + "text" + ] + } } \ No newline at end of file diff --git a/node_modules/emoji-regex/package.json b/node_modules/emoji-regex/package.json index 2b0473ab8..cb5ad3677 100644 --- a/node_modules/emoji-regex/package.json +++ b/node_modules/emoji-regex/package.json @@ -47,8 +47,4 @@ "regexgen": "^1.3.0", "unicode-12.0.0": "^0.7.9" } - -,"_resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz" -,"_integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" -,"_from": "emoji-regex@8.0.0" } \ No newline at end of file diff --git a/node_modules/end-of-stream/package.json b/node_modules/end-of-stream/package.json index f723fae9d..4caffe9e0 100644 --- a/node_modules/end-of-stream/package.json +++ b/node_modules/end-of-stream/package.json @@ -34,8 +34,4 @@ "devDependencies": { "tape": "^4.11.0" } - -,"_resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz" -,"_integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==" -,"_from": "end-of-stream@1.4.4" } \ No newline at end of file diff --git a/node_modules/equal-length/package.json b/node_modules/equal-length/package.json index 96cef9188..06bf86a9e 100644 --- a/node_modules/equal-length/package.json +++ b/node_modules/equal-length/package.json @@ -29,8 +29,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz" -,"_integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=" -,"_from": "equal-length@1.0.1" } \ No newline at end of file diff --git a/node_modules/error-ex/package.json b/node_modules/error-ex/package.json index 172d854f7..01f328d44 100644 --- a/node_modules/error-ex/package.json +++ b/node_modules/error-ex/package.json @@ -43,8 +43,4 @@ "dependencies": { "is-arrayish": "^0.2.1" } - -,"_resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz" -,"_integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==" -,"_from": "error-ex@1.3.2" } \ No newline at end of file diff --git a/node_modules/escape-goat/package.json b/node_modules/escape-goat/package.json index 02ce3264c..b97a05f1d 100644 --- a/node_modules/escape-goat/package.json +++ b/node_modules/escape-goat/package.json @@ -1,49 +1,45 @@ { - "name": "escape-goat", - "version": "2.1.1", - "description": "Escape a string for use in HTML or the inverse", - "license": "MIT", - "repository": "sindresorhus/escape-goat", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "unescape", - "html", - "entity", - "entities", - "escaping", - "sanitize", - "sanitization", - "utility", - "template", - "attribute", - "value", - "interpolate", - "xss", - "goat", - "🐐" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz" -,"_integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==" -,"_from": "escape-goat@2.1.1" + "name": "escape-goat", + "version": "2.1.1", + "description": "Escape a string for use in HTML or the inverse", + "license": "MIT", + "repository": "sindresorhus/escape-goat", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "unescape", + "html", + "entity", + "entities", + "escaping", + "sanitize", + "sanitization", + "utility", + "template", + "attribute", + "value", + "interpolate", + "xss", + "goat", + "🐐" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/escape-string-regexp/package.json b/node_modules/escape-string-regexp/package.json index 8b63190fe..ddf8dee2f 100644 --- a/node_modules/escape-string-regexp/package.json +++ b/node_modules/escape-string-regexp/package.json @@ -38,8 +38,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz" -,"_integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" -,"_from": "escape-string-regexp@1.0.5" } \ No newline at end of file diff --git a/node_modules/esutils/package.json b/node_modules/esutils/package.json index 6446b57f2..0578338b8 100644 --- a/node_modules/esutils/package.json +++ b/node_modules/esutils/package.json @@ -41,8 +41,4 @@ "unit-test": "mocha --compilers coffee:coffee-script -R spec", "generate-regex": "node tools/generate-identifier-regex.js" } - -,"_resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz" -,"_integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==" -,"_from": "esutils@2.0.3" } \ No newline at end of file diff --git a/node_modules/execa/package.json b/node_modules/execa/package.json index 4e33f47e5..1b8e3f8c6 100644 --- a/node_modules/execa/package.json +++ b/node_modules/execa/package.json @@ -1,73 +1,69 @@ { - "name": "execa", - "version": "1.0.0", - "description": "A better `child_process`", - "license": "MIT", - "repository": "sindresorhus/execa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js", - "lib" - ], - "keywords": [ - "exec", - "child", - "process", - "execute", - "fork", - "execfile", - "spawn", - "file", - "shell", - "bin", - "binary", - "binaries", - "npm", - "path", - "local" - ], - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "devDependencies": { - "ava": "*", - "cat-names": "^1.0.2", - "coveralls": "^3.0.1", - "delay": "^3.0.0", - "is-running": "^2.0.0", - "nyc": "^13.0.1", - "tempfile": "^2.0.0", - "xo": "*" - }, - "nyc": { - "reporter": [ - "text", - "lcov" - ], - "exclude": [ - "**/fixtures/**", - "**/test.js", - "**/test/**" - ] - } - -,"_resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz" -,"_integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==" -,"_from": "execa@1.0.0" + "name": "execa", + "version": "1.0.0", + "description": "A better `child_process`", + "license": "MIT", + "repository": "sindresorhus/execa", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js", + "lib" + ], + "keywords": [ + "exec", + "child", + "process", + "execute", + "fork", + "execfile", + "spawn", + "file", + "shell", + "bin", + "binary", + "binaries", + "npm", + "path", + "local" + ], + "dependencies": { + "cross-spawn": "^6.0.0", + "get-stream": "^4.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" + }, + "devDependencies": { + "ava": "*", + "cat-names": "^1.0.2", + "coveralls": "^3.0.1", + "delay": "^3.0.0", + "is-running": "^2.0.0", + "nyc": "^13.0.1", + "tempfile": "^2.0.0", + "xo": "*" + }, + "nyc": { + "reporter": [ + "text", + "lcov" + ], + "exclude": [ + "**/fixtures/**", + "**/test.js", + "**/test/**" + ] + } } \ No newline at end of file diff --git a/node_modules/fast-diff/package.json b/node_modules/fast-diff/package.json index 7c8b5e107..ad043feca 100644 --- a/node_modules/fast-diff/package.json +++ b/node_modules/fast-diff/package.json @@ -23,8 +23,4 @@ "keywords": [ "diff" ] - -,"_resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz" -,"_integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==" -,"_from": "fast-diff@1.2.0" } \ No newline at end of file diff --git a/node_modules/fast-glob/package.json b/node_modules/fast-glob/package.json index 05a520e06..9a8744041 100644 --- a/node_modules/fast-glob/package.json +++ b/node_modules/fast-glob/package.json @@ -82,8 +82,4 @@ "bench-sync-partial-flatten": "node ./out/benchmark --mode sync --pattern \"{fixtures,out}/{first,second}/*\"", "bench-sync-partial-deep": "node ./out/benchmark --mode sync --pattern \"{fixtures,out}/**\"" } - -,"_resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.2.tgz" -,"_integrity": "sha512-UDV82o4uQyljznxwMxyVRJgZZt3O5wENYojjzbaGEGZgeOxkLFf+V4cnUD+krzb2F72E18RhamkMZ7AdeggF7A==" -,"_from": "fast-glob@3.2.2" } \ No newline at end of file diff --git a/node_modules/fastq/package.json b/node_modules/fastq/package.json index c5cf9e6ca..41c544d73 100644 --- a/node_modules/fastq/package.json +++ b/node_modules/fastq/package.json @@ -44,8 +44,4 @@ "dependencies": { "reusify": "^1.0.4" } - -,"_resolved": "https://registry.npmjs.org/fastq/-/fastq-1.8.0.tgz" -,"_integrity": "sha512-SMIZoZdLh/fgofivvIkmknUXyPnvxRE3DhtZ5Me3Mrsk5gyPL42F0xr51TdRXskBxHfMp+07bcYzfsYEsSQA9Q==" -,"_from": "fastq@1.8.0" } \ No newline at end of file diff --git a/node_modules/figures/package.json b/node_modules/figures/package.json index 41dea9e9b..fac166e88 100644 --- a/node_modules/figures/package.json +++ b/node_modules/figures/package.json @@ -1,49 +1,45 @@ { - "name": "figures", - "version": "3.2.0", - "description": "Unicode symbols with Windows CMD fallbacks", - "license": "MIT", - "repository": "sindresorhus/figures", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "make": "./makefile.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "unicode", - "cli", - "cmd", - "command-line", - "characters", - "symbol", - "symbols", - "figure", - "figures", - "fallback" - ], - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "devDependencies": { - "ava": "^1.4.1", - "markdown-table": "^1.1.2", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz" -,"_integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==" -,"_from": "figures@3.2.0" + "name": "figures", + "version": "3.2.0", + "description": "Unicode symbols with Windows CMD fallbacks", + "license": "MIT", + "repository": "sindresorhus/figures", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "make": "./makefile.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback" + ], + "dependencies": { + "escape-string-regexp": "^1.0.5" + }, + "devDependencies": { + "ava": "^1.4.1", + "markdown-table": "^1.1.2", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/file-url/package.json b/node_modules/file-url/package.json index 70261a027..dbcd4f1b4 100644 --- a/node_modules/file-url/package.json +++ b/node_modules/file-url/package.json @@ -1,39 +1,35 @@ { - "name": "file-url", - "version": "3.0.0", - "description": "Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`", - "license": "MIT", - "repository": "sindresorhus/file-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "file", - "url", - "uri", - "path", - "scheme", - "slash" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/file-url/-/file-url-3.0.0.tgz" -,"_integrity": "sha512-g872QGsHexznxkIAdK8UiZRe7SkE6kvylShU4Nsj8NvfvZag7S0QuQ4IgvPDkk75HxgjIVDwycFTDAgIiO4nDA==" -,"_from": "file-url@3.0.0" + "name": "file-url", + "version": "3.0.0", + "description": "Convert a file path to a file url: `unicorn.jpg` → `file:///Users/sindresorhus/unicorn.jpg`", + "license": "MIT", + "repository": "sindresorhus/file-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "file", + "url", + "uri", + "path", + "scheme", + "slash" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/fill-range/package.json b/node_modules/fill-range/package.json index 6aeb617db..c3868058f 100644 --- a/node_modules/fill-range/package.json +++ b/node_modules/fill-range/package.json @@ -66,8 +66,4 @@ "reflinks": true } } - -,"_resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz" -,"_integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==" -,"_from": "fill-range@7.0.1" } \ No newline at end of file diff --git a/node_modules/find-up/package.json b/node_modules/find-up/package.json index 60f289df4..39a30757f 100644 --- a/node_modules/find-up/package.json +++ b/node_modules/find-up/package.json @@ -1,57 +1,53 @@ { - "name": "find-up", - "version": "4.1.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "is-path-inside": "^2.1.0", - "tempy": "^0.3.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz" -,"_integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==" -,"_from": "find-up@4.1.0" + "name": "find-up", + "version": "4.1.0", + "description": "Find a file or directory by walking up parent directories", + "license": "MIT", + "repository": "sindresorhus/find-up", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "package", + "resolve", + "parent", + "parents", + "folder", + "directory", + "walk", + "walking", + "path" + ], + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "is-path-inside": "^2.1.0", + "tempy": "^0.3.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/fs.realpath/package.json b/node_modules/fs.realpath/package.json index fba1ff9a4..6e98eaab9 100644 --- a/node_modules/fs.realpath/package.json +++ b/node_modules/fs.realpath/package.json @@ -23,8 +23,4 @@ "old.js", "index.js" ] - -,"_resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" -,"_integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=" -,"_from": "fs.realpath@1.0.0" } \ No newline at end of file diff --git a/node_modules/fs/package.json b/node_modules/fs/package.json index 819721e5b..f1fa735a7 100644 --- a/node_modules/fs/package.json +++ b/node_modules/fs/package.json @@ -17,8 +17,4 @@ "url": "https://github.com/npm/security-holder/issues" }, "homepage": "https://github.com/npm/security-holder#readme" - -,"_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz" -,"_integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" -,"_from": "fs@0.0.1-security" } \ No newline at end of file diff --git a/node_modules/fsevents/package.json b/node_modules/fsevents/package.json index 814b8eb48..d3b732346 100644 --- a/node_modules/fsevents/package.json +++ b/node_modules/fsevents/package.json @@ -56,8 +56,4 @@ "url": "https://github.com/fsevents/fsevents/issues" }, "homepage": "https://github.com/fsevents/fsevents" - -,"_resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.2.tgz" -,"_integrity": "sha512-R4wDiBwZ0KzpgOWetKDug1FZcYhqYnUYKtfZYt4mD5SBz76q0KR4Q9o7GIPamsVPGmW3EYPPJ0dOOjvx32ldZA==" -,"_from": "fsevents@2.1.2" } \ No newline at end of file diff --git a/node_modules/get-caller-file/package.json b/node_modules/get-caller-file/package.json index acf38f618..3218e973a 100644 --- a/node_modules/get-caller-file/package.json +++ b/node_modules/get-caller-file/package.json @@ -39,8 +39,4 @@ "engines": { "node": "6.* || 8.* || >= 10.*" } - -,"_resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz" -,"_integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==" -,"_from": "get-caller-file@2.0.5" } \ No newline at end of file diff --git a/node_modules/get-stream/package.json b/node_modules/get-stream/package.json index 0f66e7b31..a78fba1fb 100644 --- a/node_modules/get-stream/package.json +++ b/node_modules/get-stream/package.json @@ -1,50 +1,46 @@ { - "name": "get-stream", - "version": "4.1.0", - "description": "Get a stream as a string, buffer, or array", - "license": "MIT", - "repository": "sindresorhus/get-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "buffer-stream.js" - ], - "keywords": [ - "get", - "stream", - "promise", - "concat", - "string", - "text", - "buffer", - "read", - "data", - "consume", - "readable", - "readablestream", - "array", - "object" - ], - "dependencies": { - "pump": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "into-stream": "^3.0.0", - "xo": "*" - } - -,"_resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz" -,"_integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==" -,"_from": "get-stream@4.1.0" + "name": "get-stream", + "version": "4.1.0", + "description": "Get a stream as a string, buffer, or array", + "license": "MIT", + "repository": "sindresorhus/get-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "buffer-stream.js" + ], + "keywords": [ + "get", + "stream", + "promise", + "concat", + "string", + "text", + "buffer", + "read", + "data", + "consume", + "readable", + "readablestream", + "array", + "object" + ], + "dependencies": { + "pump": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "into-stream": "^3.0.0", + "xo": "*" + } } \ No newline at end of file diff --git a/node_modules/glob-parent/package.json b/node_modules/glob-parent/package.json index e5f8484d4..d7f8b7f28 100644 --- a/node_modules/glob-parent/package.json +++ b/node_modules/glob-parent/package.json @@ -45,8 +45,4 @@ "base", "wildcard" ] - -,"_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.1.tgz" -,"_integrity": "sha512-FnI+VGOpnlGHWZxthPGR+QhR78fuiK0sNLkHQv+bL9fQi57lNNdquIbna/WrfROrolq8GK5Ek6BiMwqL/voRYQ==" -,"_from": "glob-parent@5.1.1" } \ No newline at end of file diff --git a/node_modules/glob/package.json b/node_modules/glob/package.json index 715f73a54..dbfa78ee8 100644 --- a/node_modules/glob/package.json +++ b/node_modules/glob/package.json @@ -43,8 +43,4 @@ "funding": { "url": "https://github.com/sponsors/isaacs" } - -,"_resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz" -,"_integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==" -,"_from": "glob@7.1.6" } \ No newline at end of file diff --git a/node_modules/global-dirs/package.json b/node_modules/global-dirs/package.json index 5b0b40cb8..1f11cd0f6 100644 --- a/node_modules/global-dirs/package.json +++ b/node_modules/global-dirs/package.json @@ -1,59 +1,55 @@ { - "name": "global-dirs", - "version": "2.0.1", - "description": "Get the directory of globally installed packages and binaries", - "license": "MIT", - "repository": "sindresorhus/global-dirs", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "global", - "prefix", - "path", - "paths", - "npm", - "yarn", - "node", - "modules", - "node-modules", - "package", - "packages", - "binary", - "binaries", - "bin", - "directory", - "directories", - "npmrc", - "rc", - "config", - "root", - "resolve" - ], - "dependencies": { - "ini": "^1.3.5" - }, - "devDependencies": { - "ava": "^2.4.0", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-2.0.1.tgz" -,"_integrity": "sha512-5HqUqdhkEovj2Of/ms3IeS/EekcO54ytHRLV4PEY2rhRwrHXLQjeVEES0Lhka0xwNDtGYn58wyC4s5+MHsOO6A==" -,"_from": "global-dirs@2.0.1" + "name": "global-dirs", + "version": "2.0.1", + "description": "Get the directory of globally installed packages and binaries", + "license": "MIT", + "repository": "sindresorhus/global-dirs", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "global", + "prefix", + "path", + "paths", + "npm", + "yarn", + "node", + "modules", + "node-modules", + "package", + "packages", + "binary", + "binaries", + "bin", + "directory", + "directories", + "npmrc", + "rc", + "config", + "root", + "resolve" + ], + "dependencies": { + "ini": "^1.3.5" + }, + "devDependencies": { + "ava": "^2.4.0", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/globby/package.json b/node_modules/globby/package.json index ea35313ac..08a3b169d 100644 --- a/node_modules/globby/package.json +++ b/node_modules/globby/package.json @@ -1,86 +1,82 @@ { - "name": "globby", - "version": "11.0.0", - "description": "User-friendly glob matching", - "license": "MIT", - "repository": "sindresorhus/globby", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "bench": "npm update glob-stream fast-glob && matcha bench.js", - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "gitignore.js", - "stream-utils.js" - ], - "keywords": [ - "all", - "array", - "directories", - "expand", - "files", - "filesystem", - "filter", - "find", - "fnmatch", - "folders", - "fs", - "glob", - "globbing", - "globs", - "gulpfriendly", - "match", - "matcher", - "minimatch", - "multi", - "multiple", - "paths", - "pattern", - "patterns", - "traverse", - "util", - "utility", - "wildcard", - "wildcards", - "promise", - "gitignore", - "git" - ], - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "get-stream": "^5.1.0", - "glob-stream": "^6.1.0", - "globby": "sindresorhus/globby#master", - "matcha": "^0.7.0", - "rimraf": "^3.0.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } - -,"_resolved": "https://registry.npmjs.org/globby/-/globby-11.0.0.tgz" -,"_integrity": "sha512-iuehFnR3xu5wBBtm4xi0dMe92Ob87ufyu/dHwpDYfbcpYpIbrO5OnS8M1vWvrBhSGEJ3/Ecj7gnX76P8YxpPEg==" -,"_from": "globby@11.0.0" + "name": "globby", + "version": "11.0.0", + "description": "User-friendly glob matching", + "license": "MIT", + "repository": "sindresorhus/globby", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "email": "sindresorhus@gmail.com", + "name": "Sindre Sorhus", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "bench": "npm update glob-stream fast-glob && matcha bench.js", + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "gitignore.js", + "stream-utils.js" + ], + "keywords": [ + "all", + "array", + "directories", + "expand", + "files", + "filesystem", + "filter", + "find", + "fnmatch", + "folders", + "fs", + "glob", + "globbing", + "globs", + "gulpfriendly", + "match", + "matcher", + "minimatch", + "multi", + "multiple", + "paths", + "pattern", + "patterns", + "traverse", + "util", + "utility", + "wildcard", + "wildcards", + "promise", + "gitignore", + "git" + ], + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.1.1", + "ignore": "^5.1.4", + "merge2": "^1.3.0", + "slash": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "get-stream": "^5.1.0", + "glob-stream": "^6.1.0", + "globby": "sindresorhus/globby#master", + "matcha": "^0.7.0", + "rimraf": "^3.0.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } } \ No newline at end of file diff --git a/node_modules/got/package.json b/node_modules/got/package.json index bd81ae543..28c396adb 100644 --- a/node_modules/got/package.json +++ b/node_modules/got/package.json @@ -1,78 +1,74 @@ { - "name": "got", - "version": "9.6.0", - "description": "Simplified HTTP requests", - "license": "MIT", - "repository": "sindresorhus/got", - "main": "source", - "engines": { - "node": ">=8.6" - }, - "scripts": { - "test": "xo && nyc ava", - "release": "np" - }, - "files": [ - "source" - ], - "keywords": [ - "http", - "https", - "get", - "got", - "url", - "uri", - "request", - "util", - "utility", - "simple", - "curl", - "wget", - "fetch", - "net", - "network", - "electron" - ], - "dependencies": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - }, - "devDependencies": { - "ava": "^1.1.0", - "coveralls": "^3.0.0", - "delay": "^4.1.0", - "form-data": "^2.3.3", - "get-port": "^4.0.0", - "np": "^3.1.0", - "nyc": "^13.1.0", - "p-event": "^2.1.0", - "pem": "^1.13.2", - "proxyquire": "^2.0.1", - "sinon": "^7.2.2", - "slow-stream": "0.0.4", - "tempfile": "^2.0.0", - "tempy": "^0.2.1", - "tough-cookie": "^3.0.0", - "xo": "^0.24.0" - }, - "ava": { - "concurrency": 4 - }, - "browser": { - "decompress-response": false, - "electron": false - } - -,"_resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz" -,"_integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==" -,"_from": "got@9.6.0" + "name": "got", + "version": "9.6.0", + "description": "Simplified HTTP requests", + "license": "MIT", + "repository": "sindresorhus/got", + "main": "source", + "engines": { + "node": ">=8.6" + }, + "scripts": { + "test": "xo && nyc ava", + "release": "np" + }, + "files": [ + "source" + ], + "keywords": [ + "http", + "https", + "get", + "got", + "url", + "uri", + "request", + "util", + "utility", + "simple", + "curl", + "wget", + "fetch", + "net", + "network", + "electron" + ], + "dependencies": { + "@sindresorhus/is": "^0.14.0", + "@szmarczak/http-timer": "^1.1.2", + "cacheable-request": "^6.0.0", + "decompress-response": "^3.3.0", + "duplexer3": "^0.1.4", + "get-stream": "^4.1.0", + "lowercase-keys": "^1.0.1", + "mimic-response": "^1.0.1", + "p-cancelable": "^1.0.0", + "to-readable-stream": "^1.0.0", + "url-parse-lax": "^3.0.0" + }, + "devDependencies": { + "ava": "^1.1.0", + "coveralls": "^3.0.0", + "delay": "^4.1.0", + "form-data": "^2.3.3", + "get-port": "^4.0.0", + "np": "^3.1.0", + "nyc": "^13.1.0", + "p-event": "^2.1.0", + "pem": "^1.13.2", + "proxyquire": "^2.0.1", + "sinon": "^7.2.2", + "slow-stream": "0.0.4", + "tempfile": "^2.0.0", + "tempy": "^0.2.1", + "tough-cookie": "^3.0.0", + "xo": "^0.24.0" + }, + "ava": { + "concurrency": 4 + }, + "browser": { + "decompress-response": false, + "electron": false + } } \ No newline at end of file diff --git a/node_modules/graceful-fs/package.json b/node_modules/graceful-fs/package.json index 73bb9f911..77a29b3da 100644 --- a/node_modules/graceful-fs/package.json +++ b/node_modules/graceful-fs/package.json @@ -47,8 +47,4 @@ "clone.js" ], "dependencies": {} - -,"_resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz" -,"_integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" -,"_from": "graceful-fs@4.2.3" } \ No newline at end of file diff --git a/node_modules/has-flag/package.json b/node_modules/has-flag/package.json index b07fbde41..ff188fa37 100644 --- a/node_modules/has-flag/package.json +++ b/node_modules/has-flag/package.json @@ -41,8 +41,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz" -,"_integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=" -,"_from": "has-flag@3.0.0" } \ No newline at end of file diff --git a/node_modules/has-yarn/package.json b/node_modules/has-yarn/package.json index 0bbf4473c..fcadde721 100644 --- a/node_modules/has-yarn/package.json +++ b/node_modules/has-yarn/package.json @@ -1,43 +1,39 @@ { - "name": "has-yarn", - "version": "2.1.0", - "description": "Check if a project is using Yarn", - "license": "MIT", - "repository": "sindresorhus/has-yarn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "yarn", - "has", - "detect", - "is", - "project", - "app", - "module", - "package", - "manager", - "npm" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz" -,"_integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==" -,"_from": "has-yarn@2.1.0" + "name": "has-yarn", + "version": "2.1.0", + "description": "Check if a project is using Yarn", + "license": "MIT", + "repository": "sindresorhus/has-yarn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "yarn", + "has", + "detect", + "is", + "project", + "app", + "module", + "package", + "manager", + "npm" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/hosted-git-info/package.json b/node_modules/hosted-git-info/package.json index 1dc8e6464..3ff3c095e 100644 --- a/node_modules/hosted-git-info/package.json +++ b/node_modules/hosted-git-info/package.json @@ -37,8 +37,4 @@ "git-host.js", "git-host-info.js" ] - -,"_resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz" -,"_integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==" -,"_from": "hosted-git-info@2.8.8" } \ No newline at end of file diff --git a/node_modules/http-cache-semantics/package.json b/node_modules/http-cache-semantics/package.json index baf02e311..125b72b51 100644 --- a/node_modules/http-cache-semantics/package.json +++ b/node_modules/http-cache-semantics/package.json @@ -1,28 +1,24 @@ { - "name": "http-cache-semantics", - "version": "4.1.0", - "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies", - "repository": "https://github.com/kornelski/http-cache-semantics.git", - "main": "index.js", - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js" - ], - "author": "Kornel Lesiński (https://kornel.ski/)", - "license": "BSD-2-Clause", - "devDependencies": { - "eslint": "^5.13.0", - "eslint-plugin-prettier": "^3.0.1", - "husky": "^0.14.3", - "lint-staged": "^8.1.3", - "mocha": "^5.1.0", - "prettier": "^1.14.3", - "prettier-eslint-cli": "^4.7.1" - } - -,"_resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz" -,"_integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==" -,"_from": "http-cache-semantics@4.1.0" + "name": "http-cache-semantics", + "version": "4.1.0", + "description": "Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies", + "repository": "https://github.com/kornelski/http-cache-semantics.git", + "main": "index.js", + "scripts": { + "test": "mocha" + }, + "files": [ + "index.js" + ], + "author": "Kornel Lesiński (https://kornel.ski/)", + "license": "BSD-2-Clause", + "devDependencies": { + "eslint": "^5.13.0", + "eslint-plugin-prettier": "^3.0.1", + "husky": "^0.14.3", + "lint-staged": "^8.1.3", + "mocha": "^5.1.0", + "prettier": "^1.14.3", + "prettier-eslint-cli": "^4.7.1" + } } \ No newline at end of file diff --git a/node_modules/ignore-by-default/package.json b/node_modules/ignore-by-default/package.json index c705e1523..30225ada3 100644 --- a/node_modules/ignore-by-default/package.json +++ b/node_modules/ignore-by-default/package.json @@ -31,8 +31,4 @@ "figures": "^1.4.0", "standard": "^6.0.4" } - -,"_resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz" -,"_integrity": "sha1-SMptcvbGo68Aqa1K5odr44ieKwk=" -,"_from": "ignore-by-default@1.0.1" } \ No newline at end of file diff --git a/node_modules/ignore/package.json b/node_modules/ignore/package.json index d101f0e82..fe7029497 100644 --- a/node_modules/ignore/package.json +++ b/node_modules/ignore/package.json @@ -67,8 +67,4 @@ "engines": { "node": ">= 4" } - -,"_resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.4.tgz" -,"_integrity": "sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==" -,"_from": "ignore@5.1.4" } \ No newline at end of file diff --git a/node_modules/import-lazy/package.json b/node_modules/import-lazy/package.json index db9a3a407..8cca7bba1 100644 --- a/node_modules/import-lazy/package.json +++ b/node_modules/import-lazy/package.json @@ -41,8 +41,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz" -,"_integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=" -,"_from": "import-lazy@2.1.0" } \ No newline at end of file diff --git a/node_modules/import-local/package.json b/node_modules/import-local/package.json index 96f445b3b..c07a5c4be 100644 --- a/node_modules/import-local/package.json +++ b/node_modules/import-local/package.json @@ -1,55 +1,51 @@ { - "name": "import-local", - "version": "3.0.2", - "description": "Let a globally installed package use a locally installed version of itself if available", - "license": "MIT", - "repository": "sindresorhus/import-local", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "fixtures/cli.js" - ], - "keywords": [ - "import", - "local", - "require", - "resolve", - "global", - "version", - "prefer", - "cli" - ], - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "devDependencies": { - "ava": "2.1.0", - "cpy": "^7.0.1", - "del": "^4.1.1", - "execa": "^2.0.1", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "fixtures" - ] - } - -,"_resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz" -,"_integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==" -,"_from": "import-local@3.0.2" + "name": "import-local", + "version": "3.0.2", + "description": "Let a globally installed package use a locally installed version of itself if available", + "license": "MIT", + "repository": "sindresorhus/import-local", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "fixtures/cli.js" + ], + "keywords": [ + "import", + "local", + "require", + "resolve", + "global", + "version", + "prefer", + "cli" + ], + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "devDependencies": { + "ava": "2.1.0", + "cpy": "^7.0.1", + "del": "^4.1.1", + "execa": "^2.0.1", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "fixtures" + ] + } } \ No newline at end of file diff --git a/node_modules/imurmurhash/package.json b/node_modules/imurmurhash/package.json index 129286ed0..1e91c12bd 100644 --- a/node_modules/imurmurhash/package.json +++ b/node_modules/imurmurhash/package.json @@ -30,15 +30,9 @@ "url": "https://github.com/homebrewing" }, "license": "MIT", - "dependencies": { - }, - "devDependencies": { - }, + "dependencies": {}, + "devDependencies": {}, "engines": { "node": ">=0.8.19" } - -,"_resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz" -,"_integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" -,"_from": "imurmurhash@0.1.4" } \ No newline at end of file diff --git a/node_modules/indent-string/package.json b/node_modules/indent-string/package.json index 2254e46cf..5db5db01a 100644 --- a/node_modules/indent-string/package.json +++ b/node_modules/indent-string/package.json @@ -1,41 +1,37 @@ { - "name": "indent-string", - "version": "4.0.0", - "description": "Indent each line in a string", - "license": "MIT", - "repository": "sindresorhus/indent-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "indent", - "string", - "pad", - "align", - "line", - "text", - "each", - "every" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz" -,"_integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==" -,"_from": "indent-string@4.0.0" + "name": "indent-string", + "version": "4.0.0", + "description": "Indent each line in a string", + "license": "MIT", + "repository": "sindresorhus/indent-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "indent", + "string", + "pad", + "align", + "line", + "text", + "each", + "every" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/inflight/package.json b/node_modules/inflight/package.json index 102b3be3a..b7095d05d 100644 --- a/node_modules/inflight/package.json +++ b/node_modules/inflight/package.json @@ -26,8 +26,4 @@ }, "homepage": "https://github.com/isaacs/inflight", "license": "ISC" - -,"_resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz" -,"_integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=" -,"_from": "inflight@1.0.6" } \ No newline at end of file diff --git a/node_modules/inherits/package.json b/node_modules/inherits/package.json index 48b9816a5..47220feb9 100644 --- a/node_modules/inherits/package.json +++ b/node_modules/inherits/package.json @@ -26,8 +26,4 @@ "inherits.js", "inherits_browser.js" ] - -,"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz" -,"_integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" -,"_from": "inherits@2.0.3" } \ No newline at end of file diff --git a/node_modules/ini/package.json b/node_modules/ini/package.json index 85f8b965a..49027d955 100644 --- a/node_modules/ini/package.json +++ b/node_modules/ini/package.json @@ -27,8 +27,4 @@ "files": [ "ini.js" ] - -,"_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz" -,"_integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==" -,"_from": "ini@1.3.5" } \ No newline at end of file diff --git a/node_modules/irregular-plurals/package.json b/node_modules/irregular-plurals/package.json index 7da904bbd..cf9707d52 100644 --- a/node_modules/irregular-plurals/package.json +++ b/node_modules/irregular-plurals/package.json @@ -1,50 +1,46 @@ { - "name": "irregular-plurals", - "version": "3.2.0", - "description": "Map of nouns to their irregular plural form", - "license": "MIT", - "repository": "sindresorhus/irregular-plurals", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "irregular-plurals.json" - ], - "keywords": [ - "word", - "words", - "list", - "map", - "hash", - "json", - "irregular", - "plural", - "plurals", - "noun", - "nouns" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "tsd": { - "compilerOptions": { - "resolveJsonModule": true - } - } - -,"_resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz" -,"_integrity": "sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q==" -,"_from": "irregular-plurals@3.2.0" + "name": "irregular-plurals", + "version": "3.2.0", + "description": "Map of nouns to their irregular plural form", + "license": "MIT", + "repository": "sindresorhus/irregular-plurals", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "irregular-plurals.json" + ], + "keywords": [ + "word", + "words", + "list", + "map", + "hash", + "json", + "irregular", + "plural", + "plurals", + "noun", + "nouns" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "tsd": { + "compilerOptions": { + "resolveJsonModule": true + } + } } \ No newline at end of file diff --git a/node_modules/is-arrayish/package.json b/node_modules/is-arrayish/package.json index 91f64fee4..47b168d29 100644 --- a/node_modules/is-arrayish/package.json +++ b/node_modules/is-arrayish/package.json @@ -31,8 +31,4 @@ "should": "^7.0.1", "xo": "^0.6.1" } - -,"_resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz" -,"_integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=" -,"_from": "is-arrayish@0.2.1" } \ No newline at end of file diff --git a/node_modules/is-binary-path/package.json b/node_modules/is-binary-path/package.json index 4998949a8..e3bdf2a7f 100644 --- a/node_modules/is-binary-path/package.json +++ b/node_modules/is-binary-path/package.json @@ -1,44 +1,40 @@ { - "name": "is-binary-path", - "version": "2.1.0", - "description": "Check if a file path is a binary file", - "license": "MIT", - "repository": "sindresorhus/is-binary-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "binary", - "extensions", - "extension", - "file", - "path", - "check", - "detect", - "is" - ], - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz" -,"_integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==" -,"_from": "is-binary-path@2.1.0" + "name": "is-binary-path", + "version": "2.1.0", + "description": "Check if a file path is a binary file", + "license": "MIT", + "repository": "sindresorhus/is-binary-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "binary", + "extensions", + "extension", + "file", + "path", + "check", + "detect", + "is" + ], + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-buffer/package.json b/node_modules/is-buffer/package.json index 79d8ab75b..9f304ee57 100644 --- a/node_modules/is-buffer/package.json +++ b/node_modules/is-buffer/package.json @@ -48,8 +48,4 @@ "testling": { "files": "test/*.js" } - -,"_resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz" -,"_integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" -,"_from": "is-buffer@1.1.6" } \ No newline at end of file diff --git a/node_modules/is-ci/package.json b/node_modules/is-ci/package.json index 7ce825a5f..3900a0420 100644 --- a/node_modules/is-ci/package.json +++ b/node_modules/is-ci/package.json @@ -35,8 +35,4 @@ 55.778272, 12.593116 ] - -,"_resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz" -,"_integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==" -,"_from": "is-ci@2.0.0" } \ No newline at end of file diff --git a/node_modules/is-error/package.json b/node_modules/is-error/package.json index 94d4817e8..441791f23 100644 --- a/node_modules/is-error/package.json +++ b/node_modules/is-error/package.json @@ -1,4 +1,5 @@ -{ "name": "is-error", +{ + "name": "is-error", "version": "2.2.2", "description": "Detect whether a value is an error", "keywords": [], @@ -41,8 +42,4 @@ ], "pre-commit.silent": true, "ngen-version": "5.1.0" - -,"_resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz" -,"_integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==" -,"_from": "is-error@2.2.2" } \ No newline at end of file diff --git a/node_modules/is-extglob/package.json b/node_modules/is-extglob/package.json index 956af5894..00ad5c9fc 100644 --- a/node_modules/is-extglob/package.json +++ b/node_modules/is-extglob/package.json @@ -66,8 +66,4 @@ "reflinks": true } } - -,"_resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz" -,"_integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=" -,"_from": "is-extglob@2.1.1" } \ No newline at end of file diff --git a/node_modules/is-fullwidth-code-point/package.json b/node_modules/is-fullwidth-code-point/package.json index 3122d9996..a67414558 100644 --- a/node_modules/is-fullwidth-code-point/package.json +++ b/node_modules/is-fullwidth-code-point/package.json @@ -1,46 +1,42 @@ { - "name": "is-fullwidth-code-point", - "version": "3.0.0", - "description": "Check if the character represented by a given Unicode code point is fullwidth", - "license": "MIT", - "repository": "sindresorhus/is-fullwidth-code-point", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "fullwidth", - "full-width", - "full", - "width", - "unicode", - "character", - "string", - "codepoint", - "code", - "point", - "is", - "detect", - "check" - ], - "devDependencies": { - "ava": "^1.3.1", - "tsd-check": "^0.5.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz" -,"_integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" -,"_from": "is-fullwidth-code-point@3.0.0" + "name": "is-fullwidth-code-point", + "version": "3.0.0", + "description": "Check if the character represented by a given Unicode code point is fullwidth", + "license": "MIT", + "repository": "sindresorhus/is-fullwidth-code-point", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "fullwidth", + "full-width", + "full", + "width", + "unicode", + "character", + "string", + "codepoint", + "code", + "point", + "is", + "detect", + "check" + ], + "devDependencies": { + "ava": "^1.3.1", + "tsd-check": "^0.5.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-glob/package.json b/node_modules/is-glob/package.json index 2ca9e34d6..b7afb44d2 100644 --- a/node_modules/is-glob/package.json +++ b/node_modules/is-glob/package.json @@ -78,8 +78,4 @@ "vinyl" ] } - -,"_resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz" -,"_integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==" -,"_from": "is-glob@4.0.1" } \ No newline at end of file diff --git a/node_modules/is-installed-globally/package.json b/node_modules/is-installed-globally/package.json index 40100962f..bad8f8918 100644 --- a/node_modules/is-installed-globally/package.json +++ b/node_modules/is-installed-globally/package.json @@ -1,58 +1,54 @@ { - "name": "is-installed-globally", - "version": "0.3.2", - "description": "Check if your package was installed globally", - "license": "MIT", - "repository": "sindresorhus/is-installed-globally", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "global", - "package", - "globally", - "module", - "install", - "installed", - "npm", - "yarn", - "is", - "check", - "detect", - "local", - "locally", - "cli", - "bin", - "binary" - ], - "dependencies": { - "global-dirs": "^2.0.1", - "is-path-inside": "^3.0.1" - }, - "devDependencies": { - "ava": "^2.4.0", - "cpy": "^7.3.0", - "del": "^5.1.0", - "execa": "^2.0.4", - "make-dir": "^3.0.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.3.2.tgz" -,"_integrity": "sha512-wZ8x1js7Ia0kecP/CHM/3ABkAmujX7WPvQk6uu3Fly/Mk44pySulQpnHG46OMjHGXApINnV4QhY3SWnECO2z5g==" -,"_from": "is-installed-globally@0.3.2" + "name": "is-installed-globally", + "version": "0.3.2", + "description": "Check if your package was installed globally", + "license": "MIT", + "repository": "sindresorhus/is-installed-globally", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "global", + "package", + "globally", + "module", + "install", + "installed", + "npm", + "yarn", + "is", + "check", + "detect", + "local", + "locally", + "cli", + "bin", + "binary" + ], + "dependencies": { + "global-dirs": "^2.0.1", + "is-path-inside": "^3.0.1" + }, + "devDependencies": { + "ava": "^2.4.0", + "cpy": "^7.3.0", + "del": "^5.1.0", + "execa": "^2.0.4", + "make-dir": "^3.0.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/is-interactive/package.json b/node_modules/is-interactive/package.json index c23793c1e..2c0f4c55d 100644 --- a/node_modules/is-interactive/package.json +++ b/node_modules/is-interactive/package.json @@ -1,42 +1,38 @@ { - "name": "is-interactive", - "version": "1.0.0", - "description": "Check if stdout or stderr is interactive", - "license": "MIT", - "repository": "sindresorhus/is-interactive", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "interactive", - "stdout", - "stderr", - "detect", - "is", - "terminal", - "shell", - "tty" - ], - "devDependencies": { - "@types/node": "^12.0.12", - "ava": "^2.1.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz" -,"_integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==" -,"_from": "is-interactive@1.0.0" + "name": "is-interactive", + "version": "1.0.0", + "description": "Check if stdout or stderr is interactive", + "license": "MIT", + "repository": "sindresorhus/is-interactive", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "interactive", + "stdout", + "stderr", + "detect", + "is", + "terminal", + "shell", + "tty" + ], + "devDependencies": { + "@types/node": "^12.0.12", + "ava": "^2.1.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-npm/package.json b/node_modules/is-npm/package.json index a405f9f87..07c9dcb40 100644 --- a/node_modules/is-npm/package.json +++ b/node_modules/is-npm/package.json @@ -1,41 +1,37 @@ { - "name": "is-npm", - "version": "4.0.0", - "description": "Check if your code is running as an npm script", - "license": "MIT", - "repository": "sindresorhus/is-npm", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "is", - "check", - "detect", - "env", - "environment", - "run", - "script" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd-check": "^0.6.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/is-npm/-/is-npm-4.0.0.tgz" -,"_integrity": "sha512-96ECIfh9xtDDlPylNPXhzjsykHsMJZ18ASpaWzQyBr4YRTcVjUvzaHayDAES2oU/3KpljhHUjtSRNiDwi0F0ig==" -,"_from": "is-npm@4.0.0" + "name": "is-npm", + "version": "4.0.0", + "description": "Check if your code is running as an npm script", + "license": "MIT", + "repository": "sindresorhus/is-npm", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "is", + "check", + "detect", + "env", + "environment", + "run", + "script" + ], + "devDependencies": { + "ava": "^2.4.0", + "tsd-check": "^0.6.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/is-number/package.json b/node_modules/is-number/package.json index 002361756..1749833c1 100644 --- a/node_modules/is-number/package.json +++ b/node_modules/is-number/package.json @@ -79,8 +79,4 @@ "reflinks": true } } - -,"_resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz" -,"_integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" -,"_from": "is-number@7.0.0" } \ No newline at end of file diff --git a/node_modules/is-obj/package.json b/node_modules/is-obj/package.json index 0db846586..1485e78dd 100644 --- a/node_modules/is-obj/package.json +++ b/node_modules/is-obj/package.json @@ -1,38 +1,34 @@ { - "name": "is-obj", - "version": "2.0.0", - "description": "Check if a value is an object", - "license": "MIT", - "repository": "sindresorhus/is-obj", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "object", - "is", - "check", - "test", - "type" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz" -,"_integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==" -,"_from": "is-obj@2.0.0" + "name": "is-obj", + "version": "2.0.0", + "description": "Check if a value is an object", + "license": "MIT", + "repository": "sindresorhus/is-obj", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "object", + "is", + "check", + "test", + "type" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-path-cwd/package.json b/node_modules/is-path-cwd/package.json index 55ea5ecb4..064cba0b0 100644 --- a/node_modules/is-path-cwd/package.json +++ b/node_modules/is-path-cwd/package.json @@ -1,40 +1,36 @@ { - "name": "is-path-cwd", - "version": "2.2.0", - "description": "Check if a path is the current working directory", - "license": "MIT", - "repository": "sindresorhus/is-path-cwd", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "cwd", - "pwd", - "check", - "filepath", - "file", - "folder" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz" -,"_integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==" -,"_from": "is-path-cwd@2.2.0" + "name": "is-path-cwd", + "version": "2.2.0", + "description": "Check if a path is the current working directory", + "license": "MIT", + "repository": "sindresorhus/is-path-cwd", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "cwd", + "pwd", + "check", + "filepath", + "file", + "folder" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-path-inside/package.json b/node_modules/is-path-inside/package.json index a6e54a227..8d9d9343a 100644 --- a/node_modules/is-path-inside/package.json +++ b/node_modules/is-path-inside/package.json @@ -1,40 +1,36 @@ { - "name": "is-path-inside", - "version": "3.0.2", - "description": "Check if a path is inside another path", - "license": "MIT", - "repository": "sindresorhus/is-path-inside", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "inside", - "folder", - "directory", - "dir", - "file", - "resolve" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.2.tgz" -,"_integrity": "sha512-/2UGPSgmtqwo1ktx8NDHjuPwZWmHhO+gj0f93EkhLB5RgW9RZevWYYlIkS6zePc6U2WpOdQYIwHe9YC4DWEBVg==" -,"_from": "is-path-inside@3.0.2" + "name": "is-path-inside", + "version": "3.0.2", + "description": "Check if a path is inside another path", + "license": "MIT", + "repository": "sindresorhus/is-path-inside", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "inside", + "folder", + "directory", + "dir", + "file", + "resolve" + ], + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/is-plain-object/package.json b/node_modules/is-plain-object/package.json index 300c45203..986ffab26 100644 --- a/node_modules/is-plain-object/package.json +++ b/node_modules/is-plain-object/package.json @@ -79,8 +79,4 @@ "reflinks": true } } - -,"_resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.0.tgz" -,"_integrity": "sha512-tZIpofR+P05k8Aocp7UI/2UTa9lTJSebCXpFFoR9aibpokDj/uXBsJ8luUu0tTVYKkMU6URDUuOfJZ7koewXvg==" -,"_from": "is-plain-object@3.0.0" } \ No newline at end of file diff --git a/node_modules/is-promise/package.json b/node_modules/is-promise/package.json index ee9c0f64f..e729cac00 100644 --- a/node_modules/is-promise/package.json +++ b/node_modules/is-promise/package.json @@ -27,8 +27,4 @@ }, "author": "ForbesLindesay", "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/is-promise/-/is-promise-3.0.0.tgz" -,"_integrity": "sha512-aTHJ4BvETyySzLhguH+7sL4b8765eecqq7ZrHVuhZr3FjCL/IV+LsvisEeH+9d0AkChYny3ad1KEL+mKy4ot7A==" -,"_from": "is-promise@3.0.0" } \ No newline at end of file diff --git a/node_modules/is-stream/package.json b/node_modules/is-stream/package.json index 0f50caac8..e0d17830e 100644 --- a/node_modules/is-stream/package.json +++ b/node_modules/is-stream/package.json @@ -35,8 +35,4 @@ "tempfile": "^1.1.0", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz" -,"_integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=" -,"_from": "is-stream@1.1.0" } \ No newline at end of file diff --git a/node_modules/is-typedarray/package.json b/node_modules/is-typedarray/package.json index 73e4061e0..6fc813ab7 100644 --- a/node_modules/is-typedarray/package.json +++ b/node_modules/is-typedarray/package.json @@ -27,8 +27,4 @@ "url": "https://github.com/hughsk/is-typedarray/issues" }, "homepage": "https://github.com/hughsk/is-typedarray" - -,"_resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz" -,"_integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" -,"_from": "is-typedarray@1.0.0" } \ No newline at end of file diff --git a/node_modules/is-yarn-global/package.json b/node_modules/is-yarn-global/package.json index 63bc4b8d4..25b0e3dfc 100644 --- a/node_modules/is-yarn-global/package.json +++ b/node_modules/is-yarn-global/package.json @@ -12,8 +12,4 @@ "ava": "^0.24.0", "xo": "^0.18.2" } - -,"_resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz" -,"_integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==" -,"_from": "is-yarn-global@0.3.0" } \ No newline at end of file diff --git a/node_modules/isexe/package.json b/node_modules/isexe/package.json index 4ae1ed4ce..5e8bc7867 100644 --- a/node_modules/isexe/package.json +++ b/node_modules/isexe/package.json @@ -28,8 +28,4 @@ "url": "https://github.com/isaacs/isexe/issues" }, "homepage": "https://github.com/isaacs/isexe#readme" - -,"_resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz" -,"_integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=" -,"_from": "isexe@2.0.0" } \ No newline at end of file diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index 8ddad953f..c59d1ba3a 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -77,8 +77,4 @@ "verb" ] } - -,"_resolved": "https://registry.npmjs.org/isobject/-/isobject-4.0.0.tgz" -,"_integrity": "sha512-S/2fF5wH8SJA/kmwr6HYhK/RI/OkhD84k8ntalo0iJjZikgq1XFvR5M8NPT1x5F7fBwCG3qHfnzeP/Vh/ZxCUA==" -,"_from": "isobject@4.0.0" } \ No newline at end of file diff --git a/node_modules/js-string-escape/package.json b/node_modules/js-string-escape/package.json index 2bb2f6640..5675486fe 100644 --- a/node_modules/js-string-escape/package.json +++ b/node_modules/js-string-escape/package.json @@ -25,7 +25,7 @@ } ], "license": "MIT", - "devDependencies" : { + "devDependencies": { "tap": "~> 0.4.2", "punycode": "~> 1.2.1" }, @@ -35,8 +35,4 @@ "files": [ "index.js" ] - -,"_resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz" -,"_integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=" -,"_from": "js-string-escape@1.0.1" } \ No newline at end of file diff --git a/node_modules/js-tokens/package.json b/node_modules/js-tokens/package.json index 368221c86..a4c280b67 100644 --- a/node_modules/js-tokens/package.json +++ b/node_modules/js-tokens/package.json @@ -27,8 +27,4 @@ "everything.js": "1.0.3", "mocha": "5.0.0" } - -,"_resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz" -,"_integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" -,"_from": "js-tokens@4.0.0" } \ No newline at end of file diff --git a/node_modules/js-yaml/node_modules/esprima/package.json b/node_modules/js-yaml/node_modules/esprima/package.json index 942d939a5..55d445995 100644 --- a/node_modules/js-yaml/node_modules/esprima/package.json +++ b/node_modules/js-yaml/node_modules/esprima/package.json @@ -109,8 +109,4 @@ "generate-regex": "node tools/generate-identifier-regex.js", "generate-xhtml-entities": "node tools/generate-xhtml-entities.js" } - -,"_resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz" -,"_integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==" -,"_from": "esprima@4.0.1" } \ No newline at end of file diff --git a/node_modules/js-yaml/package.json b/node_modules/js-yaml/package.json index dd41f7f11..dbaa43e0c 100644 --- a/node_modules/js-yaml/package.json +++ b/node_modules/js-yaml/package.json @@ -44,8 +44,4 @@ "scripts": { "test": "make test" } - -,"_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz" -,"_integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==" -,"_from": "js-yaml@3.13.1" } \ No newline at end of file diff --git a/node_modules/json-buffer/package.json b/node_modules/json-buffer/package.json index 003343ae6..3c51a6781 100644 --- a/node_modules/json-buffer/package.json +++ b/node_modules/json-buffer/package.json @@ -31,8 +31,4 @@ "android-browser/4.2..latest" ] } - -,"_resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz" -,"_integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=" -,"_from": "json-buffer@3.0.0" } \ No newline at end of file diff --git a/node_modules/json-parse-better-errors/package.json b/node_modules/json-parse-better-errors/package.json index 2d2d208c3..89b9301d6 100644 --- a/node_modules/json-parse-better-errors/package.json +++ b/node_modules/json-parse-better-errors/package.json @@ -42,8 +42,4 @@ ] } } - -,"_resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz" -,"_integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==" -,"_from": "json-parse-better-errors@1.0.2" } \ No newline at end of file diff --git a/node_modules/json-stringify-safe/package.json b/node_modules/json-stringify-safe/package.json index 5d5488725..7493a587d 100644 --- a/node_modules/json-stringify-safe/package.json +++ b/node_modules/json-stringify-safe/package.json @@ -28,8 +28,4 @@ "must": ">= 0.12 < 0.13", "sinon": ">= 1.12.2 < 2" } - -,"_resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz" -,"_integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" -,"_from": "json-stringify-safe@5.0.1" } \ No newline at end of file diff --git a/node_modules/jsonschema/package.json b/node_modules/jsonschema/package.json index a0f4e3e2c..8d384e2d4 100644 --- a/node_modules/jsonschema/package.json +++ b/node_modules/jsonschema/package.json @@ -35,8 +35,4 @@ "scripts": { "test": "./node_modules/.bin/mocha -R spec" } - -,"_resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.2.6.tgz" -,"_integrity": "sha512-SqhURKZG07JyKKeo/ir24QnS4/BV7a6gQy93bUSe4lUdNp0QNpIz2c9elWJQ9dpc5cQYY6cvCzgRwy0MQCLyqA==" -,"_from": "jsonschema@1.2.6" } \ No newline at end of file diff --git a/node_modules/keyv/package.json b/node_modules/keyv/package.json index 22585d90b..e179afca8 100644 --- a/node_modules/keyv/package.json +++ b/node_modules/keyv/package.json @@ -46,8 +46,4 @@ "timekeeper": "^2.0.0", "xo": "^0.20.1" } - -,"_resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz" -,"_integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==" -,"_from": "keyv@3.1.0" } \ No newline at end of file diff --git a/node_modules/latest-version/package.json b/node_modules/latest-version/package.json index 48621639f..601992a28 100644 --- a/node_modules/latest-version/package.json +++ b/node_modules/latest-version/package.json @@ -1,46 +1,42 @@ { - "name": "latest-version", - "version": "5.1.0", - "description": "Get the latest version of an npm package", - "license": "MIT", - "repository": "sindresorhus/latest-version", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "latest", - "version", - "npm", - "pkg", - "package", - "package.json", - "current", - "module" - ], - "dependencies": { - "package-json": "^6.3.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "semver": "^6.0.0", - "semver-regex": "^2.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz" -,"_integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==" -,"_from": "latest-version@5.1.0" + "name": "latest-version", + "version": "5.1.0", + "description": "Get the latest version of an npm package", + "license": "MIT", + "repository": "sindresorhus/latest-version", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "latest", + "version", + "npm", + "pkg", + "package", + "package.json", + "current", + "module" + ], + "dependencies": { + "package-json": "^6.3.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "semver": "^6.0.0", + "semver-regex": "^2.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/lines-and-columns/package.json b/node_modules/lines-and-columns/package.json index 0ac37ec31..646cb2301 100644 --- a/node_modules/lines-and-columns/package.json +++ b/node_modules/lines-and-columns/package.json @@ -42,8 +42,4 @@ "typescript": "^2.1.4" }, "version": "1.1.6" - -,"_resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz" -,"_integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=" -,"_from": "lines-and-columns@1.1.6" } \ No newline at end of file diff --git a/node_modules/load-json-file/node_modules/strip-bom/package.json b/node_modules/load-json-file/node_modules/strip-bom/package.json index a2e66c154..f37e6ab2e 100644 --- a/node_modules/load-json-file/node_modules/strip-bom/package.json +++ b/node_modules/load-json-file/node_modules/strip-bom/package.json @@ -37,8 +37,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz" -,"_integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=" -,"_from": "strip-bom@3.0.0" } \ No newline at end of file diff --git a/node_modules/load-json-file/node_modules/type-fest/package.json b/node_modules/load-json-file/node_modules/type-fest/package.json index 3661ed5f9..e0a025de5 100644 --- a/node_modules/load-json-file/node_modules/type-fest/package.json +++ b/node_modules/load-json-file/node_modules/type-fest/package.json @@ -1,53 +1,49 @@ { - "name": "type-fest", - "version": "0.3.1", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.3.0", - "@typescript-eslint/eslint-plugin": "^1.5.0", - "eslint-config-xo-typescript": "^0.9.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz" -,"_integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==" -,"_from": "type-fest@0.3.1" + "name": "type-fest", + "version": "0.3.1", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.3.0", + "@typescript-eslint/eslint-plugin": "^1.5.0", + "eslint-config-xo-typescript": "^0.9.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off" + } + } } \ No newline at end of file diff --git a/node_modules/load-json-file/package.json b/node_modules/load-json-file/package.json index 16da414d5..644fa615e 100644 --- a/node_modules/load-json-file/package.json +++ b/node_modules/load-json-file/package.json @@ -1,47 +1,43 @@ { - "name": "load-json-file", - "version": "5.3.0", - "description": "Read and parse a JSON file", - "license": "MIT", - "repository": "sindresorhus/load-json-file", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "read", - "json", - "parse", - "file", - "fs", - "graceful", - "load" - ], - "dependencies": { - "graceful-fs": "^4.1.15", - "parse-json": "^4.0.0", - "pify": "^4.0.1", - "strip-bom": "^3.0.0", - "type-fest": "^0.3.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz" -,"_integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==" -,"_from": "load-json-file@5.3.0" + "name": "load-json-file", + "version": "5.3.0", + "description": "Read and parse a JSON file", + "license": "MIT", + "repository": "sindresorhus/load-json-file", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "read", + "json", + "parse", + "file", + "fs", + "graceful", + "load" + ], + "dependencies": { + "graceful-fs": "^4.1.15", + "parse-json": "^4.0.0", + "pify": "^4.0.1", + "strip-bom": "^3.0.0", + "type-fest": "^0.3.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/locate-path/package.json b/node_modules/locate-path/package.json index a73101f8e..c3cac4f11 100644 --- a/node_modules/locate-path/package.json +++ b/node_modules/locate-path/package.json @@ -1,49 +1,45 @@ { - "name": "locate-path", - "version": "5.0.0", - "description": "Get the first path that exists on disk of multiple paths", - "license": "MIT", - "repository": "sindresorhus/locate-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "locate", - "path", - "paths", - "file", - "files", - "exists", - "find", - "finder", - "search", - "searcher", - "array", - "iterable", - "iterator" - ], - "dependencies": { - "p-locate": "^4.1.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz" -,"_integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==" -,"_from": "locate-path@5.0.0" + "name": "locate-path", + "version": "5.0.0", + "description": "Get the first path that exists on disk of multiple paths", + "license": "MIT", + "repository": "sindresorhus/locate-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "locate", + "path", + "paths", + "file", + "files", + "exists", + "find", + "finder", + "search", + "searcher", + "array", + "iterable", + "iterator" + ], + "dependencies": { + "p-locate": "^4.1.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/lodash.clonedeep/package.json b/node_modules/lodash.clonedeep/package.json index 63593f28b..06e0a424b 100644 --- a/node_modules/lodash.clonedeep/package.json +++ b/node_modules/lodash.clonedeep/package.json @@ -13,9 +13,7 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } - -,"_resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz" -,"_integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" -,"_from": "lodash.clonedeep@4.5.0" + "scripts": { + "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" + } } \ No newline at end of file diff --git a/node_modules/lodash.flattendeep/package.json b/node_modules/lodash.flattendeep/package.json index d70de5dc8..24bf32a74 100644 --- a/node_modules/lodash.flattendeep/package.json +++ b/node_modules/lodash.flattendeep/package.json @@ -13,9 +13,7 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } - -,"_resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz" -,"_integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=" -,"_from": "lodash.flattendeep@4.4.0" + "scripts": { + "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" + } } \ No newline at end of file diff --git a/node_modules/lodash.islength/package.json b/node_modules/lodash.islength/package.json index dfda9a8e9..e8687664b 100644 --- a/node_modules/lodash.islength/package.json +++ b/node_modules/lodash.islength/package.json @@ -13,9 +13,7 @@ "Mathias Bynens (https://mathiasbynens.be/)" ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } - -,"_resolved": "https://registry.npmjs.org/lodash.islength/-/lodash.islength-4.0.1.tgz" -,"_integrity": "sha1-Tpho1FJXXXUK/9NYyXlUPcIO1Xc=" -,"_from": "lodash.islength@4.0.1" + "scripts": { + "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" + } } \ No newline at end of file diff --git a/node_modules/lodash.merge/package.json b/node_modules/lodash.merge/package.json index 64c7bcf4c..41a93f294 100644 --- a/node_modules/lodash.merge/package.json +++ b/node_modules/lodash.merge/package.json @@ -12,9 +12,7 @@ "Mathias Bynens " ], "repository": "lodash/lodash", - "scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } - -,"_resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz" -,"_integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==" -,"_from": "lodash.merge@4.6.2" + "scripts": { + "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" + } } \ No newline at end of file diff --git a/node_modules/lodash/package.json b/node_modules/lodash/package.json index 205e9bb0a..d0967f7a9 100644 --- a/node_modules/lodash/package.json +++ b/node_modules/lodash/package.json @@ -13,9 +13,7 @@ "John-David Dalton ", "Mathias Bynens " ], - "scripts": { "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" } - -,"_resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz" -,"_integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==" -,"_from": "lodash@4.17.15" + "scripts": { + "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" + } } \ No newline at end of file diff --git a/node_modules/log-symbols/package.json b/node_modules/log-symbols/package.json index fe17beec9..a7bb760a1 100644 --- a/node_modules/log-symbols/package.json +++ b/node_modules/log-symbols/package.json @@ -1,54 +1,50 @@ { - "name": "log-symbols", - "version": "3.0.0", - "description": "Colored symbols for various log levels. Example: `✔︎ Success`", - "license": "MIT", - "repository": "sindresorhus/log-symbols", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "browser.js" - ], - "keywords": [ - "unicode", - "cli", - "cmd", - "command-line", - "characters", - "symbol", - "symbols", - "figure", - "figures", - "fallback", - "windows", - "log", - "logging", - "terminal", - "stdout" - ], - "dependencies": { - "chalk": "^2.4.2" - }, - "devDependencies": { - "ava": "^1.4.1", - "strip-ansi": "^5.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-3.0.0.tgz" -,"_integrity": "sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ==" -,"_from": "log-symbols@3.0.0" + "name": "log-symbols", + "version": "3.0.0", + "description": "Colored symbols for various log levels. Example: `✔︎ Success`", + "license": "MIT", + "repository": "sindresorhus/log-symbols", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "browser.js" + ], + "keywords": [ + "unicode", + "cli", + "cmd", + "command-line", + "characters", + "symbol", + "symbols", + "figure", + "figures", + "fallback", + "windows", + "log", + "logging", + "terminal", + "stdout" + ], + "dependencies": { + "chalk": "^2.4.2" + }, + "devDependencies": { + "ava": "^1.4.1", + "strip-ansi": "^5.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/long/package.json b/node_modules/long/package.json index 3be939df4..922ef794d 100644 --- a/node_modules/long/package.json +++ b/node_modules/long/package.json @@ -1,38 +1,34 @@ { - "name": "long", - "version": "4.0.0", - "author": "Daniel Wirtz ", - "description": "A Long class for representing a 64-bit two's-complement integer value.", - "main": "src/long.js", - "repository": { - "type": "git", - "url": "https://github.com/dcodeIO/long.js.git" - }, - "bugs": { - "url": "https://github.com/dcodeIO/long.js/issues" - }, - "keywords": [ - "math" - ], - "dependencies": {}, - "devDependencies": { - "webpack": "^3.10.0" - }, - "license": "Apache-2.0", - "scripts": { - "build": "webpack", - "test": "node tests" - }, - "files": [ - "index.js", - "LICENSE", - "README.md", - "src/long.js", - "dist/long.js", - "dist/long.js.map" - ] - -,"_resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz" -,"_integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" -,"_from": "long@4.0.0" + "name": "long", + "version": "4.0.0", + "author": "Daniel Wirtz ", + "description": "A Long class for representing a 64-bit two's-complement integer value.", + "main": "src/long.js", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/long.js.git" + }, + "bugs": { + "url": "https://github.com/dcodeIO/long.js/issues" + }, + "keywords": [ + "math" + ], + "dependencies": {}, + "devDependencies": { + "webpack": "^3.10.0" + }, + "license": "Apache-2.0", + "scripts": { + "build": "webpack", + "test": "node tests" + }, + "files": [ + "index.js", + "LICENSE", + "README.md", + "src/long.js", + "dist/long.js", + "dist/long.js.map" + ] } \ No newline at end of file diff --git a/node_modules/lowercase-keys/package.json b/node_modules/lowercase-keys/package.json index 9723e2602..e28b4c1dd 100644 --- a/node_modules/lowercase-keys/package.json +++ b/node_modules/lowercase-keys/package.json @@ -32,8 +32,4 @@ "devDependencies": { "ava": "*" } - -,"_resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz" -,"_integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==" -,"_from": "lowercase-keys@1.0.1" } \ No newline at end of file diff --git a/node_modules/macos-release/package.json b/node_modules/macos-release/package.json index 870c40cb0..78bde8578 100644 --- a/node_modules/macos-release/package.json +++ b/node_modules/macos-release/package.json @@ -1,43 +1,39 @@ { - "name": "macos-release", - "version": "2.3.0", - "description": "Get the name and version of a macOS release from the Darwin version", - "license": "MIT", - "repository": "sindresorhus/macos-release", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "macos", - "os", - "darwin", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/macos-release/-/macos-release-2.3.0.tgz" -,"_integrity": "sha512-OHhSbtcviqMPt7yfw5ef5aghS2jzFVKEFyCJndQt2YpSQ9qRVSEv2axSJI1paVThEu+FFGs584h/1YhxjVqajA==" -,"_from": "macos-release@2.3.0" + "name": "macos-release", + "version": "2.3.0", + "description": "Get the name and version of a macOS release from the Darwin version", + "license": "MIT", + "repository": "sindresorhus/macos-release", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "macos", + "os", + "darwin", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/make-dir/node_modules/semver/package.json b/node_modules/make-dir/node_modules/semver/package.json index 13030769c..a330b56c2 100644 --- a/node_modules/make-dir/node_modules/semver/package.json +++ b/node_modules/make-dir/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" -,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" -,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/make-dir/package.json b/node_modules/make-dir/package.json index 27e91efaf..f644e281a 100644 --- a/node_modules/make-dir/package.json +++ b/node_modules/make-dir/package.json @@ -1,63 +1,59 @@ { - "name": "make-dir", - "version": "3.0.2", - "description": "Make a directory and its parents if needed - Think `mkdir -p`", - "license": "MIT", - "repository": "sindresorhus/make-dir", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "mkdir", - "mkdirp", - "make", - "directories", - "dir", - "dirs", - "folders", - "directory", - "folder", - "path", - "parent", - "parents", - "intermediate", - "recursively", - "recursive", - "create", - "fs", - "filesystem", - "file-system" - ], - "dependencies": { - "semver": "^6.0.0" - }, - "devDependencies": { - "@types/graceful-fs": "^4.1.3", - "@types/node": "^13.7.1", - "ava": "^1.4.0", - "codecov": "^3.2.0", - "graceful-fs": "^4.1.15", - "nyc": "^15.0.0", - "path-type": "^4.0.0", - "tempy": "^0.2.1", - "tsd": "^0.11.0", - "xo": "^0.25.4" - } - -,"_resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.0.2.tgz" -,"_integrity": "sha512-rYKABKutXa6vXTXhoV18cBE7PaewPXHe/Bdq4v+ZLMhxbWApkFFplT0LcbMW+6BbjnQXzZ/sAvSE/JdguApG5w==" -,"_from": "make-dir@3.0.2" + "name": "make-dir", + "version": "3.0.2", + "description": "Make a directory and its parents if needed - Think `mkdir -p`", + "license": "MIT", + "repository": "sindresorhus/make-dir", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "mkdir", + "mkdirp", + "make", + "directories", + "dir", + "dirs", + "folders", + "directory", + "folder", + "path", + "parent", + "parents", + "intermediate", + "recursively", + "recursive", + "create", + "fs", + "filesystem", + "file-system" + ], + "dependencies": { + "semver": "^6.0.0" + }, + "devDependencies": { + "@types/graceful-fs": "^4.1.3", + "@types/node": "^13.7.1", + "ava": "^1.4.0", + "codecov": "^3.2.0", + "graceful-fs": "^4.1.15", + "nyc": "^15.0.0", + "path-type": "^4.0.0", + "tempy": "^0.2.1", + "tsd": "^0.11.0", + "xo": "^0.25.4" + } } \ No newline at end of file diff --git a/node_modules/map-age-cleaner/package.json b/node_modules/map-age-cleaner/package.json index 2ce35979d..4478f2268 100644 --- a/node_modules/map-age-cleaner/package.json +++ b/node_modules/map-age-cleaner/package.json @@ -1,63 +1,59 @@ { - "name": "map-age-cleaner", - "version": "0.1.3", - "description": "Automatically cleanup expired items in a Map", - "license": "MIT", - "repository": "SamVerschueren/map-age-cleaner", - "author": { - "name": "Sam Verschueren", - "email": "sam.verschueren@gmail.com", - "url": "github.com/SamVerschueren" - }, - "main": "dist/index.js", - "engines": { - "node": ">=6" - }, - "scripts": { - "prepublishOnly": "npm run build", - "pretest": "npm run build -- --sourceMap", - "test": "npm run lint && nyc ava dist/test.js", - "lint": "tslint --format stylish --project .", - "build": "npm run clean && tsc", - "clean": "del-cli dist" - }, - "files": [ - "dist/index.js", - "dist/index.d.ts" - ], - "keywords": [ - "map", - "age", - "cleaner", - "maxage", - "expire", - "expiration", - "expiring" - ], - "dependencies": { - "p-defer": "^1.0.0" - }, - "devDependencies": { - "@types/delay": "^2.0.1", - "@types/node": "^10.7.1", - "ava": "^0.25.0", - "codecov": "^3.0.0", - "del-cli": "^1.1.0", - "delay": "^3.0.0", - "nyc": "^12.0.0", - "tslint": "^5.11.0", - "tslint-xo": "^0.9.0", - "typescript": "^3.0.1" - }, - "typings": "dist/index.d.ts", - "sideEffects": false, - "nyc": { - "exclude": [ - "dist/test.js" - ] - } - -,"_resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz" -,"_integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==" -,"_from": "map-age-cleaner@0.1.3" + "name": "map-age-cleaner", + "version": "0.1.3", + "description": "Automatically cleanup expired items in a Map", + "license": "MIT", + "repository": "SamVerschueren/map-age-cleaner", + "author": { + "name": "Sam Verschueren", + "email": "sam.verschueren@gmail.com", + "url": "github.com/SamVerschueren" + }, + "main": "dist/index.js", + "engines": { + "node": ">=6" + }, + "scripts": { + "prepublishOnly": "npm run build", + "pretest": "npm run build -- --sourceMap", + "test": "npm run lint && nyc ava dist/test.js", + "lint": "tslint --format stylish --project .", + "build": "npm run clean && tsc", + "clean": "del-cli dist" + }, + "files": [ + "dist/index.js", + "dist/index.d.ts" + ], + "keywords": [ + "map", + "age", + "cleaner", + "maxage", + "expire", + "expiration", + "expiring" + ], + "dependencies": { + "p-defer": "^1.0.0" + }, + "devDependencies": { + "@types/delay": "^2.0.1", + "@types/node": "^10.7.1", + "ava": "^0.25.0", + "codecov": "^3.0.0", + "del-cli": "^1.1.0", + "delay": "^3.0.0", + "nyc": "^12.0.0", + "tslint": "^5.11.0", + "tslint-xo": "^0.9.0", + "typescript": "^3.0.1" + }, + "typings": "dist/index.d.ts", + "sideEffects": false, + "nyc": { + "exclude": [ + "dist/test.js" + ] + } } \ No newline at end of file diff --git a/node_modules/matcher/node_modules/escape-string-regexp/package.json b/node_modules/matcher/node_modules/escape-string-regexp/package.json index 29a6312fd..053b31334 100644 --- a/node_modules/matcher/node_modules/escape-string-regexp/package.json +++ b/node_modules/matcher/node_modules/escape-string-regexp/package.json @@ -1,42 +1,38 @@ { - "name": "escape-string-regexp", - "version": "4.0.0", - "description": "Escape RegExp special characters", - "license": "MIT", - "repository": "sindresorhus/escape-string-regexp", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "escape", - "regex", - "regexp", - "regular", - "expression", - "string", - "special", - "characters" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.11.0", - "xo": "^0.28.3" - } - -,"_resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz" -,"_integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" -,"_from": "escape-string-regexp@4.0.0" + "name": "escape-string-regexp", + "version": "4.0.0", + "description": "Escape RegExp special characters", + "license": "MIT", + "repository": "sindresorhus/escape-string-regexp", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "escape", + "regex", + "regexp", + "regular", + "expression", + "string", + "special", + "characters" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.11.0", + "xo": "^0.28.3" + } } \ No newline at end of file diff --git a/node_modules/matcher/package.json b/node_modules/matcher/package.json index bae54d9ae..af3a3845f 100644 --- a/node_modules/matcher/package.json +++ b/node_modules/matcher/package.json @@ -1,58 +1,54 @@ { - "name": "matcher", - "version": "3.0.0", - "description": "Simple wildcard matching", - "license": "MIT", - "repository": "sindresorhus/matcher", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd", - "bench": "matcha bench.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "matcher", - "matching", - "match", - "regex", - "regexp", - "regular", - "expression", - "wildcard", - "pattern", - "string", - "filter", - "glob", - "globber", - "globbing", - "minimatch" - ], - "dependencies": { - "escape-string-regexp": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "matcha": "^0.7.0", - "tsd": "^0.11.0", - "xo": "^0.30.0" - }, - "xo": { - "rules": { - "@typescript-eslint/member-ordering": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz" -,"_integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==" -,"_from": "matcher@3.0.0" + "name": "matcher", + "version": "3.0.0", + "description": "Simple wildcard matching", + "license": "MIT", + "repository": "sindresorhus/matcher", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd", + "bench": "matcha bench.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "matcher", + "matching", + "match", + "regex", + "regexp", + "regular", + "expression", + "wildcard", + "pattern", + "string", + "filter", + "glob", + "globber", + "globbing", + "minimatch" + ], + "dependencies": { + "escape-string-regexp": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "matcha": "^0.7.0", + "tsd": "^0.11.0", + "xo": "^0.30.0" + }, + "xo": { + "rules": { + "@typescript-eslint/member-ordering": "off" + } + } } \ No newline at end of file diff --git a/node_modules/md5-hex/package.json b/node_modules/md5-hex/package.json index 63e1c3de6..a71c11260 100644 --- a/node_modules/md5-hex/package.json +++ b/node_modules/md5-hex/package.json @@ -1,45 +1,41 @@ { - "name": "md5-hex", - "version": "3.0.1", - "description": "Create a MD5 hash with hex encoding", - "license": "MIT", - "repository": "sindresorhus/md5-hex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "browser.js" - ], - "keywords": [ - "hash", - "crypto", - "md5", - "hex", - "buffer", - "browser" - ], - "dependencies": { - "blueimp-md5": "^2.10.0" - }, - "devDependencies": { - "@types/node": "^12.6.2", - "ava": "^2.2.0", - "tsd": "^0.7.4", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-3.0.1.tgz" -,"_integrity": "sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==" -,"_from": "md5-hex@3.0.1" + "name": "md5-hex", + "version": "3.0.1", + "description": "Create a MD5 hash with hex encoding", + "license": "MIT", + "repository": "sindresorhus/md5-hex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "browser.js" + ], + "keywords": [ + "hash", + "crypto", + "md5", + "hex", + "buffer", + "browser" + ], + "dependencies": { + "blueimp-md5": "^2.10.0" + }, + "devDependencies": { + "@types/node": "^12.6.2", + "ava": "^2.2.0", + "tsd": "^0.7.4", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/md5-o-matic/package.json b/node_modules/md5-o-matic/package.json index d5aeffd9f..72382adbc 100644 --- a/node_modules/md5-o-matic/package.json +++ b/node_modules/md5-o-matic/package.json @@ -28,9 +28,9 @@ }, "licenses": [ { - "type": "MIT", - "url": "https://github.com/trentmillar/md5-o-matic/blob/master/LICENSE" - } + "type": "MIT", + "url": "https://github.com/trentmillar/md5-o-matic/blob/master/LICENSE" + } ], "devDependencies": { "mocha": "", @@ -41,8 +41,4 @@ "url": "https://github.com/trentmillar/md5-o-matic/issues" }, "homepage": "https://github.com/trentmillar/md5-o-matic" - -,"_resolved": "https://registry.npmjs.org/md5-o-matic/-/md5-o-matic-0.1.1.tgz" -,"_integrity": "sha1-givM1l4RfFFPqxdrJZRdVBAKA8M=" -,"_from": "md5-o-matic@0.1.1" } \ No newline at end of file diff --git a/node_modules/md5/package.json b/node_modules/md5/package.json index 644e305f0..fdcac15a4 100644 --- a/node_modules/md5/package.json +++ b/node_modules/md5/package.json @@ -33,8 +33,4 @@ }, "optionalDependencies": {}, "license": "BSD-3-Clause" - -,"_resolved": "https://registry.npmjs.org/md5/-/md5-2.2.1.tgz" -,"_integrity": "sha1-U6s41f48iJG6RlMp6iP6wFQBJvk=" -,"_from": "md5@2.2.1" } \ No newline at end of file diff --git a/node_modules/mem/node_modules/mimic-fn/package.json b/node_modules/mem/node_modules/mimic-fn/package.json index ae102f417..ac43d06ca 100644 --- a/node_modules/mem/node_modules/mimic-fn/package.json +++ b/node_modules/mem/node_modules/mimic-fn/package.json @@ -1,46 +1,42 @@ { - "name": "mimic-fn", - "version": "3.0.0", - "description": "Make a function mimic another one", - "license": "MIT", - "repository": "sindresorhus/mimic-fn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "function", - "mimic", - "imitate", - "rename", - "copy", - "inherit", - "properties", - "name", - "func", - "fn", - "set", - "infer", - "change" - ], - "devDependencies": { - "ava": "^2.1.0", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.0.0.tgz" -,"_integrity": "sha512-PiVO95TKvhiwgSwg1IdLYlCTdul38yZxZMIcnDSFIBUm4BNZha2qpQ4GpJ++15bHoKDtrW2D69lMfFwdFYtNZQ==" -,"_from": "mimic-fn@3.0.0" + "name": "mimic-fn", + "version": "3.0.0", + "description": "Make a function mimic another one", + "license": "MIT", + "repository": "sindresorhus/mimic-fn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "function", + "mimic", + "imitate", + "rename", + "copy", + "inherit", + "properties", + "name", + "func", + "fn", + "set", + "infer", + "change" + ], + "devDependencies": { + "ava": "^2.1.0", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/mem/package.json b/node_modules/mem/package.json index 645ec3287..dba9edb68 100644 --- a/node_modules/mem/package.json +++ b/node_modules/mem/package.json @@ -1,50 +1,46 @@ { - "name": "mem", - "version": "6.1.0", - "description": "Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input", - "license": "MIT", - "repository": "sindresorhus/mem", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "memoize", - "function", - "mem", - "memoization", - "cache", - "caching", - "optimize", - "performance", - "ttl", - "expire", - "promise" - ], - "dependencies": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "delay": "^4.1.0", - "serialize-javascript": "^2.1.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/mem/-/mem-6.1.0.tgz" -,"_integrity": "sha512-RlbnLQgRHk5lwqTtpEkBTQ2ll/CG/iB+J4Hy2Wh97PjgZgXgWJWrFF+XXujh3UUVLvR4OOTgZzcWMMwnehlEUg==" -,"_from": "mem@6.1.0" + "name": "mem", + "version": "6.1.0", + "description": "Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input", + "license": "MIT", + "repository": "sindresorhus/mem", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "memoize", + "function", + "mem", + "memoization", + "cache", + "caching", + "optimize", + "performance", + "ttl", + "expire", + "promise" + ], + "dependencies": { + "map-age-cleaner": "^0.1.3", + "mimic-fn": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "delay": "^4.1.0", + "serialize-javascript": "^2.1.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/merge2/package.json b/node_modules/merge2/package.json index 972cfb99e..1e09cf88b 100644 --- a/node_modules/merge2/package.json +++ b/node_modules/merge2/package.json @@ -1,47 +1,43 @@ -{ - "name": "merge2", - "description": "Merge multiple streams into one stream in sequence or parallel.", - "authors": [ - "Yan Qing " - ], - "license": "MIT", - "version": "1.3.0", - "main": "./index.js", - "repository": { - "type": "git", - "url": "git@github.com:teambition/merge2.git" - }, - "homepage": "https://github.com/teambition/merge2", - "keywords": [ - "merge2", - "multiple", - "sequence", - "parallel", - "merge", - "stream", - "merge stream", - "sync" - ], - "engines": { - "node": ">= 6" - }, - "dependencies": {}, - "devDependencies": { - "standard": "^14.2.0", - "through2": "^3.0.1", - "thunks": "^4.9.5", - "tman": "^1.9.0", - "to-through": "^2.0.0" - }, - "scripts": { - "test": "standard && tman" - }, - "files": [ - "README.md", - "index.js" - ] - -,"_resolved": "https://registry.npmjs.org/merge2/-/merge2-1.3.0.tgz" -,"_integrity": "sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==" -,"_from": "merge2@1.3.0" +{ + "name": "merge2", + "description": "Merge multiple streams into one stream in sequence or parallel.", + "authors": [ + "Yan Qing " + ], + "license": "MIT", + "version": "1.3.0", + "main": "./index.js", + "repository": { + "type": "git", + "url": "git@github.com:teambition/merge2.git" + }, + "homepage": "https://github.com/teambition/merge2", + "keywords": [ + "merge2", + "multiple", + "sequence", + "parallel", + "merge", + "stream", + "merge stream", + "sync" + ], + "engines": { + "node": ">= 6" + }, + "dependencies": {}, + "devDependencies": { + "standard": "^14.2.0", + "through2": "^3.0.1", + "thunks": "^4.9.5", + "tman": "^1.9.0", + "to-through": "^2.0.0" + }, + "scripts": { + "test": "standard && tman" + }, + "files": [ + "README.md", + "index.js" + ] } \ No newline at end of file diff --git a/node_modules/micromatch/package.json b/node_modules/micromatch/package.json index 5fbff1a64..0b870b1fe 100644 --- a/node_modules/micromatch/package.json +++ b/node_modules/micromatch/package.json @@ -115,8 +115,4 @@ "multimatch" ] } - -,"_resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz" -,"_integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==" -,"_from": "micromatch@4.0.2" } \ No newline at end of file diff --git a/node_modules/mimic-fn/package.json b/node_modules/mimic-fn/package.json index 0ed35fde3..cddfcb379 100644 --- a/node_modules/mimic-fn/package.json +++ b/node_modules/mimic-fn/package.json @@ -1,46 +1,42 @@ { - "name": "mimic-fn", - "version": "2.1.0", - "description": "Make a function mimic another one", - "license": "MIT", - "repository": "sindresorhus/mimic-fn", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "function", - "mimic", - "imitate", - "rename", - "copy", - "inherit", - "properties", - "name", - "func", - "fn", - "set", - "infer", - "change" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz" -,"_integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==" -,"_from": "mimic-fn@2.1.0" + "name": "mimic-fn", + "version": "2.1.0", + "description": "Make a function mimic another one", + "license": "MIT", + "repository": "sindresorhus/mimic-fn", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "function", + "mimic", + "imitate", + "rename", + "copy", + "inherit", + "properties", + "name", + "func", + "fn", + "set", + "infer", + "change" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/mimic-response/package.json b/node_modules/mimic-response/package.json index f491ccda6..953152b76 100644 --- a/node_modules/mimic-response/package.json +++ b/node_modules/mimic-response/package.json @@ -34,8 +34,4 @@ "pify": "^3.0.0", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz" -,"_integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==" -,"_from": "mimic-response@1.0.1" } \ No newline at end of file diff --git a/node_modules/minimatch/package.json b/node_modules/minimatch/package.json index 243f26056..8c89ea278 100644 --- a/node_modules/minimatch/package.json +++ b/node_modules/minimatch/package.json @@ -27,8 +27,4 @@ "files": [ "minimatch.js" ] - -,"_resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz" -,"_integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==" -,"_from": "minimatch@3.0.4" } \ No newline at end of file diff --git a/node_modules/minimist/package.json b/node_modules/minimist/package.json index 71b4f816e..6d7171689 100644 --- a/node_modules/minimist/package.json +++ b/node_modules/minimist/package.json @@ -42,8 +42,4 @@ "url": "http://substack.net" }, "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz" -,"_integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" -,"_from": "minimist@1.2.5" } \ No newline at end of file diff --git a/node_modules/mkdirp/package.json b/node_modules/mkdirp/package.json index 8f5b167f8..b335f1ae0 100644 --- a/node_modules/mkdirp/package.json +++ b/node_modules/mkdirp/package.json @@ -31,8 +31,4 @@ "bin", "index.js" ] - -,"_resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.4.tgz" -,"_integrity": "sha512-iG9AK/dJLtJ0XNgTuDbSyNS3zECqDlAhnQW4CsNxBG3LQJBbHmRX1egw39DmtOdCAqY+dKXV+sgPgilNWUKMVw==" -,"_from": "mkdirp@0.5.4" } \ No newline at end of file diff --git a/node_modules/ms/package.json b/node_modules/ms/package.json index e286ef2be..3408eef7c 100644 --- a/node_modules/ms/package.json +++ b/node_modules/ms/package.json @@ -34,8 +34,4 @@ "lint-staged": "5.0.0", "mocha": "4.0.1" } - -,"_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz" -,"_integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" -,"_from": "ms@2.1.2" } \ No newline at end of file diff --git a/node_modules/mute-stream/package.json b/node_modules/mute-stream/package.json index 92cedb79a..dcd78bedf 100644 --- a/node_modules/mute-stream/package.json +++ b/node_modules/mute-stream/package.json @@ -26,8 +26,4 @@ "files": [ "mute.js" ] - -,"_resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz" -,"_integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" -,"_from": "mute-stream@0.0.8" } \ No newline at end of file diff --git a/node_modules/nice-try/package.json b/node_modules/nice-try/package.json index c118b5728..9d6f07278 100644 --- a/node_modules/nice-try/package.json +++ b/node_modules/nice-try/package.json @@ -30,8 +30,4 @@ "nyc": "^12.0.1", "mocha": "^5.1.1" } - -,"_resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz" -,"_integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==" -,"_from": "nice-try@1.0.5" } \ No newline at end of file diff --git a/node_modules/nock/package.json b/node_modules/nock/package.json index ff6dddc87..9f0f2004f 100644 --- a/node_modules/nock/package.json +++ b/node_modules/nock/package.json @@ -83,8 +83,4 @@ "lib", "types/index.d.ts" ] - -,"_resolved": "https://registry.npmjs.org/nock/-/nock-12.0.3.tgz" -,"_integrity": "sha512-QNb/j8kbFnKCiyqi9C5DD0jH/FubFGj5rt9NQFONXwQm3IPB0CULECg/eS3AU1KgZb/6SwUa4/DTRKhVxkGABw==" -,"_from": "nock@12.0.3" } \ No newline at end of file diff --git a/node_modules/node-fetch/package.json b/node_modules/node-fetch/package.json index d9dc1c211..78a30d35a 100644 --- a/node_modules/node-fetch/package.json +++ b/node_modules/node-fetch/package.json @@ -63,8 +63,4 @@ "whatwg-url": "^5.0.0" }, "dependencies": {} - -,"_resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.0.tgz" -,"_integrity": "sha512-8dG4H5ujfvFiqDmVu9fQ5bOHUC15JMjMY/Zumv26oOvvVJjM67KF8koCWIabKQ1GJIa9r2mMZscBq/TbdOcmNA==" -,"_from": "node-fetch@2.6.0" } \ No newline at end of file diff --git a/node_modules/normalize-package-data/node_modules/semver/package.json b/node_modules/normalize-package-data/node_modules/semver/package.json index 31e12dde0..90e287ecf 100644 --- a/node_modules/normalize-package-data/node_modules/semver/package.json +++ b/node_modules/normalize-package-data/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" -,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" -,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/normalize-package-data/package.json b/node_modules/normalize-package-data/package.json index c73c60bb1..b427a6052 100644 --- a/node_modules/normalize-package-data/package.json +++ b/node_modules/normalize-package-data/package.json @@ -28,8 +28,4 @@ "lib/*.json", "AUTHORS" ] - -,"_resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz" -,"_integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==" -,"_from": "normalize-package-data@2.5.0" } \ No newline at end of file diff --git a/node_modules/normalize-url/package.json b/node_modules/normalize-url/package.json index 6d81b2f93..84adbb278 100644 --- a/node_modules/normalize-url/package.json +++ b/node_modules/normalize-url/package.json @@ -1,48 +1,44 @@ { - "name": "normalize-url", - "version": "4.5.0", - "description": "Normalize a URL", - "license": "MIT", - "repository": "sindresorhus/normalize-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "normalize", - "url", - "uri", - "address", - "string", - "normalization", - "normalisation", - "query", - "querystring", - "simplify", - "strip", - "trim", - "canonical" - ], - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.6", - "nyc": "^14.1.1", - "tsd": "^0.8.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz" -,"_integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==" -,"_from": "normalize-url@4.5.0" + "name": "normalize-url", + "version": "4.5.0", + "description": "Normalize a URL", + "license": "MIT", + "repository": "sindresorhus/normalize-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "normalize", + "url", + "uri", + "address", + "string", + "normalization", + "normalisation", + "query", + "querystring", + "simplify", + "strip", + "trim", + "canonical" + ], + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.6", + "nyc": "^14.1.1", + "tsd": "^0.8.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/npm-run-path/package.json b/node_modules/npm-run-path/package.json index 557c23e7b..509723438 100644 --- a/node_modules/npm-run-path/package.json +++ b/node_modules/npm-run-path/package.json @@ -42,8 +42,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz" -,"_integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=" -,"_from": "npm-run-path@2.0.2" } \ No newline at end of file diff --git a/node_modules/once/package.json b/node_modules/once/package.json index a498f74fd..c827b2595 100644 --- a/node_modules/once/package.json +++ b/node_modules/once/package.json @@ -30,8 +30,4 @@ ], "author": "Isaac Z. Schlueter (http://blog.izs.me/)", "license": "ISC" - -,"_resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz" -,"_integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=" -,"_from": "once@1.4.0" } \ No newline at end of file diff --git a/node_modules/onetime/package.json b/node_modules/onetime/package.json index 93be75fae..19a7f198c 100644 --- a/node_modules/onetime/package.json +++ b/node_modules/onetime/package.json @@ -1,46 +1,42 @@ { - "name": "onetime", - "version": "5.1.0", - "description": "Ensure a function is only called once", - "license": "MIT", - "repository": "sindresorhus/onetime", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "once", - "function", - "one", - "onetime", - "func", - "fn", - "single", - "call", - "called", - "prevent" - ], - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.0.tgz" -,"_integrity": "sha512-5NcSkPHhwTVFIQN+TUqXoS5+dlElHXdpAWu9I0HP20YOtIi+aZ0Ct82jdlILDxjLEAWwvm+qj1m6aEtsDVmm6Q==" -,"_from": "onetime@5.1.0" + "name": "onetime", + "version": "5.1.0", + "description": "Ensure a function is only called once", + "license": "MIT", + "repository": "sindresorhus/onetime", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "once", + "function", + "one", + "onetime", + "func", + "fn", + "single", + "call", + "called", + "prevent" + ], + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ora/node_modules/ansi-styles/package.json b/node_modules/ora/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/ora/node_modules/ansi-styles/package.json +++ b/node_modules/ora/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/ora/node_modules/chalk/package.json b/node_modules/ora/node_modules/chalk/package.json index c75d30e94..b68e931e7 100644 --- a/node_modules/ora/node_modules/chalk/package.json +++ b/node_modules/ora/node_modules/chalk/package.json @@ -1,67 +1,63 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" -,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" -,"_from": "chalk@3.0.0" + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } } \ No newline at end of file diff --git a/node_modules/ora/node_modules/color-convert/package.json b/node_modules/ora/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/ora/node_modules/color-convert/package.json +++ b/node_modules/ora/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/color-name/package.json b/node_modules/ora/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/ora/node_modules/color-name/package.json +++ b/node_modules/ora/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/ora/node_modules/has-flag/package.json b/node_modules/ora/node_modules/has-flag/package.json index 5b10a2844..55d0058e4 100644 --- a/node_modules/ora/node_modules/has-flag/package.json +++ b/node_modules/ora/node_modules/has-flag/package.json @@ -1,50 +1,46 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" -,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" -,"_from": "has-flag@4.0.0" + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/ora/node_modules/supports-color/package.json b/node_modules/ora/node_modules/supports-color/package.json index f0982eb21..79856038d 100644 --- a/node_modules/ora/node_modules/supports-color/package.json +++ b/node_modules/ora/node_modules/supports-color/package.json @@ -1,57 +1,53 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" -,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" -,"_from": "supports-color@7.1.0" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/ora/package.json b/node_modules/ora/package.json index 29fd1e344..f5e907f91 100644 --- a/node_modules/ora/package.json +++ b/node_modules/ora/package.json @@ -1,60 +1,56 @@ { - "name": "ora", - "version": "4.0.4", - "description": "Elegant terminal spinner", - "license": "MIT", - "repository": "sindresorhus/ora", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "cli", - "spinner", - "spinners", - "terminal", - "term", - "console", - "ascii", - "unicode", - "loading", - "indicator", - "progress", - "busy", - "wait", - "idle" - ], - "dependencies": { - "chalk": "^3.0.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.2.0", - "is-interactive": "^1.0.0", - "log-symbols": "^3.0.0", - "mute-stream": "0.0.8", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "devDependencies": { - "@types/node": "^12.7.5", - "ava": "^2.4.0", - "get-stream": "^5.1.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ora/-/ora-4.0.4.tgz" -,"_integrity": "sha512-77iGeVU1cIdRhgFzCK8aw1fbtT1B/iZAvWjS+l/o1x0RShMgxHUZaD2yDpWsNCPwXg9z1ZA78Kbdvr8kBmG/Ww==" -,"_from": "ora@4.0.4" + "name": "ora", + "version": "4.0.4", + "description": "Elegant terminal spinner", + "license": "MIT", + "repository": "sindresorhus/ora", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "cli", + "spinner", + "spinners", + "terminal", + "term", + "console", + "ascii", + "unicode", + "loading", + "indicator", + "progress", + "busy", + "wait", + "idle" + ], + "dependencies": { + "chalk": "^3.0.0", + "cli-cursor": "^3.1.0", + "cli-spinners": "^2.2.0", + "is-interactive": "^1.0.0", + "log-symbols": "^3.0.0", + "mute-stream": "0.0.8", + "strip-ansi": "^6.0.0", + "wcwidth": "^1.0.1" + }, + "devDependencies": { + "@types/node": "^12.7.5", + "ava": "^2.4.0", + "get-stream": "^5.1.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/os-name/package.json b/node_modules/os-name/package.json index 2ce367f0e..3418bf392 100644 --- a/node_modules/os-name/package.json +++ b/node_modules/os-name/package.json @@ -1,49 +1,45 @@ { - "name": "os-name", - "version": "3.1.0", - "description": "Get the name of the current operating system. Example: macOS Sierra", - "license": "MIT", - "repository": "sindresorhus/os-name", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "os", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version", - "macos", - "windows", - "linux" - ], - "dependencies": { - "macos-release": "^2.2.0", - "windows-release": "^3.1.0" - }, - "devDependencies": { - "@types/node": "^11.13.0", - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/os-name/-/os-name-3.1.0.tgz" -,"_integrity": "sha512-h8L+8aNjNcMpo/mAIBPn5PXCM16iyPGjHNWo6U1YO8sJTMHtEtyczI6QJnLoplswm6goopQkqc7OAnjhWcugVg==" -,"_from": "os-name@3.1.0" + "name": "os-name", + "version": "3.1.0", + "description": "Get the name of the current operating system. Example: macOS Sierra", + "license": "MIT", + "repository": "sindresorhus/os-name", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "os", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version", + "macos", + "windows", + "linux" + ], + "dependencies": { + "macos-release": "^2.2.0", + "windows-release": "^3.1.0" + }, + "devDependencies": { + "@types/node": "^11.13.0", + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/p-cancelable/package.json b/node_modules/p-cancelable/package.json index 7ffb5608e..98d0b765a 100644 --- a/node_modules/p-cancelable/package.json +++ b/node_modules/p-cancelable/package.json @@ -1,53 +1,49 @@ { - "name": "p-cancelable", - "version": "1.1.0", - "description": "Create a promise that can be canceled", - "license": "MIT", - "repository": "sindresorhus/p-cancelable", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "cancelable", - "cancel", - "canceled", - "canceling", - "cancellable", - "cancellation", - "abort", - "abortable", - "aborting", - "cleanup", - "task", - "token", - "async", - "function", - "await", - "promises", - "bluebird" - ], - "devDependencies": { - "ava": "^1.3.1", - "delay": "^4.1.0", - "promise.prototype.finally": "^3.1.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz" -,"_integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==" -,"_from": "p-cancelable@1.1.0" + "name": "p-cancelable", + "version": "1.1.0", + "description": "Create a promise that can be canceled", + "license": "MIT", + "repository": "sindresorhus/p-cancelable", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "cancelable", + "cancel", + "canceled", + "canceling", + "cancellable", + "cancellation", + "abort", + "abortable", + "aborting", + "cleanup", + "task", + "token", + "async", + "function", + "await", + "promises", + "bluebird" + ], + "devDependencies": { + "ava": "^1.3.1", + "delay": "^4.1.0", + "promise.prototype.finally": "^3.1.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/p-defer/package.json b/node_modules/p-defer/package.json index 5b8a525ca..d7f9b811b 100644 --- a/node_modules/p-defer/package.json +++ b/node_modules/p-defer/package.json @@ -38,8 +38,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz" -,"_integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=" -,"_from": "p-defer@1.0.0" } \ No newline at end of file diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json index 719d847cf..8a58ebb94 100644 --- a/node_modules/p-finally/package.json +++ b/node_modules/p-finally/package.json @@ -39,8 +39,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz" -,"_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=" -,"_from": "p-finally@1.0.0" } \ No newline at end of file diff --git a/node_modules/p-limit/package.json b/node_modules/p-limit/package.json index 256a22233..8a8f33e00 100644 --- a/node_modules/p-limit/package.json +++ b/node_modules/p-limit/package.json @@ -1,55 +1,51 @@ { - "name": "p-limit", - "version": "2.2.1", - "description": "Run multiple promise-returning & async functions with limited concurrency", - "license": "MIT", - "repository": "sindresorhus/p-limit", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "limit", - "limited", - "concurrency", - "throttle", - "throat", - "rate", - "batch", - "ratelimit", - "task", - "queue", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-try": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.2.1", - "delay": "^4.1.0", - "in-range": "^1.0.0", - "random-int": "^1.0.0", - "time-span": "^2.0.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz" -,"_integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==" -,"_from": "p-limit@2.2.1" + "name": "p-limit", + "version": "2.2.1", + "description": "Run multiple promise-returning & async functions with limited concurrency", + "license": "MIT", + "repository": "sindresorhus/p-limit", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "limit", + "limited", + "concurrency", + "throttle", + "throat", + "rate", + "batch", + "ratelimit", + "task", + "queue", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-try": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.2.1", + "delay": "^4.1.0", + "in-range": "^1.0.0", + "random-int": "^1.0.0", + "time-span": "^2.0.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/p-locate/package.json b/node_modules/p-locate/package.json index d2e602eee..24bf49512 100644 --- a/node_modules/p-locate/package.json +++ b/node_modules/p-locate/package.json @@ -1,57 +1,53 @@ { - "name": "p-locate", - "version": "4.1.0", - "description": "Get the first fulfilled promise that satisfies the provided testing function", - "license": "MIT", - "repository": "sindresorhus/p-locate", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "locate", - "find", - "finder", - "search", - "searcher", - "test", - "array", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "fastest", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-limit": "^2.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "delay": "^4.1.0", - "in-range": "^1.0.0", - "time-span": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz" -,"_integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==" -,"_from": "p-locate@4.1.0" + "name": "p-locate", + "version": "4.1.0", + "description": "Get the first fulfilled promise that satisfies the provided testing function", + "license": "MIT", + "repository": "sindresorhus/p-locate", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "locate", + "find", + "finder", + "search", + "searcher", + "test", + "array", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "fastest", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-limit": "^2.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "delay": "^4.1.0", + "in-range": "^1.0.0", + "time-span": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/p-map/package.json b/node_modules/p-map/package.json index 0292392d0..8782cb6af 100644 --- a/node_modules/p-map/package.json +++ b/node_modules/p-map/package.json @@ -1,57 +1,53 @@ { - "name": "p-map", - "version": "4.0.0", - "description": "Map over promises concurrently", - "license": "MIT", - "repository": "sindresorhus/p-map", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "map", - "resolved", - "wait", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "async", - "await", - "promises", - "concurrently", - "concurrency", - "parallel", - "bluebird" - ], - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "delay": "^4.1.0", - "in-range": "^2.0.0", - "random-int": "^2.0.0", - "time-span": "^3.1.0", - "tsd": "^0.7.4", - "xo": "^0.27.2" - } - -,"_resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz" -,"_integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==" -,"_from": "p-map@4.0.0" + "name": "p-map", + "version": "4.0.0", + "description": "Map over promises concurrently", + "license": "MIT", + "repository": "sindresorhus/p-map", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "map", + "resolved", + "wait", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "async", + "await", + "promises", + "concurrently", + "concurrency", + "parallel", + "bluebird" + ], + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "delay": "^4.1.0", + "in-range": "^2.0.0", + "random-int": "^2.0.0", + "time-span": "^3.1.0", + "tsd": "^0.7.4", + "xo": "^0.27.2" + } } \ No newline at end of file diff --git a/node_modules/p-try/package.json b/node_modules/p-try/package.json index 640f8f8d2..43c139fa7 100644 --- a/node_modules/p-try/package.json +++ b/node_modules/p-try/package.json @@ -1,46 +1,42 @@ { - "name": "p-try", - "version": "2.2.0", - "description": "`Start a promise chain", - "license": "MIT", - "repository": "sindresorhus/p-try", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "promise", - "try", - "resolve", - "function", - "catch", - "async", - "await", - "promises", - "settled", - "ponyfill", - "polyfill", - "shim", - "bluebird" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz" -,"_integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==" -,"_from": "p-try@2.2.0" + "name": "p-try", + "version": "2.2.0", + "description": "`Start a promise chain", + "license": "MIT", + "repository": "sindresorhus/p-try", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "promise", + "try", + "resolve", + "function", + "catch", + "async", + "await", + "promises", + "settled", + "ponyfill", + "polyfill", + "shim", + "bluebird" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/package-json/node_modules/semver/package.json b/node_modules/package-json/node_modules/semver/package.json index 13030769c..a330b56c2 100644 --- a/node_modules/package-json/node_modules/semver/package.json +++ b/node_modules/package-json/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" -,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" -,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/package-json/package.json b/node_modules/package-json/package.json index 03db7a062..f090b5552 100644 --- a/node_modules/package-json/package.json +++ b/node_modules/package-json/package.json @@ -1,50 +1,46 @@ { - "name": "package-json", - "version": "6.5.0", - "description": "Get metadata of a package from the npm registry", - "license": "MIT", - "repository": "sindresorhus/package-json", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "registry", - "package", - "pkg", - "package.json", - "json", - "module", - "scope", - "scoped" - ], - "dependencies": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, - "devDependencies": { - "@types/node": "^12.6.8", - "ava": "^2.2.0", - "mock-private-registry": "^1.1.2", - "tsd": "^0.7.4", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz" -,"_integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==" -,"_from": "package-json@6.5.0" + "name": "package-json", + "version": "6.5.0", + "description": "Get metadata of a package from the npm registry", + "license": "MIT", + "repository": "sindresorhus/package-json", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "registry", + "package", + "pkg", + "package.json", + "json", + "module", + "scope", + "scoped" + ], + "dependencies": { + "got": "^9.6.0", + "registry-auth-token": "^4.0.0", + "registry-url": "^5.0.0", + "semver": "^6.2.0" + }, + "devDependencies": { + "@types/node": "^12.6.8", + "ava": "^2.2.0", + "mock-private-registry": "^1.1.2", + "tsd": "^0.7.4", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/parse-json/package.json b/node_modules/parse-json/package.json index feb71a05a..9bbcba68c 100644 --- a/node_modules/parse-json/package.json +++ b/node_modules/parse-json/package.json @@ -40,8 +40,4 @@ "nyc": "^11.2.1", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz" -,"_integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=" -,"_from": "parse-json@4.0.0" } \ No newline at end of file diff --git a/node_modules/parse-ms/package.json b/node_modules/parse-ms/package.json index e1671d4de..556e3e088 100644 --- a/node_modules/parse-ms/package.json +++ b/node_modules/parse-ms/package.json @@ -1,44 +1,40 @@ { - "name": "parse-ms", - "version": "2.1.0", - "description": "Parse milliseconds into an object", - "license": "MIT", - "repository": "sindresorhus/parse-ms", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "browser", - "parse", - "time", - "ms", - "milliseconds", - "microseconds", - "nanoseconds", - "duration", - "period", - "range", - "interval" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz" -,"_integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==" -,"_from": "parse-ms@2.1.0" + "name": "parse-ms", + "version": "2.1.0", + "description": "Parse milliseconds into an object", + "license": "MIT", + "repository": "sindresorhus/parse-ms", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "browser", + "parse", + "time", + "ms", + "milliseconds", + "microseconds", + "nanoseconds", + "duration", + "period", + "range", + "interval" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/path-exists/package.json b/node_modules/path-exists/package.json index 60c6b6518..90039cc2f 100644 --- a/node_modules/path-exists/package.json +++ b/node_modules/path-exists/package.json @@ -1,43 +1,39 @@ { - "name": "path-exists", - "version": "4.0.0", - "description": "Check if a path exists", - "license": "MIT", - "repository": "sindresorhus/path-exists", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "exists", - "exist", - "file", - "filepath", - "fs", - "filesystem", - "file-system", - "access", - "stat" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz" -,"_integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==" -,"_from": "path-exists@4.0.0" + "name": "path-exists", + "version": "4.0.0", + "description": "Check if a path exists", + "license": "MIT", + "repository": "sindresorhus/path-exists", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "exists", + "exist", + "file", + "filepath", + "fs", + "filesystem", + "file-system", + "access", + "stat" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/path-is-absolute/package.json b/node_modules/path-is-absolute/package.json index a29658e3f..b17117f3e 100644 --- a/node_modules/path-is-absolute/package.json +++ b/node_modules/path-is-absolute/package.json @@ -40,8 +40,4 @@ "devDependencies": { "xo": "^0.16.0" } - -,"_resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz" -,"_integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" -,"_from": "path-is-absolute@1.0.1" } \ No newline at end of file diff --git a/node_modules/path-key/package.json b/node_modules/path-key/package.json index d9d275133..843f0b378 100644 --- a/node_modules/path-key/package.json +++ b/node_modules/path-key/package.json @@ -36,8 +36,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz" -,"_integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=" -,"_from": "path-key@2.0.1" } \ No newline at end of file diff --git a/node_modules/path-parse/package.json b/node_modules/path-parse/package.json index 0d977469c..b5cca7a87 100644 --- a/node_modules/path-parse/package.json +++ b/node_modules/path-parse/package.json @@ -30,8 +30,4 @@ "url": "https://github.com/jbgutierrez/path-parse/issues" }, "homepage": "https://github.com/jbgutierrez/path-parse#readme" - -,"_resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz" -,"_integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==" -,"_from": "path-parse@1.0.6" } \ No newline at end of file diff --git a/node_modules/path-type/package.json b/node_modules/path-type/package.json index d23031a1c..25d8b90c3 100644 --- a/node_modules/path-type/package.json +++ b/node_modules/path-type/package.json @@ -1,49 +1,45 @@ { - "name": "path-type", - "version": "4.0.0", - "description": "Check if a path is a file, directory, or symlink", - "license": "MIT", - "repository": "sindresorhus/path-type", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd-check" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "fs", - "type", - "is", - "check", - "directory", - "dir", - "file", - "filepath", - "symlink", - "symbolic", - "link", - "stat", - "stats", - "filesystem" - ], - "devDependencies": { - "ava": "^1.3.1", - "nyc": "^13.3.0", - "tsd-check": "^0.3.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz" -,"_integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==" -,"_from": "path-type@4.0.0" + "name": "path-type", + "version": "4.0.0", + "description": "Check if a path is a file, directory, or symlink", + "license": "MIT", + "repository": "sindresorhus/path-type", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd-check" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "fs", + "type", + "is", + "check", + "directory", + "dir", + "file", + "filepath", + "symlink", + "symbolic", + "link", + "stat", + "stats", + "filesystem" + ], + "devDependencies": { + "ava": "^1.3.1", + "nyc": "^13.3.0", + "tsd-check": "^0.3.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/path/package.json b/node_modules/path/package.json index db81af50e..de70fbf83 100644 --- a/node_modules/path/package.json +++ b/node_modules/path/package.json @@ -1,28 +1,24 @@ -{ - "author": { - "name": "Joyent", - "url": "http://www.joyent.com" - }, - "name": "path", - "description": "Node.JS path module", - "keywords": [ - "ender", - "path" - ], - "license": "MIT", - "version": "0.12.7", - "homepage": "http://nodejs.org/docs/latest/api/path.html", - "repository": { - "type": "git", - "url": "git://github.com/jinder/path.git" - }, - "main": "./path.js", - "dependencies": { - "process": "^0.11.1", - "util": "^0.10.3" - } - -,"_resolved": "https://registry.npmjs.org/path/-/path-0.12.7.tgz" -,"_integrity": "sha1-1NwqUGxM4hl+tIHr/NWzbAFAsQ8=" -,"_from": "path@0.12.7" +{ + "author": { + "name": "Joyent", + "url": "http://www.joyent.com" + }, + "name": "path", + "description": "Node.JS path module", + "keywords": [ + "ender", + "path" + ], + "license": "MIT", + "version": "0.12.7", + "homepage": "http://nodejs.org/docs/latest/api/path.html", + "repository": { + "type": "git", + "url": "git://github.com/jinder/path.git" + }, + "main": "./path.js", + "dependencies": { + "process": "^0.11.1", + "util": "^0.10.3" + } } \ No newline at end of file diff --git a/node_modules/picomatch/package.json b/node_modules/picomatch/package.json index 4353f3b7a..882d1dff3 100755 --- a/node_modules/picomatch/package.json +++ b/node_modules/picomatch/package.json @@ -78,8 +78,4 @@ "picomatch" ] } - -,"_resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz" -,"_integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" -,"_from": "picomatch@2.2.2" } \ No newline at end of file diff --git a/node_modules/pify/package.json b/node_modules/pify/package.json index 472c0913a..ea9e54fd5 100644 --- a/node_modules/pify/package.json +++ b/node_modules/pify/package.json @@ -1,55 +1,51 @@ { - "name": "pify", - "version": "4.0.1", - "description": "Promisify a callback-style function", - "license": "MIT", - "repository": "sindresorhus/pify", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava", - "optimization-test": "node --allow-natives-syntax optimization-test.js" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "promises", - "promisify", - "all", - "denodify", - "denodeify", - "callback", - "cb", - "node", - "then", - "thenify", - "convert", - "transform", - "wrap", - "wrapper", - "bind", - "to", - "async", - "await", - "es2015", - "bluebird" - ], - "devDependencies": { - "ava": "^0.25.0", - "pinkie-promise": "^2.0.0", - "v8-natives": "^1.1.0", - "xo": "^0.23.0" - } - -,"_resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz" -,"_integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" -,"_from": "pify@4.0.1" + "name": "pify", + "version": "4.0.1", + "description": "Promisify a callback-style function", + "license": "MIT", + "repository": "sindresorhus/pify", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava", + "optimization-test": "node --allow-natives-syntax optimization-test.js" + }, + "files": [ + "index.js" + ], + "keywords": [ + "promise", + "promises", + "promisify", + "all", + "denodify", + "denodeify", + "callback", + "cb", + "node", + "then", + "thenify", + "convert", + "transform", + "wrap", + "wrapper", + "bind", + "to", + "async", + "await", + "es2015", + "bluebird" + ], + "devDependencies": { + "ava": "^0.25.0", + "pinkie-promise": "^2.0.0", + "v8-natives": "^1.1.0", + "xo": "^0.23.0" + } } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/find-up/package.json b/node_modules/pkg-conf/node_modules/find-up/package.json index 95f70cb5b..c4045d882 100644 --- a/node_modules/pkg-conf/node_modules/find-up/package.json +++ b/node_modules/pkg-conf/node_modules/find-up/package.json @@ -1,54 +1,50 @@ { - "name": "find-up", - "version": "3.0.0", - "description": "Find a file or directory by walking up parent directories", - "license": "MIT", - "repository": "sindresorhus/find-up", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "package", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "locate-path": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "tempy": "^0.2.1", - "xo": "*" - } - -,"_resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz" -,"_integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==" -,"_from": "find-up@3.0.0" + "name": "find-up", + "version": "3.0.0", + "description": "Find a file or directory by walking up parent directories", + "license": "MIT", + "repository": "sindresorhus/find-up", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "package", + "resolve", + "parent", + "parents", + "folder", + "directory", + "dir", + "walk", + "walking", + "path" + ], + "dependencies": { + "locate-path": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "tempy": "^0.2.1", + "xo": "*" + } } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/locate-path/package.json b/node_modules/pkg-conf/node_modules/locate-path/package.json index f6ac4647d..ee35ddc2c 100644 --- a/node_modules/pkg-conf/node_modules/locate-path/package.json +++ b/node_modules/pkg-conf/node_modules/locate-path/package.json @@ -1,48 +1,44 @@ { - "name": "locate-path", - "version": "3.0.0", - "description": "Get the first path that exists on disk of multiple paths", - "license": "MIT", - "repository": "sindresorhus/locate-path", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "locate", - "path", - "paths", - "file", - "files", - "exists", - "find", - "finder", - "search", - "searcher", - "array", - "iterable", - "iterator" - ], - "dependencies": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - }, - "devDependencies": { - "ava": "*", - "xo": "*" - } - -,"_resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz" -,"_integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==" -,"_from": "locate-path@3.0.0" + "name": "locate-path", + "version": "3.0.0", + "description": "Get the first path that exists on disk of multiple paths", + "license": "MIT", + "repository": "sindresorhus/locate-path", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "locate", + "path", + "paths", + "file", + "files", + "exists", + "find", + "finder", + "search", + "searcher", + "array", + "iterable", + "iterator" + ], + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "devDependencies": { + "ava": "*", + "xo": "*" + } } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/p-locate/package.json b/node_modules/pkg-conf/node_modules/p-locate/package.json index 4e4995c8a..fd4966219 100644 --- a/node_modules/pkg-conf/node_modules/p-locate/package.json +++ b/node_modules/pkg-conf/node_modules/p-locate/package.json @@ -1,55 +1,51 @@ { - "name": "p-locate", - "version": "3.0.0", - "description": "Get the first fulfilled promise that satisfies the provided testing function", - "license": "MIT", - "repository": "sindresorhus/p-locate", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "promise", - "locate", - "find", - "finder", - "search", - "searcher", - "test", - "array", - "collection", - "iterable", - "iterator", - "race", - "fulfilled", - "fastest", - "async", - "await", - "promises", - "bluebird" - ], - "dependencies": { - "p-limit": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "delay": "^3.0.0", - "in-range": "^1.0.0", - "time-span": "^2.0.0", - "xo": "*" - } - -,"_resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz" -,"_integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==" -,"_from": "p-locate@3.0.0" + "name": "p-locate", + "version": "3.0.0", + "description": "Get the first fulfilled promise that satisfies the provided testing function", + "license": "MIT", + "repository": "sindresorhus/p-locate", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "promise", + "locate", + "find", + "finder", + "search", + "searcher", + "test", + "array", + "collection", + "iterable", + "iterator", + "race", + "fulfilled", + "fastest", + "async", + "await", + "promises", + "bluebird" + ], + "dependencies": { + "p-limit": "^2.0.0" + }, + "devDependencies": { + "ava": "*", + "delay": "^3.0.0", + "in-range": "^1.0.0", + "time-span": "^2.0.0", + "xo": "*" + } } \ No newline at end of file diff --git a/node_modules/pkg-conf/node_modules/path-exists/package.json b/node_modules/pkg-conf/node_modules/path-exists/package.json index 5492ad2c0..ed507545d 100644 --- a/node_modules/pkg-conf/node_modules/path-exists/package.json +++ b/node_modules/pkg-conf/node_modules/path-exists/package.json @@ -37,8 +37,4 @@ "xo": { "esnext": true } - -,"_resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz" -,"_integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" -,"_from": "path-exists@3.0.0" } \ No newline at end of file diff --git a/node_modules/pkg-conf/package.json b/node_modules/pkg-conf/package.json index 79ff89c59..9b163c318 100644 --- a/node_modules/pkg-conf/package.json +++ b/node_modules/pkg-conf/package.json @@ -1,55 +1,51 @@ { - "name": "pkg-conf", - "version": "3.1.0", - "description": "Get namespaced config from the closest package.json", - "license": "MIT", - "repository": "sindresorhus/pkg-conf", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "pkg", - "package", - "config", - "conf", - "configuration", - "object", - "namespace", - "namespaced" - ], - "dependencies": { - "find-up": "^3.0.0", - "load-json-file": "^5.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "fixture": { - "foo": true - } - -,"_resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz" -,"_integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==" -,"_from": "pkg-conf@3.1.0" + "name": "pkg-conf", + "version": "3.1.0", + "description": "Get namespaced config from the closest package.json", + "license": "MIT", + "repository": "sindresorhus/pkg-conf", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "json", + "read", + "parse", + "file", + "fs", + "graceful", + "load", + "pkg", + "package", + "config", + "conf", + "configuration", + "object", + "namespace", + "namespaced" + ], + "dependencies": { + "find-up": "^3.0.0", + "load-json-file": "^5.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "fixture": { + "foo": true + } } \ No newline at end of file diff --git a/node_modules/pkg-dir/package.json b/node_modules/pkg-dir/package.json index b3e8f03d6..6759a9ce7 100644 --- a/node_modules/pkg-dir/package.json +++ b/node_modules/pkg-dir/package.json @@ -1,60 +1,56 @@ { - "name": "pkg-dir", - "version": "4.2.0", - "description": "Find the root directory of a Node.js project or npm package", - "license": "MIT", - "repository": "sindresorhus/pkg-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "package", - "json", - "root", - "npm", - "entry", - "find", - "up", - "find-up", - "findup", - "look-up", - "look", - "file", - "search", - "match", - "resolve", - "parent", - "parents", - "folder", - "directory", - "dir", - "walk", - "walking", - "path" - ], - "dependencies": { - "find-up": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tempy": "^0.3.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz" -,"_integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==" -,"_from": "pkg-dir@4.2.0" + "name": "pkg-dir", + "version": "4.2.0", + "description": "Find the root directory of a Node.js project or npm package", + "license": "MIT", + "repository": "sindresorhus/pkg-dir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "package", + "json", + "root", + "npm", + "entry", + "find", + "up", + "find-up", + "findup", + "look-up", + "look", + "file", + "search", + "match", + "resolve", + "parent", + "parents", + "folder", + "directory", + "dir", + "walk", + "walking", + "path" + ], + "dependencies": { + "find-up": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tempy": "^0.3.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/plur/package.json b/node_modules/plur/package.json index 45f858310..fe91e1771 100644 --- a/node_modules/plur/package.json +++ b/node_modules/plur/package.json @@ -1,47 +1,43 @@ { - "name": "plur", - "version": "4.0.0", - "description": "Pluralize a word", - "license": "MIT", - "repository": "sindresorhus/plur", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "plural", - "plurals", - "pluralize", - "singular", - "count", - "word", - "string", - "irregular", - "noun", - "nouns" - ], - "dependencies": { - "irregular-plurals": "^3.2.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.11.0", - "xo": "^0.26.1" - } - -,"_resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz" -,"_integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==" -,"_from": "plur@4.0.0" + "name": "plur", + "version": "4.0.0", + "description": "Pluralize a word", + "license": "MIT", + "repository": "sindresorhus/plur", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "plural", + "plurals", + "pluralize", + "singular", + "count", + "word", + "string", + "irregular", + "noun", + "nouns" + ], + "dependencies": { + "irregular-plurals": "^3.2.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.11.0", + "xo": "^0.26.1" + } } \ No newline at end of file diff --git a/node_modules/prepend-http/package.json b/node_modules/prepend-http/package.json index 70c7570b1..9dfb56a48 100644 --- a/node_modules/prepend-http/package.json +++ b/node_modules/prepend-http/package.json @@ -32,8 +32,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz" -,"_integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=" -,"_from": "prepend-http@2.0.0" } \ No newline at end of file diff --git a/node_modules/pretty-ms/package.json b/node_modules/pretty-ms/package.json index 6525d591a..c491ffca7 100644 --- a/node_modules/pretty-ms/package.json +++ b/node_modules/pretty-ms/package.json @@ -1,53 +1,49 @@ { - "name": "pretty-ms", - "version": "6.0.1", - "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", - "license": "MIT", - "repository": "sindresorhus/pretty-ms", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "pretty", - "prettify", - "human", - "humanize", - "humanized", - "readable", - "time", - "ms", - "milliseconds", - "duration", - "period", - "range", - "text", - "string", - "number", - "hrtime" - ], - "dependencies": { - "parse-ms": "^2.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-6.0.1.tgz" -,"_integrity": "sha512-ke4njoVmlotekHlHyCZ3wI/c5AMT8peuHs8rKJqekj/oR5G8lND2dVpicFlUz5cbZgE290vvkMuDwfj/OcW1kw==" -,"_from": "pretty-ms@6.0.1" + "name": "pretty-ms", + "version": "6.0.1", + "description": "Convert milliseconds to a human readable string: `1337000000` → `15d 11h 23m 20s`", + "license": "MIT", + "repository": "sindresorhus/pretty-ms", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=10" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "pretty", + "prettify", + "human", + "humanize", + "humanized", + "readable", + "time", + "ms", + "milliseconds", + "duration", + "period", + "range", + "text", + "string", + "number", + "hrtime" + ], + "dependencies": { + "parse-ms": "^2.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/process/package.json b/node_modules/process/package.json index 234b66489..390815d12 100644 --- a/node_modules/process/package.json +++ b/node_modules/process/package.json @@ -24,8 +24,4 @@ "mocha": "2.2.1", "zuul": "^3.10.3" } - -,"_resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz" -,"_integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=" -,"_from": "process@0.11.10" } \ No newline at end of file diff --git a/node_modules/propagate/package.json b/node_modules/propagate/package.json index 10591eeb1..b4df513bb 100644 --- a/node_modules/propagate/package.json +++ b/node_modules/propagate/package.json @@ -50,8 +50,4 @@ ] }, "license": "MIT" - -,"_resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz" -,"_integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==" -,"_from": "propagate@2.0.1" } \ No newline at end of file diff --git a/node_modules/pump/package.json b/node_modules/pump/package.json index be95fced6..638a6a24d 100644 --- a/node_modules/pump/package.json +++ b/node_modules/pump/package.json @@ -21,8 +21,4 @@ "scripts": { "test": "node test-browser.js && node test-node.js" } - -,"_resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz" -,"_integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==" -,"_from": "pump@3.0.0" } \ No newline at end of file diff --git a/node_modules/pupa/package.json b/node_modules/pupa/package.json index c8d005bd2..0bb8cca69 100644 --- a/node_modules/pupa/package.json +++ b/node_modules/pupa/package.json @@ -1,51 +1,47 @@ { - "name": "pupa", - "version": "2.0.1", - "description": "Simple micro templating", - "license": "MIT", - "repository": "sindresorhus/pupa", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "formatting", - "template", - "object", - "format", - "interpolate", - "interpolation", - "templating", - "expand", - "simple", - "replace", - "placeholders", - "values", - "transform", - "micro" - ], - "dependencies": { - "escape-goat": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/pupa/-/pupa-2.0.1.tgz" -,"_integrity": "sha512-hEJH0s8PXLY/cdXh66tNEQGndDrIKNqNC5xmrysZy3i5C3oEoLna7YAOad+7u125+zH1HNXUmGEkrhb3c2VriA==" -,"_from": "pupa@2.0.1" + "name": "pupa", + "version": "2.0.1", + "description": "Simple micro templating", + "license": "MIT", + "repository": "sindresorhus/pupa", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "formatting", + "template", + "object", + "format", + "interpolate", + "interpolation", + "templating", + "expand", + "simple", + "replace", + "placeholders", + "values", + "transform", + "micro" + ], + "dependencies": { + "escape-goat": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/rc/package.json b/node_modules/rc/package.json index 9076eabc1..07a1a16b0 100644 --- a/node_modules/rc/package.json +++ b/node_modules/rc/package.json @@ -26,8 +26,4 @@ "minimist": "^1.2.0", "strip-json-comments": "~2.0.1" } - -,"_resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz" -,"_integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==" -,"_from": "rc@1.2.8" } \ No newline at end of file diff --git a/node_modules/read-pkg/node_modules/parse-json/package.json b/node_modules/read-pkg/node_modules/parse-json/package.json index a7d2d869f..6c5bb850d 100644 --- a/node_modules/read-pkg/node_modules/parse-json/package.json +++ b/node_modules/read-pkg/node_modules/parse-json/package.json @@ -1,48 +1,44 @@ { - "name": "parse-json", - "version": "5.0.0", - "description": "Parse JSON with more helpful errors", - "license": "MIT", - "repository": "sindresorhus/parse-json", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js", - "vendor" - ], - "keywords": [ - "parse", - "json", - "graceful", - "error", - "message", - "humanize", - "friendly", - "helpful", - "string" - ], - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - }, - "devDependencies": { - "ava": "^1.4.1", - "nyc": "^14.1.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz" -,"_integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==" -,"_from": "parse-json@5.0.0" + "name": "parse-json", + "version": "5.0.0", + "description": "Parse JSON with more helpful errors", + "license": "MIT", + "repository": "sindresorhus/parse-json", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js", + "vendor" + ], + "keywords": [ + "parse", + "json", + "graceful", + "error", + "message", + "humanize", + "friendly", + "helpful", + "string" + ], + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-better-errors": "^1.0.1", + "lines-and-columns": "^1.1.6" + }, + "devDependencies": { + "ava": "^1.4.1", + "nyc": "^14.1.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/read-pkg/node_modules/type-fest/package.json b/node_modules/read-pkg/node_modules/type-fest/package.json index 53c4885e1..03b929edc 100644 --- a/node_modules/read-pkg/node_modules/type-fest/package.json +++ b/node_modules/read-pkg/node_modules/type-fest/package.json @@ -1,55 +1,51 @@ { - "name": "type-fest", - "version": "0.6.0", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "^0.4.0", - "@typescript-eslint/eslint-plugin": "^1.9.0", - "@typescript-eslint/parser": "^1.10.2", - "eslint-config-xo-typescript": "^0.14.0", - "tsd": "^0.7.3", - "xo": "^0.24.0" - }, - "xo": { - "extends": "xo-typescript", - "extensions": [ - "ts" - ], - "rules": { - "import/no-unresolved": "off", - "@typescript-eslint/indent": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz" -,"_integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==" -,"_from": "type-fest@0.6.0" + "name": "type-fest", + "version": "0.6.0", + "description": "A collection of essential TypeScript types", + "license": "(MIT OR CC0-1.0)", + "repository": "sindresorhus/type-fest", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.d.ts", + "source" + ], + "keywords": [ + "typescript", + "ts", + "types", + "utility", + "util", + "utilities", + "omit", + "merge", + "json" + ], + "devDependencies": { + "@sindresorhus/tsconfig": "^0.4.0", + "@typescript-eslint/eslint-plugin": "^1.9.0", + "@typescript-eslint/parser": "^1.10.2", + "eslint-config-xo-typescript": "^0.14.0", + "tsd": "^0.7.3", + "xo": "^0.24.0" + }, + "xo": { + "extends": "xo-typescript", + "extensions": [ + "ts" + ], + "rules": { + "import/no-unresolved": "off", + "@typescript-eslint/indent": "off" + } + } } \ No newline at end of file diff --git a/node_modules/read-pkg/package.json b/node_modules/read-pkg/package.json index 6e82a6263..8330328dd 100644 --- a/node_modules/read-pkg/package.json +++ b/node_modules/read-pkg/package.json @@ -1,53 +1,49 @@ { - "name": "read-pkg", - "version": "5.2.0", - "description": "Read a package.json file", - "license": "MIT", - "repository": "sindresorhus/read-pkg", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "json", - "read", - "parse", - "file", - "fs", - "graceful", - "load", - "package", - "normalize" - ], - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "devDependencies": { - "ava": "^2.2.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "xo": { - "ignores": [ - "test/test.js" - ] - } - -,"_resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz" -,"_integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==" -,"_from": "read-pkg@5.2.0" + "name": "read-pkg", + "version": "5.2.0", + "description": "Read a package.json file", + "license": "MIT", + "repository": "sindresorhus/read-pkg", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "json", + "read", + "parse", + "file", + "fs", + "graceful", + "load", + "package", + "normalize" + ], + "dependencies": { + "@types/normalize-package-data": "^2.4.0", + "normalize-package-data": "^2.5.0", + "parse-json": "^5.0.0", + "type-fest": "^0.6.0" + }, + "devDependencies": { + "ava": "^2.2.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "xo": { + "ignores": [ + "test/test.js" + ] + } } \ No newline at end of file diff --git a/node_modules/readdirp/package.json b/node_modules/readdirp/package.json index ff5319ec6..a7424e864 100644 --- a/node_modules/readdirp/package.json +++ b/node_modules/readdirp/package.json @@ -118,8 +118,4 @@ ] } } - -,"_resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.4.0.tgz" -,"_integrity": "sha512-0xe001vZBnJEK+uKcj8qOhyAKPzIT+gStxWr3LCB0DwcXR5NZJ3IaC+yGnHCYzB/S7ov3m3EEbZI2zeNvX+hGQ==" -,"_from": "readdirp@3.4.0" } \ No newline at end of file diff --git a/node_modules/registry-auth-token/package.json b/node_modules/registry-auth-token/package.json index 34f0388d4..f98fc4d62 100644 --- a/node_modules/registry-auth-token/package.json +++ b/node_modules/registry-auth-token/package.json @@ -45,8 +45,4 @@ "coverage/**" ] } - -,"_resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.1.1.tgz" -,"_integrity": "sha512-9bKS7nTl9+/A1s7tnPeGrUpRcVY+LUh7bfFgzpndALdPfXQBfQV77rQVtqgUV3ti4vc/Ik81Ex8UJDWDQ12zQA==" -,"_from": "registry-auth-token@4.1.1" } \ No newline at end of file diff --git a/node_modules/registry-url/package.json b/node_modules/registry-url/package.json index 6dd01ea86..eb2b76756 100644 --- a/node_modules/registry-url/package.json +++ b/node_modules/registry-url/package.json @@ -1,48 +1,44 @@ { - "name": "registry-url", - "version": "5.1.0", - "description": "Get the set npm registry URL", - "license": "MIT", - "repository": "sindresorhus/registry-url", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "npm", - "conf", - "config", - "npmconf", - "registry", - "url", - "uri", - "scope" - ], - "dependencies": { - "rc": "^1.2.8" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - }, - "ava": { - "serial": true - } - -,"_resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz" -,"_integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==" -,"_from": "registry-url@5.1.0" + "name": "registry-url", + "version": "5.1.0", + "description": "Get the set npm registry URL", + "license": "MIT", + "repository": "sindresorhus/registry-url", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "npm", + "conf", + "config", + "npmconf", + "registry", + "url", + "uri", + "scope" + ], + "dependencies": { + "rc": "^1.2.8" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + }, + "ava": { + "serial": true + } } \ No newline at end of file diff --git a/node_modules/removeNPMAbsolutePaths/package.json b/node_modules/removeNPMAbsolutePaths/package.json index d4af1b912..28ccddcaa 100644 --- a/node_modules/removeNPMAbsolutePaths/package.json +++ b/node_modules/removeNPMAbsolutePaths/package.json @@ -49,8 +49,4 @@ "engines": { "node": ">=4.0.0" } - -,"_resolved": "https://registry.npmjs.org/removeNPMAbsolutePaths/-/removeNPMAbsolutePaths-2.0.0.tgz" -,"_integrity": "sha512-Hea7U6iJcD0NE/aqBqxBMPKeKaxjqMNyTTajmH2dH9hhafJ9Tem5r4UeJK8+BdE1MK9lqoOYqNM0Sq9rl1OIbQ==" -,"_from": "removeNPMAbsolutePaths@2.0.0" } \ No newline at end of file diff --git a/node_modules/require-directory/package.json b/node_modules/require-directory/package.json index 1b68543bd..0970ec04c 100644 --- a/node_modules/require-directory/package.json +++ b/node_modules/require-directory/package.json @@ -37,8 +37,4 @@ "test": "mocha", "lint": "jshint index.js test/test.js" } - -,"_resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz" -,"_integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" -,"_from": "require-directory@2.1.1" } \ No newline at end of file diff --git a/node_modules/require-main-filename/package.json b/node_modules/require-main-filename/package.json index 0a3da3583..3c441b325 100644 --- a/node_modules/require-main-filename/package.json +++ b/node_modules/require-main-filename/package.json @@ -32,8 +32,4 @@ "standard-version": "^4.0.0", "tap": "^11.0.0" } - -,"_resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz" -,"_integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==" -,"_from": "require-main-filename@2.0.0" } \ No newline at end of file diff --git a/node_modules/resolve-cwd/package.json b/node_modules/resolve-cwd/package.json index 12db21aad..a7d509c0f 100644 --- a/node_modules/resolve-cwd/package.json +++ b/node_modules/resolve-cwd/package.json @@ -1,47 +1,43 @@ { - "name": "resolve-cwd", - "version": "3.0.0", - "description": "Resolve the path of a module like `require.resolve()` but from the current working directory", - "license": "MIT", - "repository": "sindresorhus/resolve-cwd", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "require", - "resolve", - "path", - "module", - "from", - "like", - "cwd", - "current", - "working", - "directory", - "import" - ], - "dependencies": { - "resolve-from": "^5.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz" -,"_integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==" -,"_from": "resolve-cwd@3.0.0" + "name": "resolve-cwd", + "version": "3.0.0", + "description": "Resolve the path of a module like `require.resolve()` but from the current working directory", + "license": "MIT", + "repository": "sindresorhus/resolve-cwd", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "require", + "resolve", + "path", + "module", + "from", + "like", + "cwd", + "current", + "working", + "directory", + "import" + ], + "dependencies": { + "resolve-from": "^5.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/resolve-from/package.json b/node_modules/resolve-from/package.json index b2627367a..3d6db83a4 100644 --- a/node_modules/resolve-from/package.json +++ b/node_modules/resolve-from/package.json @@ -1,40 +1,36 @@ { - "name": "resolve-from", - "version": "5.0.0", - "description": "Resolve the path of a module like `require.resolve()` but from a given path", - "license": "MIT", - "repository": "sindresorhus/resolve-from", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "require", - "resolve", - "path", - "module", - "from", - "like", - "import" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz" -,"_integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==" -,"_from": "resolve-from@5.0.0" + "name": "resolve-from", + "version": "5.0.0", + "description": "Resolve the path of a module like `require.resolve()` but from a given path", + "license": "MIT", + "repository": "sindresorhus/resolve-from", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "require", + "resolve", + "path", + "module", + "from", + "like", + "import" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/resolve/package.json b/node_modules/resolve/package.json index 1f3180fee..f8e40a6ac 100644 --- a/node_modules/resolve/package.json +++ b/node_modules/resolve/package.json @@ -1,51 +1,47 @@ { - "name": "resolve", - "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", - "version": "1.13.1", - "repository": { - "type": "git", - "url": "git://github.com/browserify/resolve.git" - }, - "main": "index.js", - "keywords": [ - "resolve", - "require", - "node", - "module" - ], - "scripts": { - "prepublish": "safe-publish-latest", - "lint": "eslint .", - "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", - "tests-only": "tape test/*.js", - "pretest": "npm run lint", - "test": "npm run --silent tests-only", - "posttest": "npm run test:multirepo", - "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" - }, - "devDependencies": { - "@ljharb/eslint-config": "^15.0.2", - "array.prototype.map": "^1.0.1", - "eslint": "^6.7.1", - "object-keys": "^1.1.1", - "safe-publish-latest": "^1.1.4", - "tap": "0.4.13", - "tape": "^4.11.0" - }, - "license": "MIT", - "author": { - "name": "James Halliday", - "email": "mail@substack.net", - "url": "http://substack.net" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - }, - "dependencies": { - "path-parse": "^1.0.6" - } - -,"_resolved": "https://registry.npmjs.org/resolve/-/resolve-1.13.1.tgz" -,"_integrity": "sha512-CxqObCX8K8YtAhOBRg+lrcdn+LK+WYOS8tSjqSFbjtrI5PnS63QPhZl4+yKfrU9tdsbMu9Anr/amegT87M9Z6w==" -,"_from": "resolve@1.13.1" + "name": "resolve", + "description": "resolve like require.resolve() on behalf of files asynchronously and synchronously", + "version": "1.13.1", + "repository": { + "type": "git", + "url": "git://github.com/browserify/resolve.git" + }, + "main": "index.js", + "keywords": [ + "resolve", + "require", + "node", + "module" + ], + "scripts": { + "prepublish": "safe-publish-latest", + "lint": "eslint .", + "pretests-only": "cd ./test/resolver/nested_symlinks && node mylib/sync && node mylib/async", + "tests-only": "tape test/*.js", + "pretest": "npm run lint", + "test": "npm run --silent tests-only", + "posttest": "npm run test:multirepo", + "test:multirepo": "cd ./test/resolver/multirepo && npm install && npm test" + }, + "devDependencies": { + "@ljharb/eslint-config": "^15.0.2", + "array.prototype.map": "^1.0.1", + "eslint": "^6.7.1", + "object-keys": "^1.1.1", + "safe-publish-latest": "^1.1.4", + "tap": "0.4.13", + "tape": "^4.11.0" + }, + "license": "MIT", + "author": { + "name": "James Halliday", + "email": "mail@substack.net", + "url": "http://substack.net" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + }, + "dependencies": { + "path-parse": "^1.0.6" + } } \ No newline at end of file diff --git a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json index c13b8cf6a..a60376465 100644 --- a/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +++ b/node_modules/resolve/test/module_dir/zmodules/bbb/package.json @@ -1,3 +1,3 @@ { "main": "main.js" -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/baz/package.json b/node_modules/resolve/test/resolver/baz/package.json index c41e4dbf7..ddf31dc61 100644 --- a/node_modules/resolve/test/resolver/baz/package.json +++ b/node_modules/resolve/test/resolver/baz/package.json @@ -1,3 +1,3 @@ { - "main": "quux.js" -} + "main": "quux.js" +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/browser_field/package.json b/node_modules/resolve/test/resolver/browser_field/package.json index bf406f083..291ab03bc 100644 --- a/node_modules/resolve/test/resolver/browser_field/package.json +++ b/node_modules/resolve/test/resolver/browser_field/package.json @@ -2,4 +2,4 @@ "name": "browser_field", "main": "a", "browser": "b" -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/dot_main/package.json b/node_modules/resolve/test/resolver/dot_main/package.json index d7f4fc807..d08e00e9d 100644 --- a/node_modules/resolve/test/resolver/dot_main/package.json +++ b/node_modules/resolve/test/resolver/dot_main/package.json @@ -1,3 +1,3 @@ { - "main": "." -} + "main": "." +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/dot_slash_main/package.json b/node_modules/resolve/test/resolver/dot_slash_main/package.json index f51287b9d..a92bfd7b1 100644 --- a/node_modules/resolve/test/resolver/dot_slash_main/package.json +++ b/node_modules/resolve/test/resolver/dot_slash_main/package.json @@ -1,3 +1,3 @@ { - "main": "./" -} + "main": "./" +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/incorrect_main/package.json b/node_modules/resolve/test/resolver/incorrect_main/package.json index b71880417..b3b73da08 100644 --- a/node_modules/resolve/test/resolver/incorrect_main/package.json +++ b/node_modules/resolve/test/resolver/incorrect_main/package.json @@ -1,3 +1,3 @@ { - "main": "wrong.js" -} + "main": "wrong.js" +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/invalid_main/package.json b/node_modules/resolve/test/resolver/invalid_main/package.json index 0cf827995..3158504f6 100644 --- a/node_modules/resolve/test/resolver/invalid_main/package.json +++ b/node_modules/resolve/test/resolver/invalid_main/package.json @@ -4,4 +4,4 @@ "why is this a thing", "srsly omg wtf" ] -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/multirepo/package.json b/node_modules/resolve/test/resolver/multirepo/package.json index 8508f9d2c..9c6d56b61 100644 --- a/node_modules/resolve/test/resolver/multirepo/package.json +++ b/node_modules/resolve/test/resolver/multirepo/package.json @@ -17,4 +17,4 @@ "devDependencies": { "lerna": "^3.4.3" } -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json index 204de51e0..a2bbfff89 100644 --- a/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +++ b/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json @@ -11,4 +11,4 @@ "dependencies": { "@my-scope/package-b": "^0.0.0" } -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json b/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json index f57c3b5f5..f7adacdeb 100644 --- a/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +++ b/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json @@ -11,4 +11,4 @@ "dependencies": { "@my-scope/package-a": "^0.0.0" } -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json b/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json index acfe9e951..f3fffe71c 100644 --- a/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +++ b/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json @@ -12,4 +12,4 @@ "dependencies": { "buffer": "*" } -} +} \ No newline at end of file diff --git a/node_modules/resolve/test/resolver/symlinked/package/package.json b/node_modules/resolve/test/resolver/symlinked/package/package.json index 8e1b58591..b6e6d85fd 100644 --- a/node_modules/resolve/test/resolver/symlinked/package/package.json +++ b/node_modules/resolve/test/resolver/symlinked/package/package.json @@ -1,3 +1,3 @@ { - "main": "bar.js" + "main": "bar.js" } \ No newline at end of file diff --git a/node_modules/responselike/package.json b/node_modules/responselike/package.json index 5b53db282..67f605a8d 100644 --- a/node_modules/responselike/package.json +++ b/node_modules/responselike/package.json @@ -35,8 +35,4 @@ "dependencies": { "lowercase-keys": "^1.0.0" } - -,"_resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz" -,"_integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=" -,"_from": "responselike@1.0.2" } \ No newline at end of file diff --git a/node_modules/restore-cursor/package.json b/node_modules/restore-cursor/package.json index 8e480e1f3..d23571572 100644 --- a/node_modules/restore-cursor/package.json +++ b/node_modules/restore-cursor/package.json @@ -1,56 +1,52 @@ { - "name": "restore-cursor", - "version": "3.1.0", - "description": "Gracefully restore the CLI cursor on exit", - "license": "MIT", - "repository": "sindresorhus/restore-cursor", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "exit", - "quit", - "process", - "graceful", - "shutdown", - "sigterm", - "sigint", - "terminate", - "kill", - "stop", - "cli", - "cursor", - "ansi", - "show", - "term", - "terminal", - "console", - "tty", - "shell", - "command-line" - ], - "dependencies": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - }, - "devDependencies": { - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz" -,"_integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==" -,"_from": "restore-cursor@3.1.0" + "name": "restore-cursor", + "version": "3.1.0", + "description": "Gracefully restore the CLI cursor on exit", + "license": "MIT", + "repository": "sindresorhus/restore-cursor", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "exit", + "quit", + "process", + "graceful", + "shutdown", + "sigterm", + "sigint", + "terminate", + "kill", + "stop", + "cli", + "cursor", + "ansi", + "show", + "term", + "terminal", + "console", + "tty", + "shell", + "command-line" + ], + "dependencies": { + "onetime": "^5.1.0", + "signal-exit": "^3.0.2" + }, + "devDependencies": { + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/reusify/package.json b/node_modules/reusify/package.json index 27f301caa..4572b152f 100644 --- a/node_modules/reusify/package.json +++ b/node_modules/reusify/package.json @@ -42,8 +42,4 @@ "standard": "^10.0.3", "tape": "^4.8.0" } - -,"_resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz" -,"_integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==" -,"_from": "reusify@1.0.4" } \ No newline at end of file diff --git a/node_modules/rimraf/package.json b/node_modules/rimraf/package.json index 2fc16433b..56eb03067 100644 --- a/node_modules/rimraf/package.json +++ b/node_modules/rimraf/package.json @@ -29,8 +29,4 @@ "funding": { "url": "https://github.com/sponsors/isaacs" } - -,"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz" -,"_integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==" -,"_from": "rimraf@3.0.2" } \ No newline at end of file diff --git a/node_modules/run-parallel/package.json b/node_modules/run-parallel/package.json index 51925c0e7..87ebaf64b 100644 --- a/node_modules/run-parallel/package.json +++ b/node_modules/run-parallel/package.json @@ -39,8 +39,4 @@ "test-browser-local": "airtap --local -- test/*.js", "test-node": "tape test/*.js" } - -,"_resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz" -,"_integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==" -,"_from": "run-parallel@1.1.9" } \ No newline at end of file diff --git a/node_modules/safe-buffer/package.json b/node_modules/safe-buffer/package.json index 9c8aef798..fdb8bc5f3 100644 --- a/node_modules/safe-buffer/package.json +++ b/node_modules/safe-buffer/package.json @@ -34,8 +34,4 @@ "scripts": { "test": "standard && tape test/*.js" } - -,"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz" -,"_integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" -,"_from": "safe-buffer@5.1.2" } \ No newline at end of file diff --git a/node_modules/semver-diff/node_modules/semver/package.json b/node_modules/semver-diff/node_modules/semver/package.json index 13030769c..a330b56c2 100644 --- a/node_modules/semver-diff/node_modules/semver/package.json +++ b/node_modules/semver-diff/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz" -,"_integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" -,"_from": "semver@6.3.0" } \ No newline at end of file diff --git a/node_modules/semver-diff/package.json b/node_modules/semver-diff/package.json index d32c5a7e9..0cc0c3e34 100644 --- a/node_modules/semver-diff/package.json +++ b/node_modules/semver-diff/package.json @@ -1,41 +1,37 @@ { - "name": "semver-diff", - "version": "3.1.1", - "description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch", - "license": "MIT", - "repository": "sindresorhus/semver-diff", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "semver", - "version", - "semantic", - "diff", - "difference" - ], - "dependencies": { - "semver": "^6.3.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz" -,"_integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==" -,"_from": "semver-diff@3.1.1" + "name": "semver-diff", + "version": "3.1.1", + "description": "Get the diff type of two semver versions: 0.0.1 0.0.2 → patch", + "license": "MIT", + "repository": "sindresorhus/semver-diff", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "semver", + "version", + "semantic", + "diff", + "difference" + ], + "dependencies": { + "semver": "^6.3.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.9.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/semver/package.json b/node_modules/semver/package.json index 9aa9bd2a9..e04ff84a8 100644 --- a/node_modules/semver/package.json +++ b/node_modules/semver/package.json @@ -35,8 +35,4 @@ "engines": { "node": ">=10" } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-7.3.2.tgz" -,"_integrity": "sha512-OrOb32TeeambH6UrhtShmF7CRDqhL6/5XpPNp2DuRH6+9QLw/orhp72j87v8Qa1ScDkvrrBNpZcDejAirJmfXQ==" -,"_from": "semver@7.3.2" } \ No newline at end of file diff --git a/node_modules/serialize-error/package.json b/node_modules/serialize-error/package.json index c660f73b3..7be0a0f03 100644 --- a/node_modules/serialize-error/package.json +++ b/node_modules/serialize-error/package.json @@ -33,8 +33,4 @@ "ava": "*", "xo": "^0.16.0" } - -,"_resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-2.1.0.tgz" -,"_integrity": "sha1-ULZ51WNc34Rme9yOWa9OW4HV9go=" -,"_from": "serialize-error@2.1.0" } \ No newline at end of file diff --git a/node_modules/set-blocking/package.json b/node_modules/set-blocking/package.json index 993bdc2f7..c082db72c 100644 --- a/node_modules/set-blocking/package.json +++ b/node_modules/set-blocking/package.json @@ -39,8 +39,4 @@ "index.js", "LICENSE.txt" ] - -,"_resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz" -,"_integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=" -,"_from": "set-blocking@2.0.0" } \ No newline at end of file diff --git a/node_modules/shebang-command/package.json b/node_modules/shebang-command/package.json index 3009d53eb..a836941a1 100644 --- a/node_modules/shebang-command/package.json +++ b/node_modules/shebang-command/package.json @@ -36,8 +36,4 @@ "test.js" ] } - -,"_resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz" -,"_integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=" -,"_from": "shebang-command@1.2.0" } \ No newline at end of file diff --git a/node_modules/shebang-regex/package.json b/node_modules/shebang-regex/package.json index 665793c1d..f174dc29e 100644 --- a/node_modules/shebang-regex/package.json +++ b/node_modules/shebang-regex/package.json @@ -29,8 +29,4 @@ "devDependencies": { "ava": "0.0.4" } - -,"_resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz" -,"_integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=" -,"_from": "shebang-regex@1.0.0" } \ No newline at end of file diff --git a/node_modules/signal-exit/package.json b/node_modules/signal-exit/package.json index c3b2677a9..2bee5637f 100644 --- a/node_modules/signal-exit/package.json +++ b/node_modules/signal-exit/package.json @@ -35,8 +35,4 @@ "standard-version": "^2.3.0", "tap": "^8.0.1" } - -,"_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" -,"_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=" -,"_from": "signal-exit@3.0.2" } \ No newline at end of file diff --git a/node_modules/slash/package.json b/node_modules/slash/package.json index 8100df404..c845a31bb 100644 --- a/node_modules/slash/package.json +++ b/node_modules/slash/package.json @@ -1,39 +1,35 @@ { - "name": "slash", - "version": "3.0.0", - "description": "Convert Windows backslash paths to slash paths", - "license": "MIT", - "repository": "sindresorhus/slash", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "path", - "seperator", - "slash", - "backslash", - "windows", - "convert" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz" -,"_integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==" -,"_from": "slash@3.0.0" + "name": "slash", + "version": "3.0.0", + "description": "Convert Windows backslash paths to slash paths", + "license": "MIT", + "repository": "sindresorhus/slash", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "path", + "seperator", + "slash", + "backslash", + "windows", + "convert" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/ansi-styles/package.json b/node_modules/slice-ansi/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/slice-ansi/node_modules/ansi-styles/package.json +++ b/node_modules/slice-ansi/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/astral-regex/package.json b/node_modules/slice-ansi/node_modules/astral-regex/package.json index e21b198d7..744e3ea07 100644 --- a/node_modules/slice-ansi/node_modules/astral-regex/package.json +++ b/node_modules/slice-ansi/node_modules/astral-regex/package.json @@ -1,37 +1,33 @@ { - "name": "astral-regex", - "version": "2.0.0", - "description": "Regular expression for matching astral symbols", - "license": "MIT", - "repository": "kevva/astral-regex", - "author": { - "name": "Kevin Mårtensson", - "email": "kevinmartensson@gmail.com", - "url": "github.com/kevva" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "astral", - "emoji", - "regex", - "surrogate" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz" -,"_integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==" -,"_from": "astral-regex@2.0.0" + "name": "astral-regex", + "version": "2.0.0", + "description": "Regular expression for matching astral symbols", + "license": "MIT", + "repository": "kevva/astral-regex", + "author": { + "name": "Kevin Mårtensson", + "email": "kevinmartensson@gmail.com", + "url": "github.com/kevva" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "astral", + "emoji", + "regex", + "surrogate" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/color-convert/package.json b/node_modules/slice-ansi/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/slice-ansi/node_modules/color-convert/package.json +++ b/node_modules/slice-ansi/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/slice-ansi/node_modules/color-name/package.json b/node_modules/slice-ansi/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/slice-ansi/node_modules/color-name/package.json +++ b/node_modules/slice-ansi/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/slice-ansi/package.json b/node_modules/slice-ansi/package.json index 9f38fa41f..a5e103ef1 100644 --- a/node_modules/slice-ansi/package.json +++ b/node_modules/slice-ansi/package.json @@ -1,55 +1,51 @@ { - "name": "slice-ansi", - "version": "3.0.0", - "description": "Slice a string with ANSI escape codes", - "license": "MIT", - "repository": "chalk/slice-ansi", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "slice", - "string", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "chalk": "^2.4.2", - "random-item": "^3.0.0", - "strip-ansi": "^5.0.0", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz" -,"_integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==" -,"_from": "slice-ansi@3.0.0" + "name": "slice-ansi", + "version": "3.0.0", + "description": "Slice a string with ANSI escape codes", + "license": "MIT", + "repository": "chalk/slice-ansi", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "slice", + "string", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.0.0", + "astral-regex": "^2.0.0", + "is-fullwidth-code-point": "^3.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "chalk": "^2.4.2", + "random-item": "^3.0.0", + "strip-ansi": "^5.0.0", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/source-map/package.json b/node_modules/source-map/package.json index fb225f899..eb649bf17 100644 --- a/node_modules/source-map/package.json +++ b/node_modules/source-map/package.json @@ -70,8 +70,4 @@ "webpack": "^1.12.0" }, "typings": "source-map" - -,"_resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz" -,"_integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==" -,"_from": "source-map@0.6.1" } \ No newline at end of file diff --git a/node_modules/spdx-correct/package.json b/node_modules/spdx-correct/package.json index 5fc48f0fd..4002158a8 100644 --- a/node_modules/spdx-correct/package.json +++ b/node_modules/spdx-correct/package.json @@ -36,8 +36,4 @@ "lint": "standard && standard-markdown README.md", "test": "defence README.md | replace-require-self | node && node test.js" } - -,"_resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz" -,"_integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==" -,"_from": "spdx-correct@3.1.0" } \ No newline at end of file diff --git a/node_modules/spdx-exceptions/package.json b/node_modules/spdx-exceptions/package.json index d48a49097..1b39b16d9 100644 --- a/node_modules/spdx-exceptions/package.json +++ b/node_modules/spdx-exceptions/package.json @@ -14,8 +14,4 @@ "scripts": { "build": "node build.js" } - -,"_resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz" -,"_integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==" -,"_from": "spdx-exceptions@2.3.0" } \ No newline at end of file diff --git a/node_modules/spdx-expression-parse/package.json b/node_modules/spdx-expression-parse/package.json index eeb3dd83b..93d94baa4 100644 --- a/node_modules/spdx-expression-parse/package.json +++ b/node_modules/spdx-expression-parse/package.json @@ -37,8 +37,4 @@ "test:mocha": "mocha test/index.js", "test": "npm run test:mocha && npm run test:readme" } - -,"_resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz" -,"_integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==" -,"_from": "spdx-expression-parse@3.0.0" } \ No newline at end of file diff --git a/node_modules/spdx-license-ids/package.json b/node_modules/spdx-license-ids/package.json index 0aff08f25..a21e42587 100644 --- a/node_modules/spdx-license-ids/package.json +++ b/node_modules/spdx-license-ids/package.json @@ -1,43 +1,39 @@ { - "name": "spdx-license-ids", - "version": "3.0.5", - "description": "A list of SPDX license identifiers", - "repository": "shinnn/spdx-license-ids", - "author": "Shinnosuke Watanabe (https://github.com/shinnn)", - "license": "CC0-1.0", - "scripts": { - "build": "node build.js", - "pretest": "eslint .", - "test": "node test.js" - }, - "files": [ - "deprecated.json", - "index.json" - ], - "keywords": [ - "spdx", - "license", - "licenses", - "id", - "identifier", - "identifiers", - "json", - "array", - "oss" - ], - "devDependencies": { - "@shinnn/eslint-config": "^6.8.7", - "chalk": "^2.4.1", - "eslint": "^5.10.0", - "get-spdx-license-ids": "^2.1.0", - "rmfr": "^2.0.0", - "tape": "^4.9.1" - }, - "eslintConfig": { - "extends": "@shinnn" - } - -,"_resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz" -,"_integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==" -,"_from": "spdx-license-ids@3.0.5" + "name": "spdx-license-ids", + "version": "3.0.5", + "description": "A list of SPDX license identifiers", + "repository": "shinnn/spdx-license-ids", + "author": "Shinnosuke Watanabe (https://github.com/shinnn)", + "license": "CC0-1.0", + "scripts": { + "build": "node build.js", + "pretest": "eslint .", + "test": "node test.js" + }, + "files": [ + "deprecated.json", + "index.json" + ], + "keywords": [ + "spdx", + "license", + "licenses", + "id", + "identifier", + "identifiers", + "json", + "array", + "oss" + ], + "devDependencies": { + "@shinnn/eslint-config": "^6.8.7", + "chalk": "^2.4.1", + "eslint": "^5.10.0", + "get-spdx-license-ids": "^2.1.0", + "rmfr": "^2.0.0", + "tape": "^4.9.1" + }, + "eslintConfig": { + "extends": "@shinnn" + } } \ No newline at end of file diff --git a/node_modules/sprintf-js/package.json b/node_modules/sprintf-js/package.json index 309df0030..b49b1926d 100644 --- a/node_modules/sprintf-js/package.json +++ b/node_modules/sprintf-js/package.json @@ -1,26 +1,22 @@ { - "name": "sprintf-js", - "version": "1.0.3", - "description": "JavaScript sprintf implementation", - "author": "Alexandru Marasteanu (http://alexei.ro/)", - "main": "src/sprintf.js", - "scripts": { - "test": "mocha test/test.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/alexei/sprintf.js.git" - }, - "license": "BSD-3-Clause", - "readmeFilename": "README.md", - "devDependencies": { - "mocha": "*", - "grunt": "*", - "grunt-contrib-watch": "*", - "grunt-contrib-uglify": "*" - } - -,"_resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz" -,"_integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=" -,"_from": "sprintf-js@1.0.3" + "name": "sprintf-js", + "version": "1.0.3", + "description": "JavaScript sprintf implementation", + "author": "Alexandru Marasteanu (http://alexei.ro/)", + "main": "src/sprintf.js", + "scripts": { + "test": "mocha test/test.js" + }, + "repository": { + "type": "git", + "url": "https://github.com/alexei/sprintf.js.git" + }, + "license": "BSD-3-Clause", + "readmeFilename": "README.md", + "devDependencies": { + "mocha": "*", + "grunt": "*", + "grunt-contrib-watch": "*", + "grunt-contrib-uglify": "*" + } } \ No newline at end of file diff --git a/node_modules/string-width/package.json b/node_modules/string-width/package.json index c3ea56436..8a570010a 100644 --- a/node_modules/string-width/package.json +++ b/node_modules/string-width/package.json @@ -1,60 +1,56 @@ { - "name": "string-width", - "version": "4.2.0", - "description": "Get the visual width of a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/string-width", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "character", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz" -,"_integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==" -,"_from": "string-width@4.2.0" + "name": "string-width", + "version": "4.2.0", + "description": "Get the visual width of a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/string-width", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "character", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/strip-ansi/node_modules/ansi-regex/package.json b/node_modules/strip-ansi/node_modules/ansi-regex/package.json index 555b26d73..b6c1efa36 100644 --- a/node_modules/strip-ansi/node_modules/ansi-regex/package.json +++ b/node_modules/strip-ansi/node_modules/ansi-regex/package.json @@ -1,59 +1,55 @@ { - "name": "ansi-regex", - "version": "5.0.0", - "description": "Regular expression for matching ANSI escape codes", - "license": "MIT", - "repository": "chalk/ansi-regex", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "view-supported": "node fixtures/view-codes.js" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "text", - "regex", - "regexp", - "re", - "match", - "test", - "find", - "pattern" - ], - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.9.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz" -,"_integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" -,"_from": "ansi-regex@5.0.0" + "name": "ansi-regex", + "version": "5.0.0", + "description": "Regular expression for matching ANSI escape codes", + "license": "MIT", + "repository": "chalk/ansi-regex", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "view-supported": "node fixtures/view-codes.js" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "text", + "regex", + "regexp", + "re", + "match", + "test", + "find", + "pattern" + ], + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.9.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/strip-ansi/package.json b/node_modules/strip-ansi/package.json index 4fca79c1c..303816b1a 100644 --- a/node_modules/strip-ansi/package.json +++ b/node_modules/strip-ansi/package.json @@ -1,58 +1,54 @@ { - "name": "strip-ansi", - "version": "6.0.0", - "description": "Strip ANSI escape codes from a string", - "license": "MIT", - "repository": "chalk/strip-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "strip", - "trim", - "remove", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-regex": "^5.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "tsd": "^0.10.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz" -,"_integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==" -,"_from": "strip-ansi@6.0.0" + "name": "strip-ansi", + "version": "6.0.0", + "description": "Strip ANSI escape codes from a string", + "license": "MIT", + "repository": "chalk/strip-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "strip", + "trim", + "remove", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-regex": "^5.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "tsd": "^0.10.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/strip-eof/package.json b/node_modules/strip-eof/package.json index d054db16c..2e22eeb61 100644 --- a/node_modules/strip-eof/package.json +++ b/node_modules/strip-eof/package.json @@ -36,8 +36,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz" -,"_integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=" -,"_from": "strip-eof@1.0.0" } \ No newline at end of file diff --git a/node_modules/strip-json-comments/package.json b/node_modules/strip-json-comments/package.json index 19d3a720c..2b00952d9 100644 --- a/node_modules/strip-json-comments/package.json +++ b/node_modules/strip-json-comments/package.json @@ -39,8 +39,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz" -,"_integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=" -,"_from": "strip-json-comments@2.0.1" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/ansi-regex/package.json b/node_modules/supertap/node_modules/ansi-regex/package.json index c79b39f0a..d8a414df3 100644 --- a/node_modules/supertap/node_modules/ansi-regex/package.json +++ b/node_modules/supertap/node_modules/ansi-regex/package.json @@ -50,8 +50,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz" -,"_integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=" -,"_from": "ansi-regex@3.0.0" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/arrify/package.json b/node_modules/supertap/node_modules/arrify/package.json index bfc8621c9..d60245659 100644 --- a/node_modules/supertap/node_modules/arrify/package.json +++ b/node_modules/supertap/node_modules/arrify/package.json @@ -30,8 +30,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz" -,"_integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" -,"_from": "arrify@1.0.1" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/indent-string/package.json b/node_modules/supertap/node_modules/indent-string/package.json index 796eb8ecd..e235bb620 100644 --- a/node_modules/supertap/node_modules/indent-string/package.json +++ b/node_modules/supertap/node_modules/indent-string/package.json @@ -33,8 +33,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz" -,"_integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=" -,"_from": "indent-string@3.2.0" } \ No newline at end of file diff --git a/node_modules/supertap/node_modules/strip-ansi/package.json b/node_modules/supertap/node_modules/strip-ansi/package.json index 14a8f1c3a..e6f25b887 100644 --- a/node_modules/supertap/node_modules/strip-ansi/package.json +++ b/node_modules/supertap/node_modules/strip-ansi/package.json @@ -49,8 +49,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz" -,"_integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=" -,"_from": "strip-ansi@4.0.0" } \ No newline at end of file diff --git a/node_modules/supertap/package.json b/node_modules/supertap/package.json index 7e7510710..5fdd242e6 100644 --- a/node_modules/supertap/package.json +++ b/node_modules/supertap/package.json @@ -50,8 +50,4 @@ "ava": { "serial": true } - -,"_resolved": "https://registry.npmjs.org/supertap/-/supertap-1.0.0.tgz" -,"_integrity": "sha512-HZJ3geIMPgVwKk2VsmO5YHqnnJYl6bV5A9JW2uzqV43WmpgliNEYbuvukfor7URpaqpxuw3CfZ3ONdVbZjCgIA==" -,"_from": "supertap@1.0.0" } \ No newline at end of file diff --git a/node_modules/supports-color/package.json b/node_modules/supports-color/package.json index c01bdec70..efeb00b06 100644 --- a/node_modules/supports-color/package.json +++ b/node_modules/supports-color/package.json @@ -1,57 +1,53 @@ { - "name": "supports-color", - "version": "5.5.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^3.0.0" - }, - "devDependencies": { - "ava": "^0.25.0", - "import-fresh": "^2.0.0", - "xo": "^0.20.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz" -,"_integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==" -,"_from": "supports-color@5.5.0" + "name": "supports-color", + "version": "5.5.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=4" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^3.0.0" + }, + "devDependencies": { + "ava": "^0.25.0", + "import-fresh": "^2.0.0", + "xo": "^0.20.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/temp-dir/package.json b/node_modules/temp-dir/package.json index 3fcb881fc..ad951f149 100644 --- a/node_modules/temp-dir/package.json +++ b/node_modules/temp-dir/package.json @@ -1,45 +1,41 @@ { - "name": "temp-dir", - "version": "2.0.0", - "description": "Get the real path of the system temp directory", - "license": "MIT", - "repository": "sindresorhus/temp-dir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "temp", - "tmpdir", - "os", - "system", - "real", - "path", - "realpath", - "resolved", - "temporary", - "directory", - "folder" - ], - "devDependencies": { - "ava": "^1.4.1", - "proxyquire": "^2.1.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz" -,"_integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==" -,"_from": "temp-dir@2.0.0" + "name": "temp-dir", + "version": "2.0.0", + "description": "Get the real path of the system temp directory", + "license": "MIT", + "repository": "sindresorhus/temp-dir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "temp", + "tmpdir", + "os", + "system", + "real", + "path", + "realpath", + "resolved", + "temporary", + "directory", + "folder" + ], + "devDependencies": { + "ava": "^1.4.1", + "proxyquire": "^2.1.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/term-size/package.json b/node_modules/term-size/package.json index d0980deb6..6e1b27a37 100644 --- a/node_modules/term-size/package.json +++ b/node_modules/term-size/package.json @@ -1,47 +1,43 @@ { - "name": "term-size", - "version": "2.2.0", - "description": "Reliably get the terminal window size (columns & rows)", - "license": "MIT", - "repository": "sindresorhus/term-size", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "vendor" - ], - "keywords": [ - "terminal", - "size", - "console", - "window", - "width", - "height", - "columns", - "rows", - "lines", - "tty", - "redirected" - ], - "devDependencies": { - "ava": "^2.4.0", - "execa": "^3.4.0", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/term-size/-/term-size-2.2.0.tgz" -,"_integrity": "sha512-a6sumDlzyHVJWb8+YofY4TW112G6p2FCPEAFk+59gIYHv3XHRhm9ltVQ9kli4hNWeQBwSpe8cRN25x0ROunMOw==" -,"_from": "term-size@2.2.0" + "name": "term-size", + "version": "2.2.0", + "description": "Reliably get the terminal window size (columns & rows)", + "license": "MIT", + "repository": "sindresorhus/term-size", + "funding": "https://github.com/sponsors/sindresorhus", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts", + "vendor" + ], + "keywords": [ + "terminal", + "size", + "console", + "window", + "width", + "height", + "columns", + "rows", + "lines", + "tty", + "redirected" + ], + "devDependencies": { + "ava": "^2.4.0", + "execa": "^3.4.0", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/time-zone/package.json b/node_modules/time-zone/package.json index 65a9f716a..8e3e1e1a1 100644 --- a/node_modules/time-zone/package.json +++ b/node_modules/time-zone/package.json @@ -32,8 +32,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz" -,"_integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=" -,"_from": "time-zone@1.0.0" } \ No newline at end of file diff --git a/node_modules/to-readable-stream/package.json b/node_modules/to-readable-stream/package.json index f1aa3fdf1..3a078880d 100644 --- a/node_modules/to-readable-stream/package.json +++ b/node_modules/to-readable-stream/package.json @@ -1,44 +1,40 @@ { - "name": "to-readable-stream", - "version": "1.0.0", - "description": "Convert a string/Buffer/Uint8Array to a readable stream", - "license": "MIT", - "repository": "sindresorhus/to-readable-stream", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "stream", - "readablestream", - "string", - "buffer", - "uint8array", - "from", - "into", - "to", - "transform", - "convert", - "readable", - "pull" - ], - "devDependencies": { - "ava": "*", - "get-stream": "^3.0.0", - "xo": "*" - } - -,"_resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz" -,"_integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==" -,"_from": "to-readable-stream@1.0.0" + "name": "to-readable-stream", + "version": "1.0.0", + "description": "Convert a string/Buffer/Uint8Array to a readable stream", + "license": "MIT", + "repository": "sindresorhus/to-readable-stream", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "stream", + "readablestream", + "string", + "buffer", + "uint8array", + "from", + "into", + "to", + "transform", + "convert", + "readable", + "pull" + ], + "devDependencies": { + "ava": "*", + "get-stream": "^3.0.0", + "xo": "*" + } } \ No newline at end of file diff --git a/node_modules/to-regex-range/package.json b/node_modules/to-regex-range/package.json index fe98f0685..54d82acde 100644 --- a/node_modules/to-regex-range/package.json +++ b/node_modules/to-regex-range/package.json @@ -85,8 +85,4 @@ ] } } - -,"_resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz" -,"_integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==" -,"_from": "to-regex-range@5.0.1" } \ No newline at end of file diff --git a/node_modules/trim-off-newlines/package.json b/node_modules/trim-off-newlines/package.json index 91a1806f6..83b8f3d6a 100644 --- a/node_modules/trim-off-newlines/package.json +++ b/node_modules/trim-off-newlines/package.json @@ -45,8 +45,4 @@ "mocha" ] } - -,"_resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz" -,"_integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=" -,"_from": "trim-off-newlines@1.0.1" } \ No newline at end of file diff --git a/node_modules/tslib/package.json b/node_modules/tslib/package.json index 991aea3b7..7878659d5 100644 --- a/node_modules/tslib/package.json +++ b/node_modules/tslib/package.json @@ -1,33 +1,29 @@ { - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.11.1", - "license": "Apache-2.0", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false - -,"_resolved": "https://registry.npmjs.org/tslib/-/tslib-1.11.1.tgz" -,"_integrity": "sha512-aZW88SY8kQbU7gpV19lN24LtXh/yD4ZZg6qieAJDDg+YBsJcSmLGK9QpnUjAKVG/xefmvJGd1WUmfpT/g6AJGA==" -,"_from": "tslib@1.11.1" + "name": "tslib", + "author": "Microsoft Corp.", + "homepage": "https://www.typescriptlang.org/", + "version": "1.11.1", + "license": "Apache-2.0", + "description": "Runtime library for TypeScript helper functions", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript", + "tslib", + "runtime" + ], + "bugs": { + "url": "https://github.com/Microsoft/TypeScript/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/tslib.git" + }, + "main": "tslib.js", + "module": "tslib.es6.js", + "jsnext:main": "tslib.es6.js", + "typings": "tslib.d.ts", + "sideEffects": false } \ No newline at end of file diff --git a/node_modules/tslint/node_modules/semver/package.json b/node_modules/tslint/node_modules/semver/package.json index 31e12dde0..90e287ecf 100644 --- a/node_modules/tslint/node_modules/semver/package.json +++ b/node_modules/tslint/node_modules/semver/package.json @@ -25,8 +25,4 @@ "tap": { "check-coverage": true } - -,"_resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz" -,"_integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" -,"_from": "semver@5.7.1" } \ No newline at end of file diff --git a/node_modules/tslint/package.json b/node_modules/tslint/package.json index 8f918b1d6..02f832328 100644 --- a/node_modules/tslint/package.json +++ b/node_modules/tslint/package.json @@ -1,97 +1,93 @@ { - "name": "tslint", - "version": "6.1.0", - "description": "An extensible static analysis linter for the TypeScript language", - "bin": { - "tslint": "./bin/tslint" - }, - "main": "./lib/index.js", - "typings": "./lib/index.d.ts", - "scripts": { - "clean": "npm-run-all -p clean:core clean:test", - "clean:core": "rimraf lib", - "clean:test": "rimraf build && rimraf test/config/node_modules", - "docs": "node scripts/buildDocs.js", - "compile": "npm-run-all -p compile:core compile:test -s compile:scripts", - "compile:core": "tsc -p src", - "compile:scripts": "tsc -p scripts", - "compile:test": "tsc -p test", - "lint": "npm-run-all -p lint:from-installed lint:from-bin", - "lint:from-bin": "node bin/tslint --project test/tsconfig.json --format codeFrame", - "lint:from-installed": "tslint --project test/tsconfig.json --format codeFrame", - "lint-fix": "yarn lint:from-installed --fix", - "publish:local": "./scripts/npmPublish.sh", - "test": "npm-run-all test:pre -p test:mocha test:rules", - "test:pre": "cd ./test/config && npm install --no-save", - "test:mocha": "mocha --reporter spec --colors \"build/test/**/*Tests.js\"", - "test:rules": "node ./build/test/ruleTestRunner.js", - "verify": "npm-run-all clean compile lint test docs", - "coverage": "rimraf coverage .nyc_output && nyc npm test" - }, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^4.0.1", - "glob": "^7.1.1", - "js-yaml": "^3.13.1", - "minimatch": "^3.0.4", - "mkdirp": "^0.5.1", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.10.0", - "tsutils": "^2.29.0" - }, - "peerDependencies": { - "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" - }, - "devDependencies": { - "@octokit/rest": "^16.24.3", - "@types/babel__code-frame": "^7.0.1", - "@types/chai": "^3.5.0", - "@types/diff": "^3.2.0", - "@types/glob": "^5.0.30", - "@types/js-yaml": "^3.5.31", - "@types/minimatch": "^2.0.29", - "@types/mkdirp": "^0.5.2", - "@types/mocha": "^5.2.6", - "@types/node": "^7.0.29", - "@types/resolve": "^0.0.4", - "@types/rimraf": "^2.0.2", - "@types/semver": "^5.3.30", - "chai": "^3.5.0", - "husky": "^0.14.3", - "json-stringify-pretty-compact": "^1.2.0", - "mocha": "^6.1.4", - "npm-run-all": "^4.0.2", - "nyc": "^14.1.1", - "prettier": "~1.16.4", - "rimraf": "^2.5.4", - "ts-node": "^3.3.0", - "tslint": "~5.13.0", - "tslint-config-prettier": "^1.18.0", - "tslint-plugin-prettier": "^2.0.1", - "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", - "typescript": "~3.8.2", - "yarn-deduplicate": "^1.1.1" - }, - "engines": { - "node": ">=4.8.0" - }, - "homepage": "https://palantir.github.io/tslint", - "repository": { - "type": "git", - "url": "https://github.com/palantir/tslint.git" - }, - "keywords": [ - "cli", - "typescript", - "linter" - ], - "license": "Apache-2.0" - -,"_resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.0.tgz" -,"_integrity": "sha512-fXjYd/61vU6da04E505OZQGb2VCN2Mq3doeWcOIryuG+eqdmFUXTYVwdhnbEu2k46LNLgUYt9bI5icQze/j0bQ==" -,"_from": "tslint@6.1.0" + "name": "tslint", + "version": "6.1.0", + "description": "An extensible static analysis linter for the TypeScript language", + "bin": { + "tslint": "./bin/tslint" + }, + "main": "./lib/index.js", + "typings": "./lib/index.d.ts", + "scripts": { + "clean": "npm-run-all -p clean:core clean:test", + "clean:core": "rimraf lib", + "clean:test": "rimraf build && rimraf test/config/node_modules", + "docs": "node scripts/buildDocs.js", + "compile": "npm-run-all -p compile:core compile:test -s compile:scripts", + "compile:core": "tsc -p src", + "compile:scripts": "tsc -p scripts", + "compile:test": "tsc -p test", + "lint": "npm-run-all -p lint:from-installed lint:from-bin", + "lint:from-bin": "node bin/tslint --project test/tsconfig.json --format codeFrame", + "lint:from-installed": "tslint --project test/tsconfig.json --format codeFrame", + "lint-fix": "yarn lint:from-installed --fix", + "publish:local": "./scripts/npmPublish.sh", + "test": "npm-run-all test:pre -p test:mocha test:rules", + "test:pre": "cd ./test/config && npm install --no-save", + "test:mocha": "mocha --reporter spec --colors \"build/test/**/*Tests.js\"", + "test:rules": "node ./build/test/ruleTestRunner.js", + "verify": "npm-run-all clean compile lint test docs", + "coverage": "rimraf coverage .nyc_output && nyc npm test" + }, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "builtin-modules": "^1.1.1", + "chalk": "^2.3.0", + "commander": "^2.12.1", + "diff": "^4.0.1", + "glob": "^7.1.1", + "js-yaml": "^3.13.1", + "minimatch": "^3.0.4", + "mkdirp": "^0.5.1", + "resolve": "^1.3.2", + "semver": "^5.3.0", + "tslib": "^1.10.0", + "tsutils": "^2.29.0" + }, + "peerDependencies": { + "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev" + }, + "devDependencies": { + "@octokit/rest": "^16.24.3", + "@types/babel__code-frame": "^7.0.1", + "@types/chai": "^3.5.0", + "@types/diff": "^3.2.0", + "@types/glob": "^5.0.30", + "@types/js-yaml": "^3.5.31", + "@types/minimatch": "^2.0.29", + "@types/mkdirp": "^0.5.2", + "@types/mocha": "^5.2.6", + "@types/node": "^7.0.29", + "@types/resolve": "^0.0.4", + "@types/rimraf": "^2.0.2", + "@types/semver": "^5.3.30", + "chai": "^3.5.0", + "husky": "^0.14.3", + "json-stringify-pretty-compact": "^1.2.0", + "mocha": "^6.1.4", + "npm-run-all": "^4.0.2", + "nyc": "^14.1.1", + "prettier": "~1.16.4", + "rimraf": "^2.5.4", + "ts-node": "^3.3.0", + "tslint": "~5.13.0", + "tslint-config-prettier": "^1.18.0", + "tslint-plugin-prettier": "^2.0.1", + "tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative", + "typescript": "~3.8.2", + "yarn-deduplicate": "^1.1.1" + }, + "engines": { + "node": ">=4.8.0" + }, + "homepage": "https://palantir.github.io/tslint", + "repository": { + "type": "git", + "url": "https://github.com/palantir/tslint.git" + }, + "keywords": [ + "cli", + "typescript", + "linter" + ], + "license": "Apache-2.0" } \ No newline at end of file diff --git a/node_modules/tsutils/package.json b/node_modules/tsutils/package.json index 71967fb7a..7c72f9465 100644 --- a/node_modules/tsutils/package.json +++ b/node_modules/tsutils/package.json @@ -52,8 +52,4 @@ "dependencies": { "tslib": "^1.8.1" } - -,"_resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz" -,"_integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==" -,"_from": "tsutils@2.29.0" } \ No newline at end of file diff --git a/node_modules/typedarray-to-buffer/package.json b/node_modules/typedarray-to-buffer/package.json index afaac5233..208763783 100644 --- a/node_modules/typedarray-to-buffer/package.json +++ b/node_modules/typedarray-to-buffer/package.json @@ -47,8 +47,4 @@ "test-browser-local": "airtap --local -- test/*.js", "test-node": "tape test/*.js" } - -,"_resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz" -,"_integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==" -,"_from": "typedarray-to-buffer@3.1.5" } \ No newline at end of file diff --git a/node_modules/typescript/package.json b/node_modules/typescript/package.json index 6e6dadab8..c2efe1e26 100644 --- a/node_modules/typescript/package.json +++ b/node_modules/typescript/package.json @@ -1,138 +1,134 @@ { - "name": "typescript", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "3.7.5", - "license": "Apache-2.0", - "description": "TypeScript is a language for application scale JavaScript development", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/TypeScript.git" - }, - "main": "./lib/typescript.js", - "typings": "./lib/typescript.d.ts", - "bin": { - "tsc": "./bin/tsc", - "tsserver": "./bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - }, - "devDependencies": { - "@octokit/rest": "latest", - "@types/browserify": "latest", - "@types/chai": "latest", - "@types/convert-source-map": "latest", - "@types/glob": "latest", - "@types/gulp": "^4.0.5", - "@types/gulp-concat": "latest", - "@types/gulp-newer": "latest", - "@types/gulp-rename": "0.0.33", - "@types/gulp-sourcemaps": "0.0.32", - "@types/jake": "latest", - "@types/merge2": "latest", - "@types/microsoft__typescript-etw": "latest", - "@types/minimatch": "latest", - "@types/minimist": "latest", - "@types/mkdirp": "latest", - "@types/mocha": "latest", - "@types/ms": "latest", - "@types/node": "latest", - "@types/node-fetch": "^2.3.4", - "@types/q": "latest", - "@types/source-map-support": "latest", - "@types/through2": "latest", - "@types/travis-fold": "latest", - "@types/xml2js": "^0.4.0", - "@typescript-eslint/eslint-plugin": "2.3.2", - "@typescript-eslint/experimental-utils": "2.3.2", - "@typescript-eslint/parser": "2.3.2", - "async": "latest", - "azure-devops-node-api": "^8.0.0", - "browser-resolve": "^1.11.2", - "browserify": "latest", - "chai": "latest", - "chalk": "latest", - "convert-source-map": "latest", - "del": "5.1.0", - "eslint": "6.5.1", - "eslint-formatter-autolinkable-stylish": "1.0.3", - "eslint-plugin-import": "2.18.2", - "eslint-plugin-jsdoc": "15.9.9", - "eslint-plugin-no-null": "1.0.2", - "fancy-log": "latest", - "fs-extra": "^6.0.1", - "glob": "latest", - "gulp": "^4.0.0", - "gulp-concat": "latest", - "gulp-insert": "latest", - "gulp-newer": "latest", - "gulp-rename": "latest", - "gulp-sourcemaps": "latest", - "istanbul": "latest", - "merge2": "latest", - "minimist": "latest", - "mkdirp": "latest", - "mocha": "latest", - "mocha-fivemat-progress-reporter": "latest", - "ms": "latest", - "node-fetch": "^2.6.0", - "plugin-error": "latest", - "pretty-hrtime": "^1.0.3", - "prex": "^0.4.3", - "q": "latest", - "remove-internal": "^2.9.2", - "simple-git": "^1.113.0", - "source-map-support": "latest", - "through2": "latest", - "travis-fold": "latest", - "typescript": "next", - "vinyl": "latest", - "vinyl-sourcemaps-apply": "latest", - "xml2js": "^0.4.19" - }, - "scripts": { - "prepare": "gulp build-eslint-rules", - "pretest": "gulp tests", - "test": "gulp runtests-parallel --light=false", - "test:eslint-rules": "gulp run-eslint-rules-tests", - "build": "npm run build:compiler && npm run build:tests", - "build:compiler": "gulp local", - "build:tests": "gulp tests", - "start": "node lib/tsc", - "clean": "gulp clean", - "gulp": "gulp", - "jake": "gulp", - "lint": "gulp lint", - "lint:ci": "gulp lint --ci", - "lint:compiler": "gulp lint-compiler", - "lint:scripts": "gulp lint-scripts", - "setup-hooks": "node scripts/link-hooks.js", - "update-costly-tests": "node scripts/costly-tests.js" - }, - "browser": { - "fs": false, - "os": false, - "path": false, - "crypto": false, - "buffer": false, - "@microsoft/typescript-etw": false, - "source-map-support": false, - "inspector": false - }, - "dependencies": {} - -,"_resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.5.tgz" -,"_integrity": "sha512-/P5lkRXkWHNAbcJIiHPfRoKqyd7bsyCma1hZNUGfn20qm64T6ZBlrzprymeu918H+mB/0rIg2gGK/BXkhhYgBw==" -,"_from": "typescript@3.7.5" + "name": "typescript", + "author": "Microsoft Corp.", + "homepage": "https://www.typescriptlang.org/", + "version": "3.7.5", + "license": "Apache-2.0", + "description": "TypeScript is a language for application scale JavaScript development", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript" + ], + "bugs": { + "url": "https://github.com/Microsoft/TypeScript/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/TypeScript.git" + }, + "main": "./lib/typescript.js", + "typings": "./lib/typescript.d.ts", + "bin": { + "tsc": "./bin/tsc", + "tsserver": "./bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + }, + "devDependencies": { + "@octokit/rest": "latest", + "@types/browserify": "latest", + "@types/chai": "latest", + "@types/convert-source-map": "latest", + "@types/glob": "latest", + "@types/gulp": "^4.0.5", + "@types/gulp-concat": "latest", + "@types/gulp-newer": "latest", + "@types/gulp-rename": "0.0.33", + "@types/gulp-sourcemaps": "0.0.32", + "@types/jake": "latest", + "@types/merge2": "latest", + "@types/microsoft__typescript-etw": "latest", + "@types/minimatch": "latest", + "@types/minimist": "latest", + "@types/mkdirp": "latest", + "@types/mocha": "latest", + "@types/ms": "latest", + "@types/node": "latest", + "@types/node-fetch": "^2.3.4", + "@types/q": "latest", + "@types/source-map-support": "latest", + "@types/through2": "latest", + "@types/travis-fold": "latest", + "@types/xml2js": "^0.4.0", + "@typescript-eslint/eslint-plugin": "2.3.2", + "@typescript-eslint/experimental-utils": "2.3.2", + "@typescript-eslint/parser": "2.3.2", + "async": "latest", + "azure-devops-node-api": "^8.0.0", + "browser-resolve": "^1.11.2", + "browserify": "latest", + "chai": "latest", + "chalk": "latest", + "convert-source-map": "latest", + "del": "5.1.0", + "eslint": "6.5.1", + "eslint-formatter-autolinkable-stylish": "1.0.3", + "eslint-plugin-import": "2.18.2", + "eslint-plugin-jsdoc": "15.9.9", + "eslint-plugin-no-null": "1.0.2", + "fancy-log": "latest", + "fs-extra": "^6.0.1", + "glob": "latest", + "gulp": "^4.0.0", + "gulp-concat": "latest", + "gulp-insert": "latest", + "gulp-newer": "latest", + "gulp-rename": "latest", + "gulp-sourcemaps": "latest", + "istanbul": "latest", + "merge2": "latest", + "minimist": "latest", + "mkdirp": "latest", + "mocha": "latest", + "mocha-fivemat-progress-reporter": "latest", + "ms": "latest", + "node-fetch": "^2.6.0", + "plugin-error": "latest", + "pretty-hrtime": "^1.0.3", + "prex": "^0.4.3", + "q": "latest", + "remove-internal": "^2.9.2", + "simple-git": "^1.113.0", + "source-map-support": "latest", + "through2": "latest", + "travis-fold": "latest", + "typescript": "next", + "vinyl": "latest", + "vinyl-sourcemaps-apply": "latest", + "xml2js": "^0.4.19" + }, + "scripts": { + "prepare": "gulp build-eslint-rules", + "pretest": "gulp tests", + "test": "gulp runtests-parallel --light=false", + "test:eslint-rules": "gulp run-eslint-rules-tests", + "build": "npm run build:compiler && npm run build:tests", + "build:compiler": "gulp local", + "build:tests": "gulp tests", + "start": "node lib/tsc", + "clean": "gulp clean", + "gulp": "gulp", + "jake": "gulp", + "lint": "gulp lint", + "lint:ci": "gulp lint --ci", + "lint:compiler": "gulp lint-compiler", + "lint:scripts": "gulp lint-scripts", + "setup-hooks": "node scripts/link-hooks.js", + "update-costly-tests": "node scripts/costly-tests.js" + }, + "browser": { + "fs": false, + "os": false, + "path": false, + "crypto": false, + "buffer": false, + "@microsoft/typescript-etw": false, + "source-map-support": false, + "inspector": false + }, + "dependencies": {} } \ No newline at end of file diff --git a/node_modules/unique-string/package.json b/node_modules/unique-string/package.json index 808e91cf2..0bf04f042 100644 --- a/node_modules/unique-string/package.json +++ b/node_modules/unique-string/package.json @@ -1,44 +1,40 @@ { - "name": "unique-string", - "version": "2.0.0", - "description": "Generate a unique random string", - "license": "MIT", - "repository": "sindresorhus/unique-string", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "unique", - "string", - "random", - "text", - "id", - "identifier", - "slug", - "hex" - ], - "dependencies": { - "crypto-random-string": "^2.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz" -,"_integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==" -,"_from": "unique-string@2.0.0" + "name": "unique-string", + "version": "2.0.0", + "description": "Generate a unique random string", + "license": "MIT", + "repository": "sindresorhus/unique-string", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "unique", + "string", + "random", + "text", + "id", + "identifier", + "slug", + "hex" + ], + "dependencies": { + "crypto-random-string": "^2.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/universal-user-agent/package.json b/node_modules/universal-user-agent/package.json index 9870ef087..507ae8da8 100644 --- a/node_modules/universal-user-agent/package.json +++ b/node_modules/universal-user-agent/package.json @@ -30,8 +30,4 @@ "types": "dist-types/index.d.ts", "main": "dist-node/index.js", "module": "dist-web/index.js" - -,"_resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-5.0.0.tgz" -,"_integrity": "sha512-B5TPtzZleXyPrUMKCpEHFmVhMN6EhmJYjG5PQna9s7mXeSqGTLap4OpqLl5FCEFUI3UBmllkETwKf/db66Y54Q==" -,"_from": "universal-user-agent@5.0.0" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/ansi-styles/package.json b/node_modules/update-notifier/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/update-notifier/node_modules/ansi-styles/package.json +++ b/node_modules/update-notifier/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/chalk/package.json b/node_modules/update-notifier/node_modules/chalk/package.json index c75d30e94..b68e931e7 100644 --- a/node_modules/update-notifier/node_modules/chalk/package.json +++ b/node_modules/update-notifier/node_modules/chalk/package.json @@ -1,67 +1,63 @@ { - "name": "chalk", - "version": "3.0.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "main": "source", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^3.2.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^14.1.1", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.25.3" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off" - } - } - -,"_resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz" -,"_integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==" -,"_from": "chalk@3.0.0" + "name": "chalk", + "version": "3.0.0", + "description": "Terminal string styling done right", + "license": "MIT", + "repository": "chalk/chalk", + "main": "source", + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava && tsd", + "bench": "matcha benchmark.js" + }, + "files": [ + "source", + "index.d.ts" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "str", + "ansi", + "style", + "styles", + "tty", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "coveralls": "^3.0.7", + "execa": "^3.2.0", + "import-fresh": "^3.1.0", + "matcha": "^0.7.0", + "nyc": "^14.1.1", + "resolve-from": "^5.0.0", + "tsd": "^0.7.4", + "xo": "^0.25.3" + }, + "xo": { + "rules": { + "unicorn/prefer-string-slice": "off", + "unicorn/prefer-includes": "off" + } + } } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/color-convert/package.json b/node_modules/update-notifier/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/update-notifier/node_modules/color-convert/package.json +++ b/node_modules/update-notifier/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/color-name/package.json b/node_modules/update-notifier/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/update-notifier/node_modules/color-name/package.json +++ b/node_modules/update-notifier/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/has-flag/package.json b/node_modules/update-notifier/node_modules/has-flag/package.json index 5b10a2844..55d0058e4 100644 --- a/node_modules/update-notifier/node_modules/has-flag/package.json +++ b/node_modules/update-notifier/node_modules/has-flag/package.json @@ -1,50 +1,46 @@ { - "name": "has-flag", - "version": "4.0.0", - "description": "Check if argv has a specific flag", - "license": "MIT", - "repository": "sindresorhus/has-flag", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "has", - "check", - "detect", - "contains", - "find", - "flag", - "cli", - "command-line", - "argv", - "process", - "arg", - "args", - "argument", - "arguments", - "getopt", - "minimist", - "optimist" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz" -,"_integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==" -,"_from": "has-flag@4.0.0" + "name": "has-flag", + "version": "4.0.0", + "description": "Check if argv has a specific flag", + "license": "MIT", + "repository": "sindresorhus/has-flag", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "has", + "check", + "detect", + "contains", + "find", + "flag", + "cli", + "command-line", + "argv", + "process", + "arg", + "args", + "argument", + "arguments", + "getopt", + "minimist", + "optimist" + ], + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/update-notifier/node_modules/supports-color/package.json b/node_modules/update-notifier/node_modules/supports-color/package.json index f0982eb21..79856038d 100644 --- a/node_modules/update-notifier/node_modules/supports-color/package.json +++ b/node_modules/update-notifier/node_modules/supports-color/package.json @@ -1,57 +1,53 @@ { - "name": "supports-color", - "version": "7.1.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "xo": "^0.24.0" - }, - "browser": "browser.js" - -,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz" -,"_integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==" -,"_from": "supports-color@7.1.0" + "name": "supports-color", + "version": "7.1.0", + "description": "Detect whether a terminal supports color", + "license": "MIT", + "repository": "chalk/supports-color", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava" + }, + "files": [ + "index.js", + "browser.js" + ], + "keywords": [ + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect", + "truecolor", + "16m" + ], + "dependencies": { + "has-flag": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "xo": "^0.24.0" + }, + "browser": "browser.js" } \ No newline at end of file diff --git a/node_modules/update-notifier/package.json b/node_modules/update-notifier/package.json index 5aa45bd9c..604f5db25 100644 --- a/node_modules/update-notifier/package.json +++ b/node_modules/update-notifier/package.json @@ -1,68 +1,64 @@ { - "name": "update-notifier", - "version": "4.1.0", - "description": "Update notifications for your CLI app", - "license": "BSD-2-Clause", - "repository": "yeoman/update-notifier", - "funding": "https://github.com/yeoman/update-notifier?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava --timeout=20s -s" - }, - "files": [ - "index.js", - "check.js" - ], - "keywords": [ - "npm", - "update", - "updater", - "notify", - "notifier", - "check", - "checker", - "cli", - "module", - "package", - "version" - ], - "dependencies": { - "boxen": "^4.2.0", - "chalk": "^3.0.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.3.1", - "is-npm": "^4.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.0.0", - "pupa": "^2.0.1", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "clear-module": "^4.0.0", - "fixture-stdout": "^0.2.1", - "mock-require": "^3.0.3", - "strip-ansi": "^6.0.0", - "xo": "^0.26.1" - }, - "xo": { - "rules": { - "prefer-object-spread": 0 - } - } - -,"_resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-4.1.0.tgz" -,"_integrity": "sha512-w3doE1qtI0/ZmgeoDoARmI5fjDoT93IfKgEGqm26dGUOh8oNpaSTsGNdYRN/SjOuo10jcJGwkEL3mroKzktkew==" -,"_from": "update-notifier@4.1.0" + "name": "update-notifier", + "version": "4.1.0", + "description": "Update notifications for your CLI app", + "license": "BSD-2-Clause", + "repository": "yeoman/update-notifier", + "funding": "https://github.com/yeoman/update-notifier?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "https://sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava --timeout=20s -s" + }, + "files": [ + "index.js", + "check.js" + ], + "keywords": [ + "npm", + "update", + "updater", + "notify", + "notifier", + "check", + "checker", + "cli", + "module", + "package", + "version" + ], + "dependencies": { + "boxen": "^4.2.0", + "chalk": "^3.0.0", + "configstore": "^5.0.1", + "has-yarn": "^2.1.0", + "import-lazy": "^2.1.0", + "is-ci": "^2.0.0", + "is-installed-globally": "^0.3.1", + "is-npm": "^4.0.0", + "is-yarn-global": "^0.3.0", + "latest-version": "^5.0.0", + "pupa": "^2.0.1", + "semver-diff": "^3.1.1", + "xdg-basedir": "^4.0.0" + }, + "devDependencies": { + "ava": "^2.4.0", + "clear-module": "^4.0.0", + "fixture-stdout": "^0.2.1", + "mock-require": "^3.0.3", + "strip-ansi": "^6.0.0", + "xo": "^0.26.1" + }, + "xo": { + "rules": { + "prefer-object-spread": 0 + } + } } \ No newline at end of file diff --git a/node_modules/url-parse-lax/package.json b/node_modules/url-parse-lax/package.json index f62c1616c..fb99b48ca 100644 --- a/node_modules/url-parse-lax/package.json +++ b/node_modules/url-parse-lax/package.json @@ -39,8 +39,4 @@ "ava": "*", "xo": "*" } - -,"_resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz" -,"_integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=" -,"_from": "url-parse-lax@3.0.0" } \ No newline at end of file diff --git a/node_modules/util/package.json b/node_modules/util/package.json index e007ee0db..3ea19135d 100644 --- a/node_modules/util/package.json +++ b/node_modules/util/package.json @@ -32,8 +32,4 @@ "browser": { "./support/isBuffer.js": "./support/isBufferBrowser.js" } - -,"_resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz" -,"_integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==" -,"_from": "util@0.10.4" } \ No newline at end of file diff --git a/node_modules/uuid/package.json b/node_modules/uuid/package.json index 3777855f5..4b23f72c7 100644 --- a/node_modules/uuid/package.json +++ b/node_modules/uuid/package.json @@ -46,8 +46,4 @@ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } } - -,"_resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz" -,"_integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" -,"_from": "uuid@3.4.0" } \ No newline at end of file diff --git a/node_modules/validate-npm-package-license/package.json b/node_modules/validate-npm-package-license/package.json index 586f12a17..06ebbfc74 100644 --- a/node_modules/validate-npm-package-license/package.json +++ b/node_modules/validate-npm-package-license/package.json @@ -25,8 +25,4 @@ "scripts": { "test": "defence README.md | replace-require-self | node" } - -,"_resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz" -,"_integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==" -,"_from": "validate-npm-package-license@3.0.4" } \ No newline at end of file diff --git a/node_modules/wcwidth/package.json b/node_modules/wcwidth/package.json index 12cb1c239..232687f75 100644 --- a/node_modules/wcwidth/package.json +++ b/node_modules/wcwidth/package.json @@ -39,8 +39,4 @@ "url": "https://github.com/timoxley/wcwidth/issues" }, "homepage": "https://github.com/timoxley/wcwidth#readme" - -,"_resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz" -,"_integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=" -,"_from": "wcwidth@1.0.1" } \ No newline at end of file diff --git a/node_modules/well-known-symbols/package.json b/node_modules/well-known-symbols/package.json index 83e7f542d..3506ecbc2 100644 --- a/node_modules/well-known-symbols/package.json +++ b/node_modules/well-known-symbols/package.json @@ -46,8 +46,4 @@ ] }, "standard-engine": "@novemberborn/as-i-preach" - -,"_resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-2.0.0.tgz" -,"_integrity": "sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==" -,"_from": "well-known-symbols@2.0.0" } \ No newline at end of file diff --git a/node_modules/which-module/package.json b/node_modules/which-module/package.json index fc272b5fa..3d784c798 100644 --- a/node_modules/which-module/package.json +++ b/node_modules/which-module/package.json @@ -38,8 +38,4 @@ "standard": "^10.0.2", "standard-version": "^4.0.0" } - -,"_resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz" -,"_integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=" -,"_from": "which-module@2.0.0" } \ No newline at end of file diff --git a/node_modules/which/package.json b/node_modules/which/package.json index 740862f21..6844ec286 100644 --- a/node_modules/which/package.json +++ b/node_modules/which/package.json @@ -27,8 +27,4 @@ "which.js", "bin/which" ] - -,"_resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz" -,"_integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==" -,"_from": "which@1.3.1" } \ No newline at end of file diff --git a/node_modules/widest-line/package.json b/node_modules/widest-line/package.json index 5795ae553..55d21f276 100644 --- a/node_modules/widest-line/package.json +++ b/node_modules/widest-line/package.json @@ -1,58 +1,54 @@ { - "name": "widest-line", - "version": "3.1.0", - "description": "Get the visual width of the widest line in a string - the number of columns required to display it", - "license": "MIT", - "repository": "sindresorhus/widest-line", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "string", - "character", - "unicode", - "width", - "visual", - "column", - "columns", - "fullwidth", - "full-width", - "full", - "ansi", - "escape", - "codes", - "cli", - "command-line", - "terminal", - "console", - "cjk", - "chinese", - "japanese", - "korean", - "fixed-width" - ], - "dependencies": { - "string-width": "^4.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz" -,"_integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==" -,"_from": "widest-line@3.1.0" + "name": "widest-line", + "version": "3.1.0", + "description": "Get the visual width of the widest line in a string - the number of columns required to display it", + "license": "MIT", + "repository": "sindresorhus/widest-line", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "string", + "character", + "unicode", + "width", + "visual", + "column", + "columns", + "fullwidth", + "full-width", + "full", + "ansi", + "escape", + "codes", + "cli", + "command-line", + "terminal", + "console", + "cjk", + "chinese", + "japanese", + "korean", + "fixed-width" + ], + "dependencies": { + "string-width": "^4.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/windows-release/package.json b/node_modules/windows-release/package.json index c9adabf01..b87232dd6 100644 --- a/node_modules/windows-release/package.json +++ b/node_modules/windows-release/package.json @@ -1,47 +1,43 @@ { - "name": "windows-release", - "version": "3.2.0", - "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", - "license": "MIT", - "repository": "sindresorhus/windows-release", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "os", - "win", - "win32", - "windows", - "operating", - "system", - "platform", - "name", - "title", - "release", - "version" - ], - "dependencies": { - "execa": "^1.0.0" - }, - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/windows-release/-/windows-release-3.2.0.tgz" -,"_integrity": "sha512-QTlz2hKLrdqukrsapKsINzqMgOUpQW268eJ0OaOpJN32h272waxR9fkB9VoWRtK7uKHG5EHJcTXQBD8XZVJkFA==" -,"_from": "windows-release@3.2.0" + "name": "windows-release", + "version": "3.2.0", + "description": "Get the name of a Windows version from the release number: `5.1.2600` → `XP`", + "license": "MIT", + "repository": "sindresorhus/windows-release", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=6" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "os", + "win", + "win32", + "windows", + "operating", + "system", + "platform", + "name", + "title", + "release", + "version" + ], + "dependencies": { + "execa": "^1.0.0" + }, + "devDependencies": { + "ava": "^1.4.1", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json b/node_modules/wrap-ansi/node_modules/ansi-styles/package.json index f970a55ac..1a7731952 100644 --- a/node_modules/wrap-ansi/node_modules/ansi-styles/package.json +++ b/node_modules/wrap-ansi/node_modules/ansi-styles/package.json @@ -1,61 +1,57 @@ { - "name": "ansi-styles", - "version": "4.2.1", - "description": "ANSI escape codes for styling strings in the terminal", - "license": "MIT", - "repository": "chalk/ansi-styles", - "funding": "https://github.com/chalk/ansi-styles?sponsor=1", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd", - "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "@types/color-name": "^1.1.1", - "color-convert": "^2.0.1" - }, - "devDependencies": { - "@types/color-convert": "^1.9.0", - "ava": "^2.3.0", - "svg-term-cli": "^2.1.1", - "tsd": "^0.11.0", - "xo": "^0.25.3" - } - -,"_resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz" -,"_integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==" -,"_from": "ansi-styles@4.2.1" + "name": "ansi-styles", + "version": "4.2.1", + "description": "ANSI escape codes for styling strings in the terminal", + "license": "MIT", + "repository": "chalk/ansi-styles", + "funding": "https://github.com/chalk/ansi-styles?sponsor=1", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd", + "screenshot": "svg-term --command='node screenshot' --out=screenshot.svg --padding=3 --width=55 --height=3 --at=1000 --no-cursor" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "@types/color-name": "^1.1.1", + "color-convert": "^2.0.1" + }, + "devDependencies": { + "@types/color-convert": "^1.9.0", + "ava": "^2.3.0", + "svg-term-cli": "^2.1.1", + "tsd": "^0.11.0", + "xo": "^0.25.3" + } } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/color-convert/package.json b/node_modules/wrap-ansi/node_modules/color-convert/package.json index 26354b46e..d169f869b 100644 --- a/node_modules/wrap-ansi/node_modules/color-convert/package.json +++ b/node_modules/wrap-ansi/node_modules/color-convert/package.json @@ -45,8 +45,4 @@ "dependencies": { "color-name": "~1.1.4" } - -,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz" -,"_integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==" -,"_from": "color-convert@2.0.1" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/node_modules/color-name/package.json b/node_modules/wrap-ansi/node_modules/color-name/package.json index 14739f13f..fecb8dcfb 100644 --- a/node_modules/wrap-ansi/node_modules/color-name/package.json +++ b/node_modules/wrap-ansi/node_modules/color-name/package.json @@ -1,32 +1,28 @@ -{ - "name": "color-name", - "version": "1.1.4", - "description": "A list of color names and its values", - "main": "index.js", - "files": [ - "index.js" - ], - "scripts": { - "test": "node test.js" - }, - "repository": { - "type": "git", - "url": "git@github.com:colorjs/color-name.git" - }, - "keywords": [ - "color-name", - "color", - "color-keyword", - "keyword" - ], - "author": "DY ", - "license": "MIT", - "bugs": { - "url": "https://github.com/colorjs/color-name/issues" - }, - "homepage": "https://github.com/colorjs/color-name" - -,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz" -,"_integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" -,"_from": "color-name@1.1.4" +{ + "name": "color-name", + "version": "1.1.4", + "description": "A list of color names and its values", + "main": "index.js", + "files": [ + "index.js" + ], + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git@github.com:colorjs/color-name.git" + }, + "keywords": [ + "color-name", + "color", + "color-keyword", + "keyword" + ], + "author": "DY ", + "license": "MIT", + "bugs": { + "url": "https://github.com/colorjs/color-name/issues" + }, + "homepage": "https://github.com/colorjs/color-name" } \ No newline at end of file diff --git a/node_modules/wrap-ansi/package.json b/node_modules/wrap-ansi/package.json index cd22ae882..821aebb90 100644 --- a/node_modules/wrap-ansi/package.json +++ b/node_modules/wrap-ansi/package.json @@ -1,65 +1,61 @@ { - "name": "wrap-ansi", - "version": "6.2.0", - "description": "Wordwrap a string with ANSI escape codes", - "license": "MIT", - "repository": "chalk/wrap-ansi", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && nyc ava" - }, - "files": [ - "index.js" - ], - "keywords": [ - "wrap", - "break", - "wordwrap", - "wordbreak", - "linewrap", - "ansi", - "styles", - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "tty", - "escape", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "devDependencies": { - "ava": "^2.1.0", - "chalk": "^2.4.2", - "coveralls": "^3.0.3", - "has-ansi": "^3.0.0", - "nyc": "^14.1.1", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz" -,"_integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==" -,"_from": "wrap-ansi@6.2.0" + "name": "wrap-ansi", + "version": "6.2.0", + "description": "Wordwrap a string with ANSI escape codes", + "license": "MIT", + "repository": "chalk/wrap-ansi", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && nyc ava" + }, + "files": [ + "index.js" + ], + "keywords": [ + "wrap", + "break", + "wordwrap", + "wordbreak", + "linewrap", + "ansi", + "styles", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "string", + "tty", + "escape", + "formatting", + "rgb", + "256", + "shell", + "xterm", + "log", + "logging", + "command-line", + "text" + ], + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "devDependencies": { + "ava": "^2.1.0", + "chalk": "^2.4.2", + "coveralls": "^3.0.3", + "has-ansi": "^3.0.0", + "nyc": "^14.1.1", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/wrappy/package.json b/node_modules/wrappy/package.json index afa77fdc3..277d8831b 100644 --- a/node_modules/wrappy/package.json +++ b/node_modules/wrappy/package.json @@ -26,8 +26,4 @@ "url": "https://github.com/npm/wrappy/issues" }, "homepage": "https://github.com/npm/wrappy" - -,"_resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz" -,"_integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" -,"_from": "wrappy@1.0.2" } \ No newline at end of file diff --git a/node_modules/write-file-atomic/package.json b/node_modules/write-file-atomic/package.json index e9740c053..58ff19175 100644 --- a/node_modules/write-file-atomic/package.json +++ b/node_modules/write-file-atomic/package.json @@ -45,8 +45,4 @@ "tap": { "100": true } - -,"_resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz" -,"_integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==" -,"_from": "write-file-atomic@3.0.3" } \ No newline at end of file diff --git a/node_modules/xdg-basedir/package.json b/node_modules/xdg-basedir/package.json index c1fa79ef9..1028a16cf 100644 --- a/node_modules/xdg-basedir/package.json +++ b/node_modules/xdg-basedir/package.json @@ -1,45 +1,41 @@ { - "name": "xdg-basedir", - "version": "4.0.0", - "description": "Get XDG Base Directory paths", - "license": "MIT", - "repository": "sindresorhus/xdg-basedir", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "xdg", - "base", - "directory", - "basedir", - "path", - "data", - "config", - "cache", - "linux", - "unix", - "spec" - ], - "devDependencies": { - "ava": "^1.4.1", - "import-fresh": "^3.0.0", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } - -,"_resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz" -,"_integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==" -,"_from": "xdg-basedir@4.0.0" + "name": "xdg-basedir", + "version": "4.0.0", + "description": "Get XDG Base Directory paths", + "license": "MIT", + "repository": "sindresorhus/xdg-basedir", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "engines": { + "node": ">=8" + }, + "scripts": { + "test": "xo && ava && tsd" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "keywords": [ + "xdg", + "base", + "directory", + "basedir", + "path", + "data", + "config", + "cache", + "linux", + "unix", + "spec" + ], + "devDependencies": { + "ava": "^1.4.1", + "import-fresh": "^3.0.0", + "tsd": "^0.7.2", + "xo": "^0.24.0" + } } \ No newline at end of file diff --git a/node_modules/y18n/package.json b/node_modules/y18n/package.json index 28d76228e..57f8da1ad 100644 --- a/node_modules/y18n/package.json +++ b/node_modules/y18n/package.json @@ -36,8 +36,4 @@ "standard": "^10.0.0-beta.0", "standard-version": "^4.2.0" } - -,"_resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz" -,"_integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" -,"_from": "y18n@4.0.0" } \ No newline at end of file diff --git a/node_modules/yargs-parser/package.json b/node_modules/yargs-parser/package.json index 8fc562099..b611d3f6b 100644 --- a/node_modules/yargs-parser/package.json +++ b/node_modules/yargs-parser/package.json @@ -43,8 +43,4 @@ "engines": { "node": ">=6" } - -,"_resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.2.tgz" -,"_integrity": "sha512-hlIPNR3IzC1YuL1c2UwwDKpXlNFBqD1Fswwh1khz5+d8Cq/8yc/Mn0i+rQXduu8hcrFKvO7Eryk+09NecTQAAQ==" -,"_from": "yargs-parser@18.1.2" } \ No newline at end of file diff --git a/node_modules/yargs/package.json b/node_modules/yargs/package.json index c260dec39..745bae01a 100644 --- a/node_modules/yargs/package.json +++ b/node_modules/yargs/package.json @@ -75,8 +75,4 @@ "engines": { "node": ">=8" } - -,"_resolved": "https://registry.npmjs.org/yargs/-/yargs-15.3.1.tgz" -,"_integrity": "sha512-92O1HWEjw27sBfgmXiixJWT5hRBp2eobqXicLtPBIDBhYB+1HpwZlXmbW2luivBJHBzki+7VyCLRtAkScbTBQA==" -,"_from": "yargs@15.3.1" } \ No newline at end of file diff --git a/node_modules/zlib/package.json b/node_modules/zlib/package.json index 3c97a7452..5fa94d181 100644 --- a/node_modules/zlib/package.json +++ b/node_modules/zlib/package.json @@ -1,22 +1,20 @@ { - "name": "zlib", - "description": "Simple, synchronous deflate/inflate for buffers", - "version": "1.0.5", - "homepage": "https://github.com/kkaefer/node-zlib", - "author": "Konstantin Käfer ", - "repository": { - "type": "git", - "url": "git://github.com/kkaefer/node-zlib.git" - }, - "engines": { - "node": ">=0.2.0" - }, - "licenses": [ - { "type": "BSD" } - ], - "main": "./lib/zlib" - -,"_resolved": "https://registry.npmjs.org/zlib/-/zlib-1.0.5.tgz" -,"_integrity": "sha1-bnyXL8NxxkWmr7A6sUdp3vEU/MA=" -,"_from": "zlib@1.0.5" + "name": "zlib", + "description": "Simple, synchronous deflate/inflate for buffers", + "version": "1.0.5", + "homepage": "https://github.com/kkaefer/node-zlib", + "author": "Konstantin Käfer ", + "repository": { + "type": "git", + "url": "git://github.com/kkaefer/node-zlib.git" + }, + "engines": { + "node": ">=0.2.0" + }, + "licenses": [ + { + "type": "BSD" + } + ], + "main": "./lib/zlib" } \ No newline at end of file From c0c67ce80f53449380aa9de51ae7b2a115e853cb Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Mon, 22 Jun 2020 12:12:14 +0100 Subject: [PATCH 07/38] Reduce debug output in tests --- lib/analysis-paths.test.js | 2 ++ lib/analysis-paths.test.js.map | 2 +- lib/config-utils.test.js | 2 ++ lib/config-utils.test.js.map | 2 +- lib/external-queries.test.js | 2 ++ lib/external-queries.test.js.map | 2 +- lib/fingerprints.test.js | 2 ++ lib/fingerprints.test.js.map | 2 +- lib/test-utils.js | 22 ++++++++++++++++++++++ lib/test-utils.js.map | 1 + lib/testing-utils.js | 28 ++++++++++++++++++++++++++++ lib/testing-utils.js.map | 1 + lib/upload-lib.test.js | 2 ++ lib/upload-lib.test.js.map | 2 +- src/analysis-paths.test.ts | 3 +++ src/config-utils.test.ts | 3 +++ src/external-queries.test.ts | 3 +++ src/fingerprints.test.ts | 3 +++ src/testing-utils.ts | 27 +++++++++++++++++++++++++++ src/upload-lib.test.ts | 3 +++ 20 files changed, 109 insertions(+), 5 deletions(-) create mode 100644 lib/test-utils.js create mode 100644 lib/test-utils.js.map create mode 100644 lib/testing-utils.js create mode 100644 lib/testing-utils.js.map create mode 100644 src/testing-utils.ts diff --git a/lib/analysis-paths.test.js b/lib/analysis-paths.test.js index 90de75b77..54848dac5 100644 --- a/lib/analysis-paths.test.js +++ b/lib/analysis-paths.test.js @@ -13,6 +13,8 @@ Object.defineProperty(exports, "__esModule", { value: true }); const ava_1 = __importDefault(require("ava")); const analysisPaths = __importStar(require("./analysis-paths")); const configUtils = __importStar(require("./config-utils")); +const testing_utils_1 = require("./testing-utils"); +testing_utils_1.silenceDebugOutput(ava_1.default); ava_1.default("emptyPaths", async (t) => { let config = new configUtils.Config(); analysisPaths.includeAndExcludeAnalysisPaths(config, []); diff --git a/lib/analysis-paths.test.js.map b/lib/analysis-paths.test.js.map index 321415575..2e5aba419 100644 --- a/lib/analysis-paths.test.js.map +++ b/lib/analysis-paths.test.js.map @@ -1 +1 @@ -{"version":3,"file":"analysis-paths.test.js","sourceRoot":"","sources":["../src/analysis-paths.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,gEAAkD;AAClD,4DAA8C;AAE9C,aAAI,CAAC,YAAY,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACzB,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC5B,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"analysis-paths.test.js","sourceRoot":"","sources":["../src/analysis-paths.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,gEAAkD;AAClD,4DAA8C;AAC9C,mDAAmD;AAEnD,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,YAAY,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACzB,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC5B,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/config-utils.test.js b/lib/config-utils.test.js index 76242ed4e..e592b1260 100644 --- a/lib/config-utils.test.js +++ b/lib/config-utils.test.js @@ -14,7 +14,9 @@ const ava_1 = __importDefault(require("ava")); const fs = __importStar(require("fs")); const path = __importStar(require("path")); const configUtils = __importStar(require("./config-utils")); +const testing_utils_1 = require("./testing-utils"); const util = __importStar(require("./util")); +testing_utils_1.silenceDebugOutput(ava_1.default); function setInput(name, value) { // Transformation copied from // https://github.com/actions/toolkit/blob/05e39f551d33e1688f61b209ab5cdd335198f1b8/packages/core/src/core.ts#L69 diff --git a/lib/config-utils.test.js.map b/lib/config-utils.test.js.map index da42cf93c..c1fa7e0aa 100644 --- a/lib/config-utils.test.js.map +++ b/lib/config-utils.test.js.map @@ -1 +1 @@ -{"version":3,"file":"config-utils.test.js","sourceRoot":"","sources":["../src/config-utils.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,6CAA+B;AAE/B,SAAS,QAAQ,CAAC,IAAY,EAAE,KAAyB;IACvD,6BAA6B;IAC7B,iHAAiH;IACjH,MAAM,MAAM,GAAG,SAAS,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;IAChE,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC;KAC7B;SAAM;QACL,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;KAC5B;AACH,CAAC;AAED,aAAI,CAAC,mBAAmB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAClC,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QAC1C,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC;QAEzC,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QA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G,KAAK,CAAC;IAEtB,kBAAkB,CAChB,iBAAiB,GAAG,KAAK,GAAG,IAAI,EAChC,iBAAiB,EACjB,6BAA6B,CAAC,CAAC;AACnC,CAAC;AAED,4DAA4D;AAC5D,sBAAsB,CACpB,IAAI,EACJ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;AACtD,sBAAsB,CACpB,SAAS,EACT,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC;AACtD,sBAAsB,CACpB,eAAe,EACf,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;AAC5D,sBAAsB,CACpB,YAAY,EACZ,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC;AACzD,sBAAsB,CACpB,mCAAmC,EACnC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAChF,sBAAsB,CACpB,OAAO,EACP,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACvD,sBAAsB,CACpB,MAAM,EACN,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/external-queries.test.js b/lib/external-queries.test.js index 43267c4d8..09801c5c2 100644 --- a/lib/external-queries.test.js +++ b/lib/external-queries.test.js @@ -15,7 +15,9 @@ const fs = __importStar(require("fs")); const path = __importStar(require("path")); const configUtils = __importStar(require("./config-utils")); const externalQueries = __importStar(require("./external-queries")); +const testing_utils_1 = require("./testing-utils"); const util = __importStar(require("./util")); +testing_utils_1.silenceDebugOutput(ava_1.default); ava_1.default("checkoutExternalQueries", async (t) => { let config = new configUtils.Config(); config.externalQueries = [ diff --git a/lib/external-queries.test.js.map b/lib/external-queries.test.js.map index 0013ce496..e7713e6a4 100644 --- a/lib/external-queries.test.js.map +++ b/lib/external-queries.test.js.map @@ -1 +1 @@ -{"version":3,"file":"external-queries.test.js","sourceRoot":"","sources":["../src/external-queries.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,6CAA+B;AAE/B,aAAI,CAAC,yBAAyB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACtC,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,GAAG;QACrB,IAAI,WAAW,CAAC,aAAa,CAAC,kBAAkB,EAAE,0CAA0C,CAAC;KAChG,CAAC;IAEF,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QACjC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACpC,MAAM,eAAe,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAEtD,uFAAuF;QACvF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"external-queries.test.js","sourceRoot":"","sources":["../src/external-queries.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,mDAAmD;AACnD,6CAA+B;AAE/B,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,yBAAyB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACtC,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,GAAG;QACrB,IAAI,WAAW,CAAC,aAAa,CAAC,kBAAkB,EAAE,0CAA0C,CAAC;KAChG,CAAC;IAEF,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QACjC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACpC,MAAM,eAAe,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAEtD,uFAAuF;QACvF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/fingerprints.test.js b/lib/fingerprints.test.js index 994a50d52..71f0005e3 100644 --- a/lib/fingerprints.test.js +++ b/lib/fingerprints.test.js @@ -14,6 +14,8 @@ const ava_1 = __importDefault(require("ava")); const fs = __importStar(require("fs")); const path = __importStar(require("path")); const fingerprints = __importStar(require("./fingerprints")); +const testing_utils_1 = require("./testing-utils"); +testing_utils_1.silenceDebugOutput(ava_1.default); function testHash(t, input, expectedHashes) { let index = 0; let callback = function (lineNumber, hash) { diff --git a/lib/fingerprints.test.js.map b/lib/fingerprints.test.js.map index 5b6be9640..20c7d98e0 100644 --- a/lib/fingerprints.test.js.map +++ b/lib/fingerprints.test.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.test.js","sourceRoot":"","sources":["../src/fingerprints.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,uCAAyB;AACzB,2CAA6B;AAE7B,6DAA+C;AAE/C,SAAS,QAAQ,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AAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEhD,yEAAyE;IACzE,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,kBAAkB,CAAC,CAAC;IAEjF,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IACvB,wCAAwC;IACxC,IAAI,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,8CAA8C,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnG,IAAI,QAAQ,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,iDAAiD,CAAC,CAAC,QAAQ,EAAE,CAAC;IAEzG,mFAAmF;IACnF,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEhD,yEAAyE;IACzE,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,kBAAkB,CAAC,CAAC;IAEjF,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC/D,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/test-utils.js b/lib/test-utils.js new file mode 100644 index 000000000..ae445ea53 --- /dev/null +++ b/lib/test-utils.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function silenceDebugOutput(test) { + const typedTest = test; + typedTest.beforeEach(t => { + const processStdoutWrite = process.stdout.write.bind(process.stdout); + t.context.write = processStdoutWrite; + process.stdout.write = (str, encoding, cb) => { + // Core library will directly call process.stdout.write for commands + // We don't want :: commands to be executed by the runner during tests + if (!str.match(/^::/)) { + processStdoutWrite(str, encoding, cb); + } + return true; + }; + }); + typedTest.afterEach(t => { + process.stdout.write = t.context.write; + }); +} +exports.silenceDebugOutput = silenceDebugOutput; +//# sourceMappingURL=test-utils.js.map \ No newline at end of file diff --git a/lib/test-utils.js.map b/lib/test-utils.js.map new file mode 100644 index 000000000..e98f441b5 --- /dev/null +++ b/lib/test-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"test-utils.js","sourceRoot":"","sources":["../src/test-utils.ts"],"names":[],"mappings":";;AAEA,SAAgB,kBAAkB,CAAC,IAAwB;IACzD,MAAM,SAAS,GAAG,IAAmC,CAAC;IAEtD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACrB,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC;QACrC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,GAAQ,EAAE,QAAc,EAAE,EAA0B,EAAE,EAAE;YAC5E,oEAAoE;YACpE,sEAAsE;YACtE,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;gBACnB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;aACzC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAnBD,gDAmBC"} \ No newline at end of file diff --git a/lib/testing-utils.js b/lib/testing-utils.js new file mode 100644 index 000000000..a62485252 --- /dev/null +++ b/lib/testing-utils.js @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +function silenceDebugOutput(test) { + const typedTest = test; + typedTest.beforeEach(t => { + const processStdoutWrite = process.stdout.write.bind(process.stdout); + t.context.write = processStdoutWrite; + process.stdout.write = (str, encoding, cb) => { + // Core library will directly call process.stdout.write for commands + // We don't want :: commands to be executed by the runner during tests + if (typeof str === "string") { + str = str.replace(/::(info|debug|warning).*/, ''); + if (str.trim() !== "") { + processStdoutWrite(str, encoding, cb); + } + } + else { + processStdoutWrite(str, encoding, cb); + } + return true; + }; + }); + typedTest.afterEach(t => { + process.stdout.write = t.context.write; + }); +} +exports.silenceDebugOutput = silenceDebugOutput; +//# sourceMappingURL=testing-utils.js.map \ No newline at end of file diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map new file mode 100644 index 000000000..5415cb0aa --- /dev/null +++ b/lib/testing-utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAEA,SAAgB,kBAAkB,CAAC,IAAwB;IACzD,MAAM,SAAS,GAAG,IAAmC,CAAC;IAEtD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACrB,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC;QACrC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,GAAwB,EAAE,QAAc,EAAE,EAA0B,EAAE,EAAE;YAC5F,oEAAoE;YACpE,sEAAsE;YACtE,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;gBAC3B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;gBAClD,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;oBACnB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;iBACzC;aACF;iBAAM;gBACL,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;aACvC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAxBD,gDAwBC"} \ No newline at end of file diff --git a/lib/upload-lib.test.js b/lib/upload-lib.test.js index 4ad4f827a..e43244bfd 100644 --- a/lib/upload-lib.test.js +++ b/lib/upload-lib.test.js @@ -11,7 +11,9 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const ava_1 = __importDefault(require("ava")); +const testing_utils_1 = require("./testing-utils"); const uploadLib = __importStar(require("./upload-lib")); +testing_utils_1.silenceDebugOutput(ava_1.default); ava_1.default('validateSarifFileSchema - valid', t => { const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif'; t.true(uploadLib.validateSarifFileSchema(inputFile)); diff --git a/lib/upload-lib.test.js.map b/lib/upload-lib.test.js.map index 7b509a01b..e9fc93918 100644 --- a/lib/upload-lib.test.js.map +++ b/lib/upload-lib.test.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.test.js","sourceRoot":"","sources":["../src/upload-lib.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,wDAA0C;AAE1C,aAAI,CAAC,iCAAiC,EAAE,CAAC,CAAC,EAAE;IAC1C,MAAM,SAAS,GAAG,SAAS,GAAG,oCAAoC,CAAC;IACnE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,mCAAmC,EAAE,CAAC,CAAC,EAAE;IAC5C,MAAM,SAAS,GAAG,SAAS,GAAG,sCAAsC,CAAC;IACrE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;IACtD,iFAAiF;IACjF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"upload-lib.test.js","sourceRoot":"","sources":["../src/upload-lib.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,mDAAmD;AACnD,wDAA0C;AAE1C,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,iCAAiC,EAAE,CAAC,CAAC,EAAE;IAC1C,MAAM,SAAS,GAAG,SAAS,GAAG,oCAAoC,CAAC;IACnE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,mCAAmC,EAAE,CAAC,CAAC,EAAE;IAC5C,MAAM,SAAS,GAAG,SAAS,GAAG,sCAAsC,CAAC;IACrE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC,CAAC;IACtD,iFAAiF;IACjF,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/analysis-paths.test.ts b/src/analysis-paths.test.ts index 22a21abc9..cdaa80235 100644 --- a/src/analysis-paths.test.ts +++ b/src/analysis-paths.test.ts @@ -2,6 +2,9 @@ import test from 'ava'; import * as analysisPaths from './analysis-paths'; import * as configUtils from './config-utils'; +import {silenceDebugOutput} from './testing-utils'; + +silenceDebugOutput(test); test("emptyPaths", async t => { let config = new configUtils.Config(); diff --git a/src/config-utils.test.ts b/src/config-utils.test.ts index eba499152..71cb266c3 100644 --- a/src/config-utils.test.ts +++ b/src/config-utils.test.ts @@ -3,8 +3,11 @@ import * as fs from 'fs'; import * as path from 'path'; import * as configUtils from './config-utils'; +import {silenceDebugOutput} from './testing-utils'; import * as util from './util'; +silenceDebugOutput(test); + function setInput(name: string, value: string | undefined) { // Transformation copied from // https://github.com/actions/toolkit/blob/05e39f551d33e1688f61b209ab5cdd335198f1b8/packages/core/src/core.ts#L69 diff --git a/src/external-queries.test.ts b/src/external-queries.test.ts index 255fab619..f85ec528c 100644 --- a/src/external-queries.test.ts +++ b/src/external-queries.test.ts @@ -4,8 +4,11 @@ import * as path from "path"; import * as configUtils from "./config-utils"; import * as externalQueries from "./external-queries"; +import {silenceDebugOutput} from './testing-utils'; import * as util from "./util"; +silenceDebugOutput(test); + test("checkoutExternalQueries", async t => { let config = new configUtils.Config(); config.externalQueries = [ diff --git a/src/fingerprints.test.ts b/src/fingerprints.test.ts index 327bb1dd3..8786a0b81 100644 --- a/src/fingerprints.test.ts +++ b/src/fingerprints.test.ts @@ -4,6 +4,9 @@ import * as fs from 'fs'; import * as path from 'path'; import * as fingerprints from './fingerprints'; +import {silenceDebugOutput} from './testing-utils'; + +silenceDebugOutput(test); function testHash(t: ava.Assertions, input: string, expectedHashes: string[]) { let index = 0; diff --git a/src/testing-utils.ts b/src/testing-utils.ts new file mode 100644 index 000000000..48845d6f8 --- /dev/null +++ b/src/testing-utils.ts @@ -0,0 +1,27 @@ +import {TestInterface} from 'ava'; + +export function silenceDebugOutput(test: TestInterface) { + const typedTest = test as TestInterface<{write: any}>; + + typedTest.beforeEach(t => { + const processStdoutWrite = process.stdout.write.bind(process.stdout); + t.context.write = processStdoutWrite; + process.stdout.write = (str: Uint8Array | string, encoding?: any, cb?: (err?: Error) => void) => { + // Core library will directly call process.stdout.write for commands + // We don't want debug output to be included in tests + if (typeof str === "string") { + str = str.replace(/::(info|debug|warning).*/, ''); + if (str.trim() !== "") { + processStdoutWrite(str, encoding, cb); + } + } else { + processStdoutWrite(str, encoding, cb); + } + return true; + }; + }); + + typedTest.afterEach(t => { + process.stdout.write = t.context.write; + }); +} diff --git a/src/upload-lib.test.ts b/src/upload-lib.test.ts index 3aeafce13..d257c923f 100644 --- a/src/upload-lib.test.ts +++ b/src/upload-lib.test.ts @@ -1,7 +1,10 @@ import test from 'ava'; +import {silenceDebugOutput} from './testing-utils'; import * as uploadLib from './upload-lib'; +silenceDebugOutput(test); + test('validateSarifFileSchema - valid', t => { const inputFile = __dirname + '/../src/testdata/valid-sarif.sarif'; t.true(uploadLib.validateSarifFileSchema(inputFile)); From 8622312249629d3ca06091732971bc6302b55513 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Mon, 22 Jun 2020 17:20:29 +0100 Subject: [PATCH 08/38] Update JavaScript with newer comment --- lib/testing-utils.js | 2 +- lib/testing-utils.js.map | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/testing-utils.js b/lib/testing-utils.js index a62485252..e926c8bda 100644 --- a/lib/testing-utils.js +++ b/lib/testing-utils.js @@ -7,7 +7,7 @@ function silenceDebugOutput(test) { t.context.write = processStdoutWrite; process.stdout.write = (str, encoding, cb) => { // Core library will directly call process.stdout.write for commands - // We don't want :: commands to be executed by the runner during tests + // We don't want debug output to be included in tests if (typeof str === "string") { str = str.replace(/::(info|debug|warning).*/, ''); if (str.trim() !== "") { diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index 5415cb0aa..2a311a1bf 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAEA,SAAgB,kBAAkB,CAAC,IAAwB;IACzD,MAAM,SAAS,GAAG,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AAC,CAAC,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC;QACrC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,GAAwB,EAAE,QAAc,EAAE,EAA0B,EAAE,EAAE;YAC5F,oEAAoE;YACpE,qDAAqD;YACrD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;gBAC3B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;gBAClD,IAAI,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;oBACnB,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;iBACzC;aACF;iBAAM;gBACL,kBAAkB,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;aACvC;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC;IACN,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE;QACpB,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3C,CAAC,CAAC,CAAC;AACL,CAAC;AAxBD,gDAwBC"} \ No newline at end of file From bcb5b289543066b98bd8bf6e0f9ffe5bc05e6b6e Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 18:55:20 +0200 Subject: [PATCH 09/38] format code --- lib/util.js.map | 2 +- lib/util.test.js.map | 2 +- src/util.test.ts | 30 +++++++++++++------------- src/util.ts | 50 ++++++++++++++++++++++---------------------- 4 files changed, 42 insertions(+), 42 deletions(-) diff --git a/lib/util.js.map b/lib/util.js.map index a143abb96..fbd81934e 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAk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AAI,gBAAgB,EAAE;QAClB,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,UAAU,GAAG,CAAC,EAAE;YAC5C,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAChF;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YACzB,UAAU,GAAG,UAAU,CAAC;SAC3B;KACJ;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACrC,CAAC;AAdD,wCAcC"} \ No newline at end of file diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 2aac5e0ef..89907ee1b 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,6CAA+B;AAE/B,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EAAE;IAE/D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAE3D,MAAM,KAAK,GAAG;QACV,EAAE,EAAE,SAAS,QAAQ,G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3616a 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -15,23 +15,23 @@ test('getMemoryFlag() should return the correct --ram flag', t => { const totalMem = Math.floor(os.totalmem() / (1024 * 1024)); const tests = { - "": `--ram=${totalMem - 256}`, - "512": "--ram=512", + "": `--ram=${totalMem - 256}`, + "512": "--ram=512", }; for (const [input, expectedFlag] of Object.entries(tests)) { - process.env['INPUT_RAM'] = input; + process.env['INPUT_RAM'] = input; - const flag = util.getMemoryFlag(); - t.deepEqual(flag, expectedFlag); + const flag = util.getMemoryFlag(); + t.deepEqual(flag, expectedFlag); } }); test('getMemoryFlag() throws if the ram input is < 0 or NaN', t => { for (const input of ["-1", "hello!"]) { - process.env['INPUT_RAM'] = input; - t.throws(util.getMemoryFlag); + process.env['INPUT_RAM'] = input; + t.throws(util.getMemoryFlag); } }); @@ -40,23 +40,23 @@ test('getThreadsFlag() should return the correct --threads flag', t => { const numCpus = os.cpus().length; const tests = { - "0": "--threads=0", - "1": "--threads=1", - [`${numCpus + 1}`]: `--threads=${numCpus}` + "0": "--threads=0", + "1": "--threads=1", + [`${numCpus + 1}`]: `--threads=${numCpus}` }; for (const [input, expectedFlag] of Object.entries(tests)) { - process.env['INPUT_THREADS'] = input; + process.env['INPUT_THREADS'] = input; - const flag = util.getThreadsFlag(); - t.deepEqual(flag, expectedFlag); + const flag = util.getThreadsFlag(); + t.deepEqual(flag, expectedFlag); } }); test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { for (const input of ["-1", "hello!"]) { - process.env['INPUT_THREADS'] = input; - t.throws(util.getThreadsFlag); + process.env['INPUT_THREADS'] = input; + t.throws(util.getThreadsFlag); } }); diff --git a/src/util.ts b/src/util.ts index 250f05e93..c2574aefe 100644 --- a/src/util.ts +++ b/src/util.ts @@ -404,37 +404,37 @@ export function getMemoryFlag(): string { let memoryToUseMegaBytes: number; const memoryToUseString = core.getInput("ram"); if (memoryToUseString) { - memoryToUseMegaBytes = Number(memoryToUseString); - if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { - throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); - } + memoryToUseMegaBytes = Number(memoryToUseString); + if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { + throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); + } } else { - const totalMemoryBytes = os.totalmem(); - const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); - const systemReservedMemoryMegaBytes = 256; - memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; + const totalMemoryBytes = os.totalmem(); + const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); + const systemReservedMemoryMegaBytes = 256; + memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; } return "--ram=" + Math.floor(memoryToUseMegaBytes); - } - - /** - * Get the value specified for the `threads` input. The value defaults to 1. - * The value will be capped to the number of available CPUs. - * - * @returns string - */ +} + +/** + * Get the value specified for the `threads` input. The value defaults to 1. + * The value will be capped to the number of available CPUs. + * + * @returns string + */ export function getThreadsFlag(): string { let numThreads = 1; const numThreadsString = core.getInput("threads"); if (numThreadsString) { - numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads) || numThreads < 0) { - throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); - } - const maxThreads = os.cpus().length; - if (numThreads > maxThreads) { - numThreads = maxThreads; - } + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads) || numThreads < 0) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } } return `--threads=${numThreads}`; - } +} From 31996935e657567ff07d21cc6199e3d8ff7214ea Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Mon, 22 Jun 2020 21:39:09 +0200 Subject: [PATCH 10/38] reformat code and allow negative values for threads --- lib/finalize-db.js.map | 2 +- lib/util.js | 14 +++++++++----- lib/util.js.map | 2 +- lib/util.test.js | 5 +++-- lib/util.test.js.map | 2 +- src/finalize-db.ts | 20 ++++++++++---------- src/util.test.ts | 5 +++-- src/util.ts | 14 +++++++++----- 8 files changed, 37 insertions(+), 27 deletions(-) diff --git a/lib/finalize-db.js.map b/lib/finalize-db.js.map index 862f89889..efbd0f997 100644 --- a/lib/finalize-db.js.map +++ b/lib/finalize-db.js.map @@ -1 +1 @@ -{"version":3,"file":"finalize-db.js","sourceRoot":"","sources":["../src/finalize-db.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,gEAAkD;AAClD,yDAA2C;AAC3C,6CAA+B;AAE/B;;;;;;;;GAQG;AACH,MAAM,wBAAwB,GAAsC;IAClE,QAAQ,EAAE;QACR,uDAAuD;QACvD,0DAA0D;KAC3D;CACF,CAAC;AAEF,SAAS,eAAe,CAAC,QAAQ,EAAE,KAAK;IACtC,OAAO,CAAC,wBAAwB,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;SAC9C,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,KAAK,UAAU,4BAA4B,CAAC,SAAiB,EAAE,cAAsB;IACnF,MAAM,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,+BAA+B,CAAC,CAAC;IAChF,IAAI,gBAAgB,EAAE;QACpB,KAAK,MAAM,QAAQ,IAAI,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YAClD,IAAI,CAAC,UAAU,CAAC,aAAa,GAAG,QAAQ,CAAC,CAAC;YAE1C,yBAAyB;YACzB,IAAI,aAAa,GAAG,EAAE,CAAC;YACvB,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,EAAE,WAAW,EA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;AAC7C,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,yBAAyB,GAAG,CAAC,CAAC,CAAC;IAC9C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index 53e476b64..f200754ba 100644 --- a/lib/util.js +++ b/lib/util.js @@ -355,8 +355,8 @@ async function withTmpDir(body) { } exports.withTmpDir = withTmpDir; /** - * Get the value specified for the `ram` input. If no value was specified, the - * total available memory will be used minus 256 MB. + * Get the codeql `--ram` flag as configured by the `ram` input. If no value was + * specified, the total available memory will be used minus 256 MB. * * @returns string */ @@ -379,8 +379,8 @@ function getMemoryFlag() { } exports.getMemoryFlag = getMemoryFlag; /** - * Get the value specified for the `threads` input. The value defaults to 1. - * The value will be capped to the number of available CPUs. + * Get the codeql `--threads` value specified for the `threads` input. The value + * defaults to 1. The value will be capped to the number of available CPUs. * * @returns string */ @@ -389,13 +389,17 @@ function getThreadsFlag() { const numThreadsString = core.getInput("threads"); if (numThreadsString) { numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads) || numThreads < 0) { + if (Number.isNaN(numThreads)) { throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); } const maxThreads = os.cpus().length; if (numThreads > maxThreads) { numThreads = maxThreads; } + const minThreads = -maxThreads; + if (numThreads < minThreads) { + numThreads = minThreads; + } } return `--threads=${numThreads}`; } diff --git a/lib/util.js.map b/lib/util.js.map index fbd81934e..650954e6a 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6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ACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAChF;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YACzB,UAAU,GAAG,UAAU,CAAC;SAC3B;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YACzB,UAAU,GAAG,UAAU,CAAC;SAC3B;KACJ;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACrC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index dd691aeea..4301ce477 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -42,7 +42,8 @@ ava_1.default('getThreadsFlag() should return the correct --threads flag', t => const tests = { "0": "--threads=0", "1": "--threads=1", - [`${numCpus + 1}`]: `--threads=${numCpus}` + [`${numCpus + 1}`]: `--threads=${numCpus}`, + [`${-numCpus - 1}`]: `--threads=${-numCpus}` }; for (const [input, expectedFlag] of Object.entries(tests)) { process.env['INPUT_THREADS'] = input; @@ -51,7 +52,7 @@ ava_1.default('getThreadsFlag() should return the correct --threads flag', t => } }); ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { + for (const input of ["hello!"]) { process.env['INPUT_THREADS'] = input; t.throws(util.getThreadsFlag); } diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 89907ee1b..4cb6bddce 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,6CAA+B;AAE/B,aAAI,CAAC,cAAc,EA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AAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEzD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACjC;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IACjE,KAAK,MAAM,KAAK,IAAI,CAAC,QAAQ,CAAC,EAAE;QAC9B,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KAC/B;AACH,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/finalize-db.ts b/src/finalize-db.ts index b3a406011..f1ca1d5ea 100644 --- a/src/finalize-db.ts +++ b/src/finalize-db.ts @@ -19,7 +19,7 @@ import * as util from './util'; * * Format is a map from language to an array of path suffixes of .ql files. */ -const DISABLED_BUILTIN_QUERIES: { [language: string]: string[]; } = { +const DISABLED_BUILTIN_QUERIES: {[language: string]: string[]} = { 'csharp': [ 'ql/src/Security Features/CWE-937/VulnerablePackage.ql', 'ql/src/Security Features/CWE-451/MissingXFrameOptions.ql', @@ -75,14 +75,14 @@ async function finalizeDatabaseCreation(codeqlCmd: string, databaseFolder: strin interface ResolveQueriesOutput { byLanguage: { [language: string]: { - [queryPath: string]: {}; - }; + [queryPath: string]: {} + } }; noDeclaredLanguage: { - [queryPath: string]: {}; + [queryPath: string]: {} }; multipleDeclaredLanguages: { - [queryPath: string]: {}; + [queryPath: string]: {} }; } @@ -98,11 +98,11 @@ async function runResolveQueries(codeqlCmd: string, queries: string[]): Promise< await exec.exec( codeqlCmd, [ - 'resolve', - 'queries', - ...queries, - '--format=bylanguage' - ], + 'resolve', + 'queries', + ...queries, + '--format=bylanguage' + ], options); return JSON.parse(output); diff --git a/src/util.test.ts b/src/util.test.ts index b0bf3616a..ada6afb26 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -42,7 +42,8 @@ test('getThreadsFlag() should return the correct --threads flag', t => { const tests = { "0": "--threads=0", "1": "--threads=1", - [`${numCpus + 1}`]: `--threads=${numCpus}` + [`${numCpus + 1}`]: `--threads=${numCpus}`, + [`${-numCpus - 1}`]: `--threads=${-numCpus}` }; for (const [input, expectedFlag] of Object.entries(tests)) { @@ -55,7 +56,7 @@ test('getThreadsFlag() should return the correct --threads flag', t => { }); test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["-1", "hello!"]) { + for (const input of ["hello!"]) { process.env['INPUT_THREADS'] = input; t.throws(util.getThreadsFlag); } diff --git a/src/util.ts b/src/util.ts index c2574aefe..eb62441a1 100644 --- a/src/util.ts +++ b/src/util.ts @@ -395,8 +395,8 @@ export async function withTmpDir(body: (tmpDir: string) => Promise): Promi } /** - * Get the value specified for the `ram` input. If no value was specified, the - * total available memory will be used minus 256 MB. + * Get the codeql `--ram` flag as configured by the `ram` input. If no value was + * specified, the total available memory will be used minus 256 MB. * * @returns string */ @@ -418,8 +418,8 @@ export function getMemoryFlag(): string { } /** - * Get the value specified for the `threads` input. The value defaults to 1. - * The value will be capped to the number of available CPUs. + * Get the codeql `--threads` value specified for the `threads` input. The value + * defaults to 1. The value will be capped to the number of available CPUs. * * @returns string */ @@ -428,13 +428,17 @@ export function getThreadsFlag(): string { const numThreadsString = core.getInput("threads"); if (numThreadsString) { numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads) || numThreads < 0) { + if (Number.isNaN(numThreads)) { throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); } const maxThreads = os.cpus().length; if (numThreads > maxThreads) { numThreads = maxThreads; } + const minThreads = -maxThreads; + if (numThreads < minThreads) { + numThreads = minThreads; + } } return `--threads=${numThreads}`; } From 6d413dd723279e5df7e5374ef22b4047e3fe35d9 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Tue, 23 Jun 2020 10:08:23 +0100 Subject: [PATCH 11/38] Update release branch script as main branch is now "main". See https://github.com/github/dsp-code-scanning/issues/1457 --- .github/update-release-branch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 2297ee596..9476fd9df 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -7,7 +7,7 @@ # The branch being merged from. # This is the one that contains day-to-day development work. -MASTER_BRANCH = 'master' +MASTER_BRANCH = 'main' # The branch being merged into. # This is the release branch that users reference. LATEST_RELEASE_BRANCH = 'v1' From 1ce7f98898acb5fb2378dd19b2828a7a58a34e64 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Tue, 23 Jun 2020 10:10:23 +0100 Subject: [PATCH 12/38] Update other references to master in release script --- .github/update-release-branch.py | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/update-release-branch.py b/.github/update-release-branch.py index 9476fd9df..14065c118 100644 --- a/.github/update-release-branch.py +++ b/.github/update-release-branch.py @@ -7,7 +7,7 @@ # The branch being merged from. # This is the one that contains day-to-day development work. -MASTER_BRANCH = 'main' +MAIN_BRANCH = 'main' # The branch being merged into. # This is the release branch that users reference. LATEST_RELEASE_BRANCH = 'v1' @@ -28,7 +28,7 @@ def branch_exists_on_remote(branch_name): return run_git('ls-remote', '--heads', ORIGIN, branch_name).strip() != '' # Opens a PR from the given branch to the release branch -def open_pr(repo, all_commits, short_master_sha, branch_name): +def open_pr(repo, all_commits, short_main_sha, branch_name): # Sort the commits into the pull requests that introduced them, # and any commits that don't have a pull request pull_requests = [] @@ -49,7 +49,7 @@ def open_pr(repo, all_commits, short_master_sha, branch_name): sorted(commits_without_pull_requests, key=lambda c: c.commit.author.date) # Start constructing the body text - body = 'Merging ' + short_master_sha + ' into ' + LATEST_RELEASE_BRANCH + body = 'Merging ' + short_main_sha + ' into ' + LATEST_RELEASE_BRANCH conductor = get_conductor(repo, pull_requests, commits_without_pull_requests) body += '\n\nConductor for this PR is @' + conductor @@ -71,7 +71,7 @@ def open_pr(repo, all_commits, short_master_sha, branch_name): body += ' - ' + get_truncated_commit_message(commit) body += ' (@' + commit.author.login + ')' - title = 'Merge ' + MASTER_BRANCH + ' into ' + LATEST_RELEASE_BRANCH + title = 'Merge ' + MAIN_BRANCH + ' into ' + LATEST_RELEASE_BRANCH # Create the pull request pr = repo.create_pull(title=title, body=body, head=branch_name, base=LATEST_RELEASE_BRANCH) @@ -90,12 +90,12 @@ def get_conductor(repo, pull_requests, other_commits): # Otherwise take the author of the latest commit return other_commits[-1].author.login -# Gets a list of the SHAs of all commits that have happened on master +# Gets a list of the SHAs of all commits that have happened on main # since the release branched off. # This will not include any commits that exist on the release branch -# that aren't on master. +# that aren't on main. def get_commit_difference(repo): - commits = run_git('log', '--pretty=format:%H', ORIGIN + '/' + LATEST_RELEASE_BRANCH + '...' + MASTER_BRANCH).strip().split('\n') + commits = run_git('log', '--pretty=format:%H', ORIGIN + '/' + LATEST_RELEASE_BRANCH + '...' + MAIN_BRANCH).strip().split('\n') # Convert to full-fledged commit objects commits = [repo.get_commit(c) for c in commits] @@ -115,7 +115,7 @@ def get_truncated_commit_message(commit): else: return message -# Converts a commit into the PR that introduced it to the master branch. +# Converts a commit into the PR that introduced it to the main branch. # Returns the PR object, or None if no PR could be found. def get_pr_for_commit(repo, commit): prs = commit.get_pulls() @@ -144,20 +144,20 @@ def main(): repo = Github(github_token).get_repo(repository_nwo) # Print what we intend to go - print('Considering difference between ' + MASTER_BRANCH + ' and ' + LATEST_RELEASE_BRANCH) - short_master_sha = run_git('rev-parse', '--short', MASTER_BRANCH).strip() - print('Current head of ' + MASTER_BRANCH + ' is ' + short_master_sha) + print('Considering difference between ' + MAIN_BRANCH + ' and ' + LATEST_RELEASE_BRANCH) + short_main_sha = run_git('rev-parse', '--short', MAIN_BRANCH).strip() + print('Current head of ' + MAIN_BRANCH + ' is ' + short_main_sha) # See if there are any commits to merge in commits = get_commit_difference(repo) if len(commits) == 0: - print('No commits to merge from ' + MASTER_BRANCH + ' to ' + LATEST_RELEASE_BRANCH) + print('No commits to merge from ' + MAIN_BRANCH + ' to ' + LATEST_RELEASE_BRANCH) return # The branch name is based off of the name of branch being merged into # and the SHA of the branch being merged from. Thus if the branch already # exists we can assume we don't need to recreate it. - new_branch_name = 'update-' + LATEST_RELEASE_BRANCH + '-' + short_master_sha + new_branch_name = 'update-' + LATEST_RELEASE_BRANCH + '-' + short_main_sha print('Branch name is ' + new_branch_name) # Check if the branch already exists. If so we can abort as this script @@ -168,11 +168,11 @@ def main(): # Create the new branch and push it to the remote print('Creating branch ' + new_branch_name) - run_git('checkout', '-b', new_branch_name, MASTER_BRANCH) + run_git('checkout', '-b', new_branch_name, MAIN_BRANCH) run_git('push', ORIGIN, new_branch_name) # Open a PR to update the branch - open_pr(repo, commits, short_master_sha, new_branch_name) + open_pr(repo, commits, short_main_sha, new_branch_name) if __name__ == '__main__': main() From a30a5ba7888e7d66e2778d1d6c05913993fe2183 Mon Sep 17 00:00:00 2001 From: Sam Partington Date: Tue, 23 Jun 2020 13:59:58 +0100 Subject: [PATCH 13/38] Add silencing to additional test files https://github.com/github/codeql-action/pull/75#issuecomment-648104201 --- src/setup-tools.test.ts | 3 +++ src/util.test.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/setup-tools.test.ts b/src/setup-tools.test.ts index 96680b339..a9cdde407 100644 --- a/src/setup-tools.test.ts +++ b/src/setup-tools.test.ts @@ -4,8 +4,11 @@ import nock from 'nock'; import * as path from 'path'; import * as setupTools from './setup-tools'; +import {silenceDebugOutput} from './testing-utils'; import * as util from './util'; +silenceDebugOutput(test); + test('download codeql bundle cache', async t => { await util.withTmpDir(async tmpDir => { diff --git a/src/util.test.ts b/src/util.test.ts index e530b2aca..83b9ba116 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -1,8 +1,11 @@ import test from 'ava'; import * as fs from 'fs'; +import {silenceDebugOutput} from './testing-utils'; import * as util from './util'; +silenceDebugOutput(test); + test('getToolNames', t => { const input = fs.readFileSync(__dirname + '/../src/testdata/tool-names.sarif', 'utf8'); const toolNames = util.getToolNames(input); From 56f06c77fd577f01006076a5351f11058d3c5e1d Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 13:24:41 +0100 Subject: [PATCH 14/38] add calls --- lib/setup-tools.test.js | 2 ++ lib/setup-tools.test.js.map | 2 +- lib/util.test.js | 2 ++ lib/util.test.js.map | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/setup-tools.test.js b/lib/setup-tools.test.js index 183ec989a..a179641b1 100644 --- a/lib/setup-tools.test.js +++ b/lib/setup-tools.test.js @@ -15,7 +15,9 @@ const ava_1 = __importDefault(require("ava")); const nock_1 = __importDefault(require("nock")); const path = __importStar(require("path")); const setupTools = __importStar(require("./setup-tools")); +const testing_utils_1 = require("./testing-utils"); const util = __importStar(require("./util")); +testing_utils_1.silenceDebugOutput(ava_1.default); ava_1.default('download codeql bundle cache', async (t) => { await util.withTmpDir(async (tmpDir) => { process.env['GITHUB_WORKSPACE'] = tmpDir; diff --git a/lib/setup-tools.test.js.map b/lib/setup-tools.test.js.map index 079d93c48..7192fa280 100644 --- a/lib/setup-tools.test.js.map +++ b/lib/setup-tools.test.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tools.test.js","sourceRoot":"","sources":["../src/setup-tools.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAiD;AACjD,8CAAuB;AACvB,gDAAwB;AACxB,2CAA6B;AAE7B,0DAA4C;AAC5C,6CAA+B;AAE/B,aAAI,CAAC,8BAA8B,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAE3C,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QAEjC,OAAO,CAAC,GAAG,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SAC/C;QAAC,OAAO,CAAC,EAAE;YACR,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SACrB;KACJ;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index e0b879b30..12f678e3b 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -12,7 +12,9 @@ var __importStar = (this && this.__importStar) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); const ava_1 = __importDefault(require("ava")); const fs = __importStar(require("fs")); +const testing_utils_1 = require("./testing-utils"); const util = __importStar(require("./util")); +testing_utils_1.silenceDebugOutput(ava_1.default); ava_1.default('getToolNames', t => { const input = fs.readFileSync(__dirname + '/../src/testdata/tool-names.sarif', 'utf8'); const toolNames = util.getToolNames(input); diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 798e8f413..7b0a2e60a 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,6CAA+B;AAE/B,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AAEzB,mDAAmD;AACnD,6CAA+B;AAE/B,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC"} \ No newline at end of file From 66be268a094e01d028837d624d8b09ea1ad3e4b6 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 13:42:43 +0100 Subject: [PATCH 15/38] run verbose --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 752860cb9..0f0a03870 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "CodeQL action", "scripts": { "build": "tsc", - "test": "ava src/** --serial", + "test": "ava src/** --serial --verbose", "lint": "tslint -p . -c tslint.json 'src/**/*.ts'", "removeNPMAbsolutePaths": "removeNPMAbsolutePaths . --force" }, From 02776246bfd05400520c3ab682246e24576c8366 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 14:33:20 +0100 Subject: [PATCH 16/38] Only output on failing tests --- lib/testing-utils.js | 37 +++++++++++++++++---------------- lib/testing-utils.js.map | 2 +- src/testing-utils.ts | 44 ++++++++++++++++++++++++---------------- 3 files changed, 48 insertions(+), 35 deletions(-) diff --git a/lib/testing-utils.js b/lib/testing-utils.js index e926c8bda..e1659282a 100644 --- a/lib/testing-utils.js +++ b/lib/testing-utils.js @@ -1,27 +1,30 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +function wrapOutput(context) { + return (str) => { + if (typeof str === 'string') { + context.testOutput += str; + } + return true; + }; +} function silenceDebugOutput(test) { const typedTest = test; typedTest.beforeEach(t => { + t.context.testOutput = ""; const processStdoutWrite = process.stdout.write.bind(process.stdout); - t.context.write = processStdoutWrite; - process.stdout.write = (str, encoding, cb) => { - // Core library will directly call process.stdout.write for commands - // We don't want debug output to be included in tests - if (typeof str === "string") { - str = str.replace(/::(info|debug|warning).*/, ''); - if (str.trim() !== "") { - processStdoutWrite(str, encoding, cb); - } - } - else { - processStdoutWrite(str, encoding, cb); - } - return true; - }; + t.context.stdoutWrite = processStdoutWrite; + process.stdout.write = wrapOutput(t.context); + const processStderrWrite = process.stderr.write.bind(process.stderr); + t.context.stderrWrite = processStderrWrite; + process.stderr.write = wrapOutput(t.context); }); - typedTest.afterEach(t => { - process.stdout.write = t.context.write; + typedTest.afterEach.always(t => { + process.stdout.write = t.context.stdoutWrite; + process.stderr.write = t.context.stderrWrite; + if (!t.passed) { + process.stdout.write(t.context.testOutput); + } }); } exports.silenceDebugOutput = silenceDebugOutput; diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index 2a311a1bf..32f83dd30 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAEA,SAAgB,kBAAkB,CAAC,IAAwB;IACzD,MAAM,SAAS,GAAG,IAAmC,CAAC;IAEtD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACrB,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,KAAK,GAAG,kBAAkB,CAAC;QACrC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,GAAwB,EAAE,QAAc,EAAE,EAA0B,EAAE,EAAE;YAC5F,oEAAoE;YACpE,qDAAqD;YACrD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;gBAC3B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,0BAA0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,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;QAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAE7C,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;YACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC5C;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/src/testing-utils.ts b/src/testing-utils.ts index 48845d6f8..3605ba8d5 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -1,27 +1,37 @@ import {TestInterface} from 'ava'; +type TestContext = {stdoutWrite: any, stderrWrite: any, testOutput: string}; + +function wrapOutput(context: TestContext) { + return (str: any): boolean => { + if (typeof str === 'string') { + context.testOutput += str; + } + return true; + } +} + export function silenceDebugOutput(test: TestInterface) { - const typedTest = test as TestInterface<{write: any}>; + const typedTest = test as TestInterface; typedTest.beforeEach(t => { + t.context.testOutput = ""; + const processStdoutWrite = process.stdout.write.bind(process.stdout); - t.context.write = processStdoutWrite; - process.stdout.write = (str: Uint8Array | string, encoding?: any, cb?: (err?: Error) => void) => { - // Core library will directly call process.stdout.write for commands - // We don't want debug output to be included in tests - if (typeof str === "string") { - str = str.replace(/::(info|debug|warning).*/, ''); - if (str.trim() !== "") { - processStdoutWrite(str, encoding, cb); - } - } else { - processStdoutWrite(str, encoding, cb); - } - return true; - }; + t.context.stdoutWrite = processStdoutWrite; + process.stdout.write = wrapOutput(t.context); + + const processStderrWrite = process.stderr.write.bind(process.stderr); + t.context.stderrWrite = processStderrWrite; + process.stderr.write = wrapOutput(t.context); }); - typedTest.afterEach(t => { - process.stdout.write = t.context.write; + typedTest.afterEach.always(t => { + process.stdout.write = t.context.stdoutWrite; + process.stderr.write = t.context.stderrWrite; + + if (!t.passed) { + process.stdout.write(t.context.testOutput); + } }); } From a1d945f14f7de3612e4082105b1a0901039d779f Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 13:31:11 +0100 Subject: [PATCH 17/38] Add a `.editorconfig` with our chosen formatting options. --- .editorconfig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..d416e1c9e --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.ts] +indent_style = space +indent_size = 2 From 350bf488da3b589a8b9781fb796fde48b9ee001a Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 14:42:52 +0100 Subject: [PATCH 18/38] add semicolon --- lib/testing-utils.js.map | 2 +- src/testing-utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index 32f83dd30..a27fa46cb 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAIA,SAAS,UAAU,CAAC,OAAoB;IACtC,OAAO,CAAC,GAAQ,EAAW,EAAE;QAC3B,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3B,OAAO,CAAC,UAAU,IAAI,GAAG,CAAC;SAC3B;QACD,OAA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,CAAC;SAC5C;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/src/testing-utils.ts b/src/testing-utils.ts index 3605ba8d5..2a72b6034 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -8,7 +8,7 @@ function wrapOutput(context: TestContext) { context.testOutput += str; } return true; - } + }; } export function silenceDebugOutput(test: TestInterface) { From 211ad30f72e6e28bd254eb49c9209b72058acb91 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 14:19:51 +0100 Subject: [PATCH 19/38] Update TSLint configuration to detect bad indentation. --- node_modules/doctrine/LICENSE.BSD | 19 + .../doctrine/LICENSE.closure-compiler | 202 +++ node_modules/doctrine/LICENSE.esprima | 19 + node_modules/doctrine/README.md | 174 ++ node_modules/doctrine/lib/doctrine.js | 833 ++++++++++ node_modules/doctrine/lib/typed.js | 1261 +++++++++++++++ node_modules/doctrine/lib/utility.js | 54 + .../doctrine/node_modules/esutils/LICENSE.BSD | 19 + .../doctrine/node_modules/esutils/README.md | 169 ++ .../doctrine/node_modules/esutils/lib/ast.js | 144 ++ .../doctrine/node_modules/esutils/lib/code.js | 101 ++ .../node_modules/esutils/lib/keyword.js | 137 ++ .../node_modules/esutils/lib/utils.js | 33 + .../node_modules/esutils/package.json | 49 + node_modules/doctrine/package.json | 69 + node_modules/isarray/README.md | 54 + node_modules/isarray/build/build.js | 209 +++ node_modules/isarray/component.json | 19 + node_modules/isarray/index.js | 3 + node_modules/isarray/package.json | 29 + node_modules/tslint-eslint-rules/CHANGELOG.md | 398 +++++ node_modules/tslint-eslint-rules/LICENSE | 22 + node_modules/tslint-eslint-rules/README.md | 345 ++++ .../dist/rules/arrayBracketSpacingRule.js | 196 +++ .../dist/rules/blockSpacingRule.js | 58 + .../dist/rules/braceStyleRule.js | 149 ++ .../dist/rules/handleCallbackErrRule.js | 155 ++ .../dist/rules/noConstantConditionRule.js | 116 ++ .../dist/rules/noControlRegexRule.js | 53 + .../dist/rules/noDuplicateCaseRule.js | 46 + .../dist/rules/noEmptyCharacterClassRule.js | 35 + .../dist/rules/noExAssignRule.js | 57 + .../dist/rules/noExtraBooleanCastRule.js | 83 + .../dist/rules/noExtraSemiRule.js | 69 + .../dist/rules/noInnerDeclarationsRule.js | 67 + .../dist/rules/noInvalidRegexpRule.js | 49 + .../dist/rules/noMultiSpacesRule.js | 119 ++ .../dist/rules/noRegexSpacesRule.js | 35 + .../dist/rules/noUnexpectedMultilineRule.js | 91 ++ .../dist/rules/objectCurlySpacingRule.js | 109 ++ .../dist/rules/sortImportsRule.js | 215 +++ .../dist/rules/spaceInParensRule.js | 215 +++ .../dist/rules/terArrowBodyStyleRule.js | 117 ++ .../dist/rules/terArrowParensRule.js | 115 ++ .../dist/rules/terArrowSpacingRule.js | 104 ++ .../rules/terComputedPropertySpacingRule.js | 123 ++ .../dist/rules/terFuncCallSpacingRule.js | 137 ++ .../dist/rules/terIndentRule.js | 915 +++++++++++ .../dist/rules/terMaxLenRule.js | 306 ++++ .../dist/rules/terNewlineAfterVarRule.js | 113 ++ .../rules/terNoIrregularWhitespaceRule.js | 84 + .../dist/rules/terNoMixedSpacesAndTabsRule.js | 115 ++ .../dist/rules/terNoProtoRule.js | 46 + .../dist/rules/terNoScriptUrlRule.js | 48 + .../dist/rules/terNoSelfCompareRule.js | 75 + .../dist/rules/terNoSparseArraysRule.js | 51 + .../dist/rules/terNoTabsRule.js | 43 + .../dist/rules/terPaddedBlocksRule.js | 229 +++ .../dist/rules/terPreferArrowCallbackRule.js | 188 +++ .../dist/rules/validJsdocRule.js | 336 ++++ .../dist/rules/validTypeofRule.js | 47 + .../tslint-eslint-rules/dist/support/token.js | 9 + node_modules/tslint-eslint-rules/index.js | 5 + .../node_modules/tslib/.gitattributes | 1 + .../node_modules/tslib/CopyrightNotice.txt | 15 + .../node_modules/tslib/LICENSE.txt | 55 + .../node_modules/tslib/README.md | 134 ++ .../node_modules/tslib/bower.json | 34 + .../node_modules/tslib/docs/generator.md | 486 ++++++ .../node_modules/tslib/package.json | 28 + .../node_modules/tslib/tslib.d.ts | 33 + .../node_modules/tslib/tslib.es6.html | 1 + .../node_modules/tslib/tslib.es6.js | 178 +++ .../node_modules/tslib/tslib.html | 1 + .../node_modules/tslib/tslib.js | 241 +++ .../node_modules/tsutils/.editorconfig | 12 + .../node_modules/tsutils/.fimbullinter.yaml | 2 + .../node_modules/tsutils/.wotanrc.yaml | 5 + .../node_modules/tsutils/CHANGELOG.md | 741 +++++++++ .../node_modules/tsutils/LICENSE | 21 + .../node_modules/tsutils/README.md | 61 + .../node_modules/tsutils/index.d.ts | 2 + .../node_modules/tsutils/index.js | 5 + .../node_modules/tsutils/package.json | 61 + .../tsutils/typeguard/2.8/index.d.ts | 2 + .../tsutils/typeguard/2.8/index.js | 5 + .../tsutils/typeguard/2.8/node.d.ts | 155 ++ .../tsutils/typeguard/2.8/node.js | 709 ++++++++ .../tsutils/typeguard/2.8/type.d.ts | 18 + .../tsutils/typeguard/2.8/type.js | 75 + .../tsutils/typeguard/2.9/index.d.ts | 2 + .../tsutils/typeguard/2.9/index.js | 5 + .../tsutils/typeguard/2.9/node.d.ts | 3 + .../tsutils/typeguard/2.9/node.js | 9 + .../tsutils/typeguard/2.9/type.d.ts | 1 + .../tsutils/typeguard/2.9/type.js | 4 + .../tsutils/typeguard/3.0/index.d.ts | 2 + .../tsutils/typeguard/3.0/index.js | 5 + .../tsutils/typeguard/3.0/node.d.ts | 5 + .../tsutils/typeguard/3.0/node.js | 17 + .../tsutils/typeguard/3.0/type.d.ts | 6 + .../tsutils/typeguard/3.0/type.js | 14 + .../tsutils/typeguard/3.2/index.d.ts | 2 + .../tsutils/typeguard/3.2/index.js | 5 + .../tsutils/typeguard/3.2/node.d.ts | 3 + .../tsutils/typeguard/3.2/node.js | 9 + .../tsutils/typeguard/3.2/type.d.ts | 1 + .../tsutils/typeguard/3.2/type.js | 4 + .../node_modules/tsutils/typeguard/index.d.ts | 2 + .../node_modules/tsutils/typeguard/index.js | 5 + .../tsutils/typeguard/next/index.d.ts | 2 + .../tsutils/typeguard/next/index.js | 5 + .../tsutils/typeguard/next/node.d.ts | 1 + .../tsutils/typeguard/next/node.js | 4 + .../tsutils/typeguard/next/type.d.ts | 1 + .../tsutils/typeguard/next/type.js | 4 + .../node_modules/tsutils/typeguard/node.d.ts | 1 + .../node_modules/tsutils/typeguard/node.js | 4 + .../node_modules/tsutils/typeguard/type.d.ts | 1 + .../node_modules/tsutils/typeguard/type.js | 4 + .../tsutils/util/control-flow.d.ts | 8 + .../node_modules/tsutils/util/control-flow.js | 171 ++ .../tsutils/util/convert-ast.d.ts | 20 + .../node_modules/tsutils/util/convert-ast.js | 47 + .../node_modules/tsutils/util/index.d.ts | 5 + .../node_modules/tsutils/util/index.js | 8 + .../node_modules/tsutils/util/type.d.ts | 21 + .../node_modules/tsutils/util/type.js | 238 +++ .../node_modules/tsutils/util/usage.d.ts | 30 + .../node_modules/tsutils/util/usage.js | 645 ++++++++ .../node_modules/tsutils/util/util.d.ts | 167 ++ .../node_modules/tsutils/util/util.js | 1422 +++++++++++++++++ node_modules/tslint-eslint-rules/package.json | 50 + package-lock.json | 52 + package.json | 1 + tslint.json | 9 +- 136 files changed, 15588 insertions(+), 3 deletions(-) create mode 100644 node_modules/doctrine/LICENSE.BSD create mode 100644 node_modules/doctrine/LICENSE.closure-compiler create mode 100644 node_modules/doctrine/LICENSE.esprima create mode 100644 node_modules/doctrine/README.md create mode 100644 node_modules/doctrine/lib/doctrine.js create mode 100644 node_modules/doctrine/lib/typed.js create mode 100644 node_modules/doctrine/lib/utility.js create mode 100644 node_modules/doctrine/node_modules/esutils/LICENSE.BSD create mode 100644 node_modules/doctrine/node_modules/esutils/README.md create mode 100644 node_modules/doctrine/node_modules/esutils/lib/ast.js create mode 100644 node_modules/doctrine/node_modules/esutils/lib/code.js create mode 100644 node_modules/doctrine/node_modules/esutils/lib/keyword.js create mode 100644 node_modules/doctrine/node_modules/esutils/lib/utils.js create mode 100644 node_modules/doctrine/node_modules/esutils/package.json create mode 100644 node_modules/doctrine/package.json create mode 100644 node_modules/isarray/README.md create mode 100644 node_modules/isarray/build/build.js create mode 100644 node_modules/isarray/component.json create mode 100644 node_modules/isarray/index.js create mode 100644 node_modules/isarray/package.json create mode 100644 node_modules/tslint-eslint-rules/CHANGELOG.md create mode 100644 node_modules/tslint-eslint-rules/LICENSE create mode 100644 node_modules/tslint-eslint-rules/README.md create mode 100644 node_modules/tslint-eslint-rules/dist/rules/arrayBracketSpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/blockSpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/handleCallbackErrRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noConstantConditionRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noControlRegexRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noDuplicateCaseRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noEmptyCharacterClassRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noExAssignRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noExtraBooleanCastRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noExtraSemiRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noInnerDeclarationsRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noInvalidRegexpRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noMultiSpacesRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noRegexSpacesRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/noUnexpectedMultilineRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/objectCurlySpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/sortImportsRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/spaceInParensRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terArrowBodyStyleRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terArrowParensRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terArrowSpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terComputedPropertySpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terFuncCallSpacingRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terIndentRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terMaxLenRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNewlineAfterVarRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoIrregularWhitespaceRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoMixedSpacesAndTabsRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoProtoRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoScriptUrlRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoSelfCompareRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoSparseArraysRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terNoTabsRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terPaddedBlocksRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/terPreferArrowCallbackRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/validJsdocRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/rules/validTypeofRule.js create mode 100644 node_modules/tslint-eslint-rules/dist/support/token.js create mode 100644 node_modules/tslint-eslint-rules/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/.gitattributes create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/CopyrightNotice.txt create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/LICENSE.txt create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/README.md create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/bower.json create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/docs/generator.md create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/package.json create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/tslib.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.html create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/tslib.html create mode 100644 node_modules/tslint-eslint-rules/node_modules/tslib/tslib.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/.editorconfig create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/.fimbullinter.yaml create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/.wotanrc.yaml create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/CHANGELOG.md create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/LICENSE create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/README.md create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/package.json create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.js create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.d.ts create mode 100644 node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.js create mode 100644 node_modules/tslint-eslint-rules/package.json diff --git a/node_modules/doctrine/LICENSE.BSD b/node_modules/doctrine/LICENSE.BSD new file mode 100644 index 000000000..3e580c355 --- /dev/null +++ b/node_modules/doctrine/LICENSE.BSD @@ -0,0 +1,19 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/doctrine/LICENSE.closure-compiler b/node_modules/doctrine/LICENSE.closure-compiler new file mode 100644 index 000000000..d64569567 --- /dev/null +++ b/node_modules/doctrine/LICENSE.closure-compiler @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/node_modules/doctrine/LICENSE.esprima b/node_modules/doctrine/LICENSE.esprima new file mode 100644 index 000000000..3e580c355 --- /dev/null +++ b/node_modules/doctrine/LICENSE.esprima @@ -0,0 +1,19 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/doctrine/README.md b/node_modules/doctrine/README.md new file mode 100644 index 000000000..14e3dfe68 --- /dev/null +++ b/node_modules/doctrine/README.md @@ -0,0 +1,174 @@ +[![NPM version][npm-image]][npm-url] +[![build status][travis-image]][travis-url] +[![Test coverage][coveralls-image]][coveralls-url] +[![Downloads][downloads-image]][downloads-url] +[![Join the chat at https://gitter.im/eslint/doctrine](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/eslint/doctrine?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) + +# Doctrine + +Doctrine is a [JSDoc](http://usejsdoc.org) parser that parses documentation comments from JavaScript (you need to pass in the comment, not a whole JavaScript file). + +## Installation + +You can install Doctrine using [npm](https://npmjs.com): + +``` +$ npm install doctrine --save-dev +``` + +Doctrine can also be used in web browsers using [Browserify](http://browserify.org). + +## Usage + +Require doctrine inside of your JavaScript: + +```js +var doctrine = require("doctrine"); +``` + +### parse() + +The primary method is `parse()`, which accepts two arguments: the JSDoc comment to parse and an optional options object. The available options are: + +* `unwrap` - set to `true` to delete the leading `/**`, any `*` that begins a line, and the trailing `*/` from the source text. Default: `false`. +* `tags` - an array of tags to return. When specified, Doctrine returns only tags in this array. For example, if `tags` is `["param"]`, then only `@param` tags will be returned. Default: `null`. +* `recoverable` - set to `true` to keep parsing even when syntax errors occur. Default: `false`. +* `sloppy` - set to `true` to allow optional parameters to be specified in brackets (`@param {string} [foo]`). Default: `false`. +* `lineNumberes` - set to `true` to add `lineNumber` to each node, specifying the line on which the node is found in the source. Default: `false`. + +Here's a simple example: + +```js +var ast = doctrine.parse( + [ + "/**", + " * This function comment is parsed by doctrine", + " * @param {{ok:String}} userName", + "*/" + ].join('\n'), { unwrap: true }); +``` + +This example returns the following AST: + + { + "description": "This function comment is parsed by doctrine", + "tags": [ + { + "title": "param", + "description": null, + "type": { + "type": "RecordType", + "fields": [ + { + "type": "FieldType", + "key": "ok", + "value": { + "type": "NameExpression", + "name": "String" + } + } + ] + }, + "name": "userName" + } + ] + } + +See the [demo page](http://eslint.org/doctrine/demo/) more detail. + +## Team + +These folks keep the project moving and are resources for help: + +* Nicholas C. Zakas ([@nzakas](https://github.com/nzakas)) - project lead +* Yusuke Suzuki ([@constellation](https://github.com/constellation)) - reviewer + +## Contributing + +Issues and pull requests will be triaged and responded to as quickly as possible. We operate under the [ESLint Contributor Guidelines](http://eslint.org/docs/developer-guide/contributing), so please be sure to read them before contributing. If you're not sure where to dig in, check out the [issues](https://github.com/eslint/doctrine/issues). + +## Frequently Asked Questions + +### Can I pass a whole JavaScript file to Doctrine? + +No. Doctrine can only parse JSDoc comments, so you'll need to pass just the JSDoc comment to Doctrine in order to work. + + +### License + +#### doctrine + +Copyright (C) 2012 [Yusuke Suzuki](http://github.com/Constellation) + (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#### esprima + +some of functions is derived from esprima + +Copyright (C) 2012, 2011 [Ariya Hidayat](http://ariya.ofilabs.com/about) + (twitter: [@ariyahidayat](http://twitter.com/ariyahidayat)) and other contributors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +#### closure-compiler + +some of extensions is derived from closure-compiler + +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + + +### Where to ask for help? + +Join our [Chatroom](https://gitter.im/eslint/doctrine) + +[npm-image]: https://img.shields.io/npm/v/doctrine.svg?style=flat-square +[npm-url]: https://www.npmjs.com/package/doctrine +[travis-image]: https://img.shields.io/travis/eslint/doctrine/master.svg?style=flat-square +[travis-url]: https://travis-ci.org/eslint/doctrine +[coveralls-image]: https://img.shields.io/coveralls/eslint/doctrine/master.svg?style=flat-square +[coveralls-url]: https://coveralls.io/r/eslint/doctrine?branch=master +[downloads-image]: http://img.shields.io/npm/dm/doctrine.svg?style=flat-square +[downloads-url]: https://www.npmjs.com/package/doctrine diff --git a/node_modules/doctrine/lib/doctrine.js b/node_modules/doctrine/lib/doctrine.js new file mode 100644 index 000000000..d7ba412a8 --- /dev/null +++ b/node_modules/doctrine/lib/doctrine.js @@ -0,0 +1,833 @@ +/* + Copyright (C) 2012-2014 Yusuke Suzuki + Copyright (C) 2014 Dan Tao + Copyright (C) 2013 Andrew Eisenberg + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +(function () { + 'use strict'; + + var typed, + utility, + isArray, + jsdoc, + esutils, + hasOwnProperty; + + esutils = require('esutils'); + isArray = require('isarray'); + typed = require('./typed'); + utility = require('./utility'); + + function sliceSource(source, index, last) { + return source.slice(index, last); + } + + hasOwnProperty = (function () { + var func = Object.prototype.hasOwnProperty; + return function hasOwnProperty(obj, name) { + return func.call(obj, name); + }; + }()); + + function shallowCopy(obj) { + var ret = {}, key; + for (key in obj) { + if (obj.hasOwnProperty(key)) { + ret[key] = obj[key]; + } + } + return ret; + } + + function isASCIIAlphanumeric(ch) { + return (ch >= 0x61 /* 'a' */ && ch <= 0x7A /* 'z' */) || + (ch >= 0x41 /* 'A' */ && ch <= 0x5A /* 'Z' */) || + (ch >= 0x30 /* '0' */ && ch <= 0x39 /* '9' */); + } + + function isParamTitle(title) { + return title === 'param' || title === 'argument' || title === 'arg'; + } + + function isReturnTitle(title) { + return title === 'return' || title === 'returns'; + } + + function isProperty(title) { + return title === 'property' || title === 'prop'; + } + + function isNameParameterRequired(title) { + return isParamTitle(title) || isProperty(title) || + title === 'alias' || title === 'this' || title === 'mixes' || title === 'requires'; + } + + function isAllowedName(title) { + return isNameParameterRequired(title) || title === 'const' || title === 'constant'; + } + + function isAllowedNested(title) { + return isProperty(title) || isParamTitle(title); + } + + function isTypeParameterRequired(title) { + return isParamTitle(title) || isReturnTitle(title) || + title === 'define' || title === 'enum' || + title === 'implements' || title === 'this' || + title === 'type' || title === 'typedef' || isProperty(title); + } + + // Consider deprecation instead using 'isTypeParameterRequired' and 'Rules' declaration to pick when a type is optional/required + // This would require changes to 'parseType' + function isAllowedType(title) { + return isTypeParameterRequired(title) || title === 'throws' || title === 'const' || title === 'constant' || + title === 'namespace' || title === 'member' || title === 'var' || title === 'module' || + title === 'constructor' || title === 'class' || title === 'extends' || title === 'augments' || + title === 'public' || title === 'private' || title === 'protected'; + } + + function trim(str) { + return str.replace(/^\s+/, '').replace(/\s+$/, ''); + } + + function unwrapComment(doc) { + // JSDoc comment is following form + // /** + // * ....... + // */ + // remove /**, */ and * + var BEFORE_STAR = 0, + STAR = 1, + AFTER_STAR = 2, + index, + len, + mode, + result, + ch; + + doc = doc.replace(/^\/\*\*?/, '').replace(/\*\/$/, ''); + index = 0; + len = doc.length; + mode = BEFORE_STAR; + result = ''; + + while (index < len) { + ch = doc.charCodeAt(index); + switch (mode) { + case BEFORE_STAR: + if (esutils.code.isLineTerminator(ch)) { + result += String.fromCharCode(ch); + } else if (ch === 0x2A /* '*' */) { + mode = STAR; + } else if (!esutils.code.isWhiteSpace(ch)) { + result += String.fromCharCode(ch); + mode = AFTER_STAR; + } + break; + + case STAR: + if (!esutils.code.isWhiteSpace(ch)) { + result += String.fromCharCode(ch); + } + mode = esutils.code.isLineTerminator(ch) ? BEFORE_STAR : AFTER_STAR; + break; + + case AFTER_STAR: + result += String.fromCharCode(ch); + if (esutils.code.isLineTerminator(ch)) { + mode = BEFORE_STAR; + } + break; + } + index += 1; + } + + return result.replace(/\s+$/, ''); + } + + // JSDoc Tag Parser + + (function (exports) { + var Rules, + index, + lineNumber, + length, + source, + recoverable, + sloppy, + strict; + + function advance() { + var ch = source.charCodeAt(index); + index += 1; + if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(index) === 0x0A /* '\n' */)) { + lineNumber += 1; + } + return String.fromCharCode(ch); + } + + function scanTitle() { + var title = ''; + // waste '@' + advance(); + + while (index < length && isASCIIAlphanumeric(source.charCodeAt(index))) { + title += advance(); + } + + return title; + } + + function seekContent() { + var ch, waiting, last = index; + + waiting = false; + while (last < length) { + ch = source.charCodeAt(last); + if (esutils.code.isLineTerminator(ch) && !(ch === 0x0D /* '\r' */ && source.charCodeAt(last + 1) === 0x0A /* '\n' */)) { + waiting = true; + } else if (waiting) { + if (ch === 0x40 /* '@' */) { + break; + } + if (!esutils.code.isWhiteSpace(ch)) { + waiting = false; + } + } + last += 1; + } + return last; + } + + // type expression may have nest brace, such as, + // { { ok: string } } + // + // therefore, scanning type expression with balancing braces. + function parseType(title, last) { + var ch, brace, type, direct = false; + + + // search '{' + while (index < last) { + ch = source.charCodeAt(index); + if (esutils.code.isWhiteSpace(ch)) { + advance(); + } else if (ch === 0x7B /* '{' */) { + advance(); + break; + } else { + // this is direct pattern + direct = true; + break; + } + } + + + if (direct) { + return null; + } + + // type expression { is found + brace = 1; + type = ''; + while (index < last) { + ch = source.charCodeAt(index); + if (esutils.code.isLineTerminator(ch)) { + advance(); + } else { + if (ch === 0x7D /* '}' */) { + brace -= 1; + if (brace === 0) { + advance(); + break; + } + } else if (ch === 0x7B /* '{' */) { + brace += 1; + } + type += advance(); + } + } + + if (brace !== 0) { + // braces is not balanced + return utility.throwError('Braces are not balanced'); + } + + if (isParamTitle(title)) { + return typed.parseParamType(type); + } + return typed.parseType(type); + } + + function scanIdentifier(last) { + var identifier; + if (!esutils.code.isIdentifierStart(source.charCodeAt(index))) { + return null; + } + identifier = advance(); + while (index < last && esutils.code.isIdentifierPart(source.charCodeAt(index))) { + identifier += advance(); + } + return identifier; + } + + function skipWhiteSpace(last) { + while (index < last && (esutils.code.isWhiteSpace(source.charCodeAt(index)) || esutils.code.isLineTerminator(source.charCodeAt(index)))) { + advance(); + } + } + + function parseName(last, allowBrackets, allowNestedParams) { + var name = '', useBrackets; + + skipWhiteSpace(last); + + if (index >= last) { + return null; + } + + if (allowBrackets && source.charCodeAt(index) === 0x5B /* '[' */) { + useBrackets = true; + name = advance(); + } + + if (!esutils.code.isIdentifierStart(source.charCodeAt(index))) { + return null; + } + + name += scanIdentifier(last); + + if (allowNestedParams) { + if (source.charCodeAt(index) === 0x3A /* ':' */ && ( + name === 'module' || + name === 'external' || + name === 'event')) { + name += advance(); + name += scanIdentifier(last); + + } + if(source.charCodeAt(index) === 0x5B /* '[' */ && source.charCodeAt(index + 1) === 0x5D /* ']' */){ + name += advance(); + name += advance(); + } + while (source.charCodeAt(index) === 0x2E /* '.' */ || + source.charCodeAt(index) === 0x23 /* '#' */ || + source.charCodeAt(index) === 0x7E /* '~' */) { + name += advance(); + name += scanIdentifier(last); + } + } + + if (useBrackets) { + + + // do we have a default value for this? + if (source.charCodeAt(index) === 0x3D /* '=' */) { + // consume the '='' symbol + name += advance(); + var bracketDepth = 1; + // scan in the default value + while (index < last) { + if (source.charCodeAt(index) === 0x5B /* '[' */) { + bracketDepth++; + } else if (source.charCodeAt(index) === 0x5D /* ']' */ && + --bracketDepth === 0) { + break; + } + name += advance(); + } + } + + if (index >= last || source.charCodeAt(index) !== 0x5D /* ']' */) { + // we never found a closing ']' + return null; + } + + // collect the last ']' + name += advance(); + } + + return name; + } + + function skipToTag() { + while (index < length && source.charCodeAt(index) !== 0x40 /* '@' */) { + advance(); + } + if (index >= length) { + return false; + } + utility.assert(source.charCodeAt(index) === 0x40 /* '@' */); + return true; + } + + function TagParser(options, title) { + this._options = options; + this._title = title; + this._tag = { + title: title, + description: null + }; + if (this._options.lineNumbers) { + this._tag.lineNumber = lineNumber; + } + this._last = 0; + // space to save special information for title parsers. + this._extra = { }; + } + + // addError(err, ...) + TagParser.prototype.addError = function addError(errorText) { + var args = Array.prototype.slice.call(arguments, 1), + msg = errorText.replace( + /%(\d)/g, + function (whole, index) { + utility.assert(index < args.length, 'Message reference must be in range'); + return args[index]; + } + ); + + if (!this._tag.errors) { + this._tag.errors = []; + } + if (strict) { + utility.throwError(msg); + } + this._tag.errors.push(msg); + return recoverable; + }; + + TagParser.prototype.parseType = function () { + // type required titles + if (isTypeParameterRequired(this._title)) { + try { + this._tag.type = parseType(this._title, this._last); + if (!this._tag.type) { + if (!isParamTitle(this._title) && !isReturnTitle(this._title)) { + if (!this.addError('Missing or invalid tag type')) { + return false; + } + } + } + } catch (error) { + this._tag.type = null; + if (!this.addError(error.message)) { + return false; + } + } + } else if (isAllowedType(this._title)) { + // optional types + try { + this._tag.type = parseType(this._title, this._last); + } catch (e) { + //For optional types, lets drop the thrown error when we hit the end of the file + } + } + return true; + }; + + TagParser.prototype._parseNamePath = function (optional) { + var name; + name = parseName(this._last, sloppy && isParamTitle(this._title), true); + if (!name) { + if (!optional) { + if (!this.addError('Missing or invalid tag name')) { + return false; + } + } + } + this._tag.name = name; + return true; + }; + + TagParser.prototype.parseNamePath = function () { + return this._parseNamePath(false); + }; + + TagParser.prototype.parseNamePathOptional = function () { + return this._parseNamePath(true); + }; + + + TagParser.prototype.parseName = function () { + var assign, name; + + // param, property requires name + if (isAllowedName(this._title)) { + this._tag.name = parseName(this._last, sloppy && isParamTitle(this._title), isAllowedNested(this._title)); + if (!this._tag.name) { + if (!isNameParameterRequired(this._title)) { + return true; + } + + // it's possible the name has already been parsed but interpreted as a type + // it's also possible this is a sloppy declaration, in which case it will be + // fixed at the end + if (isParamTitle(this._title) && this._tag.type && this._tag.type.name) { + this._extra.name = this._tag.type; + this._tag.name = this._tag.type.name; + this._tag.type = null; + } else { + if (!this.addError('Missing or invalid tag name')) { + return false; + } + } + } else { + name = this._tag.name; + if (name.charAt(0) === '[' && name.charAt(name.length - 1) === ']') { + // extract the default value if there is one + // example: @param {string} [somebody=John Doe] description + assign = name.substring(1, name.length - 1).split('='); + if (assign[1]) { + this._tag['default'] = assign[1]; + } + this._tag.name = assign[0]; + + // convert to an optional type + if (this._tag.type && this._tag.type.type !== 'OptionalType') { + this._tag.type = { + type: 'OptionalType', + expression: this._tag.type + }; + } + } + } + } + + return true; + }; + + TagParser.prototype.parseDescription = function parseDescription() { + var description = trim(sliceSource(source, index, this._last)); + if (description) { + if ((/^-\s+/).test(description)) { + description = description.substring(2); + } + this._tag.description = description; + } + return true; + }; + + TagParser.prototype.parseKind = function parseKind() { + var kind, kinds; + kinds = { + 'class': true, + 'constant': true, + 'event': true, + 'external': true, + 'file': true, + 'function': true, + 'member': true, + 'mixin': true, + 'module': true, + 'namespace': true, + 'typedef': true + }; + kind = trim(sliceSource(source, index, this._last)); + this._tag.kind = kind; + if (!hasOwnProperty(kinds, kind)) { + if (!this.addError('Invalid kind name \'%0\'', kind)) { + return false; + } + } + return true; + }; + + TagParser.prototype.parseAccess = function parseAccess() { + var access; + access = trim(sliceSource(source, index, this._last)); + this._tag.access = access; + if (access !== 'private' && access !== 'protected' && access !== 'public') { + if (!this.addError('Invalid access name \'%0\'', access)) { + return false; + } + } + return true; + }; + + TagParser.prototype.parseVariation = function parseVariation() { + var variation, text; + text = trim(sliceSource(source, index, this._last)); + variation = parseFloat(text, 10); + this._tag.variation = variation; + if (isNaN(variation)) { + if (!this.addError('Invalid variation \'%0\'', text)) { + return false; + } + } + return true; + }; + + TagParser.prototype.ensureEnd = function () { + var shouldBeEmpty = trim(sliceSource(source, index, this._last)); + if (shouldBeEmpty) { + if (!this.addError('Unknown content \'%0\'', shouldBeEmpty)) { + return false; + } + } + return true; + }; + + TagParser.prototype.epilogue = function epilogue() { + var description; + + description = this._tag.description; + // un-fix potentially sloppy declaration + if (isParamTitle(this._title) && !this._tag.type && description && description.charAt(0) === '[') { + this._tag.type = this._extra.name; + if (!this._tag.name) { + this._tag.name = undefined; + } + + if (!sloppy) { + if (!this.addError('Missing or invalid tag name')) { + return false; + } + } + } + + return true; + }; + + Rules = { + // http://usejsdoc.org/tags-access.html + 'access': ['parseAccess'], + // http://usejsdoc.org/tags-alias.html + 'alias': ['parseNamePath', 'ensureEnd'], + // http://usejsdoc.org/tags-augments.html + 'augments': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-constructor.html + 'constructor': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // Synonym: http://usejsdoc.org/tags-constructor.html + 'class': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // Synonym: http://usejsdoc.org/tags-extends.html + 'extends': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-deprecated.html + 'deprecated': ['parseDescription'], + // http://usejsdoc.org/tags-global.html + 'global': ['ensureEnd'], + // http://usejsdoc.org/tags-inner.html + 'inner': ['ensureEnd'], + // http://usejsdoc.org/tags-instance.html + 'instance': ['ensureEnd'], + // http://usejsdoc.org/tags-kind.html + 'kind': ['parseKind'], + // http://usejsdoc.org/tags-mixes.html + 'mixes': ['parseNamePath', 'ensureEnd'], + // http://usejsdoc.org/tags-mixin.html + 'mixin': ['parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-member.html + 'member': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-method.html + 'method': ['parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-module.html + 'module': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // Synonym: http://usejsdoc.org/tags-method.html + 'func': ['parseNamePathOptional', 'ensureEnd'], + // Synonym: http://usejsdoc.org/tags-method.html + 'function': ['parseNamePathOptional', 'ensureEnd'], + // Synonym: http://usejsdoc.org/tags-member.html + 'var': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-name.html + 'name': ['parseNamePath', 'ensureEnd'], + // http://usejsdoc.org/tags-namespace.html + 'namespace': ['parseType', 'parseNamePathOptional', 'ensureEnd'], + // http://usejsdoc.org/tags-private.html + 'private': ['parseType', 'parseDescription'], + // http://usejsdoc.org/tags-protected.html + 'protected': ['parseType', 'parseDescription'], + // http://usejsdoc.org/tags-public.html + 'public': ['parseType', 'parseDescription'], + // http://usejsdoc.org/tags-readonly.html + 'readonly': ['ensureEnd'], + // http://usejsdoc.org/tags-requires.html + 'requires': ['parseNamePath', 'ensureEnd'], + // http://usejsdoc.org/tags-since.html + 'since': ['parseDescription'], + // http://usejsdoc.org/tags-static.html + 'static': ['ensureEnd'], + // http://usejsdoc.org/tags-summary.html + 'summary': ['parseDescription'], + // http://usejsdoc.org/tags-this.html + 'this': ['parseNamePath', 'ensureEnd'], + // http://usejsdoc.org/tags-todo.html + 'todo': ['parseDescription'], + // http://usejsdoc.org/tags-typedef.html + 'typedef': ['parseType', 'parseNamePathOptional'], + // http://usejsdoc.org/tags-variation.html + 'variation': ['parseVariation'], + // http://usejsdoc.org/tags-version.html + 'version': ['parseDescription'] + }; + + TagParser.prototype.parse = function parse() { + var i, iz, sequences, method; + + // empty title + if (!this._title) { + if (!this.addError('Missing or invalid title')) { + return null; + } + } + + // Seek to content last index. + this._last = seekContent(this._title); + + if (hasOwnProperty(Rules, this._title)) { + sequences = Rules[this._title]; + } else { + // default sequences + sequences = ['parseType', 'parseName', 'parseDescription', 'epilogue']; + } + + for (i = 0, iz = sequences.length; i < iz; ++i) { + method = sequences[i]; + if (!this[method]()) { + return null; + } + } + + return this._tag; + }; + + function parseTag(options) { + var title, parser, tag; + + // skip to tag + if (!skipToTag()) { + return null; + } + + // scan title + title = scanTitle(); + + // construct tag parser + parser = new TagParser(options, title); + tag = parser.parse(); + + // Seek global index to end of this tag. + while (index < parser._last) { + advance(); + } + return tag; + } + + // + // Parse JSDoc + // + + function scanJSDocDescription(preserveWhitespace) { + var description = '', ch, atAllowed; + + atAllowed = true; + while (index < length) { + ch = source.charCodeAt(index); + + if (atAllowed && ch === 0x40 /* '@' */) { + break; + } + + if (esutils.code.isLineTerminator(ch)) { + atAllowed = true; + } else if (atAllowed && !esutils.code.isWhiteSpace(ch)) { + atAllowed = false; + } + + description += advance(); + } + + return preserveWhitespace ? description : trim(description); + } + + function parse(comment, options) { + var tags = [], tag, description, interestingTags, i, iz; + + if (options === undefined) { + options = {}; + } + + if (typeof options.unwrap === 'boolean' && options.unwrap) { + source = unwrapComment(comment); + } else { + source = comment; + } + + // array of relevant tags + if (options.tags) { + if (isArray(options.tags)) { + interestingTags = { }; + for (i = 0, iz = options.tags.length; i < iz; i++) { + if (typeof options.tags[i] === 'string') { + interestingTags[options.tags[i]] = true; + } else { + utility.throwError('Invalid "tags" parameter: ' + options.tags); + } + } + } else { + utility.throwError('Invalid "tags" parameter: ' + options.tags); + } + } + + length = source.length; + index = 0; + lineNumber = 0; + recoverable = options.recoverable; + sloppy = options.sloppy; + strict = options.strict; + + description = scanJSDocDescription(options.preserveWhitespace); + + while (true) { + tag = parseTag(options); + if (!tag) { + break; + } + if (!interestingTags || interestingTags.hasOwnProperty(tag.title)) { + tags.push(tag); + } + } + + return { + description: description, + tags: tags + }; + } + exports.parse = parse; + }(jsdoc = {})); + + exports.version = utility.VERSION; + exports.parse = jsdoc.parse; + exports.parseType = typed.parseType; + exports.parseParamType = typed.parseParamType; + exports.unwrapComment = unwrapComment; + exports.Syntax = shallowCopy(typed.Syntax); + exports.Error = utility.DoctrineError; + exports.type = { + Syntax: exports.Syntax, + parseType: typed.parseType, + parseParamType: typed.parseParamType, + stringify: typed.stringify + }; +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/lib/typed.js b/node_modules/doctrine/lib/typed.js new file mode 100644 index 000000000..2b02000e6 --- /dev/null +++ b/node_modules/doctrine/lib/typed.js @@ -0,0 +1,1261 @@ +/* + Copyright (C) 2012-2014 Yusuke Suzuki + Copyright (C) 2014 Dan Tao + Copyright (C) 2013 Andrew Eisenberg + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +// "typed", the Type Expression Parser for doctrine. + +(function () { + 'use strict'; + + var Syntax, + Token, + source, + length, + index, + previous, + token, + value, + esutils, + utility; + + esutils = require('esutils'); + utility = require('./utility'); + + Syntax = { + NullableLiteral: 'NullableLiteral', + AllLiteral: 'AllLiteral', + NullLiteral: 'NullLiteral', + UndefinedLiteral: 'UndefinedLiteral', + VoidLiteral: 'VoidLiteral', + UnionType: 'UnionType', + ArrayType: 'ArrayType', + RecordType: 'RecordType', + FieldType: 'FieldType', + FunctionType: 'FunctionType', + ParameterType: 'ParameterType', + RestType: 'RestType', + NonNullableType: 'NonNullableType', + OptionalType: 'OptionalType', + NullableType: 'NullableType', + NameExpression: 'NameExpression', + TypeApplication: 'TypeApplication' + }; + + Token = { + ILLEGAL: 0, // ILLEGAL + DOT_LT: 1, // .< + REST: 2, // ... + LT: 3, // < + GT: 4, // > + LPAREN: 5, // ( + RPAREN: 6, // ) + LBRACE: 7, // { + RBRACE: 8, // } + LBRACK: 9, // [ + RBRACK: 10, // ] + COMMA: 11, // , + COLON: 12, // : + STAR: 13, // * + PIPE: 14, // | + QUESTION: 15, // ? + BANG: 16, // ! + EQUAL: 17, // = + NAME: 18, // name token + STRING: 19, // string + NUMBER: 20, // number + EOF: 21 + }; + + function isTypeName(ch) { + return '><(){}[],:*|?!='.indexOf(String.fromCharCode(ch)) === -1 && !esutils.code.isWhiteSpace(ch) && !esutils.code.isLineTerminator(ch); + } + + function Context(previous, index, token, value) { + this._previous = previous; + this._index = index; + this._token = token; + this._value = value; + } + + Context.prototype.restore = function () { + previous = this._previous; + index = this._index; + token = this._token; + value = this._value; + }; + + Context.save = function () { + return new Context(previous, index, token, value); + }; + + function advance() { + var ch = source.charAt(index); + index += 1; + return ch; + } + + function scanHexEscape(prefix) { + var i, len, ch, code = 0; + + len = (prefix === 'u') ? 4 : 2; + for (i = 0; i < len; ++i) { + if (index < length && esutils.code.isHexDigit(source.charCodeAt(index))) { + ch = advance(); + code = code * 16 + '0123456789abcdef'.indexOf(ch.toLowerCase()); + } else { + return ''; + } + } + return String.fromCharCode(code); + } + + function scanString() { + var str = '', quote, ch, code, unescaped, restore; //TODO review removal octal = false + quote = source.charAt(index); + ++index; + + while (index < length) { + ch = advance(); + + if (ch === quote) { + quote = ''; + break; + } else if (ch === '\\') { + ch = advance(); + if (!esutils.code.isLineTerminator(ch.charCodeAt(0))) { + switch (ch) { + case 'n': + str += '\n'; + break; + case 'r': + str += '\r'; + break; + case 't': + str += '\t'; + break; + case 'u': + case 'x': + restore = index; + unescaped = scanHexEscape(ch); + if (unescaped) { + str += unescaped; + } else { + index = restore; + str += ch; + } + break; + case 'b': + str += '\b'; + break; + case 'f': + str += '\f'; + break; + case 'v': + str += '\v'; + break; + + default: + if (esutils.code.isOctalDigit(ch.charCodeAt(0))) { + code = '01234567'.indexOf(ch); + + // \0 is not octal escape sequence + // Deprecating unused code. TODO review removal + //if (code !== 0) { + // octal = true; + //} + + if (index < length && esutils.code.isOctalDigit(source.charCodeAt(index))) { + //TODO Review Removal octal = true; + code = code * 8 + '01234567'.indexOf(advance()); + + // 3 digits are only allowed when string starts + // with 0, 1, 2, 3 + if ('0123'.indexOf(ch) >= 0 && + index < length && + esutils.code.isOctalDigit(source.charCodeAt(index))) { + code = code * 8 + '01234567'.indexOf(advance()); + } + } + str += String.fromCharCode(code); + } else { + str += ch; + } + break; + } + } else { + if (ch === '\r' && source.charCodeAt(index) === 0x0A /* '\n' */) { + ++index; + } + } + } else if (esutils.code.isLineTerminator(ch.charCodeAt(0))) { + break; + } else { + str += ch; + } + } + + if (quote !== '') { + utility.throwError('unexpected quote'); + } + + value = str; + return Token.STRING; + } + + function scanNumber() { + var number, ch; + + number = ''; + ch = source.charCodeAt(index); + + if (ch !== 0x2E /* '.' */) { + number = advance(); + ch = source.charCodeAt(index); + + if (number === '0') { + if (ch === 0x78 /* 'x' */ || ch === 0x58 /* 'X' */) { + number += advance(); + while (index < length) { + ch = source.charCodeAt(index); + if (!esutils.code.isHexDigit(ch)) { + break; + } + number += advance(); + } + + if (number.length <= 2) { + // only 0x + utility.throwError('unexpected token'); + } + + if (index < length) { + ch = source.charCodeAt(index); + if (esutils.code.isIdentifierStart(ch)) { + utility.throwError('unexpected token'); + } + } + value = parseInt(number, 16); + return Token.NUMBER; + } + + if (esutils.code.isOctalDigit(ch)) { + number += advance(); + while (index < length) { + ch = source.charCodeAt(index); + if (!esutils.code.isOctalDigit(ch)) { + break; + } + number += advance(); + } + + if (index < length) { + ch = source.charCodeAt(index); + if (esutils.code.isIdentifierStart(ch) || esutils.code.isDecimalDigit(ch)) { + utility.throwError('unexpected token'); + } + } + value = parseInt(number, 8); + return Token.NUMBER; + } + + if (esutils.code.isDecimalDigit(ch)) { + utility.throwError('unexpected token'); + } + } + + while (index < length) { + ch = source.charCodeAt(index); + if (!esutils.code.isDecimalDigit(ch)) { + break; + } + number += advance(); + } + } + + if (ch === 0x2E /* '.' */) { + number += advance(); + while (index < length) { + ch = source.charCodeAt(index); + if (!esutils.code.isDecimalDigit(ch)) { + break; + } + number += advance(); + } + } + + if (ch === 0x65 /* 'e' */ || ch === 0x45 /* 'E' */) { + number += advance(); + + ch = source.charCodeAt(index); + if (ch === 0x2B /* '+' */ || ch === 0x2D /* '-' */) { + number += advance(); + } + + ch = source.charCodeAt(index); + if (esutils.code.isDecimalDigit(ch)) { + number += advance(); + while (index < length) { + ch = source.charCodeAt(index); + if (!esutils.code.isDecimalDigit(ch)) { + break; + } + number += advance(); + } + } else { + utility.throwError('unexpected token'); + } + } + + if (index < length) { + ch = source.charCodeAt(index); + if (esutils.code.isIdentifierStart(ch)) { + utility.throwError('unexpected token'); + } + } + + value = parseFloat(number); + return Token.NUMBER; + } + + + function scanTypeName() { + var ch, ch2; + + value = advance(); + while (index < length && isTypeName(source.charCodeAt(index))) { + ch = source.charCodeAt(index); + if (ch === 0x2E /* '.' */) { + if ((index + 1) >= length) { + return Token.ILLEGAL; + } + ch2 = source.charCodeAt(index + 1); + if (ch2 === 0x3C /* '<' */) { + break; + } + } + value += advance(); + } + return Token.NAME; + } + + function next() { + var ch; + + previous = index; + + while (index < length && esutils.code.isWhiteSpace(source.charCodeAt(index))) { + advance(); + } + if (index >= length) { + token = Token.EOF; + return token; + } + + ch = source.charCodeAt(index); + switch (ch) { + case 0x27: /* ''' */ + case 0x22: /* '"' */ + token = scanString(); + return token; + + case 0x3A: /* ':' */ + advance(); + token = Token.COLON; + return token; + + case 0x2C: /* ',' */ + advance(); + token = Token.COMMA; + return token; + + case 0x28: /* '(' */ + advance(); + token = Token.LPAREN; + return token; + + case 0x29: /* ')' */ + advance(); + token = Token.RPAREN; + return token; + + case 0x5B: /* '[' */ + advance(); + token = Token.LBRACK; + return token; + + case 0x5D: /* ']' */ + advance(); + token = Token.RBRACK; + return token; + + case 0x7B: /* '{' */ + advance(); + token = Token.LBRACE; + return token; + + case 0x7D: /* '}' */ + advance(); + token = Token.RBRACE; + return token; + + case 0x2E: /* '.' */ + if (index + 1 < length) { + ch = source.charCodeAt(index + 1); + if (ch === 0x3C /* '<' */) { + advance(); // '.' + advance(); // '<' + token = Token.DOT_LT; + return token; + } + + if (ch === 0x2E /* '.' */ && index + 2 < length && source.charCodeAt(index + 2) === 0x2E /* '.' */) { + advance(); // '.' + advance(); // '.' + advance(); // '.' + token = Token.REST; + return token; + } + + if (esutils.code.isDecimalDigit(ch)) { + token = scanNumber(); + return token; + } + } + token = Token.ILLEGAL; + return token; + + case 0x3C: /* '<' */ + advance(); + token = Token.LT; + return token; + + case 0x3E: /* '>' */ + advance(); + token = Token.GT; + return token; + + case 0x2A: /* '*' */ + advance(); + token = Token.STAR; + return token; + + case 0x7C: /* '|' */ + advance(); + token = Token.PIPE; + return token; + + case 0x3F: /* '?' */ + advance(); + token = Token.QUESTION; + return token; + + case 0x21: /* '!' */ + advance(); + token = Token.BANG; + return token; + + case 0x3D: /* '=' */ + advance(); + token = Token.EQUAL; + return token; + + default: + if (esutils.code.isDecimalDigit(ch)) { + token = scanNumber(); + return token; + } + + // type string permits following case, + // + // namespace.module.MyClass + // + // this reduced 1 token TK_NAME + utility.assert(isTypeName(ch)); + token = scanTypeName(); + return token; + } + } + + function consume(target, text) { + utility.assert(token === target, text || 'consumed token not matched'); + next(); + } + + function expect(target, message) { + if (token !== target) { + utility.throwError(message || 'unexpected token'); + } + next(); + } + + // UnionType := '(' TypeUnionList ')' + // + // TypeUnionList := + // <> + // | NonemptyTypeUnionList + // + // NonemptyTypeUnionList := + // TypeExpression + // | TypeExpression '|' NonemptyTypeUnionList + function parseUnionType() { + var elements; + consume(Token.LPAREN, 'UnionType should start with ('); + elements = []; + if (token !== Token.RPAREN) { + while (true) { + elements.push(parseTypeExpression()); + if (token === Token.RPAREN) { + break; + } + expect(Token.PIPE); + } + } + consume(Token.RPAREN, 'UnionType should end with )'); + return { + type: Syntax.UnionType, + elements: elements + }; + } + + // ArrayType := '[' ElementTypeList ']' + // + // ElementTypeList := + // <> + // | TypeExpression + // | '...' TypeExpression + // | TypeExpression ',' ElementTypeList + function parseArrayType() { + var elements; + consume(Token.LBRACK, 'ArrayType should start with ['); + elements = []; + while (token !== Token.RBRACK) { + if (token === Token.REST) { + consume(Token.REST); + elements.push({ + type: Syntax.RestType, + expression: parseTypeExpression() + }); + break; + } else { + elements.push(parseTypeExpression()); + } + if (token !== Token.RBRACK) { + expect(Token.COMMA); + } + } + expect(Token.RBRACK); + return { + type: Syntax.ArrayType, + elements: elements + }; + } + + function parseFieldName() { + var v = value; + if (token === Token.NAME || token === Token.STRING) { + next(); + return v; + } + + if (token === Token.NUMBER) { + consume(Token.NUMBER); + return String(v); + } + + utility.throwError('unexpected token'); + } + + // FieldType := + // FieldName + // | FieldName ':' TypeExpression + // + // FieldName := + // NameExpression + // | StringLiteral + // | NumberLiteral + // | ReservedIdentifier + function parseFieldType() { + var key; + + key = parseFieldName(); + if (token === Token.COLON) { + consume(Token.COLON); + return { + type: Syntax.FieldType, + key: key, + value: parseTypeExpression() + }; + } + return { + type: Syntax.FieldType, + key: key, + value: null + }; + } + + // RecordType := '{' FieldTypeList '}' + // + // FieldTypeList := + // <> + // | FieldType + // | FieldType ',' FieldTypeList + function parseRecordType() { + var fields; + + consume(Token.LBRACE, 'RecordType should start with {'); + fields = []; + if (token === Token.COMMA) { + consume(Token.COMMA); + } else { + while (token !== Token.RBRACE) { + fields.push(parseFieldType()); + if (token !== Token.RBRACE) { + expect(Token.COMMA); + } + } + } + expect(Token.RBRACE); + return { + type: Syntax.RecordType, + fields: fields + }; + } + + // NameExpression := + // Identifier + // | TagIdentifier ':' Identifier + // + // Tag identifier is one of "module", "external" or "event" + // Identifier is the same as Token.NAME, including any dots, something like + // namespace.module.MyClass + function parseNameExpression() { + var name = value; + expect(Token.NAME); + + if (token === Token.COLON && ( + name === 'module' || + name === 'external' || + name === 'event')) { + consume(Token.COLON); + name += ':' + value; + expect(Token.NAME); + } + + return { + type: Syntax.NameExpression, + name: name + }; + } + + // TypeExpressionList := + // TopLevelTypeExpression + // | TopLevelTypeExpression ',' TypeExpressionList + function parseTypeExpressionList() { + var elements = []; + + elements.push(parseTop()); + while (token === Token.COMMA) { + consume(Token.COMMA); + elements.push(parseTop()); + } + return elements; + } + + // TypeName := + // NameExpression + // | NameExpression TypeApplication + // + // TypeApplication := + // '.<' TypeExpressionList '>' + // | '<' TypeExpressionList '>' // this is extension of doctrine + function parseTypeName() { + var expr, applications; + + expr = parseNameExpression(); + if (token === Token.DOT_LT || token === Token.LT) { + next(); + applications = parseTypeExpressionList(); + expect(Token.GT); + return { + type: Syntax.TypeApplication, + expression: expr, + applications: applications + }; + } + return expr; + } + + // ResultType := + // <> + // | ':' void + // | ':' TypeExpression + // + // BNF is above + // but, we remove <> pattern, so token is always TypeToken::COLON + function parseResultType() { + consume(Token.COLON, 'ResultType should start with :'); + if (token === Token.NAME && value === 'void') { + consume(Token.NAME); + return { + type: Syntax.VoidLiteral + }; + } + return parseTypeExpression(); + } + + // ParametersType := + // RestParameterType + // | NonRestParametersType + // | NonRestParametersType ',' RestParameterType + // + // RestParameterType := + // '...' + // '...' Identifier + // + // NonRestParametersType := + // ParameterType ',' NonRestParametersType + // | ParameterType + // | OptionalParametersType + // + // OptionalParametersType := + // OptionalParameterType + // | OptionalParameterType, OptionalParametersType + // + // OptionalParameterType := ParameterType= + // + // ParameterType := TypeExpression | Identifier ':' TypeExpression + // + // Identifier is "new" or "this" + function parseParametersType() { + var params = [], optionalSequence = false, expr, rest = false; + + while (token !== Token.RPAREN) { + if (token === Token.REST) { + // RestParameterType + consume(Token.REST); + rest = true; + } + + expr = parseTypeExpression(); + if (expr.type === Syntax.NameExpression && token === Token.COLON) { + // Identifier ':' TypeExpression + consume(Token.COLON); + expr = { + type: Syntax.ParameterType, + name: expr.name, + expression: parseTypeExpression() + }; + } + if (token === Token.EQUAL) { + consume(Token.EQUAL); + expr = { + type: Syntax.OptionalType, + expression: expr + }; + optionalSequence = true; + } else { + if (optionalSequence) { + utility.throwError('unexpected token'); + } + } + if (rest) { + expr = { + type: Syntax.RestType, + expression: expr + }; + } + params.push(expr); + if (token !== Token.RPAREN) { + expect(Token.COMMA); + } + } + return params; + } + + // FunctionType := 'function' FunctionSignatureType + // + // FunctionSignatureType := + // | TypeParameters '(' ')' ResultType + // | TypeParameters '(' ParametersType ')' ResultType + // | TypeParameters '(' 'this' ':' TypeName ')' ResultType + // | TypeParameters '(' 'this' ':' TypeName ',' ParametersType ')' ResultType + function parseFunctionType() { + var isNew, thisBinding, params, result, fnType; + utility.assert(token === Token.NAME && value === 'function', 'FunctionType should start with \'function\''); + consume(Token.NAME); + + // Google Closure Compiler is not implementing TypeParameters. + // So we do not. if we don't get '(', we see it as error. + expect(Token.LPAREN); + + isNew = false; + params = []; + thisBinding = null; + if (token !== Token.RPAREN) { + // ParametersType or 'this' + if (token === Token.NAME && + (value === 'this' || value === 'new')) { + // 'this' or 'new' + // 'new' is Closure Compiler extension + isNew = value === 'new'; + consume(Token.NAME); + expect(Token.COLON); + thisBinding = parseTypeName(); + if (token === Token.COMMA) { + consume(Token.COMMA); + params = parseParametersType(); + } + } else { + params = parseParametersType(); + } + } + + expect(Token.RPAREN); + + result = null; + if (token === Token.COLON) { + result = parseResultType(); + } + + fnType = { + type: Syntax.FunctionType, + params: params, + result: result + }; + if (thisBinding) { + // avoid adding null 'new' and 'this' properties + fnType['this'] = thisBinding; + if (isNew) { + fnType['new'] = true; + } + } + return fnType; + } + + // BasicTypeExpression := + // '*' + // | 'null' + // | 'undefined' + // | TypeName + // | FunctionType + // | UnionType + // | RecordType + // | ArrayType + function parseBasicTypeExpression() { + var context; + switch (token) { + case Token.STAR: + consume(Token.STAR); + return { + type: Syntax.AllLiteral + }; + + case Token.LPAREN: + return parseUnionType(); + + case Token.LBRACK: + return parseArrayType(); + + case Token.LBRACE: + return parseRecordType(); + + case Token.NAME: + if (value === 'null') { + consume(Token.NAME); + return { + type: Syntax.NullLiteral + }; + } + + if (value === 'undefined') { + consume(Token.NAME); + return { + type: Syntax.UndefinedLiteral + }; + } + + context = Context.save(); + if (value === 'function') { + try { + return parseFunctionType(); + } catch (e) { + context.restore(); + } + } + + return parseTypeName(); + + default: + utility.throwError('unexpected token'); + } + } + + // TypeExpression := + // BasicTypeExpression + // | '?' BasicTypeExpression + // | '!' BasicTypeExpression + // | BasicTypeExpression '?' + // | BasicTypeExpression '!' + // | '?' + // | BasicTypeExpression '[]' + function parseTypeExpression() { + var expr; + + if (token === Token.QUESTION) { + consume(Token.QUESTION); + if (token === Token.COMMA || token === Token.EQUAL || token === Token.RBRACE || + token === Token.RPAREN || token === Token.PIPE || token === Token.EOF || + token === Token.RBRACK || token === Token.GT) { + return { + type: Syntax.NullableLiteral + }; + } + return { + type: Syntax.NullableType, + expression: parseBasicTypeExpression(), + prefix: true + }; + } + + if (token === Token.BANG) { + consume(Token.BANG); + return { + type: Syntax.NonNullableType, + expression: parseBasicTypeExpression(), + prefix: true + }; + } + + expr = parseBasicTypeExpression(); + if (token === Token.BANG) { + consume(Token.BANG); + return { + type: Syntax.NonNullableType, + expression: expr, + prefix: false + }; + } + + if (token === Token.QUESTION) { + consume(Token.QUESTION); + return { + type: Syntax.NullableType, + expression: expr, + prefix: false + }; + } + + if (token === Token.LBRACK) { + consume(Token.LBRACK); + expect(Token.RBRACK, 'expected an array-style type declaration (' + value + '[])'); + return { + type: Syntax.TypeApplication, + expression: { + type: Syntax.NameExpression, + name: 'Array' + }, + applications: [expr] + }; + } + + return expr; + } + + // TopLevelTypeExpression := + // TypeExpression + // | TypeUnionList + // + // This rule is Google Closure Compiler extension, not ES4 + // like, + // { number | string } + // If strict to ES4, we should write it as + // { (number|string) } + function parseTop() { + var expr, elements; + + expr = parseTypeExpression(); + if (token !== Token.PIPE) { + return expr; + } + + elements = [ expr ]; + consume(Token.PIPE); + while (true) { + elements.push(parseTypeExpression()); + if (token !== Token.PIPE) { + break; + } + consume(Token.PIPE); + } + + return { + type: Syntax.UnionType, + elements: elements + }; + } + + function parseTopParamType() { + var expr; + + if (token === Token.REST) { + consume(Token.REST); + return { + type: Syntax.RestType, + expression: parseTop() + }; + } + + expr = parseTop(); + if (token === Token.EQUAL) { + consume(Token.EQUAL); + return { + type: Syntax.OptionalType, + expression: expr + }; + } + + return expr; + } + + function parseType(src, opt) { + var expr; + + source = src; + length = source.length; + index = 0; + previous = 0; + + next(); + expr = parseTop(); + + if (opt && opt.midstream) { + return { + expression: expr, + index: previous + }; + } + + if (token !== Token.EOF) { + utility.throwError('not reach to EOF'); + } + + return expr; + } + + function parseParamType(src, opt) { + var expr; + + source = src; + length = source.length; + index = 0; + previous = 0; + + next(); + expr = parseTopParamType(); + + if (opt && opt.midstream) { + return { + expression: expr, + index: previous + }; + } + + if (token !== Token.EOF) { + utility.throwError('not reach to EOF'); + } + + return expr; + } + + function stringifyImpl(node, compact, topLevel) { + var result, i, iz; + + switch (node.type) { + case Syntax.NullableLiteral: + result = '?'; + break; + + case Syntax.AllLiteral: + result = '*'; + break; + + case Syntax.NullLiteral: + result = 'null'; + break; + + case Syntax.UndefinedLiteral: + result = 'undefined'; + break; + + case Syntax.VoidLiteral: + result = 'void'; + break; + + case Syntax.UnionType: + if (!topLevel) { + result = '('; + } else { + result = ''; + } + + for (i = 0, iz = node.elements.length; i < iz; ++i) { + result += stringifyImpl(node.elements[i], compact); + if ((i + 1) !== iz) { + result += '|'; + } + } + + if (!topLevel) { + result += ')'; + } + break; + + case Syntax.ArrayType: + result = '['; + for (i = 0, iz = node.elements.length; i < iz; ++i) { + result += stringifyImpl(node.elements[i], compact); + if ((i + 1) !== iz) { + result += compact ? ',' : ', '; + } + } + result += ']'; + break; + + case Syntax.RecordType: + result = '{'; + for (i = 0, iz = node.fields.length; i < iz; ++i) { + result += stringifyImpl(node.fields[i], compact); + if ((i + 1) !== iz) { + result += compact ? ',' : ', '; + } + } + result += '}'; + break; + + case Syntax.FieldType: + if (node.value) { + result = node.key + (compact ? ':' : ': ') + stringifyImpl(node.value, compact); + } else { + result = node.key; + } + break; + + case Syntax.FunctionType: + result = compact ? 'function(' : 'function ('; + + if (node['this']) { + if (node['new']) { + result += (compact ? 'new:' : 'new: '); + } else { + result += (compact ? 'this:' : 'this: '); + } + + result += stringifyImpl(node['this'], compact); + + if (node.params.length !== 0) { + result += compact ? ',' : ', '; + } + } + + for (i = 0, iz = node.params.length; i < iz; ++i) { + result += stringifyImpl(node.params[i], compact); + if ((i + 1) !== iz) { + result += compact ? ',' : ', '; + } + } + + result += ')'; + + if (node.result) { + result += (compact ? ':' : ': ') + stringifyImpl(node.result, compact); + } + break; + + case Syntax.ParameterType: + result = node.name + (compact ? ':' : ': ') + stringifyImpl(node.expression, compact); + break; + + case Syntax.RestType: + result = '...'; + if (node.expression) { + result += stringifyImpl(node.expression, compact); + } + break; + + case Syntax.NonNullableType: + if (node.prefix) { + result = '!' + stringifyImpl(node.expression, compact); + } else { + result = stringifyImpl(node.expression, compact) + '!'; + } + break; + + case Syntax.OptionalType: + result = stringifyImpl(node.expression, compact) + '='; + break; + + case Syntax.NullableType: + if (node.prefix) { + result = '?' + stringifyImpl(node.expression, compact); + } else { + result = stringifyImpl(node.expression, compact) + '?'; + } + break; + + case Syntax.NameExpression: + result = node.name; + break; + + case Syntax.TypeApplication: + result = stringifyImpl(node.expression, compact) + '.<'; + for (i = 0, iz = node.applications.length; i < iz; ++i) { + result += stringifyImpl(node.applications[i], compact); + if ((i + 1) !== iz) { + result += compact ? ',' : ', '; + } + } + result += '>'; + break; + + default: + utility.throwError('Unknown type ' + node.type); + } + + return result; + } + + function stringify(node, options) { + if (options == null) { + options = {}; + } + return stringifyImpl(node, options.compact, options.topLevel); + } + + exports.parseType = parseType; + exports.parseParamType = parseParamType; + exports.stringify = stringify; + exports.Syntax = Syntax; +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/lib/utility.js b/node_modules/doctrine/lib/utility.js new file mode 100644 index 000000000..bb4412584 --- /dev/null +++ b/node_modules/doctrine/lib/utility.js @@ -0,0 +1,54 @@ +/* + Copyright (C) 2014 Yusuke Suzuki + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +(function () { + 'use strict'; + + var VERSION; + + VERSION = require('../package.json').version; + exports.VERSION = VERSION; + + function DoctrineError(message) { + this.name = 'DoctrineError'; + this.message = message; + } + DoctrineError.prototype = (function () { + var Middle = function () { }; + Middle.prototype = Error.prototype; + return new Middle(); + }()); + DoctrineError.prototype.constructor = DoctrineError; + exports.DoctrineError = DoctrineError; + + function throwError(message) { + throw new DoctrineError(message); + } + exports.throwError = throwError; + + exports.assert = require('assert'); +}()); + +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/node_modules/esutils/LICENSE.BSD b/node_modules/doctrine/node_modules/esutils/LICENSE.BSD new file mode 100644 index 000000000..3e580c355 --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/LICENSE.BSD @@ -0,0 +1,19 @@ +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/doctrine/node_modules/esutils/README.md b/node_modules/doctrine/node_modules/esutils/README.md new file mode 100644 index 000000000..494fac5ed --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/README.md @@ -0,0 +1,169 @@ +### esutils [![Build Status](https://secure.travis-ci.org/Constellation/esutils.svg)](http://travis-ci.org/Constellation/esutils) +esutils ([esutils](http://github.com/Constellation/esutils)) is +utility box for ECMAScript language tools. + +### API + +### ast + +#### ast.isExpression(node) + +Returns true if `node` is an Expression as defined in ECMA262 edition 5.1 section +[11](https://es5.github.io/#x11). + +#### ast.isStatement(node) + +Returns true if `node` is a Statement as defined in ECMA262 edition 5.1 section +[12](https://es5.github.io/#x12). + +#### ast.isIterationStatement(node) + +Returns true if `node` is an IterationStatement as defined in ECMA262 edition +5.1 section [12.6](https://es5.github.io/#x12.6). + +#### ast.isSourceElement(node) + +Returns true if `node` is a SourceElement as defined in ECMA262 edition 5.1 +section [14](https://es5.github.io/#x14). + +#### ast.trailingStatement(node) + +Returns `Statement?` if `node` has trailing `Statement`. +```js +if (cond) + consequent; +``` +When taking this `IfStatement`, returns `consequent;` statement. + +#### ast.isProblematicIfStatement(node) + +Returns true if `node` is a problematic IfStatement. If `node` is a problematic `IfStatement`, `node` cannot be represented as an one on one JavaScript code. +```js +{ + type: 'IfStatement', + consequent: { + type: 'WithStatement', + body: { + type: 'IfStatement', + consequent: {type: 'EmptyStatement'} + } + }, + alternate: {type: 'EmptyStatement'} +} +``` +The above node cannot be represented as a JavaScript code, since the top level `else` alternate belongs to an inner `IfStatement`. + + +### code + +#### code.isDecimalDigit(code) + +Return true if provided code is decimal digit. + +#### code.isHexDigit(code) + +Return true if provided code is hexadecimal digit. + +#### code.isOctalDigit(code) + +Return true if provided code is octal digit. + +#### code.isWhiteSpace(code) + +Return true if provided code is white space. White space characters are formally defined in ECMA262. + +#### code.isLineTerminator(code) + +Return true if provided code is line terminator. Line terminator characters are formally defined in ECMA262. + +#### code.isIdentifierStart(code) + +Return true if provided code can be the first character of ECMA262 Identifier. They are formally defined in ECMA262. + +#### code.isIdentifierPart(code) + +Return true if provided code can be the trailing character of ECMA262 Identifier. They are formally defined in ECMA262. + +### keyword + +#### keyword.isKeywordES5(id, strict) + +Returns `true` if provided identifier string is a Keyword or Future Reserved Word +in ECMA262 edition 5.1. They are formally defined in ECMA262 sections +[7.6.1.1](http://es5.github.io/#x7.6.1.1) and [7.6.1.2](http://es5.github.io/#x7.6.1.2), +respectively. If the `strict` flag is truthy, this function additionally checks whether +`id` is a Keyword or Future Reserved Word under strict mode. + +#### keyword.isKeywordES6(id, strict) + +Returns `true` if provided identifier string is a Keyword or Future Reserved Word +in ECMA262 edition 6. They are formally defined in ECMA262 sections +[11.6.2.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-keywords) and +[11.6.2.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-future-reserved-words), +respectively. If the `strict` flag is truthy, this function additionally checks whether +`id` is a Keyword or Future Reserved Word under strict mode. + +#### keyword.isReservedWordES5(id, strict) + +Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 5.1. +They are formally defined in ECMA262 section [7.6.1](http://es5.github.io/#x7.6.1). +If the `strict` flag is truthy, this function additionally checks whether `id` +is a Reserved Word under strict mode. + +#### keyword.isReservedWordES6(id, strict) + +Returns `true` if provided identifier string is a Reserved Word in ECMA262 edition 6. +They are formally defined in ECMA262 section [11.6.2](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-reserved-words). +If the `strict` flag is truthy, this function additionally checks whether `id` +is a Reserved Word under strict mode. + +#### keyword.isRestrictedWord(id) + +Returns `true` if provided identifier string is one of `eval` or `arguments`. +They are restricted in strict mode code throughout ECMA262 edition 5.1 and +in ECMA262 edition 6 section [12.1.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-identifiers-static-semantics-early-errors). + +#### keyword.isIdentifierName(id) + +Return true if provided identifier string is an IdentifierName as specified in +ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). + +#### keyword.isIdentifierES5(id, strict) + +Return true if provided identifier string is an Identifier as specified in +ECMA262 edition 5.1 section [7.6](https://es5.github.io/#x7.6). If the `strict` +flag is truthy, this function additionally checks whether `id` is an Identifier +under strict mode. + +#### keyword.isIdentifierES6(id, strict) + +Return true if provided identifier string is an Identifier as specified in +ECMA262 edition 6 section [12.1](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-identifiers). +If the `strict` flag is truthy, this function additionally checks whether `id` +is an Identifier under strict mode. + +### License + +Copyright (C) 2013 [Yusuke Suzuki](http://github.com/Constellation) + (twitter: [@Constellation](http://twitter.com/Constellation)) and other contributors. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/node_modules/doctrine/node_modules/esutils/lib/ast.js b/node_modules/doctrine/node_modules/esutils/lib/ast.js new file mode 100644 index 000000000..8faadae1c --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/lib/ast.js @@ -0,0 +1,144 @@ +/* + Copyright (C) 2013 Yusuke Suzuki + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +(function () { + 'use strict'; + + function isExpression(node) { + if (node == null) { return false; } + switch (node.type) { + case 'ArrayExpression': + case 'AssignmentExpression': + case 'BinaryExpression': + case 'CallExpression': + case 'ConditionalExpression': + case 'FunctionExpression': + case 'Identifier': + case 'Literal': + case 'LogicalExpression': + case 'MemberExpression': + case 'NewExpression': + case 'ObjectExpression': + case 'SequenceExpression': + case 'ThisExpression': + case 'UnaryExpression': + case 'UpdateExpression': + return true; + } + return false; + } + + function isIterationStatement(node) { + if (node == null) { return false; } + switch (node.type) { + case 'DoWhileStatement': + case 'ForInStatement': + case 'ForStatement': + case 'WhileStatement': + return true; + } + return false; + } + + function isStatement(node) { + if (node == null) { return false; } + switch (node.type) { + case 'BlockStatement': + case 'BreakStatement': + case 'ContinueStatement': + case 'DebuggerStatement': + case 'DoWhileStatement': + case 'EmptyStatement': + case 'ExpressionStatement': + case 'ForInStatement': + case 'ForStatement': + case 'IfStatement': + case 'LabeledStatement': + case 'ReturnStatement': + case 'SwitchStatement': + case 'ThrowStatement': + case 'TryStatement': + case 'VariableDeclaration': + case 'WhileStatement': + case 'WithStatement': + return true; + } + return false; + } + + function isSourceElement(node) { + return isStatement(node) || node != null && node.type === 'FunctionDeclaration'; + } + + function trailingStatement(node) { + switch (node.type) { + case 'IfStatement': + if (node.alternate != null) { + return node.alternate; + } + return node.consequent; + + case 'LabeledStatement': + case 'ForStatement': + case 'ForInStatement': + case 'WhileStatement': + case 'WithStatement': + return node.body; + } + return null; + } + + function isProblematicIfStatement(node) { + var current; + + if (node.type !== 'IfStatement') { + return false; + } + if (node.alternate == null) { + return false; + } + current = node.consequent; + do { + if (current.type === 'IfStatement') { + if (current.alternate == null) { + return true; + } + } + current = trailingStatement(current); + } while (current); + + return false; + } + + module.exports = { + isExpression: isExpression, + isStatement: isStatement, + isIterationStatement: isIterationStatement, + isSourceElement: isSourceElement, + isProblematicIfStatement: isProblematicIfStatement, + + trailingStatement: trailingStatement + }; +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/node_modules/esutils/lib/code.js b/node_modules/doctrine/node_modules/esutils/lib/code.js new file mode 100644 index 000000000..730292a34 --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/lib/code.js @@ -0,0 +1,101 @@ +/* + Copyright (C) 2013-2014 Yusuke Suzuki + Copyright (C) 2014 Ivan Nikulin + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +(function () { + 'use strict'; + + var Regex, NON_ASCII_WHITESPACES; + + // See `tools/generate-identifier-regex.js`. + Regex = { + NonAsciiIdentifierStart: new RegExp('[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]'), + NonAsciiIdentifierPart: new RegExp('[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0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BC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]') + }; + + function isDecimalDigit(ch) { + return (ch >= 48 && ch <= 57); // 0..9 + } + + function isHexDigit(ch) { + return isDecimalDigit(ch) || // 0..9 + (97 <= ch && ch <= 102) || // a..f + (65 <= ch && ch <= 70); // A..F + } + + function isOctalDigit(ch) { + return (ch >= 48 && ch <= 55); // 0..7 + } + + // 7.2 White Space + + NON_ASCII_WHITESPACES = [ + 0x1680, 0x180E, + 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, + 0x202F, 0x205F, + 0x3000, + 0xFEFF + ]; + + function isWhiteSpace(ch) { + return (ch === 0x20) || (ch === 0x09) || (ch === 0x0B) || (ch === 0x0C) || (ch === 0xA0) || + (ch >= 0x1680 && NON_ASCII_WHITESPACES.indexOf(ch) >= 0); + } + + // 7.3 Line Terminators + + function isLineTerminator(ch) { + return (ch === 0x0A) || (ch === 0x0D) || (ch === 0x2028) || (ch === 0x2029); + } + + // 7.6 Identifier Names and Identifiers + + function isIdentifierStart(ch) { + return (ch >= 97 && ch <= 122) || // a..z + (ch >= 65 && ch <= 90) || // A..Z + (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore) + (ch === 92) || // \ (backslash) + ((ch >= 0x80) && Regex.NonAsciiIdentifierStart.test(String.fromCharCode(ch))); + } + + function isIdentifierPart(ch) { + return (ch >= 97 && ch <= 122) || // a..z + (ch >= 65 && ch <= 90) || // A..Z + (ch >= 48 && ch <= 57) || // 0..9 + (ch === 36) || (ch === 95) || // $ (dollar) and _ (underscore) + (ch === 92) || // \ (backslash) + ((ch >= 0x80) && Regex.NonAsciiIdentifierPart.test(String.fromCharCode(ch))); + } + + module.exports = { + isDecimalDigit: isDecimalDigit, + isHexDigit: isHexDigit, + isOctalDigit: isOctalDigit, + isWhiteSpace: isWhiteSpace, + isLineTerminator: isLineTerminator, + isIdentifierStart: isIdentifierStart, + isIdentifierPart: isIdentifierPart + }; +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/node_modules/esutils/lib/keyword.js b/node_modules/doctrine/node_modules/esutils/lib/keyword.js new file mode 100644 index 000000000..884be72fb --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/lib/keyword.js @@ -0,0 +1,137 @@ +/* + Copyright (C) 2013 Yusuke Suzuki + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +(function () { + 'use strict'; + + var code = require('./code'); + + function isStrictModeReservedWordES6(id) { + switch (id) { + case 'implements': + case 'interface': + case 'package': + case 'private': + case 'protected': + case 'public': + case 'static': + case 'let': + return true; + default: + return false; + } + } + + function isKeywordES5(id, strict) { + // yield should not be treated as keyword under non-strict mode. + if (!strict && id === 'yield') { + return false; + } + return isKeywordES6(id, strict); + } + + function isKeywordES6(id, strict) { + if (strict && isStrictModeReservedWordES6(id)) { + return true; + } + + switch (id.length) { + case 2: + return (id === 'if') || (id === 'in') || (id === 'do'); + case 3: + return (id === 'var') || (id === 'for') || (id === 'new') || (id === 'try'); + case 4: + return (id === 'this') || (id === 'else') || (id === 'case') || + (id === 'void') || (id === 'with') || (id === 'enum'); + case 5: + return (id === 'while') || (id === 'break') || (id === 'catch') || + (id === 'throw') || (id === 'const') || (id === 'yield') || + (id === 'class') || (id === 'super'); + case 6: + return (id === 'return') || (id === 'typeof') || (id === 'delete') || + (id === 'switch') || (id === 'export') || (id === 'import'); + case 7: + return (id === 'default') || (id === 'finally') || (id === 'extends'); + case 8: + return (id === 'function') || (id === 'continue') || (id === 'debugger'); + case 10: + return (id === 'instanceof'); + default: + return false; + } + } + + function isReservedWordES5(id, strict) { + return id === 'null' || id === 'true' || id === 'false' || isKeywordES5(id, strict); + } + + function isReservedWordES6(id, strict) { + return id === 'null' || id === 'true' || id === 'false' || isKeywordES6(id, strict); + } + + function isRestrictedWord(id) { + return id === 'eval' || id === 'arguments'; + } + + function isIdentifierName(id) { + var i, iz, ch; + + if (id.length === 0) { + return false; + } + + ch = id.charCodeAt(0); + if (!code.isIdentifierStart(ch) || ch === 92) { // \ (backslash) + return false; + } + + for (i = 1, iz = id.length; i < iz; ++i) { + ch = id.charCodeAt(i); + if (!code.isIdentifierPart(ch) || ch === 92) { // \ (backslash) + return false; + } + } + return true; + } + + function isIdentifierES5(id, strict) { + return isIdentifierName(id) && !isReservedWordES5(id, strict); + } + + function isIdentifierES6(id, strict) { + return isIdentifierName(id) && !isReservedWordES6(id, strict); + } + + module.exports = { + isKeywordES5: isKeywordES5, + isKeywordES6: isKeywordES6, + isReservedWordES5: isReservedWordES5, + isReservedWordES6: isReservedWordES6, + isRestrictedWord: isRestrictedWord, + isIdentifierName: isIdentifierName, + isIdentifierES5: isIdentifierES5, + isIdentifierES6: isIdentifierES6 + }; +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/node_modules/esutils/lib/utils.js b/node_modules/doctrine/node_modules/esutils/lib/utils.js new file mode 100644 index 000000000..ce18faa6b --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/lib/utils.js @@ -0,0 +1,33 @@ +/* + Copyright (C) 2013 Yusuke Suzuki + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY + DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + + +(function () { + 'use strict'; + + exports.ast = require('./ast'); + exports.code = require('./code'); + exports.keyword = require('./keyword'); +}()); +/* vim: set sw=4 ts=4 et tw=80 : */ diff --git a/node_modules/doctrine/node_modules/esutils/package.json b/node_modules/doctrine/node_modules/esutils/package.json new file mode 100644 index 000000000..70b22072a --- /dev/null +++ b/node_modules/doctrine/node_modules/esutils/package.json @@ -0,0 +1,49 @@ +{ + "name": "esutils", + "description": "utility box for ECMAScript language tools", + "homepage": "https://github.com/Constellation/esutils", + "main": "lib/utils.js", + "version": "1.1.6", + "engines": { + "node": ">=0.10.0" + }, + "directories": { + "lib": "./lib" + }, + "files": [ + "LICENSE.BSD", + "README.md", + "lib" + ], + "maintainers": [ + { + "name": "Yusuke Suzuki", + "email": "utatane.tea@gmail.com", + "web": "http://github.com/Constellation" + } + ], + "repository": { + "type": "git", + "url": "http://github.com/Constellation/esutils.git" + }, + "devDependencies": { + "mocha": "~1.12.0", + "chai": "~1.7.2", + "jshint": "2.1.5", + "coffee-script": "~1.6.3", + "unicode-6.3.0": "~0.1.1", + "regenerate": "~0.5.4" + }, + "licenses": [ + { + "type": "BSD", + "url": "http://github.com/Constellation/esutils/raw/master/LICENSE.BSD" + } + ], + "scripts": { + "test": "npm run-script lint && npm run-script unit-test", + "lint": "jshint lib/*.js", + "unit-test": "mocha --compilers coffee:coffee-script -R spec", + "generate-regex": "node tools/generate-identifier-regex.js" + } +} \ No newline at end of file diff --git a/node_modules/doctrine/package.json b/node_modules/doctrine/package.json new file mode 100644 index 000000000..09b0d3fa7 --- /dev/null +++ b/node_modules/doctrine/package.json @@ -0,0 +1,69 @@ +{ + "name": "doctrine", + "description": "JSDoc parser", + "homepage": "https://github.com/eslint/doctrine", + "main": "lib/doctrine.js", + "version": "0.7.2", + "engines": { + "node": ">=0.10.0" + }, + "directories": { + "lib": "./lib" + }, + "files": [ + "lib", + "LICENSE.BSD", + "LICENSE.closure-compiler", + "LICENSE.esprima", + "README.md" + ], + "maintainers": [ + { + "name": "Yusuke Suzuki", + "email": "utatane.tea@gmail.com", + "web": "http://github.com/Constellation" + } + ], + "repository": { + "type": "git", + "url": "http://github.com/eslint/doctrine.git" + }, + "devDependencies": { + "coveralls": "^2.11.2", + "dateformat": "^1.0.11", + "eslint": "^1.9.0", + "gulp": "^3.8.10", + "gulp-bump": "^0.1.13", + "gulp-eslint": "^0.5.0", + "gulp-filter": "^2.0.2", + "gulp-git": "^1.0.0", + "gulp-istanbul": "^0.6.0", + "gulp-jshint": "^1.9.0", + "gulp-mocha": "^2.0.0", + "gulp-tag-version": "^1.2.1", + "jshint-stylish": "^1.0.0", + "linefix": "^0.1.1", + "mocha": "^2.3.3", + "npm-license": "^0.3.1", + "semver": "^5.0.3", + "shelljs": "^0.5.3", + "shelljs-nodecli": "^0.1.1", + "should": "^5.0.1" + }, + "licenses": [ + { + "type": "BSD", + "url": "http://github.com/eslint/doctrine/raw/master/LICENSE.BSD" + } + ], + "scripts": { + "test": "gulp", + "unit-test": "gulp test", + "lint": "gulp lint", + "coveralls": "cat ./coverage/lcov.info | coveralls && rm -rf ./coverage" + }, + "dependencies": { + "esutils": "^1.1.6", + "isarray": "0.0.1" + } +} \ No newline at end of file diff --git a/node_modules/isarray/README.md b/node_modules/isarray/README.md new file mode 100644 index 000000000..052a62b8d --- /dev/null +++ b/node_modules/isarray/README.md @@ -0,0 +1,54 @@ + +# isarray + +`Array#isArray` for older browsers. + +## Usage + +```js +var isArray = require('isarray'); + +console.log(isArray([])); // => true +console.log(isArray({})); // => false +``` + +## Installation + +With [npm](http://npmjs.org) do + +```bash +$ npm install isarray +``` + +Then bundle for the browser with +[browserify](https://github.com/substack/browserify). + +With [component](http://component.io) do + +```bash +$ component install juliangruber/isarray +``` + +## License + +(MIT) + +Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/isarray/build/build.js b/node_modules/isarray/build/build.js new file mode 100644 index 000000000..ec58596ae --- /dev/null +++ b/node_modules/isarray/build/build.js @@ -0,0 +1,209 @@ + +/** + * Require the given path. + * + * @param {String} path + * @return {Object} exports + * @api public + */ + +function require(path, parent, orig) { + var resolved = require.resolve(path); + + // lookup failed + if (null == resolved) { + orig = orig || path; + parent = parent || 'root'; + var err = new Error('Failed to require "' + orig + '" from "' + parent + '"'); + err.path = orig; + err.parent = parent; + err.require = true; + throw err; + } + + var module = require.modules[resolved]; + + // perform real require() + // by invoking the module's + // registered function + if (!module.exports) { + module.exports = {}; + module.client = module.component = true; + module.call(this, module.exports, require.relative(resolved), module); + } + + return module.exports; +} + +/** + * Registered modules. + */ + +require.modules = {}; + +/** + * Registered aliases. + */ + +require.aliases = {}; + +/** + * Resolve `path`. + * + * Lookup: + * + * - PATH/index.js + * - PATH.js + * - PATH + * + * @param {String} path + * @return {String} path or null + * @api private + */ + +require.resolve = function(path) { + if (path.charAt(0) === '/') path = path.slice(1); + var index = path + '/index.js'; + + var paths = [ + path, + path + '.js', + path + '.json', + path + '/index.js', + path + '/index.json' + ]; + + for (var i = 0; i < paths.length; i++) { + var path = paths[i]; + if (require.modules.hasOwnProperty(path)) return path; + } + + if (require.aliases.hasOwnProperty(index)) { + return require.aliases[index]; + } +}; + +/** + * Normalize `path` relative to the current path. + * + * @param {String} curr + * @param {String} path + * @return {String} + * @api private + */ + +require.normalize = function(curr, path) { + var segs = []; + + if ('.' != path.charAt(0)) return path; + + curr = curr.split('/'); + path = path.split('/'); + + for (var i = 0; i < path.length; ++i) { + if ('..' == path[i]) { + curr.pop(); + } else if ('.' != path[i] && '' != path[i]) { + segs.push(path[i]); + } + } + + return curr.concat(segs).join('/'); +}; + +/** + * Register module at `path` with callback `definition`. + * + * @param {String} path + * @param {Function} definition + * @api private + */ + +require.register = function(path, definition) { + require.modules[path] = definition; +}; + +/** + * Alias a module definition. + * + * @param {String} from + * @param {String} to + * @api private + */ + +require.alias = function(from, to) { + if (!require.modules.hasOwnProperty(from)) { + throw new Error('Failed to alias "' + from + '", it does not exist'); + } + require.aliases[to] = from; +}; + +/** + * Return a require function relative to the `parent` path. + * + * @param {String} parent + * @return {Function} + * @api private + */ + +require.relative = function(parent) { + var p = require.normalize(parent, '..'); + + /** + * lastIndexOf helper. + */ + + function lastIndexOf(arr, obj) { + var i = arr.length; + while (i--) { + if (arr[i] === obj) return i; + } + return -1; + } + + /** + * The relative require() itself. + */ + + function localRequire(path) { + var resolved = localRequire.resolve(path); + return require(resolved, parent, path); + } + + /** + * Resolve relative to the parent. + */ + + localRequire.resolve = function(path) { + var c = path.charAt(0); + if ('/' == c) return path.slice(1); + if ('.' == c) return require.normalize(p, path); + + // resolve deps by returning + // the dep in the nearest "deps" + // directory + var segs = parent.split('/'); + var i = lastIndexOf(segs, 'deps') + 1; + if (!i) i = 0; + path = segs.slice(0, i + 1).join('/') + '/deps/' + path; + return path; + }; + + /** + * Check if module is defined at `path`. + */ + + localRequire.exists = function(path) { + return require.modules.hasOwnProperty(localRequire.resolve(path)); + }; + + return localRequire; +}; +require.register("isarray/index.js", function(exports, require, module){ +module.exports = Array.isArray || function (arr) { + return Object.prototype.toString.call(arr) == '[object Array]'; +}; + +}); +require.alias("isarray/index.js", "isarray/index.js"); + diff --git a/node_modules/isarray/component.json b/node_modules/isarray/component.json new file mode 100644 index 000000000..9e31b6838 --- /dev/null +++ b/node_modules/isarray/component.json @@ -0,0 +1,19 @@ +{ + "name" : "isarray", + "description" : "Array#isArray for older browsers", + "version" : "0.0.1", + "repository" : "juliangruber/isarray", + "homepage": "https://github.com/juliangruber/isarray", + "main" : "index.js", + "scripts" : [ + "index.js" + ], + "dependencies" : {}, + "keywords": ["browser","isarray","array"], + "author": { + "name": "Julian Gruber", + "email": "mail@juliangruber.com", + "url": "http://juliangruber.com" + }, + "license": "MIT" +} diff --git a/node_modules/isarray/index.js b/node_modules/isarray/index.js new file mode 100644 index 000000000..5f5ad45d4 --- /dev/null +++ b/node_modules/isarray/index.js @@ -0,0 +1,3 @@ +module.exports = Array.isArray || function (arr) { + return Object.prototype.toString.call(arr) == '[object Array]'; +}; diff --git a/node_modules/isarray/package.json b/node_modules/isarray/package.json new file mode 100644 index 000000000..615e6c214 --- /dev/null +++ b/node_modules/isarray/package.json @@ -0,0 +1,29 @@ +{ + "name": "isarray", + "description": "Array#isArray for older browsers", + "version": "0.0.1", + "repository": { + "type": "git", + "url": "git://github.com/juliangruber/isarray.git" + }, + "homepage": "https://github.com/juliangruber/isarray", + "main": "index.js", + "scripts": { + "test": "tap test/*.js" + }, + "dependencies": {}, + "devDependencies": { + "tap": "*" + }, + "keywords": [ + "browser", + "isarray", + "array" + ], + "author": { + "name": "Julian Gruber", + "email": "mail@juliangruber.com", + "url": "http://juliangruber.com" + }, + "license": "MIT" +} \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/CHANGELOG.md b/node_modules/tslint-eslint-rules/CHANGELOG.md new file mode 100644 index 000000000..d819e6aa4 --- /dev/null +++ b/node_modules/tslint-eslint-rules/CHANGELOG.md @@ -0,0 +1,398 @@ +# Change Log + +## [Unreleased] + +## [v5.4.0] - August 14, 2018 +*Rules* +- `ter-padded-blocks` + +*Updates* +- `object-curly-spacing`: supports `arraysInObjects/objectsInObjects` options. +- Support for typescript 3.0 + + +## [v5.3.1] - May 15, 2018 +#### Features +- `valid-jsdoc` recognizes `@inheritDoc` tag + +#### Bug fixes +- `sort-imports` rule reads imports correctly (Issue #319) +- `space-in-parens` bugfix when using default options (Issue #305) +- `no-multi-spaces` bugfix in string literals. + +NOTE: The Github tag v5.3.0 was deleted since it the NPM package +missed a bugfix due to not syncing the branches locally. + + +## [v5.2.0] - May 08, 2018 +### Rules +- `ter-no-proto` +- `ter-no-script-url` +- `ter-no-self-compare` + +### Fixes +- `ter-newline-after-var` - issue 302 + + +## [v5.1.0] - Feb 24, 2018 +### Rules +- `ter-padded-blocks` + +### Fixes +- `ter-indent`: failed when missing `VariableDeclarator` options ([bfff0e6]) +- `ter-newline-after-var`: incorrectly fixing code and within try catch block ([d930c6c]) + +[bfff0e6]: https://github.com/buzinas/tslint-eslint-rules/commit/bfff0e60263ff4fa38280739566e99c523d9fd4d +[d930c6c]: https://github.com/buzinas/tslint-eslint-rules/commit/d930c6c76de65f9f94d95624a65f5cfd537fe571 + +## [v5.0.0] - Feb 14, 2018 +### Upgraded to TSLint 5.9 and Typescript 2.6 +- NOTE: Another release will come soon that uses 2.7 + +#### Rules Added +- `ter-no-tabs` + +See the differences in [v5.0.0] for more information on the changes. + + +## [v4.1.1] - May 26, 2017 +#### Fixes +- valid-jsdoc reported missing return with abstract methods ([3bd2dafb]) + +[3bd2dafb]: https://github.com/buzinas/tslint-eslint-rules/commit/3bd2dafb22174d2912f1a9b73ca917abe52107fc + + +## [v4.1.0] - May 21, 2017 +#### Fixes +- valid-jsdoc reported at wrong location ([82a3ca75]) + +#### Rules Added +- [ter-func-call-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terFuncCallSpacingRule.md) + +#### Name Change +The following rule names have been renamed since they are no longer accessible with TSLint 5.0. + +- `no-irregular-whitespace` changed to `ter-no-irregular-whitespace` +- `no-sparse-arrays` changed to `ter-no-sparse-arrays` + +#### Removed +- `use-isnan`: This rule is now provided by TSLint. + +[82a3ca75]: https://github.com/buzinas/tslint-eslint-rules/commit/82a3ca75678240976d868498407b3763ff57419c + + +## [v4.0.0] - April 4, 2017 +### Upgraded to [TSLint 5.0](https://github.com/palantir/tslint/releases/tag/5.0.0) + + +## [v3.5.1] - 2017/03/17 23:00 GMT-0600 +#### Fixes +- sort-imports bug in simple type imports ([3d57149]) + +[3d57149]: https://github.com/buzinas/tslint-eslint-rules/commit/3d571494aa5642f19f856fc361d5723a1b792e4a + + +## [v3.5.0] - 2017/03/16 15:20 GMT-0600 +#### Fixes +- valid-jsdoc crashed with missing return type ([de16445]) + +#### Features +- valid-jsdoc added option to omitt return and parameters type ([b81e671]) + +#### Rules Added +- [sort-imports](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/sortImportsRule.md) + +#### Fixers Added +- ter-indent ([b76ee05]) + +#### Other Changes + +`tslint` peer dependency updated to 4.5.0 + +[de16445]: https://github.com/buzinas/tslint-eslint-rules/commit/de164458164116b1743d0cdc57fcfbcd6a4109c4 +[b76ee05]: https://github.com/buzinas/tslint-eslint-rules/commit/b76ee05033a273bdf61b6ee7465290ad8c4a73f1 +[b81e671]: https://github.com/buzinas/tslint-eslint-rules/commit/b81e67141abf76f976ab399a0f16f50e971891b8 + + +## [v3.4.0] - 2017/02/16 15:40 GMT-0600 +#### Fixes +- array-bracket-spacing handles comments ([9c551d7]) + +#### Rules Added +- [space-in-parens](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/spaceInParensRule.md) + +#### Fixers Added +- object-curly-spacing ([ec81eb4]) +- array-bracket-spacing ([3c689ff]) +- space-in-parens ([cd50170]) + +#### Other Changes + +`tslint` is no longer a `dependency`. Instead it is a `peerDependency` and `devDependency`. + +[ec81eb4]: https://github.com/buzinas/tslint-eslint-rules/commit/ec81eb457aa1758dbc35fd4ea01519fc934e1259 +[3c689ff]: https://github.com/buzinas/tslint-eslint-rules/commit/3c689ffa23b36870e9fae8bb04ccdbe51cbf04c7 +[cd50170]: https://github.com/buzinas/tslint-eslint-rules/commit/cd50170f658c62062dff3fa60d501cebccd98d9e +[9c551d7]: https://github.com/buzinas/tslint-eslint-rules/commit/9c551d7eaaa55289cc326e16e804d702c36cc3a1 + + +## [v3.3.0] - 2017/02/04 04:45 GMT-0600 +#### Changes +- Build errors fixed ([d163eb5]) +- TSLint extends support ([18902f1]) + +[d163eb5]: https://github.com/buzinas/tslint-eslint-rules/commit/d163eb5aa438cce25da2624cf43c478544e7889b +[18902f1]: https://github.com/buzinas/tslint-eslint-rules/commit/18902f10939aeb4dedbcb7334be42d462846457c + + +## [v3.2.3] - 2016/12/24 22:52 GMT-0600 +#### Fixes +- handle-callback-err ([0a9a882]) + +[0a9a882]: https://github.com/buzinas/tslint-eslint-rules/commit/0a9a88284f199ec292bcea0534b4323f10a5bc50 + + +## [v3.2.2] - 2016/12/24 12:10 GMT-0600 +#### Fixes +- ter-indent + - JSDocs no longer break variable declarations [cb01358] + - Interfaces are also checked for indentation [5be6774] +- handle-callback-err: [Issue 153](https://github.com/buzinas/tslint-eslint-rules/issues/153) + - Added `allowProperties` option to make the rule more strict. + +Note that the npm release `v3.2.1` only contains this hotfix [cb01358]. + +[5be6774]: https://github.com/buzinas/tslint-eslint-rules/commit/5be67747d4a74e216be14fc332e3871546609cdd +[cb01358]: https://github.com/buzinas/tslint-eslint-rules/commit/cb013580a74a2eb6781a6a0701a7bfafc0818c75 + + +## [v3.2.0] - 2016/12/14 00:50 GMT-0600 +#### Rules Added +- [ter-arrow-body-style](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowBodyStyleRule.md) +- [ter-arrow-parens](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowParensRule.md) +- [ter-arrow-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowSpacingRule.md) + +#### Fixes +- handle-callback-err: [Issue 146](https://github.com/buzinas/tslint-eslint-rules/issues/146) + +#### Changes +- Added contributing file detailing how to use the current gulp tasks +- Added links to the rule and test source in each of the rule documentation + +## [v3.1.0] - 2016/11/29 23:20 GTM-0600 +#### Rules Added +- ter-prefer-arrow-callback + +#### Fixes +- ter-indent: + - issues with try/catch statements + - issues with return statements + - issues with method declarations + - A `CallExpression` option has been added. + + +## [v3.0.0] - 2016/11/21 12:36 GTM-0600 +### Upgraded to [TSLint 4.0](https://palantir.github.io/tslint/2016/11/17/new-for-4.0.html) +- Several rules are no longer applicable + - no-duplicate-key + - no-unreachable + - no-unused-variable + - use-strict + +#### Developer Tools +- Added RuleTester to help writing tests, see [max-len-rule](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/test/rules/terMaxLenRuleTests.ts) and [no-multi-spaces](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/test/rules/noMultiSpacesRuleTests.ts) for usage examples. + + +## [v2.2.1] - 2016/11/17 21:50 GMT-0600 +#### Fixes +- ter-max-len ([539b3c2](https://github.com/buzinas/tslint-eslint-rules/commit/539b3c210d1fd157d27a9fb61e123c28249e7690)) + + +## [v2.2.0] - 2016/11/17 02:30 GMT-0600 +#### Rules Added +- ter-indent ([b0334d4](https://github.com/buzinas/tslint-eslint-rules/commit/b0334d4fbf7286e07521cbffc5fa90f96e536224)) +- ter-max-len ([5938feb](https://github.com/buzinas/tslint-eslint-rules/commit/5938feb4c290de54e80ddd4bfdd3259441124279)) + +#### Fixes +- no-constant-condition ([b0456a4](https://github.com/buzinas/tslint-eslint-rules/commit/b0456a45b25dd7df488880a61027cf485329fe91)) + +#### Changes +- Rule documentation can be generated from its metadata ([d6ea71e](https://github.com/buzinas/tslint-eslint-rules/commit/d6ea71ee398c26e55d9bc86f01bbe2beca08b350)) + + +## [v2.1.0] - 2016/10/03 19:29 +00:00 +#### Fixes +- handle-callback-err ([caf6ec6](https://github.com/buzinas/tslint-eslint-rules/commit/caf6ec62be772297c18a9dd56d280d9b2dac076a)) + +#### Changes +- Added support for node 4 ([4785e36](https://github.com/buzinas/tslint-eslint-rules/commit/4785e3637166072d10fec61c9bf8a3350aa05733)) +- Added support for node 0.10 ([adc290c](https://github.com/buzinas/tslint-eslint-rules/commit/adc290c02f1299251637ce5d448a3c152b58dc56)) +- Using `es5` as the TypeScript target ([83ad6e3](https://github.com/buzinas/tslint-eslint-rules/commit/83ad6e3c89eb88a55707502c1251255771805e4a)) + + +## [v2.0.0] - 2016/10/01 06:12 +00:00 +### Upgraded to [TypeScript 2.0](https://www.typescriptlang.org/docs/release-notes/typescript-2.0.html) +- Using `es6` as the TypeScript target. +- Dropped support for node 4 + + +## [v1.6.1] - 2016/10/01 05:41 +00:00 +#### Fixes +- no-ex-assign ([31afa69](https://github.com/buzinas/tslint-eslint-rules/commit/31afa69d1718bda1b6d7b9f16c77ef1eb157bb37)) + + +## [v1.6.0] - 2016/09/27 05:56 +00:00 +#### Rules Added +- no-multi-spaces ([7972712](https://github.com/buzinas/tslint-eslint-rules/commit/79727121b64c383bc3c66f8bf2d5feaab3f2ad02)) + +#### Fixes +- no-constant-condition ([3f8dcc5](https://github.com/buzinas/tslint-eslint-rules/commit/3f8dcc5a2f5804243c86a47ba6dbfb4a2241d771)) +- no-ex-assign ([93de74b](https://github.com/buzinas/tslint-eslint-rules/commit/93de74b4d33bb4d6c32c047ac995dd57eb92648d)) +- no-extra-boolean-cast ([8a98530](https://github.com/buzinas/tslint-eslint-rules/commit/8a985309a3c2c645fdd143ae893b026710fa8c01)) + +#### Changes +- README rules documentation replaced for a table ([1c86880](https://github.com/buzinas/tslint-eslint-rules/commit/1c868803f270ec664a1199dc6df2844bae097ea8)) +- Added markdown files for each of the existing rules ([9617910](https://github.com/buzinas/tslint-eslint-rules/commit/961791020bb7947c1c4e942b5f7875165a693b2a)) + +## [v1.5.0] - 2016/09/05 15:10 +00:00 +#### Rules Added +- object-curly-spacing ([28c5727](https://github.com/buzinas/tslint-eslint-rules/commit/28c57275aeb62d83e5df7d6f75dfd9c52b05d2bc)) + +#### Changes +- Updated Contribution section in README to mention new gulp options + + +## [v1.4.0] - 2016/09/05 13:47 +00:00 +#### Fixes +- block-spacing ([3ad19dd](https://github.com/buzinas/tslint-eslint-rules/commit/3ad19dd4f6aab0cf744880998db3066f2ad99a11)) +- brace-style ([874440f](https://github.com/buzinas/tslint-eslint-rules/commit/874440f99f2a37a3acf42939bdcd0212ec0dd148)) +- handle-callback-err ([c6b2b40](https://github.com/buzinas/tslint-eslint-rules/commit/c6b2b4088023381895f94abf53037c89c75bdace)) +- no-inner-declarations ([debb0f7](https://github.com/buzinas/tslint-eslint-rules/commit/debb0f7d3fb4939242f5f0207d9ab31a30c6087a)) +- valid-js-doc ([951a64c](https://github.com/buzinas/tslint-eslint-rules/commit/951a64cbb0c11070ab0fa26c2672cc0bed08e0e3)) + + +## [v1.3.0] - 2016/04/28 22:05 +00:00 +#### Rules Added +- handle-callback-err ([8f6f4c3](https://github.com/buzinas/tslint-eslint-rules/commit/8f6f4c3bf147647ed66de5bf5baf37e96e7886f7)) +- brace-style ([34b97dc](https://github.com/buzinas/tslint-eslint-rules/commit/34b97dc92f6fa9ff0d5115b8493322e0c90811ab)) +- block-spacing ([d0de347](https://github.com/buzinas/tslint-eslint-rules/commit/d0de34796ac0953113f52eee32c74101efb2fb12)) + +#### Fixes +- no-inner-declarations ([49f410c](https://github.com/buzinas/tslint-eslint-rules/commit/49f410caefe92a34c81aba425712758a4ac723af)) + + +## [v1.2.0] - 2016/04/04 17:28 +00:00 +#### Rules Added +- array-bracket-spacing ([2ed91e2](https://github.com/buzinas/tslint-eslint-rules/commit/2ed91e2d6c3691ada63ae855bdfb73d4315174de)) + +#### Changes +- Updated README to fit current ESLint rules ([aa5c342](https://github.com/buzinas/tslint-eslint-rules/commit/aa5c342)) + +#### Fixes +- no-unexpected-multiline issue ([bdca78a](https://github.com/buzinas/tslint-eslint-rules/commit/bdca78ae91cca963e9b93c3bdcb18e661378f55a)) +- no-constant-condition issue ([4904bec](https://github.com/buzinas/tslint-eslint-rules/commit/4904bec6846d96275901d2570a314f4441f937fe)) + + +## [v1.1.1] - 2016/03/21 18:29 +00:00 +#### Added +- index.js ([cd376d0](https://github.com/buzinas/tslint-eslint-rules/commit/cd376d0877aaec62acc7a4dd4d17e66d0807c3a4)) + + +## [v1.1.0] - 2016/03/18 17:05 +00:00 +#### Changes +- Updated npm dependencies + +#### Fixes +- no-ex-assign: updated failure string and added test for false positive ([9da7ba8](https://github.com/buzinas/tslint-eslint-rules/commit/9da7ba8a45d172c5f5c04733da210a2b0a59d272)) + + +## [v1.0.0] - 2015/12/14 17:14 +00:00 +### First stable version +- Improved documentation +- Updated dependencies + +## [v0.3.0] - 2015/11/19 14:47 +00:00 +#### Rules Added +- valid-jsdoc ([3deb2a3](https://github.com/buzinas/tslint-eslint-rules/commit/3deb2a35789142ca58741c134b158d7ff66b4a20)) + + +## [v0.2.7] - 2015/11/17 14:00 +00:00 +#### Rules Added +- no-irregular-whitespace ([15056f0](https://github.com/buzinas/tslint-eslint-rules/commit/15056f0722bee86c4fad44156622af4473261c47)) + + +## [v0.2.6] - 2015/11/17 12:07 +00:00 +#### Rules Added +- no-regex-spaces ([c92f89e](https://github.com/buzinas/tslint-eslint-rules/commit/c92f89e31a10eb97660fd2310ec6718fcab3b3b4)) +- no-empty-character ([1eb3425](https://github.com/buzinas/tslint-eslint-rules/commit/1eb34253bc16ceb05c061fa5de0dd5d2d8f9054b)) +- no-control-regex ([17c66cf](https://github.com/buzinas/tslint-eslint-rules/commit/17c66cf8bf0590d1a138326ef54c0c10a8cbd71d)) + + +## [v0.2.5] - 2015/11/17 11:11 +00:00 +#### Rules Added +- no-inner-declarations ([97a0e63](https://github.com/buzinas/tslint-eslint-rules/commit/97a0e637e919d741df56f9872057b9d902f4d4f2)) + + +## [v0.2.4] - 2015/11/17 01:01 +00:00 +#### Rules Added +- no-invalid-regexp ([7c2f010](https://github.com/buzinas/tslint-eslint-rules/commit/7c2f0104696f85b03ead14f771406c4845cec819)) + +#### Changes +- Improved README with commit conventions ([63b0536](https://github.com/buzinas/tslint-eslint-rules/commit/63b053653c2234b531ee233185fdb07d3bd04545)) + + +## [v0.2.3] - 2015/11/14 15:02 +00:00 +#### Rules Added +- no-constant-condition ([d5b7f38](https://github.com/buzinas/tslint-eslint-rules/commit/d5b7f38a82abb86bd7503b20dc47b06b07c59211)) +- no-duplicate-case ([ac1bb70](https://github.com/buzinas/tslint-eslint-rules/commit/ac1bb700f4f04639cdef40996b2c0c6d42231a23)) +- no-sparse-arrays ([55f8481](https://github.com/buzinas/tslint-eslint-rules/commit/55f84818d7c2d031699fbd1f98ee97e33a755cb7)) +- no-extra-semi ([4b886d3](https://github.com/buzinas/tslint-eslint-rules/commit/4b886d340890f5aaf035cee18b8993de67a234ee)) +- no-extra-boolean-cast ([a5882da](https://github.com/buzinas/tslint-eslint-rules/commit/a5882daf7221aa7c0b6032ed67830f2762704c86)) +- no-ex-assign ([9292423](https://github.com/buzinas/tslint-eslint-rules/commit/9292423a033abb75ddcd5ade48f5026861273e05)) +- no-unexpected-multiline ([2ad0d8b](https://github.com/buzinas/tslint-eslint-rules/commit/2ad0d8b0c464d23ed4d2a0735368341df0def496)) +- valid-typeof ([c2f242e](https://github.com/buzinas/tslint-eslint-rules/commit/c2f242ead01b7467a239398964d7f7543f395200)) +- use-isnan ([b07e3d7](https://github.com/buzinas/tslint-eslint-rules/commit/b07e3d757b6c15058e5110a39229fd617440064d)) + +#### Enhancements +- Added tslint as a dependency ([0fb030a](https://github.com/buzinas/tslint-eslint-rules/commit/0fb030a98fc47af7cb51843336c5c27e9c661ec5)) +- Added Travis CI integration ([2a4f9a2](https://github.com/buzinas/tslint-eslint-rules/commit/2a4f9a2c8c1cc024be51775d9be20444f947edb5)) +- Added and made lots of improvements in README.md + + +[Unreleased]: https://github.com/buzinas/tslint-eslint-rules/compare/v5.4.0...HEAD +[v5.4.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v5.3.1...v5.4.0 +[v5.3.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v5.2.0...v5.3.1 +[v5.2.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v5.1.0...v5.2.0 +[v5.1.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v5.0.0...v5.1.0 +[v5.0.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v4.1.1...v5.0.0 +[v4.1.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v4.1.0...v4.1.1 +[v4.1.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v4.0.0...v4.1.0 +[v4.0.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.5.1...v4.0.0 +[v3.5.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.5.0...v3.5.1 +[v3.5.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.4.0...v3.5.0 +[v3.4.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.3.0...v3.4.0 +[v3.3.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.2.3...v3.3.0 +[v3.2.3]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.2.2...v3.2.3 +[v3.2.2]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.2.0...v3.2.2 +[v3.2.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.1.0...v3.2.0 +[v3.1.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v3.0.0...v3.1.0 +[v3.0.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v2.2.1...v3.0.0 +[v2.2.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v2.2.0...v2.2.1 +[v2.2.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v2.1.0...v2.2.0 +[v2.1.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v2.0.0...v2.1.0 +[v2.0.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.6.1...v2.0.0 +[v1.6.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.6.0...v1.6.1 +[v1.6.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.5.0...v1.6.0 +[v1.5.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.4.0...v1.5.0 +[v1.4.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.3.0...v1.4.0 +[v1.3.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.2.0...v1.3.0 +[v1.2.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.1.1...v1.2.0 +[v1.1.1]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.1.0...v1.1.1 +[v1.1.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v1.0.0...v1.1.0 +[v1.0.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.3.0...v1.0.0 +[v0.3.0]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.2.7...v0.3.0 +[v0.2.7]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.2.6...v0.2.7 +[v0.2.6]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.2.5...v0.2.6 +[v0.2.5]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.2.4...v0.2.5 +[v0.2.4]: https://github.com/buzinas/tslint-eslint-rules/compare/v0.2.3...v0.2.4 +[v0.2.3]: https://github.com/buzinas/tslint-eslint-rules/compare/2601ba448c8e8d639539dc461d8b2dc43bb908fa...v0.2.3 diff --git a/node_modules/tslint-eslint-rules/LICENSE b/node_modules/tslint-eslint-rules/LICENSE new file mode 100644 index 000000000..a4d736372 --- /dev/null +++ b/node_modules/tslint-eslint-rules/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2015 Vitor Buzinaro, Victor Schiavi + + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/tslint-eslint-rules/README.md b/node_modules/tslint-eslint-rules/README.md new file mode 100644 index 000000000..f1073b2a3 --- /dev/null +++ b/node_modules/tslint-eslint-rules/README.md @@ -0,0 +1,345 @@ +[![Build Status](https://travis-ci.org/buzinas/tslint-eslint-rules.svg)](https://travis-ci.org/buzinas/tslint-eslint-rules) +[![Downloads per Month](https://img.shields.io/npm/dm/tslint-eslint-rules.svg)](https://www.npmjs.com/package/tslint-eslint-rules) +[![NPM Version](https://img.shields.io/npm/v/tslint-eslint-rules.svg)](https://www.npmjs.com/package/tslint-eslint-rules) +[![ZenHub](https://img.shields.io/badge/supercharged%20by-ZenHub.io-3F4D9C.svg)](https://zenhub.io/) +[![Shields.io](https://img.shields.io/badge/badges%20by-shields.io-ff69b4.svg)](https://shields.io/) +[![License](https://img.shields.io/npm/l/tslint-eslint-rules.svg)](LICENSE) + + +# ESLint rules for TSLint + +## Improve your TSLint with the missing ESLint Rules + +You want to code in TypeScript but miss all the rules available in ESLint? + +Now you can combine both worlds by using this TSLint plugin! + + +## Usage + +### Install from NPM to your Dev Dependencies + +```console +npm install --save-dev tslint-eslint-rules +``` + +### Or install from Yarn to your Dev Dependencies + +```console +yarn add tslint-eslint-rules --dev +``` + +### Configure TSLint to use `tslint-eslint-rules`: + +In your `tslint.json` file, extend this package, e.g: + +```json +{ + "extends": [ + "tslint-eslint-rules" + ], + "rules": { + "no-constant-condition": true + } +} +``` + +You can also extend other tslint config packages to combine this plugin with other community custom rules. + + +### Configure your rules + +In your `tslint.json` file, insert the rules as described below. + + +## Rules (copied from the [ESLint website](http://eslint.org/docs/rules/)) + +The following tables shows all the existing ESLint rules and the similar rules available in TSLint. +Please refer to the following icons as they provide the status of the rule. + +| Icon | Description | +| :--- | :-- | +| :no_entry_sign: | The rule is not applicable to Typescript. | +| :ballot_box_with_check: | The rule is provided natively by [TSLint](http://palantir.github.io/tslint/rules/). | +| :white_check_mark: | The rule is available via tslint-eslint-rules. | +| :x: | The rule is currently unavailable. | + + + + +### Possible Errors + +The following rules point out areas where you might have made mistakes. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:ballot_box_with_check:|[comma-dangle](http://eslint.org/docs/rules/comma-dangle)|[trailing-comma](http://palantir.github.io/tslint/rules/trailing-comma)|disallow or enforce trailing commas (recommended)| +|:ballot_box_with_check:|[no-cond-assign](http://eslint.org/docs/rules/no-cond-assign)|[no-conditional-assignment](http://palantir.github.io/tslint/rules/no-conditional-assignment)|disallow assignment in conditional expressions (recommended)| +|:ballot_box_with_check:|[no-console](http:/eslint.org/docs/rules/no-console)|[no-console](http://palantir.github.io/tslint/rules/no-console)|disallow use of `console` in the node environment (recommended)| +|:white_check_mark:|[no-constant-condition](http://eslint.org/docs/rules/no-constant-condition)|[no-constant-condition](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noConstantConditionRule.md)|disallow use of constant expressions in conditions (recommended)| +|:white_check_mark:|[no-control-regex](http://eslint.org/docs/rules/no-control-regex)|[no-control-regex](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noControlRegexRule.md)|disallow control characters in regular expressions (recommended)| +|:ballot_box_with_check:|[no-debugger](http://eslint.org/docs/rules/no-debugger)|[no-debugger](http://palantir.github.io/tslint/rules/no-debugger)|disallow use of `debugger` (recommended)| +|:no_entry_sign:|[no-dupe-args](http://eslint.org/docs/rules/no-dupe-args)|Not applicable|disallow duplicate arguments in functions (recommended)| +|:no_entry_sign:|[no-dupe-keys](http://eslint.org/docs/rules/no-dupe-keys)|Not applicable|disallow duplicate keys when creating object literals (recommended)| +|:white_check_mark:|[no-duplicate-case](http://eslint.org/docs/rules/no-duplicate-case)|[no-duplicate-case](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noDuplicateCaseRule.md)|disallow a duplicate case label. (recommended)| +|:ballot_box_with_check:|[no-empty](http://eslint.org/docs/rules/no-empty)|[no-empty](http://palantir.github.io/tslint/rules/no-empty)|disallow empty statements (recommended)| +|:white_check_mark:|[no-empty-character-class](http://eslint.org/docs/rules/no-empty-character-class)|[no-empty-character-class](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noEmptyCharacterClassRule.md)|disallow the use of empty character classes in regular expressions (recommended)| +|:white_check_mark:|[no-ex-assign](http://eslint.org/docs/rules/no-ex-assign)|[no-ex-assign](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noExAssignRule.md)|disallow assigning to the exception in a `catch` block (recommended)| +|:white_check_mark:|[no-extra-boolean-cast](http://eslint.org/docs/rules/no-extra-boolean-cast)|[no-extra-boolean-cast](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noExtraBooleanCastRule.md)|disallow double-negation boolean casts in a boolean context (recommended)| +|:x:|[no-extra-parens](http://eslint.org/docs/rules/no-extra-parens)|no-extra-parens|disallow unnecessary parentheses| +|:white_check_mark:|[no-extra-semi](http://eslint.org/docs/rules/no-extra-semi)|[no-extra-semi](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noExtraSemiRule.md)|disallow unnecessary semicolons (recommended)| +|:no_entry_sign:|[no-func-assign](http://eslint.org/docs/rules/no-func-assign)|Not applicable|disallow overwriting functions written as function declarations (recommended)| +|:white_check_mark:|[no-inner-declarations](http://eslint.org/docs/rules/no-inner-declarations)|[no-inner-declarations](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noInnerDeclarationsRule.md)|disallow function or variable declarations in nested blocks (recommended)| +|:white_check_mark:|[no-invalid-regexp](http://eslint.org/docs/rules/no-invalid-regexp)|[no-invalid-regexp](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noInvalidRegexpRule.md)|disallow invalid regular expression strings in the `RegExp` constructor (recommended)| +|:white_check_mark:|[no-irregular-whitespace](http://eslint.org/docs/rules/no-irregular-whitespace)|[ter-no-irregular-whitespace](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoIrregularWhitespaceRule.md)|disallow irregular whitespace (recommended)| +|:no_entry_sign:|[no-negated-in-lhs](http://eslint.org/docs/rules/no-negated-in-lhs)|Not applicable|disallow negation of the left operand of an `in` expression (recommended)| +|:no_entry_sign:|[no-obj-calls](http://eslint.org/docs/rules/no-obj-calls)|Not applicable|disallow the use of object properties of the global object (`Math` and `JSON`) as functions (recommended)| +|:white_check_mark:|[no-regex-spaces](http://eslint.org/docs/rules/no-regex-spaces)|[no-regex-spaces](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noRegexSpacesRule.md)|disallow multiple spaces in a regular expression literal (recommended)| +|:white_check_mark:|[no-sparse-arrays](http://eslint.org/docs/rules/no-sparse-arrays)|[ter-no-sparse-arrays](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoSparseArraysRule.md)|disallow sparse arrays (recommended)| +|:white_check_mark:|[no-unexpected-multiline](http://eslint.org/docs/rules/no-unexpected-multiline)|[no-unexpected-multiline](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noUnexpectedMultilineRule.md)|Avoid code that looks like two expressions but is actually one| +|:no_entry_sign:|[no-unreachable](http://eslint.org/docs/rules/no-unreachable)|Not applicable|disallow unreachable statements after a return, throw, continue, or break statement (recommended)| +|:ballot_box_with_check:|[no-unsafe-finally](http://eslint.org/docs/rules/no-unsafe-finally)|[no-unsafe-finally](https://palantir.github.io/tslint/rules/no-unsafe-finally)|disallow control flow statements in finally blocks (recommended)| +|:ballot_box_with_check:|[use-isnan](http://eslint.org/docs/rules/use-isnan)|[use-isnan](https://palantir.github.io/tslint/rules/use-isnan)|disallow comparisons with the value `NaN` (recommended)| +|:white_check_mark:|[valid-jsdoc](http://eslint.org/docs/rules/valid-jsdoc)|[valid-jsdoc](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/validJsdocRule.md)|enforce valid JSDoc comments| +|:white_check_mark:|[valid-typeof](http://eslint.org/docs/rules/valid-typeof)|[valid-typeof](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/validTypeofRule.md)|Ensure that the results of typeof are compared against a valid string (recommended)| + +### Best Practices + +These are rules designed to prevent you from making mistakes. They either + prescribe a better way of doing something or help you avoid footguns. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:x:|[accessor-pairs](http://eslint.org/docs/rules/accessor-pairs)|accessor-pairs|Enforces getter/setter pairs in objects| +|:x:|[array-callback-return](http://eslint.org/docs/rules/array-callback-return)|array-callback-return|Enforce return statements in callbacks of array’s methods| +|:x:|[block-scoped-var](http://eslint.org/docs/rules/block-scoped-var)|accessor-pairs|treat `var` statements as if they were block scoped| +|:ballot_box_with_check:|[complexity](http://eslint.org/docs/rules/complexity)|[cyclomatic-complexity](https://palantir.github.io/tslint/rules/cyclomatic-complexity)|specify the maximum cyclomatic complexity allowed in a program| +|:x:|[consistent-return](http://eslint.org/docs/rules/consistent-return)|consistent-return|require `return` statements to either always or never specify values| +|:ballot_box_with_check:|[curly](http://eslint.org/docs/rules/curly)|[curly](http://palantir.github.io/tslint/rules/curly)|specify curly brace conventions for all control statements| +|:ballot_box_with_check:|[default-case](http://eslint.org/docs/rules/default-case)|[switch-default](http://palantir.github.io/tslint/rules/switch-default)|require `default` case in `switch` statements| +|:x:|[dot-location](http://eslint.org/docs/rules/dot-location)|dot-location|enforces consistent newlines before or after dots| +|:x:|[dot-notation](http://eslint.org/docs/rules/dot-notation)|dot-notation|encourages use of dot notation whenever possible| +|:ballot_box_with_check:|[eqeqeq](http://eslint.org/docs/rules/eqeqeq)|[triple-equals](http://palantir.github.io/tslint/rules/triple-equals)|require the use of `===` and `!==`| +|:ballot_box_with_check:|[guard-for-in](http://eslint.org/docs/rules/guard-for-in)|[forin](http://palantir.github.io/tslint/rules/forin)|make sure `for-in` loops have an `if` statement| +|:ballot_box_with_check:|[no-alert](http://eslint.org/docs/rules/no-alert)|[ban](https://palantir.github.io/tslint/rules/ban)|disallow the use of `alert`, `confirm`, and `prompt`
can be achieved using the `"ban": [true, ["alert"]]` tslint rule| +|:ballot_box_with_check:|[no-caller](http://eslint.org/docs/rules/no-caller)|[no-arg](http://palantir.github.io/tslint/rules/no-arg)|disallow use of `arguments.caller` or `arguments.callee`| +|:x:|[no-case-declarations](http://eslint.org/docs/rules/no-case-declarations)|no-case-declarations|disallow lexical declarations in case clauses| +|:x:|[no-div-regex](http://eslint.org/docs/rules/no-div-regex)|no-div-regex|disallow division operators explicitly at beginning of regular expression| +|:x:|[no-else-return](http://eslint.org/docs/rules/no-else-return)|no-else-return|disallow `else` after a `return` in an `if`| +|:ballot_box_with_check:|[no-empty-function](http://eslint.org/docs/rules/no-empty-function)|[no-empty](http://palantir.github.io/tslint/rules/no-empty)|disallow use of empty functions| +|:x:|[no-empty-pattern](http://eslint.org/docs/rules/no-empty-pattern)|no-empty-pattern|disallow use of empty destructuring patterns| +|:x:|[no-eq-null](http://eslint.org/docs/rules/no-eq-null)|no-eq-null|disallow comparisons to null without a type-checking operator| +|:ballot_box_with_check:|[no-eval](http://eslint.org/docs/rules/no-eval)|[no-eval](http://palantir.github.io/tslint/rules/no-eval)|disallow use of `eval()`| +|:x:|[no-extend-native](http://eslint.org/docs/rules/no-extend-native)|no-extend-native|disallow adding to native types| +|:x:|[no-extra-bind](http://eslint.org/docs/rules/no-extra-bind)|no-extra-bind|disallow unnecessary function binding| +|:x:|[no-extra-label](http://eslint.org/docs/rules/no-extra-label)|no-extra-label|disallow unnecessary labels| +|:ballot_box_with_check:|[no-fallthrough](http://eslint.org/docs/rules/no-fallthrough)|[no-switch-case-fall-through](http://palantir.github.io/tslint/rules/no-switch-case-fall-through)|disallow fallthrough of `case` statements (recommended)| +|:x:|[no-floating-decimal](http://eslint.org/docs/rules/no-floating-decimal)|no-floating-decimal|disallow the use of leading or trailing decimal points in numeric literals| +|:x:|[no-implicit-coercion](http://eslint.org/docs/rules/no-implicit-coercion)|no-implicit-coercion|disallow the type conversions with shorter notations| +|:x:|[no-implicit-globals](http://eslint.org/docs/rules/no-implicit-globals)|no-implicit-globals|disallow var and named functions in global scope| +|:x:|[no-implied-eval](http://eslint.org/docs/rules/no-implied-eval)|no-implied-eval|disallow use of `eval()`-like methods| +|:ballot_box_with_check:|[no-invalid-this](http://eslint.org/docs/rules/no-invalid-this)|[no-invalid-this](https://palantir.github.io/tslint/rules/no-invalid-this)|disallow `this` keywords outside of classes or class-like objects| +|:x:|[no-iterator](http://eslint.org/docs/rules/no-iterator)|no-iterator|disallow Usage of `__iterator__` property| +|:ballot_box_with_check:|[no-labels](http://eslint.org/docs/rules/no-labels)|[label-position](https://palantir.github.io/tslint/rules/label-position)|disallow use of labeled statements| +|:x:|[no-lone-blocks](http://eslint.org/docs/rules/no-lone-blocks)|no-lone-blocks|disallow unnecessary nested blocks| +|:x:|[no-loop-func](http://eslint.org/docs/rules/no-loop-func)|no-loop-func|disallow creation of functions within loops| +|:ballot_box_with_check:|[no-magic-numbers](http://eslint.org/docs/rules/no-magic-numbers)|[no-magic-numbers](https://palantir.github.io/tslint/rules/no-magic-numbers)|disallow the use of magic numbers| +|:white_check_mark:|[no-multi-spaces](http://eslint.org/docs/rules/no-multi-spaces)|[no-multi-spaces](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/noMultiSpacesRule.md)|disallow use of multiple spaces| +|:x:|[no-multi-str](http://eslint.org/docs/rules/no-multi-str)|no-multi-str|disallow use of multiline strings| +|:no_entry_sign:|[no-native-reassign](http://eslint.org/docs/rules/no-native-reassign)|Not applicable|disallow reassignments of native objects| +|:ballot_box_with_check:|[no-new](http://eslint.org/docs/rules/no-new)|[no-unused-expression](https://palantir.github.io/tslint/rules/no-unused-expression)|disallow use of the `new` operator when not part of an assignment or comparison| +|:x:|[no-new-func](http://eslint.org/docs/rules/no-new-func)|no-new-func|disallow use of new operator for `Function` object| +|:ballot_box_with_check:|[no-new-wrappers](http://eslint.org/docs/rules/no-new-wrappers)|[no-construct](https://palantir.github.io/tslint/rules/no-construct)|disallows creating new instances of `String`,`Number`, and `Boolean`| +|:no_entry_sign:|[no-octal](http://eslint.org/docs/rules/no-octal)|Not applicable|disallow use of octal literals (recommended)| +|:x:|[no-octal-escape](http://eslint.org/docs/rules/no-octal-escape)|no-octal-escape|disallow use of octal escape sequences in string literals, such as `var foo = "Copyright \251";`| +|:x:|[no-param-reassign](http://eslint.org/docs/rules/no-param-reassign)|no-param-reassign|disallow reassignment of function parameters| +|:white_check_mark:|[no-proto](http://eslint.org/docs/rules/no-proto)|[ter-no-proto](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoProtoRule.md)|disallow the use of `__proto__` property| +|:ballot_box_with_check:|[no-redeclare](http://eslint.org/docs/rules/no-redeclare)|[no-duplicate-variable](http://palantir.github.io/tslint/rules/no-duplicate-variable)|disallow declaring the same variable more than once (http://eslint.org/docs/rules/recommended)| +|:x:|[no-return-assign](http://eslint.org/docs/rules/no-return-assign)|no-return-assign|disallow use of assignment in `return` statement| +|:white_check_mark:|[no-script-url](http://eslint.org/docs/rules/no-script-url)|[ter-no-script-url](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoScriptUrlRule.md)|disallow use of `javascript:` urls.| +|:x:|[no-self-assign](http://eslint.org/docs/rules/no-self-assign)|no-self-assign|disallow assignments where both sides are exactly the same| +|:white_check_mark:|[no-self-compare](http://eslint.org/docs/rules/no-self-compare)|[ter-no-self-compare](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoSelfCompareRule.md)|disallow comparisons where both sides are exactly the same| +|:x:|[no-sequences](http://eslint.org/docs/rules/no-sequences)|no-sequences|disallow use of the comma operator| +|:ballot_box_with_check:|[no-throw-literal](http://eslint.org/docs/rules/no-throw-literal)|[no-string-throw](https://palantir.github.io/tslint/rules/no-string-throw)|restrict what can be thrown as an exception| +|:x:|[no-unmodified-loop-condition](http://eslint.org/docs/rules/no-unmodified-loop-condition)|no-unmodified-loop-condition|disallow unmodified conditions of loops| +|:ballot_box_with_check:|[no-unused-expressions](http://eslint.org/docs/rules/no-unused-expressions)|[no-unused-expression](http://palantir.github.io/tslint/rules/no-unused-expression)|disallow Usage of expressions in statement position| +|:x:|[no-unused-labels](http://eslint.org/docs/rules/no-unused-labels)|no-unused-labels|disallow unused labels| +|:x:|[no-useless-call](http://eslint.org/docs/rules/no-useless-call)|no-useless-call|disallow unnecessary `.call()` and `.apply()`| +|:x:|[no-useless-concat](http://eslint.org/docs/rules/no-useless-concat)|no-useless-concat|disallow unnecessary concatenation of literals or template literals| +|:x:|[no-useless-escape](http://eslint.org/docs/rules/no-useless-escape)|no-useless-escape|disallow unnecessary usage of escape character| +|:x:|[no-void](http://eslint.org/docs/rules/no-void)|no-void|disallow use of the `void` operator| +|:x:|[no-warning-comments](http://eslint.org/docs/rules/no-warning-comments)|no-warning-comments|disallow Usage of configurable warning terms in comments e.g. `TODO` or `FIXME`| +|:x:|[no-with](http://eslint.org/docs/rules/no-with)|no-with|disallow use of the `with` statement| +|:ballot_box_with_check:|[radix](http://eslint.org/docs/rules/radix)|[radix](http://palantir.github.io/tslint/rules/radix)|require use of the second argument for `parseInt()`| +|:x:|[vars-on-top](http://eslint.org/docs/rules/vars-on-top)|vars-on-top|require declaration of all vars at the top of their containing scope| +|:x:|[wrap-iife](http://eslint.org/docs/rules/wrap-iife)|wrap-iife|require immediate function invocation to be wrapped in parentheses| +|:x:|[yoda](http://eslint.org/docs/rules/yoda)|yoda|require or disallow Yoda conditions| + +### Strict Mode + +These rules relate to using strict mode. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:no_entry_sign:|[strict](http://eslint.org/docs/rules/strict)|Not applicable|require effective use of strict mode directives| + +### Variables + +These rules have to do with variable declarations. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:x:|[init-declarations](http://eslint.org/docs/rules/init-declarations)|init-declarations|enforce or disallow variable initializations at definition| +|:x:|[no-catch-shadow](http://eslint.org/docs/rules/no-catch-shadow)|no-catch-shadow|disallow the catch clause parameter name being the same as a variable in the outer scope| +|:no_entry_sign:|[no-delete-var](http://eslint.org/docs/rules/no-delete-var)|Not applicable|disallow deletion of variables (recommended)| +|:x:|[no-label-var](http://eslint.org/docs/rules/no-label-var)|no-label-var|disallow labels that share a name with a variable| +|:ballot_box_with_check:|[no-shadow](http://eslint.org/docs/rules/no-shadow)|[no-shadowed-variable](http://palantir.github.io/tslint/rules/no-shadowed-variable)|disallow declaration of variables already declared in the outer scope| +|:x:|[no-shadow-restricted-names](http://eslint.org/docs/rules/no-shadow-restricted-names)|no-shadow-restricted-names|disallow shadowing of names such as `arguments`| +|:no_entry_sign:|[no-undef](http://eslint.org/docs/rules/no-undef)|Not applicable|disallow use of undeclared variables unless mentioned in a `/*global */` block (recommended)| +|:x:|[no-undef-init](http://eslint.org/docs/rules/no-undef-init)|no-undef-init|disallow use of undefined when initializing variables| +|:x:|[no-undefined](http://eslint.org/docs/rules/no-undefined)|no-undefined|disallow use of `undefined` variable| +|:ballot_box_with_check:|[no-unused-vars](http://eslint.org/docs/rules/no-unused-vars)|[no-unused-variable](https://palantir.github.io/tslint/rules/no-unused-variable/)|disallow unused variables (recommended).| +|:ballot_box_with_check:|[no-use-before-define](http://eslint.org/docs/rules/no-use-before-define)|[no-use-before-declare](http://palantir.github.io/tslint/rules/no-use-before-declare)|disallow use of variables before they are defined| + +### Node.js and CommonJS + +These rules are specific to JavaScript running on Node.js or using CommonJS in the browser. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:x:|[callback-return](http://eslint.org/docs/rules/callback-return)|callback-return|enforce `return` after a callback| +|:x:|[global-require](http://eslint.org/docs/rules/global-require)|global-require|enforce `require()` on top-level module scope| +|:white_check_mark:|[handle-callback-err](http://eslint.org/docs/rules/handle-callback-err)|[handle-callback-err](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/handleCallbackErrRule.md)|enforce error handling in callbacks| +|:x:|[no-mixed-requires](http://eslint.org/docs/rules/no-mixed-requires)|no-mixed-requires|disallow mixing regular variable and require declarations| +|:x:|[no-new-require](http://eslint.org/docs/rules/no-new-require)|no-new-require|disallow use of `new` operator with the `require` function| +|:x:|[no-path-concat](http://eslint.org/docs/rules/no-path-concat)|no-path-concat|disallow string concatenation with `__dirname` and `__filename`| +|:x:|[no-process-env](http://eslint.org/docs/rules/no-process-env)|no-process-env|disallow use of `process.env`| +|:x:|[no-process-exit](http://eslint.org/docs/rules/no-process-exit)|no-process-exit|disallow `process.exit()`| +|:x:|[no-restricted-modules](http://eslint.org/docs/rules/no-restricted-modules)|no-restricted-modules|restrict Usage of specified node modules| +|:x:|[no-sync](http://eslint.org/docs/rules/no-sync)|no-sync|disallow use of synchronous methods| + +### Stylistic Issues + +These rules are purely matters of style and are quite subjective. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:white_check_mark:|[array-bracket-spacing](http://eslint.org/docs/rules/array-bracket-spacing)|[array-bracket-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/arrayBracketSpacingRule.md)|enforce consistent spacing inside array brackets| +|:white_check_mark:|[block-spacing](http://eslint.org/docs/rules/block-spacing)|[block-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/blockSpacingRule.md)|disallow or enforce spaces inside of single line blocks| +|:white_check_mark:|[brace-style](http://eslint.org/docs/rules/brace-style)|[brace-style](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/braceStyleRule.md)|enforce one true brace style| +|:ballot_box_with_check:|[camelcase](http://eslint.org/docs/rules/camelcase)|[variable-name](http://palantir.github.io/tslint/rules/variable-name)|require camel case names| +|:x:|[comma-spacing](http://eslint.org/docs/rules/comma-spacing)|comma-spacing|enforce spacing before and after comma| +|:x:|[comma-style](http://eslint.org/docs/rules/comma-style)|comma-style|enforce one true comma style| +|:white_check_mark:|[computed-property-spacing](http://eslint.org/docs/rules/computed-property-spacing)|[ter-computed-property-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terComputedPropertySpacingRule.md)|require or disallow padding inside computed properties| +|:x:|[consistent-this](http://eslint.org/docs/rules/consistent-this)|consistent-this|enforce consistent naming when capturing the current execution context| +|:ballot_box_with_check:|[eol-last](http://eslint.org/docs/rules/eol-last)|[eofline](https://palantir.github.io/tslint/rules/eofline)|enforce newline at the end of file, with no multiple empty lines| +|:white_check_mark:|[func-call-spacing](http://eslint.org/docs/rules/func-call-spacing)|[ter-func-call-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terFuncCallSpacingRule.md)|require or disallow spacing between function identifiers and their invocations| +|:x:|[func-names](http://eslint.org/docs/rules/func-names)|func-names|require function expressions to have a name| +|:x:|[func-style](http://eslint.org/docs/rules/func-style)|func-style|enforce use of function declarations or expressions| +|:x:|[id-blacklist](http://eslint.org/docs/rules/id-blacklist)|id-blacklist|disallow certain identifiers to prevent them being used| +|:x:|[id-length](http://eslint.org/docs/rules/id-length)|id-length|this option enforces minimum and maximum identifier lengths (variable names, property names etc.)| +|:x:|[id-match](http://eslint.org/docs/rules/id-match)|id-match|require identifiers to match the provided regular expression| +|:white_check_mark:|[indent](http://eslint.org/docs/rules/indent)|[ter-indent](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terIndentRule.md)|enforce consistent indentation| +|:x:|[jsx-quotes](http://eslint.org/docs/rules/jsx-quotes)|jsx-quotes|specify whether double or single quotes should be used in JSX attributes| +|:x:|[key-spacing](http://eslint.org/docs/rules/key-spacing)|key-spacing|enforce spacing between keys and values in object literal properties
Tslint's [whitespace](https://palantir.github.io/tslint/rules/whitespace/) can partially be used| +|:x:|[keyword-spacing](http://eslint.org/docs/rules/keyword-spacing)|keyword-spacing|enforce spacing before and after keywords
Tslint's [whitespace](https://palantir.github.io/tslint/rules/whitespace/) can partially be used| +|:ballot_box_with_check:|[linebreak-style](http://eslint.org/docs/rules/linebreak-style)|[linebreak-style](https://palantir.github.io/tslint/rules/linebreak-style)|disallow mixed 'LF' and 'CRLF' as linebreaks| +|:x:|[lines-around-comment](http://eslint.org/docs/rules/lines-around-comment)|lines-around-comment|enforce empty lines around comments| +|:x:|[max-depth](http://eslint.org/docs/rules/max-depth)|max-depth|specify the maximum depth that blocks can be nested| +|:white_check_mark:|[max-len](http://eslint.org/docs/rules/max-len)|[ter-max-len](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terMaxLenRule.md)|enforce a maximum line length| +|:ballot_box_with_check:|[max-lines](http://eslint.org/docs/rules/max-lines)|[max-file-line-count](http://palantir.github.io/tslint/rules/max-file-line-count)|enforce a maximum number of lines per file| +|:x:|[max-nested-callbacks](http://eslint.org/docs/rules/max-nested-callbacks)|max-nested-callbacks|specify the maximum depth callbacks can be nested| +|:x:|[max-params](http://eslint.org/docs/rules/max-params)|max-params|specify the number of parameters that can be used in the function declaration| +|:x:|[max-statements](http://eslint.org/docs/rulesmax-statements)|max-statements|specify the maximum number of statement allowed in a function| +|:x:|[max-statements-per-line](http://eslint.org/docs/max-statements-per-line)|max-statements-per-line|specify the maximum number of statements allowed per line| +|:no_entry_sign:|[new-cap](http://eslint.org/docs/rules/new-cap)|Not applicable|require a capital letter for constructors| +|:ballot_box_with_check:|[new-parens](http://eslint.org/docs/rules/new-parens)|[new-parens](https://palantir.github.io/tslint/rules/new-parens)|disallow the omission of parentheses when invoking a constructor with no arguments| +|:white_check_mark:|[newline-after-var](http://eslint.org/docs/rules/newline-after-var)|[ter-newline-after-var](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNewlineAfterVarRule.md)|require or disallow an empty newline after variable declarations| +|:x:|[newline-before-return](http://eslint.org/docs/rules/newline-before-return)|newline-before-return|require newline before return statement| +|:x:|[newline-per-chained-call](http://eslint.org/docs/rules/newline-per-chained-call)|newline-per-chained-call|enforce newline after each call when chaining the calls| +|:x:|[no-array-constructor](http://eslint.org/docs/rules/no-array-constructor)|no-array-constructor|disallow use of the `Array` constructor| +|:ballot_box_with_check:|[no-bitwise](http://eslint.org/docs/rules/no-bitwise)|[no-bitwise](https://palantir.github.io/tslint/rules/no-bitwise)|disallows bitwise operators| +|:x:|[no-continue](http://eslint.org/docs/rules/no-continue)|no-continue|disallow use of the `continue` statement| +|:x:|[no-inline-comments](http://eslint.org/docs/rules/no-inline-comments)|no-inline-comments|disallow comments inline after code| +|:x:|[no-lonely-if](http://eslint.org/docs/rules/no-lonely-if)|no-lonely-if|disallow `if` as the only statement in an `else` block| +|:white_check_mark:|[no-mixed-spaces-and-tabs](http://eslint.org/docs/rules/no-mixed-spaces-and-tabs)|[ter-no-mixed-spaces-and-tabs](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoMixedSpacesAndTabsRule.md)|disallow mixed spaces and tabs for indentation (recommended)| +|:ballot_box_with_check:|[no-multiple-empty-lines](http://eslint.org/docs/rules/no-multiple-empty-lines)|[no-consecutive-blank-lines](http://palantir.github.io/tslint/rules/no-consecutive-blank-lines)|disallow multiple empty lines| +|:x:|[no-negated-condition](http://eslint.org/docs/rules/no-negated-condition)|no-negated-condition|disallow negated conditions| +|:x:|[no-nested-ternary](http://eslint.org/docs/rules/no-nested-ternary)|no-nested-ternary|disallow nested ternary expressions| +|:x:|[no-new-object](http://eslint.org/docs/rules/no-new-object)|no-new-object|disallow the use of the `Object` constructor| +|:x:|[no-restricted-syntax](http://eslint.org/docs/rules/no-restricted-syntax)|no-restricted-syntax|disallow use of certain syntax in code| +|:x:|[no-spaced-func](http://eslint.org/docs/rules/no-spaced-func)|no-spaced-func|disallow space between function identifier and application| +|:x:|[no-ternary](http://eslint.org/docs/rules/no-ternary)|no-ternary|disallow the use of ternary operators| +|:ballot_box_with_check:|[no-trailing-spaces](http://eslint.org/docs/rules/no-trailing-spaces)|[no-trailing-whitespace](http://palantir.github.io/tslint/rules/no-trailing-whitespace)|disallow trailing whitespace at the end of lines| +|:x:|[no-underscore-dangle](http://eslint.org/docs/rules/no-underscore-dangle)|no-underscore-dangle|disallow dangling underscores in identifiers| +|:x:|[no-unneeded-ternary](http://eslint.org/docs/rules/no-unneeded-ternary)|no-unneeded-ternary|disallow the use of ternary operators when a simpler alternative exists| +|:x:|[no-whitespace-before-property](http://eslint.org/docs/rules/no-whitespace-before-property)|no-whitespace-before-property|disallow whitespace before properties| +|:white_check_mark:|[object-curly-spacing](http://eslint.org/docs/rules/object-curly-spacing)|[object-curly-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/objectCurlySpacingRule.md)|require or disallow padding inside curly braces| +|:ballot_box_with_check:|[one-var](http://eslint.org/docs/rules/one-var)|[one-variable-per-declaration](http://palantir.github.io/tslint/rules/one-variable-per-declaration/)|require or disallow one variable declaration per function| +|:x:|[one-var-declaration-per-line](http://eslint.org/docs/rules/one-var-declaration-per-line)|one-var-declaration-per-line|require or disallow a newline around variable declarations| +|:x:|[operator-assignment](http://eslint.org/docs/rules/operator-assignment)|operator-assignment|require assignment operator shorthand where possible or prohibit it entirely| +|:x:|[operator-linebreak](http://eslint.org/docs/rules/operator-linebreak)|operator-linebreak|enforce operators to be placed before or after line breaks| +|:white_check_mark:|[padded-blocks](http://eslint.org/docs/rules/padded-blocks)|ter-padded-blocks|enforce padding within blocks| +|:ballot_box_with_check:|[quote-props](http://eslint.org/docs/rules/quote-props)|[object-literal-key-quotes](https://palantir.github.io/tslint/rules/object-literal-key-quotes)|require quotes around object literal property names| +|:ballot_box_with_check:|[quotes](http://eslint.org/docs/rules/quotes)|[quotemark](http://palantir.github.io/tslint/rules/quotemark/)|specify whether backticks, double or single quotes should be used| +|:x:|[require-jsdoc](http://eslint.org/docs/rules/require-jsdoc)|require-jsdoc|Require JSDoc comment| +|:ballot_box_with_check:|[semi](http://eslint.org/docs/rules/semi)|[semicolon](http://palantir.github.io/tslint/rules/semicolon)|require or disallow use of semicolons instead of ASI| +|:x:|[semi-spacing](http://eslint.org/docs/rules/semi-spacing)|semi-spacing|enforce spacing before and after semicolons| +|:white_check_mark:|[sort-imports](http://eslint.org/docs/rules/sort-imports)|[sort-imports](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/sortImportsRule.md)|enforce sorting import declarations within module| +|:x:|[sort-vars](http://eslint.org/docs/rules/sort-vars)|sort-vars|sort variables within the same declaration block| +|:x:|[space-before-blocks](http://eslint.org/docs/rules/space-before-blocks)|space-before-blocks|require or disallow a space before blocks| +|:x:|[space-before-function-paren](http://eslint.org/docs/rules/space-before-function-paren)|space-before-function-paren|require or disallow a space before function opening parenthesis| +|:white_check_mark:|[space-in-parens](http://eslint.org/docs/rules/space-in-parens)|[space-in-parens](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/spaceInParensRule.md)|require or disallow spaces inside parentheses| +|:x:|[space-infix-ops](http://eslint.org/docs/rules/space-infix-ops)|space-infix-ops|require spaces around operators
Tslint's [whitespace](https://palantir.github.io/tslint/rules/whitespace/) can partially be used| +|:x:|[space-unary-ops](http://eslint.org/docs/rules/space-unary-ops)|space-unary-ops|require or disallow spaces before/after unary operators| +|:ballot_box_with_check:|[spaced-comment](http://eslint.org/docs/rules/spaced-comment)|[comment-format](https://palantir.github.io/tslint/rules/comment-format)|require or disallow a space immediately following the `//` or `/*` in a comment| +|:x:|[wrap-regex](http://eslint.org/docs/rules/wrap-regex)|wrap-regex|require regex literals to be wrapped in parentheses| +|:white_check_mark:|[no-tabs](https://eslint.org/docs/rules/no-tabs)|[ter-no-tabs](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terNoTabsRule.md)|disallow all tabs| + +### ECMAScript 6 + +These rules are only relevant to ES6 environments. + +| :grey_question: | ESLint | TSLint | Description | +| :--- | :---: | :---: | :--- | +|:white_check_mark:|[arrow-body-style](http://eslint.org/docs/rules/arrow-body-style)|[ter-arrow-body-style](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowBodyStyleRule.md)|require braces in arrow function body| +|:white_check_mark:|[arrow-parens](http://eslint.org/docs/rules/arrow-parens)|[ter-arrow-parens](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowParensRule.md)|require parens in arrow function arguments| +|:white_check_mark:|[arrow-spacing](http://eslint.org/docs/rules/arrow-spacing)|[ter-arrow-spacing](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terArrowSpacingRule.md)|require space before/after arrow function's arrow| +|:no_entry_sign:|[constructor-super](http://eslint.org/docs/rules/constructor-super)|Not applicable|verify calls of `super()` in constructors| +|:x:|[generator-star-spacing](http://eslint.org/docs/rules/generator-star-spacing)|generator-star-spacing|enforce spacing around the `*` in generator functions| +|:x:|[no-class-assign](http://eslint.org/docs/rules/no-class-assign)|no-class-assign|disallow modifying variables of class declarations| +|:x:|[no-confusing-arrow](http://eslint.org/docs/rules/no-confusing-arrow)|no-confusing-arrow|disallow arrow functions where they could be confused with comparisons| +|:no_entry_sign:|[no-const-assign](http://eslint.org/docs/rules/no-const-assign)|Not applicable|disallow modifying variables that are declared using `const`| +|:no_entry_sign:|[no-dupe-class-members](http://eslint.org/docs/rules/no-dupe-class-members)|Not applicable|disallow duplicate name in class members| +|:x:|[no-duplicate-imports](http://eslint.org/docs/rules/no-duplicate-imports)|no-duplicate-imports|disallow duplicate module imports| +|:x:|[no-new-symbol](http://eslint.org/docs/rules/no-new-symbol)|no-new-symbol|disallow use of the `new` operator with the `Symbol` object| +|:x:|[no-restricted-imports](http://eslint.org/docs/rules/no-restricted-imports)|no-restricted-imports|restrict usage of specified modules when loaded by `import` declaration| +|:no_entry_sign:|[no-this-before-super](http://eslint.org/docs/rules/no-this-before-super)|Not applicable|disallow use of `this`/`super` before calling `super()` in constructors.| +|:x:|[no-useless-constructor](http://eslint.org/docs/rules/no-useless-constructor)|no-useless-constructor|disallow unnecessary constructor| +|:ballot_box_with_check:|[no-var](http://eslint.org/docs/rules/no-var)|[no-var-keyword](http://palantir.github.io/tslint/rules/no-var-keyword)|require `let` or `const` instead of `var`| +|:ballot_box_with_check:|[object-shorthand](http://eslint.org/docs/rules/object-shorthand)|[object-literal-shorthand](https://palantir.github.io/tslint/rules/object-literal-shorthand)|require method and property shorthand syntax for object literals| +|:white_check_mark:|[prefer-arrow-callback](http://eslint.org/docs/rules/prefer-arrow-callback)|[ter-prefer-arrow-callback](https://github.com/buzinas/tslint-eslint-rules/blob/master/src/docs/rules/terPreferArrowCallbackRule.md)|require arrow functions as callbacks| +|:ballot_box_with_check:|[prefer-const](http://eslint.org/docs/rules/prefer-const)|[prefer-const](https://palantir.github.io/tslint/rules/prefer-const)|suggest using `const` declaration for variables that are never modified after declared| +|:x:|[prefer-destructuring](http://eslint.org/docs/rules/prefer-destructuring)|prefer-destructuring|require using destructuring when assigning to variables from arrays and objects| +|:x:|[prefer-reflect](http://eslint.org/docs/rules/prefer-reflect)|prefer-reflect|suggest using Reflect methods where applicable| +|:x:|[prefer-rest-params](http://eslint.org/docs/rules/prefer-rest-params)|prefer-rest-params|suggest using the rest parameters instead of `arguments`| +|:x:|[prefer-spread](http://eslint.org/docs/rules/prefer-spread)|prefer-spread|suggest using the spread operator instead of `.apply()`.| +|:x:|[prefer-template](http://eslint.org/docs/rules/prefer-template)|prefer-template|suggest using template literals instead of strings concatenation| +|:x:|[require-yield](http://eslint.org/docs/rules/require-yield)|require-yield|disallow generator functions that do not have `yield`| +|:x:|[template-curly-spacing](http://eslint.org/docs/rules/template-curly-spacing)|template-curly-spacing|enforce spacing around embedded expressions of template strings| +|:x:|[yield-star-spacing](http://eslint.org/docs/rules/yield-star-spacing)|yield-star-spacing|enforce spacing around the `*` in `yield*` expressions| + + +## Contributing + +Bugs, rules requests, doubts etc., open a Github [Issue]. If you want to create one of the missing +rules or fix/improve some existing rule please check out the [contribution guide]. + +## LICENSE + +MIT + +[Issue]: https://github.com/buzinas/tslint-eslint-rules/issues/new +[contribution guide]: https://github.com/buzinas/tslint-eslint-rules/blob/master/CONTRIBUTING.md diff --git a/node_modules/tslint-eslint-rules/dist/rules/arrayBracketSpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/arrayBracketSpacingRule.js new file mode 100644 index 000000000..beee959ad --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/arrayBracketSpacingRule.js @@ -0,0 +1,196 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var OPTION_ALWAYS = 'always'; +var RULE_NAME = 'array-bracket-spacing'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new ArrayBracketSpacingWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'enforce consistent spacing inside array brackets', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n A number of style guides require or disallow spaces between array brackets and other tokens.\n This rule applies to both array literals and destructuring assignments (ECMAScript 6).\n "], ["\n A number of style guides require or disallow spaces between array brackets and other tokens.\n This rule applies to both array literals and destructuring assignments (ECMAScript 6).\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n The rule takes one or two options. The first is a string, which can be:\n\n - `\"never\"` (default) disallows spaces inside array brackets\n - `\"always\"`requires one or more spaces or newlines inside array brackets\n\n The second option is an object for exceptions to the `\"never\"` option:\n\n - `\"singleValue\": true` requires one or more spaces or newlines inside brackets of array\n literals that contain a single element\n - `\"objectsInArrays\": true` requires one or more spaces or newlines between brackets of\n array literals and braces of their object literal elements\n `[ {` or `} ]`\n - `\"arraysInArrays\": true` requires one or more spaces or newlines between brackets of\n array literals and brackets of their array literal elements\n `[ [` or `] ]`\n\n When using the `\"always\"` option the second option takes on these exceptions:\n\n - `\"singleValue\": false` disallows spaces inside brackets of array literals that contain a\n single element\n - `\"objectsInArrays\": false` disallows spaces between brackets of array literals and braces\n of their object literal elements `[ {` or `} ]`\n - `\"arraysInArrays\": false` disallows spaces between brackets of array literals and brackets\n of their array literal elements `[ [` or `] ]`\n\n This rule has build-in exceptions:\n\n - `\"never\"` (and also the exceptions to the `\"always\"` option) allows newlines inside\n array brackets, because this is a common pattern\n - `\"always\"` does not require spaces or newlines in empty array literals `[]`\n "], ["\n The rule takes one or two options. The first is a string, which can be:\n\n - \\`\"never\"\\` (default) disallows spaces inside array brackets\n - \\`\"always\"\\`requires one or more spaces or newlines inside array brackets\n\n The second option is an object for exceptions to the \\`\"never\"\\` option:\n\n - \\`\"singleValue\": true\\` requires one or more spaces or newlines inside brackets of array\n literals that contain a single element\n - \\`\"objectsInArrays\": true\\` requires one or more spaces or newlines between brackets of\n array literals and braces of their object literal elements\n \\`[ {\\` or \\`} ]\\`\n - \\`\"arraysInArrays\": true\\` requires one or more spaces or newlines between brackets of\n array literals and brackets of their array literal elements\n \\`[ [\\` or \\`] ]\\`\n\n When using the \\`\"always\"\\` option the second option takes on these exceptions:\n\n - \\`\"singleValue\": false\\` disallows spaces inside brackets of array literals that contain a\n single element\n - \\`\"objectsInArrays\": false\\` disallows spaces between brackets of array literals and braces\n of their object literal elements \\`[ {\\` or \\`} ]\\`\n - \\`\"arraysInArrays\": false\\` disallows spaces between brackets of array literals and brackets\n of their array literal elements \\`[ [\\` or \\`] ]\\`\n\n This rule has build-in exceptions:\n\n - \\`\"never\"\\` (and also the exceptions to the \\`\"always\"\\` option) allows newlines inside\n array brackets, because this is a common pattern\n - \\`\"always\"\\` does not require spaces or newlines in empty array literals \\`[]\\`\n "]))), + options: { + anyOf: [ + { + type: 'array', + items: [ + { + enum: ['always', 'never'] + } + ], + minItems: 0, + maxItems: 1 + }, + { + type: 'object', + properties: { + singleValue: { + type: 'boolean' + }, + objectsInArrays: { + type: 'boolean' + }, + arraysInArrays: { + type: 'boolean' + } + }, + additionalProperties: false + } + ] + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\", {\n \"arraysInArrays\": true\n }]\n "], ["\n \"", "\": [true, \"never\", {\n \"arraysInArrays\": true\n }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var ArrayBracketSpacingWalker = (function (_super) { + tslib_1.__extends(ArrayBracketSpacingWalker, _super); + function ArrayBracketSpacingWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.singleValueException = false; + _this.objectsInArraysException = false; + _this.arraysInArraysException = false; + var ruleOptions = _this.getOptions(); + _this.spaced = _this.hasOption(OPTION_ALWAYS) || (ruleOptions && ruleOptions.length === 0); + var opt = ruleOptions[1]; + var isDef = function (x) { return typeof x !== 'undefined'; }; + if (opt) { + _this.singleValueException = isDef(opt.singleValue) && opt.singleValue !== _this.spaced; + _this.objectsInArraysException = isDef(opt.objectsInArrays) && opt.objectsInArrays !== _this.spaced; + _this.arraysInArraysException = isDef(opt.arraysInArrays) && opt.arraysInArrays !== _this.spaced; + } + return _this; + } + ArrayBracketSpacingWalker.prototype.report = function (start, msg, fix) { + this.addFailure(this.createFailure(start, 1, msg, fix)); + }; + ArrayBracketSpacingWalker.prototype.reportNoBeginningSpace = function (token, space) { + var start = token.getStart(this.getSourceFile()); + var fix = Lint.Replacement.deleteText(start + 1, space); + this.report(start, 'There should be no space after "["', fix); + }; + ArrayBracketSpacingWalker.prototype.reportRequiredBeginningSpace = function (token) { + var start = token.getStart(this.getSourceFile()); + var fix = Lint.Replacement.appendText(start + 1, ' '); + this.report(start, 'A space is required after "["', fix); + }; + ArrayBracketSpacingWalker.prototype.reportRequiredEndingSpace = function (token) { + var start = token.getStart(this.getSourceFile()); + var fix = Lint.Replacement.appendText(start, ' '); + this.report(start, 'A space is required before "]"', fix); + }; + ArrayBracketSpacingWalker.prototype.reportNoEndingSpace = function (token, space) { + var start = token.getStart(this.getSourceFile()); + var fix = Lint.Replacement.deleteText(start - space, space); + this.report(start, 'There should be no space before "]"', fix); + }; + ArrayBracketSpacingWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.ArrayBindingPattern) { + this.validateArraySpacing(node, node.elements); + } + _super.prototype.visitNode.call(this, node); + }; + ArrayBracketSpacingWalker.prototype.visitArrayLiteralExpression = function (node) { + this.validateArraySpacing(node, node.elements); + _super.prototype.visitArrayLiteralExpression.call(this, node); + }; + ArrayBracketSpacingWalker.prototype.isObjectType = function (node) { + return node && node.kind === ts.SyntaxKind.ObjectLiteralExpression; + }; + ArrayBracketSpacingWalker.prototype.isArrayType = function (node) { + if (node) { + if (node.kind === ts.SyntaxKind.ArrayLiteralExpression) { + return true; + } + var firstChild = node.getChildAt(0); + if (firstChild && firstChild.kind === ts.SyntaxKind.ArrayBindingPattern) { + return true; + } + } + return false; + }; + ArrayBracketSpacingWalker.prototype.validateArraySpacing = function (node, elements) { + var _this = this; + if (this.spaced && elements.length === 0) { + return; + } + var first = node.getChildAt(0); + var last = node.getChildAt(2); + var firstElement = elements[0]; + var lastElement = elements[elements.length - 1]; + var second = firstElement || last; + var penultimate = lastElement || first; + if (second.pos === second.end) { + second = node.getChildAt(1).getChildAt(1); + } + if (elements.hasTrailingComma) { + penultimate = elements; + } + var mustBeSpaced = function (token) { return (_this.singleValueException && elements.length === 1 || + _this.objectsInArraysException && _this.isObjectType(token) || + _this.arraysInArraysException && _this.isArrayType(token)) ? !_this.spaced : _this.spaced; }; + var openingBracketMustBeSpaced = mustBeSpaced(firstElement); + var closingBracketMustBeSpaced = mustBeSpaced(lastElement); + var spaceAfterOpeningBracket = this.getSpaceBetween(first, second, false); + var isBreakAfterOpeningBracket = this.isLineBreakBetween(first, second); + var spaceBeforeClosingBracket = this.getSpaceBetween(penultimate, last, true); + var isBreakBeforeClosingBracket = this.isLineBreakBetween(penultimate, last); + if (!isBreakAfterOpeningBracket) { + if (openingBracketMustBeSpaced && !spaceAfterOpeningBracket) { + this.reportRequiredBeginningSpace(first); + } + else if (!openingBracketMustBeSpaced && spaceAfterOpeningBracket) { + this.reportNoBeginningSpace(first, spaceAfterOpeningBracket); + } + } + if (first !== penultimate && !isBreakBeforeClosingBracket) { + if (closingBracketMustBeSpaced && !spaceBeforeClosingBracket) { + this.reportRequiredEndingSpace(last); + } + else if (!closingBracketMustBeSpaced && spaceBeforeClosingBracket) { + this.reportNoEndingSpace(last, spaceBeforeClosingBracket); + } + } + }; + ArrayBracketSpacingWalker.prototype.getSpaceBetween = function (node, nextNode, trailing) { + var end = nextNode.getStart(this.getSourceFile()); + var start = node.end; + var text = this.getSourceFile().text.substring(start, end); + var m = text.match(/\/\*.*\*\//); + if (m && typeof m.index === 'number') { + var len = m[0].length; + return trailing ? end - (start + m.index + len) : m.index; + } + return end - start; + }; + ArrayBracketSpacingWalker.prototype.isLineBreakBetween = function (node, nextNode) { + return this.getEndPosition(node).line !== this.getStartPosition(nextNode).line; + }; + ArrayBracketSpacingWalker.prototype.getStartPosition = function (node) { + var srcFile = this.getSourceFile(); + return srcFile.getLineAndCharacterOfPosition(node.getStart(srcFile)); + }; + ArrayBracketSpacingWalker.prototype.getEndPosition = function (node) { + return this.getSourceFile().getLineAndCharacterOfPosition(node.end); + }; + return ArrayBracketSpacingWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2FycmF5QnJhY2tldFNwYWNpbmdSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0IsSUFBTSxhQUFhLEdBQUcsUUFBUSxDQUFDO0FBQy9CLElBQU0sU0FBUyxHQUFHLHVCQUF1QixDQUFDO0FBRTFDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUEyRkEsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLHlCQUF5QixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUM1RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQXpGYSxhQUFRLEdBQXVCO1FBQzNDLFFBQVEsRUFBRSxTQUFTO1FBQ25CLFdBQVcsRUFBRSxrREFBa0Q7UUFDL0QsU0FBUyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSx1UkFBQSw0TUFHekIsSUFBQTtRQUNILGtCQUFrQixFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxzN0RBQUEsbThEQStCbEMsSUFBQTtRQUNILE9BQU8sRUFBRTtZQUNQLEtBQUssRUFBRTtnQkFDTDtvQkFDRSxJQUFJLEVBQUUsT0FBTztvQkFDYixLQUFLLEVBQUU7d0JBQ0w7NEJBQ0UsSUFBSS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UpBLEFBOEpDLENBOUp1QyxJQUFJLENBQUMsVUFBVSxHQThKdEQiLCJmaWxlIjoicnVsZXMvYXJyYXlCcmFja2V0U3BhY2luZ1J1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/blockSpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/blockSpacingRule.js new file mode 100644 index 000000000..808f21897 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/blockSpacingRule.js @@ -0,0 +1,58 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var OPTION_ALWAYS = 'always'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new BlockSpacingWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + always: 'Requires a space', + never: 'Unexpected space(s)' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var BlockSpacingWalker = (function (_super) { + tslib_1.__extends(BlockSpacingWalker, _super); + function BlockSpacingWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.always = _this.hasOption(OPTION_ALWAYS) || (_this.getOptions() && _this.getOptions().length === 0); + return _this; + } + BlockSpacingWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.Block || node.kind === ts.SyntaxKind.CaseBlock) { + this.checkSpacingInsideBraces(node); + } + _super.prototype.visitNode.call(this, node); + }; + BlockSpacingWalker.prototype.checkSpacingInsideBraces = function (node) { + var blockChildren = node.getChildren(); + var syntaxList = blockChildren[1]; + var openBraceLocation = this.getStartPosition(blockChildren[0]); + var closeBraceLocation = this.getStartPosition(blockChildren[blockChildren.length - 1]); + if (syntaxList && syntaxList.getChildCount() > 0 && openBraceLocation.line === closeBraceLocation.line) { + if (this.isSpaceBetween(blockChildren[0], blockChildren[1]) !== this.always + || this.isSpaceBetween(blockChildren[blockChildren.length - 2], blockChildren[blockChildren.length - 1]) !== this.always) { + var failureString = this.always ? Rule.FAILURE_STRING.always : Rule.FAILURE_STRING.never; + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), failureString)); + } + } + }; + BlockSpacingWalker.prototype.isSpaceBetween = function (node, nextNode) { + return nextNode.getStart() - node.getEnd() > 0; + }; + BlockSpacingWalker.prototype.getStartPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getStart()); + }; + return BlockSpacingWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2Jsb2NrU3BhY2luZ1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixJQUFNLGFBQWEsR0FBRyxRQUFRLENBQUM7QUFFL0I7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQVVBLENBQUM7SUFKUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcEMsSUFBTSxNQUFNLEdBQUcsSUFBSSxrQkFBa0IsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7UUFDckUsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3RDLENBQUM7SUFSYSxtQkFBYyxHQUFHO1FBQzdCLE1BQU0sRUFBRSxrQkFBa0I7UUFDMUIsS0FBSyxFQUFFLHFCQUFxQjtLQUM3QixDQUFDO0lBTUosV0FBQztDQVZELEFBVUMsQ0FWeUIsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLEdBVWhEO0FBVlksb0JB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ZCLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxDQUFDLENBQUM7SUFDN0UsQ0FBQztJQUNILHlCQUFDO0FBQUQsQ0F2Q0EsQUF1Q0MsQ0F2Q2dDLElBQUksQ0FBQyxVQUFVLEdBdUMvQyIsImZpbGUiOiJydWxlcy9ibG9ja1NwYWNpbmdSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js b/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js new file mode 100644 index 000000000..5d4806534 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/braceStyleRule.js @@ -0,0 +1,149 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var OPTION_1TBS = '1tbs'; +var OPTION_ALLMAN = 'allman'; +var OPTION_STROUSTRUP = 'stroustrup'; +var BraceStyle; +(function (BraceStyle) { + BraceStyle[BraceStyle["OneTBS"] = 0] = "OneTBS"; + BraceStyle[BraceStyle["Allman"] = 1] = "Allman"; + BraceStyle[BraceStyle["Stroustrup"] = 2] = "Stroustrup"; +})(BraceStyle || (BraceStyle = {})); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new BraceStyleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + open: 'Opening curly brace does not appear on the same line as controlling statement.', + openAllman: 'Opening curly brace appears on the same line as controlling statement.', + body: 'Statement inside of curly braces should be on next line.', + close: 'Closing curly brace does not appear on the same line as the subsequent block.', + closeSingle: 'Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.', + closeStroustrupAllman: 'Closing curly brace appears on the same line as the subsequent block.' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var BraceStyleWalker = (function (_super) { + tslib_1.__extends(BraceStyleWalker, _super); + function BraceStyleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.allowSingleLine = false; + if (_this.hasOption(OPTION_1TBS)) { + _this.braceStyle = BraceStyle.OneTBS; + } + else if (_this.hasOption(OPTION_ALLMAN)) { + _this.braceStyle = BraceStyle.Allman; + } + else if (_this.hasOption(OPTION_STROUSTRUP)) { + _this.braceStyle = BraceStyle.Stroustrup; + } + else { + } + _this.allowSingleLine = _this.getOptions()[1] && _this.getOptions()[1].allowSingleLine; + return _this; + } + BraceStyleWalker.prototype.visitTryStatement = function (tryStatement) { + var _this = this; + _super.prototype.visitTryStatement.call(this, tryStatement); + var checkTryStatementError = function (node) { + var previousNode = _this.getPreviousNode(tryStatement.getChildren(), node); + var openingBracketError = _this.areOnSameLine(previousNode, node) !== (_this.braceStyle === BraceStyle.OneTBS); + if (_this.allowSingleLine && _this.getStartPosition(node).line === _this.getEndPosition(tryStatement).line) { + return; + } + if (openingBracketError) { + var failureString = _this.braceStyle === BraceStyle.OneTBS ? Rule.FAILURE_STRING.open : Rule.FAILURE_STRING.openAllman; + _this.addFailure(_this.createFailure(node.getStart(), node.getWidth(), failureString)); + } + }; + var catchClause = tryStatement.catchClause; + if (catchClause) { + checkTryStatementError(catchClause); + } + var finallyBlock = tryStatement.finallyBlock; + if (finallyBlock) { + checkTryStatementError(finallyBlock); + } + }; + BraceStyleWalker.prototype.visitIfStatement = function (ifStatement) { + _super.prototype.visitIfStatement.call(this, ifStatement); + var elseKeyword = ifStatement.getChildren().filter(function (ch) { return ch.kind === ts.SyntaxKind.ElseKeyword; }).shift(); + if (!elseKeyword) { + return; + } + var previousNode = ifStatement.getChildren()[ifStatement.getChildren().indexOf(elseKeyword) - 1]; + var openingBracketError = this.areOnSameLine(previousNode, elseKeyword) !== (this.braceStyle === BraceStyle.OneTBS); + if (this.allowSingleLine && this.getStartPosition(elseKeyword).line === this.getEndPosition(ifStatement).line) { + return; + } + if (!ifStatement.getChildren().some(function (ch) { return ch.kind === ts.SyntaxKind.Block; })) { + return; + } + if (openingBracketError) { + var failureString = this.braceStyle === BraceStyle.OneTBS ? Rule.FAILURE_STRING.open : Rule.FAILURE_STRING.openAllman; + this.addFailure(this.createFailure(elseKeyword.getStart(), elseKeyword.getWidth(), failureString)); + } + }; + BraceStyleWalker.prototype.visitBlock = function (block) { + _super.prototype.visitBlock.call(this, block); + if (this.allowSingleLine && this.getStartPosition(block).line === this.getEndPosition(block).line) { + return; + } + var blockChildren = block.getChildren(); + var openingCurlyBrace = blockChildren.filter(function (ch) { return ch.kind === ts.SyntaxKind.OpenBraceToken; }).shift(); + var closingCurlyBrace = blockChildren.filter(function (ch) { return ch.kind === ts.SyntaxKind.CloseBraceToken; }).pop(); + var syntaxList = blockChildren.filter(function (ch) { return ch.kind === ts.SyntaxKind.SyntaxList; }).shift(); + var parentChildren = block.parent ? block.parent.getChildren() : []; + var blockPreviousNode = parentChildren[parentChildren.indexOf(block) - 1]; + if (!openingCurlyBrace || !closingCurlyBrace || !syntaxList || !blockPreviousNode) { + return; + } + var openingBracketError = this.areOnSameLine(blockPreviousNode, block) === (this.braceStyle === BraceStyle.Allman); + if (openingBracketError) { + var failureString = this.braceStyle === BraceStyle.Allman ? Rule.FAILURE_STRING.openAllman : Rule.FAILURE_STRING.open; + this.addFailure(this.createFailure(openingCurlyBrace.getStart(), openingCurlyBrace.getWidth(), failureString)); + } + if (syntaxList.getChildCount() > 0) { + var bodyError = this.areOnSameLine(openingCurlyBrace, syntaxList); + if (bodyError) { + this.addFailure(this.createFailure(syntaxList.getStart(), syntaxList.getWidth(), Rule.FAILURE_STRING.body)); + } + var nodeBeforeClosingBracket = syntaxList.getChildren()[syntaxList.getChildren().length - 1]; + var closingBracketError = this.areOnSameLine(nodeBeforeClosingBracket, closingCurlyBrace); + if (closingBracketError) { + this.addFailure(this.createFailure(closingCurlyBrace.getStart(), closingCurlyBrace.getWidth(), Rule.FAILURE_STRING.closeSingle)); + } + } + }; + BraceStyleWalker.prototype.areOnSameLine = function (node, nextNode) { + return this.getEndPosition(node).line === this.getStartPosition(nextNode).line; + }; + BraceStyleWalker.prototype.getStartPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getStart()); + }; + BraceStyleWalker.prototype.getEndPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getEnd()); + }; + BraceStyleWalker.prototype.getPreviousNode = function (children, node) { + var position = children.indexOf(node) - 1; + while (position >= 0) { + if (children[position].kind === ts.SyntaxKind.Block || children[position].kind === ts.SyntaxKind.CatchClause) { + break; + } + position -= 1; + } + return children[position]; + }; + return BraceStyleWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2JyYWNlU3R5bGVSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0IsSUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDO0FBQzNCLElBQU0sYUFBYSxHQUFHLFFBQVEsQ0FBQztBQUMvQixJQUFNLGlCQUFpQixHQUFHLFlBQVksQ0FBQztBQUV2QyxJQUFLLFVBSUo7QUFKRCxXQUFLLFVBQVU7SUFDYiwrQ0FBTSxDQUFBO0lBQ04sK0NBQU0sQ0FBQTtJQUNOLHVEQUFVLENBQUE7QUFDWixDQUFDLEVBSkksVUFBVSxLQUFWLFVBQVUsUUFJZDtBQUVEO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFjQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksZ0JBQWdCLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUF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S0FBSyxJQUFJLFFBQVEsQ0FBQyxRQUFRLENBQUMsQ0FBQyxJQUFJLEtBQUssRUFBRSxDQUFDLFVBQVUsQ0FBQyxXQUFXLEVBQUU7Z0JBQzVHLE1BQU07YUFDUDtZQUNELFFBQVEsSUFBSSxDQUFDLENBQUM7U0FDZjtRQUNELE9BQU8sUUFBUSxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQzVCLENBQUM7SUFFSCx1QkFBQztBQUFELENBbEpBLEFBa0pDLENBbEo4QixJQUFJLENBQUMsVUFBVSxHQWtKN0MiLCJmaWxlIjoicnVsZXMvYnJhY2VTdHlsZVJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/handleCallbackErrRule.js b/node_modules/tslint-eslint-rules/dist/rules/handleCallbackErrRule.js new file mode 100644 index 000000000..0c73c5011 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/handleCallbackErrRule.js @@ -0,0 +1,155 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'handle-callback-err'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + return this.applyWithWalker(new ErrCallbackHandlerWalker(sourceFile, this.getOptions())); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'enforce error handling in callbacks', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n In Node.js, a common pattern for dealing with asynchronous behavior is called the callback\n pattern. This pattern expects an Error object or null as the first argument of the callback.\n Forgetting to handle these errors can lead to some really strange behavior in your\n application.\n "], ["\n In Node.js, a common pattern for dealing with asynchronous behavior is called the callback\n pattern. This pattern expects an Error object or null as the first argument of the callback.\n Forgetting to handle these errors can lead to some really strange behavior in your\n application.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n The rule takes a string option: the name of the error parameter. The default is\n `\"err\"`.\n\n Sometimes the name of the error variable is not consistent across the project, so you need a\n more flexible configuration to ensure that the rule reports all unhandled errors.\n\n If the configured name of the error variable begins with a `^` it is considered to be a\n regexp pattern.\n\n - If the option is `\"^(err|error|anySpecificError)$\"`, the rule reports unhandled errors\n where the parameter name can be `err`, `error` or `anySpecificError`.\n - If the option is `\"^.+Error$\"`, the rule reports unhandled errors where the parameter\n name ends with `Error` (for example, `connectionError` or `validationError` will\n match).\n - If the option is `\"^.*(e|E)rr\"`, the rule reports unhandled errors where the parameter\n name matches any string that contains `err` or `Err` (for example, `err`, `error`,\n `anyError`, `some_err` will match).\n\n In addition to the string we may specify an options object with the following property:\n\n - `allowProperties`: (`true` by default) When this is set to `false` the rule will not\n report unhandled errors as long as the error object is handled without accessing any of its\n properties at least once. For instance, `(err) => console.log(err.stack)` would report an\n issue when `allowProperties` is set to `false` because `err` is not handled on its\n own.\n "], ["\n The rule takes a string option: the name of the error parameter. The default is\n \\`\"err\"\\`.\n\n Sometimes the name of the error variable is not consistent across the project, so you need a\n more flexible configuration to ensure that the rule reports all unhandled errors.\n\n If the configured name of the error variable begins with a \\`^\\` it is considered to be a\n regexp pattern.\n\n - If the option is \\`\"^(err|error|anySpecificError)$\"\\`, the rule reports unhandled errors\n where the parameter name can be \\`err\\`, \\`error\\` or \\`anySpecificError\\`.\n - If the option is \\`\"^.+Error$\"\\`, the rule reports unhandled errors where the parameter\n name ends with \\`Error\\` (for example, \\`connectionError\\` or \\`validationError\\` will\n match).\n - If the option is \\`\"^.*(e|E)rr\"\\`, the rule reports unhandled errors where the parameter\n name matches any string that contains \\`err\\` or \\`Err\\` (for example, \\`err\\`, \\`error\\`,\n \\`anyError\\`, \\`some_err\\` will match).\n\n In addition to the string we may specify an options object with the following property:\n\n - \\`allowProperties\\`: (\\`true\\` by default) When this is set to \\`false\\` the rule will not\n report unhandled errors as long as the error object is handled without accessing any of its\n properties at least once. For instance, \\`(err) => console.log(err.stack)\\` would report an\n issue when \\`allowProperties\\` is set to \\`false\\` because \\`err\\` is not handled on its\n own.\n "]))), + options: { + type: 'array', + items: [{ + type: 'string' + }, { + type: 'object', + properties: { + allowProperties: 'boolean' + }, + additionalProperties: false + }], + minLength: 0, + maxLength: 2 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"error\"]\n "], ["\n \"", "\": [true, \"error\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"^(err|error|anySpecificError)$\"]\n "], ["\n \"", "\": [true, \"^(err|error|anySpecificError)$\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"allowProperties\": false }]\n "], ["\n \"", "\": [true, { \"allowProperties\": false }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"^(err|error|anySpecificError)$\", { \"allowProperties\": false }]\n "], ["\n \"", "\": [true, \"^(err|error|anySpecificError)$\", { \"allowProperties\": false }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'maintainability' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var ErrCallbackHandlerWalker = (function (_super) { + tslib_1.__extends(ErrCallbackHandlerWalker, _super); + function ErrCallbackHandlerWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.stack = []; + _this.allowProperties = true; + var opt = _this.getOptions(); + var errorArgument = 'err'; + var optObj = opt[0]; + if (typeof opt[0] === 'string') { + errorArgument = opt[0]; + optObj = opt[1]; + } + if (optObj) { + _this.allowProperties = optObj.allowProperties !== false; + } + if (errorArgument.charAt(0) === '^') { + _this.errorCheck = RegExp.prototype.test.bind(new RegExp(errorArgument)); + } + else { + _this.errorCheck = (function (name) { return name === errorArgument; }); + } + _this.firstParameterName = function (node) { + var param = node.parameters[0]; + return param ? param.name.getText(sourceFile) : undefined; + }; + return _this; + } + ErrCallbackHandlerWalker.prototype.enterScope = function (firstParamName) { + this.stack.push({ + firstParamName: firstParamName, + hasFirstParam: false + }); + }; + ErrCallbackHandlerWalker.prototype.exitScope = function () { + return this.stack.pop(); + }; + ErrCallbackHandlerWalker.prototype.visitSourceFile = function (node) { + this.stack = []; + _super.prototype.visitSourceFile.call(this, node); + }; + ErrCallbackHandlerWalker.prototype.visitFunctionDeclaration = function (node) { + this.enterScope(this.firstParameterName(node)); + _super.prototype.visitFunctionDeclaration.call(this, node); + this.exitFunction(node); + }; + ErrCallbackHandlerWalker.prototype.visitFunctionExpression = function (node) { + this.enterScope(this.firstParameterName(node)); + _super.prototype.visitFunctionExpression.call(this, node); + this.exitFunction(node); + }; + ErrCallbackHandlerWalker.prototype.visitArrowFunction = function (node) { + this.enterScope(this.firstParameterName(node)); + _super.prototype.visitArrowFunction.call(this, node); + this.exitFunction(node); + }; + ErrCallbackHandlerWalker.prototype.visitCatchClause = function (node) { + this.enterScope(node.variableDeclaration ? node.variableDeclaration.name.getText() : undefined); + _super.prototype.visitCatchClause.call(this, node); + this.exitScope(); + }; + ErrCallbackHandlerWalker.prototype.exitFunction = function (node) { + var scopeInfo = this.exitScope(); + var param = scopeInfo.firstParamName; + if (param && this.errorCheck(param) && !scopeInfo.hasFirstParam) { + var name = node.parameters[0].name; + var strictMsg = !this.allowProperties ? ' without property access at least once' : ''; + var msg = "Expected error to be handled" + strictMsg; + var failure = this.createFailure(name.getStart(this.getSourceFile()), name.getWidth(this.getSourceFile()), msg); + this.addFailure(failure); + } + }; + ErrCallbackHandlerWalker.prototype.isPropAccess = function (node) { + return node.kind === ts.SyntaxKind.PropertyAccessExpression; + }; + ErrCallbackHandlerWalker.prototype.visitNode = function (node) { + if (this.stack.length > 0 && + node.kind === ts.SyntaxKind.Identifier && + node.parent && + node.parent.kind !== ts.SyntaxKind.Parameter) { + var doCheck = false; + var inPropertyAccess = this.isPropAccess(node.parent); + if (!this.allowProperties) { + doCheck = !inPropertyAccess; + } + else if (inPropertyAccess) { + doCheck = node.parent.expression === node; + } + else { + doCheck = true; + } + if (doCheck) { + var text = node.text; + var i = this.stack.length; + while (i--) { + var info = this.stack[i]; + if (text === info.firstParamName) { + info.hasFirstParam = true; + break; + } + } + } + } + _super.prototype.visitNode.call(this, node); + }; + return ErrCallbackHandlerWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL2hhbmRsZUNhbGxiYWNrRXJyUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLHFCQUFxQixDQUFDO0FBRXhDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUF3RUEsQ0FBQztJQUhRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsSUFBSSx3QkFBd0IsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUMzRixDQUFDO0lBdEVhLGFBQVEsR0FBdUI7UUFDM0MsUUFBUSxFQUFFLFNBQVM7UUFDbkIsV0FBVyxFQUFFLHFDQUFxQztRQUNsRCxTQUFTLEVBQUUsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLHlZQUFBLDhUQUt6QixJQUFBO1FBQ0gsa0JBQWtCLEVBQUUsSUF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BQ0wsT0FBTyxHQUFHLElBQUksQ0FBQzthQUNoQjtZQUVELElBQUksT0FBTyxFQUFFO2dCQUNYLElBQU0sSUFBSSxHQUFJLElBQXNCLENBQUMsSUFBSSxDQUFDO2dCQUcxQyxJQUFJLENBQUMsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sQ0FBQztnQkFDMUIsT0FBTyxDQUFDLEVBQUUsRUFBRTtvQkFDVixJQUFNLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDO29CQUMzQixJQUFJLElBQUksS0FBSyxJQUFJLENBQUMsY0FBYyxFQUFFO3dCQUNoQyxJQUFJLENBQUMsYUFBYSxHQUFHLElBQUksQ0FBQzt3QkFDMUIsTUFBTTtxQkFDUDtpQkFDRjthQUNGO1NBQ0Y7UUFFRCxpQkFBTSxTQUFTLFlBQUMsSUFBSSxDQUFDLENBQUM7SUFDeEIsQ0FBQztJQUNILCtCQUFDO0FBQUQsQ0EzSUEsQUEySUMsQ0EzSXNDLElBQUksQ0FBQyxVQUFVLEdBMklyRCIsImZpbGUiOiJydWxlcy9oYW5kbGVDYWxsYmFja0VyclJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noConstantConditionRule.js b/node_modules/tslint-eslint-rules/dist/rules/noConstantConditionRule.js new file mode 100644 index 000000000..1fcd19441 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noConstantConditionRule.js @@ -0,0 +1,116 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var token_1 = require("../support/token"); +var RULE_NAME = 'no-constant-condition'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoConstantConditionWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'unexpected constant condition'; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'disallow use of constant expressions in conditions (recommended)', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n A constant expression (for example, a literal) as a test condition might be a typo or\n development trigger for a specific behavior. For example, the following code looks as if it is\n not ready for production.\n "], ["\n A constant expression (for example, a literal) as a test condition might be a typo or\n development trigger for a specific behavior. For example, the following code looks as if it is\n not ready for production.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n - `\"checkLoops\"` Setting this option to `false` allows constant expressions in loops (default: `true`).\n "], ["\n - \\`\"checkLoops\"\\` Setting this option to \\`false\\` allows constant expressions in loops (default: \\`true\\`).\n "]))), + options: { + type: 'object', + properties: { + checkLoops: { + type: 'boolean' + } + }, + additionalProperties: false + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": true\n "], ["\n \"", "\": true\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"checkLoops\": false }]\n "], ["\n \"", "\": [true, { \"checkLoops\": false }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'functionality' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoConstantConditionWalker = (function (_super) { + tslib_1.__extends(NoConstantConditionWalker, _super); + function NoConstantConditionWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.checkLoops = true; + var opts = _this.getOptions(); + if (opts.length && opts[0].checkLoops === false) { + _this.checkLoops = false; + } + return _this; + } + NoConstantConditionWalker.prototype.visitIfStatement = function (node) { + this.validateCondition(node.expression); + _super.prototype.visitIfStatement.call(this, node); + }; + NoConstantConditionWalker.prototype.visitWhileStatement = function (node) { + if (this.checkLoops) { + this.validateCondition(node.expression); + } + _super.prototype.visitWhileStatement.call(this, node); + }; + NoConstantConditionWalker.prototype.visitDoStatement = function (node) { + if (this.checkLoops) { + this.validateCondition(node.expression); + } + _super.prototype.visitDoStatement.call(this, node); + }; + NoConstantConditionWalker.prototype.visitForStatement = function (node) { + if (this.checkLoops && node.condition) { + this.validateCondition(node.condition); + } + _super.prototype.visitForStatement.call(this, node); + }; + NoConstantConditionWalker.prototype.visitConditionalExpression = function (node) { + this.validateCondition(node.condition); + _super.prototype.visitConditionalExpression.call(this, node); + }; + NoConstantConditionWalker.prototype.validateCondition = function (expression) { + if (this.isConstant(expression)) { + this.addFailure(this.createFailure(expression.getStart(), expression.getWidth(), Rule.FAILURE_STRING)); + } + this.walkChildren(expression); + }; + NoConstantConditionWalker.prototype.isConstant = function (node) { + switch (node.kind) { + case ts.SyntaxKind.StringLiteral: + case ts.SyntaxKind.NumericLiteral: + case ts.SyntaxKind.TrueKeyword: + case ts.SyntaxKind.FalseKeyword: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.ObjectLiteralExpression: + case ts.SyntaxKind.ArrayLiteralExpression: + return true; + case ts.SyntaxKind.PostfixUnaryExpression: + return this.isConstant(node.operand); + case ts.SyntaxKind.BinaryExpression: + if (token_1.isAssignmentToken(node.operatorToken)) { + return this.isConstant(node.right); + } + return this.isConstant(node.left) && this.isConstant(node.right); + case ts.SyntaxKind.ConditionalExpression: + return this.isConstant(node.condition); + case ts.SyntaxKind.PrefixUnaryExpression: + return this.isConstant(node.operand); + case ts.SyntaxKind.ParenthesizedExpression: + return this.isConstant(node.expression); + } + return false; + }; + return NoConstantConditionWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzI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UFDdkUsS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLHFCQUFxQjtnQkFDdEMsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFFLElBQWlDLENBQUMsT0FBTyxDQUFDLENBQUM7WUFDckUsS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLHVCQUF1QjtnQkFDeEMsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFFLElBQW1DLENBQUMsVUFBVSxDQUFDLENBQUM7U0FDM0U7UUFFRCxPQUFPLEtBQUssQ0FBQztJQUNmLENBQUM7SUFDSCxnQ0FBQztBQUFELENBeEZBLEFBd0ZDLENBeEZ1QyxJQUFJLENBQUMsVUFBVSxHQXdGdEQiLCJmaWxlIjoicnVsZXMvbm9Db25zdGFudENvbmRpdGlvblJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noControlRegexRule.js b/node_modules/tslint-eslint-rules/dist/rules/noControlRegexRule.js new file mode 100644 index 000000000..60ed867da --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noControlRegexRule.js @@ -0,0 +1,53 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoControlRegexWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'unexpected control character in regular expression'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoControlRegexWalker = (function (_super) { + tslib_1.__extends(NoControlRegexWalker, _super); + function NoControlRegexWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoControlRegexWalker.prototype.visitRegularExpressionLiteral = function (node) { + this.validateControlRegex(node); + _super.prototype.visitRegularExpressionLiteral.call(this, node); + }; + NoControlRegexWalker.prototype.visitNewExpression = function (node) { + if (node.expression.getText() === 'RegExp') { + this.visitRegularExpressionFunction(node); + } + _super.prototype.visitNewExpression.call(this, node); + }; + NoControlRegexWalker.prototype.visitCallExpression = function (node) { + if (node.expression.getText() === 'RegExp') { + this.visitRegularExpressionFunction(node); + } + _super.prototype.visitCallExpression.call(this, node); + }; + NoControlRegexWalker.prototype.visitRegularExpressionFunction = function (node) { + if (node.arguments && node.arguments.length > 0 && node.arguments[0].kind === ts.SyntaxKind.StringLiteral) { + this.validateControlRegex(node.arguments[0]); + } + }; + NoControlRegexWalker.prototype.validateControlRegex = function (node) { + if (/[\x00-\x1f]/.test(node.text)) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + }; + return NoControlRegexWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vQ29udHJvbFJlZ2V4UnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFPQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksb0JBQW9CLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDO1FBQ3ZFLE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBTGEsbUJBQWMsR0FBRyxvREFBb0QsQ0FBQztJQU10RixXQUFDO0NBUEQsQUFPQyxDQVB5QixJQUFJLENBQUMsS0FBSyxDQUFDLFlBQVksR0FPaEQ7QUFQWSxvQkF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0gsQ0FBQztJQUVPLG1EQUFvQixHQUE1QixVQUE2QixJQUEwQjtRQUNyRCxJQUFJLGFBQWEsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ2pDLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLEVBQUUsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO1NBQzVGO0lBQ0gsQ0FBQztJQUNILDJCQUFDO0FBQUQsQ0EvQkEsQUErQkMsQ0EvQmtDLElBQUksQ0FBQyxVQUFVLEdBK0JqRCIsImZpbGUiOiJydWxlcy9ub0NvbnRyb2xSZWdleFJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noDuplicateCaseRule.js b/node_modules/tslint-eslint-rules/dist/rules/noDuplicateCaseRule.js new file mode 100644 index 000000000..e9aa2f5f5 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noDuplicateCaseRule.js @@ -0,0 +1,46 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoDuplicateCaseWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'duplicate case label'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoDuplicateCaseWalker = (function (_super) { + tslib_1.__extends(NoDuplicateCaseWalker, _super); + function NoDuplicateCaseWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoDuplicateCaseWalker.prototype.visitSwitchStatement = function (node) { + this.validateNoDupeCase(node); + _super.prototype.visitSwitchStatement.call(this, node); + }; + NoDuplicateCaseWalker.prototype.validateNoDupeCase = function (node) { + var _this = this; + var cases = Object.create(null); + node.caseBlock.clauses.forEach(function (clause) { + if (clause.kind === ts.SyntaxKind.CaseClause) { + var key = clause.getText(); + if (cases[key]) { + _this.addFailure(_this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + else { + cases[key] = clause; + } + } + }); + }; + return NoDuplicateCaseWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vRHVwbGljYXRlQ2FzZVJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQjtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBT0EsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLHFCQUFxQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUN4RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUxhLG1CQUFjLEdBQUcsc0JBQXNCLENBQUM7SUFNeEQsV0FBQztDQVBELEFBT0MsQ0FQeUIsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLEdBT2hEO0FBUFksb0JBQUk7QUFTakI7SUFBb0MsaURBQWU7SUFBbkQ7O0lBcUJBLENBQUM7SUFwQlcsb0RBQW9CLEdBQTlCLFVBQStCLElBQXdCO1FBQ3JELElBQUksQ0FBQyxrQkFBa0IsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUM5QixpQkFBTSxvQkFBb0IsWUFBQyxJQUFJLENBQUMsQ0FBQztJQUNuQyxDQUFDO0lBRU8sa0RBQWtCLEdBQTFCLFVBQTJCLElBQXdCO1FBQW5ELGlCQWNDO1FBYkMsSUFBTSxLQUFLLEdBQUcsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUVsQyxJQUFJLENBQUMsU0FBUyxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsVUFBQyxNQUFNO1lBQ3BDLElBQUksTUFBTSxDQUFDLElBQUksS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLFVBQVUsRUFBRTtnQkFDNUMsSUFBTSxHQUFHLEdBQUcsTUFBTSxDQUFDLE9BQU8sRUFBRSxDQUFDO2dCQUM3QixJQUFJLEtBQUssQ0FBQyxHQUFHLENBQUMsRUFBRTtvQkFDZCxLQUFJLENBQUMsVUFBVSxDQUFDLEtBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztpQkFDNUY7cUJBQ0k7b0JBQ0gsS0FBSyxDQUFDLEdBQUcsQ0FBQyxHQUFHLE1BQXVCLENBQUM7aUJBQ3RDO2FBQ0Y7UUFDSCxDQUFDLENBQUMsQ0FBQztJQUNMLENBQUM7SUFDSCw0QkFBQztBQUFELENBckJBLEFBcUJDLENBckJtQyxJQUFJLENBQUMsVUFBVSxHQXFCbEQiLCJmaWxlIjoicnVsZXMvbm9EdXBsaWNhdGVDYXNlUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/noEmptyCharacterClassRule.js b/node_modules/tslint-eslint-rules/dist/rules/noEmptyCharacterClassRule.js new file mode 100644 index 000000000..3fbeae63d --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noEmptyCharacterClassRule.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoEmptyCharacterClassWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = "don't use empty classes in regular expressions"; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoEmptyCharacterClassWalker = (function (_super) { + tslib_1.__extends(NoEmptyCharacterClassWalker, _super); + function NoEmptyCharacterClassWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoEmptyCharacterClassWalker.prototype.visitRegularExpressionLiteral = function (node) { + this.validateEmptyCharacterClass(node); + _super.prototype.visitRegularExpressionLiteral.call(this, node); + }; + NoEmptyCharacterClassWalker.prototype.validateEmptyCharacterClass = function (node) { + if (!(/^\/([^\\[]|\\.|\[([^\\\]]|\\.)+\])*\/[gim]*$/.test(node.text))) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + }; + return NoEmptyCharacterClassWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vRW1wdHlDaGFyYWN0ZXJDbGFzc1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsNkJBQStCO0FBRS9CO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFPQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksMkJBQTJCLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDO1FBQzlFLE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBTGEsbUJBQWMsR0FBRyxnREFBZ0QsQ0FBQztJQU1sRixXQUFDO0NBUEQsQUFPQyxDQVB5QixJQUFJLENBQUMsS0FBSyxDQUFDLFlBQVksR0FPaEQ7QUFQWSxvQkFBSTtBQVNqQjtJQUEwQyx1REFBZTtJQUF6RDs7SUFXQSxDQUFDO0lBVlcsbUVBQTZCLEdBQXZDLFVBQXdDLElBQTBCO1FBQ2hFLElBQUksQ0FBQywyQkFBMkIsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN2QyxpQkFBTSw2QkFBNkIsWUFBQyxJQUFJLENBQUMsQ0FBQztJQUM1QyxDQUFDO0lBRU8saUVBQTJCLEdBQW5DLFVBQW9DLElBQTBCO1FBQzVELElBQUksQ0FBQyxDQUFDLDhDQUE4QyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRTtZQUNyRSxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztTQUM1RjtJQUNILENBQUM7SUFDSCxrQ0FBQztBQUFELENBWEEsQUFXQyxDQVh5QyxJQUFJLENBQUMsVUFBVSxHQVd4RCIsImZpbGUiOiJydWxlcy9ub0VtcHR5Q2hhcmFjdGVyQ2xhc3NSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/noExAssignRule.js b/node_modules/tslint-eslint-rules/dist/rules/noExAssignRule.js new file mode 100644 index 000000000..d297c0452 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noExAssignRule.js @@ -0,0 +1,57 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var token_1 = require("../support/token"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoExAssignWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'do not assign to the exception parameter'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoExAssignWalker = (function (_super) { + tslib_1.__extends(NoExAssignWalker, _super); + function NoExAssignWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.isInCatchClause = false; + return _this; + } + NoExAssignWalker.prototype.visitCatchClause = function (node) { + this.variableNode = node.variableDeclaration; + this.isInCatchClause = true; + _super.prototype.visitCatchClause.call(this, node); + this.isInCatchClause = false; + delete this.variableNode; + }; + NoExAssignWalker.prototype.visitBinaryExpression = function (node) { + var _this = this; + if (this.isInCatchClause) { + if (!token_1.isAssignmentToken(node.operatorToken)) { + return; + } + if (this.variableNode && + this.variableNode.name.getText() === node.left.getText() && + node.left.kind === ts.SyntaxKind.Identifier) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + else if (node.left.kind === ts.SyntaxKind.ArrayLiteralExpression) { + var els = node.left.elements; + if (els.some(function (el) { return !!_this.variableNode && el.getText() === _this.variableNode.getText(); })) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + } + } + _super.prototype.visitBinaryExpression.call(this, node); + }; + return NoExAssignWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vRXhBc3NpZ25Sd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QUFDLElBQUksQ0FBQyxDQUFDO0lBQ3BDLENBQUM7SUFDSCx1QkFBQztBQUFELENBakNBLEFBaUNDLENBakM4QixJQUFJLENBQUMsVUFBVSxHQWlDN0MiLCJmaWxlIjoicnVsZXMvbm9FeEFzc2lnblJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noExtraBooleanCastRule.js b/node_modules/tslint-eslint-rules/dist/rules/noExtraBooleanCastRule.js new file mode 100644 index 000000000..272286d6a --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noExtraBooleanCastRule.js @@ -0,0 +1,83 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoExtraBooleanCastWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + if: 'redundant double negation in an if statement condition', + do: 'redundant double negation in a do while loop condition', + while: 'redundant double negation in a while loop condition', + ternaryif: 'redundant double negation in a ternary condition', + for: 'redundant double negation in a for loop condition', + unaryCast: 'redundant multiple negation', + objectCast: 'redundant double negation in call to Boolean()', + newCast: 'redundant double negation in Boolean constructor call' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoExtraBooleanCastWalker = (function (_super) { + tslib_1.__extends(NoExtraBooleanCastWalker, _super); + function NoExtraBooleanCastWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoExtraBooleanCastWalker.prototype.visitPrefixUnaryExpression = function (node) { + this.validateNoExtraBoolean(node); + _super.prototype.visitPrefixUnaryExpression.call(this, node); + }; + NoExtraBooleanCastWalker.prototype.validateNoExtraBoolean = function (node) { + if (!node.parent || !node.parent.parent) { + return; + } + var parent = node.parent; + var grandparent = parent.parent; + if (node.operator !== ts.SyntaxKind.ExclamationToken || + parent.kind !== ts.SyntaxKind.PrefixUnaryExpression || + parent.operator !== ts.SyntaxKind.ExclamationToken || + !grandparent) { + return; + } + if (grandparent.kind === ts.SyntaxKind.BinaryExpression) { + grandparent = grandparent.parent; + } + if (!grandparent) { + return; + } + if (grandparent.kind === ts.SyntaxKind.IfStatement) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.if)); + } + else if (grandparent.kind === ts.SyntaxKind.DoStatement) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.do)); + } + else if (grandparent.kind === ts.SyntaxKind.WhileStatement) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.while)); + } + else if (grandparent.kind === ts.SyntaxKind.ConditionalExpression && parent === grandparent.condition) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.ternaryif)); + } + else if (grandparent.kind === ts.SyntaxKind.ForStatement && parent === grandparent.condition) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.for)); + } + else if (grandparent.kind === ts.SyntaxKind.PrefixUnaryExpression && grandparent.operator === ts.SyntaxKind.ExclamationToken) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.unaryCast)); + } + else if (grandparent.kind === ts.SyntaxKind.CallExpression && /^Boolean/.test(grandparent.getText())) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.objectCast)); + } + else if (grandparent.kind === ts.SyntaxKind.NewExpression && /^new Boolean/.test(grandparent.getText())) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING.newCast)); + } + }; + return NoExtraBooleanCastWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ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BQ3BHO0lBQ0gsQ0FBQztJQUNILCtCQUFDO0FBQUQsQ0FwREEsQUFvREMsQ0FwRHNDLElBQUksQ0FBQyxVQUFVLEdBb0RyRCIsImZpbGUiOiJydWxlcy9ub0V4dHJhQm9vbGVhbkNhc3RSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/noExtraSemiRule.js b/node_modules/tslint-eslint-rules/dist/rules/noExtraSemiRule.js new file mode 100644 index 000000000..e0ab5c0c3 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noExtraSemiRule.js @@ -0,0 +1,69 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoExtraSemiWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'unnecessary semicolon'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoExtraSemiWalker = (function (_super) { + tslib_1.__extends(NoExtraSemiWalker, _super); + function NoExtraSemiWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.ALLOWED_PARENT_TYPES = [ + ts.SyntaxKind.ForStatement, + ts.SyntaxKind.ForInStatement, + ts.SyntaxKind.ForOfStatement, + ts.SyntaxKind.WhileStatement, + ts.SyntaxKind.DoStatement + ]; + return _this; + } + NoExtraSemiWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.EmptyStatement) { + this.visitEmptyStatement(node); + } + _super.prototype.visitNode.call(this, node); + }; + NoExtraSemiWalker.prototype.visitClassDeclaration = function (node) { + this.checkClass(node); + _super.prototype.visitClassDeclaration.call(this, node); + }; + NoExtraSemiWalker.prototype.visitEmptyStatement = function (node) { + if (node.parent && this.ALLOWED_PARENT_TYPES.indexOf(node.parent.kind) === -1) { + this.validateNoExtraSemi(node); + } + }; + NoExtraSemiWalker.prototype.checkClass = function (node) { + var indexOf = node.getChildren().map(function (child) { return child.kind; }).indexOf(ts.SyntaxKind.FirstPunctuation); + var children = node.getChildren().slice(indexOf); + this.checkClassChildren(children); + }; + NoExtraSemiWalker.prototype.checkClassChildren = function (children) { + for (var _i = 0, children_1 = children; _i < children_1.length; _i++) { + var child = children_1[_i]; + if ((child.kind === ts.SyntaxKind.SyntaxList || child.kind === ts.SyntaxKind.SemicolonClassElement) && child.getText() === ';') { + this.validateNoExtraSemi(child); + } + else if (child.kind === ts.SyntaxKind.SyntaxList && child.getText().indexOf(';') !== -1) { + this.checkClassChildren(child.getChildren()); + } + } + }; + NoExtraSemiWalker.prototype.validateNoExtraSemi = function (node) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + }; + return NoExtraSemiWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vRXh0cmFTZW1pUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFPQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksaUJBQWlCLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDO1FBQ3BFLE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBTGEsbUJBQWMsR0FBRyx1QkFBdUIsQ0FBQztJQU16RCxXQ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UMsS0FBSyxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUM7YUFDOUM7U0FDRjtJQUNILENBQUM7SUFFTywrQ0FBbUIsR0FBM0IsVUFBNEIsSUFBYTtRQUN2QyxJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLElBQUksQ0FBQyxRQUFRLEVBQUUsRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztJQUM3RixDQUFDO0lBQ0gsd0JBQUM7QUFBRCxDQWhEQSxBQWdEQyxDQWhEK0IsSUFBSSxDQUFDLFVBQVUsR0FnRDlDIiwiZmlsZSI6InJ1bGVzL25vRXh0cmFTZW1pUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/noInnerDeclarationsRule.js b/node_modules/tslint-eslint-rules/dist/rules/noInnerDeclarationsRule.js new file mode 100644 index 000000000..e745e4a2f --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noInnerDeclarationsRule.js @@ -0,0 +1,67 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoInnerDeclarationsWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoInnerDeclarationsWalker = (function (_super) { + tslib_1.__extends(NoInnerDeclarationsWalker, _super); + function NoInnerDeclarationsWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.VALID_PARENT_TYPES = [ + ts.SyntaxKind.SourceFile, + ts.SyntaxKind.FunctionDeclaration, + ts.SyntaxKind.FunctionExpression, + ts.SyntaxKind.ArrowFunction, + ts.SyntaxKind.MethodDeclaration, + ts.SyntaxKind.ModuleDeclaration, + ts.SyntaxKind.Constructor + ]; + return _this; + } + NoInnerDeclarationsWalker.prototype.visitFunctionDeclaration = function (node) { + this.validateInnerDeclaration(node); + _super.prototype.visitFunctionDeclaration.call(this, node); + }; + NoInnerDeclarationsWalker.prototype.visitVariableStatement = function (node) { + if (this.hasOption('both') && node.declarationList.getFirstToken().kind === ts.SyntaxKind.VarKeyword) { + this.validateInnerDeclaration(node); + } + _super.prototype.visitVariableStatement.call(this, node); + }; + NoInnerDeclarationsWalker.prototype.validateInnerDeclaration = function (node) { + var body = this.nearestBody(node); + var isValid = (body.isSourceFile && body.distance === 1) || body.distance === 2; + if (!isValid) { + var decl = node.kind === ts.SyntaxKind.FunctionDeclaration ? 'function' : 'variable'; + var root = body.isSourceFile ? 'program' : 'function body'; + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), "move " + decl + " declaration to " + root + " root")); + } + }; + NoInnerDeclarationsWalker.prototype.nearestBody = function (node) { + var ancestor = node.parent; + var generation = 1; + while (ancestor && this.VALID_PARENT_TYPES.indexOf(ancestor.kind) === -1) { + generation++; + ancestor = ancestor.parent; + } + return { + isSourceFile: (ancestor && ancestor.kind === ts.SyntaxKind.SourceFile) || !ancestor, + distance: generation + }; + }; + return NoInnerDeclarationsWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vSW5uZXJEZWNsYXJhdGlvbnNSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0I7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQUtBLENBQUM7SUFKUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcE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IsQ0FBQyxPQUFPLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxFQUFFO1lBQ3hFLFVBQVUsRUFBRSxDQUFDO1lBQ2IsUUFBUSxHQUFHLFFBQVEsQ0FBQyxNQUFNLENBQUM7U0FDNUI7UUFFRCxPQUFPO1lBQ0wsWUFBWSxFQUFFLENBQUMsUUFBUSxJQUFJLFFBQVEsQ0FBQyxJQUFJLEtBQUssRUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLFFBQVE7WUFDbkYsUUFBUSxFQUFFLFVBQVU7U0FDckIsQ0FBQztJQUNKLENBQUM7SUFDSCxnQ0FBQztBQUFELENBbkRBLEFBbURDLENBbkR1QyxJQUFJLENBQUMsVUFBVSxHQW1EdEQiLCJmaWxlIjoicnVsZXMvbm9Jbm5lckRlY2xhcmF0aW9uc1J1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noInvalidRegexpRule.js b/node_modules/tslint-eslint-rules/dist/rules/noInvalidRegexpRule.js new file mode 100644 index 000000000..72a4a4348 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noInvalidRegexpRule.js @@ -0,0 +1,49 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoInvalidRegexpWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoInvalidRegexpWalker = (function (_super) { + tslib_1.__extends(NoInvalidRegexpWalker, _super); + function NoInvalidRegexpWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoInvalidRegexpWalker.prototype.visitNewExpression = function (node) { + this.validateInvalidRegExp(node); + _super.prototype.visitNewExpression.call(this, node); + }; + NoInvalidRegexpWalker.prototype.visitCallExpression = function (node) { + this.validateInvalidRegExp(node); + _super.prototype.visitCallExpression.call(this, node); + }; + NoInvalidRegexpWalker.prototype.validateInvalidRegExp = function (node) { + if (node.expression.getText() === 'RegExp') { + var args = node.arguments; + if (args && args.length > 0 && args[0].kind === ts.SyntaxKind.StringLiteral) { + var expr = args[0].text; + var flags = args.length > 1 && args[1].kind === ts.SyntaxKind.StringLiteral ? args[1].text : undefined; + try { + new RegExp(expr, flags); + } + catch (e) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), e.message)); + } + } + } + }; + return NoInvalidRegexpWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vSW52YWxpZFJlZ2V4cFJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQjtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBS0EsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLHFCQUFxQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUN4RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUNILFdBQUM7QUFBRCxDQUxBLEFBS0MsQ0FMeUIsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLEdBS2hEO0FBTFksb0JBQUk7QUFPakI7SUFBb0MsaURBQWU7SUFBbkQ7O0lBNEJBLENBQUM7SUEzQlcsa0RBQWtCLEdB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QU8sQ0FBQyxFQUFFO29CQUNSLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLEVBQUUsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLENBQUMsQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDO2lCQUNsRjthQUNGO1NBQ0Y7SUFDSCxDQUFDO0lBQ0gsNEJBQUM7QUFBRCxDQTVCQSxBQTRCQyxDQTVCbUMsSUFBSSxDQUFDLFVBQVUsR0E0QmxEIiwiZmlsZSI6InJ1bGVzL25vSW52YWxpZFJlZ2V4cFJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/noMultiSpacesRule.js b/node_modules/tslint-eslint-rules/dist/rules/noMultiSpacesRule.js new file mode 100644 index 000000000..281ece00b --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noMultiSpacesRule.js @@ -0,0 +1,119 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoMultiSpacesWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoMultiSpacesWalker = (function (_super) { + tslib_1.__extends(NoMultiSpacesWalker, _super); + function NoMultiSpacesWalker(sourceFile, options) { + var _a; + var _this = _super.call(this, sourceFile, options) || this; + _this.EXCEPTION_MAP = (_a = {}, + _a[ts.SyntaxKind.VariableDeclaration] = 'VariableDeclaration', + _a[ts.SyntaxKind.PropertyAssignment] = 'PropertyAssignment', + _a[ts.SyntaxKind.BinaryExpression] = 'BinaryExpression', + _a); + _this.STRING_TYPES = [ + ts.SyntaxKind.NoSubstitutionTemplateLiteral, + ts.SyntaxKind.LastTemplateToken, + ts.SyntaxKind.StringLiteral + ]; + _this.exceptions = {}; + _this.targets = []; + _this.targetNode = {}; + _this.targetIndex = 0; + var opt = _this.getOptions(); + _this.src = sourceFile.getFullText(); + if (opt.length) { + _this.exceptions = opt[0].exceptions || {}; + } + if (_this.exceptions['PropertyAssignment'] === undefined) { + _this.exceptions['PropertyAssignment'] = true; + } + var pattern = /[^\n\r\u2028\u2029\t ].? {2,}/g; + while (pattern.test(_this.src)) { + _this.targets.push(pattern.lastIndex); + _this.targetNode[pattern.lastIndex] = sourceFile; + } + _this.lastNode = sourceFile.getLastToken(); + return _this; + } + NoMultiSpacesWalker.prototype.inRange = function (x, range) { + return x >= range[0] && x <= range[1]; + }; + NoMultiSpacesWalker.prototype.warn = function (value, pos, node) { + var msg = "Multiple spaces found before '" + value + "'."; + var exceptionName = this.EXCEPTION_MAP[node.parent.kind]; + var report = true; + var start = node.getFullStart() - 1; + var previousChar = this.src.substring(start, start + 1); + if (exceptionName && this.exceptions[exceptionName]) { + if (previousChar !== ',') { + report = false; + } + } + if (previousChar === ':') { + var crt = node.parent; + while (crt.kind !== ts.SyntaxKind.SourceFile) { + crt = crt.parent; + if (crt.kind === ts.SyntaxKind.PropertyAssignment) { + if (this.exceptions['PropertyAssignment']) { + report = false; + } + break; + } + } + } + if (report) { + this.addFailure(this.createFailure(pos, value.length, msg)); + } + }; + NoMultiSpacesWalker.prototype.walkChildren = function (node) { + var _this = this; + var range = [node.getStart(), node.getEnd()]; + for (var i = this.targetIndex, len = this.targets.length, target = void 0; i < len; i++) { + target = this.targets[i]; + if (this.inRange(target, range)) { + this.targetNode[target] = node; + } + if (range[0] > this.targets[this.targetIndex]) { + this.targetIndex++; + } + } + if (node === this.lastNode) { + this.targets.forEach(function (target) { + var valid = _this.targetNode[target]; + if (target === valid.getStart()) { + _this.warn(valid.getText(), target, valid); + } + else if (target === valid.getEnd() - 1 && _this.STRING_TYPES.indexOf(valid.kind) === -1) { + var endChar = _this.src.substring(target, valid.getEnd()); + _this.warn(endChar, target, valid); + } + else { + if (_this.src.charAt(target) !== '\n' && valid.kind !== ts.SyntaxKind.SourceFile) { + } + } + }); + } + var children = node.getChildren(); + for (var index in children) { + this.visitNode(children[index]); + } + }; + return NoMultiSpacesWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vTXVsdGlTcGFjZXNSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0I7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQUtBLENBQUM7SUFKUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcEMsSUFBTSxNQUFNLEdBQUcsSUFBSSxtQkFBbUIsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7UUFDdEUsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3RDLENBQUM7SUFDSCxXQUFDO0FBQUQsQ0FMQSxBQUtDLENBTHlCLElBQUksQ0FBQyxLQUFLLENBQUMsWUFBWSxHQUtoRDtBQUxZLG9CQUFJO0FBc0JqQjtJQUFrQywrQ0FBZTtJQW1CL0MsNkJBQVksVUFBeUIsRUFBRSxPQUFzQjs7UUFBN0QsWUFDRSxrQkFBTSxVQUFVLEVBQUUsT0FBTyxDQUFDLFNBa0IzQjtRQXBDTyxtQkFBYTtZQUNuQixHQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsbUJBQW1CLElBQUcscUJBQXFCO1lBQzFELEdBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxrQkFBa0IsSUFBRyxvQk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UksS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLFVBQVUsRUFBRTtxQkFLaEY7aUJBQ0Y7WUFDSCxDQUFDLENBQUMsQ0FBQztTQUNKO1FBRUQsSUFBTSxRQUFRLEdBQWMsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDO1FBQy9DLEtBQUssSUFBSSxLQUFLLElBQUksUUFBUSxFQUFFO1lBQzFCLElBQUksQ0FBQyxTQUFTLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7U0FDakM7SUFDSCxDQUFDO0lBQ0gsMEJBQUM7QUFBRCxDQXRIQSxBQXNIQyxDQXRIaUMsSUFBSSxDQUFDLFVBQVUsR0FzSGhEIiwiZmlsZSI6InJ1bGVzL25vTXVsdGlTcGFjZXNSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/noRegexSpacesRule.js b/node_modules/tslint-eslint-rules/dist/rules/noRegexSpacesRule.js new file mode 100644 index 000000000..c069b7778 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noRegexSpacesRule.js @@ -0,0 +1,35 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoRegexSpacesWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoRegexSpacesWalker = (function (_super) { + tslib_1.__extends(NoRegexSpacesWalker, _super); + function NoRegexSpacesWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoRegexSpacesWalker.prototype.visitRegularExpressionLiteral = function (node) { + this.validateMultipleSpaces(node); + _super.prototype.visitRegularExpressionLiteral.call(this, node); + }; + NoRegexSpacesWalker.prototype.validateMultipleSpaces = function (node) { + var res = /( {2,})+?/.exec(node.text); + if (res) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), "spaces are hard to count - use {" + res[0].length + "}")); + } + }; + return NoRegexSpacesWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vUmVnZXhTcGFjZXNSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDZCQUErQjtBQUUvQjtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBS0EsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLG1CQUFtQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUN0RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQUNILFdBQUM7QUFBRCxDQUxBLEFBS0MsQ0FMeUIsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLEdBS2hEO0FBTFksb0JBQUk7QUFPakI7SUFBa0MsK0NBQWU7SUFBakQ7O0lBWUEsQ0FBQztJQVhXLDJEQUE2QixHQUF2QyxVQUF3QyxJQUEwQjtRQUNoRSxJQUFJLENBQUMsc0JBQXNCLENBQUMsSUFBSSxDQUFDLENBQUM7UUFDbEMsaUJBQU0sNkJBQTZCLFlBQUMsSUFBSSxDQUFDLENBQUM7SUFDNUMsQ0FBQztJQUVPLG9EQUFzQixHQUE5QixVQUErQixJQUEwQjtRQUN2RCxJQUFNLEdBQUcsR0FBRyxXQUFXLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUN4QyxJQUFJLEdBQUcsRUFBRTtZQUNQLElBQUksQ0FBQyxVQUFVLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQUMsUUFBUSxFQUFFLEVBQUUsSUFBSSxDQUFDLFFBQVEsRUFBRSxFQUFFLHFDQUFtQyxHQUFHLENBQUMsQ0FBQyxDQUFDLENBQUMsTUFBTSxNQUFHLENBQUMsQ0FBQyxDQUFDO1NBQzVIO0lBQ0gsQ0FBQztJQUNILDBCQUFDO0FBQUQsQ0FaQSxBQVlDLENBWmlDLElBQUksQ0FBQyxVQUFVLEdBWWhEIiwiZmlsZSI6InJ1bGVzL25vUmVnZXhTcGFjZXNSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/noUnexpectedMultilineRule.js b/node_modules/tslint-eslint-rules/dist/rules/noUnexpectedMultilineRule.js new file mode 100644 index 000000000..aa743442c --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/noUnexpectedMultilineRule.js @@ -0,0 +1,91 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoUnexpectedMultilineWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + func: 'unexpected newline between function and ( of function call', + prop: 'unexpected newline between object and [ of property access', + template: 'unexpected newline between template tag and template literal' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoUnexpectedMultilineWalker = (function (_super) { + tslib_1.__extends(NoUnexpectedMultilineWalker, _super); + function NoUnexpectedMultilineWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoUnexpectedMultilineWalker.prototype.visitCallExpression = function (node) { + var firstLeftParen = node.getChildren().filter(function (ch) { return ch.kind === ts.SyntaxKind.OpenParenToken; })[0]; + if (this.isBreakBefore(firstLeftParen)) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), this.getMessage(node))); + } + _super.prototype.visitCallExpression.call(this, node); + }; + NoUnexpectedMultilineWalker.prototype.visitElementAccessExpression = function (node) { + var firstLeftSquareBracket = node.getChildren().filter(function (ch) { return ch.kind === ts.SyntaxKind.OpenBracketToken; })[0]; + if (this.isBreakBefore(firstLeftSquareBracket)) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), this.getMessage(node))); + } + _super.prototype.visitElementAccessExpression.call(this, node); + }; + NoUnexpectedMultilineWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.TaggedTemplateExpression) { + var children = node.getChildren(); + var tag = children.filter(function (ch) { return ch.kind === ts.SyntaxKind.Identifier; })[0]; + var tagIndex = children.indexOf(tag); + if (tag && children[tagIndex + 1]) { + var template = children[tagIndex + 1]; + if (this.isBreakBefore(template)) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), this.getMessage(node))); + } + } + } + _super.prototype.visitNode.call(this, node); + }; + NoUnexpectedMultilineWalker.prototype.isBreakBefore = function (node) { + if (node.parent) { + var children = node.parent.getChildren(); + var nodeIndex = children.indexOf(node); + if (nodeIndex > 0) { + var nodeLine = this.getStartPosition(node).line; + var previousNodeLine = this.getEndPosition(children[nodeIndex - 1]).line; + if (nodeLine !== previousNodeLine) { + return true; + } + } + } + return false; + }; + NoUnexpectedMultilineWalker.prototype.getMessage = function (node) { + switch (node.kind) { + case ts.SyntaxKind.CallExpression: + return Rule.FAILURE_STRING.func; + case ts.SyntaxKind.ElementAccessExpression: + return Rule.FAILURE_STRING.prop; + case ts.SyntaxKind.TaggedTemplateExpression: + return Rule.FAILURE_STRING.template; + default: + throw 'Unexpected node type: ' + ts.SyntaxKind[node.kind]; + } + }; + NoUnexpectedMultilineWalker.prototype.getStartPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getStart()); + }; + NoUnexpectedMultilineWalker.prototype.getEndPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getEnd()); + }; + return NoUnexpectedMultilineWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL25vVW5leHBlY3RlZE11bHRpbGluZVJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQjtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBV0EsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLDJCQUEyQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUM5RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQVRhLG1CQUFjLEdBQUc7UUFDN0IsSUFBSSxFQUFFLDREQUE0RDtRQUNsRSxJQUFJLEVBQUUsNERBQTREO1FBQ2xFLFFBQVEsRUFBRSw4REFBOEQ7S0FDekUsQ0FBQztJQU1KLFdBQUM7Q0FYRCxBQVdDLENBWHlCLElBQUksQ0FBQyxLQUFLLENBQUMsWUFBWSxHQVdoRDtBQVhZLG9CQUFJO0FBYWpCO0lBQTBDLHVEQUFlO0lBQXpEOztJQTZFQSxDQUFDO0lBNUVXLHlEQUFtQixHQUE3QixVQUE4QixJQUF1QjtRQUNuRCxJQUFNLGNBQWMsR0FBRyxJQUFJLENBQUMsV0FBVyxFQUFFLENBQUMsTUFBTSxDQUFDLFVBQUEsRUFBRSxJQUFJLE9BQUEsRUFBRSxDQUFDLElBQUksS0FBSyxFQUFFLENB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QWEsRUFBRSxDQUFDLDZCQUE2QixDQUFDLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDO0lBQzdFLENBQUM7SUFFTyxvREFBYyxHQUF0QixVQUF1QixJQUFhO1FBQ2xDLE9BQU8sSUFBSSxDQUFDLGFBQWEsRUFBRSxDQUFDLDZCQUE2QixDQUFDLElBQUksQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFDO0lBQzNFLENBQUM7SUFDSCxrQ0FBQztBQUFELENBN0VBLEFBNkVDLENBN0V5QyxJQUFJLENBQUMsVUFBVSxHQTZFeEQiLCJmaWxlIjoicnVsZXMvbm9VbmV4cGVjdGVkTXVsdGlsaW5lUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/objectCurlySpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/objectCurlySpacingRule.js new file mode 100644 index 000000000..e17b0e6f4 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/objectCurlySpacingRule.js @@ -0,0 +1,109 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var OPTION_ALWAYS = 'always'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new ObjectCurlySpacingWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + always: { + start: "A space is required after '{'", + end: "A space is required before '}'" + }, + never: { + start: "There should be no space after '{'", + end: "There should be no space before '}'" + } + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var ObjectCurlySpacingWalker = (function (_super) { + tslib_1.__extends(ObjectCurlySpacingWalker, _super); + function ObjectCurlySpacingWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.always = _this.hasOption(OPTION_ALWAYS) || (_this.getOptions() && _this.getOptions().length === 0); + var opt = _this.getOptions(); + _this.exceptions = opt[1] || {}; + if (_this.exceptions.arraysInObjects === undefined) { + _this.exceptions.arraysInObjects = _this.always; + } + if (_this.exceptions.objectsInObjects === undefined) { + _this.exceptions.objectsInObjects = _this.always; + } + return _this; + } + ObjectCurlySpacingWalker.prototype.visitNode = function (node) { + var bracedKind = [ + ts.SyntaxKind.ObjectLiteralExpression, + ts.SyntaxKind.ObjectBindingPattern, + ts.SyntaxKind.NamedImports, + ts.SyntaxKind.NamedExports + ]; + if (bracedKind.indexOf(node.kind) > -1) { + this.checkSpacingInsideBraces(node); + } + _super.prototype.visitNode.call(this, node); + }; + ObjectCurlySpacingWalker.prototype.checkSpacingInsideBraces = function (node) { + var text = node.getText(); + if (text.indexOf('\n') !== -1 || /^\{\s*\}$/.test(text)) { + return; + } + var endsWithObjectLiteral = false; + var endsWithArrayLiteral = false; + if (node.getChildren().length === 3) { + var contents = node.getChildren()[1].getChildren(); + if (contents.length > 0) { + var lastElement = contents[contents.length - 1]; + if (lastElement.kind === ts.SyntaxKind.PropertyAssignment || lastElement.kind === ts.SyntaxKind.BindingElement) { + var value = lastElement.getChildren(); + if (value.length === 3) { + endsWithObjectLiteral = value[2].kind === ts.SyntaxKind.ObjectLiteralExpression || value[2].kind === ts.SyntaxKind.ObjectBindingPattern; + endsWithArrayLiteral = value[2].kind === ts.SyntaxKind.ArrayLiteralExpression; + } + } + } + } + var leadingSpace = text.match(/^\{(\s{0,2})/)[1].length; + if (this.always) { + if (leadingSpace === 0) { + var fix = Lint.Replacement.appendText(node.getStart() + 1, ' '); + this.addFailure(this.createFailure(node.getStart(), 1, Rule.FAILURE_STRING.always.start, fix)); + } + } + else { + if (leadingSpace > 0) { + var fix = Lint.Replacement.deleteText(node.getStart() + 1, leadingSpace); + this.addFailure(this.createFailure(node.getStart(), 1, Rule.FAILURE_STRING.never.start, fix)); + } + } + var trailingSpace = text.match(/(\s{0,2})}$/)[1].length; + var arrayExceptionApplies = this.always !== this.exceptions.arraysInObjects && endsWithArrayLiteral; + var objectExceptionApplies = this.always !== this.exceptions.objectsInObjects && endsWithObjectLiteral; + var spaceRequired = arrayExceptionApplies || objectExceptionApplies ? !this.always : this.always; + if (spaceRequired) { + if (trailingSpace === 0) { + var fix = Lint.Replacement.appendText(node.getEnd() - 1, ' '); + this.addFailure(this.createFailure(node.getEnd() - 1, 1, Rule.FAILURE_STRING.always.end, fix)); + } + } + else { + if (trailingSpace > 0) { + var fix = Lint.Replacement.deleteText(node.getEnd() - trailingSpace - 1, trailingSpace); + this.addFailure(this.createFailure(node.getEnd() - 1, 1, Rule.FAILURE_STRING.never.end, fix)); + } + } + }; + return ObjectCurlySpacingWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL29iamVjdEN1cmx5U3BhY2luZ1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixJQUFNLGFBQWEsR0FBRyxRQUFRLENBQUM7QUFFL0I7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQWdCQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksd0JBQXdCLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDO1FBQzNFLE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBZGEsbUJBQWMsR0FBRztRQUM3QixNQUFNLEVBQUU7WUFDTixLQUFLLEVBQUUsK0JBQStCO1lBQ3RDLEdBQUcsRUFBRSxnQ0FBZ0M7U0F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slint-eslint-rules/dist/rules/sortImportsRule.js new file mode 100644 index 000000000..757551e66 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/sortImportsRule.js @@ -0,0 +1,215 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var Lint = require("tslint"); +var ts = require("typescript"); +var RULE_NAME = 'sort-imports'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new RuleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'enforce sorting import declarations within module', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n When declaring multiple imports, a sorted list of import declarations make it easier for developers to\n read the code and find necessary imports later. This rule is purely a matter of style.\n\n This rule checks all import declarations and verifies that all imports are first sorted by the used member\n syntax and then alphabetically by the first member or alias name.\n "], ["\n When declaring multiple imports, a sorted list of import declarations make it easier for developers to\n read the code and find necessary imports later. This rule is purely a matter of style.\n\n This rule checks all import declarations and verifies that all imports are first sorted by the used member\n syntax and then alphabetically by the first member or alias name.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n - `\"ignore-case\"` does case-insensitive comparisons (default: `false`)\n - `\"ignore-member-sort\"` allows members in multiple type imports to occur in any order (default: `false`)\n - `\"member-syntax-sort-order\"` (default: `[\"none\", \"all\", \"multiple\", \"single\", \"alias\"]`); all 5 items must be\n present in the array, but you can change the order:\n - `none` = import module without exported bindings.\n - `all` = import all members provided by exported bindings.\n - `multiple` = import multiple members.\n - `single` = import a single member.\n - `alias` = creates an alias for a member. This is unique to TER and not in ESLint's `sort-imports`.\n "], ["\n - \\`\"ignore-case\"\\` does case-insensitive comparisons (default: \\`false\\`)\n - \\`\"ignore-member-sort\"\\` allows members in multiple type imports to occur in any order (default: \\`false\\`)\n - \\`\"member-syntax-sort-order\"\\` (default: \\`[\"none\", \"all\", \"multiple\", \"single\", \"alias\"]\\`); all 5 items must be\n present in the array, but you can change the order:\n - \\`none\\` = import module without exported bindings.\n - \\`all\\` = import all members provided by exported bindings.\n - \\`multiple\\` = import multiple members.\n - \\`single\\` = import a single member.\n - \\`alias\\` = creates an alias for a member. This is unique to TER and not in ESLint's \\`sort-imports\\`.\n "]))), + options: { + type: 'object', + properties: { + 'member-syntax-sort-order': { + type: 'array', + items: { + type: 'string', + enum: ['none', 'all', 'multiple', 'single', 'alias'] + }, + minLength: 5, + maxLength: 5 + }, + 'ignore-case': { + type: 'boolean' + }, + 'ignore-member-sort': { + type: 'boolean' + } + } + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"ignore-case\" }]\n "], ["\n \"", "\": [true, { \"ignore-case\" }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"ignore-member-sort\" }]\n "], ["\n \"", "\": [true, { \"ignore-member-sort\" }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"member-syntax-sort-order\": [\"all\", \"single\", \"multiple\", \"none\", \"alias\"] }]\n "], ["\n \"", "\": [true, { \"member-syntax-sort-order\": [\"all\", \"single\", \"multiple\", \"none\", \"alias\"] }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var MemberSyntaxType; +(function (MemberSyntaxType) { + MemberSyntaxType[MemberSyntaxType["None"] = 0] = "None"; + MemberSyntaxType[MemberSyntaxType["All"] = 1] = "All"; + MemberSyntaxType[MemberSyntaxType["Multiple"] = 2] = "Multiple"; + MemberSyntaxType[MemberSyntaxType["Single"] = 3] = "Single"; + MemberSyntaxType[MemberSyntaxType["Alias"] = 4] = "Alias"; +})(MemberSyntaxType || (MemberSyntaxType = {})); +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.currentImportIndex = 0; + var optionSet = _this.getOptions()[0] || {}; + _this.ignoreCase = _this.hasOption('ignore-case'); + _this.ignoreMemberSort = _this.hasOption('ignore-member-sort'); + _this.expectedOrder = RuleWalker._processMemberSyntaxSortOrder(optionSet['member-syntax-sort-order']); + _this.currentSortValue = { sortValue: '', originalValue: '' }; + if (_this.ignoreCase) { + _this.caseConverter = function (s) { return s.toUpperCase(); }; + } + else { + _this.caseConverter = function (s) { return s; }; + } + return _this; + } + RuleWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.ImportDeclaration || + node.kind === ts.SyntaxKind.ImportEqualsDeclaration) { + this._validateOrder(node); + } + _super.prototype.visitNode.call(this, node); + }; + RuleWalker.prototype.visitNamedImports = function (node) { + if (!this.ignoreMemberSort) { + this._validateMemberSort(node); + } + _super.prototype.visitNamedImports.call(this, node); + }; + RuleWalker.prototype._validateMemberSort = function (node) { + var _this = this; + var imports = node.elements.map(function (e) { return _this.caseConverter(e.getText()); }); + var importReduction = imports.reduce(function (prev, current) { return prev + current; }); + var sortedImports = imports.sort(); + var sortedReduction = sortedImports.reduce(function (prev, current) { return prev + current; }); + if (importReduction !== sortedReduction) { + this.addFailureAtNode(node, 'Member imports must be sorted alphabetically.'); + } + }; + RuleWalker.prototype._validateOrder = function (node) { + var importData = this._determineImportType(node); + if (importData) { + var importName = importData.sortValue.trim(); + var index = this.expectedOrder.indexOf(importData.memberSyntaxType, this.currentImportIndex); + if (index !== -1) { + if (this.expectedOrder[this.currentImportIndex] !== importData.memberSyntaxType) { + this.currentImportIndex = index; + this.currentSortValue = { + sortValue: this.caseConverter(importName), + originalValue: importName + }; + } + else if (this.currentSortValue.sortValue > this.caseConverter(importName)) { + this.addFailureAtNode(node, "All imports of the same type must be sorted alphabetically. \"" + importName + "\" must come before \"" + this.currentSortValue.originalValue + "\""); + } + else { + this.currentSortValue = { + sortValue: this.caseConverter(importName), + originalValue: importName + }; + } + } + else { + var currentSyntaxType = MemberSyntaxType[importData.memberSyntaxType]; + var previousSyntaxType = MemberSyntaxType[this.expectedOrder[this.currentImportIndex]]; + this.addFailureAtNode(node, "All imports of type \"" + currentSyntaxType + "\" must occur before all imports of type \"" + previousSyntaxType + "\""); + } + } + else { + this.addFailureAtNode(node, 'Could not determine import type'); + } + }; + RuleWalker.prototype._determineImportType = function (node) { + var nodeText = node.getFullText(); + if (node.kind === ts.SyntaxKind.ImportEqualsDeclaration) { + var aliasMatch = /\bimport\s+(\w+)\s*=.+/g.exec(nodeText); + return { + memberSyntaxType: MemberSyntaxType.Alias, + sortValue: aliasMatch[1] + }; + } + else { + var singleMatch = /\bimport\s+(?:{?([^,{}\*]+?)}?)\s*from\s+[\'"](?:[^"\']+)["\']/g.exec(nodeText); + var multipleMatch = /\bimport\s*{?\s*([^{}\'",]+?)\s*,(?:\s*.+\s*,\s*)*\s*.+\s*}?\s*from\s+[\'"](?:[^"\']+)["\']/g.exec(nodeText); + var noneMatch = /\bimport\s+[\'"]([^"\']+)["\']/g.exec(nodeText); + var allMatch = /\bimport\s+\*\s+as\s+(.+)\s+from\s+[\'"](?:[^"\']+)["\']/g.exec(nodeText); + var result = void 0; + if (singleMatch !== null) { + result = { + memberSyntaxType: MemberSyntaxType.Single, + sortValue: singleMatch[1] + }; + } + else if (multipleMatch !== null) { + result = { + memberSyntaxType: MemberSyntaxType.Multiple, + sortValue: multipleMatch[1] + }; + } + else if (noneMatch !== null) { + result = { + memberSyntaxType: MemberSyntaxType.None, + sortValue: noneMatch[1] + }; + } + else if (allMatch !== null) { + result = { + memberSyntaxType: MemberSyntaxType.All, + sortValue: allMatch[1] + }; + } + else { + result = { + memberSyntaxType: MemberSyntaxType.None, + sortValue: '' + }; + } + return result; + } + }; + RuleWalker._processMemberSyntaxSortOrder = function (sortOption) { + var defaultOrder = [MemberSyntaxType.None, MemberSyntaxType.All, MemberSyntaxType.Multiple, MemberSyntaxType.Single, MemberSyntaxType.Alias]; + if (Array.isArray(sortOption) && typeof sortOption[0] === 'string' && sortOption.length === 5) { + var memberSyntaxTypeMap_1 = { + none: MemberSyntaxType.None, + all: MemberSyntaxType.All, + multiple: MemberSyntaxType.Multiple, + single: MemberSyntaxType.Single, + alias: MemberSyntaxType.Alias + }; + var order_1 = []; + var usedOptions_1 = {}; + sortOption.forEach(function (t) { + if (usedOptions_1[t] !== undefined) { + } + else { + usedOptions_1[t] = t; + if (memberSyntaxTypeMap_1[t]) { + order_1.push(memberSyntaxTypeMap_1[t]); + } + } + }); + return order_1; + } + else { + return defaultOrder; + } + }; + return RuleWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3NvcnRJbXBvcnRzUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBK0I7QUFDL0IsK0JBQWlDO0FBRWpDLElBQU0sU0FBUyxHQUFHLGNBQWMsQ0FBQztBQUVqQztJQUEwQixnQ0FBdUI7SUFBakQ7O0lBZ0VBLENBQUM7SUFKUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcEMsSUFBTSxNQUFNLEdBQUcsSUFBSSxVQUFVLENBQUMsVUFBVSxFQUFFLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxDQUFDO1FBQzdELE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FBQyxNQUFNLENBQU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Z0JBQWdCLENBQUMsSUFBSTtnQkFDM0IsR0FBRyxFQUFFLGdCQUFnQixDQUFDLEdBQUc7Z0JBQ3pCLFFBQVEsRUFBRSxnQkFBZ0IsQ0FBQyxRQUFRO2dCQUNuQyxNQUFNLEVBQUUsZ0JBQWdCLENBQUMsTUFBTTtnQkFDL0IsS0FBSyxFQUFFLGdCQUFnQixDQUFDLEtBQUs7YUFDOUIsQ0FBQztZQUVGLElBQU0sT0FBSyxHQUF1QixFQUFFLENBQUM7WUFDckMsSUFBTSxhQUFXLEdBQUcsRUFBRSxDQUFDO1lBQ3ZCLFVBQVUsQ0FBQyxPQUFPLENBQUMsVUFBQyxDQUFDO2dCQUNuQixJQUFJLGFBQVcsQ0FBQyxDQUFDLENBQUMsS0FBSyxTQUFTLEVBQUU7aUJBRWpDO3FCQUFNO29CQUNMLGFBQVcsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7b0JBQ25CLElBQUkscUJBQW1CLENBQUMsQ0FBQyxDQUFDLEVBQUU7d0JBQzFCLE9BQUssQ0FBQyxJQUFJLENBQUMscUJBQW1CLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQztxQkFDcEM7aUJBQ0Y7WUFDSCxDQUFDLENBQUMsQ0FBQztZQUNILE9BQU8sT0FBSyxDQUFDO1NBQ2Q7YUFBTTtZQUNMLE9BQU8sWUFBWSxDQUFDO1NBQ3JCO0lBQ0gsQ0FBQztJQUNILGlCQUFDO0FBQUQsQ0F0S0EsQUFzS0MsQ0F0S3dCLElBQUksQ0FBQyxVQUFVLEdBc0t2QyIsImZpbGUiOiJydWxlcy9zb3J0SW1wb3J0c1J1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/spaceInParensRule.js b/node_modules/tslint-eslint-rules/dist/rules/spaceInParensRule.js new file mode 100644 index 000000000..d197fe750 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/spaceInParensRule.js @@ -0,0 +1,215 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'space-in-parens'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new SpaceInParensWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'require or disallow spaces inside parentheses', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n This rule will enforce consistency of spacing directly inside of parentheses,\n by disallowing or requiring one or more spaces to the right of (and to the\n left of). In either case, () will still be allowed.\n "], ["\n This rule will enforce consistency of spacing directly inside of parentheses,\n by disallowing or requiring one or more spaces to the right of (and to the\n left of). In either case, () will still be allowed.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n There are two options for this rule:\n\n - `\"never\"` (default) enforces zero spaces inside of parentheses\n - `\"always\"` enforces a space inside of parentheses\n\n Depending on your coding conventions, you can choose either option by specifying\n it in your configuration.\n "], ["\n There are two options for this rule:\n\n - \\`\"never\"\\` (default) enforces zero spaces inside of parentheses\n - \\`\"always\"\\` enforces a space inside of parentheses\n\n Depending on your coding conventions, you can choose either option by specifying\n it in your configuration.\n "]))), + options: { + type: 'array', + items: [ + { + enum: ['always', 'never'] + }, + { + type: 'object', + properties: { + exceptions: { + type: 'array', + items: [ + { + enum: ['{}', '[]', '()', 'empty'] + } + ], + uniqueItems: true + } + }, + additionalProperties: false + } + ], + minItems: 0, + maxItems: 2 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\", { \"exceptions\": [ \"{}\", \"[]\", \"()\", \"empty\" ] }]\n "], ["\n \"", "\": [true, \"always\", { \"exceptions\": [ \"{}\", \"[]\", \"()\", \"empty\" ] }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + Rule.MISSING_SPACE_MESSAGE = 'there must be a space inside this paren.'; + Rule.REJECTED_SPACE_MESSAGE = 'there should be no spaces inside this paren.'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var SpaceInParensWalker = (function (_super) { + tslib_1.__extends(SpaceInParensWalker, _super); + function SpaceInParensWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.exceptionsArrayOptions = []; + var ruleOptions = _this.getOptions(); + _this.spaced = _this.hasOption('always'); + if (ruleOptions[1]) { + _this.exceptionsArrayOptions = (ruleOptions.length === 2) ? ruleOptions[1].exceptions : []; + if (_this.exceptionsArrayOptions.length) { + _this.braceException = _this.exceptionsArrayOptions.indexOf('{}') !== -1; + _this.bracketException = _this.exceptionsArrayOptions.indexOf('[]') !== -1; + _this.parenException = _this.exceptionsArrayOptions.indexOf('()') !== -1; + _this.empty = _this.exceptionsArrayOptions.indexOf('empty') !== -1; + } + } + return _this; + } + SpaceInParensWalker.prototype.getExceptions = function () { + var openers = []; + var closers = []; + if (this.braceException) { + openers.push(ts.SyntaxKind.OpenBraceToken); + closers.push(ts.SyntaxKind.CloseBraceToken); + } + if (this.bracketException) { + openers.push(ts.SyntaxKind.OpenBracketToken); + closers.push(ts.SyntaxKind.CloseBracketToken); + } + if (this.parenException) { + openers.push(ts.SyntaxKind.OpenParenToken); + closers.push(ts.SyntaxKind.CloseParenToken); + } + if (this.empty) { + openers.push(ts.SyntaxKind.CloseParenToken); + closers.push(ts.SyntaxKind.OpenParenToken); + } + return { + openers: openers, + closers: closers + }; + }; + SpaceInParensWalker.prototype.findParenNodes = function (node) { + var children = node.getChildren(); + var first; + var second; + var penultimate; + var last; + for (var i = 0; i < children.length; i++) { + if (children[i].kind === ts.SyntaxKind.OpenParenToken) { + first = children[i]; + second = children[i + 1]; + } + if (children[i].kind === ts.SyntaxKind.CloseParenToken) { + penultimate = children[i - 1]; + last = children[i]; + } + } + return [first, second, penultimate, last]; + }; + SpaceInParensWalker.prototype.visitNode = function (node) { + var parenNodes = this.findParenNodes(node); + this.checkParanSpace(parenNodes[0], parenNodes[1], parenNodes[2], parenNodes[3]); + _super.prototype.visitNode.call(this, node); + }; + SpaceInParensWalker.prototype.checkParanSpace = function (first, second, penultimate, last) { + if (first && second) { + if (this.shouldOpenerHaveSpace(first, second)) { + var fix = Lint.Replacement.appendText(first.getEnd(), ' '); + this.addFailure(this.createFailure(first.getEnd(), 0, Rule.MISSING_SPACE_MESSAGE, fix)); + } + if (this.shouldOpenerRejectSpace(first, second)) { + var width = second.getStart() - first.getEnd(); + var fix = Lint.Replacement.deleteText(first.getEnd(), width); + this.addFailure(this.createFailure(first.getEnd(), 0, Rule.REJECTED_SPACE_MESSAGE, fix)); + } + } + if (penultimate && last) { + if (this.shouldCloserHaveSpace(penultimate, last)) { + var fix = Lint.Replacement.appendText(penultimate.getEnd(), ' '); + this.addFailure(this.createFailure(last.getStart(), 0, Rule.MISSING_SPACE_MESSAGE, fix)); + } + if (this.shouldCloserRejectSpace(penultimate, last)) { + var width = last.getStart() - penultimate.getEnd(); + var fix = Lint.Replacement.deleteText(penultimate.getEnd(), width); + this.addFailure(this.createFailure(last.getStart(), 0, Rule.REJECTED_SPACE_MESSAGE, fix)); + } + } + }; + SpaceInParensWalker.prototype.shouldOpenerHaveSpace = function (left, right) { + if (this.isSpaceBetween(left, right)) + return false; + if (this.spaced) { + if (right.getText().trim() === '') + return false; + return !this.isOpenerException(right.getFirstToken()); + } + return this.isOpenerException(right.getFirstToken()); + }; + SpaceInParensWalker.prototype.shouldCloserHaveSpace = function (left, right) { + if (left.getText().trim() === '') + return false; + if (this.isSpaceBetween(left, right)) + return false; + if (this.spaced) + return !this.isCloserException(left.getLastToken()); + return this.isCloserException(left.getLastToken()); + }; + SpaceInParensWalker.prototype.shouldOpenerRejectSpace = function (left, right) { + if (right.getText().trim() === '') + return false; + if (this.isLineBreakBetween(left, right)) + return false; + if (!this.isSpaceBetween(left, right)) + return false; + if (this.spaced) + return this.isOpenerException(right.getFirstToken()); + return !this.isOpenerException(right.getFirstToken()); + }; + SpaceInParensWalker.prototype.shouldCloserRejectSpace = function (left, right) { + if (left.getText().trim() === '') + return false; + if (this.isLineBreakBetween(left, right)) + return false; + if (!this.isSpaceBetween(left, right)) + return false; + if (this.spaced) + return this.isCloserException(left.getLastToken()); + return !this.isCloserException(left.getLastToken()); + }; + SpaceInParensWalker.prototype.isOpenerException = function (token) { + if (!token) + return false; + return this.getExceptions().openers.indexOf(token.kind) >= 0; + }; + SpaceInParensWalker.prototype.isCloserException = function (token) { + if (!token) + return false; + return this.getExceptions().closers.indexOf(token.kind) >= 0; + }; + SpaceInParensWalker.prototype.isSpaceBetween = function (node, nextNode) { + return nextNode.getStart() - node.getEnd() > 0; + }; + SpaceInParensWalker.prototype.isLineBreakBetween = function (node, nextNode) { + return this.getEndPosition(node).line !== this.getStartPosition(nextNode).line; + }; + SpaceInParensWalker.prototype.getStartPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getStart()); + }; + SpaceInParensWalker.prototype.getEndPosition = function (node) { + return node.getSourceFile().getLineAndCharacterOfPosition(node.getEnd()); + }; + return SpaceInParensWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIj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node_modules/tslint-eslint-rules/dist/rules/terArrowBodyStyleRule.js new file mode 100644 index 000000000..cddfe877e --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terArrowBodyStyleRule.js @@ -0,0 +1,117 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-arrow-body-style'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new RuleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'require braces in arrow function body', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Arrow functions have two syntactic forms for their function bodies. They may be defined with\n a block body (denoted by curly braces) `() => { ... }` or with a single expression\n `() => ...`, whose value is implicitly returned.\n "], ["\n Arrow functions have two syntactic forms for their function bodies. They may be defined with\n a block body (denoted by curly braces) \\`() => { ... }\\` or with a single expression\n \\`() => ...\\`, whose value is implicitly returned.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n The rule takes one or two options. The first is a string, which can be:\n\n - `\"always\"` enforces braces around the function body\n - `\"as-needed\"` enforces no braces where they can be omitted (default)\n - `\"never\"` enforces no braces around the function body (constrains arrow functions to the\n role of returning an expression)\n\n The second one is an object for more fine-grained configuration when the first option is\n `\"as-needed\"`. Currently, the only available option is `requireReturnForObjectLiteral`, a\n boolean property. It\u2019s false by default. If set to true, it requires braces and an explicit\n return for object literals.\n "], ["\n The rule takes one or two options. The first is a string, which can be:\n\n - \\`\"always\"\\` enforces braces around the function body\n - \\`\"as-needed\"\\` enforces no braces where they can be omitted (default)\n - \\`\"never\"\\` enforces no braces around the function body (constrains arrow functions to the\n role of returning an expression)\n\n The second one is an object for more fine-grained configuration when the first option is\n \\`\"as-needed\"\\`. Currently, the only available option is \\`requireReturnForObjectLiteral\\`, a\n boolean property. It\u2019s false by default. If set to true, it requires braces and an explicit\n return for object literals.\n "]))), + options: { + anyOf: [ + { + type: 'array', + items: [ + { + enum: ['always', 'never'] + } + ], + minItems: 0, + maxItems: 1 + }, + { + type: 'array', + items: [ + { + enum: ['as-needed'] + }, + { + type: 'object', + properties: { + requireReturnForObjectLiteral: { type: 'boolean' } + }, + additionalProperties: false + } + ], + minItems: 0, + maxItems: 2 + } + ] + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"as-needed\", {\n \"requireReturnForObjectLiteral\": true\n }]\n "], ["\n \"", "\": [true, \"as-needed\", {\n \"requireReturnForObjectLiteral\": true\n }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + var opt = _this.getOptions(); + _this.always = opt[0] === 'always'; + _this.asNeeded = !opt[0] || opt[0] === 'as-needed'; + _this.never = opt[0] === 'never'; + _this.requireReturnForObjectLiteral = opt[1] && opt[1].requireReturnForObjectLiteral; + return _this; + } + RuleWalker.prototype.visitArrowFunction = function (node) { + var arrowBody = node.body; + if (arrowBody.kind === ts.SyntaxKind.Block) { + var blockBody = arrowBody.statements; + if (blockBody.length !== 1 && !this.never) { + return; + } + var returnExpression = blockBody[0].expression; + if (this.asNeeded && + this.requireReturnForObjectLiteral && + blockBody[0].kind === ts.SyntaxKind.ReturnStatement && + (returnExpression && this.isObjectLiteral(returnExpression))) { + return; + } + if (this.never || this.asNeeded && blockBody[0].kind === ts.SyntaxKind.ReturnStatement) { + this.report(arrowBody, false); + } + } + else { + if (this.always || (this.asNeeded && + this.requireReturnForObjectLiteral && + this.isObjectLiteral(arrowBody))) { + this.report(arrowBody, true); + } + } + _super.prototype.visitArrowFunction.call(this, node); + }; + RuleWalker.prototype.isObjectLiteral = function (node) { + var obj = node; + while (obj.kind === ts.SyntaxKind.ParenthesizedExpression) { + obj = node.expression; + } + return obj.kind === ts.SyntaxKind.ObjectLiteralExpression; + }; + RuleWalker.prototype.report = function (arrowBody, expected) { + var val = expected ? 'Expected' : 'Unexpected'; + var failure = this.createFailure(arrowBody.getStart(), arrowBody.getWidth(), val + " block statement surrounding arrow body."); + this.addFailure(failure); + }; + return RuleWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckFycm93Qm9keVN0eWxlUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLHNCQUFzQixDQUFDO0FBRXpDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUEwRUEsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7UUFDN0QsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3RDLENBQ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QUFDLENBQUM7SUFDakMsQ0FBQztJQUVPLG9DQUFlLEdBQXZCLFVBQXdCLElBQWE7UUFDbkMsSUFBSSxHQUFHLEdBQUcsSUFBSSxDQUFDO1FBQ2YsT0FBTyxHQUFHLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxVQUFVLENBQUMsdUJBQXVCLEVBQUU7WUFDekQsR0FBRyxHQUFJLElBQW1DLENBQUMsVUFBVSxDQUFDO1NBQ3ZEO1FBQ0QsT0FBTyxHQUFHLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxVQUFVLENBQUMsdUJBQXVCLENBQUM7SUFDNUQsQ0FBQztJQUVPLDJCQUFNLEdBQWQsVUFBZSxTQUFrQixFQUFFLFFBQWlCO1FBQ2xELElBQU0sR0FBRyxHQUFHLFFBQVEsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxZQUFZLENBQUM7UUFDakQsSUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLGFBQWEsQ0FDaEMsU0FBUyxDQUFDLFFBQVEsRUFBRSxFQUNwQixTQUFTLENBQUMsUUFBUSxFQUFFLEVBQ2pCLEdBQUcsNkNBQTBDLENBQ2pELENBQUM7UUFDRixJQUFJLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQzNCLENBQUM7SUFDSCxpQkFBQztBQUFELENBbkVBLEFBbUVDLENBbkV3QixJQUFJLENBQUMsVUFBVSxHQW1FdkMiLCJmaWxlIjoicnVsZXMvdGVyQXJyb3dCb2R5U3R5bGVSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terArrowParensRule.js b/node_modules/tslint-eslint-rules/dist/rules/terArrowParensRule.js new file mode 100644 index 000000000..1d4127211 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terArrowParensRule.js @@ -0,0 +1,115 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-arrow-parens'; +var always = 'Expected parentheses around arrow function argument.'; +var asNeeded = 'Unexpected parentheses around single function argument.'; +var block = 'Unexpected parentheses around single function argument having a body with no curly braces.'; +var blockNoParens = 'Expected parentheses around arrow function argument having a body with curly braces.'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new RuleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'require parens in arrow function arguments', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Arrow functions can omit parentheses when they have exactly one parameter. In all other cases\n the parameter(s) must be wrapped in parentheses. This rule enforces the consistent use of\n parentheses in arrow functions.\n "], ["\n Arrow functions can omit parentheses when they have exactly one parameter. In all other cases\n the parameter(s) must be wrapped in parentheses. This rule enforces the consistent use of\n parentheses in arrow functions.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule has a string option and an object one.\n\n String options are:\n\n - `\"always\"` (default) requires parentheses around arguments in all cases.\n - `\"as-needed\"` allows omitting parentheses when there is only one argument.\n\n Object properties for variants of the `\"as-needed\"` option:\n\n - `\"requireForBlockBody\": true` modifies the as-needed rule in order to require\n parentheses if the function body is in an instructions block (surrounded by braces).\n "], ["\n This rule has a string option and an object one.\n\n String options are:\n\n - \\`\"always\"\\` (default) requires parentheses around arguments in all cases.\n - \\`\"as-needed\"\\` allows omitting parentheses when there is only one argument.\n\n Object properties for variants of the \\`\"as-needed\"\\` option:\n\n - \\`\"requireForBlockBody\": true\\` modifies the as-needed rule in order to require\n parentheses if the function body is in an instructions block (surrounded by braces).\n "]))), + options: { + type: 'array', + items: [ + { + enum: ['always', 'as-needed'] + }, + { + type: 'object', + properties: { + requireForBlockBody: { + type: 'boolean' + } + }, + additionalProperties: false + } + ], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"as-needed\"]\n "], ["\n \"", "\": [true, \"as-needed\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"as-needed\", { \"requireForBlockBody\": true }]\n "], ["\n \"", "\": [true, \"as-needed\", { \"requireForBlockBody\": true }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.srcFile = sourceFile; + var opt = _this.getOptions(); + _this.asNeeded = opt[0] === 'as-needed'; + _this.requireForBlockBody = _this.asNeeded && opt[1] && opt[1].requireForBlockBody === true; + return _this; + } + RuleWalker.prototype.visitArrowFunction = function (node) { + _super.prototype.visitArrowFunction.call(this, node); + if (node.parameters.length === 1) { + var skip = Lint.hasModifier(node.modifiers, ts.SyntaxKind.AsyncKeyword) ? 1 : 0; + var parameter = node.parameters[0]; + var text = parameter.getText(); + var firstToken = node.getChildAt(skip); + var lastToken = node.getChildAt(2 + skip); + var position = parameter.getStart(); + var paramWidth = text.length; + var parensWidth = lastToken.end - firstToken.getStart(this.srcFile); + var isGenerics = firstToken.kind === ts.SyntaxKind.LessThanToken; + var hasParens = firstToken.kind === ts.SyntaxKind.OpenParenToken; + var bodyIsBlock = node.body.kind === ts.SyntaxKind.Block; + var isIdentifier = parameter.name.kind === ts.SyntaxKind.Identifier; + var hasAnnotations = parameter.initializer || parameter.dotDotDotToken || parameter.type; + var isSingleIdentifier = isIdentifier && !hasAnnotations; + if (this.requireForBlockBody) { + if (isSingleIdentifier && !node.type && !bodyIsBlock) { + if (hasParens) { + this.report(position - 1, parensWidth, block); + } + return; + } + if (bodyIsBlock && !isGenerics) { + if (!hasParens) { + this.report(position, paramWidth, blockNoParens); + } + return; + } + } + if (this.asNeeded && isSingleIdentifier && !node.type) { + if (hasParens) { + this.report(position - 1, parensWidth, asNeeded); + } + return; + } + if (!hasParens && !isGenerics) { + this.report(position, paramWidth, always); + } + } + }; + RuleWalker.prototype.report = function (position, width, message) { + var failure = this.createFailure(position, width, message); + this.addFailure(failure); + }; + return RuleWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckFycm93UGFyZW5zUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFPQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLGtCQUFrQixDQUFDO0FBQ3JDLElBQU0sTUFBTSxHQUFHLHNEQUFzRCxDQUFDO0FBQ3RFLElBQU0sUUFBUSxHQUFHLHlEQUF5RCxDQUFDO0FBQzNFLElBQU0sS0FBSyxHQUFHLDRGQUE0RixDQUFDO0FBQzNHLElBQU0sYUFBYSxHQUFHLHNGQUFzRixDQUFDO0FBRTdHO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUE4REEsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUF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BZTtRQUM3RCxJQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsYUFBYSxDQUFDLFFBQVEsRUFBRSxLQUFLLEVBQUUsT0FBTyxDQUFDLENBQUM7UUFDN0QsSUFBSSxDQUFDLFVBQVUsQ0FBQyxPQUFPLENBQUMsQ0FBQztJQUMzQixDQUFDO0lBQ0gsaUJBQUM7QUFBRCxDQWpFQSxBQWlFQyxDQWpFd0IsSUFBSSxDQUFDLFVBQVUsR0FpRXZDIiwiZmlsZSI6InJ1bGVzL3RlckFycm93UGFyZW5zUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/terArrowSpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/terArrowSpacingRule.js new file mode 100644 index 000000000..072db5e60 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terArrowSpacingRule.js @@ -0,0 +1,104 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-arrow-spacing'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new RuleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'require space before/after arrow function\'s arrow', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n This rule normalizes the style of spacing before/after an arrow function\u2019s arrow(`=>`).\n "], ["\n This rule normalizes the style of spacing before/after an arrow function\u2019s arrow(\\`=>\\`).\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule takes an object argument with `before` and `after` properties, each with a\n Boolean value.\n\n The default configuration is `{ \"before\": true, \"after\": true }`.\n\n `true` means there should be one or more spaces and `false` means no spaces.\n "], ["\n This rule takes an object argument with \\`before\\` and \\`after\\` properties, each with a\n Boolean value.\n\n The default configuration is \\`{ \"before\": true, \"after\": true }\\`.\n\n \\`true\\` means there should be one or more spaces and \\`false\\` means no spaces.\n "]))), + options: { + type: 'array', + items: [{ + type: 'object', + properties: { + before: { + type: 'boolean' + }, + after: { + type: 'boolean' + } + }, + additionalProperties: false + }], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, {\n \"before\": false,\n \"after\": false\n }]\n "], ["\n \"", "\": [true, {\n \"before\": false,\n \"after\": false\n }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.before = true; + _this.after = true; + var opt = _this.getOptions(); + if (opt[0]) { + _this.before = opt[0].before !== false; + _this.after = opt[0].after !== false; + } + _this.srcFile = sourceFile; + _this.srcText = sourceFile.getFullText(); + return _this; + } + RuleWalker.prototype.visitArrowFunction = function (node) { + var arrow = node.equalsGreaterThanToken; + var arrowStart = arrow.getStart(this.srcFile); + var bodyStart = node.body.getStart(this.srcFile); + var space = { + before: /\s/.test(this.srcText[arrowStart - 1]), + after: /\s/.test(this.srcText[arrow.end]) + }; + if (this.before) { + if (!space.before) { + var fix = Lint.Replacement.appendText(arrowStart, ' '); + this.report(arrow, 'Missing', 'before', fix); + } + } + else { + if (space.before) { + var spaces = arrowStart - arrow.getFullStart(); + var fix = Lint.Replacement.deleteText(arrowStart - spaces, spaces); + this.report(arrow, 'Unexpected', 'before', fix); + } + } + if (this.after) { + if (!space.after) { + var fix = Lint.Replacement.appendText(arrow.end, ' '); + this.report(arrow, 'Missing', 'after', fix); + } + } + else { + if (space.after) { + var fix = Lint.Replacement.deleteText(arrow.end, bodyStart - arrow.end); + this.report(arrow, 'Unexpected', 'after', fix); + } + } + _super.prototype.visitArrowFunction.call(this, node); + }; + RuleWalker.prototype.report = function (arrowToken, status, place, fix) { + var failure = this.createFailure(arrowToken.getStart(this.srcFile), arrowToken.getWidth(this.srcFile), status + " space " + place + " =>.", fix); + this.addFailure(failure); + }; + return RuleWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckFycm93U3BhY2luZ1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBUUEsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLG1CQUFtQixDQUFDO0FBRXRDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFrREEsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLFVBQVUsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7UUFDN0QsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3RDLENBQUM7SUFoRGEsYUFBUSxHQUF1QjtRQUMzQyxRQUFRLEVBQUUsU0FBUztRQUNuQixXQUFXLEVBQUUsb0RBQW9EO1FBQ2pFLFNBQVMsRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0seUxBQUEsa0hBRXpCLElBQUE7UUFDSCxrQkFBa0IsRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sN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BQ0Y7UUFDRCxpQkFBTSxrQkFBa0IsWUFBQyxJQUFJLENBQUMsQ0FBQztJQUNqQyxDQUFDO0lBRU8sMkJBQU0sR0FBZCxVQUFlLFVBQW1CLEVBQUUsTUFBYyxFQUFFLEtBQWEsRUFBRSxHQUFhO1FBQzlFLElBQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxhQUFhLENBQ2hDLFVBQVUsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUNqQyxVQUFVLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsRUFDOUIsTUFBTSxlQUFVLEtBQUssU0FBTSxFQUM5QixHQUFHLENBQ0osQ0FBQztRQUNGLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDM0IsQ0FBQztJQUNILGlCQUFDO0FBQUQsQ0E1REEsQUE0REMsQ0E1RHdCLElBQUksQ0FBQyxVQUFVLEdBNER2QyIsImZpbGUiOiJydWxlcy90ZXJBcnJvd1NwYWNpbmdSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terComputedPropertySpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/terComputedPropertySpacingRule.js new file mode 100644 index 000000000..6fb0630fa --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terComputedPropertySpacingRule.js @@ -0,0 +1,123 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-computed-property-spacing'; +var ALWAYS_BEFORE_MESSAGE = "A space is required before ']'."; +var ALWAYS_AFTER_MESSAGE = "A space is required after '['."; +var NEVER_BEFORE_MESSAGE = "There should be no space before ']'."; +var NEVER_AFTER_MESSAGE = "There should be no space after '['."; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.formatOptions = function (_a) { + var alwaysOrNever = _a[0]; + return { + always: alwaysOrNever === 'always' + }; + }; + Rule.prototype.apply = function (sourceFile) { + var opt = this.formatOptions(this.ruleArguments); + var walker = new RuleWalker(sourceFile, this.ruleName, opt); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: true, + description: 'require or disallow padding inside computed properties', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n While formatting preferences are very personal, a number of style guides require or disallow spaces between computed properties in the following situations:\n "], ["\n While formatting preferences are very personal, a number of style guides require or disallow spaces between computed properties in the following situations:\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n The rule takes in one option, which defines to require or forbid whitespace.\n\n * `\"never\"` (default) disallows spaces inside computed property brackets\n * `\"always\"` requires one or more spaces inside computed property brackets\n "], ["\n The rule takes in one option, which defines to require or forbid whitespace.\n\n * \\`\"never\"\\` (default) disallows spaces inside computed property brackets\n * \\`\"always\"\\` requires one or more spaces inside computed property brackets\n "]))), + options: { + type: 'array', + items: [{ + enum: ['always', 'never'] + }], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + RuleWalker.prototype.walk = function (sourceFile) { + var _this = this; + var cb = function (node) { + if (node.kind === ts.SyntaxKind.ElementAccessExpression) { + _this.checkNode(node, node.getChildAt(1), node.getChildAt(3)); + } + else if (node.kind === ts.SyntaxKind.ComputedPropertyName) { + _this.checkNode(node, node.getChildAt(0), node.getChildAt(2)); + } + ts.forEachChild(node, cb); + }; + ts.forEachChild(sourceFile, cb); + }; + RuleWalker.prototype.checkNode = function (node, leftBracketNode, rightBracketNode) { + var nodeText = node.getText(); + var regex = /\[([\s\S]*)\]/; + var match = regex.exec(nodeText); + if (!match) { + return; + } + var contentWithinBrackets = match[1]; + if (this.options.always) { + var beforeWhitespaceLength = this.getBeforeWhitespaceLength(contentWithinBrackets, true); + var afterWhitespaceLength = this.getAfterWhitespaceLength(contentWithinBrackets, true); + if (beforeWhitespaceLength === 0) { + this.addFailureAtNode(leftBracketNode, ALWAYS_AFTER_MESSAGE, Lint.Replacement.appendText(leftBracketNode.getEnd(), ' ')); + } + if (afterWhitespaceLength === 0) { + this.addFailureAtNode(rightBracketNode, ALWAYS_BEFORE_MESSAGE, Lint.Replacement.appendText(rightBracketNode.getStart(), ' ')); + } + } + else { + var contentWithinBracketsNoNewlines = contentWithinBrackets.replace('\n', ''); + var beforeWhitespaceLength = this.getBeforeWhitespaceLength(contentWithinBracketsNoNewlines, false); + var afterWhitespaceLength = this.getAfterWhitespaceLength(contentWithinBracketsNoNewlines, false); + if (beforeWhitespaceLength !== 0) { + this.addFailureAtNode(leftBracketNode, NEVER_AFTER_MESSAGE, Lint.Replacement.deleteText(leftBracketNode.getEnd(), beforeWhitespaceLength)); + } + if (afterWhitespaceLength !== 0) { + this.addFailureAtNode(rightBracketNode, NEVER_BEFORE_MESSAGE, Lint.Replacement.deleteText(rightBracketNode.getStart() - afterWhitespaceLength, afterWhitespaceLength)); + } + } + }; + RuleWalker.prototype.getBeforeWhitespaceLength = function (content, newlinesCountAsWhitespace) { + var regex = newlinesCountAsWhitespace ? /^\s+/ : /^[^\S\n]+/; + var match = regex.exec(content); + if (match) { + return match[0].length; + } + else { + return 0; + } + }; + RuleWalker.prototype.getAfterWhitespaceLength = function (content, newlinesCountAsWhitespace) { + var regex = newlinesCountAsWhitespace ? /\s+$/ : /[^\S\n]+$/; + var match = regex.exec(content); + if (match) { + return match[0].length; + } + else { + return 0; + } + }; + return RuleWalker; +}(Lint.AbstractWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckNvbXB1dGVkUHJvcGVydHlTcGFjaW5nUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLCtCQUErQixDQUFDO0FBS2xELElBQU0scUJBQXFCLEdBQUcsaUNBQWlDLENBQUM7QUFDaEUsSUFBTSxvQkFBb0IsR0FBRyxnQ0FBZ0MsQ0FBQztBQUM5RCxJQUFNLG9CQUFvQixHQUFHLHNDQUFzQyxDQUFDO0FBQ3BFLElBQU0sbUJBQW1CLEdBQUcscUNBQXFDLENBQUM7QUFFbEU7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQWdEQSxDQUFDO0lBWlMsNEJBQWEsR0FBckIsVUFBc0IsRUFBMkI7WUFBekIscUJBQWE7UUFFbkMsT0FBTztZQUNMLE1BQU0sRUFBRSxhQUFhLEtBQUssUUFBUTtTQUNuQyxDQUFDO0lBQ0osQ0FBQztJQUVNLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLEdBQUcsR0FBRyxJQUFJLENBQUMsYUFBYSxDQUFDLElBQUksQ0FBQyxhQUFh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0FBRyx5QkFBeUIsQ0FBQyxDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxXQUFXLENBQUM7UUFDL0QsSUFBTSxLQUFLLEdBQUcsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUVsQyxJQUFJLEtBQUssRUFBRTtZQUNULE9BQU8sS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQztTQUN4QjthQUFNO1lBQ0wsT0FBTyxDQUFDLENBQUM7U0FDVjtJQUNILENBQUM7SUFDSCxpQkFBQztBQUFELENBcEZBLEFBb0ZDLENBcEZ3QixJQUFJLENBQUMsY0FBYyxHQW9GM0MiLCJmaWxlIjoicnVsZXMvdGVyQ29tcHV0ZWRQcm9wZXJ0eVNwYWNpbmdSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terFuncCallSpacingRule.js b/node_modules/tslint-eslint-rules/dist/rules/terFuncCallSpacingRule.js new file mode 100644 index 000000000..4e8ff7145 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terFuncCallSpacingRule.js @@ -0,0 +1,137 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-func-call-spacing'; +var ALWAYS = 'always'; +var MISSING_SPACE = 'Missing space between function name and paren.'; +var UNEXPECTED_SPACE = 'Unexpected space between function name and paren.'; +var UNEXPECTED_NEWLINE = 'Unexpected newline between function name and paren.'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var options = { + expectSpace: false, + spacePattern: /\s/ + }; + var userOptions = this.getOptions().ruleArguments; + if (userOptions[0] === ALWAYS) { + options.expectSpace = true; + if (userOptions[1] !== undefined && userOptions[1].allowNewlines) { + options.spacePattern = /[ \t\r\n\u2028\u2029]/; + } + else { + options.spacePattern = /[ \t]/; + } + } + var walker = new RuleWalker(sourceFile, RULE_NAME, options); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: true, + description: 'require or disallow spacing between function identifiers and their invocations', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n This rule will enforce consistency of spacing in function calls,\n by disallowing or requiring one or more spaces before the open paren.\n "], ["\n This rule will enforce consistency of spacing in function calls,\n by disallowing or requiring one or more spaces before the open paren.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule has a string option:\n\n * `\"never\"` (default) disallows space between the function name and the opening parenthesis.\n * `\"always\"` requires space between the function name and the opening parenthesis.\n\n Further, in `\"always\"` mode, a second object option is available that contains a single boolean `allowNewlines` property.\n "], ["\n This rule has a string option:\n\n * \\`\"never\"\\` (default) disallows space between the function name and the opening parenthesis.\n * \\`\"always\"\\` requires space between the function name and the opening parenthesis.\n\n Further, in \\`\"always\"\\` mode, a second object option is available that contains a single boolean \\`allowNewlines\\` property.\n "]))), + options: { + type: 'array', + items: [ + { + enum: ['always', 'never'] + }, + { + type: 'object', + properties: { + allowNewlines: { + type: 'boolean' + } + }, + additionalProperties: false + } + ], + minItems: 0, + maxItems: 2 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\", { allowNewlines: true }]\n "], ["\n \"", "\": [true, \"always\", { allowNewlines: true }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, ruleName, options) { + var _this = _super.call(this, sourceFile, ruleName, options) || this; + _this.sourceText = sourceFile.getFullText(); + return _this; + } + RuleWalker.prototype.walk = function (sourceFile) { + var _this = this; + var cb = function (node) { + if (node.kind === ts.SyntaxKind.NewExpression) { + _this.visitNewExpression(node); + } + else if (node.kind === ts.SyntaxKind.CallExpression) { + _this.visitCallExpression(node); + } + else if (node.kind >= ts.SyntaxKind.FirstTypeNode && node.kind <= ts.SyntaxKind.LastTypeNode) { + return; + } + return ts.forEachChild(node, cb); + }; + return ts.forEachChild(sourceFile, cb); + }; + RuleWalker.prototype.visitNewExpression = function (node) { + this.checkWhitespaceAfterExpression(node.expression, node.typeArguments, node.arguments); + }; + RuleWalker.prototype.visitCallExpression = function (node) { + this.checkWhitespaceAfterExpression(node.expression, node.typeArguments, node.arguments); + }; + RuleWalker.prototype.checkWhitespaceAfterExpression = function (expression, typeArguments, funcArguments) { + if (funcArguments !== undefined) { + var start = void 0; + if (typeArguments !== undefined) { + start = typeArguments.end + 1; + } + else { + start = expression.getEnd(); + } + this.checkWhitespaceBetween(start, funcArguments.pos - 1); + } + }; + RuleWalker.prototype.checkWhitespaceBetween = function (start, end) { + var whitespace = this.sourceText.substring(start, end); + if (this.options.spacePattern.test(whitespace)) { + if (!this.options.expectSpace) { + var fix = Lint.Replacement.deleteText(start, whitespace.length); + var failureMessage = this.failureMessageForUnexpectedWhitespace(whitespace); + this.addFailureAt(start, whitespace.length, failureMessage, fix); + } + } + else if (this.options.expectSpace) { + var fix = Lint.Replacement.appendText(start, ' '); + this.addFailureAt(start, 1, MISSING_SPACE, fix); + } + }; + RuleWalker.prototype.failureMessageForUnexpectedWhitespace = function (whitespace) { + if (/[\r\n]/.test(whitespace)) { + return UNEXPECTED_NEWLINE; + } + else { + return UNEXPECTED_SPACE; + } + }; + return RuleWalker; +}(Lint.AbstractWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckZ1bmNDYWxsU3BhY2luZ1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixJQUFNLFNBQVMsR0FBRyx1QkFBdUIsQ0FBQztBQUMxQyxJQUFNLE1BQU0sR0FBRyxRQUFRLENBQUM7QUFFeEIsSUFBTSxhQUFhLEdBQUcsZ0RBQWdELENBQUM7QUFDdkUsSUFBTSxnQkFBZ0IsR0FBRyxtREFBbUQsQ0FBQztBQUM3RSxJQUFNLGtCQUFrQixHQUFHLHFEQUFxRCxDQUFDO0FBT2pGO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUF1RUEsQ0FBQztJQXBCUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcEMsSUFBTSxPQUFPLEdBQUc7WUFDZCxXQUFXLEVBQUUsS0FBSztZQUNsQixZQUFZLEVBQUUsSUFBSTtTQUNuQixDQUFDO1FBRUYsSUFBSSxXQUFXLEdBQUcsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLGFBQWEsQ0FBQztRQUNsRCxJQUFJLFdBQVcsQ0FBQyxDQUFDLENBQUMsS0FBSyxNQUFNLEVBQUU7WUFDN0IsT0FBTyxDQUFDLFdBQVcsR0FBRyxJQUFJLENBQUM7WUFDM0IsSUFBSSxXQUFXLENBQUMsQ0FBQyxDQUFDLEtBQUssU0FBUyxJQUFJLFdBQVcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxhQUFhLEVBQUU7Z0JBQ2hFLE9BQU8sQ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Q3pCO0lBQ0gsQ0FBQztJQUNILGlCQUFDO0FBQUQsQ0F2RUEsQUF1RUMsQ0F2RXdCLElBQUksQ0FBQyxjQUFjLEdBdUUzQyIsImZpbGUiOiJydWxlcy90ZXJGdW5jQ2FsbFNwYWNpbmdSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terIndentRule.js b/node_modules/tslint-eslint-rules/dist/rules/terIndentRule.js new file mode 100644 index 000000000..7fd4bdede --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terIndentRule.js @@ -0,0 +1,915 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-indent'; +var DEFAULT_VARIABLE_INDENT = 1; +var DEFAULT_PARAMETER_INDENT = null; +var DEFAULT_FUNCTION_BODY_INDENT = 1; +var indentType = 'space'; +var indentSize = 4; +var OPTIONS; +function assign(target) { + var sources = []; + for (var _i = 1; _i < arguments.length; _i++) { + sources[_i - 1] = arguments[_i]; + } + sources.forEach(function (source) { + if (source !== undefined && source !== null) { + for (var nextKey in source) { + if (source.hasOwnProperty(nextKey)) { + target[nextKey] = source[nextKey]; + } + } + } + }); + return target; +} +function isKind(node, kind) { + return node.kind === ts.SyntaxKind[kind]; +} +function isOneOf(node, kinds) { + return kinds.some(function (kind) { return node.kind === ts.SyntaxKind[kind]; }); +} +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new IndentWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: true, + description: 'enforce consistent indentation', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Using only one of tabs or spaces for indentation leads to more consistent editor behavior,\n cleaner diffs in version control, and easier programmatic manipulation.\n "], ["\n Using only one of tabs or spaces for indentation leads to more consistent editor behavior,\n cleaner diffs in version control, and easier programmatic manipulation.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n The string 'tab' or an integer indicating the number of spaces to use per tab.\n\n An object may be provided to fine tune the indentation rules:\n\n * `\"SwitchCase\"` (default: 0) enforces indentation level for `case` clauses in\n `switch` statements\n * `\"VariableDeclarator\"` (default: 1) enforces indentation level for `var` declarators;\n can also take an object to define separate rules for `var`,\n `let` and `const` declarations.\n * `\"outerIIFEBody\"` (default: 1) enforces indentation level for file-level IIFEs.\n * `\"MemberExpression\"` (off by default) enforces indentation level for multi-line\n property chains (except in variable declarations and assignments)\n * `\"FunctionDeclaration\"` takes an object to define rules for function declarations.\n * `\"parameters\"` (off by default) enforces indentation level for parameters in a\n function declaration. This can either be a number indicating\n indentation level, or the string `\"first\"` indicating that all\n parameters of the declaration must be aligned with the first parameter.\n * `\"body\"` (default: 1) enforces indentation level for the body of a function expression.\n * `\"FunctionExpression\"` takes an object to define rules for function declarations.\n * `\"parameters\"` (off by default) enforces indentation level for parameters in a\n function declaration. This can either be a number indicating\n indentation level, or the string `\"first\"` indicating that all\n parameters of the declaration must be aligned with the first parameter.\n * `\"body\"` (default: 1) enforces indentation level for the body of a function expression.\n * `\"CallExpression\"` takes an object to define rules for function call expressions.\n * `\"arguments\"` (off by default) enforces indentation level for arguments in a call\n expression. This can either be a number indicating indentation level,\n or the string `\"first\"` indicating that all arguments of the\n expression must be aligned with the first argument.\n "], ["\n The string 'tab' or an integer indicating the number of spaces to use per tab.\n\n An object may be provided to fine tune the indentation rules:\n\n * \\`\"SwitchCase\"\\` (default: 0) enforces indentation level for \\`case\\` clauses in\n \\`switch\\` statements\n * \\`\"VariableDeclarator\"\\` (default: 1) enforces indentation level for \\`var\\` declarators;\n can also take an object to define separate rules for \\`var\\`,\n \\`let\\` and \\`const\\` declarations.\n * \\`\"outerIIFEBody\"\\` (default: 1) enforces indentation level for file-level IIFEs.\n * \\`\"MemberExpression\"\\` (off by default) enforces indentation level for multi-line\n property chains (except in variable declarations and assignments)\n * \\`\"FunctionDeclaration\"\\` takes an object to define rules for function declarations.\n * \\`\"parameters\"\\` (off by default) enforces indentation level for parameters in a\n function declaration. This can either be a number indicating\n indentation level, or the string \\`\"first\"\\` indicating that all\n parameters of the declaration must be aligned with the first parameter.\n * \\`\"body\"\\` (default: 1) enforces indentation level for the body of a function expression.\n * \\`\"FunctionExpression\"\\` takes an object to define rules for function declarations.\n * \\`\"parameters\"\\` (off by default) enforces indentation level for parameters in a\n function declaration. This can either be a number indicating\n indentation level, or the string \\`\"first\"\\` indicating that all\n parameters of the declaration must be aligned with the first parameter.\n * \\`\"body\"\\` (default: 1) enforces indentation level for the body of a function expression.\n * \\`\"CallExpression\"\\` takes an object to define rules for function call expressions.\n * \\`\"arguments\"\\` (off by default) enforces indentation level for arguments in a call\n expression. This can either be a number indicating indentation level,\n or the string \\`\"first\"\\` indicating that all arguments of the\n expression must be aligned with the first argument.\n "]))), + options: { + type: 'array', + items: [{ + type: 'number', + minimum: '0' + }, { + type: 'string', + enum: ['tab'] + }, { + type: 'object', + properties: { + SwitchCase: { + type: 'number', + minimum: 0 + }, + VariableDeclarator: { + type: 'object', + properties: { + var: { + type: 'number', + minimum: 0 + }, + let: { + type: 'number', + minimum: 0 + }, + const: { + type: 'number', + minimum: 0 + } + } + }, + outerIIFEBody: { + type: 'number' + }, + FunctionDeclaration: { + type: 'object', + properties: { + parameters: { + type: 'number', + minimum: 0 + }, + body: { + type: 'number', + minimum: 0 + } + } + }, + FunctionExpression: { + type: 'object', + properties: { + parameters: { + type: 'number', + minimum: 0 + }, + body: { + type: 'number', + minimum: 0 + } + } + }, + MemberExpression: { + type: 'number' + }, + CallExpression: { + type: 'object', + properties: { + arguments: { + type: 'number', + minimum: 0 + } + } + } + }, + additionalProperties: false + }], + minLength: 1, + maxLength: 2 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"tab\"]\n "], ["\n \"", "\": [true, \"tab\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, 2]\n "], ["\n \"", "\": [true, 2]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [\n true,\n 2,\n {\n \"FunctionExpression\": {\n \"parameters\": 1,\n \"body\": 1\n }\n }\n ]\n "], ["\n \"", "\": [\n true,\n 2,\n {\n \"FunctionExpression\": {\n \"parameters\": 1,\n \"body\": 1\n }\n }\n ]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'maintainability' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var IndentWalker = (function (_super) { + tslib_1.__extends(IndentWalker, _super); + function IndentWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.caseIndentStore = {}; + _this.varIndentStore = {}; + OPTIONS = { + SwitchCase: 0, + VariableDeclarator: { + var: DEFAULT_VARIABLE_INDENT, + let: DEFAULT_VARIABLE_INDENT, + const: DEFAULT_VARIABLE_INDENT + }, + outerIIFEBody: null, + FunctionDeclaration: { + parameters: DEFAULT_PARAMETER_INDENT, + body: DEFAULT_FUNCTION_BODY_INDENT + }, + FunctionExpression: { + parameters: DEFAULT_PARAMETER_INDENT, + body: DEFAULT_FUNCTION_BODY_INDENT + }, + CallExpression: { + arguments: DEFAULT_PARAMETER_INDENT + } + }; + var firstParam = _this.getOptions()[0]; + if (firstParam === 'tab') { + indentSize = 1; + indentType = 'tab'; + } + else { + indentSize = firstParam || 4; + indentType = 'space'; + } + var userOptions = _this.getOptions()[1]; + if (userOptions) { + OPTIONS.SwitchCase = userOptions.SwitchCase || 0; + if (typeof userOptions.VariableDeclarator === 'number') { + OPTIONS.VariableDeclarator = { + var: userOptions.VariableDeclarator, + let: userOptions.VariableDeclarator, + const: userOptions.VariableDeclarator + }; + } + else if (typeof userOptions.VariableDeclarator === 'object') { + assign(OPTIONS.VariableDeclarator, userOptions.VariableDeclarator); + } + if (typeof userOptions.outerIIFEBody === 'number') { + OPTIONS.outerIIFEBody = userOptions.outerIIFEBody; + } + if (typeof userOptions.MemberExpression === 'number') { + OPTIONS.MemberExpression = userOptions.MemberExpression; + } + if (typeof userOptions.FunctionDeclaration === 'object') { + assign(OPTIONS.FunctionDeclaration, userOptions.FunctionDeclaration); + } + if (typeof userOptions.FunctionExpression === 'object') { + assign(OPTIONS.FunctionExpression, userOptions.FunctionExpression); + } + if (typeof userOptions.CallExpression === 'object') { + assign(OPTIONS.CallExpression, userOptions.CallExpression); + } + } + _this.srcFile = sourceFile; + _this.srcText = sourceFile.getFullText(); + return _this; + } + IndentWalker.prototype.getSourceSubstr = function (start, end) { + return this.srcText.substr(start, end - start); + }; + IndentWalker.prototype.getLineAndCharacter = function (node, byEndLocation) { + if (byEndLocation === void 0) { byEndLocation = false; } + var index = byEndLocation ? node.getEnd() : node.getStart(); + return this.srcFile.getLineAndCharacterOfPosition(index); + }; + IndentWalker.prototype.getLine = function (node, byEndLocation) { + if (byEndLocation === void 0) { byEndLocation = false; } + return this.getLineAndCharacter(node, byEndLocation).line; + }; + IndentWalker.prototype.createErrorMessage = function (expectedAmount, actualSpaces, actualTabs) { + var expectedStatement = expectedAmount + " " + indentType + (expectedAmount === 1 ? '' : 's'); + var foundSpacesWord = "space" + (actualSpaces === 1 ? '' : 's'); + var foundTabsWord = "tab" + (actualTabs === 1 ? '' : 's'); + var foundStatement; + if (actualSpaces > 0 && actualTabs > 0) { + foundStatement = actualSpaces + " " + foundSpacesWord + " and " + actualTabs + " " + foundTabsWord; + } + else if (actualSpaces > 0) { + foundStatement = indentType === 'space' ? actualSpaces : actualSpaces + " " + foundSpacesWord; + } + else if (actualTabs > 0) { + foundStatement = indentType === 'tab' ? actualTabs : actualTabs + " " + foundTabsWord; + } + else { + foundStatement = '0'; + } + return "Expected indentation of " + expectedStatement + " but found " + foundStatement + "."; + }; + IndentWalker.prototype.report = function (node, needed, gottenSpaces, gottenTabs, loc) { + if (gottenSpaces && gottenTabs) { + return; + } + var msg = this.createErrorMessage(needed, gottenSpaces, gottenTabs); + var width = gottenSpaces + gottenTabs; + var start = (loc !== undefined ? loc : node.getStart()) - width; + var desiredIndent = (indentType === 'space' ? ' ' : '\t').repeat(needed); + var fix = this.createReplacement(start, width, desiredIndent); + this.addFailure(this.createFailure(start, width, msg, fix)); + }; + IndentWalker.prototype.isNodeFirstInLine = function (node, byEndLocation) { + if (byEndLocation === void 0) { byEndLocation = false; } + var token = byEndLocation ? node.getLastToken() : node.getFirstToken(); + var pos = token.getStart() - 1; + while ([' ', '\t'].indexOf(this.srcText.charAt(pos)) !== -1) { + pos -= 1; + } + return this.srcText.charAt(pos) === '\n' || this._firstInLineCommentHelper(node); + }; + IndentWalker.prototype._firstInLineCommentHelper = function (node) { + var pos; + var firstInLine = false; + var comments = ts.getLeadingCommentRanges(node.getFullText(), 0); + if (comments && comments.length) { + var offset = node.getFullStart(); + var lastComment = comments[comments.length - 1]; + var comment = this.getSourceSubstr(lastComment.pos + offset, lastComment.end + offset); + if (comment.indexOf('\n') !== -1) { + firstInLine = true; + } + else { + pos = lastComment.pos + offset; + while (pos > 0 && this.srcText.charAt(pos) !== '\n') { + pos -= 1; + } + var content = this.getSourceSubstr(pos + 1, lastComment.pos + offset); + if (content.trim() === '') { + firstInLine = true; + } + } + } + return firstInLine; + }; + IndentWalker.prototype.getNodeIndent = function (node) { + if (node === this.getSourceFile()) { + return { contentStart: 0, firstInLine: true, space: 0, tab: 0, goodChar: 0, badChar: 0 }; + } + if (node.kind === ts.SyntaxKind.SyntaxList && node.parent) { + return this.getNodeIndent(node.parent); + } + var endIndex = node.getStart(this.srcFile); + var pos = endIndex - 1; + while (pos > 0 && this.srcText.charAt(pos) !== '\n') { + pos -= 1; + } + var str = this.getSourceSubstr(pos + 1, endIndex); + var whiteSpace = (str.match(/^\s+/) || [''])[0]; + var indentChars = whiteSpace.split(''); + var spaces = indentChars.filter(function (char) { return char === ' '; }).length; + var tabs = indentChars.filter(function (char) { return char === '\t'; }).length; + return { + contentStart: pos + spaces + tabs + 1, + firstInLine: spaces + tabs === str.length || this._firstInLineCommentHelper(node), + space: spaces, + tab: tabs, + goodChar: indentType === 'space' ? spaces : tabs, + badChar: indentType === 'space' ? tabs : spaces + }; + }; + IndentWalker.prototype.checkNodeIndent = function (node, neededIndent) { + var actualIndent = this.getNodeIndent(node); + if (!isKind(node, 'ArrayLiteralExpression') && + !isKind(node, 'ObjectLiteralExpression') && + (actualIndent.goodChar !== neededIndent || actualIndent.badChar !== 0) && + actualIndent.firstInLine) { + this.report(node, neededIndent, actualIndent.space, actualIndent.tab, actualIndent.contentStart); + } + if (isKind(node, 'IfStatement')) { + var elseStatement = node.elseStatement; + if (elseStatement) { + var elseKeyword = node.getChildren().filter(function (ch) { return isKind(ch, 'ElseKeyword'); }).shift(); + this.checkNodeIndent(elseKeyword, neededIndent); + if (!this.isNodeFirstInLine(elseStatement)) { + this.checkNodeIndent(elseStatement, neededIndent); + } + } + } + else if (isKind(node, 'TryStatement')) { + var handler = node.catchClause; + if (handler) { + var catchKeyword = handler.getChildren().filter(function (ch) { return isKind(ch, 'CatchKeyword'); }).shift(); + this.checkNodeIndent(catchKeyword, neededIndent); + if (!this.isNodeFirstInLine(handler)) { + this.checkNodeIndent(handler, neededIndent); + } + } + var finalizer = node.finallyBlock; + if (finalizer) { + var finallyKeyword = node.getChildren().filter(function (ch) { return isKind(ch, 'FinallyKeyword'); }).shift(); + this.checkNodeIndent(finallyKeyword, neededIndent); + } + } + else if (isKind(node, 'DoStatement')) { + var whileKeyword = node.getChildren().filter(function (ch) { return isKind(ch, 'WhileKeyword'); }).shift(); + this.checkNodeIndent(whileKeyword, neededIndent); + } + }; + IndentWalker.prototype.isSingleLineNode = function (node) { + var text = node.kind === ts.SyntaxKind.SyntaxList ? node.getFullText() : node.getText(); + return text.indexOf('\n') === -1; + }; + IndentWalker.prototype.blockIndentationCheck = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + var functionLike = [ + 'FunctionExpression', + 'FunctionDeclaration', + 'MethodDeclaration', + 'Constructor', + 'ArrowFunction' + ]; + if (node.parent && isOneOf(node.parent, functionLike)) { + this.checkIndentInFunctionBlock(node); + return; + } + var indent; + var nodesToCheck = []; + var statementsWithProperties = [ + 'IfStatement', + 'WhileStatement', + 'ForStatement', + 'ForInStatement', + 'ForOfStatement', + 'DoStatement', + 'ClassDeclaration', + 'ClassExpression', + 'InterfaceDeclaration', + 'TypeLiteral', + 'TryStatement', + 'SourceFile' + ]; + if (node.parent && isOneOf(node.parent, statementsWithProperties) && this.isNodeBodyBlock(node)) { + indent = this.getNodeIndent(node.parent).goodChar; + } + else if (node.parent && isKind(node.parent, 'CatchClause')) { + indent = this.getNodeIndent(node.parent.parent).goodChar; + } + else { + indent = this.getNodeIndent(node).goodChar; + } + if (isKind(node, 'IfStatement') && !isKind(node.thenStatement, 'Block')) { + nodesToCheck = [node.thenStatement]; + } + else { + if (isKind(node, 'Block')) { + nodesToCheck = node.getChildren()[1].getChildren(); + } + else if (node.parent && + isOneOf(node.parent, [ + 'ClassDeclaration', + 'ClassExpression', + 'InterfaceDeclaration', + 'TypeLiteral' + ])) { + nodesToCheck = node.getChildren(); + } + else { + nodesToCheck = [node.statement]; + } + } + this.checkNodeIndent(node, indent); + if (nodesToCheck.length > 0) { + this.checkNodesIndent(nodesToCheck, indent + indentSize); + } + if (isKind(node, 'Block')) { + this.checkLastNodeLineIndent(node, indent); + } + else if (node.parent && this.isNodeBodyBlock(node)) { + this.checkLastNodeLineIndent(node.parent, indent); + } + }; + IndentWalker.prototype.isAssignment = function (node) { + if (!isKind(node, 'BinaryExpression')) { + return false; + } + return node.operatorToken.getText() === '='; + }; + IndentWalker.prototype.isNodeBodyBlock = function (node) { + var hasBlock = [ + 'ClassDeclaration', + 'ClassExpression', + 'InterfaceDeclaration', + 'TypeLiteral' + ]; + return isKind(node, 'Block') || (isKind(node, 'SyntaxList') && + isOneOf(node.parent, hasBlock)); + }; + IndentWalker.prototype.checkFirstNodeLineIndent = function (node, firstLineIndent) { + var startIndent = this.getNodeIndent(node); + var firstInLine = startIndent.firstInLine; + if (firstInLine && (startIndent.goodChar !== firstLineIndent || startIndent.badChar !== 0)) { + this.report(node, firstLineIndent, startIndent.space, startIndent.tab, startIndent.contentStart); + } + }; + IndentWalker.prototype.checkLastNodeLineIndent = function (node, lastLineIndent) { + var lastToken = node.getLastToken(); + var endIndent = this.getNodeIndent(lastToken); + var firstInLine = endIndent.firstInLine; + if (firstInLine && (endIndent.goodChar !== lastLineIndent || endIndent.badChar !== 0)) { + this.report(lastToken, lastLineIndent, endIndent.space, endIndent.tab); + } + }; + IndentWalker.prototype.isOuterIIFE = function (node) { + if (!node.parent) + return false; + var parent = node.parent; + var expressionIsNode = parent.expression !== node; + if (isKind(parent, 'ParenthesizedExpression')) { + parent = parent.parent; + } + if (!isKind(parent, 'CallExpression') || expressionIsNode) { + return false; + } + var stmt = parent; + var condition; + do { + stmt = stmt.parent; + condition = (isKind(stmt, 'PrefixUnaryExpression') && (stmt.operator === ts.SyntaxKind.ExclamationToken || + stmt.operator === ts.SyntaxKind.TildeToken || + stmt.operator === ts.SyntaxKind.PlusToken || + stmt.operator === ts.SyntaxKind.MinusToken) || + isKind(stmt, 'BinaryExpression') || + isKind(stmt, 'SyntaxList') || + isKind(stmt, 'VariableDeclaration') || + isKind(stmt, 'VariableDeclarationList') || + isKind(stmt, 'ParenthesizedExpression')); + } while (condition); + return ((isKind(stmt, 'ExpressionStatement') || + isKind(stmt, 'VariableStatement')) && + !!stmt.parent && isKind(stmt.parent, 'SourceFile')); + }; + IndentWalker.prototype.isArgBeforeCalleeNodeMultiline = function (node) { + var parent = node.parent; + if (parent && parent['arguments'].length >= 2 && parent['arguments'][1] === node) { + var firstArg = parent['arguments'][0]; + return this.getLine(firstArg, true) > this.getLine(firstArg); + } + return false; + }; + IndentWalker.prototype.checkIndentInFunctionBlock = function (node) { + var calleeNode = node.parent; + var indent = this.getNodeIndent(calleeNode).goodChar; + if (calleeNode.parent && calleeNode.parent.kind === ts.SyntaxKind.CallExpression) { + var calleeParent = calleeNode.parent; + if (calleeNode.kind !== ts.SyntaxKind.FunctionExpression && calleeNode.kind !== ts.SyntaxKind.ArrowFunction) { + if (calleeParent && this.getLine(calleeParent) < this.getLine(node)) { + indent = this.getNodeIndent(calleeParent).goodChar; + } + } + else { + var callee = calleeParent.expression; + if (this.isArgBeforeCalleeNodeMultiline(calleeNode) && + this.getLine(callee) === this.getLine(callee, true) && + !this.isNodeFirstInLine(calleeNode)) { + indent = this.getNodeIndent(calleeParent).goodChar; + } + } + } + var functionOffset = indentSize; + if (OPTIONS.outerIIFEBody !== null && this.isOuterIIFE(calleeNode)) { + functionOffset = OPTIONS.outerIIFEBody * indentSize; + } + else if (calleeNode.kind === ts.SyntaxKind.FunctionExpression) { + functionOffset = OPTIONS.FunctionExpression.body * indentSize; + } + else if (calleeNode.kind === ts.SyntaxKind.FunctionDeclaration) { + functionOffset = OPTIONS.FunctionDeclaration.body * indentSize; + } + else if (isOneOf(calleeNode, ['MethodDeclaration', 'Constructor'])) { + functionOffset = OPTIONS.FunctionExpression.body * indentSize; + } + indent += functionOffset; + var parentVarNode = this.getVariableDeclaratorNode(node); + if (parentVarNode && this.isNodeInVarOnTop(node, parentVarNode) && parentVarNode.parent) { + var varKind = parentVarNode.parent.getFirstToken().getText(); + indent += indentSize * OPTIONS.VariableDeclarator[varKind]; + } + this.checkFirstNodeLineIndent(node, indent - functionOffset); + if (node.statements.length) { + this.checkNodesIndent(node.statements, indent); + } + this.checkLastNodeLineIndent(node, indent - functionOffset); + }; + IndentWalker.prototype.checkNodesIndent = function (nodes, indent) { + var _this = this; + nodes.forEach(function (node) { return _this.checkNodeIndent(node, indent); }); + }; + IndentWalker.prototype.expectedCaseIndent = function (node, switchIndent) { + var switchNode = (node.kind === ts.SyntaxKind.SwitchStatement) ? node : node.parent; + var line = this.getLine(switchNode); + var caseIndent; + if (this.caseIndentStore[line]) { + return this.caseIndentStore[line]; + } + else { + if (typeof switchIndent === 'undefined') { + switchIndent = this.getNodeIndent(switchNode).goodChar; + } + caseIndent = switchIndent + (indentSize * OPTIONS.SwitchCase); + this.caseIndentStore[line] = caseIndent; + return caseIndent; + } + }; + IndentWalker.prototype.expectedVarIndent = function (node, varIndent) { + var varNode = node.parent; + var line = this.getLine(varNode); + var indent; + if (this.varIndentStore[line]) { + return this.varIndentStore[line]; + } + else { + if (typeof varIndent === 'undefined') { + varIndent = this.getNodeIndent(varNode).goodChar; + } + var varKind = varNode.getFirstToken().getText(); + indent = varIndent + (indentSize * OPTIONS.VariableDeclarator[varKind]); + this.varIndentStore[line] = indent; + return indent; + } + }; + IndentWalker.prototype.getParentNodeByType = function (node, kind, stopAtList) { + if (stopAtList === void 0) { stopAtList = [ts.SyntaxKind.SourceFile]; } + var parent = node.parent; + while (parent + && parent.kind !== kind + && stopAtList.indexOf(parent.kind) === -1 + && parent.kind !== ts.SyntaxKind.SourceFile) { + parent = parent.parent; + } + return parent && parent.kind === kind ? parent : null; + }; + IndentWalker.prototype.getVariableDeclaratorNode = function (node) { + return this.getParentNodeByType(node, ts.SyntaxKind.VariableDeclaration); + }; + IndentWalker.prototype.getBinaryExpressionNode = function (node) { + return this.getParentNodeByType(node, ts.SyntaxKind.BinaryExpression); + }; + IndentWalker.prototype.checkIndentInArrayOrObjectBlock = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + var elements = isKind(node, 'ObjectLiteralExpression') ? node['properties'] : node['elements']; + elements = elements.filter(function (elem) { return elem.getText() !== ''; }); + var nodeLine = this.getLine(node); + var nodeEndLine = this.getLine(node, true); + var nodeIndent; + var elementsIndent; + var varKind; + var parentVarNode = this.getVariableDeclaratorNode(node); + if (this.isNodeFirstInLine(node) && node.parent) { + var parent = node.parent; + nodeIndent = this.getNodeIndent(parent).goodChar; + if (parentVarNode && this.getLine(parentVarNode) !== nodeLine) { + if (!isKind(parent, 'VariableDeclaration') || parentVarNode === parentVarNode.parent.declarations[0]) { + var parentVarLine = this.getLine(parentVarNode); + var parentLine = this.getLine(parent); + if (isKind(parent, 'VariableDeclaration') && parentVarLine === parentLine && parentVarNode.parent) { + varKind = parentVarNode.parent.getFirstToken().getText(); + nodeIndent = nodeIndent + (indentSize * OPTIONS.VariableDeclarator[varKind]); + } + else if (isOneOf(parent, [ + 'ObjectLiteralExpression', + 'ArrayLiteralExpression', + 'CallExpression', + 'ArrowFunction', + 'NewExpression', + 'BinaryExpression' + ])) { + nodeIndent = nodeIndent + indentSize; + } + } + } + else if (!parentVarNode && + !this.isFirstArrayElementOnSameLine(parent) && + parent.kind !== ts.SyntaxKind.PropertyAccessExpression && + parent.kind !== ts.SyntaxKind.ExpressionStatement && + parent.kind !== ts.SyntaxKind.PropertyAssignment && + !(this.isAssignment(parent))) { + nodeIndent = nodeIndent + indentSize; + } + elementsIndent = nodeIndent + indentSize; + this.checkFirstNodeLineIndent(node, nodeIndent); + } + else { + nodeIndent = this.getNodeIndent(node).goodChar; + elementsIndent = nodeIndent + indentSize; + } + if (parentVarNode && this.isNodeInVarOnTop(node, parentVarNode) && parentVarNode.parent) { + varKind = parentVarNode.parent.getFirstToken().getText(); + elementsIndent += indentSize * OPTIONS.VariableDeclarator[varKind]; + } + this.checkNodesIndent(elements, elementsIndent); + if (elements.length > 0) { + var lastLine = this.getLine(elements[elements.length - 1], true); + if (lastLine === nodeEndLine) { + return; + } + } + this.checkLastNodeLineIndent(node, elementsIndent - indentSize); + }; + IndentWalker.prototype.isFirstArrayElementOnSameLine = function (node) { + if (isKind(node, 'ArrayLiteralExpression')) { + var ele = node.elements[0]; + if (ele) { + return isKind(ele, 'ObjectLiteralExpression') && this.getLine(ele) === this.getLine(node); + } + } + return false; + }; + IndentWalker.prototype.isNodeInVarOnTop = function (node, varNode) { + var nodeLine = this.getLine(node); + var parentLine = this.getLine(varNode.parent); + return varNode && + parentLine === nodeLine && + varNode.parent.declarations.length > 1; + }; + IndentWalker.prototype.blockLessNodes = function (node) { + if (!isKind(node.statement, 'Block')) { + this.blockIndentationCheck(node); + } + }; + IndentWalker.prototype.checkIndentInVariableDeclarations = function (node) { + var indent = this.expectedVarIndent(node); + this.checkNodeIndent(node, indent); + }; + IndentWalker.prototype.visitCase = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + var caseIndent = this.expectedCaseIndent(node); + this.checkNodesIndent(node.statements, caseIndent + indentSize); + }; + IndentWalker.prototype.checkLastReturnStatementLineIndent = function (node, firstLineIndent) { + if (!node.expression) { + return; + } + var lastToken = node.expression.getLastToken(); + var endIndex = lastToken.getStart(); + var pos = endIndex - 1; + while (pos > 0 && this.srcText.charAt(pos) !== '\n') { + pos -= 1; + } + var textBeforeClosingParenthesis = this.getSourceSubstr(pos + 1, endIndex); + if (textBeforeClosingParenthesis.trim()) { + return; + } + var endIndent = this.getNodeIndent(lastToken); + if (endIndent.goodChar !== firstLineIndent) { + this.report(node, firstLineIndent, endIndent.space, endIndent.tab, lastToken.getStart()); + } + }; + IndentWalker.prototype.visitClassDeclaration = function (node) { + var len = node.getChildCount(); + this.blockIndentationCheck(node.getChildAt(len - 2)); + _super.prototype.visitClassDeclaration.call(this, node); + }; + IndentWalker.prototype.visitClassExpression = function (node) { + var len = node.getChildCount(); + this.blockIndentationCheck(node.getChildAt(len - 2)); + _super.prototype.visitClassExpression.call(this, node); + }; + IndentWalker.prototype.visitInterfaceDeclaration = function (node) { + var len = node.getChildCount(); + this.blockIndentationCheck(node.getChildAt(len - 2)); + _super.prototype.visitInterfaceDeclaration.call(this, node); + }; + IndentWalker.prototype.visitTypeLiteral = function (node) { + var len = node.getChildCount(); + this.blockIndentationCheck(node.getChildAt(len - 2)); + _super.prototype.visitTypeLiteral.call(this, node); + }; + IndentWalker.prototype.visitBlock = function (node) { + this.blockIndentationCheck(node); + _super.prototype.visitBlock.call(this, node); + }; + IndentWalker.prototype.visitIfStatement = function (node) { + var thenLine = this.getLine(node.thenStatement); + var line = this.getLine(node); + if (!isKind(node.thenStatement, 'Block') && thenLine > line) { + this.blockIndentationCheck(node); + } + _super.prototype.visitIfStatement.call(this, node); + }; + IndentWalker.prototype.visitObjectLiteralExpression = function (node) { + this.checkIndentInArrayOrObjectBlock(node); + _super.prototype.visitObjectLiteralExpression.call(this, node); + }; + IndentWalker.prototype.visitArrayLiteralExpression = function (node) { + this.checkIndentInArrayOrObjectBlock(node); + _super.prototype.visitArrayLiteralExpression.call(this, node); + }; + IndentWalker.prototype.visitSwitchStatement = function (node) { + var switchIndent = this.getNodeIndent(node).goodChar; + var caseIndent = this.expectedCaseIndent(node, switchIndent); + this.checkNodesIndent(node.caseBlock.clauses, caseIndent); + this.checkLastNodeLineIndent(node, switchIndent); + _super.prototype.visitSwitchStatement.call(this, node); + }; + IndentWalker.prototype.visitCaseClause = function (node) { + this.visitCase(node); + _super.prototype.visitCaseClause.call(this, node); + }; + IndentWalker.prototype.visitDefaultClause = function (node) { + this.visitCase(node); + _super.prototype.visitDefaultClause.call(this, node); + }; + IndentWalker.prototype.visitWhileStatement = function (node) { + this.blockLessNodes(node); + _super.prototype.visitWhileStatement.call(this, node); + }; + IndentWalker.prototype.visitForStatement = function (node) { + this.blockLessNodes(node); + _super.prototype.visitForStatement.call(this, node); + }; + IndentWalker.prototype.visitForInStatement = function (node) { + this.blockLessNodes(node); + _super.prototype.visitForInStatement.call(this, node); + }; + IndentWalker.prototype.visitDoStatement = function (node) { + this.blockLessNodes(node); + _super.prototype.visitDoStatement.call(this, node); + }; + IndentWalker.prototype.visitVariableDeclaration = function (node) { + this.checkIndentInVariableDeclarations(node); + _super.prototype.visitVariableDeclaration.call(this, node); + }; + IndentWalker.prototype.visitVariableStatement = function (node) { + _super.prototype.visitVariableStatement.call(this, node); + var list = node.getChildAt(0).getChildAt(1); + if (!list) { + return; + } + var len = list.getChildCount(); + if (len === 0) { + return; + } + var lastElement = list.getChildAt(len - 1); + var lastToken = node.getLastToken(); + var lastTokenLine = this.getLine(lastToken, true); + var lastElementLine = this.getLine(lastElement, true); + if (lastTokenLine <= lastElementLine) { + return; + } + var tokenBeforeLastElement = list.getChildAt(len - 2); + if (tokenBeforeLastElement && isKind(tokenBeforeLastElement, 'CommaToken')) { + this.checkLastNodeLineIndent(node, this.getNodeIndent(tokenBeforeLastElement).goodChar); + } + else { + var nodeIndent = this.getNodeIndent(node).goodChar; + var varKind = node.getFirstToken().getText(); + var declaratorIndent = typeof OPTIONS.VariableDeclarator[varKind] === 'number' ? OPTIONS.VariableDeclarator[varKind] : DEFAULT_VARIABLE_INDENT; + var elementsIndent = nodeIndent + indentSize * declaratorIndent; + this.checkLastNodeLineIndent(node, elementsIndent - indentSize); + } + }; + IndentWalker.prototype.visitFunctionDeclaration = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + if (OPTIONS.FunctionDeclaration.parameters === 'first' && node.parameters.length) { + var indent = this.getLineAndCharacter(node.parameters[0]).character; + this.checkNodesIndent(node.parameters.slice(1), indent); + } + else if (OPTIONS.FunctionDeclaration.parameters !== null) { + var nodeIndent = this.getNodeIndent(node).goodChar; + this.checkNodesIndent(node.parameters, nodeIndent + indentSize * OPTIONS.FunctionDeclaration.parameters); + var closingParen = node.getChildAt(node.getChildCount() - 2); + this.checkNodeIndent(closingParen, nodeIndent); + } + _super.prototype.visitFunctionDeclaration.call(this, node); + }; + IndentWalker.prototype.checkFunctionMethodExpression = function (node) { + if (OPTIONS.FunctionExpression.parameters === 'first' && node.parameters.length) { + var indent = this.getLineAndCharacter(node.parameters[0]).character; + this.checkNodesIndent(node.parameters.slice(1), indent); + } + else if (OPTIONS.FunctionExpression.parameters !== null) { + var nodeIndent = this.getNodeIndent(node).goodChar; + this.checkNodesIndent(node.parameters, nodeIndent + indentSize * OPTIONS.FunctionExpression.parameters); + var closingParen = node.getChildAt(node.getChildCount() - 2); + this.checkNodeIndent(closingParen, nodeIndent); + } + }; + IndentWalker.prototype.visitFunctionExpression = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + this.checkFunctionMethodExpression(node); + _super.prototype.visitFunctionExpression.call(this, node); + }; + IndentWalker.prototype.visitMethodDeclaration = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + this.checkFunctionMethodExpression(node); + _super.prototype.visitMethodDeclaration.call(this, node); + }; + IndentWalker.prototype.visitConstructorDeclaration = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + this.checkFunctionMethodExpression(node); + _super.prototype.visitConstructorDeclaration.call(this, node); + }; + IndentWalker.prototype.visitCallExpression = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + if (OPTIONS.CallExpression.arguments === 'first' && node.arguments.length) { + var indent = this.getLineAndCharacter(node.arguments[0]).character; + this.checkNodesIndent(node.arguments.slice(1), indent); + } + else if (OPTIONS.CallExpression.arguments !== null) { + var openParen = node.getChildAt(node.getChildCount(this.srcFile) - 3, this.srcFile); + var openParenIndent = this.getNodeIndent(openParen); + this.checkNodesIndent(node.arguments, openParenIndent.goodChar + indentSize * OPTIONS.CallExpression.arguments); + } + _super.prototype.visitCallExpression.call(this, node); + }; + IndentWalker.prototype.visitPropertyAccessExpression = function (node) { + if (this.isSingleLineNode(node)) { + return; + } + var varDec = ts.SyntaxKind.VariableDeclaration; + var funcKind = [ts.SyntaxKind.FunctionExpression, ts.SyntaxKind.ArrowFunction]; + if (this.getParentNodeByType(node, varDec, funcKind)) { + return; + } + var binExp = ts.SyntaxKind.BinaryExpression; + var funcExp = ts.SyntaxKind.FunctionExpression; + var binaryNode = this.getParentNodeByType(node, binExp, [funcExp]); + if (binaryNode && this.isAssignment(binaryNode)) { + return; + } + _super.prototype.visitPropertyAccessExpression.call(this, node); + if (typeof OPTIONS.MemberExpression === 'undefined') { + return; + } + var propertyIndent = this.getNodeIndent(node).goodChar + indentSize * OPTIONS.MemberExpression; + var dotToken = node.getChildAt(1); + var checkNodes = [node.name, dotToken]; + this.checkNodesIndent(checkNodes, propertyIndent); + }; + IndentWalker.prototype.visitReturnStatement = function (node) { + if (this.isSingleLineNode(node) || !node.expression) { + return; + } + var firstLineIndent = this.getNodeIndent(node).goodChar; + if (isKind(node.expression, 'ParenthesizedExpression')) { + this.checkLastReturnStatementLineIndent(node, firstLineIndent); + } + else { + this.checkNodeIndent(node, firstLineIndent); + } + _super.prototype.visitReturnStatement.call(this, node); + }; + IndentWalker.prototype.visitSourceFile = function (node) { + this.checkNodesIndent(node.statements, 0); + _super.prototype.visitSourceFile.call(this, node); + }; + return IndentWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlckluZGVudFJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBT0EsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixJQUFNLFNBQVMsR0FBRyxZQUFZLENBQUM7QUFDL0IsSUFBTSx1QkFBdUIsR0FBRyxDQUFDLENBQUM7QUFDbEMsSUFBTSx3QkFBd0IsR0FBRyxJQUFJLENBQUM7QUFDdEMsSUFBTSw0QkFBNEIsR0FBRyxDQUFDLENBQUM7QUFDdkMsSUFBSSxVQUFVLEdBQUcsT0FBTyxDQUFDO0FBQ3pCLElBQUksVUFBVSxHQUFHLENBQUMsQ0FBQztBQUNuQixJQUFJLE9BQVksQ0FBQztBQVdqQixTQUFTLE1BQU0sQ0FBQyxNQUFXO0lBQUUsaUJBQWlCO1NBQWpCLFVBQWlCLEVBQWpCLHFCQUFpQixFQUFqQixJQUFpQjtRQUFqQixnQ0FBaUI7O0lBQzVDLE9BQU8sQ0FBQyxPQUFPLENBQUMsVUFBQyxNQUFNO1FBQ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LEVBQUUsQ0FBQyxDQUFDLENBQUM7UUFDMUMsaUJBQU0sZUFBZSxZQUFDLElBQUksQ0FBQyxDQUFDO0lBQzlCLENBQUM7SUFDSCxtQkFBQztBQUFELENBM2dDQSxBQTJnQ0MsQ0EzZ0MwQixJQUFJLENBQUMsVUFBVSxHQTJnQ3pDIiwiZmlsZSI6InJ1bGVzL3RlckluZGVudFJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/terMaxLenRule.js b/node_modules/tslint-eslint-rules/dist/rules/terMaxLenRule.js new file mode 100644 index 000000000..df33b55ee --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terMaxLenRule.js @@ -0,0 +1,306 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var _a; +var ts = require("typescript"); +var Lint = require("tslint"); +var tsutils_1 = require("tsutils"); +var RULE_NAME = 'ter-max-len'; +var CODE = 'code'; +var COMMENTS = 'comments'; +var TAB_WIDTH = 'tabWidth'; +var IGNORE_PATTERN = 'ignorePattern'; +var IGNORE_COMMENTS = 'ignoreComments'; +var IGNORE_STRINGS = 'ignoreStrings'; +var IGNORE_URLS = 'ignoreUrls'; +var IGNORE_TEMPLATE_LITERALS = 'ignoreTemplateLiterals'; +var IGNORE_REG_EXP_LITERALS = 'ignoreRegExpLiterals'; +var IGNORE_TRAILING_COMMENTS = 'ignoreTrailingComments'; +var IGNORE_IMPORTS = 'ignoreImports'; +function computeLineLength(line, tabWidth) { + var extraCharacterCount = 0; + line.replace(/\t/g, function (_, offset) { + var totalOffset = offset + extraCharacterCount; + var previousTabStopOffset = tabWidth ? totalOffset % tabWidth : 0; + var spaceCount = tabWidth - previousTabStopOffset; + extraCharacterCount += spaceCount - 1; + return '\t'; + }); + return line.length + extraCharacterCount; +} +function isFullLineComment(line, lineNumber, comment) { + var start = comment.start; + var end = comment.end; + var isFirstTokenOnLine = !line.slice(0, start[1]).trim(); + return comment && + (start[0] < lineNumber || (start[0] === lineNumber && isFirstTokenOnLine)) && + (end[0] > lineNumber || (end[0] === lineNumber && end[1] === line.length)); +} +function isTrailingComment(line, lineNumber, comment) { + return comment && + (comment.start[0] === lineNumber && lineNumber <= comment.end[0]) && + (comment.end[0] > lineNumber || comment.end[1] === line.length); +} +function stripTrailingComment(line, comment) { + return line.slice(0, comment.start[1]).replace(/\s+$/, ''); +} +function groupByLineNumber(acc, node) { + var startLoc = node.start; + var endLoc = node.end; + for (var i = startLoc[0]; i <= endLoc[0]; ++i) { + if (!Array.isArray(acc[i])) { + acc[i] = []; + } + acc[i].push(node); + } + return acc; +} +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.mergeOptions = function (options) { + var optionsObj = {}; + var obj = options[0]; + if (typeof obj === 'number') { + optionsObj[CODE] = obj || 80; + obj = options[1]; + } + if (typeof obj === 'number') { + optionsObj[TAB_WIDTH] = obj || 4; + obj = options[2]; + } + if (typeof obj === 'object' && !Array.isArray(obj)) { + Object.keys(obj).forEach(function (key) { + optionsObj[key] = obj[key]; + }); + } + optionsObj[CODE] = optionsObj[CODE] || 80; + optionsObj[TAB_WIDTH] = optionsObj[TAB_WIDTH] || 4; + return optionsObj; + }; + Rule.prototype.isEnabled = function () { + if (_super.prototype.isEnabled.call(this)) { + var options = this.getOptions().ruleArguments; + var option = options[0]; + if (typeof option === 'number' && option > 0) { + return true; + } + var optionsObj = Rule.mergeOptions(options); + if (optionsObj[CODE]) { + return true; + } + } + return false; + }; + Rule.prototype.apply = function (sourceFile) { + return this.applyWithWalker(new MaxLenWalker(sourceFile, this.getOptions())); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'enforce a maximum line length', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Limiting the length of a line of code improves code readability.\n It also makes comparing code side-by-side easier and improves compatibility with\n various editors, IDEs, and diff viewers.\n "], ["\n Limiting the length of a line of code improves code readability.\n It also makes comparing code side-by-side easier and improves compatibility with\n various editors, IDEs, and diff viewers.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n An integer indicating the maximum length of lines followed by an optional integer specifying\n the character width for tab characters.\n\n An optional object may be provided to fine tune the rule:\n\n * `\"", "\"`: (default 80) enforces a maximum line length\n * `\"", "\"`: (default 4) specifies the character width for tab characters\n * `\"", "\"`: enforces a maximum line length for comments; defaults to value of code\n * `\"", "\"`: ignores lines matching a regular expression; can only match a single\n line and need to be double escaped when written in JSON\n * `\"", "\"`: true ignores all trailing comments and comments on their own line\n * `\"", "\"`: true ignores only trailing comments\n * `\"", "\"`: true ignores lines that contain a URL\n * `\"", "\"`: true ignores lines that contain a double-quoted or single-quoted string\n * `\"", "\"`: true ignores lines that contain a template literal\n * `\"", "\"`: true ignores lines that contain a RegExp literal\n * `\"", "\"`: true ignores lines that contain an import module specifier\n "], ["\n An integer indicating the maximum length of lines followed by an optional integer specifying\n the character width for tab characters.\n\n An optional object may be provided to fine tune the rule:\n\n * \\`\"", "\"\\`: (default 80) enforces a maximum line length\n * \\`\"", "\"\\`: (default 4) specifies the character width for tab characters\n * \\`\"", "\"\\`: enforces a maximum line length for comments; defaults to value of code\n * \\`\"", "\"\\`: ignores lines matching a regular expression; can only match a single\n line and need to be double escaped when written in JSON\n * \\`\"", "\"\\`: true ignores all trailing comments and comments on their own line\n * \\`\"", "\"\\`: true ignores only trailing comments\n * \\`\"", "\"\\`: true ignores lines that contain a URL\n * \\`\"", "\"\\`: true ignores lines that contain a double-quoted or single-quoted string\n * \\`\"", "\"\\`: true ignores lines that contain a template literal\n * \\`\"", "\"\\`: true ignores lines that contain a RegExp literal\n * \\`\"", "\"\\`: true ignores lines that contain an import module specifier\n "])), CODE, TAB_WIDTH, COMMENTS, IGNORE_PATTERN, IGNORE_COMMENTS, IGNORE_TRAILING_COMMENTS, IGNORE_URLS, IGNORE_STRINGS, IGNORE_TEMPLATE_LITERALS, IGNORE_REG_EXP_LITERALS, IGNORE_IMPORTS), + options: { + type: 'array', + items: [{ + type: 'number', + minimum: '0' + }, { + type: 'object', + properties: (_a = {}, + _a[CODE] = { + type: 'number', + minumum: '1' + }, + _a[COMMENTS] = { + type: 'number', + minumum: '1' + }, + _a[TAB_WIDTH] = { + type: 'number', + minumum: '1' + }, + _a[IGNORE_PATTERN] = { + type: 'string' + }, + _a[IGNORE_COMMENTS] = { + type: 'boolean' + }, + _a[IGNORE_STRINGS] = { + type: 'boolean' + }, + _a[IGNORE_URLS] = { + type: 'boolean' + }, + _a[IGNORE_TEMPLATE_LITERALS] = { + type: 'boolean' + }, + _a[IGNORE_REG_EXP_LITERALS] = { + type: 'boolean' + }, + _a[IGNORE_TRAILING_COMMENTS] = { + type: 'boolean' + }, + _a[IGNORE_IMPORTS] = { + type: 'boolean' + }, + _a), + additionalProperties: false + }], + minLength: 1, + maxLength: 3 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, 100]\n "], ["\n \"", "\": [true, 100]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [\n true,\n 100,\n 2,\n {\n \"", "\": true,\n \"", "\": \"^\\\\s*(let|const)\\\\s.+=\\\\s*require\\\\s*\\\\(\"\n }\n ]\n "], ["\n \"", "\": [\n true,\n 100,\n 2,\n {\n \"", "\": true,\n \"", "\": \"^\\\\\\\\s*(let|const)\\\\\\\\s.+=\\\\\\\\s*require\\\\\\\\s*\\\\\\\\(\"\n }\n ]\n "])), RULE_NAME, IGNORE_URLS, IGNORE_PATTERN), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [\n true,\n {\n \"", "\": 100,\n \"", "\": 2,\n \"", "\": true,\n \"", "\": true,\n \"", "\": \"^\\\\s*(let|const)\\\\s.+=\\\\s*require\\\\s*\\\\(\"\n }\n ]\n "], ["\n \"", "\": [\n true,\n {\n \"", "\": 100,\n \"", "\": 2,\n \"", "\": true,\n \"", "\": true,\n \"", "\": \"^\\\\\\\\s*(let|const)\\\\\\\\s.+=\\\\\\\\s*require\\\\\\\\s*\\\\\\\\(\"\n }\n ]\n "])), RULE_NAME, CODE, TAB_WIDTH, IGNORE_IMPORTS, IGNORE_URLS, IGNORE_PATTERN) + ], + typescriptOnly: false, + type: 'style' + }; + Rule.URL_REGEXP = /[^:/?#]:\/\/[^?#]/; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var MaxLenWalker = (function (_super) { + tslib_1.__extends(MaxLenWalker, _super); + function MaxLenWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.ignoredIntervals = []; + _this.optionsObj = {}; + _this.comments = []; + _this.strings = []; + _this.templates = []; + _this.regExp = []; + _this.optionsObj = Rule.mergeOptions(_this.getOptions()); + return _this; + } + MaxLenWalker.prototype.hasOption = function (option) { + if (this.optionsObj[option] && this.optionsObj[option]) { + return true; + } + return false; + }; + MaxLenWalker.prototype.getOption = function (option) { + return this.optionsObj[option]; + }; + MaxLenWalker.prototype.visitStringLiteral = function (node) { + this.strings.push(this.getINode(node.kind, node.getText(), node.getStart())); + _super.prototype.visitStringLiteral.call(this, node); + }; + MaxLenWalker.prototype.visitRegularExpressionLiteral = function (node) { + this.regExp.push(this.getINode(node.kind, node.getText(), node.getStart())); + _super.prototype.visitRegularExpressionLiteral.call(this, node); + }; + MaxLenWalker.prototype.getINode = function (kind, text, startPos) { + var width = text.length; + var src = this.getSourceFile(); + var startLoc = src.getLineAndCharacterOfPosition(startPos); + var endLoc = src.getLineAndCharacterOfPosition(startPos + width); + return { + kind: kind, + text: text, + startPosition: startPos, + endPosition: startPos + width, + start: [startLoc.line, startLoc.character], + end: [endLoc.line, endLoc.character] + }; + }; + MaxLenWalker.prototype.visitSourceFile = function (node) { + var _this = this; + _super.prototype.visitSourceFile.call(this, node); + tsutils_1.forEachTokenWithTrivia(node, function (text, token, range) { + if (token === ts.SyntaxKind.SingleLineCommentTrivia || + token === ts.SyntaxKind.MultiLineCommentTrivia) { + _this.comments.push(_this.getINode(token, text.substring(range.pos, range.end), range.pos)); + } + else if (token === ts.SyntaxKind.FirstTemplateToken) { + _this.templates.push(_this.getINode(token, text.substring(range.pos, range.end), range.pos)); + } + }); + this.findFailures(node); + }; + MaxLenWalker.prototype.visitImportDeclaration = function (node) { + _super.prototype.visitImportDeclaration.call(this, node); + var startPos = node.moduleSpecifier.getStart(); + var text = node.moduleSpecifier.getText(); + var width = text.length; + if (this.hasOption(IGNORE_IMPORTS)) { + this.ignoredIntervals.push({ + endPosition: startPos + width, + startPosition: startPos + }); + } + }; + MaxLenWalker.prototype.findFailures = function (sourceFile) { + var lineStarts = sourceFile.getLineStarts(); + var source = sourceFile.getFullText(); + var lineLimit = this.getOption(CODE) || 80; + var ignoreTrailingComments = this.getOption(IGNORE_TRAILING_COMMENTS) || + this.getOption(IGNORE_COMMENTS) || + false; + var ignoreComments = this.getOption(IGNORE_COMMENTS) || false; + var ignoreStrings = this.getOption(IGNORE_STRINGS) || false; + var ignoreTemplateLiterals = this.getOption(IGNORE_TEMPLATE_LITERALS) || false; + var ignoreUrls = this.getOption(IGNORE_URLS) || false; + var ignoreRexExpLiterals = this.getOption(IGNORE_REG_EXP_LITERALS) || false; + var pattern = this.getOption(IGNORE_PATTERN) || null; + var tabWidth = this.getOption(TAB_WIDTH) || 4; + var maxCommentLength = this.getOption(COMMENTS); + var comments = ignoreComments || maxCommentLength || ignoreTrailingComments ? this.comments : []; + var commentsIndex = 0; + var stringsByLine = this.strings.reduce(groupByLineNumber, {}); + var templatesByLine = this.templates.reduce(groupByLineNumber, {}); + var regExpByLine = this.regExp.reduce(groupByLineNumber, {}); + var totalLines = lineStarts.length; + for (var i = 0; i < totalLines; ++i) { + var from = lineStarts[i]; + var to = lineStarts[i + 1] || source.length; + var line = source.substring(from, i === totalLines - 1 ? to : to - 1); + var lineIsComment = false; + if (commentsIndex < comments.length) { + var comment = void 0; + do { + comment = comments[++commentsIndex]; + } while (comment && comment.start[0] <= i); + comment = comments[--commentsIndex]; + if (isFullLineComment(line, i, comment)) { + lineIsComment = true; + } + else if (ignoreTrailingComments && isTrailingComment(line, i, comment)) { + line = stripTrailingComment(line, comment); + } + } + if (ignoreUrls && Rule.URL_REGEXP.test(line) || + pattern && new RegExp(pattern).test(line) || + ignoreStrings && stringsByLine[i] || + ignoreTemplateLiterals && templatesByLine[i] || + ignoreRexExpLiterals && regExpByLine[i]) { + continue; + } + var lineLength = computeLineLength(line, tabWidth); + if (lineIsComment && ignoreComments) { + continue; + } + var ruleFailure = null; + if (lineIsComment && exceedLineLimit(lineLength, maxCommentLength, source[to - 2])) { + ruleFailure = new Lint.RuleFailure(sourceFile, from, to - 1, "Line " + (i + 1) + " exceeds the maximum comment line length of " + maxCommentLength + ".", RULE_NAME); + } + else if (exceedLineLimit(lineLength, lineLimit, source[to - 2])) { + ruleFailure = new Lint.RuleFailure(sourceFile, from, to - 1, "Line " + (i + 1) + " exceeds the maximum line length of " + lineLimit + ".", RULE_NAME); + } + if (ruleFailure && !Lint.doesIntersect(ruleFailure, this.ignoredIntervals)) { + this.addFailure(ruleFailure); + } + } + }; + return MaxLenWalker; +}(Lint.RuleWalker)); +function exceedLineLimit(lineLength, lineLimit, secondToLast) { + return lineLength > lineLimit && !((lineLength - 1) === lineLimit && secondToLast === '\r'); +} +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck1heExlblJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQVFBLCtCQUFpQztBQU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0Y7SUFDSCxDQUFDO0lBQ0gsbUJBQUM7QUFBRCxDQWxMQSxBQWtMQyxDQWxMMEIsSUFBSSxDQUFDLFVBQVUsR0FrTHpDO0FBRUQsU0FBUyxlQUFlLENBQUMsVUFBa0IsRUFBRSxTQUFpQixFQUFFLFlBQW9CO0lBTWxGLE9BQU8sVUFBVSxHQUFHLFNBQVMsSUFBSSxDQUFDLENBQUMsQ0FBQyxVQUFVLEdBQUcsQ0FBQyxDQUFDLEtBQUssU0FBUyxJQUFJLFlBQVksS0FBSyxJQUFJLENBQUMsQ0FBQztBQUM5RixDQUFDIiwiZmlsZSI6InJ1bGVzL3Rlck1heExlblJ1bGUuanMiLCJzb3VyY2VSb290IjoiL1VzZXJzL2ptbG9wZXovdHNsaW50LWVzbGludC1ydWxlcy9zcmMifQ== diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNewlineAfterVarRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNewlineAfterVarRule.js new file mode 100644 index 000000000..9c76bd5ba --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNewlineAfterVarRule.js @@ -0,0 +1,113 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-newline-after-var'; +var EXPECTED_BLANK_LINE_MESSAGE = 'Expected blank line after variable declarations.'; +var UNEXPECTED_BLANK_LINE_MESSAGE = 'Unexpected blank line after variable declarations.'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.formatOptions = function (_a) { + var alwaysOrNever = _a[0]; + return { + always: alwaysOrNever !== 'never' + }; + }; + Rule.prototype.apply = function (sourceFile) { + var opt = this.formatOptions(this.ruleArguments); + var walker = new RuleWalker(sourceFile, this.ruleName, opt); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: true, + description: 'require or disallow an empty line after variable declarations', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n This rule enforces a coding style where empty lines are required or disallowed after `var`, `let`, or `const`\n statements to achieve a consistent coding style across the project.\n "], ["\n This rule enforces a coding style where empty lines are required or disallowed after \\`var\\`, \\`let\\`, or \\`const\\`\n statements to achieve a consistent coding style across the project.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule has a string option:\n\n * `\"always\"` (default) requires an empty line after `var`, `let`, or `const`.\n Comments on a line directly after var statements are treated like additional var statements.\n * `\"never\"` disallows empty lines after `var`, `let`, or `const`.\n "], ["\n This rule has a string option:\n\n * \\`\"always\"\\` (default) requires an empty line after \\`var\\`, \\`let\\`, or \\`const\\`.\n Comments on a line directly after var statements are treated like additional var statements.\n * \\`\"never\"\\` disallows empty lines after \\`var\\`, \\`let\\`, or \\`const\\`.\n "]))), + options: { + type: 'array', + items: [{ + enum: ['always', 'never'] + }], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + RuleWalker.prototype.walk = function (sourceFile) { + var _this = this; + this.sourceFileText = sourceFile.getFullText(); + var onNode = function (node) { + var _a = _this, lastVariableStatementNode = _a.lastVariableStatementNode, sourceFileText = _a.sourceFileText; + if (node.kind === ts.SyntaxKind.VariableStatement) { + _this.lastVariableStatementNode = node; + return; + } + if (node.kind === ts.SyntaxKind.EndOfFileToken) { + _this.lastVariableStatementNode = undefined; + return; + } + if (lastVariableStatementNode) { + var unexpectedLineFixes = []; + var expectedLineFixes = []; + var isNewLineRequired = _this.options.always; + var expectedLinePos = lastVariableStatementNode.end; + var newLinesCount = 0; + for (var i = lastVariableStatementNode.end; i < node.end; i++) { + var code = sourceFileText.charCodeAt(i); + if (code === 10) { + newLinesCount++; + if (!isNewLineRequired && newLinesCount > 1) { + unexpectedLineFixes.push(Lint.Replacement.deleteText(i, 1)); + } + } + else if (code !== 9 && code !== 13 && code !== 32) { + var leadingComments = ts.getLeadingCommentRanges("\n" + sourceFileText.slice(i), 0); + var lastLeadingComment = leadingComments && leadingComments.pop(); + if (lastLeadingComment && (!isNewLineRequired || (isNewLineRequired && newLinesCount < 2))) { + newLinesCount = 0; + expectedLinePos = i - 1 + lastLeadingComment.end; + i = expectedLinePos - 1; + } + else { + if (isNewLineRequired && newLinesCount < 2) { + expectedLineFixes.push(Lint.Replacement.appendText(expectedLinePos, '\n')); + } + break; + } + } + } + if (isNewLineRequired && expectedLineFixes[0]) { + _this.addFailureAt(lastVariableStatementNode.getStart(), 1, EXPECTED_BLANK_LINE_MESSAGE, expectedLineFixes); + } + else if (unexpectedLineFixes[0]) { + _this.addFailureAt(lastVariableStatementNode.getStart(), 1, UNEXPECTED_BLANK_LINE_MESSAGE, unexpectedLineFixes); + } + _this.lastVariableStatementNode = undefined; + } + return ts.forEachChild(node, onNode); + }; + return ts.forEachChild(sourceFile, onNode); + }; + return RuleWalker; +}(Lint.AbstractWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIn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QzdCLG1CQUFtQixDQUNwQixDQUFDO2lCQUNIO2dCQUVELEtBQUksQ0FBQyx5QkFBeUIsR0FBRyxTQUFTLENBQUM7YUFDNUM7WUFFRCxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBQ3ZDLENBQUMsQ0FBQztRQUVGLE9BQU8sRUFBRSxDQUFDLFlBQVksQ0FBQyxVQUFVLEVBQUUsTUFBTSxDQUFDLENBQUM7SUFDN0MsQ0FBQztJQUNILGlCQUFDO0FBQUQsQ0FwRkEsQUFvRkMsQ0FwRndCLElBQUksQ0FBQyxjQUFjLEdBb0YzQyIsImZpbGUiOiJydWxlcy90ZXJOZXdsaW5lQWZ0ZXJWYXJSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoIrregularWhitespaceRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoIrregularWhitespaceRule.js new file mode 100644 index 000000000..0f9cce213 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoIrregularWhitespaceRule.js @@ -0,0 +1,84 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-irregular-whitespace'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoIrregularWhitespaceWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'disallow irregular whitespace (recommended)', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Invalid or irregular whitespace causes issues with ECMAScript 5 parsers and also makes code\n harder to debug in a similar nature to mixed tabs and spaces.\n "], ["\n Invalid or irregular whitespace causes issues with ECMAScript 5 parsers and also makes code\n harder to debug in a similar nature to mixed tabs and spaces.\n "]))), + optionsDescription: '', + options: {}, + optionExamples: [ + Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'typescript' + }; + Rule.RULE_NAME = 'ter-no-irregular-whitespace'; + Rule.FAILURE_STRING = 'irregular whitespace not allowed'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoIrregularWhitespaceWalker = (function (_super) { + tslib_1.__extends(NoIrregularWhitespaceWalker, _super); + function NoIrregularWhitespaceWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.IRREGULAR_WHITESPACE = /[\u0085\u00A0\ufeff\f\v\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/mg; + _this.IRREGULAR_LINE_TERMINATORS = /[\u2028\u2029]/mg; + return _this; + } + NoIrregularWhitespaceWalker.prototype.visitSourceFile = function (node) { + this.validateIrregularWhitespace(node); + _super.prototype.visitSourceFile.call(this, node); + }; + NoIrregularWhitespaceWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.StringLiteral) { + this.removeStringError(node); + } + _super.prototype.visitNode.call(this, node); + }; + NoIrregularWhitespaceWalker.prototype.removeStringError = function (node) { + var start = node.getStart(); + var end = node.getEnd(); + var failures = this.getFailures(); + for (var i = failures.length - 1; i >= 0; i--) { + var failure = failures[i]; + if (failure.getRuleName() === Rule.RULE_NAME) { + if (failure.getStartPosition().getPosition() >= start && failure.getEndPosition().getPosition() <= end) { + failures.splice(i, 1); + } + } + } + }; + NoIrregularWhitespaceWalker.prototype.validateIrregularWhitespace = function (node) { + var _this = this; + var lines = node.text.split(/\n/g); + lines.forEach(function (line, i) { + var match = _this.IRREGULAR_WHITESPACE.exec(line); + while (match) { + _this.addFailure(_this.createFailure(node.getPositionOfLineAndCharacter(i, match.index), 1, Rule.FAILURE_STRING)); + match = _this.IRREGULAR_WHITESPACE.exec(line); + } + match = _this.IRREGULAR_LINE_TERMINATORS.exec(line); + while (match) { + _this.addFailure(_this.createFailure(node.getPositionOfLineAndCharacter(i, match.index), 1, Rule.FAILURE_STRING)); + match = _this.IRREGULAR_LINE_TERMINATORS.exec(line); + } + }); + }; + return NoIrregularWhitespaceWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck5vSXJyZWd1bGFyV2hpdGVzcGFjZVJ1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixJQUFNLFNBQVMsR0FBRyw2QkFBNkIsQ0FBQztBQUVoRDtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBeUJBLENBQUM7SUFKUSxvQkFBSyxHQUFaLFVBQWEsVUFBeUI7UUFDcEMsSUFBTSxNQUFNLEdBQUcsSUFBSSwyQkFBMkIsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLFVBQVUsRUFBRSxDQUFDLENBQUM7UUFDOUUsT0FBTyxJQUFJLENBQUMsZUFBZSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3RDLENBQUM7SUF2QmEsYUFBUSxHQUF1QjtRQUMzQyxRQUFRLEVBQUUsU0FBUztRQUNuQixXQUFXLEVBQUUsNkNBQTZDO1FBQzFELFNBQVMsRUFBRSxJQUFJLENBQUMsS0FBSyxDQUFDLE1BQU0sNlBBQUEsa0xBR3pCLElBQUE7UUFDSCxrQkFBa0IsRUFBRSxFQUFFO1FBQ3RCLE9BQU8sRUFBRSxFQUFFO1FBQ1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0FBQyxFQUFFLENBQUMsRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUMsQ0FBQztnQkFDaEgsS0FBSyxHQUFHLEtBQUksQ0FBQyxvQkFBb0IsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7YUFDOUM7WUFFRCxLQUFLLEdBQUcsS0FBSSxDQUFDLDBCQUEwQixDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQztZQUNuRCxPQUFPLEtBQUssRUFBRTtnQkFDWixLQUFJLENBQUMsVUFBVSxDQUFDLEtBQUksQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLDZCQUE2QixDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxFQUFFLElBQUksQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO2dCQUNoSCxLQUFLLEdBQUcsS0FBSSxDQUFDLDBCQUEwQixDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQzthQUNwRDtRQUNILENBQUMsQ0FBQyxDQUFDO0lBQ0wsQ0FBQztJQUNILGtDQUFDO0FBQUQsQ0FwREEsQUFvREMsQ0FwRHlDLElBQUksQ0FBQyxVQUFVLEdBb0R4RCIsImZpbGUiOiJydWxlcy90ZXJOb0lycmVndWxhcldoaXRlc3BhY2VSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoMixedSpacesAndTabsRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoMixedSpacesAndTabsRule.js new file mode 100644 index 000000000..9a7f3b74f --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoMixedSpacesAndTabsRule.js @@ -0,0 +1,115 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var tsutils_1 = require("tsutils"); +var RULE_NAME = 'ter-no-mixed-spaces-and-tabs'; +var OPTION_USE_TABS = 'tabs'; +var OPTION_USE_SPACES = 'spaces'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.FAILURE_STRING = function (expected, mixed) { + if (!mixed) { + return expected + " indentation expected"; + } + return "indentation has mixed tabs and spaces"; + }; + Rule.prototype.formatOptions = function (ruleArguments) { + var tabs = undefined; + var smartTabs = false; + var options = ruleArguments[0]; + if (options !== undefined) { + tabs = options.type === OPTION_USE_TABS ? true : options.type === OPTION_USE_SPACES ? false : undefined; + smartTabs = options.smartTabs; + } + return { + tabs: tabs, + smartTabs: smartTabs + }; + }; + Rule.prototype.apply = function (sourceFile) { + var options = this.formatOptions(this.ruleArguments); + return this.applyWithFunction(sourceFile, walk, options); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'Enforces indentation with unmixed tabs or spaces.', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Using only one of tabs or spaces for indentation leads to more consistent editor behavior,\n cleaner diffs in version control, and easier programmatic manipulation."], ["\n Using only one of tabs or spaces for indentation leads to more consistent editor behavior,\n cleaner diffs in version control, and easier programmatic manipulation."]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule takes an object argument with an optional `type` property which can be set to:\n\n * `", "` enforces consistent spaces for indentation.\n * `", "` enforces consistent tabs for indentation.\n\n If the above is not provided, the rule will enforce either all tabs or all spaces on each\n line, although different lines may differ between tabs and spaces.\n\n Optionally, a `smartTabs` boolean property can be specified. If set to true, smart tabs\n allow mixing tabs and spaces if tabs are used for indentation and spaces for alignment, eg.\n\n function main() {\n // --->const a = 1,\n // --->......b = 2;\n\n const a = 1,\n b = 2;\n }\n "], ["\n This rule takes an object argument with an optional \\`type\\` property which can be set to:\n\n * \\`", "\\` enforces consistent spaces for indentation.\n * \\`", "\\` enforces consistent tabs for indentation.\n\n If the above is not provided, the rule will enforce either all tabs or all spaces on each\n line, although different lines may differ between tabs and spaces.\n\n Optionally, a \\`smartTabs\\` boolean property can be specified. If set to true, smart tabs\n allow mixing tabs and spaces if tabs are used for indentation and spaces for alignment, eg.\n\n function main() {\n // --->const a = 1,\n // --->......b = 2;\n\n const a = 1,\n b = 2;\n }\n "])), OPTION_USE_SPACES, OPTION_USE_TABS), + options: { + type: 'array', + items: [ + { + type: 'object', + properties: { + type: { + type: 'string', + enum: [OPTION_USE_TABS, OPTION_USE_SPACES] + }, + smartTabs: { + type: 'boolean' + } + }, + additionalProperties: false + } + ], + minLength: 0, + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": { \"type\": \"", "\" } ]\n "], ["\n \"", "\": { \"type\": \"", "\" } ]\n "])), RULE_NAME, OPTION_USE_TABS), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": { \"type\": \"", "\" } ]\n "], ["\n \"", "\": { \"type\": \"", "\" } ]\n "])), RULE_NAME, OPTION_USE_SPACES), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": { \"smartTabs\": true } ]\n "], ["\n \"", "\": { \"smartTabs\": true } ]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": { \"type\": \"", "\", \"smartTabs\": true } ]\n "], ["\n \"", "\": { \"type\": \"", "\", \"smartTabs\": true } ]\n "])), RULE_NAME, OPTION_USE_TABS) + ], + type: 'maintainability', + typescriptOnly: false + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +function walk(ctx) { + var sourceFile = ctx.sourceFile, _a = ctx.options, tabs = _a.tabs, smartTabs = _a.smartTabs; + var regExp; + if (tabs === true) { + regExp = new RegExp(" " + (smartTabs ? '\\t' : '')); + } + else if (tabs === false) { + regExp = new RegExp("\\t"); + } + else { + regExp = new RegExp((smartTabs ? '' : '\\t |') + " \\t"); + } + var failure = Rule.FAILURE_STRING(tabs ? 'tab' : 'space', typeof tabs === 'undefined'); + for (var _i = 0, _b = tsutils_1.getLineRanges(sourceFile); _i < _b.length; _i++) { + var _c = _b[_i], pos = _c.pos, contentLength = _c.contentLength; + if (contentLength === 0) { + continue; + } + var line = sourceFile.text.substr(pos, contentLength); + var indentEnd = line.search(/\S/); + if (indentEnd === 0) { + continue; + } + if (indentEnd === -1) { + indentEnd = contentLength; + } + var indentSpace = line.slice(0, indentEnd); + if (!regExp.test(indentSpace)) { + continue; + } + var token = tsutils_1.getTokenAtPosition(sourceFile, pos); + if (token.kind !== ts.SyntaxKind.JsxText && + (pos >= token.getStart(sourceFile) || tsutils_1.isPositionInComment(sourceFile, pos, token))) { + continue; + } + ctx.addFailureAt(pos, indentEnd, failure); + } +} +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck5vTWl4ZWRTcGFjZXNBbmRUYWJzUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBQy9CLG1DQUFpRjtBQUVqRixJQUFNLFNBQVMsR0FBRyw4QkFBOEIsQ0FBQztBQU1qRCxJQUFNLGVBQWUsR0FBRyxNQUFNLENBQUM7QUFDL0IsSUFBTSxpQkFBaUIsR0FBRyxRQUFRLENBQUM7QUFFbkM7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQTZGQSxDQUFDO0lBNUJlLG1CQUFjLEdBQTVCLFVBQTZCLFFBQWdCLEVBQUUsS0FBZTtRQUM1RCxJQUFJLENBQUMsS0FB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pzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoProtoRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoProtoRule.js new file mode 100644 index 000000000..b19210046 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoProtoRule.js @@ -0,0 +1,46 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-proto'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + return this.applyWithFunction(sourceFile, walk); + }; + Rule.FAILURE_STRING = 'The `__proto__` property is deprecated.'; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'disallow the use of `__proto__` property', + rationale: '`__proto__` property has been deprecated as of ECMAScript 3.1 and shouldn’t be used in the code. Use getPrototypeOf method instead.', + optionsDescription: '', + options: {}, + optionExamples: [Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n \"", "\": true\n "], ["\n \"", "\": true\n "])), RULE_NAME)], + typescriptOnly: false, + type: 'functionality' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +function walk(ctx) { + return ts.forEachChild(ctx.sourceFile, cb); + function cb(node) { + if ((node.kind === ts.SyntaxKind.Identifier && + node.text === '__proto__' && + node.parent && + node.parent.kind === ts.SyntaxKind.PropertyAccessExpression) || + (node.kind === ts.SyntaxKind.StringLiteral && + node.text === '__proto__')) { + return ctx.addFailureAtNode(node, Rule.FAILURE_STRING); + } + return ts.forEachChild(node, cb); + } +} +var templateObject_1; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1b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RUFBRSxDQUFDLFVBQVUsQ0FBQyxVQUFVO1lBQ3BDLElBQXNCLENBQUMsSUFBSSxLQUFLLFdBQVc7WUFDNUMsSUFBSSxDQUFDLE1BQU07WUFDWCxJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLHdCQUF3QixDQUFDO1lBQzlELENBQUMsSUFBSSxDQUFDLElBQUksS0FBSyxFQUFFLENBQUMsVUFBVSxDQUFDLGFBQWE7Z0JBQ3ZDLElBQXlCLENBQUMsSUFBSSxLQUFLLFdBQVcsQ0FBQyxFQUNsRDtZQUNBLE9BQU8sR0FBRyxDQUFDLGdCQUFnQixDQUFDLElBQUksRUFBRSxJQUFJLENBQUMsY0FBYyxDQUFDLENBQUM7U0FDeEQ7UUFDRCxPQUFPLEVBQUUsQ0FBQyxZQUFZLENBQUMsSUFBSSxFQUFFLEVBQUUsQ0FBQyxDQUFDO0lBQ25DLENBQUM7QUFDSCxDQUFDIiwiZmlsZSI6InJ1bGVzL3Rlck5vUHJvdG9SdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoScriptUrlRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoScriptUrlRule.js new file mode 100644 index 000000000..6602f7519 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoScriptUrlRule.js @@ -0,0 +1,48 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-script-url'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + return this.applyWithFunction(sourceFile, walk); + }; + Rule.FAILURE_STRING = 'Script URL is a form of eval.'; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'disallow use of `javascript:` urls.', + rationale: 'Using `javascript:` URLs is considered by some as a form of `eval`. ' + + 'Code passed in `javascript:` URLs has to be parsed and evaluated by the browser ' + + 'in the same way that eval is processed.', + optionsDescription: '', + options: {}, + optionExamples: [ + Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n \"", "\": true\n "], ["\n \"", "\": true\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'functionality' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +function walk(ctx) { + return ts.forEachChild(ctx.sourceFile, cb); + function cb(node) { + if (node.kind === ts.SyntaxKind.StringLiteral) { + var value = node.text.toLowerCase(); + if (value.indexOf('javascript:') === 0) { + return ctx.addFailureAtNode(node, Rule.FAILURE_STRING); + } + } + return ts.forEachChild(node, cb); + } +} +var templateObject_1; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck5vU2NyaXB0VXJsUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFJQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLG1CQUFtQixDQUFDO0FBRXRDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUF5QkEsQ0FBQztJQUhRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxVQUFVLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDbEQsQ0FBQztJQXZCYSxtQkFBYyxHQUFHLCtCQUErQixDQUFDO0lBRWpELGFBQVEsR0FBdUI7UUFDM0MsUUFBUSxFQUFFLFNBQVM7UUFDbkIsTUFBTSxFQUFFLEtBQUs7UUFDYixXQUFXLEVBQUUscUNBQXFDO1FBQ2xELFNBQVMsRUFDUCx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XJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoSelfCompareRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoSelfCompareRule.js new file mode 100644 index 000000000..565e91d10 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoSelfCompareRule.js @@ -0,0 +1,75 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-self-compare'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + return this.applyWithWalker(new NoSelfCompareWalker(sourceFile, this.ruleName, new Set(this.ruleArguments.map(String)))); + }; + Rule.FAILURE_STRING = 'Comparing to itself is potentially pointless.'; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'disallow comparisons where both sides are exactly the same', + rationale: 'Comparing a variable against itself is usually an error, ' + + 'either a typo or refactoring error. It is confusing to the reader ' + + 'and may potentially introduce a runtime error.', + optionsDescription: '', + options: {}, + optionExamples: [ + Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n \"", "\": true\n "], ["\n \"", "\": true\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'maintainability' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoSelfCompareWalker = (function (_super) { + tslib_1.__extends(NoSelfCompareWalker, _super); + function NoSelfCompareWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoSelfCompareWalker.prototype.isComparisonOperator = function (node) { + var operators = new Set([ + ts.SyntaxKind.EqualsEqualsEqualsToken, + ts.SyntaxKind.EqualsEqualsToken, + ts.SyntaxKind.ExclamationEqualsEqualsToken, + ts.SyntaxKind.ExclamationEqualsToken, + ts.SyntaxKind.GreaterThanToken, + ts.SyntaxKind.LessThanToken, + ts.SyntaxKind.GreaterThanEqualsToken, + ts.SyntaxKind.LessThanEqualsToken + ]); + return operators.has(node.operatorToken.kind); + }; + NoSelfCompareWalker.prototype.hasSameToken = function (left, right) { + return left.kind === right.kind && left.getText() === right.getText(); + }; + NoSelfCompareWalker.prototype.walk = function (sourceFile) { + var _this = this; + var cb = function (node) { + if (ts.isBinaryExpression(node)) { + var nodeExpr = node; + if (_this.isComparisonOperator(nodeExpr) && + _this.hasSameToken(nodeExpr.left, nodeExpr.right)) { + _this.addFailureAt(nodeExpr.operatorToken.getStart(), nodeExpr.operatorToken.getWidth(), Rule.FAILURE_STRING); + } + } + else { + return ts.forEachChild(node, cb); + } + }; + return ts.forEachChild(sourceFile, cb); + }; + return NoSelfCompareWalker; +}(Lint.AbstractWalker)); +var templateObject_1; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck5vU2VsZkNvbXBhcmVSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0IsSUFBTSxTQUFTLEdBQUcscUJBQXFCLENBQUM7QUFFeEM7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQStCQSxDQUFDO0lBVFEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLE9BQU8sSUFBSSxDQUFDLGVBQWUsQ0FDekIsSUFBSSxtQkFBbUIsQ0FDckIsVUFBVSxFQUNWLElBQUksQ0FBQyxRQUFRLEVBQ2IsSUFBSSxHQUFHLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FDeEMsQ0FDRixDQUFDO0lBQ0osQ0FBQztJQTdCYSxtQkFBYyxHQUFHLCtDQUErQyxDQUFDO0lBRWpFLGFBQV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QUM7QUFBRCxDQTNDQSxBQTJDQyxDQTNDaUMsSUFBSSxDQUFDLGNBQWMsR0EyQ3BEIiwiZmlsZSI6InJ1bGVzL3Rlck5vU2VsZkNvbXBhcmVSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoSparseArraysRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoSparseArraysRule.js new file mode 100644 index 000000000..d06e2d549 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoSparseArraysRule.js @@ -0,0 +1,51 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-sparse-arrays'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new NoSparseArraysWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'disallow sparse arrays (recommended)', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Invalid or irregular whitespace causes issues with ECMAScript 5 parsers and also makes code\n harder to debug in a similar nature to mixed tabs and spaces.\n "], ["\n Invalid or irregular whitespace causes issues with ECMAScript 5 parsers and also makes code\n harder to debug in a similar nature to mixed tabs and spaces.\n "]))), + optionsDescription: '', + options: {}, + optionExamples: [ + Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'typescript' + }; + Rule.FAILURE_STRING = 'unexpected comma in middle of array'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var NoSparseArraysWalker = (function (_super) { + tslib_1.__extends(NoSparseArraysWalker, _super); + function NoSparseArraysWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + NoSparseArraysWalker.prototype.visitArrayLiteralExpression = function (node) { + this.validateNoSparseArray(node); + _super.prototype.visitArrayLiteralExpression.call(this, node); + }; + NoSparseArraysWalker.prototype.validateNoSparseArray = function (node) { + var hasEmptySlot = node.elements.some(function (el) { return el.kind === ts.SyntaxKind.OmittedExpression; }); + if (hasEmptySlot) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + }; + return NoSparseArraysWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3Rlck5vU3BhcnNlQXJyYXlzUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CLElBQU0sU0FBUyxHQUFHLHNCQUFzQixDQUFDO0FBRXpDO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUF3QkEsQ0FBQztJQUpRLG9CQUFLLEdBQVosVUFBYSxVQUF5QjtRQUNwQyxJQUFNLE1BQU0sR0FBRyxJQUFJLG9CQUFvQixDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUN2RSxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQXRCYSxhQUFRLEdBQXVCO1FBQzNDLFFBQVEsRUFBRSxTQUFTO1FBQ25CLFdBQVcsRUFBRSxzQ0FBc0M7UUFDbkQsU0FBUyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSw2UEFBQSxrTEFHekIsSUFBQTtRQUNILGtCQUFrQixFQUFFLEVBQUU7UUFDdEIsT0FBTy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dBYWpEIiwiZmlsZSI6InJ1bGVzL3Rlck5vU3BhcnNlQXJyYXlzUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/terNoTabsRule.js b/node_modules/tslint-eslint-rules/dist/rules/terNoTabsRule.js new file mode 100644 index 000000000..a97abcaa7 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terNoTabsRule.js @@ -0,0 +1,43 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-no-tabs'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + return this.applyWithFunction(sourceFile, walk); + }; + Rule.FAILURE_STRING = 'Unexpected tab character.'; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'disallow all tabs', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n This rule looks for tabs anywhere inside a file: code, comments or anything else, and disallows their usage.\n "], ["\n This rule looks for tabs anywhere inside a file: code, comments or anything else, and disallows their usage.\n "]))), + optionsDescription: '', + options: {}, + optionExamples: [ + Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n \"", "\": true\n "], ["\n \"", "\": true\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +function walk(ctx) { + var TAB_REGEX = /\t/; + var lines = ctx.sourceFile.text.split(/\n/g); + lines.forEach(function (line, i) { + var match = TAB_REGEX.exec(line); + if (match) { + ctx.addFailureAt(ctx.sourceFile.getPositionOfLineAndCharacter(i, match.index), 1, Rule.FAILURE_STRING); + } + }); +} +var templateObject_1, templ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VBQVUsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxDQUFDO0lBRS9DLEtBQUssQ0FBQyxPQUFPLENBQUMsVUFBQyxJQUFJLEVBQUUsQ0FBQztRQUNwQixJQUFNLEtBQUssR0FBRyxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ25DLElBQUksS0FBSyxFQUFFO1lBQ1QsR0FBRyxDQUFDLFlBQVksQ0FDZCxHQUFHLENBQUMsVUFBVSxDQUFDLDZCQUE2QixDQUFDLENBQUMsRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLEVBQzVELENBQUMsRUFDRCxJQUFJLENBQUMsY0FBYyxDQUNwQixDQUFDO1NBQ0g7SUFDSCxDQUFDLENBQUMsQ0FBQztBQUNMLENBQUMiLCJmaWxlIjoicnVsZXMvdGVyTm9UYWJzUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/terPaddedBlocksRule.js b/node_modules/tslint-eslint-rules/dist/rules/terPaddedBlocksRule.js new file mode 100644 index 000000000..210e900cc --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terPaddedBlocksRule.js @@ -0,0 +1,229 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var tsutils_1 = require("tsutils"); +var RULE_NAME = 'ter-padded-blocks'; +var OPTION_ALWAYS = 'always'; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.formatOptions = function (ruleArguments) { + var config = ruleArguments[0] || OPTION_ALWAYS; + if (typeof (config) === 'string') { + var always = config === OPTION_ALWAYS; + return { + blocks: always, + classes: always, + switches: always + }; + } + return { + blocks: config['blocks'] && config['blocks'] === OPTION_ALWAYS, + classes: config['classes'] && config['classes'] === OPTION_ALWAYS, + switches: config['switches'] && config['switches'] === OPTION_ALWAYS + }; + }; + Rule.prototype.apply = function (sourceFile) { + var opt = this.formatOptions(this.ruleArguments); + var walker = new RuleWalker(sourceFile, this.ruleName, opt); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'enforces consistent empty line padding within blocks', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Some style guides require block statements to start and end with blank\n lines. The goal is to improve readability by visually separating the\n block content and the surrounding code.\n "], ["\n Some style guides require block statements to start and end with blank\n lines. The goal is to improve readability by visually separating the\n block content and the surrounding code.\n "]))), + optionsDescription: 'This rule has one option, which can be a string option or an object option', + options: { + type: 'array', + items: [ + { + enum: ['always', 'never'] + }, + { + type: 'object', + properties: { + blocks: { + enum: ['always', 'never'] + }, + classes: { + enum: ['always', 'never'] + }, + switches: { + enum: ['always', 'never'] + } + }, + additionalProperties: false + } + ], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"always\"]\n "], ["\n \"", "\": [true, \"always\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, \"never\"]\n "], ["\n \"", "\": [true, \"never\"]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"blocks\": \"always\" }]\n "], ["\n \"", "\": [true, { \"blocks\": \"always\" }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, { \"blocks\": \"never\" }]\n "], ["\n \"", "\": [true, { \"blocks\": \"never\" }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'style' + }; + Rule.FAILURE_STRING = { + always: 'Block must be padded by blank lines.', + never: 'Block must not be padded by blank lines.' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker() { + return _super !== null && _super.apply(this, arguments) || this; + } + RuleWalker.prototype.walk = function (sourceFile) { + var _this = this; + sourceFile.forEachChild(function (node) { return _this.processNode(node); }); + }; + RuleWalker.prototype.processNode = function (node) { + var _this = this; + switch (node.kind) { + case ts.SyntaxKind.Block: + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.CaseBlock: + this.checkPadding(node); + } + node.forEachChild(function (child) { return _this.processNode(child); }); + }; + RuleWalker.prototype.getParts = function (node) { + var openBrace, body, closeBrace; + node.getChildren().forEach(function (child) { + if (child.kind === ts.SyntaxKind.OpenBraceToken) { + openBrace = child; + } + else if (child.kind === ts.SyntaxKind.SyntaxList) { + body = child; + } + else if (child.kind === ts.SyntaxKind.CloseBraceToken) { + closeBrace = child; + } + }); + return { + openBrace: openBrace, + body: body, + closeBrace: closeBrace + }; + }; + RuleWalker.prototype.getPositions = function (node) { + var _a = this.getParts(node), openBrace = _a.openBrace, body = _a.body, closeBrace = _a.closeBrace; + var firstChild = body.getChildAt(0); + var lastChild = body.getChildAt(body.getChildCount() - 1); + var positions = { + openPosition: openBrace.getStart(this.sourceFile), + openLine: this.getLine(openBrace.getStart(this.sourceFile)), + closePosition: closeBrace.getEnd(), + closeLine: this.getLine(closeBrace.getEnd()) + }; + if (firstChild) { + positions.firstChildPosition = firstChild.getStart(this.sourceFile); + positions.firstChildLine = this.getLine(positions.firstChildPosition); + } + if (lastChild) { + positions.lastChildPosition = lastChild.getEnd(); + positions.lastChildLine = this.getLine(positions.lastChildPosition); + } + return positions; + }; + RuleWalker.prototype.checkPadding = function (node) { + var _this = this; + var paddingAllowed = this.options.blocks; + if (node.kind === ts.SyntaxKind.ClassDeclaration) { + paddingAllowed = this.options.classes; + } + else if (node.parent && node.parent.kind === ts.SyntaxKind.SwitchStatement) { + paddingAllowed = this.options.switches; + } + if (paddingAllowed === undefined) { + return; + } + var positions = this.getPositions(node); + var openBraceReplacement = { + from: positions.openPosition + 1, + to: positions.firstChildPosition || positions.closePosition + }; + var closeBraceReplacement = { + from: positions.lastChildPosition || positions.openPosition, + to: positions.closePosition - 1 + }; + var comments = []; + tsutils_1.forEachComment(node, function (_fullText, comment) { + if (comment.pos > positions.openPosition && comment.pos < positions.closePosition) { + var commentLineEnd = _this.getLine(comment.end); + if (commentLineEnd > positions.openLine) { + comments.push(comment); + } + else if (commentLineEnd === positions.openLine) { + openBraceReplacement.from = comment.end; + } + } + }); + if (comments.length > 0) { + var firstCommentLine = this.getLine(comments[0].pos); + var lastCommentLine = this.getLine(comments[comments.length - 1].end); + if (!positions.firstChildLine || firstCommentLine < positions.firstChildLine) { + positions.firstChildLine = firstCommentLine; + positions.firstChildPosition = comments[0].pos; + openBraceReplacement.to = positions.firstChildPosition; + } + if (!positions.lastChildLine || lastCommentLine >= positions.lastChildLine) { + positions.lastChildLine = lastCommentLine; + positions.lastChildPosition = comments[comments.length - 1].end; + closeBraceReplacement.from = positions.lastChildPosition; + } + } + if (this.getLine(openBraceReplacement.from) !== this.getLine(openBraceReplacement.to)) { + openBraceReplacement.to = this.getPosition(this.getLine(openBraceReplacement.to)); + } + if (this.getLine(closeBraceReplacement.from) !== this.getLine(closeBraceReplacement.to)) { + closeBraceReplacement.to = this.getPosition(this.getLine(closeBraceReplacement.to)); + } + if (positions.firstChildLine === undefined && positions.lastChildLine === undefined) { + return; + } + var openPadded = false; + if (positions.firstChildLine !== undefined) { + openPadded = positions.firstChildLine - positions.openLine > 1; + } + else { + openPadded = positions.closeLine - positions.openLine > 1; + } + var closePadded = false; + if (positions.lastChildLine !== undefined) { + closePadded = positions.closeLine - positions.lastChildLine > 1; + } + else { + closePadded = positions.closeLine - positions.openLine > 1; + } + if (paddingAllowed ? !openPadded : openPadded) { + var openFix = Lint.Replacement.replaceFromTo(openBraceReplacement.from, openBraceReplacement.to, paddingAllowed ? '\n\n' : '\n'); + this.addFailure(positions.openPosition, positions.openPosition + 1, paddingAllowed ? Rule.FAILURE_STRING.always : Rule.FAILURE_STRING.never, openFix); + } + if (paddingAllowed ? !closePadded : closePadded) { + var closeFix = Lint.Replacement.replaceFromTo(closeBraceReplacement.from, closeBraceReplacement.to, paddingAllowed ? '\n\n' : '\n'); + this.addFailure(positions.closePosition - 1, positions.closePosition, paddingAllowed ? Rule.FAILURE_STRING.always : Rule.FAILURE_STRING.never, closeFix); + } + }; + RuleWalker.prototype.getLine = function (pos) { + return this.sourceFile.getLineAndCharacterOfPosition(pos).line; + }; + RuleWalker.prototype.getPosition = function (line) { + return this.sourceFile.getPositionOfLineAndCharacter(line, 0); + }; + return RuleWalker; +}(Lint.AbstractWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlclBhZGRlZEJsb2Nrc1J1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsK0JBQWlDO0FBQ2pDLDZCQUErQjtBQUUvQixtQ0FBeUM7QUFFekMsSUFBTSxTQUFTLEdBQUcsbUJBQW1CLENBQUM7QUFDdEMsSUFBTSxhQUFhLEdBQUcsUUFBUSxDQUFDO0FBTy9CO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFxRkEsQ0FBQztJQXpCUyw0QkFBYSxHQUFyQixVQUFzQixhQUFvQjtRQUN4QyxJQUFNLE1BQU0sR0FBRyxhQUFhLENBQUMsQ0FBQyxDQUFDLElBQUksYUFBYSxDQUFDO1FBRWpELElBQUksT0FBTS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ixJQUFJLENBQUMsVUFBVSxDQUNiLFNBQVMsQ0FBQyxhQUFhLEdBQUcsQ0FBQyxFQUMzQixTQUFTLENBQUMsYUFBYSxFQUN2QixjQUFjLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsY0FBYyxDQUFDLEtBQUssRUFDdkUsUUFBUSxDQUNULENBQUM7U0FDSDtJQUNILENBQUM7SUFFTyw0QkFBTyxHQUFmLFVBQWdCLEdBQVc7UUFDekIsT0FBTyxJQUFJLENBQUMsVUFBVSxDQUFDLDZCQUE2QixDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQztJQUNqRSxDQUFDO0lBRU8sZ0NBQVcsR0FBbkIsVUFBb0IsSUFBWTtRQUM5QixPQUFPLElBQUksQ0FBQyxVQUFVLENBQUMsNkJBQTZCLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQ2hFLENBQUM7SUFDSCxpQkFBQztBQUFELENBOUtBLEFBOEtDLENBOUt3QixJQUFJLENBQUMsY0FBYyxHQThLM0MiLCJmaWxlIjoicnVsZXMvdGVyUGFkZGVkQmxvY2tzUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/terPreferArrowCallbackRule.js b/node_modules/tslint-eslint-rules/dist/rules/terPreferArrowCallbackRule.js new file mode 100644 index 000000000..eda4c1dea --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/terPreferArrowCallbackRule.js @@ -0,0 +1,188 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var RULE_NAME = 'ter-prefer-arrow-callback'; +var OPTIONS; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new RuleWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.metadata = { + ruleName: RULE_NAME, + description: 'require arrow functions as callbacks', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n Arrow functions are suited to callbacks, because:\n\n * `this` keywords in arrow functions bind to the upper scope\u2019s.\n * The notation of the arrow function is shorter than function expression\u2019s.\n "], ["\n Arrow functions are suited to callbacks, because:\n\n * \\`this\\` keywords in arrow functions bind to the upper scope\u2019s.\n * The notation of the arrow function is shorter than function expression\u2019s.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule takes one optional argument, an object which is an options object. This object\n may specify the following properties:\n\n * `\"allowNamedFunctions\"` (default false) When set to `true`, the rule doesn't warn on\n named functions used as callback.\n * `\"allowUnboundThis\"` (default true) When set to `false`, this option allows the use of\n `this` without restriction and checks for dynamically assigned\n `this` values such as when using `Array.prototype.map` with a\n `context` argument. Normally, the rule will flag the use of this\n whenever a function does not use `bind()` to specify the value of\n `this` constantly.\n "], ["\n This rule takes one optional argument, an object which is an options object. This object\n may specify the following properties:\n\n * \\`\"allowNamedFunctions\"\\` (default false) When set to \\`true\\`, the rule doesn't warn on\n named functions used as callback.\n * \\`\"allowUnboundThis\"\\` (default true) When set to \\`false\\`, this option allows the use of\n \\`this\\` without restriction and checks for dynamically assigned\n \\`this\\` values such as when using \\`Array.prototype.map\\` with a\n \\`context\\` argument. Normally, the rule will flag the use of this\n whenever a function does not use \\`bind()\\` to specify the value of\n \\`this\\` constantly.\n "]))), + options: { + type: 'array', + items: [{ + type: 'object', + properties: { + allowNamedFunctions: { + type: 'boolean' + }, + allowUnboundThis: { + type: 'boolean' + } + }, + additionalProperties: false + }], + maxLength: 1 + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, {\n \"allowNamedFunctions\": true\n }]\n "], ["\n \"", "\": [true, {\n \"allowNamedFunctions\": true\n }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, {\n \"allowUnboundThis\": false\n }]\n "], ["\n \"", "\": [true, {\n \"allowUnboundThis\": false\n }]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, {\n \"allowNamedFunctions\": true,\n \"allowUnboundThis\": false\n }]\n "], ["\n \"", "\": [true, {\n \"allowNamedFunctions\": true,\n \"allowUnboundThis\": false\n }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'typescript' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +function checkMetaProperty(node, name, prop) { + return node.parent && node.parent.getFirstToken().getText() === name && node.name.text === prop; +} +function getCallbackInfo(func) { + var retv = { isCallback: false, isLexicalThis: false }; + var node = func; + var parent = node.parent; + while (node && parent) { + switch (parent.kind) { + case ts.SyntaxKind.BinaryExpression: + case ts.SyntaxKind.ConditionalExpression: + break; + case ts.SyntaxKind.PropertyAccessExpression: + if (parent.name.kind === ts.SyntaxKind.Identifier && + parent.name.text === 'bind' && + parent.parent && + parent.parent.kind === ts.SyntaxKind.CallExpression && + parent.parent.expression === parent) { + retv.isLexicalThis = (parent.parent.arguments.length === 1 && + parent.parent.arguments[0].kind === ts.SyntaxKind.ThisKeyword); + node = parent; + parent = parent.parent; + } + else { + return retv; + } + break; + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.NewExpression: + if (parent.expression !== node) { + retv.isCallback = true; + } + return retv; + default: + return retv; + } + node = parent; + parent = node.parent; + } + throw new Error('unreachable'); +} +var RuleWalker = (function (_super) { + tslib_1.__extends(RuleWalker, _super); + function RuleWalker(sourceFile, options) { + var _this = _super.call(this, sourceFile, options) || this; + _this.stack = []; + OPTIONS = { + allowUnboundThis: true, + allowNamedFunctions: null + }; + var userOptions = _this.getOptions()[0]; + if (userOptions) { + OPTIONS.allowUnboundThis = userOptions.allowUnboundThis !== false; + OPTIONS.allowNamedFunctions = userOptions.allowNamedFunctions; + } + return _this; + } + RuleWalker.prototype.enterScope = function (functionName) { + this.stack.push({ + functionName: functionName, + isRecursive: false, + hasThis: false, + hasSuper: false, + hasMeta: false, + hasArguments: false + }); + }; + RuleWalker.prototype.exitScope = function () { + return this.stack.pop(); + }; + RuleWalker.prototype.exitFunctionExpression = function (node) { + var scopeInfo = this.exitScope(); + if (node.asteriskToken) { + return; + } + if (node.name && node.name.text) { + if (OPTIONS.allowNamedFunctions || scopeInfo.isRecursive) { + return; + } + } + var params = node.parameters.map(function (x) { return x.name.getText(); }); + var argumentsIsParam = params.indexOf('arguments') !== -1; + if (!argumentsIsParam && scopeInfo.hasArguments) { + return; + } + var callbackInfo = getCallbackInfo(node); + if (callbackInfo.isCallback && + (!OPTIONS.allowUnboundThis || !scopeInfo.hasThis || callbackInfo.isLexicalThis) && + !scopeInfo.hasSuper && + !scopeInfo.hasMeta) { + var failure = this.createFailure(node.getStart(), node.getWidth(), 'Unexpected function expression.'); + this.addFailure(failure); + } + }; + RuleWalker.prototype.visitSourceFile = function (node) { + this.stack = []; + _super.prototype.visitSourceFile.call(this, node); + }; + RuleWalker.prototype.visitFunctionDeclaration = function (node) { + this.enterScope(); + _super.prototype.visitFunctionDeclaration.call(this, node); + this.exitScope(); + }; + RuleWalker.prototype.visitFunctionExpression = function (node) { + this.enterScope(node.name ? node.name.text : undefined); + _super.prototype.visitFunctionExpression.call(this, node); + this.exitFunctionExpression(node); + }; + RuleWalker.prototype.visitNode = function (node) { + var info = this.stack[this.stack.length - 1]; + if (info && node.parent && node.parent.kind !== ts.SyntaxKind.FunctionExpression) { + if (node.kind === ts.SyntaxKind.ThisKeyword) { + info.hasThis = true; + } + else if (node.kind === ts.SyntaxKind.SuperKeyword) { + info.hasSuper = true; + } + else if (node.kind === ts.SyntaxKind.Identifier) { + var text = node.text; + if (text === 'arguments') { + info.hasArguments = true; + } + else if (text === info.functionName) { + info.isRecursive = true; + } + } + else if ((node.kind === ts.SyntaxKind.PropertyAccessExpression || + node.kind === ts.SyntaxKind.MetaProperty) && + checkMetaProperty(node, 'new', 'target')) { + info.hasMeta = true; + } + } + _super.prototype.visitNode.call(this, node); + }; + return RuleWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3RlclByZWZlckFycm93Q2FsbGJhY2tSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQU1BLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFFL0IsSUFBTSxTQUFTLEdBQUcsMkJBQTJCLENBQUM7QUFDOUMsSUFBSSxPQUFZLENBQUM7QUFFakI7SUFBMEIsZ0NBQXVCO0lBQWpEOztJQW9FQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQU0sTUFBTSxHQUFHLElBQUksVUFBVSxDQUFDLFVBQVUsRUFBRSxJQUFJLENBQUMsVUFBVSxFQUFFLENBQUMsQ0FBQztRQUM3RCxPQUFPLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLENBQUM7SUFDdEMsQ0FBQztJQWxFYSxhQUFRLEdBQXVCO1FBQzNDLFFBQVEsRUFBRSxTQUFTO1FBQ25CLFdBQVcsRUFBRSxzQ0FBc0M7UUFDbkQsU0FBUyxFQUFFLElBQUksQ0FBQyxLQUFLLENBQUMsTUFBTSxvVEFBQSw2T0F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QzFDLElBQUksSUFBSSxLQUFLLFdBQVcsRUFBRTtvQkFDeEIsSUFBSSxDQUFDLFlBQVksR0FBRyxJQUFJLENBQUM7aUJBQzFCO3FCQUFNLElBQUksSUFBSSxLQUFLLElBQUksQ0FBQyxZQUFZLEVBQUU7b0JBQ3JDLElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxDQUFDO2lCQUN6QjthQUNGO2lCQUFNLElBQ0wsQ0FDRSxJQUFJLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxVQUFVLENBQUMsd0JBQXdCO2dCQUNwRCxJQUFJLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxVQUFVLENBQUMsWUFBWSxDQUN6QztnQkFDRCxpQkFBaUIsQ0FBQyxJQUFtQyxFQUFFLEtBQUssRUFBRSxRQUFRLENBQUMsRUFDdkU7Z0JBQ0EsSUFBSSxDQUFDLE9BQU8sR0FBRyxJQUFJLENBQUM7YUFDckI7U0FDRjtRQUNELGlCQUFNLFNBQVMsWUFBQyxJQUFJLENBQUMsQ0FBQztJQUN4QixDQUFDO0lBQ0gsaUJBQUM7QUFBRCxDQXhIQSxBQXdIQyxDQXhId0IsSUFBSSxDQUFDLFVBQVUsR0F3SHZDIiwiZmlsZSI6InJ1bGVzL3RlclByZWZlckFycm93Q2FsbGJhY2tSdWxlLmpzIiwic291cmNlUm9vdCI6Ii9Vc2Vycy9qbWxvcGV6L3RzbGludC1lc2xpbnQtcnVsZXMvc3JjIn0= diff --git a/node_modules/tslint-eslint-rules/dist/rules/validJsdocRule.js b/node_modules/tslint-eslint-rules/dist/rules/validJsdocRule.js new file mode 100644 index 000000000..d57e8962a --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/validJsdocRule.js @@ -0,0 +1,336 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var doctrine = require("doctrine"); +var RULE_NAME = 'valid-jsdoc'; +var OPTIONS; +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var opts = this.getOptions().ruleArguments; + OPTIONS = { + prefer: {}, + requireReturn: true, + requireParamType: true, + requireReturnType: true, + requireParamDescription: true, + requireReturnDescription: true, + matchDescription: '' + }; + if (opts && opts.length > 0) { + if (opts[0].prefer) { + OPTIONS.prefer = opts[0].prefer; + } + OPTIONS.requireReturn = opts[0].requireReturn !== false; + OPTIONS.requireParamType = opts[0].requireParamType !== false; + OPTIONS.requireReturnType = opts[0].requireReturnType !== false; + OPTIONS.requireParamDescription = opts[0].requireParamDescription !== false; + OPTIONS.requireReturnDescription = opts[0].requireReturnDescription !== false; + OPTIONS.matchDescription = opts[0].matchDescription; + } + var walker = new ValidJsdocWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = { + missingBrace: 'JSDoc type missing brace', + syntaxError: 'JSDoc syntax error', + missingParameterType: function (name) { return "missing JSDoc parameter type for '" + name + "'"; }, + missingParameterDescription: function (name) { return "missing JSDoc parameter description for '" + name + "'"; }, + duplicateParameter: function (name) { return "duplicate JSDoc parameter '" + name + "'"; }, + unexpectedTag: function (title) { return "unexpected @" + title + " tag; function has no return statement"; }, + missingReturnType: 'missing JSDoc return type', + missingReturnDescription: 'missing JSDoc return description', + prefer: function (name) { return "use @" + name + " instead"; }, + missingReturn: function (param) { return "missing JSDoc @" + (param || 'returns') + " for function"; }, + wrongParam: function (expected, actual) { return "expected JSDoc for '" + expected + "' but found '" + actual + "'"; }, + missingParam: function (name) { return "missing JSDoc for parameter '" + name + "'"; }, + wrongDescription: 'JSDoc description does not satisfy the regex pattern', + invalidRegexDescription: function (error) { return "configured matchDescription is an invalid RegExp. Error: " + error; } + }; + Rule.metadata = { + ruleName: RULE_NAME, + hasFix: false, + description: 'enforce valid JSDoc comments', + rationale: Lint.Utils.dedent(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n [JSDoc](http://usejsdoc.org/) generates application programming interface (API) documentation\n from specially-formatted comments in JavaScript code. So does [typedoc](http://typedoc.org/).\n\n If comments are invalid because of typing mistakes, then documentation will be incomplete.\n\n If comments are inconsistent because they are not updated when function definitions are\n modified, then readers might become confused.\n "], ["\n [JSDoc](http://usejsdoc.org/) generates application programming interface (API) documentation\n from specially-formatted comments in JavaScript code. So does [typedoc](http://typedoc.org/).\n\n If comments are invalid because of typing mistakes, then documentation will be incomplete.\n\n If comments are inconsistent because they are not updated when function definitions are\n modified, then readers might become confused.\n "]))), + optionsDescription: Lint.Utils.dedent(templateObject_2 || (templateObject_2 = tslib_1.__makeTemplateObject(["\n This rule has an object option:\n\n * `\"prefer\"` enforces consistent documentation tags specified by an object whose properties\n mean instead of key use value (for example, `\"return\": \"returns\"` means\n instead of `@return` use `@returns`)\n * `\"preferType\"` enforces consistent type strings specified by an object whose properties\n mean instead of key use value (for example, `\"object\": \"Object\"` means\n instead of `object` use `Object`)\n * `\"requireReturn\"` requires a return tag:\n * `true` (default) *even if* the function or method does not have a return statement\n (this option value does not apply to constructors)\n * `false` *if and only if* the function or method has a return statement (this option\n value does apply to constructors)\n * `\"requireParamType\"`: `false` allows missing type in param tags\n * `\"requireReturnType\"`: `false` allows missing type in return tags\n * `\"matchDescription\"` specifies (as a string) a regular expression to match the description\n in each JSDoc comment (for example, `\".+\"` requires a description;\n this option does not apply to descriptions in parameter or return\n tags)\n * `\"requireParamDescription\"`: `false` allows missing description in parameter tags\n * `\"requireReturnDescription\"`: `false` allows missing description in return tags\n "], ["\n This rule has an object option:\n\n * \\`\"prefer\"\\` enforces consistent documentation tags specified by an object whose properties\n mean instead of key use value (for example, \\`\"return\": \"returns\"\\` means\n instead of \\`@return\\` use \\`@returns\\`)\n * \\`\"preferType\"\\` enforces consistent type strings specified by an object whose properties\n mean instead of key use value (for example, \\`\"object\": \"Object\"\\` means\n instead of \\`object\\` use \\`Object\\`)\n * \\`\"requireReturn\"\\` requires a return tag:\n * \\`true\\` (default) *even if* the function or method does not have a return statement\n (this option value does not apply to constructors)\n * \\`false\\` *if and only if* the function or method has a return statement (this option\n value does apply to constructors)\n * \\`\"requireParamType\"\\`: \\`false\\` allows missing type in param tags\n * \\`\"requireReturnType\"\\`: \\`false\\` allows missing type in return tags\n * \\`\"matchDescription\"\\` specifies (as a string) a regular expression to match the description\n in each JSDoc comment (for example, \\`\".+\"\\` requires a description;\n this option does not apply to descriptions in parameter or return\n tags)\n * \\`\"requireParamDescription\"\\`: \\`false\\` allows missing description in parameter tags\n * \\`\"requireReturnDescription\"\\`: \\`false\\` allows missing description in return tags\n "]))), + options: { + type: 'object', + properties: { + prefer: { + type: 'object', + additionalProperties: { + type: 'string' + } + }, + preferType: { + type: 'object', + additionalProperties: { + type: 'string' + } + }, + requireReturn: { + type: 'boolean' + }, + requireParamDescription: { + type: 'boolean' + }, + requireReturnDescription: { + type: 'boolean' + }, + matchDescription: { + type: 'string' + }, + requireParamType: { + type: 'boolean' + }, + requireReturnType: { + type: 'boolean' + } + }, + additionalProperties: false + }, + optionExamples: [ + Lint.Utils.dedent(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n \"", "\": [true]\n "], ["\n \"", "\": [true]\n "])), RULE_NAME), + Lint.Utils.dedent(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n \"", "\": [true, {\n \"prefer\": {\n \"return\": \"returns\"\n },\n \"requireReturn\": false,\n \"requireParamDescription\": true,\n \"requireReturnDescription\": true,\n \"matchDescription\": \"^[A-Z][A-Za-z0-9\\\\s]*[.]$\"\n }]\n "], ["\n \"", "\": [true, {\n \"prefer\": {\n \"return\": \"returns\"\n },\n \"requireReturn\": false,\n \"requireParamDescription\": true,\n \"requireReturnDescription\": true,\n \"matchDescription\": \"^[A-Z][A-Za-z0-9\\\\\\\\s]*[.]$\"\n }]\n "])), RULE_NAME) + ], + typescriptOnly: false, + type: 'maintainability' + }; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var ValidJsdocWalker = (function (_super) { + tslib_1.__extends(ValidJsdocWalker, _super); + function ValidJsdocWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.fns = []; + return _this; + } + ValidJsdocWalker.prototype.visitSourceFile = function (node) { + _super.prototype.visitSourceFile.call(this, node); + }; + ValidJsdocWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.ClassExpression) { + this.visitClassExpression(node); + } + else { + _super.prototype.visitNode.call(this, node); + } + }; + ValidJsdocWalker.prototype.visitArrowFunction = function (node) { + this.startFunction(node); + _super.prototype.visitArrowFunction.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitFunctionExpression = function (node) { + this.startFunction(node); + _super.prototype.visitFunctionExpression.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitFunctionDeclaration = function (node) { + this.startFunction(node); + _super.prototype.visitFunctionDeclaration.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitClassExpression = function (node) { + this.startFunction(node); + _super.prototype.visitClassExpression.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitClassDeclaration = function (node) { + this.startFunction(node); + _super.prototype.visitClassDeclaration.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitMethodDeclaration = function (node) { + this.startFunction(node); + _super.prototype.visitMethodDeclaration.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitConstructorDeclaration = function (node) { + this.startFunction(node); + _super.prototype.visitConstructorDeclaration.call(this, node); + this.checkJSDoc(node); + }; + ValidJsdocWalker.prototype.visitReturnStatement = function (node) { + this.addReturn(node); + _super.prototype.visitReturnStatement.call(this, node); + }; + ValidJsdocWalker.prototype.startFunction = function (node) { + var returnPresent = false; + var isVoidOrNever = false; + var returnType; + if (node.kind === ts.SyntaxKind.ArrowFunction && node.body.kind !== ts.SyntaxKind.Block) + returnPresent = true; + if (this.isTypeClass(node)) + returnPresent = true; + returnType = node.type; + if (returnType !== undefined) { + switch (returnType.kind) { + case ts.SyntaxKind.VoidKeyword: + case ts.SyntaxKind.NeverKeyword: + isVoidOrNever = true; + break; + } + } + this.fns.push({ node: node, returnPresent: returnPresent, isVoidOrNever: isVoidOrNever }); + }; + ValidJsdocWalker.prototype.addReturn = function (node) { + var parent = node; + var nodes = this.fns.map(function (fn) { return fn.node; }); + while (parent && nodes.indexOf(parent) === -1) + parent = parent.parent; + if (parent && node.expression) { + this.fns[nodes.indexOf(parent)].returnPresent = true; + } + }; + ValidJsdocWalker.prototype.isTypeClass = function (node) { + return node.kind === ts.SyntaxKind.ClassExpression || node.kind === ts.SyntaxKind.ClassDeclaration; + }; + ValidJsdocWalker.prototype.isValidReturnType = function (tag) { + return tag.type && (tag.type.name === 'void' || tag.type.type === 'UndefinedLiteral'); + }; + ValidJsdocWalker.prototype.getJSDocComment = function (node) { + var ALLOWED_PARENTS = [ + ts.SyntaxKind.BinaryExpression, + ts.SyntaxKind.VariableDeclaration, + ts.SyntaxKind.VariableDeclarationList, + ts.SyntaxKind.VariableStatement + ]; + if (!/^\/\*\*/.test(node.getFullText().trim())) { + if (node.parent && ALLOWED_PARENTS.indexOf(node.parent.kind) !== -1) { + return this.getJSDocComment(node.parent); + } + return {}; + } + var comments = node.getFullText(); + var offset = comments.indexOf('/**'); + comments = comments.substring(offset); + comments = comments.substring(0, comments.indexOf('*/') + 2); + var start = node.pos + offset; + var width = comments.length; + if (!/^\/\*\*/.test(comments) || !/\*\/$/.test(comments)) { + return {}; + } + return { comments: comments, start: start, width: width }; + }; + ValidJsdocWalker.prototype.checkJSDoc = function (node) { + var _this = this; + var _a = this.getJSDocComment(node), comments = _a.comments, start = _a.start, width = _a.width; + if (!comments || start === undefined || width === undefined) + return; + var jsdoc; + try { + jsdoc = doctrine.parse(comments, { + strict: true, + unwrap: true, + sloppy: true + }); + } + catch (e) { + if (/braces/i.test(e.message)) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingBrace)); + } + else { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.syntaxError)); + } + return; + } + var fn = this.fns.filter(function (f) { return node === f.node; })[0]; + var params = {}; + var hasReturns = false; + var hasConstructor = false; + var isOverride = false; + var isAbstract = false; + for (var _i = 0, _b = jsdoc.tags; _i < _b.length; _i++) { + var tag = _b[_i]; + switch (tag.title) { + case 'param': + case 'arg': + case 'argument': + if (!tag.type && OPTIONS.requireParamType) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingParameterType(tag.name))); + } + if (!tag.description && OPTIONS.requireParamDescription) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingParameterDescription(tag.name))); + } + if (params[tag.name]) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.duplicateParameter(tag.name))); + } + else if (tag.name.indexOf('.') === -1) { + params[tag.name] = true; + } + break; + case 'return': + case 'returns': + hasReturns = true; + isAbstract = Lint.hasModifier(fn.node.modifiers, ts.SyntaxKind.AbstractKeyword); + if (!isAbstract && !OPTIONS.requireReturn && !fn.returnPresent && tag.type && tag.type.name !== 'void' && tag.type.name !== 'undefined') { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.unexpectedTag(tag.title))); + } + else { + if (!tag.type && OPTIONS.requireReturnType) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingReturnType)); + } + if (!this.isValidReturnType(tag) && !tag.description && OPTIONS.requireReturnDescription) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingReturnDescription)); + } + } + break; + case 'constructor': + case 'class': + hasConstructor = true; + break; + case 'override': + case 'inheritdoc': + case 'inheritDoc': + isOverride = true; + break; + } + var title = OPTIONS.prefer[tag.title]; + if (OPTIONS.prefer.hasOwnProperty(tag.title) && tag.title !== title) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.prefer(title))); + } + } + if (!isOverride && !hasReturns && !hasConstructor && node.parent && node.parent.kind !== ts.SyntaxKind.GetKeyword && !this.isTypeClass(node)) { + if (OPTIONS.requireReturn || (fn.returnPresent && !fn.isVoidOrNever)) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.missingReturn(OPTIONS.prefer['returns']))); + } + } + var jsdocParams = Object.keys(params); + var parameters = node.parameters; + if (parameters) { + parameters.forEach(function (param, i) { + if (param.name.kind === ts.SyntaxKind.Identifier) { + var name = param.name.text; + if (jsdocParams[i] && name !== jsdocParams[i]) { + _this.addFailure(_this.createFailure(start, width, Rule.FAILURE_STRING.wrongParam(name, jsdocParams[i]))); + } + else if (!params[name] && !isOverride) { + _this.addFailure(_this.createFailure(start, width, Rule.FAILURE_STRING.missingParam(name))); + } + } + }); + } + if (OPTIONS.matchDescription) { + try { + var regex = new RegExp(OPTIONS.matchDescription); + if (!regex.test(jsdoc.description)) { + this.addFailure(this.createFailure(start, width, Rule.FAILURE_STRING.wrongDescription)); + } + } + catch (e) { + this.addFailure(this.createFailure(start, width, e.message)); + } + } + }; + return ValidJsdocWalker; +}(Lint.RuleWalker)); +var templateObject_1, templateObject_2, templateObject_3, templateObject_4; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3ZhbGlkSnNkb2NSdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLCtCQUFpQztBQUNqQyw2QkFBK0I7QUFDL0IsbUNBQXFDO0FBRXJDLElBQU0sU0FBUyxHQUFHLGFBQWEsQ0FBQztBQUNoQyxJQUFJLE9BQVksQ0FBQztBQUVqQjtJQUEwQixnQ0FBdUI7SUFBakQ7O0lBMElBLENBQUM7SUE1QlEsb0JBQUssR0FBWixVQUFhLFVBQXlCO1FBQ3BDLElBQUksSUFBSSxHQUFHLElBQUksQ0FBQyxVQUFVLEVBQUUsQ0FBQyxhQUFhLENBQUM7UUFDM0MsT0FBTyxHQUFH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0gsQ0FBQyxDQUFDLENBQUM7U0FDSjtRQUVELElBQUksT0FBTyxDQUFDLGdCQUFnQixFQUFFO1lBQzVCLElBQUk7Z0JBQ0YsSUFBTSxLQUFLLEdBQUcsSUFBSSxNQUFNLENBQUMsT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBQUM7Z0JBQ25ELElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxXQUFXLENBQUMsRUFBRTtvQkFDbEMsSUFBSSxDQUFDLFVBQVUsQ0FBQyxJQUFJLENBQUMsYUFBYSxDQUFDLEtBQUssRUFBRSxLQUFLLEVBQUUsSUFBSSxDQUFDLGNBQWMsQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUM7aUJBQ3pGO2FBQ0Y7WUFDRCxPQUFPLENBQUMsRUFBRTtnQkFDUixJQUFJLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsS0FBSyxFQUFFLEtBQUssRUFBRSxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQzthQUM5RDtTQUNGO0lBQ0gsQ0FBQztJQUNILHVCQUFDO0FBQUQsQ0F4UUEsQUF3UUMsQ0F4UThCLElBQUksQ0FBQyxVQUFVLEdBd1E3QyIsImZpbGUiOiJydWxlcy92YWxpZEpzZG9jUnVsZS5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/dist/rules/validTypeofRule.js b/node_modules/tslint-eslint-rules/dist/rules/validTypeofRule.js new file mode 100644 index 000000000..73652d52c --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/rules/validTypeofRule.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var tslib_1 = require("tslib"); +var ts = require("typescript"); +var Lint = require("tslint"); +var Rule = (function (_super) { + tslib_1.__extends(Rule, _super); + function Rule() { + return _super !== null && _super.apply(this, arguments) || this; + } + Rule.prototype.apply = function (sourceFile) { + var walker = new ValidTypeofWalker(sourceFile, this.getOptions()); + return this.applyWithWalker(walker); + }; + Rule.FAILURE_STRING = 'invalid typeof comparison value'; + return Rule; +}(Lint.Rules.AbstractRule)); +exports.Rule = Rule; +var ValidTypeofWalker = (function (_super) { + tslib_1.__extends(ValidTypeofWalker, _super); + function ValidTypeofWalker() { + var _this = _super !== null && _super.apply(this, arguments) || this; + _this.VALID_TYPES = ['symbol', 'undefined', 'object', 'boolean', 'number', 'string', 'function']; + _this.OPERATORS = [ts.SyntaxKind.EqualsEqualsToken, ts.SyntaxKind.EqualsEqualsEqualsToken, ts.SyntaxKind.ExclamationEqualsToken, ts.SyntaxKind.ExclamationEqualsEqualsToken]; + return _this; + } + ValidTypeofWalker.prototype.visitNode = function (node) { + if (node.kind === ts.SyntaxKind.TypeOfExpression) { + this.validateTypeOf(node); + } + _super.prototype.visitNode.call(this, node); + }; + ValidTypeofWalker.prototype.validateTypeOf = function (node) { + if (node.parent && node.parent.kind === ts.SyntaxKind.BinaryExpression) { + var parent = node.parent; + if (this.OPERATORS.indexOf(parent.operatorToken.kind) !== -1) { + var sibling = parent.left === node ? parent.right : parent.left; + if (sibling.kind === ts.SyntaxKind.StringLiteral && this.VALID_TYPES.indexOf(sibling.text) === -1) { + this.addFailure(this.createFailure(node.getStart(), node.getWidth(), Rule.FAILURE_STRING)); + } + } + } + }; + return ValidTypeofWalker; +}(Lint.RuleWalker)); + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJ1bGVzL3ZhbGlkVHlwZW9mUnVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwrQkFBaUM7QUFDakMsNkJBQStCO0FBRS9CO0lBQTBCLGdDQUF1QjtJQUFqRDs7SUFPQSxDQUFDO0lBSlEsb0JBQUssR0FBWixVQUFhLF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support/token.js new file mode 100644 index 000000000..16bfb37f2 --- /dev/null +++ b/node_modules/tslint-eslint-rules/dist/support/token.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var ts = require("typescript"); +function isAssignmentToken(token) { + return token.kind >= ts.SyntaxKind.FirstAssignment && token.kind <= ts.SyntaxKind.LastAssignment; +} +exports.isAssignmentToken = isAssignmentToken; + +//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN1cHBvcnQvdG9rZW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwrQkFBaUM7QUFFakMsU0FBZ0IsaUJBQWlCLENBQUMsS0FBYztJQUM5QyxPQUFPLEtBQUssQ0FBQyxJQUFJLElBQUksRUFBRSxDQUFDLFVBQVUsQ0FBQyxlQUFlLElBQUksS0FBSyxDQUFDLElBQUksSUFBSSxFQUFFLENBQUMsVUFBVSxDQUFDLGNBQWMsQ0FBQztBQUNuRyxDQUFDO0FBRkQsOENBRUMiLCJmaWxlIjoic3VwcG9ydC90b2tlbi5qcyIsInNvdXJjZVJvb3QiOiIvVXNlcnMvam1sb3Blei90c2xpbnQtZXNsaW50LXJ1bGVzL3NyYyJ9 diff --git a/node_modules/tslint-eslint-rules/index.js b/node_modules/tslint-eslint-rules/index.js new file mode 100644 index 000000000..9da1de991 --- /dev/null +++ b/node_modules/tslint-eslint-rules/index.js @@ -0,0 +1,5 @@ +// unopinionated extensable tslint configuration +// loads rules for extending packages, but does not enable any +module.exports = { + rulesDirectory: "./dist/rules", +}; diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/.gitattributes b/node_modules/tslint-eslint-rules/node_modules/tslib/.gitattributes new file mode 100644 index 000000000..74f5f4a64 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/.gitattributes @@ -0,0 +1 @@ +*.js linguist-language=TypeScript \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/CopyrightNotice.txt b/node_modules/tslint-eslint-rules/node_modules/tslib/CopyrightNotice.txt new file mode 100644 index 000000000..0f6db1f75 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/CopyrightNotice.txt @@ -0,0 +1,15 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/LICENSE.txt b/node_modules/tslint-eslint-rules/node_modules/tslib/LICENSE.txt new file mode 100644 index 000000000..8746124b2 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/LICENSE.txt @@ -0,0 +1,55 @@ +Apache License + +Version 2.0, January 2004 + +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of this License; and + +You must cause any modified files to carry prominent notices stating that You changed the files; and + +You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + +If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/README.md b/node_modules/tslint-eslint-rules/node_modules/tslib/README.md new file mode 100644 index 000000000..d71a60019 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/README.md @@ -0,0 +1,134 @@ +# tslib + +This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. + +This library is primarily used by the `--importHelpers` flag in TypeScript. +When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: + +```ts +var __assign = (this && this.__assign) || Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; +}; +exports.x = {}; +exports.y = __assign({}, exports.x); + +``` + +will instead be emitted as something like the following: + +```ts +var tslib_1 = require("tslib"); +exports.x = {}; +exports.y = tslib_1.__assign({}, exports.x); +``` + +Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. +For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. + +# Installing + +For the latest stable version, run: + +## npm + +```sh +# TypeScript 2.3.3 or later +npm install --save tslib + +# TypeScript 2.3.2 or earlier +npm install --save tslib@1.6.1 +``` + +## bower + +```sh +# TypeScript 2.3.3 or later +bower install tslib + +# TypeScript 2.3.2 or earlier +bower install tslib@1.6.1 +``` + +## JSPM + +```sh +# TypeScript 2.3.3 or later +jspm install tslib + +# TypeScript 2.3.2 or earlier +jspm install tslib@1.6.1 +``` + +# Usage + +Set the `importHelpers` compiler option on the command line: + +``` +tsc --importHelpers file.ts +``` + +or in your tsconfig.json: + +```json +{ + "compilerOptions": { + "importHelpers": true + } +} +``` + +#### For bower and JSPM users + +You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: + +```json +{ + "compilerOptions": { + "module": "amd", + "importHelpers": true, + "baseUrl": "./", + "paths": { + "tslib" : ["bower_components/tslib/tslib.d.ts"] + } + } +} +``` + +For JSPM users: + +```json +{ + "compilerOptions": { + "module": "system", + "importHelpers": true, + "baseUrl": "./", + "paths": { + "tslib" : ["jspm_packages/npm/tslib@1.9.0/tslib.d.ts"] + } + } +} +``` + + +# Contribute + +There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. + +* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. +* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). +* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). +* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. +* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). +* Read the language specification ([docx](http://go.microsoft.com/fwlink/?LinkId=267121), [pdf](http://go.microsoft.com/fwlink/?LinkId=267238)). + +# Documentation + +* [Quick tutorial](http://www.typescriptlang.org/Tutorial) +* [Programming handbook](http://www.typescriptlang.org/Handbook) +* [Language specification](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md) +* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/bower.json b/node_modules/tslint-eslint-rules/node_modules/tslib/bower.json new file mode 100644 index 000000000..169a4d11e --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/bower.json @@ -0,0 +1,34 @@ +{ + "name": "tslib", + "authors": [ + "Microsoft Corp." + ], + "homepage": "http://typescriptlang.org/", + "version": "1.9.0", + "license": "Apache-2.0", + "description": "Runtime library for TypeScript helper functions", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript", + "tslib", + "runtime" + ], + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/tslib.git" + }, + "main": "tslib.js", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "docs", + "package.json", + ".npmignore", + ".gitignore", + ".gitattributes" + ] +} diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/docs/generator.md b/node_modules/tslint-eslint-rules/node_modules/tslib/docs/generator.md new file mode 100644 index 000000000..88ffb08e2 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/docs/generator.md @@ -0,0 +1,486 @@ +# The `__generator` helper + +The `__generator` helper is a function designed to support TypeScript's down-level emit for +async functions when targeting ES5 and earlier. But how, exactly, does it work? + +Here's the body of the `__generator` helper: + +```js +__generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t; + return { next: verb(0), "throw": verb(1), "return": verb(2) }; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +}; +``` + +And here's an example of it in use: + +```ts +// source +async function func(x) { + try { + await x; + } + catch (e) { + console.error(e); + } + finally { + console.log("finally"); + } +} + +// generated +function func(x) { + return __awaiter(this, void 0, void 0, function () { + var e_1; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + _a.trys.push([0, 1, 3, 4]); + return [4 /*yield*/, x]; + case 1: + _a.sent(); + return [3 /*break*/, 4]; + case 2: + e_1 = _a.sent(); + console.error(e_1); + return [3 /*break*/, 4]; + case 3: + console.log("finally"); + return [7 /*endfinally*/]; + case 4: return [2 /*return*/]; + } + }); + }); +} +``` + +There is a lot going on in this function, so the following will break down what each part of the +`__generator` helper does and how it works. + +# Opcodes + +The `__generator` helper uses opcodes which represent various operations that are interpreted by +the helper to affect its internal state. The following table lists the various opcodes, their +arguments, and their purpose: + +| Opcode | Arguments | Purpose | +|----------------|-----------|--------------------------------------------------------------------------------------------------------------------------------| +| 0 (next) | *value* | Starts the generator, or resumes the generator with *value* as the result of the `AwaitExpression` where execution was paused. | +| 1 (throw) | *value* | Resumes the generator, throwing *value* at `AwaitExpression` where execution was paused. | +| 2 (return) | *value* | Exits the generator, executing any `finally` blocks starting at the `AwaitExpression` where execution was paused. | +| 3 (break) | *label* | Performs an unconditional jump to the specified label, executing any `finally` between the current instruction and the label. | +| 4 (yield) | *value* | Suspends the generator, setting the resume point at the next label and yielding the value. | +| 5 (yieldstar) | *value* | Suspends the generator, setting the resume point at the next label and delegating operations to the supplied value. | +| 6 (catch) | *error* | An internal instruction used to indicate an exception that was thrown from the body of the generator. | +| 7 (endfinally) | | Exits a finally block, resuming any previous operation (such as a break, return, throw, etc.) | + +# State +The `_`, `f`, `y`, and `t` variables make up the persistent state of the `__generator` function. Each variable +has a specific purpose, as described in the following sections: + +## The `_` variable +The `__generator` helper must share state between its internal `step` orchestration function and +the `body` function passed to the helper. + +```ts +var _ = { + label: 0, + sent: function() { + if (t[0] & 1) // NOTE: true for `throw`, but not `next` or `catch` + throw t[1]; + return sent[1]; + }, + trys: [], + ops: [] +}; +``` + +The following table describes the members of the `_` state object and their purpose: + +| Name | Description | +|---------|---------------------------------------------------------------------------------------------------------------------------| +| `label` | Specifies the next switch case to execute in the `body` function. | +| `sent` | Handles the completion result passed to the generator. | +| `trys` | A stack of **Protected Regions**, which are 4-tuples that describe the labels that make up a `try..catch..finally` block. | +| `ops` | A stack of pending operations used for `try..finally` blocks. | + +The `__generator` helper passes this state object to the `body` function for use with switching +between switch cases in the body, handling completions from `AwaitExpression`, etc. + +## The `f` variable +The `f` variable indicates whether the generator is currently executing, to prevent re-entry of +the same generator during its execution. + +## The `y` variable +The `y` variable stores the iterator passed to a `yieldstar` instruction to which operations should be delegated. + +## The `t` variable +The `t` variable is a temporary variable that stores one of the following values: + +- The completion value when resuming from a `yield` or `yield*`. +- The error value for a catch block. +- The current **Protected Region**. +- The verb (`next`, `throw`, or `return` method) to delegate to the expression of a `yield*`. +- The result of evaluating the verb delegated to the expression of a `yield*`. + +> NOTE: None of the above cases overlap. + +# Protected Regions +A **Protected Region** is a region within the `body` function that indicates a +`try..catch..finally` statement. It consists of a 4-tuple that contains 4 labels: + +| Offset | Description | +|--------|-----------------------------------------------------------------------------------------| +| 0 | *Required* The label that indicates the beginning of a `try..catch..finally` statement. | +| 1 | *Optional* The label that indicates the beginning of a `catch` clause. | +| 2 | *Optional* The label that indicates the beginning of a `finally` clause. | +| 3 | *Required* The label that indicates the end of the `try..catch..finally` statement. | + +# The generator object +The final step of the `__generator` helper is the allocation of an object that implements the +`Generator` protocol, to be used by the `__awaiter` helper: + +```ts +return { next: verb(0), "throw": verb(1), "return": verb(2) }; +function verb(n) { return function (v) { return step([n, v]); }; } +``` + +This object translates calls to `next`, `throw`, and `return` to the appropriate Opcodes and +invokes the `step` orchestration function to continue execution. The `throw` and `return` method +names are quoted to better support ES3. + +# Orchestration +The `step` function is the main orechestration mechanism for the `__generator` helper. It +interprets opcodes, handles **protected regions**, and communicates results back to the caller. + +Here's a closer look at the `step` function: + +```ts +function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; +} +``` + +The main body of `step` exists in a `while` loop. This allows us to continually interpret +operations until we have reached some completion value, be it a `return`, `await`, or `throw`. + +## Preventing re-entry +The first part of the `step` function is used as a check to prevent re-entry into a currently +executing generator: + +```ts +if (f) throw new TypeError("Generator is already executing."); +``` + +## Running the generator +The main body of the `step` function consists of a `while` loop which continues to evaluate +instructions until the generator exits or is suspended: + +```ts +while (_) try ... +``` + +When the generator has run to completion, the `_` state variable will be cleared, forcing the loop +to exit. + +## Evaluating the generator body. +```ts +try { + ... + op = body.call(thisArg, _); +} +catch (e) { + op = [6, e]; + y = 0; +} +finally { + f = t = 0; +} +``` + +Depending on the current operation, we re-enter the generator body to start or continue execution. +Here we invoke `body` with `thisArg` as the `this` binding and the `_` state object as the only +argument. The result is a tuple that contains the next Opcode and argument. + +If evaluation of the body resulted in an exception, we convert this into an Opcode 6 ("catch") +operation to be handled in the next spin of the `while` loop. We also clear the `y` variable in +case it is set to ensure we are no longer delegating operations as the exception occurred in +user code *outside* of, or at the function boundary of, the delegated iterator (otherwise the +iterator would have handled the exception itself). + +After executing user code, we clear the `f` flag that indicates we are executing the generator, +as well as the `t` temporary value so that we don't hold onto values sent to the generator for +longer than necessary. + +Inside of the `try..finally` statement are a series of statements that are used to evaluate the +operations of the transformed generator body. + +The first thing we do is mark the generator as executing: + +```ts +if (f = 1, ...) +``` + +Despite the fact this expression is part of the head of an `if` statement, the comma operator +causes it to be evaluated and the result thrown out. This is a minification added purely to +reduce the overall footprint of the helper. + +## Delegating `yield*` + +The first two statements of the `try..finally` statement handle delegation for `yield*`: + +```ts +if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; +if (y = 0, t) op = [0, t.value]; +``` + +If the `y` variable is set, and `y` has a `next`, `throw`, or `return` method (depending on the +current operation), we invoke this method and store the return value (an IteratorResult) in `t`. + +If `t` indicates it is a yielded value (e.g. `t.done === false`), we return `t` to the caller. +If `t` indicates it is a returned value (e.g. `t.done === true`), we mark the operation with the +`next` Opcode, and the returned value. +If `y` did not have the appropriate method, or `t` was a returned value, we reset `y` to a falsey +value and continue processing the operation. + +## Handling operations + +The various Opcodes are handled in the following switch statement: + +```ts +switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; +} +``` + +The following sections describe the various Opcodes: + +### Opcode 0 ("next") and Opcode 1 ("throw") +```ts +case 0: // next +case 1: // throw + t = op; + break; +``` + +Both Opcode 0 ("next") and Opcode 1 ("throw") have the same behavior. The current operation is +stored in the `t` variable and the `body` function is invoked. The `body` function should call +`_.sent()` which will evaluate the appropriate completion result. + +### Opcode 4 ("yield") +```ts +case 4: // yield + _.label++; + return { value: op[1], done: false }; +``` + +When we encounter Opcode 4 ("yield"), we increment the label by one to indicate the point at which +the generator will resume execution. We then return an `IteratorResult` whose `value` is the +yielded value, and `done` is `false`. + +### Opcode 5 ("yieldstar") +```ts +case 5: // yieldstar + _.label++; + y = op[1]; + op = [0]; + continue; +``` + +When we receive Opcode 5 ("yieldstar"), we increment the label by one to indicate the point at which +the generator will resume execution. We then store the iterator in `op[1]` in the `y` variable, and +set the operation to delegate to Opcode 0 ("next") with no value. Finally, we continue execution at +the top of the loop to start delegation. + +### Opcode 7 ("endfinally") +```ts +case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; +``` + +Opcode 7 ("endfinally") indicates that we have hit the end of a `finally` clause, and that the last +operation recorded before entering the `finally` block should be evaluated. + +### Opcode 2 ("return"), Opcode 3 ("break"), and Opcode 6 ("catch") +```ts +default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; +} +``` + +The handling for Opcode 2 ("return"), Opcode 3 ("break") and Opcode 6 ("catch") is more +complicated, as we must obey the specified runtime semantics of generators. The first line in this +clause gets the current **Protected Region** if found and stores it in the `t` temp variable: + +```ts +if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && ...) ... +``` + +The remainder of this statement, as well as the following by several `if` statements test for more +complex conditions. The first of these is the following: + +```ts +if (!(t = ...) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; +} +``` + +If we encounter an Opcode 6 ("catch") or Opcode 2 ("return"), and we are not in a protected region, +then this operation completes the generator by setting the `_` variable to a falsey value. The +`continue` statement resumes execution at the top of the `while` statement, which will exit the loop +so that we continue execution at the statement following the loop. + +```ts +if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { + _.label = op[1]; + break; +} +``` + +The `if` statement above handles Opcode 3 ("break") when we are either not in a **protected region**, or +are performing an unconditional jump to a label inside of the current **protected region**. In this case +we can unconditionally jump to the specified label. + +```ts +if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; +} +``` + +The `if` statement above handles Opcode 6 ("catch") when inside the `try` block of a **protected +region**. In this case we jump to the `catch` block, if present. We replace the value of `t` with +the operation so that the exception can be read as the first statement of the transformed `catch` +clause of the transformed generator body. + +```ts +if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; +} +``` + +This `if` statement handles all Opcodes when in a **protected region** with a `finally` clause. +As long as we are not already inside the `finally` clause, we jump to the `finally` clause and +push the pending operation onto the `_.ops` stack. This allows us to resume execution of the +pending operation once we have completed execution of the `finally` clause, as long as it does not +supersede this operation with its own completion value. + +```ts +if (t[2]) + _.ops.pop(); +``` + +Any other completion value inside of a `finally` clause will supersede the pending completion value +from the `try` or `catch` clauses. The above `if` statement pops the pending completion from the +stack. + +```ts +_.trys.pop(); +continue; +``` + +The remaining statements handle the point at which we exit a **protected region**. Here we pop the +current **protected region** from the stack and spin the `while` statement to evaluate the current +operation again in the next **protected region** or at the function boundary. + +## Handling a completed generator +Once the generator has completed, the `_` state variable will be falsey. As a result, the `while` +loop will terminate and hand control off to the final statement of the orchestration function, +which deals with how a completed generator is evaluated: + +```ts +if (op[0] & 5) + throw op[1]; +return { value: op[0] ? op[1] : void 0, done: true }; +``` + +If the caller calls `throw` on the generator it will send Opcode 1 ("throw"). If an exception +is uncaught within the body of the generator, it will send Opcode 6 ("catch"). As the generator has +completed, it throws the exception. Both of these cases are caught by the bitmask `5`, which does +not collide with the only two other valid completion Opcodes. + +If the caller calls `next` on the generator, it will send Opcode 0 ("next"). As the generator has +completed, it returns an `IteratorResult` where `value` is `undefined` and `done` is true. + +If the caller calls `return` on the generator, it will send Opcode 2 ("return"). As the generator +has completed, it returns an `IteratorResult` where `value` is the value provided to `return`, and +`done` is true. \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/package.json b/node_modules/tslint-eslint-rules/node_modules/tslib/package.json new file mode 100644 index 000000000..9637ece6e --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/package.json @@ -0,0 +1,28 @@ +{ + "name": "tslib", + "author": "Microsoft Corp.", + "homepage": "http://typescriptlang.org/", + "version": "1.9.0", + "license": "Apache-2.0", + "description": "Runtime library for TypeScript helper functions", + "keywords": [ + "TypeScript", + "Microsoft", + "compiler", + "language", + "javascript", + "tslib", + "runtime" + ], + "bugs": { + "url": "https://github.com/Microsoft/TypeScript/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/Microsoft/tslib.git" + }, + "main": "tslib.js", + "module": "tslib.es6.js", + "jsnext:main": "tslib.es6.js", + "typings": "tslib.d.ts" +} \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.d.ts b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.d.ts new file mode 100644 index 000000000..c4a0e1158 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.d.ts @@ -0,0 +1,33 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +export declare function __extends(d: Function, b: Function): void; +export declare function __assign(t: any, ...sources: any[]): any; +export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; +export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; +export declare function __param(paramIndex: number, decorator: Function): Function; +export declare function __metadata(metadataKey: any, metadataValue: any): Function; +export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; +export declare function __generator(thisArg: any, body: Function): any; +export declare function __exportStar(m: any, exports: any): void; +export declare function __values(o: any): any; +export declare function __read(o: any, n?: number): any[]; +export declare function __spread(...args: any[]): any[]; +export declare function __await(v: any): any; +export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; +export declare function __asyncDelegator(o: any): any; +export declare function __asyncValues(o: any): any; +export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; +export declare function __importStar(mod: T): T; +export declare function __importDefault(mod: T): T | { default: T }; diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.html b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.html new file mode 100644 index 000000000..b122e41b0 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.js b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.js new file mode 100644 index 000000000..195600ad1 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.es6.js @@ -0,0 +1,178 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* global Reflect, Promise */ + +var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + +export function __extends(d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); +} + +export var __assign = Object.assign || function __assign(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; +} + +export function __rest(s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; +} + +export function __decorate(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +} + +export function __param(paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +} + +export function __metadata(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); +} + +export function __awaiter(thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +} + +export function __generator(thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } +} + +export function __exportStar(m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} + +export function __values(o) { + var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; + if (m) return m.call(o); + return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; +} + +export function __read(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; +} + +export function __spread() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; +} + +export function __await(v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); +} + +export function __asyncGenerator(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } +} + +export function __asyncDelegator(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } +} + +export function __asyncValues(o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator]; + return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); +} + +export function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; + +export function __importStar(mod) { + 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; +} + +export function __importDefault(mod) { + return (mod && mod.__esModule) ? mod : { default: mod }; +} diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.html b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.html new file mode 100644 index 000000000..44c9ba51e --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.js b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.js new file mode 100644 index 000000000..f7ba570bd --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tslib/tslib.js @@ -0,0 +1,241 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if (typeof module === "object" && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + + __extends = function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0) + t[p[i]] = s[p[i]]; + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [0, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function (m, exports) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; + }; + + __values = function (o) { + var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0; + if (m) return m.call(o); + return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { if (o[n]) i[n] = function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; }; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator]; + return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + __importStar = function (mod) { + 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; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); +}); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/.editorconfig b/node_modules/tslint-eslint-rules/node_modules/tsutils/.editorconfig new file mode 100644 index 000000000..4818afd6b --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_size = 4 +indent_style = space +trim_trailing_whitespace = true + +[*.{json,yml,md}] +indent_size = 2 diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/.fimbullinter.yaml b/node_modules/tslint-eslint-rules/node_modules/tsutils/.fimbullinter.yaml new file mode 100644 index 000000000..74e903e76 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/.fimbullinter.yaml @@ -0,0 +1,2 @@ +exclude: + - test/rules/** diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/.wotanrc.yaml b/node_modules/tslint-eslint-rules/node_modules/tsutils/.wotanrc.yaml new file mode 100644 index 000000000..46153ecb7 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/.wotanrc.yaml @@ -0,0 +1,5 @@ +extends: wotan:recommended +rules: + # TODO enable once https://github.com/Microsoft/TypeScript/issues/24706 is resolved + no-useless-assertion: off + no-useless-predicate: off diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/CHANGELOG.md b/node_modules/tslint-eslint-rules/node_modules/tsutils/CHANGELOG.md new file mode 100644 index 000000000..0d01e793b --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/CHANGELOG.md @@ -0,0 +1,741 @@ +# 3.17.1 + +**Bugfixes:** + +* `isValidJsxIdentifier`, `isValidPropertyAccess`, `isValidPropertyName`: fix unicode character width handling + +# 3.17.0 + +**Features:** + +* `isValidJsxIdentifier` added an optional parameter to specify the target ECMAScript version + +**Bugfixes:** + +* `isValidJsxIdentifier` now handles astral plane characters + +# 3.16.0 + +**Features:** + +* added `getIteratorYieldResultFromIteratorResult` to extract the `yield`ed type from `IteratorResult` + +# 3.15.0 + +**Features:** + +* `isValidIdentifier`, `isValidPropertyName`, `isValidPropertyAccess`, `isValidNumericLiteral` added an optional parameter to specify the target ECMAScript version + +**Bugfixes:** + +* `isValidPropertyName`, `isValidPropertyAccess` now handle astral plane characters + +# 3.14.1 + +**Bugfixes:** + +* `findImports`: fixed crash on nested namespaces + +# 3.14.0 + +**Features:** + +* added `getInstanceTypeOfClassLikeDeclaration` and `getConstructorTypeOfClassLikeDeclaration` +* added `AccessKind.Delete` to `getAccessKind`: `getAccessKind(node) & AccessKind.Modification` can now be used to restore the old behavior of `isReassignmentTarget(node)` + +# 3.13.0 + +**Features:** + +* `getAccessKind` determines whether an expression is read from, written to or both +* optimized `getPropertyOfType` for unambiguous property names to partially work around https://github.com/microsoft/TypeScript/issues/31565 + +**Bugfixes:** + +* `isReassignmentTarget` no longer returns `true` for `DeleteExpression` as it doesn't **assign** a value to the operand + +# 3.12.0 + +**Features:** + +* `getLateBoundPropertyNamesOfPropertyName` returns all statically analyzable names of a property, method, ... +* `getSingleLateBoundPropertyNameOfPropertyName` returns the literal name of a property, method, ... if statically analyzable + +**Bugfixes:** + +* fixed circular import + +# 3.11.0 + +**Features:** + +* typeguards: `isNumericOrStringLikeLiteral`, `isTupleTypeReference` +* `intersectionTypeParts` as counterpart to `unionTypeParts` +* `someTypePart` to execute a callback for each union or intersection constituent until the callback returns true +* `getPropertyOfType` looks up a property by its escaped name +* `isPropertyReadonlyInType` determines whether a property in a given type cannot be written to +* `symbolHasReadonlyDeclaration` determines if a Symbol has any readonly or constant declaration +* `isNumericPropertyName` determines whether a property name would match an index signature +* `isBindableObjectDefinePropertyCall` returns true for statically analyzable forms of `Object.defineProperty(o, 'p', {value, writable})` +* `isReadonlyAssignmentDeclaration` determines whether an `Object.defineProperty` call is known to result in a readonly property +* `getLateBoundPropertyNames` returns all known property names of an expression +* `getPropertyNameFromType` extracts the property name of literal types +* `isWellKnownSymbolLiterally` to recognize expressions in the form of `Symbol.` +* `getPropertyNameOfWellKnownSymbol` returns the escaped name for a well known symbol literal +* `unwrapParentheses` returns the first child expression that is not a `ParenthesizedExpression` + +# 3.10.0 + +**Features:** + +* `isCompilerOptionEnabled`: `incremental` is implicitly enabled by `composite` + +**Bugfixes:** + +* `collectVariableUsage`/`getUsageDomain`: no longer treat `as const` as type usage + +# 3.9.1 + +**Bugfixes:** + +* reverted invalid deprecation of `canHaveJsdoc` +* fixed condition in `parseJsdocOfNode` + +# 3.9.0 + +**Features:** + +* added typeguards: `isNullLiteral` and `isBooleanLiteral` + +# 3.8.0 + +**Features:** + +* exposes typeguards for typescript@3.2 by default +* added utilities: `isConstAssertion` and `isInConstContext` + +# 3.7.0 + +**Features:** + +* added `isBlockScopedDeclarationStatement` +* added `isInSingleStatementContext` + +# 3.6.0 + +**Features:** + +* added `getCheckJsDirective` utility to parse `// @ts-check` and `// @ts-nocheck` pragmas + +# 3.5.2 + +**Bugfixes:** + +* Published declaration files no longer contain `const enum`. They are now declared as regular enums instead. + +# 3.5.1 + +**Bugfixes:** + +* `isThenableType` allows `Node` instead of `Expression` as parameter +* `isBlockScopeBoundary` and `isScopeBoundary` consider `WithStatement` as scope boundary + +# 3.5.0 + +**Features:** + +* correctly handle BigInt literals + * added typeguard `isBigIntLiteral` + * `isLiteralType` recognises BigInt + * `getPropertyName` adds special handling for BigInt + +# 3.4.0 + +**Features:** + +* added utility `commentText` to get the actual text content of a comment excluding the characters needed to start and end the comment + +# 3.3.1 + +**Bugfixes:** + +* `findImports`: fixed handling of ImportEqualsDeclaration + +# 3.3.0 + +**Features:** + +* `isCompilerOptionEnabled`: recognizes `strictBindCallApply` +* `getTokenAtPosition`: optionally includes JSDoc during lookup + +**Bugfixes:** + +* `isCompilerOptionEnabled`: correctly implements logic for `allowSyntheticDefaultImports` +* `findImportLikeNodes`: correctly finds imports in namespaces +* `findImportLikeNodes` / `findImports`: finds import types in JSDoc of JS files + +# 3.2.0 + +**Features:** + +* added utility `findImportLikeNodes` that works similar to `findImports` but returns the import statement or expression instead of the module specifier and doesn't filter non-string module specifiers + +# 3.1.0 + +**Features:** + +* added utilities: `isKeywordKind` and `isValidJsxIdentifier` +* exposes typeguards for typescript@3.0 by default + +# 3.0.0 + +:warning: **Breaking Changes:** + +* Dropped support for `typescript@<2.8.0` +* Dropped support for Node.js 4 +* Removed deprecated APIs: + * `getIdentifierText`, `isJsxFramgment`, `ImportOptions` + * deprected overloads of `isModifierFlagSet`, `findImports` and `getControlFlowEnd` +* control flow related symbols can no longer be imported from `'tsutils/util/util'`, import directly from `'tsutils/util/control-flow'` or `'tsutils/util'` +* `isFunctionScopeBoundary` and `isBlockScopeBoundary` now return a enum member of `ScopeBoundary` instead of a boolean +* `isFunctionScopeBoundary` no longer returns a truthy value for `InterfaceDeclaration`, `TypeAliasDeclaration` + +**Features:** + +* added utility `isTypeScopeBoundary` returning `ScopeBoundary.Type` or `ScopeBoundary.ConditionalType` +* added enum `ScopeBoundarySelector` whose members can be used to determine if a declaration belongs to a given `ScopeBoundary` by using bitwise AND + +**Bugfixes:** + +* `collectVariableUsage` now correctly handles `infer T` nested inside function signatures or mapped types +* `isCompilerOptionEnabled` correctly handles `skipDefaultLibCHeck` and `suppressImplicitAnyIndexErrors` + +# 2.29.0 + +**Features:** + +* added utility `isCompilerOptionEnabled` + +# 2.28.0 + +Typeguards are now split into multiple submodules for each version of TypeScript (starting with 2.8.0). +That means you can now import directly from `"tsutils/typeguard/2.8"` to get compatible declaraton files for TypeScript@2.8. +For more information please read the relevant section in [README.md](README.md). + +**Features:** + +* added typeguards: `isTupleType`, `isOptionalTypeNode`, `isRestTypeNode`, `isSyntheticExpression` (currently available from `"tsutils/typeguard/3.0"`) +* added utility `isStrictCompilerOptionEnabled` + +# 2.27.2 + +Avoid crash caused by removed function in `typescript@3.0.0`. + +# 2.27.1 + +Added support for TypeScript@3.0.0 nightly builds. + +# 2.27.0 + +**Features:** + +* added `getIIFE` utility + +# 2.26.2 + +**Bugfixes:** + +* `forEachComment` and `forEachTokenWithTrivia` no longer duplicate comments around missing nodes + +# 2.26.1 + +**Bugfixes:** + +* fixed crash in `hasSideEffects` with tagged template literal without substitution: ``tag`template` `` + +# 2.26.0 + +**Features:** + +* added typeguard `isLiteralTypeNode` +* added support for type imports (`type T = import('foo')`) to `findImports` via `ImportKind.ImportType` + +# 2.25.1 + +**Bugfixes:** + +* `collectVariableUsage`: fixed name lookup in function signatures to match runtime behavior. Note that this is not completely fixed in TypeScript, yet. See: [Microsoft/TypeScript#22825](https://github.com/Microsoft/TypeScript/issues/22825) and [Microsoft/TypeScript#22769](https://github.com/Microsoft/TypeScript/issues/22769) + +# 2.25.0 + +**Features:** + +* added utilities: `isStatementInAmbientContext` and `isAmbientModuleBlock` + +# 2.24.0 + +**Features:** + +* added typeguards for typescript@2.8: `isConditionalTypeNode`, `isInferTypeNode`, `isConditionalType`, `isInstantiableType`, `isSubstitutionType` + +# 2.23.0 + +**Features:** + +* added typeguard `isForInOrOfStatement` + +**Bugfixes:** + +* correctly handle comments in generic JSX elements: `/*comment*/>` +* fixed a bug with false positive trailing comments at the end of JSX self closing element: `

/*no comment*/
` + +# 2.22.2 + +**Bugfixes:** + +* `collectVariableUsage`: handle ConditionalTypes and `infer T`, which will be introduced in TypeScript@2.8.0 and are already available in nightly builds +* `isLiteralType` no longer returns true for `ts.TypeFlags.BooleanLiteral` as this is not a `ts.LiteralType` + +# 2.22.1 + +**Bugfixes:** + +* `endsControlFlow`: + * handle loops that might not even run a single iteration + * handle constant boolean conditions in loops and if + +# 2.22.0 + +**Features:** + +* added `isFalsyType` utility + +# 2.21.2 + +**Bugfixes:** + +* fixed compile error with `typescript@2.8.0-dev` + +# 2.21.1 + +**Bugfixes:** + +* `isReassignmentTarget`: handle type assertions and non-null assertion + +# 2.21.0 + +**Bugfixes:** + +* `forEachDeclaredVariable` uses a more precise type for the callback parameter to make it useable again with typescript@2.7.1 + +**Features:** + +* added `isUniqueESSymbolType` typeguard + +# 2.20.0 + +**Features:** + +* added `isThenableType` utility +* added `unionTypeParts` utility + +# 2.19.1 + +**Bugfixes:** + +* `forEachComment`, `getCommentAtPosition` and `isPositionInComment`: skip shebang (`#! something`) to not miss following comments at the start of the file + +# 2.19.0 + +**Features:** + +* added `WrappedAst` interface that models the type of a wrapped SourceFile more accurate +* added `getWrappedNodeAtPosition` utiltiy that takes a `NodeWrap` and returns the most deeply nested NodeWrap that contains the given position + +# 2.18.0 + +**Features:** + +* `getControlFlowEnd` accepts BlockLike as argument + +**Bugfixes:** + +* `getControlFlowEnd` and `endsControlFlow`: correctly handle nested LabeledStatements +* `endsControlFlow` removed erroneous special case when an IterationStatement is passed as argument whose parent is a LabeledStatement. + * if you want labels of an IterationStatement (or SwitchStatement) to be handled, you need to pass the LabeledStatement as argument. + * :warning: this fix may change the returned value if you relied on the buggy behavior + +**Deprecations:** + +* deprecated overload of `getControlFlowEnd` that contains the `label` parameter. This parameter is no longer used and should no longer be passed to the function. + +# 2.17.1 + +**Bugfixes:** + +* `getControlFlowEnd` and `endsControlFlow` (#22) + * ThrowStatements inside `try` are filtered out if there is a `catch` clause + * TryStatements with `catch` only end control flow if `try` AND `catch` definitely end control flow + +# 2.17.0 + +**Features:** + +* added `kind` property to `NodeWrap` +* added `getControlFlowEnd` to public API + +# 2.16.0 + +**Features:** + +* added `isDecorator` and `isCallLikeExpression` typeguards + +# 2.15.0 + +**Features:** + +* added `convertAst` utility to produce a flattened and wrapped version of the AST + +# 2.14.0 + +**Features:** + +* added `isDeleteExpression` +* added `getLineBreakStyle` + +# 2.13.1 + +**Bugfixes:** + +* fixed name of `isJsxFragment` + +# 2.13.0 + +**Features:** + +* added support for `JsxFragment` introduced in typescript@2.6.2 +* added corresponding typeguard functions + +# 2.12.2 + +**Bugfixes:** + +* `endsControlFlow` + * added missing logic for labeled statement, iteration statements and try-catch + * added missing logic for `break` and `continue` with labels + * take all jump statements into account, not only the last statement +* `isValidIdentifier` and `isValidNumericLiteral` handle irregular whitespace +* `findImports` searches in ambient modules inside regular `.ts` files (not only `.d.ts`) +* `canHaveJsDoc` is now a typeguard + +# 2.12.1 + +**Bugfixes:** + +* `forEachTokenWithTrivia` + * handles irregular whitespace and no longer visits some tokens twice + * correctly calculates the range of JsxText + +# 2.12.0 + +**API-Changes:** + +* deprecated `ImportOptions` if favor of the new `ImportKind` enum + +# 2.11.2 + +**Bugfixes:** + +* `parseJsDocOfNode`: set correct `pos`, `end` and `parent` properties. Also affects `getJsDoc` of `EndOfFileToken` + +# 2.11.1 + +**Bugfixes:** + +* `collectVariableUsage`: correctly consider catch binding as block scoped declaration inside catch block + +# 2.11.0 + +**Bugfixes:** + +* `getJsDoc` now correctly returns JsDoc for `EndOfFileToken` + +**Features:** + +* added utility `parseJsDocOfNode` + +# 2.10.0 + +**Features:** + +* added utility `findImports` to find all kinds of imports in a source file + +# 2.9.0 + +**Features:** + +* added typeguard `isMappedTypeNode` +* added utilities `canHaveJsDoc` and `getJsDoc` + +# 2.8.2 + +**Bugfixes:** + +* `collectVariableUsage`: handle global augmentation like other module augmentations + +# 2.8.1 + +**Bugfixes:** + +* Support `typescript@2.5.1` with optional catch binding +* `collectVariableUsage` fixed a bug where method decorator had method's parameters in scope + +# 2.8.0 + +* Compatibility with the latest typescript nightly +* Added `getIdentifierText` to unescape identifiers across typescript versions + +# 2.7.1 + +**Bugfixes:** + +* `isReassignmentTarget` don't return `true` for right side of assignment + +# 2.7.0 + +**Features:** + +* Added `isReassignmentTarget` utility + +# 2.6.1 + +**Bugfixes:** + +* `getDeclarationDomain` now returns `undefined` for Parameter in IndexSignature +* `collectVariableUsage` ignores Parameter in IndexSignature + +# 2.6.0 + +**Bugfixes:** + +* `collectVariableUsage`: + * don't merge imports with global declarations + * treat everything in a declaration file as exported if there is no explicit `export {};` +* `isExpressionValueUsed`: handle destructuring in `for...of` + +**Features:** + +* Added `getModifier` utility +* Added `DeclarationDomain.Import` to distinguish imports from other declarations + +# 2.5.1 + +**Bugfixes:** + +* `collectVariableUsage` ignore jump labels as in `break label;` + +# 2.5.0 + +**Bugfixes:** + +* `isFunctionWithBody` handles constructor overload correctly. + +**Features:** + +* Implemented `isExpressionValueUsed` to check whether the result of an expression is actually used. +* Implemented `getDeclarationDomain` to determine if a given declaration introduces a new symbol in the value or type domain. + +**`collectVariableUses` is now usable** + +* no longer ignores signatures and its parameters +* don't merge declarations and uses across domains +* no longer marks exceptions in catch clause or parameter properties as exported +* fixed exports of namespaces +* fixed scoping of ClassExpression name +* correcly handle ambient namespaces and module augmentations +* fixed how `: typeof foo` is handled for parameters and function return type +* **still WIP**: `export {Foo as Bar}` inside ambient namespaces and modules + +# 2.4.0 + +**Bugfixes:** + +* `getLineRanges`: `contentLength` now contains the correct line length when there are multiple consecutive line break characters +* `getTokenAtPosition`: don't match tokens that end at the specified position (because that's already outside of their range) +* deprecated the misnamed `isModfierFlagSet`, use the new `isModifierFlagSet` instead + +**Features:** + +* Added typeguard: `isJsDoc` +* Added experimental scope and usage analysis (`getUsageDomain` and `collectVariableUsage`) + +# 2.3.0 + +**Bugfixes:** + +* `forEachComment` no longer omits some comments when callback returns a truthy value +* `isPositionInComment` fixed false positive inside JSXText + +**Features:** + +* Added utility: `getCommentAtPosition` + +# 2.2.0 + +**Bugfixes:** + +* Fixed bit value of `SideEffectOptions.JsxElement` to be a power of 2 + +**Features:** + +* Added utilities: `getTokenAtPosition` and `isPositionInComment` + +# 2.1.0 + +**Features:** + +* Added typeguard `isExpression` +* Added utilities: `hasSideEffects`, `getDeclarationOfBindingElement` + +# 2.0.0 + +**Breaking Changes:** + +* Dropped compatibility with `typescript@<2.1.0` +* Removed misnamed `isNumericliteral`, use `isNumericLiteral` instead (notice the uppercase L) +* Removed `isEnumLiteralType` which will cause compile errors with typescript@2.4.0 +* Refactored directory structure: all imports that referenced subdirectories (e.g. `require('tsutils/src/typeguard')` will be broken + +**Features:** + +* New directory structure allows imports of typeguards or utils independently, e.g. (`require('tsutils/typeguard')`) + +# 1.9.1 + +**Bugfixes:** + +* `isObjectFlagSet` now uses the correct `objectFlags` property + +# 1.9.0 + +**Bugfixes:** + +* `getNextToken` no longer omits `EndOfFileToken` when there is no trivia before EOF. That means the only inputs where `getNextToken` returns `undefined` are `SourceFile` and `EndOfFileToken` + +**Features**: + +* Added typeguards for types +* Added utilities for flag checking: `isNodeFlagSet`, `isTypeFlagSet`, `isSymbolFlagSet`,`isObjectFlagSet`, `isModifierFlagSet` + +# 1.8.0 + +**Features:** + +* Support peer dependency of typescript nightlies of 2.4.0 +* Added typeguards: `isJsxAttributes`, `isIntersectionTypeNode`, `isTypeOperatorNode`, `isTypePredicateNode`, `isTypeQueryNode`, `isUnionTypeNode` + +# 1.7.0 + +**Bugfixes:** + +* `isFunctionScopeBoundary` now handles Interfaces, TypeAliases, FunctionSignatures, etc + +**Features:** + +* Added utilities: `isThisParameter`, `isSameLine` and `isFunctionWithBody` + +# 1.6.0 + +**Features:** + +* Add `isValidPropertyAccess`, `isValidNumericLiteral` and `isValidPropertyName` + +# 1.5.0 + +**Features:** + +* Add `isValidIdentifier` + +# 1.4.0 + +**Features:** + +* Add `contentLength` property to the result of `getLineRanges` + +# 1.3.0 + +**Bugfixes:** + +* `canHaveLeadingTrivia`: + * Fix property access on undefined parent reference + * Fixes: [palantir/tslint#2330](https://github.com/palantir/tslint/issues/2330) +* `hasOwnThisReference`: now includes accessors on object literals + +**Features:** + +* Typeguards: + * isTypeParameterDeclaration + * isEnitityName + +# 1.2.2 + +**Bugfixes:** + +* `hasOwnThisReference`: + * exclude overload signatures of function declarations + * add method declarations on object literals + +# 1.2.1 + +**Bugfixes:** + +* Fix name of `isNumericLiteral` + +# 1.2.0 + +**Features:** + +* Typeguards: + * isEnumMember + * isExpressionWithTypeArguments + * isImportSpecifier +* Utilities: + * isJsDocKind, isTypeNodeKind +* Allow typescript@next in peerDependencies + +# 1.1.0 + +**Bugfixes:** + +* Fix isBlockScopeBoundary: Remove WithStatement, IfStatment, DoStatement and WhileStatement because they are no scope boundary whitout a block. + +**Features:** + +* Added more typeguards: + * isAssertionExpression + * isEmptyStatement + * isJsxAttributeLike + * isJsxOpeningLikeElement + * isNonNullExpression + * isSyntaxList +* Utilities: + * getNextToken, getPreviousToken + * hasOwnThisReference + * getLineRanges + +# 1.0.0 + +**Features:** + +* Initial implementation of typeguards +* Utilities: + * getChildOfKind + * isNodeKind, isAssignmentKind + * hasModifier, isParameterProperty, hasAccessModifier + * getPreviousStatement, getNextStatement + * getPropertyName + * forEachDestructuringIdentifier, forEachDeclaredVariable + * getVariableDeclarationKind, isBlockScopedVariableDeclarationList, isBlockScopedVariableDeclaration + * isScopeBoundary, isFunctionScopeBoundary, isBlockScopeBoundary + * forEachToken, forEachTokenWithTrivia, forEachComment + * endsControlFlow diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/LICENSE b/node_modules/tslint-eslint-rules/node_modules/tsutils/LICENSE new file mode 100644 index 000000000..3a990ff40 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2017 Klaus Meinhardt + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/README.md b/node_modules/tslint-eslint-rules/node_modules/tsutils/README.md new file mode 100644 index 000000000..a2363e6ac --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/README.md @@ -0,0 +1,61 @@ +# Utility functions for working with typescript's AST + +[![Greenkeeper badge](https://badges.greenkeeper.io/ajafff/tsutils.svg)](https://greenkeeper.io/) + +## Usage + +This package consists of two major parts: utilities and typeguard functions. +By importing the project you will get both of them. +```js +import * as utils from "tsutils"; +utils.isIdentifier(node); // typeguard +utils.getLineRanges(sourceFile); // utilities +``` + +If you don't need everything offered by this package, you can select what should be imported. The parts that are not imported are never read from disk and may save some startup time and reduce memory consumtion. + +If you only need typeguards you can explicitly import them: +```js +import { isIdentifier } from "tsutils/typeguard"; +// You can even distiguish between typeguards for nodes and types +import { isUnionTypeNode } from "tsutils/typeguard/node"; +import { isUnionType } from "tsutils/typeguard/type"; +``` + +If you only need the utilities you can also explicitly import them: +```js +import { forEachComment, forEachToken } from "tsutils/util"; +``` + +### Typescript version dependency + +This package is backwards compatible with typescript 2.8.0 at runtime although compiling might need a newer version of typescript installed. + +Using `typescript@next` might work, but it's not officially supported. If you encounter any bugs, please open an issue. + +For compatibility with older versions of TypeScript typeguard functions are separated by TypeScript version. If you are stuck on `typescript@2.8`, you should import directly from the submodule for that version: + +```js +// all typeguards compatible with typescript@2.8 +import { isIdentifier } from "tsutils/typeguard/2.8"; +// you can even use nested submodules +import { isIdentifier } from "tsutils/typeguard/2.8/node"; + +// all typeguards compatible with typescript@2.9 (includes those of 2.8) +import { isIdentifier } from "tsutils/typeguard/2.9"; + +// always points to the latest stable version (2.9 as of writing this) +import { isIdentifier } from "tsutils/typeguard"; +import { isIdentifier } from "tsutils"; + +// always points to the typeguards for the next TypeScript version (3.0 as of writing this) +import { isIdentifier } from "tsutils/typeguard/next"; +``` + +Note that if you are also using utility functions, you should prefer the relevant submodule: + +```js +// importing directly from 'tsutils' would pull in the latest typeguards +import { forEachToken } from 'tsutils/util'; +import { isIdentifier } from 'tsutils/typeguard/2.8'; +``` diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/index.d.ts new file mode 100644 index 000000000..26b9ee17c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/index.d.ts @@ -0,0 +1,2 @@ +export * from './typeguard'; +export * from './util'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/index.js new file mode 100644 index 000000000..4ee8dc264 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./typeguard"), exports); +tslib_1.__exportStar(require("./util"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/package.json b/node_modules/tslint-eslint-rules/node_modules/tsutils/package.json new file mode 100644 index 000000000..dbe0a2098 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/package.json @@ -0,0 +1,61 @@ +{ + "name": "tsutils", + "version": "3.17.1", + "description": "utilities for working with typescript's AST", + "scripts": { + "compile": "rm -rf {,util,typeguard,test/**}/*.js; ttsc -p .", + "lint:tslint": "wotan -m @fimbul/valtyr", + "lint:wotan": "wotan", + "lint": "run-p lint:*", + "test": "mocha test/*Tests.js && tslint --test 'test/rules/**/tslint.json'", + "verify": "run-s compile lint coverage", + "prepublishOnly": "run-s verify", + "coverage": "nyc run-s test", + "report-coverage": "cat ./coverage/lcov.info | coveralls", + "github-release": "GITHUB_TOKEN=$(cat ~/github_token.txt) github-release-from-changelog", + "postpublish": "git push origin master --tags; run-s github-release" + }, + "repository": { + "type": "git", + "url": "https://github.com/ajafff/tsutils" + }, + "keywords": [ + "typescript", + "ts", + "ast", + "typeguard", + "utils", + "helper", + "node" + ], + "author": "Klaus Meinhardt", + "license": "MIT", + "devDependencies": { + "@fimbul/mithotyn": "^0.17.0", + "@fimbul/valtyr": "^0.20.0", + "@fimbul/wotan": "^0.20.0", + "@types/chai": "^4.0.10", + "@types/mocha": "^5.0.0", + "@types/node": "^11.13.0", + "chai": "^4.1.2", + "coveralls": "^3.0.0", + "github-release-from-changelog": "^1.3.0", + "mocha": "^6.0.2", + "npm-run-all": "^4.1.2", + "nyc": "^13.3.0", + "ts-transform-const-enum": "^0.0.1", + "tslint": "^5.8.0", + "tslint-consistent-codestyle": "^1.11.0", + "ttypescript": "^1.5.5", + "typescript": "^3.6.0-dev.20190804" + }, + "peerDependencies": { + "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" + }, + "dependencies": { + "tslib": "^1.8.1" + }, + "engines": { + "node": ">= 6" + } +} \ No newline at end of file diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.d.ts new file mode 100644 index 000000000..c5aa5a9d1 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.d.ts @@ -0,0 +1,155 @@ +import * as ts from 'typescript'; +export declare function isAccessorDeclaration(node: ts.Node): node is ts.AccessorDeclaration; +export declare function isArrayBindingPattern(node: ts.Node): node is ts.ArrayBindingPattern; +export declare function isArrayLiteralExpression(node: ts.Node): node is ts.ArrayLiteralExpression; +export declare function isArrayTypeNode(node: ts.Node): node is ts.ArrayTypeNode; +export declare function isArrowFunction(node: ts.Node): node is ts.ArrowFunction; +export declare function isAsExpression(node: ts.Node): node is ts.AsExpression; +export declare function isAssertionExpression(node: ts.Node): node is ts.AssertionExpression; +export declare function isAwaitExpression(node: ts.Node): node is ts.AwaitExpression; +export declare function isBinaryExpression(node: ts.Node): node is ts.BinaryExpression; +export declare function isBindingElement(node: ts.Node): node is ts.BindingElement; +export declare function isBindingPattern(node: ts.Node): node is ts.BindingPattern; +export declare function isBlock(node: ts.Node): node is ts.Block; +export declare function isBlockLike(node: ts.Node): node is ts.BlockLike; +export declare function isBooleanLiteral(node: ts.Node): node is ts.BooleanLiteral; +export declare function isBreakOrContinueStatement(node: ts.Node): node is ts.BreakOrContinueStatement; +export declare function isBreakStatement(node: ts.Node): node is ts.BreakStatement; +export declare function isCallExpression(node: ts.Node): node is ts.CallExpression; +export declare function isCallLikeExpression(node: ts.Node): node is ts.CallLikeExpression; +export declare function isCallSignatureDeclaration(node: ts.Node): node is ts.CallSignatureDeclaration; +export declare function isCaseBlock(node: ts.Node): node is ts.CaseBlock; +export declare function isCaseClause(node: ts.Node): node is ts.CaseClause; +export declare function isCaseOrDefaultClause(node: ts.Node): node is ts.CaseOrDefaultClause; +export declare function isCatchClause(node: ts.Node): node is ts.CatchClause; +export declare function isClassDeclaration(node: ts.Node): node is ts.ClassDeclaration; +export declare function isClassExpression(node: ts.Node): node is ts.ClassExpression; +export declare function isClassLikeDeclaration(node: ts.Node): node is ts.ClassLikeDeclaration; +export declare function isCommaListExpression(node: ts.Node): node is ts.CommaListExpression; +export declare function isConditionalExpression(node: ts.Node): node is ts.ConditionalExpression; +export declare function isConditionalTypeNode(node: ts.Node): node is ts.ConditionalTypeNode; +export declare function isConstructorDeclaration(node: ts.Node): node is ts.ConstructorDeclaration; +export declare function isConstructorTypeNode(node: ts.Node): node is ts.ConstructorTypeNode; +export declare function isConstructSignatureDeclaration(node: ts.Node): node is ts.ConstructSignatureDeclaration; +export declare function isContinueStatement(node: ts.Node): node is ts.ContinueStatement; +export declare function isComputedPropertyName(node: ts.Node): node is ts.ComputedPropertyName; +export declare function isDebuggerStatement(node: ts.Node): node is ts.DebuggerStatement; +export declare function isDecorator(node: ts.Node): node is ts.Decorator; +export declare function isDefaultClause(node: ts.Node): node is ts.DefaultClause; +export declare function isDeleteExpression(node: ts.Node): node is ts.DeleteExpression; +export declare function isDoStatement(node: ts.Node): node is ts.DoStatement; +export declare function isElementAccessExpression(node: ts.Node): node is ts.ElementAccessExpression; +export declare function isEmptyStatement(node: ts.Node): node is ts.EmptyStatement; +export declare function isEntityName(node: ts.Node): node is ts.EntityName; +export declare function isEntityNameExpression(node: ts.Node): node is ts.EntityNameExpression; +export declare function isEnumDeclaration(node: ts.Node): node is ts.EnumDeclaration; +export declare function isEnumMember(node: ts.Node): node is ts.EnumMember; +export declare function isExportAssignment(node: ts.Node): node is ts.ExportAssignment; +export declare function isExportDeclaration(node: ts.Node): node is ts.ExportDeclaration; +export declare function isExportSpecifier(node: ts.Node): node is ts.ExportSpecifier; +export declare function isExpression(node: ts.Node): node is ts.Expression; +export declare function isExpressionStatement(node: ts.Node): node is ts.ExpressionStatement; +export declare function isExpressionWithTypeArguments(node: ts.Node): node is ts.ExpressionWithTypeArguments; +export declare function isExternalModuleReference(node: ts.Node): node is ts.ExternalModuleReference; +export declare function isForInStatement(node: ts.Node): node is ts.ForInStatement; +export declare function isForInOrOfStatement(node: ts.Node): node is ts.ForInOrOfStatement; +export declare function isForOfStatement(node: ts.Node): node is ts.ForOfStatement; +export declare function isForStatement(node: ts.Node): node is ts.ForStatement; +export declare function isFunctionDeclaration(node: ts.Node): node is ts.FunctionDeclaration; +export declare function isFunctionExpression(node: ts.Node): node is ts.FunctionExpression; +export declare function isFunctionTypeNode(node: ts.Node): node is ts.FunctionTypeNode; +export declare function isGetAccessorDeclaration(node: ts.Node): node is ts.GetAccessorDeclaration; +export declare function isIdentifier(node: ts.Node): node is ts.Identifier; +export declare function isIfStatement(node: ts.Node): node is ts.IfStatement; +export declare function isImportClause(node: ts.Node): node is ts.ImportClause; +export declare function isImportDeclaration(node: ts.Node): node is ts.ImportDeclaration; +export declare function isImportEqualsDeclaration(node: ts.Node): node is ts.ImportEqualsDeclaration; +export declare function isImportSpecifier(node: ts.Node): node is ts.ImportSpecifier; +export declare function isIndexedAccessTypeNode(node: ts.Node): node is ts.IndexedAccessTypeNode; +export declare function isIndexSignatureDeclaration(node: ts.Node): node is ts.IndexSignatureDeclaration; +export declare function isInferTypeNode(node: ts.Node): node is ts.InferTypeNode; +export declare function isInterfaceDeclaration(node: ts.Node): node is ts.InterfaceDeclaration; +export declare function isIntersectionTypeNode(node: ts.Node): node is ts.IntersectionTypeNode; +export declare function isIterationStatement(node: ts.Node): node is ts.IterationStatement; +export declare function isJsDoc(node: ts.Node): node is ts.JSDoc; +export declare function isJsxAttribute(node: ts.Node): node is ts.JsxAttribute; +export declare function isJsxAttributeLike(node: ts.Node): node is ts.JsxAttributeLike; +export declare function isJsxAttributes(node: ts.Node): node is ts.JsxAttributes; +export declare function isJsxClosingElement(node: ts.Node): node is ts.JsxClosingElement; +export declare function isJsxClosingFragment(node: ts.Node): node is ts.JsxClosingFragment; +export declare function isJsxElement(node: ts.Node): node is ts.JsxElement; +export declare function isJsxExpression(node: ts.Node): node is ts.JsxExpression; +export declare function isJsxFragment(node: ts.Node): node is ts.JsxFragment; +export declare function isJsxOpeningElement(node: ts.Node): node is ts.JsxOpeningElement; +export declare function isJsxOpeningFragment(node: ts.Node): node is ts.JsxOpeningFragment; +export declare function isJsxOpeningLikeElement(node: ts.Node): node is ts.JsxOpeningLikeElement; +export declare function isJsxSelfClosingElement(node: ts.Node): node is ts.JsxSelfClosingElement; +export declare function isJsxSpreadAttribute(node: ts.Node): node is ts.JsxSpreadAttribute; +export declare function isJsxText(node: ts.Node): node is ts.JsxText; +export declare function isLabeledStatement(node: ts.Node): node is ts.LabeledStatement; +export declare function isLiteralExpression(node: ts.Node): node is ts.LiteralExpression; +export declare function isLiteralTypeNode(node: ts.Node): node is ts.LiteralTypeNode; +export declare function isMappedTypeNode(node: ts.Node): node is ts.MappedTypeNode; +export declare function isMetaProperty(node: ts.Node): node is ts.MetaProperty; +export declare function isMethodDeclaration(node: ts.Node): node is ts.MethodDeclaration; +export declare function isMethodSignature(node: ts.Node): node is ts.MethodSignature; +export declare function isModuleBlock(node: ts.Node): node is ts.ModuleBlock; +export declare function isModuleDeclaration(node: ts.Node): node is ts.ModuleDeclaration; +export declare function isNamedExports(node: ts.Node): node is ts.NamedExports; +export declare function isNamedImports(node: ts.Node): node is ts.NamedImports; +export declare function isNamespaceDeclaration(node: ts.Node): node is ts.NamespaceDeclaration; +export declare function isNamespaceImport(node: ts.Node): node is ts.NamespaceImport; +export declare function isNamespaceExportDeclaration(node: ts.Node): node is ts.NamespaceExportDeclaration; +export declare function isNewExpression(node: ts.Node): node is ts.NewExpression; +export declare function isNonNullExpression(node: ts.Node): node is ts.NonNullExpression; +export declare function isNoSubstitutionTemplateLiteral(node: ts.Node): node is ts.NoSubstitutionTemplateLiteral; +export declare function isNullLiteral(node: ts.Node): node is ts.NullLiteral; +export declare function isNumericLiteral(node: ts.Node): node is ts.NumericLiteral; +export declare function isNumericOrStringLikeLiteral(node: ts.Node): node is ts.NumericLiteral | ts.StringLiteral | ts.NoSubstitutionTemplateLiteral; +export declare function isObjectBindingPattern(node: ts.Node): node is ts.ObjectBindingPattern; +export declare function isObjectLiteralExpression(node: ts.Node): node is ts.ObjectLiteralExpression; +export declare function isOmittedExpression(node: ts.Node): node is ts.OmittedExpression; +export declare function isParameterDeclaration(node: ts.Node): node is ts.ParameterDeclaration; +export declare function isParenthesizedExpression(node: ts.Node): node is ts.ParenthesizedExpression; +export declare function isParenthesizedTypeNode(node: ts.Node): node is ts.ParenthesizedTypeNode; +export declare function isPostfixUnaryExpression(node: ts.Node): node is ts.PostfixUnaryExpression; +export declare function isPrefixUnaryExpression(node: ts.Node): node is ts.PrefixUnaryExpression; +export declare function isPropertyAccessExpression(node: ts.Node): node is ts.PropertyAccessExpression; +export declare function isPropertyAssignment(node: ts.Node): node is ts.PropertyAssignment; +export declare function isPropertyDeclaration(node: ts.Node): node is ts.PropertyDeclaration; +export declare function isPropertySignature(node: ts.Node): node is ts.PropertySignature; +export declare function isQualifiedName(node: ts.Node): node is ts.QualifiedName; +export declare function isRegularExpressionLiteral(node: ts.Node): node is ts.RegularExpressionLiteral; +export declare function isReturnStatement(node: ts.Node): node is ts.ReturnStatement; +export declare function isSetAccessorDeclaration(node: ts.Node): node is ts.SetAccessorDeclaration; +export declare function isShorthandPropertyAssignment(node: ts.Node): node is ts.ShorthandPropertyAssignment; +export declare function isSignatureDeclaration(node: ts.Node): node is ts.SignatureDeclaration; +export declare function isSourceFile(node: ts.Node): node is ts.SourceFile; +export declare function isSpreadAssignment(node: ts.Node): node is ts.SpreadAssignment; +export declare function isSpreadElement(node: ts.Node): node is ts.SpreadElement; +export declare function isStringLiteral(node: ts.Node): node is ts.StringLiteral; +export declare function isSwitchStatement(node: ts.Node): node is ts.SwitchStatement; +export declare function isSyntaxList(node: ts.Node): node is ts.SyntaxList; +export declare function isTaggedTemplateExpression(node: ts.Node): node is ts.TaggedTemplateExpression; +export declare function isTemplateExpression(node: ts.Node): node is ts.TemplateExpression; +export declare function isTemplateLiteral(node: ts.Node): node is ts.TemplateLiteral; +export declare function isTextualLiteral(node: ts.Node): node is ts.StringLiteral | ts.NoSubstitutionTemplateLiteral; +export declare function isThrowStatement(node: ts.Node): node is ts.ThrowStatement; +export declare function isTryStatement(node: ts.Node): node is ts.TryStatement; +export declare function isTupleTypeNode(node: ts.Node): node is ts.TupleTypeNode; +export declare function isTypeAliasDeclaration(node: ts.Node): node is ts.TypeAliasDeclaration; +export declare function isTypeAssertion(node: ts.Node): node is ts.TypeAssertion; +export declare function isTypeLiteralNode(node: ts.Node): node is ts.TypeLiteralNode; +export declare function isTypeOfExpression(node: ts.Node): node is ts.TypeOfExpression; +export declare function isTypeOperatorNode(node: ts.Node): node is ts.TypeOperatorNode; +export declare function isTypeParameterDeclaration(node: ts.Node): node is ts.TypeParameterDeclaration; +export declare function isTypePredicateNode(node: ts.Node): node is ts.TypePredicateNode; +export declare function isTypeReferenceNode(node: ts.Node): node is ts.TypeReferenceNode; +export declare function isTypeQueryNode(node: ts.Node): node is ts.TypeQueryNode; +export declare function isUnionTypeNode(node: ts.Node): node is ts.UnionTypeNode; +export declare function isVariableDeclaration(node: ts.Node): node is ts.VariableDeclaration; +export declare function isVariableStatement(node: ts.Node): node is ts.VariableStatement; +export declare function isVariableDeclarationList(node: ts.Node): node is ts.VariableDeclarationList; +export declare function isVoidExpression(node: ts.Node): node is ts.VoidExpression; +export declare function isWhileStatement(node: ts.Node): node is ts.WhileStatement; +export declare function isWithStatement(node: ts.Node): node is ts.WithStatement; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.js new file mode 100644 index 000000000..b63a09be9 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/node.js @@ -0,0 +1,709 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +function isAccessorDeclaration(node) { + return node.kind === ts.SyntaxKind.GetAccessor || + node.kind === ts.SyntaxKind.SetAccessor; +} +exports.isAccessorDeclaration = isAccessorDeclaration; +function isArrayBindingPattern(node) { + return node.kind === ts.SyntaxKind.ArrayBindingPattern; +} +exports.isArrayBindingPattern = isArrayBindingPattern; +function isArrayLiteralExpression(node) { + return node.kind === ts.SyntaxKind.ArrayLiteralExpression; +} +exports.isArrayLiteralExpression = isArrayLiteralExpression; +function isArrayTypeNode(node) { + return node.kind === ts.SyntaxKind.ArrayType; +} +exports.isArrayTypeNode = isArrayTypeNode; +function isArrowFunction(node) { + return node.kind === ts.SyntaxKind.ArrowFunction; +} +exports.isArrowFunction = isArrowFunction; +function isAsExpression(node) { + return node.kind === ts.SyntaxKind.AsExpression; +} +exports.isAsExpression = isAsExpression; +function isAssertionExpression(node) { + return node.kind === ts.SyntaxKind.AsExpression || + node.kind === ts.SyntaxKind.TypeAssertionExpression; +} +exports.isAssertionExpression = isAssertionExpression; +function isAwaitExpression(node) { + return node.kind === ts.SyntaxKind.AwaitExpression; +} +exports.isAwaitExpression = isAwaitExpression; +function isBinaryExpression(node) { + return node.kind === ts.SyntaxKind.BinaryExpression; +} +exports.isBinaryExpression = isBinaryExpression; +function isBindingElement(node) { + return node.kind === ts.SyntaxKind.BindingElement; +} +exports.isBindingElement = isBindingElement; +function isBindingPattern(node) { + return node.kind === ts.SyntaxKind.ArrayBindingPattern || + node.kind === ts.SyntaxKind.ObjectBindingPattern; +} +exports.isBindingPattern = isBindingPattern; +function isBlock(node) { + return node.kind === ts.SyntaxKind.Block; +} +exports.isBlock = isBlock; +function isBlockLike(node) { + return node.statements !== undefined; +} +exports.isBlockLike = isBlockLike; +function isBooleanLiteral(node) { + return node.kind === ts.SyntaxKind.TrueKeyword || node.kind === ts.SyntaxKind.FalseKeyword; +} +exports.isBooleanLiteral = isBooleanLiteral; +function isBreakOrContinueStatement(node) { + return node.kind === ts.SyntaxKind.BreakStatement || + node.kind === ts.SyntaxKind.ContinueStatement; +} +exports.isBreakOrContinueStatement = isBreakOrContinueStatement; +function isBreakStatement(node) { + return node.kind === ts.SyntaxKind.BreakStatement; +} +exports.isBreakStatement = isBreakStatement; +function isCallExpression(node) { + return node.kind === ts.SyntaxKind.CallExpression; +} +exports.isCallExpression = isCallExpression; +function isCallLikeExpression(node) { + switch (node.kind) { + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.Decorator: + case ts.SyntaxKind.JsxOpeningElement: + case ts.SyntaxKind.JsxSelfClosingElement: + case ts.SyntaxKind.NewExpression: + case ts.SyntaxKind.TaggedTemplateExpression: + return true; + default: + return false; + } +} +exports.isCallLikeExpression = isCallLikeExpression; +function isCallSignatureDeclaration(node) { + return node.kind === ts.SyntaxKind.CallSignature; +} +exports.isCallSignatureDeclaration = isCallSignatureDeclaration; +function isCaseBlock(node) { + return node.kind === ts.SyntaxKind.CaseBlock; +} +exports.isCaseBlock = isCaseBlock; +function isCaseClause(node) { + return node.kind === ts.SyntaxKind.CaseClause; +} +exports.isCaseClause = isCaseClause; +function isCaseOrDefaultClause(node) { + return node.kind === ts.SyntaxKind.CaseClause || + node.kind === ts.SyntaxKind.DefaultClause; +} +exports.isCaseOrDefaultClause = isCaseOrDefaultClause; +function isCatchClause(node) { + return node.kind === ts.SyntaxKind.CatchClause; +} +exports.isCatchClause = isCatchClause; +function isClassDeclaration(node) { + return node.kind === ts.SyntaxKind.ClassDeclaration; +} +exports.isClassDeclaration = isClassDeclaration; +function isClassExpression(node) { + return node.kind === ts.SyntaxKind.ClassExpression; +} +exports.isClassExpression = isClassExpression; +function isClassLikeDeclaration(node) { + return node.kind === ts.SyntaxKind.ClassDeclaration || + node.kind === ts.SyntaxKind.ClassExpression; +} +exports.isClassLikeDeclaration = isClassLikeDeclaration; +function isCommaListExpression(node) { + return node.kind === ts.SyntaxKind.CommaListExpression; +} +exports.isCommaListExpression = isCommaListExpression; +function isConditionalExpression(node) { + return node.kind === ts.SyntaxKind.ConditionalExpression; +} +exports.isConditionalExpression = isConditionalExpression; +function isConditionalTypeNode(node) { + return node.kind === ts.SyntaxKind.ConditionalType; +} +exports.isConditionalTypeNode = isConditionalTypeNode; +function isConstructorDeclaration(node) { + return node.kind === ts.SyntaxKind.Constructor; +} +exports.isConstructorDeclaration = isConstructorDeclaration; +function isConstructorTypeNode(node) { + return node.kind === ts.SyntaxKind.ConstructorType; +} +exports.isConstructorTypeNode = isConstructorTypeNode; +function isConstructSignatureDeclaration(node) { + return node.kind === ts.SyntaxKind.ConstructSignature; +} +exports.isConstructSignatureDeclaration = isConstructSignatureDeclaration; +function isContinueStatement(node) { + return node.kind === ts.SyntaxKind.ContinueStatement; +} +exports.isContinueStatement = isContinueStatement; +function isComputedPropertyName(node) { + return node.kind === ts.SyntaxKind.ComputedPropertyName; +} +exports.isComputedPropertyName = isComputedPropertyName; +function isDebuggerStatement(node) { + return node.kind === ts.SyntaxKind.DebuggerStatement; +} +exports.isDebuggerStatement = isDebuggerStatement; +function isDecorator(node) { + return node.kind === ts.SyntaxKind.Decorator; +} +exports.isDecorator = isDecorator; +function isDefaultClause(node) { + return node.kind === ts.SyntaxKind.DefaultClause; +} +exports.isDefaultClause = isDefaultClause; +function isDeleteExpression(node) { + return node.kind === ts.SyntaxKind.DeleteExpression; +} +exports.isDeleteExpression = isDeleteExpression; +function isDoStatement(node) { + return node.kind === ts.SyntaxKind.DoStatement; +} +exports.isDoStatement = isDoStatement; +function isElementAccessExpression(node) { + return node.kind === ts.SyntaxKind.ElementAccessExpression; +} +exports.isElementAccessExpression = isElementAccessExpression; +function isEmptyStatement(node) { + return node.kind === ts.SyntaxKind.EmptyStatement; +} +exports.isEmptyStatement = isEmptyStatement; +function isEntityName(node) { + return node.kind === ts.SyntaxKind.Identifier || isQualifiedName(node); +} +exports.isEntityName = isEntityName; +function isEntityNameExpression(node) { + return node.kind === ts.SyntaxKind.Identifier || + isPropertyAccessExpression(node) && isEntityNameExpression(node.expression); +} +exports.isEntityNameExpression = isEntityNameExpression; +function isEnumDeclaration(node) { + return node.kind === ts.SyntaxKind.EnumDeclaration; +} +exports.isEnumDeclaration = isEnumDeclaration; +function isEnumMember(node) { + return node.kind === ts.SyntaxKind.EnumMember; +} +exports.isEnumMember = isEnumMember; +function isExportAssignment(node) { + return node.kind === ts.SyntaxKind.ExportAssignment; +} +exports.isExportAssignment = isExportAssignment; +function isExportDeclaration(node) { + return node.kind === ts.SyntaxKind.ExportDeclaration; +} +exports.isExportDeclaration = isExportDeclaration; +function isExportSpecifier(node) { + return node.kind === ts.SyntaxKind.ExportSpecifier; +} +exports.isExportSpecifier = isExportSpecifier; +function isExpression(node) { + switch (node.kind) { + case ts.SyntaxKind.ArrayLiteralExpression: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.AsExpression: + case ts.SyntaxKind.AwaitExpression: + case ts.SyntaxKind.BinaryExpression: + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.ClassExpression: + case ts.SyntaxKind.CommaListExpression: + case ts.SyntaxKind.ConditionalExpression: + case ts.SyntaxKind.DeleteExpression: + case ts.SyntaxKind.ElementAccessExpression: + case ts.SyntaxKind.FalseKeyword: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.Identifier: + case ts.SyntaxKind.JsxElement: + case ts.SyntaxKind.JsxFragment: + case ts.SyntaxKind.JsxExpression: + case ts.SyntaxKind.JsxOpeningElement: + case ts.SyntaxKind.JsxOpeningFragment: + case ts.SyntaxKind.JsxSelfClosingElement: + case ts.SyntaxKind.MetaProperty: + case ts.SyntaxKind.NewExpression: + case ts.SyntaxKind.NonNullExpression: + case ts.SyntaxKind.NoSubstitutionTemplateLiteral: + case ts.SyntaxKind.NullKeyword: + case ts.SyntaxKind.NumericLiteral: + case ts.SyntaxKind.ObjectLiteralExpression: + case ts.SyntaxKind.OmittedExpression: + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.PostfixUnaryExpression: + case ts.SyntaxKind.PrefixUnaryExpression: + case ts.SyntaxKind.PropertyAccessExpression: + case ts.SyntaxKind.RegularExpressionLiteral: + case ts.SyntaxKind.SpreadElement: + case ts.SyntaxKind.StringLiteral: + case ts.SyntaxKind.SuperKeyword: + case ts.SyntaxKind.TaggedTemplateExpression: + case ts.SyntaxKind.TemplateExpression: + case ts.SyntaxKind.ThisKeyword: + case ts.SyntaxKind.TrueKeyword: + case ts.SyntaxKind.TypeAssertionExpression: + case ts.SyntaxKind.TypeOfExpression: + case ts.SyntaxKind.VoidExpression: + case ts.SyntaxKind.YieldExpression: + return true; + default: + return false; + } +} +exports.isExpression = isExpression; +function isExpressionStatement(node) { + return node.kind === ts.SyntaxKind.ExpressionStatement; +} +exports.isExpressionStatement = isExpressionStatement; +function isExpressionWithTypeArguments(node) { + return node.kind === ts.SyntaxKind.ExpressionWithTypeArguments; +} +exports.isExpressionWithTypeArguments = isExpressionWithTypeArguments; +function isExternalModuleReference(node) { + return node.kind === ts.SyntaxKind.ExternalModuleReference; +} +exports.isExternalModuleReference = isExternalModuleReference; +function isForInStatement(node) { + return node.kind === ts.SyntaxKind.ForInStatement; +} +exports.isForInStatement = isForInStatement; +function isForInOrOfStatement(node) { + return node.kind === ts.SyntaxKind.ForOfStatement || node.kind === ts.SyntaxKind.ForInStatement; +} +exports.isForInOrOfStatement = isForInOrOfStatement; +function isForOfStatement(node) { + return node.kind === ts.SyntaxKind.ForOfStatement; +} +exports.isForOfStatement = isForOfStatement; +function isForStatement(node) { + return node.kind === ts.SyntaxKind.ForStatement; +} +exports.isForStatement = isForStatement; +function isFunctionDeclaration(node) { + return node.kind === ts.SyntaxKind.FunctionDeclaration; +} +exports.isFunctionDeclaration = isFunctionDeclaration; +function isFunctionExpression(node) { + return node.kind === ts.SyntaxKind.FunctionExpression; +} +exports.isFunctionExpression = isFunctionExpression; +function isFunctionTypeNode(node) { + return node.kind === ts.SyntaxKind.FunctionType; +} +exports.isFunctionTypeNode = isFunctionTypeNode; +function isGetAccessorDeclaration(node) { + return node.kind === ts.SyntaxKind.GetAccessor; +} +exports.isGetAccessorDeclaration = isGetAccessorDeclaration; +function isIdentifier(node) { + return node.kind === ts.SyntaxKind.Identifier; +} +exports.isIdentifier = isIdentifier; +function isIfStatement(node) { + return node.kind === ts.SyntaxKind.IfStatement; +} +exports.isIfStatement = isIfStatement; +function isImportClause(node) { + return node.kind === ts.SyntaxKind.ImportClause; +} +exports.isImportClause = isImportClause; +function isImportDeclaration(node) { + return node.kind === ts.SyntaxKind.ImportDeclaration; +} +exports.isImportDeclaration = isImportDeclaration; +function isImportEqualsDeclaration(node) { + return node.kind === ts.SyntaxKind.ImportEqualsDeclaration; +} +exports.isImportEqualsDeclaration = isImportEqualsDeclaration; +function isImportSpecifier(node) { + return node.kind === ts.SyntaxKind.ImportSpecifier; +} +exports.isImportSpecifier = isImportSpecifier; +function isIndexedAccessTypeNode(node) { + return node.kind === ts.SyntaxKind.IndexedAccessType; +} +exports.isIndexedAccessTypeNode = isIndexedAccessTypeNode; +function isIndexSignatureDeclaration(node) { + return node.kind === ts.SyntaxKind.IndexSignature; +} +exports.isIndexSignatureDeclaration = isIndexSignatureDeclaration; +function isInferTypeNode(node) { + return node.kind === ts.SyntaxKind.InferType; +} +exports.isInferTypeNode = isInferTypeNode; +function isInterfaceDeclaration(node) { + return node.kind === ts.SyntaxKind.InterfaceDeclaration; +} +exports.isInterfaceDeclaration = isInterfaceDeclaration; +function isIntersectionTypeNode(node) { + return node.kind === ts.SyntaxKind.IntersectionType; +} +exports.isIntersectionTypeNode = isIntersectionTypeNode; +function isIterationStatement(node) { + switch (node.kind) { + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.ForInStatement: + case ts.SyntaxKind.WhileStatement: + case ts.SyntaxKind.DoStatement: + return true; + default: + return false; + } +} +exports.isIterationStatement = isIterationStatement; +function isJsDoc(node) { + return node.kind === ts.SyntaxKind.JSDocComment; +} +exports.isJsDoc = isJsDoc; +function isJsxAttribute(node) { + return node.kind === ts.SyntaxKind.JsxAttribute; +} +exports.isJsxAttribute = isJsxAttribute; +function isJsxAttributeLike(node) { + return node.kind === ts.SyntaxKind.JsxAttribute || + node.kind === ts.SyntaxKind.JsxSpreadAttribute; +} +exports.isJsxAttributeLike = isJsxAttributeLike; +function isJsxAttributes(node) { + return node.kind === ts.SyntaxKind.JsxAttributes; +} +exports.isJsxAttributes = isJsxAttributes; +function isJsxClosingElement(node) { + return node.kind === ts.SyntaxKind.JsxClosingElement; +} +exports.isJsxClosingElement = isJsxClosingElement; +function isJsxClosingFragment(node) { + return node.kind === ts.SyntaxKind.JsxClosingFragment; +} +exports.isJsxClosingFragment = isJsxClosingFragment; +function isJsxElement(node) { + return node.kind === ts.SyntaxKind.JsxElement; +} +exports.isJsxElement = isJsxElement; +function isJsxExpression(node) { + return node.kind === ts.SyntaxKind.JsxExpression; +} +exports.isJsxExpression = isJsxExpression; +function isJsxFragment(node) { + return node.kind === ts.SyntaxKind.JsxFragment; +} +exports.isJsxFragment = isJsxFragment; +function isJsxOpeningElement(node) { + return node.kind === ts.SyntaxKind.JsxOpeningElement; +} +exports.isJsxOpeningElement = isJsxOpeningElement; +function isJsxOpeningFragment(node) { + return node.kind === ts.SyntaxKind.JsxOpeningFragment; +} +exports.isJsxOpeningFragment = isJsxOpeningFragment; +function isJsxOpeningLikeElement(node) { + return node.kind === ts.SyntaxKind.JsxOpeningElement || + node.kind === ts.SyntaxKind.JsxSelfClosingElement; +} +exports.isJsxOpeningLikeElement = isJsxOpeningLikeElement; +function isJsxSelfClosingElement(node) { + return node.kind === ts.SyntaxKind.JsxSelfClosingElement; +} +exports.isJsxSelfClosingElement = isJsxSelfClosingElement; +function isJsxSpreadAttribute(node) { + return node.kind === ts.SyntaxKind.JsxSpreadAttribute; +} +exports.isJsxSpreadAttribute = isJsxSpreadAttribute; +function isJsxText(node) { + return node.kind === ts.SyntaxKind.JsxText; +} +exports.isJsxText = isJsxText; +function isLabeledStatement(node) { + return node.kind === ts.SyntaxKind.LabeledStatement; +} +exports.isLabeledStatement = isLabeledStatement; +function isLiteralExpression(node) { + return node.kind >= ts.SyntaxKind.FirstLiteralToken && + node.kind <= ts.SyntaxKind.LastLiteralToken; +} +exports.isLiteralExpression = isLiteralExpression; +function isLiteralTypeNode(node) { + return node.kind === ts.SyntaxKind.LiteralType; +} +exports.isLiteralTypeNode = isLiteralTypeNode; +function isMappedTypeNode(node) { + return node.kind === ts.SyntaxKind.MappedType; +} +exports.isMappedTypeNode = isMappedTypeNode; +function isMetaProperty(node) { + return node.kind === ts.SyntaxKind.MetaProperty; +} +exports.isMetaProperty = isMetaProperty; +function isMethodDeclaration(node) { + return node.kind === ts.SyntaxKind.MethodDeclaration; +} +exports.isMethodDeclaration = isMethodDeclaration; +function isMethodSignature(node) { + return node.kind === ts.SyntaxKind.MethodSignature; +} +exports.isMethodSignature = isMethodSignature; +function isModuleBlock(node) { + return node.kind === ts.SyntaxKind.ModuleBlock; +} +exports.isModuleBlock = isModuleBlock; +function isModuleDeclaration(node) { + return node.kind === ts.SyntaxKind.ModuleDeclaration; +} +exports.isModuleDeclaration = isModuleDeclaration; +function isNamedExports(node) { + return node.kind === ts.SyntaxKind.NamedExports; +} +exports.isNamedExports = isNamedExports; +function isNamedImports(node) { + return node.kind === ts.SyntaxKind.NamedImports; +} +exports.isNamedImports = isNamedImports; +function isNamespaceDeclaration(node) { + return isModuleDeclaration(node) && + node.name.kind === ts.SyntaxKind.Identifier && + node.body !== undefined && + (node.body.kind === ts.SyntaxKind.ModuleBlock || + isNamespaceDeclaration(node.body)); +} +exports.isNamespaceDeclaration = isNamespaceDeclaration; +function isNamespaceImport(node) { + return node.kind === ts.SyntaxKind.NamespaceImport; +} +exports.isNamespaceImport = isNamespaceImport; +function isNamespaceExportDeclaration(node) { + return node.kind === ts.SyntaxKind.NamespaceExportDeclaration; +} +exports.isNamespaceExportDeclaration = isNamespaceExportDeclaration; +function isNewExpression(node) { + return node.kind === ts.SyntaxKind.NewExpression; +} +exports.isNewExpression = isNewExpression; +function isNonNullExpression(node) { + return node.kind === ts.SyntaxKind.NonNullExpression; +} +exports.isNonNullExpression = isNonNullExpression; +function isNoSubstitutionTemplateLiteral(node) { + return node.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral; +} +exports.isNoSubstitutionTemplateLiteral = isNoSubstitutionTemplateLiteral; +function isNullLiteral(node) { + return node.kind === ts.SyntaxKind.NullKeyword; +} +exports.isNullLiteral = isNullLiteral; +function isNumericLiteral(node) { + return node.kind === ts.SyntaxKind.NumericLiteral; +} +exports.isNumericLiteral = isNumericLiteral; +function isNumericOrStringLikeLiteral(node) { + switch (node.kind) { + case ts.SyntaxKind.StringLiteral: + case ts.SyntaxKind.NumericLiteral: + case ts.SyntaxKind.NoSubstitutionTemplateLiteral: + return true; + default: + return false; + } +} +exports.isNumericOrStringLikeLiteral = isNumericOrStringLikeLiteral; +function isObjectBindingPattern(node) { + return node.kind === ts.SyntaxKind.ObjectBindingPattern; +} +exports.isObjectBindingPattern = isObjectBindingPattern; +function isObjectLiteralExpression(node) { + return node.kind === ts.SyntaxKind.ObjectLiteralExpression; +} +exports.isObjectLiteralExpression = isObjectLiteralExpression; +function isOmittedExpression(node) { + return node.kind === ts.SyntaxKind.OmittedExpression; +} +exports.isOmittedExpression = isOmittedExpression; +function isParameterDeclaration(node) { + return node.kind === ts.SyntaxKind.Parameter; +} +exports.isParameterDeclaration = isParameterDeclaration; +function isParenthesizedExpression(node) { + return node.kind === ts.SyntaxKind.ParenthesizedExpression; +} +exports.isParenthesizedExpression = isParenthesizedExpression; +function isParenthesizedTypeNode(node) { + return node.kind === ts.SyntaxKind.ParenthesizedType; +} +exports.isParenthesizedTypeNode = isParenthesizedTypeNode; +function isPostfixUnaryExpression(node) { + return node.kind === ts.SyntaxKind.PostfixUnaryExpression; +} +exports.isPostfixUnaryExpression = isPostfixUnaryExpression; +function isPrefixUnaryExpression(node) { + return node.kind === ts.SyntaxKind.PrefixUnaryExpression; +} +exports.isPrefixUnaryExpression = isPrefixUnaryExpression; +function isPropertyAccessExpression(node) { + return node.kind === ts.SyntaxKind.PropertyAccessExpression; +} +exports.isPropertyAccessExpression = isPropertyAccessExpression; +function isPropertyAssignment(node) { + return node.kind === ts.SyntaxKind.PropertyAssignment; +} +exports.isPropertyAssignment = isPropertyAssignment; +function isPropertyDeclaration(node) { + return node.kind === ts.SyntaxKind.PropertyDeclaration; +} +exports.isPropertyDeclaration = isPropertyDeclaration; +function isPropertySignature(node) { + return node.kind === ts.SyntaxKind.PropertySignature; +} +exports.isPropertySignature = isPropertySignature; +function isQualifiedName(node) { + return node.kind === ts.SyntaxKind.QualifiedName; +} +exports.isQualifiedName = isQualifiedName; +function isRegularExpressionLiteral(node) { + return node.kind === ts.SyntaxKind.RegularExpressionLiteral; +} +exports.isRegularExpressionLiteral = isRegularExpressionLiteral; +function isReturnStatement(node) { + return node.kind === ts.SyntaxKind.ReturnStatement; +} +exports.isReturnStatement = isReturnStatement; +function isSetAccessorDeclaration(node) { + return node.kind === ts.SyntaxKind.SetAccessor; +} +exports.isSetAccessorDeclaration = isSetAccessorDeclaration; +function isShorthandPropertyAssignment(node) { + return node.kind === ts.SyntaxKind.ShorthandPropertyAssignment; +} +exports.isShorthandPropertyAssignment = isShorthandPropertyAssignment; +function isSignatureDeclaration(node) { + return node.parameters !== undefined; +} +exports.isSignatureDeclaration = isSignatureDeclaration; +function isSourceFile(node) { + return node.kind === ts.SyntaxKind.SourceFile; +} +exports.isSourceFile = isSourceFile; +function isSpreadAssignment(node) { + return node.kind === ts.SyntaxKind.SpreadAssignment; +} +exports.isSpreadAssignment = isSpreadAssignment; +function isSpreadElement(node) { + return node.kind === ts.SyntaxKind.SpreadElement; +} +exports.isSpreadElement = isSpreadElement; +function isStringLiteral(node) { + return node.kind === ts.SyntaxKind.StringLiteral; +} +exports.isStringLiteral = isStringLiteral; +function isSwitchStatement(node) { + return node.kind === ts.SyntaxKind.SwitchStatement; +} +exports.isSwitchStatement = isSwitchStatement; +function isSyntaxList(node) { + return node.kind === ts.SyntaxKind.SyntaxList; +} +exports.isSyntaxList = isSyntaxList; +function isTaggedTemplateExpression(node) { + return node.kind === ts.SyntaxKind.TaggedTemplateExpression; +} +exports.isTaggedTemplateExpression = isTaggedTemplateExpression; +function isTemplateExpression(node) { + return node.kind === ts.SyntaxKind.TemplateExpression; +} +exports.isTemplateExpression = isTemplateExpression; +function isTemplateLiteral(node) { + return node.kind === ts.SyntaxKind.TemplateExpression || + node.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral; +} +exports.isTemplateLiteral = isTemplateLiteral; +function isTextualLiteral(node) { + return node.kind === ts.SyntaxKind.StringLiteral || + node.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral; +} +exports.isTextualLiteral = isTextualLiteral; +function isThrowStatement(node) { + return node.kind === ts.SyntaxKind.ThrowStatement; +} +exports.isThrowStatement = isThrowStatement; +function isTryStatement(node) { + return node.kind === ts.SyntaxKind.TryStatement; +} +exports.isTryStatement = isTryStatement; +function isTupleTypeNode(node) { + return node.kind === ts.SyntaxKind.TupleType; +} +exports.isTupleTypeNode = isTupleTypeNode; +function isTypeAliasDeclaration(node) { + return node.kind === ts.SyntaxKind.TypeAliasDeclaration; +} +exports.isTypeAliasDeclaration = isTypeAliasDeclaration; +function isTypeAssertion(node) { + return node.kind === ts.SyntaxKind.TypeAssertionExpression; +} +exports.isTypeAssertion = isTypeAssertion; +function isTypeLiteralNode(node) { + return node.kind === ts.SyntaxKind.TypeLiteral; +} +exports.isTypeLiteralNode = isTypeLiteralNode; +function isTypeOfExpression(node) { + return node.kind === ts.SyntaxKind.TypeOfExpression; +} +exports.isTypeOfExpression = isTypeOfExpression; +function isTypeOperatorNode(node) { + return node.kind === ts.SyntaxKind.TypeOperator; +} +exports.isTypeOperatorNode = isTypeOperatorNode; +function isTypeParameterDeclaration(node) { + return node.kind === ts.SyntaxKind.TypeParameter; +} +exports.isTypeParameterDeclaration = isTypeParameterDeclaration; +function isTypePredicateNode(node) { + return node.kind === ts.SyntaxKind.TypePredicate; +} +exports.isTypePredicateNode = isTypePredicateNode; +function isTypeReferenceNode(node) { + return node.kind === ts.SyntaxKind.TypeReference; +} +exports.isTypeReferenceNode = isTypeReferenceNode; +function isTypeQueryNode(node) { + return node.kind === ts.SyntaxKind.TypeQuery; +} +exports.isTypeQueryNode = isTypeQueryNode; +function isUnionTypeNode(node) { + return node.kind === ts.SyntaxKind.UnionType; +} +exports.isUnionTypeNode = isUnionTypeNode; +function isVariableDeclaration(node) { + return node.kind === ts.SyntaxKind.VariableDeclaration; +} +exports.isVariableDeclaration = isVariableDeclaration; +function isVariableStatement(node) { + return node.kind === ts.SyntaxKind.VariableStatement; +} +exports.isVariableStatement = isVariableStatement; +function isVariableDeclarationList(node) { + return node.kind === ts.SyntaxKind.VariableDeclarationList; +} +exports.isVariableDeclarationList = isVariableDeclarationList; +function isVoidExpression(node) { + return node.kind === ts.SyntaxKind.VoidExpression; +} +exports.isVoidExpression = isVoidExpression; +function isWhileStatement(node) { + return node.kind === ts.SyntaxKind.WhileStatement; +} +exports.isWhileStatement = isWhileStatement; +function isWithStatement(node) { + return node.kind === ts.SyntaxKind.WithStatement; +} +exports.isWithStatement = isWithStatement; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.d.ts new file mode 100644 index 000000000..45b6bc3d3 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.d.ts @@ -0,0 +1,18 @@ +import * as ts from 'typescript'; +export declare function isConditionalType(type: ts.Type): type is ts.ConditionalType; +export declare function isEnumType(type: ts.Type): type is ts.EnumType; +export declare function isGenericType(type: ts.Type): type is ts.GenericType; +export declare function isIndexedAccessType(type: ts.Type): type is ts.IndexedAccessType; +export declare function isIndexedAccessype(type: ts.Type): type is ts.IndexType; +export declare function isInstantiableType(type: ts.Type): type is ts.InstantiableType; +export declare function isInterfaceType(type: ts.Type): type is ts.InterfaceType; +export declare function isIntersectionType(type: ts.Type): type is ts.IntersectionType; +export declare function isLiteralType(type: ts.Type): type is ts.LiteralType; +export declare function isObjectType(type: ts.Type): type is ts.ObjectType; +export declare function isSubstitutionType(type: ts.Type): type is ts.SubstitutionType; +export declare function isTypeParameter(type: ts.Type): type is ts.TypeParameter; +export declare function isTypeReference(type: ts.Type): type is ts.TypeReference; +export declare function isTypeVariable(type: ts.Type): type is ts.TypeParameter | ts.IndexedAccessType; +export declare function isUnionOrIntersectionType(type: ts.Type): type is ts.UnionOrIntersectionType; +export declare function isUnionType(type: ts.Type): type is ts.UnionType; +export declare function isUniqueESSymbolType(type: ts.Type): type is ts.UniqueESSymbolType; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.js new file mode 100644 index 000000000..01fc06ead --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.8/type.js @@ -0,0 +1,75 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +function isConditionalType(type) { + return (type.flags & ts.TypeFlags.Conditional) !== 0; +} +exports.isConditionalType = isConditionalType; +function isEnumType(type) { + return (type.flags & ts.TypeFlags.Enum) !== 0; +} +exports.isEnumType = isEnumType; +function isGenericType(type) { + return (type.flags & ts.TypeFlags.Object) !== 0 && + (type.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0 && + (type.objectFlags & ts.ObjectFlags.Reference) !== 0; +} +exports.isGenericType = isGenericType; +function isIndexedAccessType(type) { + return (type.flags & ts.TypeFlags.IndexedAccess) !== 0; +} +exports.isIndexedAccessType = isIndexedAccessType; +function isIndexedAccessype(type) { + return (type.flags & ts.TypeFlags.Index) !== 0; +} +exports.isIndexedAccessype = isIndexedAccessype; +function isInstantiableType(type) { + return (type.flags & ts.TypeFlags.Instantiable) !== 0; +} +exports.isInstantiableType = isInstantiableType; +function isInterfaceType(type) { + return (type.flags & ts.TypeFlags.Object) !== 0 && + (type.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0; +} +exports.isInterfaceType = isInterfaceType; +function isIntersectionType(type) { + return (type.flags & ts.TypeFlags.Intersection) !== 0; +} +exports.isIntersectionType = isIntersectionType; +function isLiteralType(type) { + return (type.flags & (ts.TypeFlags.StringOrNumberLiteral | ts.TypeFlags.BigIntLiteral)) !== 0; +} +exports.isLiteralType = isLiteralType; +function isObjectType(type) { + return (type.flags & ts.TypeFlags.Object) !== 0; +} +exports.isObjectType = isObjectType; +function isSubstitutionType(type) { + return (type.flags & ts.TypeFlags.Substitution) !== 0; +} +exports.isSubstitutionType = isSubstitutionType; +function isTypeParameter(type) { + return (type.flags & ts.TypeFlags.TypeParameter) !== 0; +} +exports.isTypeParameter = isTypeParameter; +function isTypeReference(type) { + return (type.flags & ts.TypeFlags.Object) !== 0 && + (type.objectFlags & ts.ObjectFlags.Reference) !== 0; +} +exports.isTypeReference = isTypeReference; +function isTypeVariable(type) { + return (type.flags & ts.TypeFlags.TypeVariable) !== 0; +} +exports.isTypeVariable = isTypeVariable; +function isUnionOrIntersectionType(type) { + return (type.flags & ts.TypeFlags.UnionOrIntersection) !== 0; +} +exports.isUnionOrIntersectionType = isUnionOrIntersectionType; +function isUnionType(type) { + return (type.flags & ts.TypeFlags.Union) !== 0; +} +exports.isUnionType = isUnionType; +function isUniqueESSymbolType(type) { + return (type.flags & ts.TypeFlags.UniqueESSymbol) !== 0; +} +exports.isUniqueESSymbolType = isUniqueESSymbolType; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.d.ts new file mode 100644 index 000000000..bf2ec1d1f --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.d.ts @@ -0,0 +1,3 @@ +export * from '../2.8/node'; +import * as ts from 'typescript'; +export declare function isImportTypeNode(node: ts.Node): node is ts.ImportTypeNode; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.js new file mode 100644 index 000000000..e24159778 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/node.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../2.8/node"), exports); +const ts = require("typescript"); +function isImportTypeNode(node) { + return node.kind === ts.SyntaxKind.ImportType; +} +exports.isImportTypeNode = isImportTypeNode; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.d.ts new file mode 100644 index 000000000..ec83ac3f4 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.d.ts @@ -0,0 +1 @@ +export * from '../2.8/type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.js new file mode 100644 index 000000000..9315cac2b --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/2.9/type.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../2.8/type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.d.ts new file mode 100644 index 000000000..305991140 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.d.ts @@ -0,0 +1,5 @@ +export * from '../2.9/node'; +import * as ts from 'typescript'; +export declare function isOptionalTypeNode(node: ts.Node): node is ts.OptionalTypeNode; +export declare function isRestTypeNode(node: ts.Node): node is ts.RestTypeNode; +export declare function isSyntheticExpression(node: ts.Node): node is ts.SyntheticExpression; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.js new file mode 100644 index 000000000..943bb36e8 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/node.js @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../2.9/node"), exports); +const ts = require("typescript"); +function isOptionalTypeNode(node) { + return node.kind === ts.SyntaxKind.OptionalType; +} +exports.isOptionalTypeNode = isOptionalTypeNode; +function isRestTypeNode(node) { + return node.kind === ts.SyntaxKind.RestType; +} +exports.isRestTypeNode = isRestTypeNode; +function isSyntheticExpression(node) { + return node.kind === ts.SyntaxKind.SyntheticExpression; +} +exports.isSyntheticExpression = isSyntheticExpression; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.d.ts new file mode 100644 index 000000000..5cf0df95a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.d.ts @@ -0,0 +1,6 @@ +export * from '../2.9/type'; +import * as ts from 'typescript'; +export declare function isTupleType(type: ts.Type): type is ts.TupleType; +export declare function isTupleTypeReference(type: ts.Type): type is ts.TypeReference & { + target: ts.TupleType; +}; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.js new file mode 100644 index 000000000..7ec876f8f --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.0/type.js @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../2.9/type"), exports); +const ts = require("typescript"); +const type_1 = require("../2.9/type"); +function isTupleType(type) { + return (type.flags & ts.TypeFlags.Object && type.objectFlags & ts.ObjectFlags.Tuple) !== 0; +} +exports.isTupleType = isTupleType; +function isTupleTypeReference(type) { + return type_1.isTypeReference(type) && isTupleType(type.target); +} +exports.isTupleTypeReference = isTupleTypeReference; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.d.ts new file mode 100644 index 000000000..cf88ae114 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.d.ts @@ -0,0 +1,3 @@ +export * from '../3.0/node'; +import * as ts from 'typescript'; +export declare function isBigIntLiteral(node: ts.Node): node is ts.BigIntLiteral; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.js new file mode 100644 index 000000000..26e8c1a74 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/node.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../3.0/node"), exports); +const ts = require("typescript"); +function isBigIntLiteral(node) { + return node.kind === ts.SyntaxKind.BigIntLiteral; +} +exports.isBigIntLiteral = isBigIntLiteral; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.d.ts new file mode 100644 index 000000000..fee77fb18 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.d.ts @@ -0,0 +1 @@ +export * from '../3.0/type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.js new file mode 100644 index 000000000..d800ef841 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/3.2/type.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../3.0/type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.d.ts new file mode 100644 index 000000000..71762921c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +export * from './type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.js new file mode 100644 index 000000000..0c381e79a --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/index.js @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./node"), exports); +tslib_1.__exportStar(require("./type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.d.ts new file mode 100644 index 000000000..d64678a34 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.d.ts @@ -0,0 +1 @@ +export * from '../3.2/node'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.js new file mode 100644 index 000000000..e2c022f12 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/node.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../3.2/node"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.d.ts new file mode 100644 index 000000000..6cd4408ac --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.d.ts @@ -0,0 +1 @@ +export * from '../3.2/type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.js new file mode 100644 index 000000000..ef88473b6 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/next/type.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("../3.2/type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.d.ts new file mode 100644 index 000000000..f6a9f8b7d --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.d.ts @@ -0,0 +1 @@ +export * from './3.2/node'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.js new file mode 100644 index 000000000..3d8e37608 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/node.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./3.2/node"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.d.ts new file mode 100644 index 000000000..8a20aeb1f --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.d.ts @@ -0,0 +1 @@ +export * from './3.2/type'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.js new file mode 100644 index 000000000..cecc6fd6c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/typeguard/type.js @@ -0,0 +1,4 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./3.2/type"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.d.ts new file mode 100644 index 000000000..528155c1b --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.d.ts @@ -0,0 +1,8 @@ +import * as ts from 'typescript'; +export declare function endsControlFlow(statement: ts.Statement | ts.BlockLike): boolean; +export declare type ControlFlowStatement = ts.BreakStatement | ts.ContinueStatement | ts.ReturnStatement | ts.ThrowStatement; +export interface ControlFlowEnd { + readonly statements: ReadonlyArray; + readonly end: boolean; +} +export declare function getControlFlowEnd(statement: ts.Statement | ts.BlockLike): ControlFlowEnd; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.js new file mode 100644 index 000000000..7e83773f0 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/control-flow.js @@ -0,0 +1,171 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +const node_1 = require("../typeguard/node"); +function endsControlFlow(statement) { + return getControlFlowEnd(statement).end; +} +exports.endsControlFlow = endsControlFlow; +const defaultControlFlowEnd = { statements: [], end: false }; +function getControlFlowEnd(statement) { + return node_1.isBlockLike(statement) ? handleBlock(statement) : getControlFlowEndWorker(statement); +} +exports.getControlFlowEnd = getControlFlowEnd; +function getControlFlowEndWorker(statement) { + switch (statement.kind) { + case ts.SyntaxKind.ReturnStatement: + case ts.SyntaxKind.ThrowStatement: + case ts.SyntaxKind.ContinueStatement: + case ts.SyntaxKind.BreakStatement: + return { statements: [statement], end: true }; + case ts.SyntaxKind.Block: + return handleBlock(statement); + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.WhileStatement: + return handleForAndWhileStatement(statement); + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.ForInStatement: + return handleForInOrOfStatement(statement); + case ts.SyntaxKind.DoStatement: + return matchBreakOrContinue(getControlFlowEndWorker(statement.statement), node_1.isBreakOrContinueStatement); + case ts.SyntaxKind.IfStatement: + return handleIfStatement(statement); + case ts.SyntaxKind.SwitchStatement: + return matchBreakOrContinue(handleSwitchStatement(statement), node_1.isBreakStatement); + case ts.SyntaxKind.TryStatement: + return handleTryStatement(statement); + case ts.SyntaxKind.LabeledStatement: + return matchLabel(getControlFlowEndWorker(statement.statement), statement.label); + case ts.SyntaxKind.WithStatement: + return getControlFlowEndWorker(statement.statement); + default: + return defaultControlFlowEnd; + } +} +function handleBlock(statement) { + const result = { statements: [], end: false }; + for (const s of statement.statements) { + const current = getControlFlowEndWorker(s); + result.statements.push(...current.statements); + if (current.end) { + result.end = true; + break; + } + } + return result; +} +function handleForInOrOfStatement(statement) { + const end = matchBreakOrContinue(getControlFlowEndWorker(statement.statement), node_1.isBreakOrContinueStatement); + end.end = false; + return end; +} +function handleForAndWhileStatement(statement) { + const constantCondition = statement.kind === ts.SyntaxKind.WhileStatement + ? getConstantCondition(statement.expression) + : statement.condition === undefined || getConstantCondition(statement.condition); + if (constantCondition === false) + return defaultControlFlowEnd; + const end = matchBreakOrContinue(getControlFlowEndWorker(statement.statement), node_1.isBreakOrContinueStatement); + if (constantCondition === undefined) + end.end = false; + return end; +} +function getConstantCondition(node) { + switch (node.kind) { + case ts.SyntaxKind.TrueKeyword: + return true; + case ts.SyntaxKind.FalseKeyword: + return false; + default: + return; + } +} +function handleIfStatement(node) { + switch (getConstantCondition(node.expression)) { + case true: + return getControlFlowEndWorker(node.thenStatement); + case false: + return node.elseStatement === undefined + ? defaultControlFlowEnd + : getControlFlowEndWorker(node.elseStatement); + } + const then = getControlFlowEndWorker(node.thenStatement); + if (node.elseStatement === undefined) + return { + statements: then.statements, + end: false, + }; + const elze = getControlFlowEndWorker(node.elseStatement); + return { + statements: [...then.statements, ...elze.statements], + end: then.end && elze.end, + }; +} +function handleSwitchStatement(node) { + let hasDefault = false; + const result = { + statements: [], + end: false, + }; + for (const clause of node.caseBlock.clauses) { + if (clause.kind === ts.SyntaxKind.DefaultClause) + hasDefault = true; + const current = handleBlock(clause); + result.end = current.end; + result.statements.push(...current.statements); + } + if (!hasDefault) + result.end = false; + return result; +} +function handleTryStatement(node) { + let finallyResult; + if (node.finallyBlock !== undefined) { + finallyResult = handleBlock(node.finallyBlock); + if (finallyResult.end) + return finallyResult; + } + const tryResult = handleBlock(node.tryBlock); + if (node.catchClause === undefined) + return { statements: finallyResult.statements.concat(tryResult.statements), end: tryResult.end }; + const catchResult = handleBlock(node.catchClause.block); + return { + statements: tryResult.statements + .filter((s) => s.kind !== ts.SyntaxKind.ThrowStatement) + .concat(catchResult.statements, finallyResult === undefined ? [] : finallyResult.statements), + end: tryResult.end && catchResult.end, + }; +} +function matchBreakOrContinue(current, pred) { + const result = { + statements: [], + end: current.end, + }; + for (const statement of current.statements) { + if (pred(statement) && statement.label === undefined) { + result.end = false; + continue; + } + result.statements.push(statement); + } + return result; +} +function matchLabel(current, label) { + const result = { + statements: [], + end: current.end, + }; + const labelText = label.text; + for (const statement of current.statements) { + switch (statement.kind) { + case ts.SyntaxKind.BreakStatement: + case ts.SyntaxKind.ContinueStatement: + if (statement.label !== undefined && statement.label.text === labelText) { + result.end = false; + continue; + } + } + result.statements.push(statement); + } + return result; +} diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.d.ts new file mode 100644 index 000000000..7e95feaf0 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.d.ts @@ -0,0 +1,20 @@ +import * as ts from 'typescript'; +export interface NodeWrap { + node: ts.Node; + kind: ts.SyntaxKind; + children: NodeWrap[]; + next?: NodeWrap; + skip?: NodeWrap; + parent?: NodeWrap; +} +export interface WrappedAst extends NodeWrap { + node: ts.SourceFile; + next: NodeWrap; + skip: undefined; + parent: undefined; +} +export interface ConvertedAst { + wrapped: WrappedAst; + flat: ReadonlyArray; +} +export declare function convertAst(sourceFile: ts.SourceFile): ConvertedAst; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.js new file mode 100644 index 000000000..bfdb0282c --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/convert-ast.js @@ -0,0 +1,47 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +const util_1 = require("./util"); +function convertAst(sourceFile) { + const wrapped = { + node: sourceFile, + parent: undefined, + kind: ts.SyntaxKind.SourceFile, + children: [], + next: undefined, + skip: undefined, + }; + const flat = []; + let current = wrapped; + let previous = current; + ts.forEachChild(sourceFile, function wrap(node) { + flat.push(node); + const parent = current; + previous.next = current = { + node, + parent, + kind: node.kind, + children: [], + next: undefined, + skip: undefined, + }; + if (previous !== parent) + setSkip(previous, current); + previous = current; + parent.children.push(current); + if (util_1.isNodeKind(node.kind)) + ts.forEachChild(node, wrap); + current = parent; + }); + return { + wrapped, + flat, + }; +} +exports.convertAst = convertAst; +function setSkip(node, skip) { + do { + node.skip = skip; + node = node.parent; + } while (node !== skip.parent); +} diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.d.ts new file mode 100644 index 000000000..9e93ff6f1 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.d.ts @@ -0,0 +1,5 @@ +export * from './util'; +export * from './usage'; +export * from './control-flow'; +export * from './type'; +export * from './convert-ast'; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.js new file mode 100644 index 000000000..2087d2a37 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/index.js @@ -0,0 +1,8 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +tslib_1.__exportStar(require("./util"), exports); +tslib_1.__exportStar(require("./usage"), exports); +tslib_1.__exportStar(require("./control-flow"), exports); +tslib_1.__exportStar(require("./type"), exports); +tslib_1.__exportStar(require("./convert-ast"), exports); diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.d.ts new file mode 100644 index 000000000..f4343a458 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.d.ts @@ -0,0 +1,21 @@ +import * as ts from 'typescript'; +import { PropertyName } from './util'; +export declare function isEmptyObjectType(type: ts.Type): type is ts.ObjectType; +export declare function removeOptionalityFromType(checker: ts.TypeChecker, type: ts.Type): ts.Type; +export declare function isTypeAssignableToNumber(checker: ts.TypeChecker, type: ts.Type): boolean; +export declare function isTypeAssignableToString(checker: ts.TypeChecker, type: ts.Type): boolean; +export declare function getCallSignaturesOfType(type: ts.Type): ReadonlyArray; +export declare function unionTypeParts(type: ts.Type): ts.Type[]; +export declare function intersectionTypeParts(type: ts.Type): ts.Type[]; +export declare function someTypePart(type: ts.Type, predicate: (t: ts.Type) => t is ts.UnionOrIntersectionType, cb: (t: ts.Type) => boolean): boolean; +export declare function isThenableType(checker: ts.TypeChecker, node: ts.Node, type: ts.Type): boolean; +export declare function isThenableType(checker: ts.TypeChecker, node: ts.Expression, type?: ts.Type): boolean; +export declare function isFalsyType(type: ts.Type): boolean; +export declare function isBooleanLiteralType(type: ts.Type, literal: boolean): boolean; +export declare function getPropertyOfType(type: ts.Type, name: ts.__String): ts.Symbol | undefined; +export declare function isPropertyReadonlyInType(type: ts.Type, name: ts.__String, checker: ts.TypeChecker): boolean; +export declare function symbolHasReadonlyDeclaration(symbol: ts.Symbol, checker: ts.TypeChecker): boolean; +export declare function getPropertyNameFromType(type: ts.Type): PropertyName | undefined; +export declare function getConstructorTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type; +export declare function getInstanceTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type; +export declare function getIteratorYieldResultFromIteratorResult(type: ts.Type, node: ts.Node, checker: ts.TypeChecker): ts.Type; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.js new file mode 100644 index 000000000..7a530d9fd --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/type.js @@ -0,0 +1,238 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +const type_1 = require("../typeguard/type"); +const util_1 = require("./util"); +const node_1 = require("../typeguard/node"); +function isEmptyObjectType(type) { + if (type_1.isObjectType(type) && + type.objectFlags & ts.ObjectFlags.Anonymous && + type.getProperties().length === 0 && + type.getCallSignatures().length === 0 && + type.getConstructSignatures().length === 0 && + type.getStringIndexType() === undefined && + type.getNumberIndexType() === undefined) { + const baseTypes = type.getBaseTypes(); + return baseTypes === undefined || baseTypes.every(isEmptyObjectType); + } + return false; +} +exports.isEmptyObjectType = isEmptyObjectType; +function removeOptionalityFromType(checker, type) { + if (!containsTypeWithFlag(type, ts.TypeFlags.Undefined)) + return type; + const allowsNull = containsTypeWithFlag(type, ts.TypeFlags.Null); + type = checker.getNonNullableType(type); + return allowsNull ? checker.getNullableType(type, ts.TypeFlags.Null) : type; +} +exports.removeOptionalityFromType = removeOptionalityFromType; +function containsTypeWithFlag(type, flag) { + for (const t of unionTypeParts(type)) + if (util_1.isTypeFlagSet(t, flag)) + return true; + return false; +} +function isTypeAssignableToNumber(checker, type) { + return isTypeAssignableTo(checker, type, ts.TypeFlags.NumberLike); +} +exports.isTypeAssignableToNumber = isTypeAssignableToNumber; +function isTypeAssignableToString(checker, type) { + return isTypeAssignableTo(checker, type, ts.TypeFlags.StringLike); +} +exports.isTypeAssignableToString = isTypeAssignableToString; +function isTypeAssignableTo(checker, type, flags) { + flags |= ts.TypeFlags.Any; + let typeParametersSeen; + return (function check(t) { + if (type_1.isTypeParameter(t) && t.symbol !== undefined && t.symbol.declarations !== undefined) { + if (typeParametersSeen === undefined) { + typeParametersSeen = new Set([t]); + } + else if (!typeParametersSeen.has(t)) { + typeParametersSeen.add(t); + } + else { + return false; + } + const declaration = t.symbol.declarations[0]; + if (declaration.constraint === undefined) + return true; + return check(checker.getTypeFromTypeNode(declaration.constraint)); + } + if (type_1.isUnionType(t)) + return t.types.every(check); + if (type_1.isIntersectionType(t)) + return t.types.some(check); + return util_1.isTypeFlagSet(t, flags); + })(type); +} +function getCallSignaturesOfType(type) { + if (type_1.isUnionType(type)) { + const signatures = []; + for (const t of type.types) + signatures.push(...getCallSignaturesOfType(t)); + return signatures; + } + if (type_1.isIntersectionType(type)) { + let signatures; + for (const t of type.types) { + const sig = getCallSignaturesOfType(t); + if (sig.length !== 0) { + if (signatures !== undefined) + return []; + signatures = sig; + } + } + return signatures === undefined ? [] : signatures; + } + return type.getCallSignatures(); +} +exports.getCallSignaturesOfType = getCallSignaturesOfType; +function unionTypeParts(type) { + return type_1.isUnionType(type) ? type.types : [type]; +} +exports.unionTypeParts = unionTypeParts; +function intersectionTypeParts(type) { + return type_1.isIntersectionType(type) ? type.types : [type]; +} +exports.intersectionTypeParts = intersectionTypeParts; +function someTypePart(type, predicate, cb) { + return predicate(type) ? type.types.some(cb) : cb(type); +} +exports.someTypePart = someTypePart; +function isThenableType(checker, node, type = checker.getTypeAtLocation(node)) { + for (const ty of unionTypeParts(checker.getApparentType(type))) { + const then = ty.getProperty('then'); + if (then === undefined) + continue; + const thenType = checker.getTypeOfSymbolAtLocation(then, node); + for (const t of unionTypeParts(thenType)) + for (const signature of t.getCallSignatures()) + if (signature.parameters.length !== 0 && isCallback(checker, signature.parameters[0], node)) + return true; + } + return false; +} +exports.isThenableType = isThenableType; +function isCallback(checker, param, node) { + let type = checker.getApparentType(checker.getTypeOfSymbolAtLocation(param, node)); + if (param.valueDeclaration.dotDotDotToken) { + type = type.getNumberIndexType(); + if (type === undefined) + return false; + } + for (const t of unionTypeParts(type)) + if (t.getCallSignatures().length !== 0) + return true; + return false; +} +function isFalsyType(type) { + if (type.flags & (ts.TypeFlags.Undefined | ts.TypeFlags.Null | ts.TypeFlags.Void)) + return true; + if (type_1.isLiteralType(type)) + return !type.value; + return isBooleanLiteralType(type, false); +} +exports.isFalsyType = isFalsyType; +function isBooleanLiteralType(type, literal) { + return util_1.isTypeFlagSet(type, ts.TypeFlags.BooleanLiteral) && + type.intrinsicName === (literal ? 'true' : 'false'); +} +exports.isBooleanLiteralType = isBooleanLiteralType; +function getPropertyOfType(type, name) { + if (!name.startsWith('__')) + return type.getProperty(name); + return type.getProperties().find((s) => s.escapedName === name); +} +exports.getPropertyOfType = getPropertyOfType; +function isPropertyReadonlyInType(type, name, checker) { + let seenProperty = false; + let seenReadonlySignature = false; + for (const t of unionTypeParts(type)) { + if (getPropertyOfType(t, name) === undefined) { + const index = (util_1.isNumericPropertyName(name) ? checker.getIndexInfoOfType(t, ts.IndexKind.Number) : undefined) || + checker.getIndexInfoOfType(t, ts.IndexKind.String); + if (index !== undefined && index.isReadonly) { + if (seenProperty) + return true; + seenReadonlySignature = true; + } + } + else if (seenReadonlySignature || isReadonlyPropertyIntersection(t, name, checker)) { + return true; + } + else { + seenProperty = true; + } + } + return false; +} +exports.isPropertyReadonlyInType = isPropertyReadonlyInType; +function isReadonlyPropertyIntersection(type, name, checker) { + return someTypePart(type, type_1.isIntersectionType, (t) => { + const prop = getPropertyOfType(t, name); + if (prop === undefined) + return false; + if (prop.flags & ts.SymbolFlags.Transient) { + if (/^(?:[1-9]\d*|0)$/.test(name) && type_1.isTupleTypeReference(t)) + return t.target.readonly; + switch (isReadonlyPropertyFromMappedType(t, name, checker)) { + case true: + return true; + case false: + return false; + default: + } + } + return (util_1.isSymbolFlagSet(prop, ts.SymbolFlags.ValueModule) || + symbolHasReadonlyDeclaration(prop, checker)); + }); +} +function isReadonlyPropertyFromMappedType(type, name, checker) { + if (!type_1.isObjectType(type) || !util_1.isObjectFlagSet(type, ts.ObjectFlags.Mapped)) + return; + const declaration = type.symbol.declarations[0]; + if (declaration.readonlyToken !== undefined && !/^__@[^@]+$/.test(name)) + return declaration.readonlyToken.kind !== ts.SyntaxKind.MinusToken; + return isPropertyReadonlyInType(type.modifiersType, name, checker); +} +function symbolHasReadonlyDeclaration(symbol, checker) { + return (symbol.flags & ts.SymbolFlags.Accessor) === ts.SymbolFlags.GetAccessor || + symbol.declarations !== undefined && + symbol.declarations.some((node) => util_1.isModifierFlagSet(node, ts.ModifierFlags.Readonly) || + node_1.isVariableDeclaration(node) && util_1.isNodeFlagSet(node.parent, ts.NodeFlags.Const) || + node_1.isCallExpression(node) && util_1.isReadonlyAssignmentDeclaration(node, checker) || + node_1.isEnumMember(node) || + (node_1.isPropertyAssignment(node) || node_1.isShorthandPropertyAssignment(node)) && util_1.isInConstContext(node.parent)); +} +exports.symbolHasReadonlyDeclaration = symbolHasReadonlyDeclaration; +function getPropertyNameFromType(type) { + if (type.flags & (ts.TypeFlags.StringLiteral | ts.TypeFlags.NumberLiteral)) { + const value = String(type.value); + return { displayName: value, symbolName: ts.escapeLeadingUnderscores(value) }; + } + if (type_1.isUniqueESSymbolType(type)) + return { + displayName: `[${type.symbol ? type.symbol.name : type.escapedName.replace(/^__@|@\d+$/g, '')}]`, + symbolName: type.escapedName, + }; +} +exports.getPropertyNameFromType = getPropertyNameFromType; +function getConstructorTypeOfClassLikeDeclaration(node, checker) { + return checker.getDeclaredTypeOfSymbol(node.name !== undefined ? checker.getSymbolAtLocation(node.name) : checker.getTypeAtLocation(node).symbol); +} +exports.getConstructorTypeOfClassLikeDeclaration = getConstructorTypeOfClassLikeDeclaration; +function getInstanceTypeOfClassLikeDeclaration(node, checker) { + return node.kind === ts.SyntaxKind.ClassDeclaration + ? checker.getTypeAtLocation(node) + : checker.getTypeOfSymbolAtLocation(checker.getTypeAtLocation(node).getProperty('prototype'), node); +} +exports.getInstanceTypeOfClassLikeDeclaration = getInstanceTypeOfClassLikeDeclaration; +function getIteratorYieldResultFromIteratorResult(type, node, checker) { + return type_1.isUnionType(type) && type.types.find((t) => { + const done = t.getProperty('done'); + return done !== undefined && + isBooleanLiteralType(removeOptionalityFromType(checker, checker.getTypeOfSymbolAtLocation(done, node)), false); + }) || type; +} +exports.getIteratorYieldResultFromIteratorResult = getIteratorYieldResultFromIteratorResult; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.d.ts new file mode 100644 index 000000000..a4c022c9d --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.d.ts @@ -0,0 +1,30 @@ +import * as ts from 'typescript'; +export interface VariableInfo { + domain: DeclarationDomain; + exported: boolean; + uses: VariableUse[]; + inGlobalScope: boolean; + declarations: ts.Identifier[]; +} +export interface VariableUse { + domain: UsageDomain; + location: ts.Identifier; +} +export declare enum DeclarationDomain { + Namespace = 1, + Type = 2, + Value = 4, + Import = 8, + Any = 7 +} +export declare enum UsageDomain { + Namespace = 1, + Type = 2, + Value = 4, + ValueOrNamespace = 5, + Any = 7, + TypeQuery = 8 +} +export declare function getUsageDomain(node: ts.Identifier): UsageDomain | undefined; +export declare function getDeclarationDomain(node: ts.Identifier): DeclarationDomain | undefined; +export declare function collectVariableUsage(sourceFile: ts.SourceFile): Map; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.js new file mode 100644 index 000000000..372d38a69 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/usage.js @@ -0,0 +1,645 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util_1 = require("./util"); +const ts = require("typescript"); +var DeclarationDomain; +(function (DeclarationDomain) { + DeclarationDomain[DeclarationDomain["Namespace"] = 1] = "Namespace"; + DeclarationDomain[DeclarationDomain["Type"] = 2] = "Type"; + DeclarationDomain[DeclarationDomain["Value"] = 4] = "Value"; + DeclarationDomain[DeclarationDomain["Import"] = 8] = "Import"; + DeclarationDomain[DeclarationDomain["Any"] = 7] = "Any"; +})(DeclarationDomain = exports.DeclarationDomain || (exports.DeclarationDomain = {})); +var UsageDomain; +(function (UsageDomain) { + UsageDomain[UsageDomain["Namespace"] = 1] = "Namespace"; + UsageDomain[UsageDomain["Type"] = 2] = "Type"; + UsageDomain[UsageDomain["Value"] = 4] = "Value"; + UsageDomain[UsageDomain["ValueOrNamespace"] = 5] = "ValueOrNamespace"; + UsageDomain[UsageDomain["Any"] = 7] = "Any"; + UsageDomain[UsageDomain["TypeQuery"] = 8] = "TypeQuery"; +})(UsageDomain = exports.UsageDomain || (exports.UsageDomain = {})); +function getUsageDomain(node) { + const parent = node.parent; + switch (parent.kind) { + case ts.SyntaxKind.TypeReference: + return node.originalKeywordKind !== ts.SyntaxKind.ConstKeyword ? 2 : undefined; + case ts.SyntaxKind.ExpressionWithTypeArguments: + return parent.parent.token === ts.SyntaxKind.ImplementsKeyword || + parent.parent.parent.kind === ts.SyntaxKind.InterfaceDeclaration + ? 2 + : 4; + case ts.SyntaxKind.TypeQuery: + return 5 | 8; + case ts.SyntaxKind.QualifiedName: + if (parent.left === node) { + if (getEntityNameParent(parent).kind === ts.SyntaxKind.TypeQuery) + return 1 | 8; + return 1; + } + break; + case ts.SyntaxKind.ExportSpecifier: + if (parent.propertyName === undefined || + parent.propertyName === node) + return 7; + break; + case ts.SyntaxKind.ExportAssignment: + return 7; + case ts.SyntaxKind.BindingElement: + if (parent.initializer === node) + return 5; + break; + case ts.SyntaxKind.Parameter: + case ts.SyntaxKind.EnumMember: + case ts.SyntaxKind.PropertyDeclaration: + case ts.SyntaxKind.VariableDeclaration: + case ts.SyntaxKind.PropertyAssignment: + case ts.SyntaxKind.PropertyAccessExpression: + case ts.SyntaxKind.ImportEqualsDeclaration: + if (parent.name !== node) + return 5; + break; + case ts.SyntaxKind.JsxAttribute: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.NamespaceImport: + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.ClassExpression: + case ts.SyntaxKind.ModuleDeclaration: + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.EnumDeclaration: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.LabeledStatement: + case ts.SyntaxKind.BreakStatement: + case ts.SyntaxKind.ContinueStatement: + case ts.SyntaxKind.ImportClause: + case ts.SyntaxKind.ImportSpecifier: + case ts.SyntaxKind.TypePredicate: + case ts.SyntaxKind.MethodSignature: + case ts.SyntaxKind.PropertySignature: + case ts.SyntaxKind.NamespaceExportDeclaration: + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + case ts.SyntaxKind.TypeParameter: + break; + default: + return 5; + } +} +exports.getUsageDomain = getUsageDomain; +function getDeclarationDomain(node) { + switch (node.parent.kind) { + case ts.SyntaxKind.TypeParameter: + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + return 2; + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.ClassExpression: + return 2 | 4; + case ts.SyntaxKind.EnumDeclaration: + return 7; + case ts.SyntaxKind.NamespaceImport: + case ts.SyntaxKind.ImportClause: + return 7 | 8; + case ts.SyntaxKind.ImportEqualsDeclaration: + case ts.SyntaxKind.ImportSpecifier: + return node.parent.name === node + ? 7 | 8 + : undefined; + case ts.SyntaxKind.ModuleDeclaration: + return 1; + case ts.SyntaxKind.Parameter: + if (node.parent.parent.kind === ts.SyntaxKind.IndexSignature || node.originalKeywordKind === ts.SyntaxKind.ThisKeyword) + return; + case ts.SyntaxKind.BindingElement: + case ts.SyntaxKind.VariableDeclaration: + return node.parent.name === node ? 4 : undefined; + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.FunctionExpression: + return 4; + } +} +exports.getDeclarationDomain = getDeclarationDomain; +function collectVariableUsage(sourceFile) { + return new UsageWalker().getUsage(sourceFile); +} +exports.collectVariableUsage = collectVariableUsage; +class AbstractScope { + constructor(_global) { + this._global = _global; + this._variables = new Map(); + this._uses = []; + this._namespaceScopes = undefined; + this._enumScopes = undefined; + } + addVariable(identifier, name, selector, exported, domain) { + const variables = this.getDestinationScope(selector).getVariables(); + const declaration = { + domain, + exported, + declaration: name, + }; + const variable = variables.get(identifier); + if (variable === undefined) { + variables.set(identifier, { + domain, + declarations: [declaration], + uses: [], + }); + } + else { + variable.domain |= domain; + variable.declarations.push(declaration); + } + } + addUse(use) { + this._uses.push(use); + } + getVariables() { + return this._variables; + } + getFunctionScope() { + return this; + } + end(cb) { + if (this._namespaceScopes !== undefined) + this._namespaceScopes.forEach((value) => value.finish(cb)); + this._namespaceScopes = this._enumScopes = undefined; + this._applyUses(); + this._variables.forEach((variable) => { + for (const declaration of variable.declarations) { + const result = { + declarations: [], + domain: declaration.domain, + exported: declaration.exported, + inGlobalScope: this._global, + uses: [], + }; + for (const other of variable.declarations) + if (other.domain & declaration.domain) + result.declarations.push(other.declaration); + for (const use of variable.uses) + if (use.domain & declaration.domain) + result.uses.push(use); + cb(result, declaration.declaration, this); + } + }); + } + markExported(_name) { } + createOrReuseNamespaceScope(name, _exported, ambient, hasExportStatement) { + let scope; + if (this._namespaceScopes === undefined) { + this._namespaceScopes = new Map(); + } + else { + scope = this._namespaceScopes.get(name); + } + if (scope === undefined) { + scope = new NamespaceScope(ambient, hasExportStatement, this); + this._namespaceScopes.set(name, scope); + } + else { + scope.refresh(ambient, hasExportStatement); + } + return scope; + } + createOrReuseEnumScope(name, _exported) { + let scope; + if (this._enumScopes === undefined) { + this._enumScopes = new Map(); + } + else { + scope = this._enumScopes.get(name); + } + if (scope === undefined) { + scope = new EnumScope(this); + this._enumScopes.set(name, scope); + } + return scope; + } + _applyUses() { + for (const use of this._uses) + if (!this._applyUse(use)) + this._addUseToParent(use); + this._uses = []; + } + _applyUse(use, variables = this._variables) { + const variable = variables.get(use.location.text); + if (variable === undefined || (variable.domain & use.domain) === 0) + return false; + variable.uses.push(use); + return true; + } + _addUseToParent(_use) { } +} +class RootScope extends AbstractScope { + constructor(_exportAll, global) { + super(global); + this._exportAll = _exportAll; + this._exports = undefined; + this._innerScope = new NonRootScope(this, 1); + } + addVariable(identifier, name, selector, exported, domain) { + if (domain & 8) + return super.addVariable(identifier, name, selector, exported, domain); + return this._innerScope.addVariable(identifier, name, selector, exported, domain); + } + addUse(use, origin) { + if (origin === this._innerScope) + return super.addUse(use); + return this._innerScope.addUse(use); + } + markExported(id) { + if (this._exports === undefined) { + this._exports = [id.text]; + } + else { + this._exports.push(id.text); + } + } + end(cb) { + this._innerScope.end((value, key) => { + value.exported = value.exported || this._exportAll + || this._exports !== undefined && this._exports.includes(key.text); + value.inGlobalScope = this._global; + return cb(value, key, this); + }); + return super.end((value, key, scope) => { + value.exported = value.exported || scope === this + && this._exports !== undefined && this._exports.includes(key.text); + return cb(value, key, scope); + }); + } + getDestinationScope() { + return this; + } +} +class NonRootScope extends AbstractScope { + constructor(_parent, _boundary) { + super(false); + this._parent = _parent; + this._boundary = _boundary; + } + _addUseToParent(use) { + return this._parent.addUse(use, this); + } + getDestinationScope(selector) { + return this._boundary & selector + ? this + : this._parent.getDestinationScope(selector); + } +} +class EnumScope extends NonRootScope { + constructor(parent) { + super(parent, 1); + } + end() { + this._applyUses(); + } +} +class ConditionalTypeScope extends NonRootScope { + constructor(parent) { + super(parent, 8); + this._state = 0; + } + updateState(newState) { + this._state = newState; + } + addUse(use) { + if (this._state === 2) + return void this._uses.push(use); + return this._parent.addUse(use, this); + } +} +class FunctionScope extends NonRootScope { + constructor(parent) { + super(parent, 1); + } + beginBody() { + this._applyUses(); + } +} +class AbstractNamedExpressionScope extends NonRootScope { + constructor(_name, _domain, parent) { + super(parent, 1); + this._name = _name; + this._domain = _domain; + } + end(cb) { + this._innerScope.end(cb); + return cb({ + declarations: [this._name], + domain: this._domain, + exported: false, + uses: this._uses, + inGlobalScope: false, + }, this._name, this); + } + addUse(use, source) { + if (source !== this._innerScope) + return this._innerScope.addUse(use); + if (use.domain & this._domain && use.location.text === this._name.text) { + this._uses.push(use); + } + else { + return this._parent.addUse(use, this); + } + } + getFunctionScope() { + return this._innerScope; + } + getDestinationScope() { + return this._innerScope; + } +} +class FunctionExpressionScope extends AbstractNamedExpressionScope { + constructor(name, parent) { + super(name, 4, parent); + this._innerScope = new FunctionScope(this); + } + beginBody() { + return this._innerScope.beginBody(); + } +} +class ClassExpressionScope extends AbstractNamedExpressionScope { + constructor(name, parent) { + super(name, 4 | 2, parent); + this._innerScope = new NonRootScope(this, 1); + } +} +class BlockScope extends NonRootScope { + constructor(_functionScope, parent) { + super(parent, 2); + this._functionScope = _functionScope; + } + getFunctionScope() { + return this._functionScope; + } +} +function mapDeclaration(declaration) { + return { + declaration, + exported: true, + domain: getDeclarationDomain(declaration), + }; +} +class NamespaceScope extends NonRootScope { + constructor(_ambient, _hasExport, parent) { + super(parent, 1); + this._ambient = _ambient; + this._hasExport = _hasExport; + this._innerScope = new NonRootScope(this, 1); + this._exports = undefined; + } + finish(cb) { + return super.end(cb); + } + end(cb) { + this._innerScope.end((variable, key, scope) => { + if (scope !== this._innerScope || + !variable.exported && (!this._ambient || this._exports !== undefined && !this._exports.has(key.text))) + return cb(variable, key, scope); + const namespaceVar = this._variables.get(key.text); + if (namespaceVar === undefined) { + this._variables.set(key.text, { + declarations: variable.declarations.map(mapDeclaration), + domain: variable.domain, + uses: [...variable.uses], + }); + } + else { + outer: for (const declaration of variable.declarations) { + for (const existing of namespaceVar.declarations) + if (existing.declaration === declaration) + continue outer; + namespaceVar.declarations.push(mapDeclaration(declaration)); + } + namespaceVar.domain |= variable.domain; + for (const use of variable.uses) { + if (namespaceVar.uses.includes(use)) + continue; + namespaceVar.uses.push(use); + } + } + }); + this._applyUses(); + this._innerScope = new NonRootScope(this, 1); + } + createOrReuseNamespaceScope(name, exported, ambient, hasExportStatement) { + if (!exported && (!this._ambient || this._hasExport)) + return this._innerScope.createOrReuseNamespaceScope(name, exported, ambient || this._ambient, hasExportStatement); + return super.createOrReuseNamespaceScope(name, exported, ambient || this._ambient, hasExportStatement); + } + createOrReuseEnumScope(name, exported) { + if (!exported && (!this._ambient || this._hasExport)) + return this._innerScope.createOrReuseEnumScope(name, exported); + return super.createOrReuseEnumScope(name, exported); + } + addUse(use, source) { + if (source !== this._innerScope) + return this._innerScope.addUse(use); + this._uses.push(use); + } + refresh(ambient, hasExport) { + this._ambient = ambient; + this._hasExport = hasExport; + } + markExported(name, _as) { + if (this._exports === undefined) + this._exports = new Set(); + this._exports.add(name.text); + } + getDestinationScope() { + return this._innerScope; + } +} +function getEntityNameParent(name) { + let parent = name.parent; + while (parent.kind === ts.SyntaxKind.QualifiedName) + parent = parent.parent; + return parent; +} +class UsageWalker { + constructor() { + this._result = new Map(); + } + getUsage(sourceFile) { + const variableCallback = (variable, key) => { + this._result.set(key, variable); + }; + const isModule = ts.isExternalModule(sourceFile); + this._scope = new RootScope(sourceFile.isDeclarationFile && isModule && !containsExportStatement(sourceFile), !isModule); + const cb = (node) => { + if (util_1.isBlockScopeBoundary(node)) + return continueWithScope(node, new BlockScope(this._scope.getFunctionScope(), this._scope), handleBlockScope); + switch (node.kind) { + case ts.SyntaxKind.ClassExpression: + return continueWithScope(node, node.name !== undefined + ? new ClassExpressionScope(node.name, this._scope) + : new NonRootScope(this._scope, 1)); + case ts.SyntaxKind.ClassDeclaration: + this._handleDeclaration(node, true, 4 | 2); + return continueWithScope(node, new NonRootScope(this._scope, 1)); + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + this._handleDeclaration(node, true, 2); + return continueWithScope(node, new NonRootScope(this._scope, 4)); + case ts.SyntaxKind.EnumDeclaration: + this._handleDeclaration(node, true, 7); + return continueWithScope(node, this._scope.createOrReuseEnumScope(node.name.text, util_1.hasModifier(node.modifiers, ts.SyntaxKind.ExportKeyword))); + case ts.SyntaxKind.ModuleDeclaration: + return this._handleModule(node, continueWithScope); + case ts.SyntaxKind.MappedType: + return continueWithScope(node, new NonRootScope(this._scope, 4)); + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.MethodSignature: + case ts.SyntaxKind.CallSignature: + case ts.SyntaxKind.ConstructSignature: + case ts.SyntaxKind.ConstructorType: + case ts.SyntaxKind.FunctionType: + return this._handleFunctionLikeDeclaration(node, cb, variableCallback); + case ts.SyntaxKind.ConditionalType: + return this._handleConditionalType(node, cb, variableCallback); + case ts.SyntaxKind.VariableDeclarationList: + this._handleVariableDeclaration(node); + break; + case ts.SyntaxKind.Parameter: + if (node.parent.kind !== ts.SyntaxKind.IndexSignature && + (node.name.kind !== ts.SyntaxKind.Identifier || + node.name.originalKeywordKind !== ts.SyntaxKind.ThisKeyword)) + this._handleBindingName(node.name, false, false); + break; + case ts.SyntaxKind.EnumMember: + this._scope.addVariable(util_1.getPropertyName(node.name), node.name, 1, true, 4); + break; + case ts.SyntaxKind.ImportClause: + case ts.SyntaxKind.ImportSpecifier: + case ts.SyntaxKind.NamespaceImport: + case ts.SyntaxKind.ImportEqualsDeclaration: + this._handleDeclaration(node, false, 7 | 8); + break; + case ts.SyntaxKind.TypeParameter: + this._scope.addVariable(node.name.text, node.name, node.parent.kind === ts.SyntaxKind.InferType ? 8 : 7, false, 2); + break; + case ts.SyntaxKind.ExportSpecifier: + if (node.propertyName !== undefined) + return this._scope.markExported(node.propertyName, node.name); + return this._scope.markExported(node.name); + case ts.SyntaxKind.ExportAssignment: + if (node.expression.kind === ts.SyntaxKind.Identifier) + return this._scope.markExported(node.expression); + break; + case ts.SyntaxKind.Identifier: + const domain = getUsageDomain(node); + if (domain !== undefined) + this._scope.addUse({ domain, location: node }); + return; + } + return ts.forEachChild(node, cb); + }; + const continueWithScope = (node, scope, next = forEachChild) => { + const savedScope = this._scope; + this._scope = scope; + next(node); + this._scope.end(variableCallback); + this._scope = savedScope; + }; + const handleBlockScope = (node) => { + if (node.kind === ts.SyntaxKind.CatchClause && node.variableDeclaration !== undefined) + this._handleBindingName(node.variableDeclaration.name, true, false); + return ts.forEachChild(node, cb); + }; + ts.forEachChild(sourceFile, cb); + this._scope.end(variableCallback); + return this._result; + function forEachChild(node) { + return ts.forEachChild(node, cb); + } + } + _handleConditionalType(node, cb, varCb) { + const savedScope = this._scope; + const scope = this._scope = new ConditionalTypeScope(savedScope); + cb(node.checkType); + scope.updateState(1); + cb(node.extendsType); + scope.updateState(2); + cb(node.trueType); + scope.updateState(3); + cb(node.falseType); + scope.end(varCb); + this._scope = savedScope; + } + _handleFunctionLikeDeclaration(node, cb, varCb) { + if (node.decorators !== undefined) + node.decorators.forEach(cb); + const savedScope = this._scope; + if (node.kind === ts.SyntaxKind.FunctionDeclaration) + this._handleDeclaration(node, false, 4); + const scope = this._scope = node.kind === ts.SyntaxKind.FunctionExpression && node.name !== undefined + ? new FunctionExpressionScope(node.name, savedScope) + : new FunctionScope(savedScope); + if (node.name !== undefined) + cb(node.name); + if (node.typeParameters !== undefined) + node.typeParameters.forEach(cb); + node.parameters.forEach(cb); + if (node.type !== undefined) + cb(node.type); + if (node.body !== undefined) { + scope.beginBody(); + cb(node.body); + } + scope.end(varCb); + this._scope = savedScope; + } + _handleModule(node, next) { + if (node.flags & ts.NodeFlags.GlobalAugmentation) + return next(node, this._scope.createOrReuseNamespaceScope('-global', false, true, false)); + if (node.name.kind === ts.SyntaxKind.Identifier) { + const exported = isNamespaceExported(node); + this._scope.addVariable(node.name.text, node.name, 1, exported, 1 | 4); + const ambient = util_1.hasModifier(node.modifiers, ts.SyntaxKind.DeclareKeyword); + return next(node, this._scope.createOrReuseNamespaceScope(node.name.text, exported, ambient, ambient && namespaceHasExportStatement(node))); + } + return next(node, this._scope.createOrReuseNamespaceScope(`"${node.name.text}"`, false, true, namespaceHasExportStatement(node))); + } + _handleDeclaration(node, blockScoped, domain) { + if (node.name !== undefined) + this._scope.addVariable(node.name.text, node.name, blockScoped ? 3 : 1, util_1.hasModifier(node.modifiers, ts.SyntaxKind.ExportKeyword), domain); + } + _handleBindingName(name, blockScoped, exported) { + if (name.kind === ts.SyntaxKind.Identifier) + return this._scope.addVariable(name.text, name, blockScoped ? 3 : 1, exported, 4); + util_1.forEachDestructuringIdentifier(name, (declaration) => { + this._scope.addVariable(declaration.name.text, declaration.name, blockScoped ? 3 : 1, exported, 4); + }); + } + _handleVariableDeclaration(declarationList) { + const blockScoped = util_1.isBlockScopedVariableDeclarationList(declarationList); + const exported = declarationList.parent.kind === ts.SyntaxKind.VariableStatement && + util_1.hasModifier(declarationList.parent.modifiers, ts.SyntaxKind.ExportKeyword); + for (const declaration of declarationList.declarations) + this._handleBindingName(declaration.name, blockScoped, exported); + } +} +function isNamespaceExported(node) { + return node.parent.kind === ts.SyntaxKind.ModuleDeclaration || util_1.hasModifier(node.modifiers, ts.SyntaxKind.ExportKeyword); +} +function namespaceHasExportStatement(ns) { + if (ns.body === undefined || ns.body.kind !== ts.SyntaxKind.ModuleBlock) + return false; + return containsExportStatement(ns.body); +} +function containsExportStatement(block) { + for (const statement of block.statements) + if (statement.kind === ts.SyntaxKind.ExportDeclaration || statement.kind === ts.SyntaxKind.ExportAssignment) + return true; + return false; +} diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.d.ts b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.d.ts new file mode 100644 index 000000000..1ae3299a8 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.d.ts @@ -0,0 +1,167 @@ +import * as ts from 'typescript'; +import { NodeWrap } from './convert-ast'; +export declare function getChildOfKind(node: ts.Node, kind: T, sourceFile?: ts.SourceFile): ts.Token | undefined; +export declare function isTokenKind(kind: ts.SyntaxKind): boolean; +export declare function isNodeKind(kind: ts.SyntaxKind): boolean; +export declare function isAssignmentKind(kind: ts.SyntaxKind): boolean; +export declare function isTypeNodeKind(kind: ts.SyntaxKind): boolean; +export declare function isJsDocKind(kind: ts.SyntaxKind): boolean; +export declare function isKeywordKind(kind: ts.SyntaxKind): boolean; +export declare function isThisParameter(parameter: ts.ParameterDeclaration): boolean; +export declare function getModifier(node: ts.Node, kind: ts.Modifier['kind']): ts.Modifier | undefined; +export declare function hasModifier(modifiers: ts.ModifiersArray | undefined, ...kinds: Array): boolean; +export declare function isParameterProperty(node: ts.ParameterDeclaration): boolean; +export declare function hasAccessModifier(node: ts.ClassElement | ts.ParameterDeclaration): boolean; +export declare const isNodeFlagSet: (node: ts.Node, flag: ts.NodeFlags) => boolean; +export declare const isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean; +export declare const isSymbolFlagSet: (symbol: ts.Symbol, flag: ts.SymbolFlags) => boolean; +export declare function isObjectFlagSet(objectType: ts.ObjectType, flag: ts.ObjectFlags): boolean; +export declare function isModifierFlagSet(node: ts.Node, flag: ts.ModifierFlags): boolean; +export declare function getPreviousStatement(statement: ts.Statement): ts.Statement | undefined; +export declare function getNextStatement(statement: ts.Statement): ts.Statement | undefined; +export declare function getPreviousToken(node: ts.Node, sourceFile?: ts.SourceFile): ts.Node | undefined; +export declare function getNextToken(node: ts.Node, sourceFile?: ts.SourceFile): ts.Node | undefined; +export declare function getTokenAtPosition(parent: ts.Node, pos: number, sourceFile?: ts.SourceFile, allowJsDoc?: boolean): ts.Node | undefined; +export declare function getCommentAtPosition(sourceFile: ts.SourceFile, pos: number, parent?: ts.Node): ts.CommentRange | undefined; +export declare function isPositionInComment(sourceFile: ts.SourceFile, pos: number, parent?: ts.Node): boolean; +export declare function commentText(sourceText: string, comment: ts.CommentRange): string; +export declare function getWrappedNodeAtPosition(wrap: NodeWrap, pos: number): NodeWrap | undefined; +export declare function getPropertyName(propertyName: ts.PropertyName): string | undefined; +export declare function forEachDestructuringIdentifier(pattern: ts.BindingPattern, fn: (element: ts.BindingElement & { + name: ts.Identifier; +}) => T): T | undefined; +export declare function forEachDeclaredVariable(declarationList: ts.VariableDeclarationList, cb: (element: (ts.VariableDeclaration | ts.BindingElement) & { + name: ts.Identifier; +}) => T): T | undefined; +export declare enum VariableDeclarationKind { + Var = 0, + Let = 1, + Const = 2 +} +export declare function getVariableDeclarationKind(declarationList: ts.VariableDeclarationList): VariableDeclarationKind; +export declare function isBlockScopedVariableDeclarationList(declarationList: ts.VariableDeclarationList): boolean; +export declare function isBlockScopedVariableDeclaration(declaration: ts.VariableDeclaration): boolean; +export declare function isBlockScopedDeclarationStatement(statement: ts.Statement): statement is ts.DeclarationStatement; +export declare function isInSingleStatementContext(statement: ts.Statement): boolean; +export declare enum ScopeBoundary { + None = 0, + Function = 1, + Block = 2, + Type = 4, + ConditionalType = 8 +} +export declare enum ScopeBoundarySelector { + Function = 1, + Block = 3, + Type = 7, + InferType = 8 +} +export declare function isScopeBoundary(node: ts.Node): ScopeBoundary; +export declare function isTypeScopeBoundary(node: ts.Node): ScopeBoundary; +export declare function isFunctionScopeBoundary(node: ts.Node): ScopeBoundary; +export declare function isBlockScopeBoundary(node: ts.Node): ScopeBoundary; +export declare function hasOwnThisReference(node: ts.Node): boolean; +export declare function isFunctionWithBody(node: ts.Node): node is ts.FunctionLikeDeclaration & { + body: {}; +}; +export declare function forEachToken(node: ts.Node, cb: (node: ts.Node) => void, sourceFile?: ts.SourceFile): void; +export declare type ForEachTokenCallback = (fullText: string, kind: ts.SyntaxKind, range: ts.TextRange, parent: ts.Node) => void; +export declare function forEachTokenWithTrivia(node: ts.Node, cb: ForEachTokenCallback, sourceFile?: ts.SourceFile): void; +export declare type ForEachCommentCallback = (fullText: string, comment: ts.CommentRange) => void; +export declare function forEachComment(node: ts.Node, cb: ForEachCommentCallback, sourceFile?: ts.SourceFile): void; +export interface LineRange extends ts.TextRange { + contentLength: number; +} +export declare function getLineRanges(sourceFile: ts.SourceFile): LineRange[]; +export declare function getLineBreakStyle(sourceFile: ts.SourceFile): "\n" | "\r\n"; +export declare function isValidIdentifier(text: string, languageVersion?: ts.ScriptTarget): boolean; +export declare function isValidPropertyAccess(text: string, languageVersion?: ts.ScriptTarget): boolean; +export declare function isValidPropertyName(text: string, languageVersion?: ts.ScriptTarget): boolean; +export declare function isValidNumericLiteral(text: string, languageVersion?: ts.ScriptTarget): boolean; +export declare function isValidJsxIdentifier(text: string, languageVersion?: ts.ScriptTarget): boolean; +export declare function isNumericPropertyName(name: string | ts.__String): boolean; +export declare function isSameLine(sourceFile: ts.SourceFile, pos1: number, pos2: number): boolean; +export declare enum SideEffectOptions { + None = 0, + TaggedTemplate = 1, + Constructor = 2, + JsxElement = 4 +} +export declare function hasSideEffects(node: ts.Expression, options?: SideEffectOptions): boolean; +export declare function getDeclarationOfBindingElement(node: ts.BindingElement): ts.VariableDeclaration | ts.ParameterDeclaration; +export declare function isExpressionValueUsed(node: ts.Expression): boolean; +export declare enum AccessKind { + None = 0, + Read = 1, + Write = 2, + Delete = 4, + ReadWrite = 3, + Modification = 6 +} +export declare function getAccessKind(node: ts.Node): AccessKind; +export declare function isReassignmentTarget(node: ts.Expression): boolean; +export declare function canHaveJsDoc(node: ts.Node): node is ts.HasJSDoc; +export declare function getJsDoc(node: ts.Node, sourceFile?: ts.SourceFile): ts.JSDoc[]; +export declare function parseJsDocOfNode(node: ts.Node, considerTrailingComments?: boolean, sourceFile?: ts.SourceFile): ts.JSDoc[]; +export declare enum ImportKind { + ImportDeclaration = 1, + ImportEquals = 2, + ExportFrom = 4, + DynamicImport = 8, + Require = 16, + ImportType = 32, + All = 63, + AllImports = 59, + AllStaticImports = 3, + AllImportExpressions = 24, + AllRequireLike = 18 +} +export declare function findImports(sourceFile: ts.SourceFile, kinds: ImportKind): (ts.StringLiteral | ts.NoSubstitutionTemplateLiteral)[]; +export declare type ImportLike = ts.ImportDeclaration | (ts.ImportEqualsDeclaration & { + moduleReference: ts.ExternalModuleReference; +}) | (ts.ExportDeclaration & { + moduleSpecifier: {}; +}) | (ts.CallExpression & { + expression: ts.Token | (ts.Identifier & { + text: 'require'; + }); + arguments: [ts.Expression]; +}) | ts.ImportTypeNode; +export declare function findImportLikeNodes(sourceFile: ts.SourceFile, kinds: ImportKind): ImportLike[]; +export declare function isStatementInAmbientContext(node: ts.Statement): boolean; +export declare function isAmbientModuleBlock(node: ts.Node): node is ts.ModuleBlock; +export declare function getIIFE(func: ts.FunctionExpression | ts.ArrowFunction): ts.CallExpression | undefined; +export declare type StrictCompilerOption = 'noImplicitAny' | 'noImplicitThis' | 'strictNullChecks' | 'strictFunctionTypes' | 'strictPropertyInitialization' | 'alwaysStrict' | 'strictBindCallApply'; +export declare function isStrictCompilerOptionEnabled(options: ts.CompilerOptions, option: StrictCompilerOption): boolean; +export declare type BooleanCompilerOptions = { + [K in keyof ts.CompilerOptions]: NonNullable extends boolean ? K : never; +} extends { + [_ in keyof ts.CompilerOptions]: infer U; +} ? U : never; +export declare function isCompilerOptionEnabled(options: ts.CompilerOptions, option: BooleanCompilerOptions | 'stripInternal'): boolean; +export declare function isAmbientModule(node: ts.ModuleDeclaration): boolean; +export declare function getCheckJsDirective(source: string): ts.CheckJsDirective | undefined; +export declare function isConstAssertion(node: ts.AssertionExpression): boolean; +export declare function isInConstContext(node: ts.Expression): boolean; +export declare function isReadonlyAssignmentDeclaration(node: ts.CallExpression, checker: ts.TypeChecker): boolean; +export declare function isBindableObjectDefinePropertyCall(node: ts.CallExpression): boolean; +export interface WellKnownSymbolLiteral extends ts.PropertyAccessExpression { + expression: ts.Identifier & { + text: 'Symbol'; + escapedText: 'symbol'; + }; +} +export declare function isWellKnownSymbolLiterally(node: ts.Expression): node is WellKnownSymbolLiteral; +export interface PropertyName { + displayName: string; + symbolName: ts.__String; +} +export declare function getPropertyNameOfWellKnownSymbol(node: WellKnownSymbolLiteral): PropertyName; +export interface LateBoundPropertyNames { + known: boolean; + names: PropertyName[]; +} +export declare function getLateBoundPropertyNames(node: ts.Expression, checker: ts.TypeChecker): LateBoundPropertyNames; +export declare function getLateBoundPropertyNamesOfPropertyName(node: ts.PropertyName, checker: ts.TypeChecker): LateBoundPropertyNames; +export declare function getSingleLateBoundPropertyNameOfPropertyName(node: ts.PropertyName, checker: ts.TypeChecker): PropertyName | undefined; +export declare function unwrapParentheses(node: ts.Expression): ts.Expression; diff --git a/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.js b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.js new file mode 100644 index 000000000..07b469a49 --- /dev/null +++ b/node_modules/tslint-eslint-rules/node_modules/tsutils/util/util.js @@ -0,0 +1,1422 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const ts = require("typescript"); +const node_1 = require("../typeguard/node"); +const _3_2_1 = require("../typeguard/3.2"); +const type_1 = require("./type"); +function getChildOfKind(node, kind, sourceFile) { + for (const child of node.getChildren(sourceFile)) + if (child.kind === kind) + return child; +} +exports.getChildOfKind = getChildOfKind; +function isTokenKind(kind) { + return kind >= ts.SyntaxKind.FirstToken && kind <= ts.SyntaxKind.LastToken; +} +exports.isTokenKind = isTokenKind; +function isNodeKind(kind) { + return kind >= ts.SyntaxKind.FirstNode; +} +exports.isNodeKind = isNodeKind; +function isAssignmentKind(kind) { + return kind >= ts.SyntaxKind.FirstAssignment && kind <= ts.SyntaxKind.LastAssignment; +} +exports.isAssignmentKind = isAssignmentKind; +function isTypeNodeKind(kind) { + return kind >= ts.SyntaxKind.FirstTypeNode && kind <= ts.SyntaxKind.LastTypeNode; +} +exports.isTypeNodeKind = isTypeNodeKind; +function isJsDocKind(kind) { + return kind >= ts.SyntaxKind.FirstJSDocNode && kind <= ts.SyntaxKind.LastJSDocNode; +} +exports.isJsDocKind = isJsDocKind; +function isKeywordKind(kind) { + return kind >= ts.SyntaxKind.FirstKeyword && kind <= ts.SyntaxKind.LastKeyword; +} +exports.isKeywordKind = isKeywordKind; +function isThisParameter(parameter) { + return parameter.name.kind === ts.SyntaxKind.Identifier && parameter.name.originalKeywordKind === ts.SyntaxKind.ThisKeyword; +} +exports.isThisParameter = isThisParameter; +function getModifier(node, kind) { + if (node.modifiers !== undefined) + for (const modifier of node.modifiers) + if (modifier.kind === kind) + return modifier; +} +exports.getModifier = getModifier; +function hasModifier(modifiers, ...kinds) { + if (modifiers === undefined) + return false; + for (const modifier of modifiers) + if (kinds.includes(modifier.kind)) + return true; + return false; +} +exports.hasModifier = hasModifier; +function isParameterProperty(node) { + return hasModifier(node.modifiers, ts.SyntaxKind.PublicKeyword, ts.SyntaxKind.ProtectedKeyword, ts.SyntaxKind.PrivateKeyword, ts.SyntaxKind.ReadonlyKeyword); +} +exports.isParameterProperty = isParameterProperty; +function hasAccessModifier(node) { + return hasModifier(node.modifiers, ts.SyntaxKind.PublicKeyword, ts.SyntaxKind.ProtectedKeyword, ts.SyntaxKind.PrivateKeyword); +} +exports.hasAccessModifier = hasAccessModifier; +function isFlagSet(obj, flag) { + return (obj.flags & flag) !== 0; +} +exports.isNodeFlagSet = isFlagSet; +exports.isTypeFlagSet = isFlagSet; +exports.isSymbolFlagSet = isFlagSet; +function isObjectFlagSet(objectType, flag) { + return (objectType.objectFlags & flag) !== 0; +} +exports.isObjectFlagSet = isObjectFlagSet; +function isModifierFlagSet(node, flag) { + return (ts.getCombinedModifierFlags(node) & flag) !== 0; +} +exports.isModifierFlagSet = isModifierFlagSet; +function getPreviousStatement(statement) { + const parent = statement.parent; + if (node_1.isBlockLike(parent)) { + const index = parent.statements.indexOf(statement); + if (index > 0) + return parent.statements[index - 1]; + } +} +exports.getPreviousStatement = getPreviousStatement; +function getNextStatement(statement) { + const parent = statement.parent; + if (node_1.isBlockLike(parent)) { + const index = parent.statements.indexOf(statement); + if (index < parent.statements.length) + return parent.statements[index + 1]; + } +} +exports.getNextStatement = getNextStatement; +function getPreviousToken(node, sourceFile) { + let parent = node.parent; + while (parent !== undefined && parent.pos === node.pos) + parent = parent.parent; + if (parent === undefined) + return; + outer: while (true) { + const children = parent.getChildren(sourceFile); + for (let i = children.length - 1; i >= 0; --i) { + const child = children[i]; + if (child.pos < node.pos && child.kind !== ts.SyntaxKind.JSDocComment) { + if (isTokenKind(child.kind)) + return child; + parent = child; + continue outer; + } + } + return; + } +} +exports.getPreviousToken = getPreviousToken; +function getNextToken(node, sourceFile = node.getSourceFile()) { + if (node.kind === ts.SyntaxKind.SourceFile || node.kind === ts.SyntaxKind.EndOfFileToken) + return; + const end = node.end; + node = node.parent; + while (node.end === end) { + if (node.parent === undefined) + return node.endOfFileToken; + node = node.parent; + } + return getTokenAtPositionWorker(node, end, sourceFile, false); +} +exports.getNextToken = getNextToken; +function getTokenAtPosition(parent, pos, sourceFile, allowJsDoc) { + if (pos < parent.pos || pos >= parent.end) + return; + if (isTokenKind(parent.kind)) + return parent; + if (sourceFile === undefined) + sourceFile = parent.getSourceFile(); + return getTokenAtPositionWorker(parent, pos, sourceFile, allowJsDoc === true); +} +exports.getTokenAtPosition = getTokenAtPosition; +function getTokenAtPositionWorker(node, pos, sourceFile, allowJsDoc) { + outer: while (true) { + for (const child of node.getChildren(sourceFile)) { + if (child.end > pos && (allowJsDoc || child.kind !== ts.SyntaxKind.JSDocComment)) { + if (isTokenKind(child.kind)) + return child; + node = child; + continue outer; + } + } + return; + } +} +function getCommentAtPosition(sourceFile, pos, parent = sourceFile) { + const token = getTokenAtPosition(parent, pos, sourceFile); + if (token === undefined || token.kind === ts.SyntaxKind.JsxText || pos >= token.end - (ts.tokenToString(token.kind) || '').length) + return; + const startPos = token.pos === 0 + ? (ts.getShebang(sourceFile.text) || '').length + : token.pos; + return startPos !== 0 && ts.forEachTrailingCommentRange(sourceFile.text, startPos, commentAtPositionCallback, pos) || + ts.forEachLeadingCommentRange(sourceFile.text, startPos, commentAtPositionCallback, pos); +} +exports.getCommentAtPosition = getCommentAtPosition; +function commentAtPositionCallback(pos, end, kind, _nl, at) { + return at >= pos && at < end ? { pos, end, kind } : undefined; +} +function isPositionInComment(sourceFile, pos, parent) { + return getCommentAtPosition(sourceFile, pos, parent) !== undefined; +} +exports.isPositionInComment = isPositionInComment; +function commentText(sourceText, comment) { + return sourceText.substring(comment.pos + 2, comment.kind === ts.SyntaxKind.SingleLineCommentTrivia ? comment.end : comment.end - 2); +} +exports.commentText = commentText; +function getWrappedNodeAtPosition(wrap, pos) { + if (wrap.node.pos > pos || wrap.node.end <= pos) + return; + outer: while (true) { + for (const child of wrap.children) { + if (child.node.pos > pos) + return wrap; + if (child.node.end > pos) { + wrap = child; + continue outer; + } + } + return wrap; + } +} +exports.getWrappedNodeAtPosition = getWrappedNodeAtPosition; +function getPropertyName(propertyName) { + if (propertyName.kind === ts.SyntaxKind.ComputedPropertyName) { + if (!node_1.isLiteralExpression(propertyName.expression)) + return; + if (_3_2_1.isBigIntLiteral(propertyName.expression)) + return propertyName.expression.text.slice(0, -1); + return propertyName.expression.text; + } + return propertyName.text; +} +exports.getPropertyName = getPropertyName; +function forEachDestructuringIdentifier(pattern, fn) { + for (const element of pattern.elements) { + if (element.kind !== ts.SyntaxKind.BindingElement) + continue; + let result; + if (element.name.kind === ts.SyntaxKind.Identifier) { + result = fn(element); + } + else { + result = forEachDestructuringIdentifier(element.name, fn); + } + if (result) + return result; + } +} +exports.forEachDestructuringIdentifier = forEachDestructuringIdentifier; +function forEachDeclaredVariable(declarationList, cb) { + for (const declaration of declarationList.declarations) { + let result; + if (declaration.name.kind === ts.SyntaxKind.Identifier) { + result = cb(declaration); + } + else { + result = forEachDestructuringIdentifier(declaration.name, cb); + } + if (result) + return result; + } +} +exports.forEachDeclaredVariable = forEachDeclaredVariable; +var VariableDeclarationKind; +(function (VariableDeclarationKind) { + VariableDeclarationKind[VariableDeclarationKind["Var"] = 0] = "Var"; + VariableDeclarationKind[VariableDeclarationKind["Let"] = 1] = "Let"; + VariableDeclarationKind[VariableDeclarationKind["Const"] = 2] = "Const"; +})(VariableDeclarationKind = exports.VariableDeclarationKind || (exports.VariableDeclarationKind = {})); +function getVariableDeclarationKind(declarationList) { + if (declarationList.flags & ts.NodeFlags.Let) + return 1; + if (declarationList.flags & ts.NodeFlags.Const) + return 2; + return 0; +} +exports.getVariableDeclarationKind = getVariableDeclarationKind; +function isBlockScopedVariableDeclarationList(declarationList) { + return (declarationList.flags & ts.NodeFlags.BlockScoped) !== 0; +} +exports.isBlockScopedVariableDeclarationList = isBlockScopedVariableDeclarationList; +function isBlockScopedVariableDeclaration(declaration) { + const parent = declaration.parent; + return parent.kind === ts.SyntaxKind.CatchClause || + isBlockScopedVariableDeclarationList(parent); +} +exports.isBlockScopedVariableDeclaration = isBlockScopedVariableDeclaration; +function isBlockScopedDeclarationStatement(statement) { + switch (statement.kind) { + case ts.SyntaxKind.VariableStatement: + return isBlockScopedVariableDeclarationList(statement.declarationList); + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.EnumDeclaration: + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + return true; + default: + return false; + } +} +exports.isBlockScopedDeclarationStatement = isBlockScopedDeclarationStatement; +function isInSingleStatementContext(statement) { + switch (statement.parent.kind) { + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.ForInStatement: + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.WhileStatement: + case ts.SyntaxKind.DoStatement: + case ts.SyntaxKind.IfStatement: + case ts.SyntaxKind.WithStatement: + case ts.SyntaxKind.LabeledStatement: + return true; + default: + return false; + } +} +exports.isInSingleStatementContext = isInSingleStatementContext; +var ScopeBoundary; +(function (ScopeBoundary) { + ScopeBoundary[ScopeBoundary["None"] = 0] = "None"; + ScopeBoundary[ScopeBoundary["Function"] = 1] = "Function"; + ScopeBoundary[ScopeBoundary["Block"] = 2] = "Block"; + ScopeBoundary[ScopeBoundary["Type"] = 4] = "Type"; + ScopeBoundary[ScopeBoundary["ConditionalType"] = 8] = "ConditionalType"; +})(ScopeBoundary = exports.ScopeBoundary || (exports.ScopeBoundary = {})); +var ScopeBoundarySelector; +(function (ScopeBoundarySelector) { + ScopeBoundarySelector[ScopeBoundarySelector["Function"] = 1] = "Function"; + ScopeBoundarySelector[ScopeBoundarySelector["Block"] = 3] = "Block"; + ScopeBoundarySelector[ScopeBoundarySelector["Type"] = 7] = "Type"; + ScopeBoundarySelector[ScopeBoundarySelector["InferType"] = 8] = "InferType"; +})(ScopeBoundarySelector = exports.ScopeBoundarySelector || (exports.ScopeBoundarySelector = {})); +function isScopeBoundary(node) { + return isFunctionScopeBoundary(node) || isBlockScopeBoundary(node) || isTypeScopeBoundary(node); +} +exports.isScopeBoundary = isScopeBoundary; +function isTypeScopeBoundary(node) { + switch (node.kind) { + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + case ts.SyntaxKind.MappedType: + return 4; + case ts.SyntaxKind.ConditionalType: + return 8; + default: + return 0; + } +} +exports.isTypeScopeBoundary = isTypeScopeBoundary; +function isFunctionScopeBoundary(node) { + switch (node.kind) { + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.ModuleDeclaration: + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.ClassExpression: + case ts.SyntaxKind.EnumDeclaration: + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.MethodSignature: + case ts.SyntaxKind.CallSignature: + case ts.SyntaxKind.ConstructSignature: + case ts.SyntaxKind.ConstructorType: + case ts.SyntaxKind.FunctionType: + return 1; + case ts.SyntaxKind.SourceFile: + return ts.isExternalModule(node) ? 1 : 0; + default: + return 0; + } +} +exports.isFunctionScopeBoundary = isFunctionScopeBoundary; +function isBlockScopeBoundary(node) { + switch (node.kind) { + case ts.SyntaxKind.Block: + const parent = node.parent; + return parent.kind !== ts.SyntaxKind.CatchClause && + (parent.kind === ts.SyntaxKind.SourceFile || + !isFunctionScopeBoundary(parent)) + ? 2 + : 0; + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.ForInStatement: + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.CaseBlock: + case ts.SyntaxKind.CatchClause: + case ts.SyntaxKind.WithStatement: + return 2; + default: + return 0; + } +} +exports.isBlockScopeBoundary = isBlockScopeBoundary; +function hasOwnThisReference(node) { + switch (node.kind) { + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.ClassExpression: + case ts.SyntaxKind.FunctionExpression: + return true; + case ts.SyntaxKind.FunctionDeclaration: + return node.body !== undefined; + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + return node.parent.kind === ts.SyntaxKind.ObjectLiteralExpression; + default: + return false; + } +} +exports.hasOwnThisReference = hasOwnThisReference; +function isFunctionWithBody(node) { + switch (node.kind) { + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.Constructor: + return node.body !== undefined; + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.ArrowFunction: + return true; + default: + return false; + } +} +exports.isFunctionWithBody = isFunctionWithBody; +function forEachToken(node, cb, sourceFile = node.getSourceFile()) { + return (function iterate(child) { + if (isTokenKind(child.kind)) + return cb(child); + if (child.kind !== ts.SyntaxKind.JSDocComment) + return child.getChildren(sourceFile).forEach(iterate); + })(node); +} +exports.forEachToken = forEachToken; +function forEachTokenWithTrivia(node, cb, sourceFile = node.getSourceFile()) { + const fullText = sourceFile.text; + const scanner = ts.createScanner(sourceFile.languageVersion, false, sourceFile.languageVariant, fullText); + return forEachToken(node, (token) => { + const tokenStart = token.kind === ts.SyntaxKind.JsxText || token.pos === token.end ? token.pos : token.getStart(sourceFile); + if (tokenStart !== token.pos) { + scanner.setTextPos(token.pos); + let kind = scanner.scan(); + let pos = scanner.getTokenPos(); + while (pos < tokenStart) { + const textPos = scanner.getTextPos(); + cb(fullText, kind, { pos, end: textPos }, token.parent); + if (textPos === tokenStart) + break; + kind = scanner.scan(); + pos = scanner.getTokenPos(); + } + } + return cb(fullText, token.kind, { end: token.end, pos: tokenStart }, token.parent); + }, sourceFile); +} +exports.forEachTokenWithTrivia = forEachTokenWithTrivia; +function forEachComment(node, cb, sourceFile = node.getSourceFile()) { + const fullText = sourceFile.text; + const notJsx = sourceFile.languageVariant !== ts.LanguageVariant.JSX; + return forEachToken(node, (token) => { + if (token.pos === token.end) + return; + if (token.kind !== ts.SyntaxKind.JsxText) + ts.forEachLeadingCommentRange(fullText, token.pos === 0 ? (ts.getShebang(fullText) || '').length : token.pos, commentCallback); + if (notJsx || canHaveTrailingTrivia(token)) + return ts.forEachTrailingCommentRange(fullText, token.end, commentCallback); + }, sourceFile); + function commentCallback(pos, end, kind) { + cb(fullText, { pos, end, kind }); + } +} +exports.forEachComment = forEachComment; +function canHaveTrailingTrivia(token) { + switch (token.kind) { + case ts.SyntaxKind.CloseBraceToken: + return token.parent.kind !== ts.SyntaxKind.JsxExpression || !isJsxElementOrFragment(token.parent.parent); + case ts.SyntaxKind.GreaterThanToken: + switch (token.parent.kind) { + case ts.SyntaxKind.JsxOpeningElement: + return token.end !== token.parent.end; + case ts.SyntaxKind.JsxOpeningFragment: + return false; + case ts.SyntaxKind.JsxSelfClosingElement: + return token.end !== token.parent.end || + !isJsxElementOrFragment(token.parent.parent); + case ts.SyntaxKind.JsxClosingElement: + case ts.SyntaxKind.JsxClosingFragment: + return !isJsxElementOrFragment(token.parent.parent.parent); + } + } + return true; +} +function isJsxElementOrFragment(node) { + return node.kind === ts.SyntaxKind.JsxElement || node.kind === ts.SyntaxKind.JsxFragment; +} +function getLineRanges(sourceFile) { + const lineStarts = sourceFile.getLineStarts(); + const result = []; + const length = lineStarts.length; + const sourceText = sourceFile.text; + let pos = 0; + for (let i = 1; i < length; ++i) { + const end = lineStarts[i]; + let lineEnd = end; + for (; lineEnd > pos; --lineEnd) + if (!ts.isLineBreak(sourceText.charCodeAt(lineEnd - 1))) + break; + result.push({ + pos, + end, + contentLength: lineEnd - pos, + }); + pos = end; + } + result.push({ + pos, + end: sourceFile.end, + contentLength: sourceFile.end - pos, + }); + return result; +} +exports.getLineRanges = getLineRanges; +function getLineBreakStyle(sourceFile) { + const lineStarts = sourceFile.getLineStarts(); + return lineStarts.length === 1 || lineStarts[1] < 2 || sourceFile.text[lineStarts[1] - 2] !== '\r' + ? '\n' + : '\r\n'; +} +exports.getLineBreakStyle = getLineBreakStyle; +let cachedScanner; +function scanToken(text, languageVersion) { + if (cachedScanner === undefined) { + cachedScanner = ts.createScanner(languageVersion, false, undefined, text); + } + else { + cachedScanner.setScriptTarget(languageVersion); + cachedScanner.setText(text); + } + cachedScanner.scan(); + return cachedScanner; +} +function isValidIdentifier(text, languageVersion = ts.ScriptTarget.Latest) { + const scan = scanToken(text, languageVersion); + return scan.isIdentifier() && scan.getTextPos() === text.length && scan.getTokenPos() === 0; +} +exports.isValidIdentifier = isValidIdentifier; +function charSize(ch) { + return ch >= 0x10000 ? 2 : 1; +} +function isValidPropertyAccess(text, languageVersion = ts.ScriptTarget.Latest) { + if (text.length === 0) + return false; + let ch = text.codePointAt(0); + if (!ts.isIdentifierStart(ch, languageVersion)) + return false; + for (let i = charSize(ch); i < text.length; i += charSize(ch)) { + ch = text.codePointAt(i); + if (!ts.isIdentifierPart(ch, languageVersion)) + return false; + } + return true; +} +exports.isValidPropertyAccess = isValidPropertyAccess; +function isValidPropertyName(text, languageVersion = ts.ScriptTarget.Latest) { + if (isValidPropertyAccess(text, languageVersion)) + return true; + const scan = scanToken(text, languageVersion); + return scan.getTextPos() === text.length && + scan.getToken() === ts.SyntaxKind.NumericLiteral && scan.getTokenValue() === text; +} +exports.isValidPropertyName = isValidPropertyName; +function isValidNumericLiteral(text, languageVersion = ts.ScriptTarget.Latest) { + const scan = scanToken(text, languageVersion); + return scan.getToken() === ts.SyntaxKind.NumericLiteral && scan.getTextPos() === text.length && scan.getTokenPos() === 0; +} +exports.isValidNumericLiteral = isValidNumericLiteral; +function isValidJsxIdentifier(text, languageVersion = ts.ScriptTarget.Latest) { + if (text.length === 0) + return false; + let ch = text.codePointAt(0); + if (!ts.isIdentifierStart(ch, languageVersion)) + return false; + for (let i = charSize(ch); i < text.length; i += charSize(ch)) { + ch = text.codePointAt(i); + if (!ts.isIdentifierPart(ch, languageVersion) && ch !== 45) + return false; + } + return true; +} +exports.isValidJsxIdentifier = isValidJsxIdentifier; +function isNumericPropertyName(name) { + return String(+name) === name; +} +exports.isNumericPropertyName = isNumericPropertyName; +function isSameLine(sourceFile, pos1, pos2) { + return ts.getLineAndCharacterOfPosition(sourceFile, pos1).line === ts.getLineAndCharacterOfPosition(sourceFile, pos2).line; +} +exports.isSameLine = isSameLine; +var SideEffectOptions; +(function (SideEffectOptions) { + SideEffectOptions[SideEffectOptions["None"] = 0] = "None"; + SideEffectOptions[SideEffectOptions["TaggedTemplate"] = 1] = "TaggedTemplate"; + SideEffectOptions[SideEffectOptions["Constructor"] = 2] = "Constructor"; + SideEffectOptions[SideEffectOptions["JsxElement"] = 4] = "JsxElement"; +})(SideEffectOptions = exports.SideEffectOptions || (exports.SideEffectOptions = {})); +function hasSideEffects(node, options) { + switch (node.kind) { + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.PostfixUnaryExpression: + case ts.SyntaxKind.AwaitExpression: + case ts.SyntaxKind.YieldExpression: + case ts.SyntaxKind.DeleteExpression: + return true; + case ts.SyntaxKind.TypeAssertionExpression: + case ts.SyntaxKind.AsExpression: + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.NonNullExpression: + case ts.SyntaxKind.VoidExpression: + case ts.SyntaxKind.TypeOfExpression: + case ts.SyntaxKind.PropertyAccessExpression: + case ts.SyntaxKind.SpreadElement: + case ts.SyntaxKind.PartiallyEmittedExpression: + return hasSideEffects(node.expression, options); + case ts.SyntaxKind.BinaryExpression: + return isAssignmentKind(node.operatorToken.kind) || + hasSideEffects(node.left, options) || + hasSideEffects(node.right, options); + case ts.SyntaxKind.PrefixUnaryExpression: + switch (node.operator) { + case ts.SyntaxKind.PlusPlusToken: + case ts.SyntaxKind.MinusMinusToken: + return true; + default: + return hasSideEffects(node.operand, options); + } + case ts.SyntaxKind.ElementAccessExpression: + return hasSideEffects(node.expression, options) || + node.argumentExpression !== undefined && + hasSideEffects(node.argumentExpression, options); + case ts.SyntaxKind.ConditionalExpression: + return hasSideEffects(node.condition, options) || + hasSideEffects(node.whenTrue, options) || + hasSideEffects(node.whenFalse, options); + case ts.SyntaxKind.NewExpression: + if (options & 2 || hasSideEffects(node.expression, options)) + return true; + if (node.arguments !== undefined) + for (const child of node.arguments) + if (hasSideEffects(child, options)) + return true; + return false; + case ts.SyntaxKind.TaggedTemplateExpression: + if (options & 1 || hasSideEffects(node.tag, options)) + return true; + if (node.template.kind === ts.SyntaxKind.NoSubstitutionTemplateLiteral) + return false; + node = node.template; + case ts.SyntaxKind.TemplateExpression: + for (const child of node.templateSpans) + if (hasSideEffects(child.expression, options)) + return true; + return false; + case ts.SyntaxKind.ClassExpression: + return classExpressionHasSideEffects(node, options); + case ts.SyntaxKind.ArrayLiteralExpression: + for (const child of node.elements) + if (hasSideEffects(child, options)) + return true; + return false; + case ts.SyntaxKind.ObjectLiteralExpression: + for (const child of node.properties) { + if (child.name !== undefined && child.name.kind === ts.SyntaxKind.ComputedPropertyName && + hasSideEffects(child.name.expression, options)) + return true; + switch (child.kind) { + case ts.SyntaxKind.PropertyAssignment: + if (hasSideEffects(child.initializer, options)) + return true; + break; + case ts.SyntaxKind.SpreadAssignment: + if (hasSideEffects(child.expression, options)) + return true; + } + } + return false; + case ts.SyntaxKind.JsxExpression: + return node.expression !== undefined && hasSideEffects(node.expression, options); + case ts.SyntaxKind.JsxElement: + case ts.SyntaxKind.JsxFragment: + for (const child of node.children) + if (child.kind !== ts.SyntaxKind.JsxText && hasSideEffects(child, options)) + return true; + if (node.kind === ts.SyntaxKind.JsxFragment) + return false; + node = node.openingElement; + case ts.SyntaxKind.JsxSelfClosingElement: + case ts.SyntaxKind.JsxOpeningElement: + if (options & 4) + return true; + for (const child of node.attributes.properties) { + if (child.kind === ts.SyntaxKind.JsxSpreadAttribute) { + if (hasSideEffects(child.expression, options)) + return true; + } + else if (child.initializer !== undefined && hasSideEffects(child.initializer, options)) { + return true; + } + } + return false; + case ts.SyntaxKind.CommaListExpression: + for (const child of node.elements) + if (hasSideEffects(child, options)) + return true; + return false; + default: + return false; + } +} +exports.hasSideEffects = hasSideEffects; +function classExpressionHasSideEffects(node, options) { + if (node.heritageClauses !== undefined && node.heritageClauses[0].token === ts.SyntaxKind.ExtendsKeyword) + for (const base of node.heritageClauses[0].types) + if (hasSideEffects(base.expression, options)) + return true; + for (const child of node.members) + if (child.name !== undefined && child.name.kind === ts.SyntaxKind.ComputedPropertyName && + hasSideEffects(child.name.expression, options) || + node_1.isPropertyDeclaration(child) && child.initializer !== undefined && + hasSideEffects(child.initializer, options)) + return true; + return false; +} +function getDeclarationOfBindingElement(node) { + let parent = node.parent.parent; + while (parent.kind === ts.SyntaxKind.BindingElement) + parent = parent.parent.parent; + return parent; +} +exports.getDeclarationOfBindingElement = getDeclarationOfBindingElement; +function isExpressionValueUsed(node) { + while (true) { + const parent = node.parent; + switch (parent.kind) { + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.NewExpression: + case ts.SyntaxKind.ElementAccessExpression: + case ts.SyntaxKind.WhileStatement: + case ts.SyntaxKind.DoStatement: + case ts.SyntaxKind.WithStatement: + case ts.SyntaxKind.ThrowStatement: + case ts.SyntaxKind.ReturnStatement: + case ts.SyntaxKind.JsxExpression: + case ts.SyntaxKind.JsxSpreadAttribute: + case ts.SyntaxKind.JsxElement: + case ts.SyntaxKind.JsxFragment: + case ts.SyntaxKind.JsxSelfClosingElement: + case ts.SyntaxKind.ComputedPropertyName: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.ExportSpecifier: + case ts.SyntaxKind.ExportAssignment: + case ts.SyntaxKind.ImportDeclaration: + case ts.SyntaxKind.ExternalModuleReference: + case ts.SyntaxKind.Decorator: + case ts.SyntaxKind.TaggedTemplateExpression: + case ts.SyntaxKind.TemplateSpan: + case ts.SyntaxKind.ExpressionWithTypeArguments: + case ts.SyntaxKind.TypeOfExpression: + case ts.SyntaxKind.AwaitExpression: + case ts.SyntaxKind.YieldExpression: + case ts.SyntaxKind.LiteralType: + case ts.SyntaxKind.JsxAttributes: + case ts.SyntaxKind.JsxOpeningElement: + case ts.SyntaxKind.JsxClosingElement: + case ts.SyntaxKind.IfStatement: + case ts.SyntaxKind.CaseClause: + case ts.SyntaxKind.SwitchStatement: + return true; + case ts.SyntaxKind.PropertyAccessExpression: + return parent.expression === node; + case ts.SyntaxKind.QualifiedName: + return parent.left === node; + case ts.SyntaxKind.ShorthandPropertyAssignment: + return parent.objectAssignmentInitializer === node || + !isInDestructuringAssignment(parent); + case ts.SyntaxKind.PropertyAssignment: + return parent.initializer === node && !isInDestructuringAssignment(parent); + case ts.SyntaxKind.SpreadAssignment: + case ts.SyntaxKind.SpreadElement: + case ts.SyntaxKind.ArrayLiteralExpression: + return !isInDestructuringAssignment(parent); + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.AsExpression: + case ts.SyntaxKind.TypeAssertionExpression: + case ts.SyntaxKind.PostfixUnaryExpression: + case ts.SyntaxKind.PrefixUnaryExpression: + case ts.SyntaxKind.NonNullExpression: + node = parent; + break; + case ts.SyntaxKind.ForStatement: + return parent.condition === node; + case ts.SyntaxKind.ForInStatement: + case ts.SyntaxKind.ForOfStatement: + return parent.expression === node; + case ts.SyntaxKind.ConditionalExpression: + if (parent.condition === node) + return true; + node = parent; + break; + case ts.SyntaxKind.PropertyDeclaration: + case ts.SyntaxKind.BindingElement: + case ts.SyntaxKind.VariableDeclaration: + case ts.SyntaxKind.Parameter: + case ts.SyntaxKind.EnumMember: + return parent.initializer === node; + case ts.SyntaxKind.ImportEqualsDeclaration: + return parent.moduleReference === node; + case ts.SyntaxKind.CommaListExpression: + if (parent.elements[parent.elements.length - 1] !== node) + return false; + node = parent; + break; + case ts.SyntaxKind.BinaryExpression: + if (parent.right === node) { + if (parent.operatorToken.kind === ts.SyntaxKind.CommaToken) { + node = parent; + break; + } + return true; + } + switch (parent.operatorToken.kind) { + case ts.SyntaxKind.CommaToken: + case ts.SyntaxKind.EqualsToken: + return false; + case ts.SyntaxKind.EqualsEqualsEqualsToken: + case ts.SyntaxKind.EqualsEqualsToken: + case ts.SyntaxKind.ExclamationEqualsEqualsToken: + case ts.SyntaxKind.ExclamationEqualsToken: + case ts.SyntaxKind.InstanceOfKeyword: + case ts.SyntaxKind.PlusToken: + case ts.SyntaxKind.MinusToken: + case ts.SyntaxKind.AsteriskToken: + case ts.SyntaxKind.SlashToken: + case ts.SyntaxKind.PercentToken: + case ts.SyntaxKind.AsteriskAsteriskToken: + case ts.SyntaxKind.GreaterThanToken: + case ts.SyntaxKind.GreaterThanGreaterThanToken: + case ts.SyntaxKind.GreaterThanGreaterThanGreaterThanToken: + case ts.SyntaxKind.GreaterThanEqualsToken: + case ts.SyntaxKind.LessThanToken: + case ts.SyntaxKind.LessThanLessThanToken: + case ts.SyntaxKind.LessThanEqualsToken: + case ts.SyntaxKind.AmpersandToken: + case ts.SyntaxKind.BarToken: + case ts.SyntaxKind.CaretToken: + case ts.SyntaxKind.BarBarToken: + case ts.SyntaxKind.AmpersandAmpersandToken: + case ts.SyntaxKind.InKeyword: + return true; + default: + node = parent; + } + break; + default: + return false; + } + } +} +exports.isExpressionValueUsed = isExpressionValueUsed; +function isInDestructuringAssignment(node) { + switch (node.kind) { + case ts.SyntaxKind.ShorthandPropertyAssignment: + if (node.objectAssignmentInitializer !== undefined) + return true; + case ts.SyntaxKind.PropertyAssignment: + case ts.SyntaxKind.SpreadAssignment: + node = node.parent; + break; + case ts.SyntaxKind.SpreadElement: + if (node.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) + return false; + node = node.parent; + } + while (true) { + switch (node.parent.kind) { + case ts.SyntaxKind.BinaryExpression: + return node.parent.left === node && + node.parent.operatorToken.kind === ts.SyntaxKind.EqualsToken; + case ts.SyntaxKind.ForOfStatement: + return node.parent.initializer === node; + case ts.SyntaxKind.ArrayLiteralExpression: + case ts.SyntaxKind.ObjectLiteralExpression: + node = node.parent; + break; + case ts.SyntaxKind.SpreadAssignment: + case ts.SyntaxKind.PropertyAssignment: + node = node.parent.parent; + break; + case ts.SyntaxKind.SpreadElement: + if (node.parent.parent.kind !== ts.SyntaxKind.ArrayLiteralExpression) + return false; + node = node.parent.parent; + break; + default: + return false; + } + } +} +var AccessKind; +(function (AccessKind) { + AccessKind[AccessKind["None"] = 0] = "None"; + AccessKind[AccessKind["Read"] = 1] = "Read"; + AccessKind[AccessKind["Write"] = 2] = "Write"; + AccessKind[AccessKind["Delete"] = 4] = "Delete"; + AccessKind[AccessKind["ReadWrite"] = 3] = "ReadWrite"; + AccessKind[AccessKind["Modification"] = 6] = "Modification"; +})(AccessKind = exports.AccessKind || (exports.AccessKind = {})); +function getAccessKind(node) { + const parent = node.parent; + switch (parent.kind) { + case ts.SyntaxKind.DeleteExpression: + return 4; + case ts.SyntaxKind.PostfixUnaryExpression: + return 3; + case ts.SyntaxKind.PrefixUnaryExpression: + return parent.operator === ts.SyntaxKind.PlusPlusToken || + parent.operator === ts.SyntaxKind.MinusMinusToken + ? 3 + : 1; + case ts.SyntaxKind.BinaryExpression: + return parent.right === node + ? 1 + : !isAssignmentKind(parent.operatorToken.kind) + ? 1 + : parent.operatorToken.kind === ts.SyntaxKind.EqualsToken + ? 2 + : 3; + case ts.SyntaxKind.ShorthandPropertyAssignment: + return parent.objectAssignmentInitializer === node + ? 1 + : isInDestructuringAssignment(parent) + ? 2 + : 1; + case ts.SyntaxKind.PropertyAssignment: + return parent.name === node + ? 0 + : isInDestructuringAssignment(parent) + ? 2 + : 1; + case ts.SyntaxKind.ArrayLiteralExpression: + case ts.SyntaxKind.SpreadElement: + case ts.SyntaxKind.SpreadAssignment: + return isInDestructuringAssignment(parent) + ? 2 + : 1; + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.NonNullExpression: + case ts.SyntaxKind.TypeAssertionExpression: + case ts.SyntaxKind.AsExpression: + return getAccessKind(parent); + case ts.SyntaxKind.ForOfStatement: + case ts.SyntaxKind.ForInStatement: + return parent.initializer === node + ? 2 + : 1; + case ts.SyntaxKind.ExpressionWithTypeArguments: + return parent.parent.token === ts.SyntaxKind.ExtendsKeyword && + parent.parent.parent.kind !== ts.SyntaxKind.InterfaceDeclaration + ? 1 + : 0; + case ts.SyntaxKind.ComputedPropertyName: + case ts.SyntaxKind.ExpressionStatement: + case ts.SyntaxKind.TypeOfExpression: + case ts.SyntaxKind.ElementAccessExpression: + case ts.SyntaxKind.ForStatement: + case ts.SyntaxKind.IfStatement: + case ts.SyntaxKind.DoStatement: + case ts.SyntaxKind.WhileStatement: + case ts.SyntaxKind.SwitchStatement: + case ts.SyntaxKind.WithStatement: + case ts.SyntaxKind.ThrowStatement: + case ts.SyntaxKind.CallExpression: + case ts.SyntaxKind.NewExpression: + case ts.SyntaxKind.TaggedTemplateExpression: + case ts.SyntaxKind.JsxExpression: + case ts.SyntaxKind.Decorator: + case ts.SyntaxKind.TemplateSpan: + case ts.SyntaxKind.JsxOpeningElement: + case ts.SyntaxKind.JsxSelfClosingElement: + case ts.SyntaxKind.JsxSpreadAttribute: + case ts.SyntaxKind.VoidExpression: + case ts.SyntaxKind.ReturnStatement: + case ts.SyntaxKind.AwaitExpression: + case ts.SyntaxKind.YieldExpression: + case ts.SyntaxKind.ConditionalExpression: + case ts.SyntaxKind.CaseClause: + case ts.SyntaxKind.JsxElement: + return 1; + case ts.SyntaxKind.ArrowFunction: + return parent.body === node + ? 1 + : 2; + case ts.SyntaxKind.PropertyDeclaration: + case ts.SyntaxKind.VariableDeclaration: + case ts.SyntaxKind.Parameter: + case ts.SyntaxKind.EnumMember: + case ts.SyntaxKind.BindingElement: + case ts.SyntaxKind.JsxAttribute: + return parent.initializer === node + ? 1 + : 0; + case ts.SyntaxKind.PropertyAccessExpression: + return parent.expression === node + ? 1 + : 0; + case ts.SyntaxKind.ExportAssignment: + return parent.isExportEquals + ? 1 + : 0; + } + return 0; +} +exports.getAccessKind = getAccessKind; +function isReassignmentTarget(node) { + return (getAccessKind(node) & 2) !== 0; +} +exports.isReassignmentTarget = isReassignmentTarget; +function canHaveJsDoc(node) { + const kind = node.kind; + switch (kind) { + case ts.SyntaxKind.Parameter: + case ts.SyntaxKind.CallSignature: + case ts.SyntaxKind.ConstructSignature: + case ts.SyntaxKind.MethodSignature: + case ts.SyntaxKind.PropertySignature: + case ts.SyntaxKind.ArrowFunction: + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.SpreadAssignment: + case ts.SyntaxKind.ShorthandPropertyAssignment: + case ts.SyntaxKind.PropertyAssignment: + case ts.SyntaxKind.FunctionExpression: + case ts.SyntaxKind.FunctionDeclaration: + case ts.SyntaxKind.LabeledStatement: + case ts.SyntaxKind.ExpressionStatement: + case ts.SyntaxKind.VariableStatement: + case ts.SyntaxKind.Constructor: + case ts.SyntaxKind.MethodDeclaration: + case ts.SyntaxKind.PropertyDeclaration: + case ts.SyntaxKind.GetAccessor: + case ts.SyntaxKind.SetAccessor: + case ts.SyntaxKind.ClassDeclaration: + case ts.SyntaxKind.ClassExpression: + case ts.SyntaxKind.InterfaceDeclaration: + case ts.SyntaxKind.TypeAliasDeclaration: + case ts.SyntaxKind.EnumMember: + case ts.SyntaxKind.EnumDeclaration: + case ts.SyntaxKind.ModuleDeclaration: + case ts.SyntaxKind.ImportEqualsDeclaration: + case ts.SyntaxKind.IndexSignature: + case ts.SyntaxKind.FunctionType: + case ts.SyntaxKind.ConstructorType: + case ts.SyntaxKind.JSDocFunctionType: + case ts.SyntaxKind.EndOfFileToken: + case ts.SyntaxKind.ExportDeclaration: + return true; + default: + return false; + } +} +exports.canHaveJsDoc = canHaveJsDoc; +function getJsDoc(node, sourceFile) { + if (node.kind === ts.SyntaxKind.EndOfFileToken) + return parseJsDocWorker(node, sourceFile || node.parent); + const result = []; + for (const child of node.getChildren(sourceFile)) { + if (!node_1.isJsDoc(child)) + break; + result.push(child); + } + return result; +} +exports.getJsDoc = getJsDoc; +function parseJsDocOfNode(node, considerTrailingComments, sourceFile = node.getSourceFile()) { + if (canHaveJsDoc(node) && node.kind !== ts.SyntaxKind.EndOfFileToken) { + const result = getJsDoc(node, sourceFile); + if (result.length !== 0 || !considerTrailingComments) + return result; + } + return parseJsDocWorker(node, sourceFile, considerTrailingComments); +} +exports.parseJsDocOfNode = parseJsDocOfNode; +function parseJsDocWorker(node, sourceFile, considerTrailingComments) { + const nodeStart = node.getStart(sourceFile); + const start = ts[considerTrailingComments && isSameLine(sourceFile, node.pos, nodeStart) + ? 'forEachTrailingCommentRange' + : 'forEachLeadingCommentRange'](sourceFile.text, node.pos, (pos, _end, kind) => kind === ts.SyntaxKind.MultiLineCommentTrivia && sourceFile.text[pos + 2] === '*' ? { pos } : undefined); + if (start === undefined) + return []; + const startPos = start.pos; + const text = sourceFile.text.slice(startPos, nodeStart); + const newSourceFile = ts.createSourceFile('jsdoc.ts', `${text}var a;`, sourceFile.languageVersion); + const result = getJsDoc(newSourceFile.statements[0], newSourceFile); + for (const doc of result) + updateNode(doc, node); + return result; + function updateNode(n, parent) { + n.pos += startPos; + n.end += startPos; + n.parent = parent; + return ts.forEachChild(n, (child) => updateNode(child, n), (children) => { + children.pos += startPos; + children.end += startPos; + for (const child of children) + updateNode(child, n); + }); + } +} +var ImportKind; +(function (ImportKind) { + ImportKind[ImportKind["ImportDeclaration"] = 1] = "ImportDeclaration"; + ImportKind[ImportKind["ImportEquals"] = 2] = "ImportEquals"; + ImportKind[ImportKind["ExportFrom"] = 4] = "ExportFrom"; + ImportKind[ImportKind["DynamicImport"] = 8] = "DynamicImport"; + ImportKind[ImportKind["Require"] = 16] = "Require"; + ImportKind[ImportKind["ImportType"] = 32] = "ImportType"; + ImportKind[ImportKind["All"] = 63] = "All"; + ImportKind[ImportKind["AllImports"] = 59] = "AllImports"; + ImportKind[ImportKind["AllStaticImports"] = 3] = "AllStaticImports"; + ImportKind[ImportKind["AllImportExpressions"] = 24] = "AllImportExpressions"; + ImportKind[ImportKind["AllRequireLike"] = 18] = "AllRequireLike"; + ImportKind[ImportKind["AllNestedImports"] = 56] = "AllNestedImports"; + ImportKind[ImportKind["AllTopLevelImports"] = 7] = "AllTopLevelImports"; +})(ImportKind = exports.ImportKind || (exports.ImportKind = {})); +function findImports(sourceFile, kinds) { + const result = []; + for (const node of findImportLikeNodes(sourceFile, kinds)) { + switch (node.kind) { + case ts.SyntaxKind.ImportDeclaration: + addIfTextualLiteral(node.moduleSpecifier); + break; + case ts.SyntaxKind.ImportEqualsDeclaration: + addIfTextualLiteral(node.moduleReference.expression); + break; + case ts.SyntaxKind.ExportDeclaration: + addIfTextualLiteral(node.moduleSpecifier); + break; + case ts.SyntaxKind.CallExpression: + addIfTextualLiteral(node.arguments[0]); + break; + case ts.SyntaxKind.ImportType: + if (node_1.isLiteralTypeNode(node.argument)) + addIfTextualLiteral(node.argument.literal); + break; + default: + throw new Error('unexpected node'); + } + } + return result; + function addIfTextualLiteral(node) { + if (node_1.isTextualLiteral(node)) + result.push(node); + } +} +exports.findImports = findImports; +function findImportLikeNodes(sourceFile, kinds) { + return new ImportFinder(sourceFile, kinds).find(); +} +exports.findImportLikeNodes = findImportLikeNodes; +class ImportFinder { + constructor(_sourceFile, _options) { + this._sourceFile = _sourceFile; + this._options = _options; + this._result = []; + } + find() { + if (this._sourceFile.isDeclarationFile) + this._options &= ~24; + if (this._options & 7) + this._findImports(this._sourceFile.statements); + if (this._options & 56) + this._findNestedImports(); + return this._result; + } + _findImports(statements) { + for (const statement of statements) { + if (node_1.isImportDeclaration(statement)) { + if (this._options & 1) + this._result.push(statement); + } + else if (node_1.isImportEqualsDeclaration(statement)) { + if (this._options & 2 && + statement.moduleReference.kind === ts.SyntaxKind.ExternalModuleReference) + this._result.push(statement); + } + else if (node_1.isExportDeclaration(statement)) { + if (statement.moduleSpecifier !== undefined && this._options & 4) + this._result.push(statement); + } + else if (node_1.isModuleDeclaration(statement)) { + this._findImportsInModule(statement); + } + } + } + _findImportsInModule(declaration) { + if (declaration.body === undefined) + return; + if (declaration.body.kind === ts.SyntaxKind.ModuleDeclaration) + return this._findImportsInModule(declaration.body); + this._findImports(declaration.body.statements); + } + _findNestedImports() { + let re; + if ((this._options & 56) === 16) { + re = /\brequire\s*[ { + if (kind === ts.SyntaxKind.SingleLineCommentTrivia) { + const text = source.slice(pos, end); + const match = /^\/{2,3}\s*@ts-(no)?check(?:\s|$)/i.exec(text); + if (match !== null) + directive = { pos, end, enabled: match[1] === undefined }; + } + }); + return directive; +} +exports.getCheckJsDirective = getCheckJsDirective; +function isConstAssertion(node) { + return node_1.isTypeReferenceNode(node.type) && + node.type.typeName.kind === ts.SyntaxKind.Identifier && + node.type.typeName.escapedText === 'const'; +} +exports.isConstAssertion = isConstAssertion; +function isInConstContext(node) { + let current = node; + while (true) { + const parent = current.parent; + outer: switch (parent.kind) { + case ts.SyntaxKind.TypeAssertionExpression: + case ts.SyntaxKind.AsExpression: + return isConstAssertion(parent); + case ts.SyntaxKind.PrefixUnaryExpression: + if (current.kind !== ts.SyntaxKind.NumericLiteral) + return false; + switch (parent.operator) { + case ts.SyntaxKind.PlusToken: + case ts.SyntaxKind.MinusToken: + current = parent; + break outer; + default: + return false; + } + case ts.SyntaxKind.PropertyAssignment: + if (parent.initializer !== current) + return false; + current = parent.parent; + break; + case ts.SyntaxKind.ShorthandPropertyAssignment: + current = parent.parent; + break; + case ts.SyntaxKind.ParenthesizedExpression: + case ts.SyntaxKind.ArrayLiteralExpression: + case ts.SyntaxKind.ObjectLiteralExpression: + current = parent; + break; + default: + return false; + } + } +} +exports.isInConstContext = isInConstContext; +function isReadonlyAssignmentDeclaration(node, checker) { + if (!isBindableObjectDefinePropertyCall(node)) + return false; + const descriptorType = checker.getTypeAtLocation(node.arguments[2]); + if (descriptorType.getProperty('value') === undefined) + return descriptorType.getProperty('set') === undefined; + const writableProp = descriptorType.getProperty('writable'); + if (writableProp === undefined) + return false; + const writableType = writableProp.valueDeclaration !== undefined && node_1.isPropertyAssignment(writableProp.valueDeclaration) + ? checker.getTypeAtLocation(writableProp.valueDeclaration.initializer) + : checker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]); + return type_1.isBooleanLiteralType(writableType, false); +} +exports.isReadonlyAssignmentDeclaration = isReadonlyAssignmentDeclaration; +function isBindableObjectDefinePropertyCall(node) { + return node.arguments.length === 3 && + node_1.isEntityNameExpression(node.arguments[0]) && + node_1.isNumericOrStringLikeLiteral(node.arguments[1]) && + node_1.isPropertyAccessExpression(node.expression) && + node.expression.name.escapedText === 'defineProperty' && + node_1.isIdentifier(node.expression.expression) && + node.expression.expression.escapedText === 'Object'; +} +exports.isBindableObjectDefinePropertyCall = isBindableObjectDefinePropertyCall; +function isWellKnownSymbolLiterally(node) { + return ts.isPropertyAccessExpression(node) && + ts.isIdentifier(node.expression) && + node.expression.escapedText === 'Symbol'; +} +exports.isWellKnownSymbolLiterally = isWellKnownSymbolLiterally; +function getPropertyNameOfWellKnownSymbol(node) { + return { + displayName: `[Symbol.${node.name.text}]`, + symbolName: ('__@' + node.name.text), + }; +} +exports.getPropertyNameOfWellKnownSymbol = getPropertyNameOfWellKnownSymbol; +function getLateBoundPropertyNames(node, checker) { + const result = { + known: true, + names: [], + }; + node = unwrapParentheses(node); + if (isWellKnownSymbolLiterally(node)) { + result.names.push(getPropertyNameOfWellKnownSymbol(node)); + } + else { + const type = checker.getTypeAtLocation(node); + for (const key of type_1.unionTypeParts(checker.getBaseConstraintOfType(type) || type)) { + const propertyName = type_1.getPropertyNameFromType(key); + if (propertyName) { + result.names.push(propertyName); + } + else { + result.known = false; + } + } + } + return result; +} +exports.getLateBoundPropertyNames = getLateBoundPropertyNames; +function getLateBoundPropertyNamesOfPropertyName(node, checker) { + const staticName = getPropertyName(node); + return staticName !== undefined + ? { known: true, names: [{ displayName: staticName, symbolName: ts.escapeLeadingUnderscores(staticName) }] } + : getLateBoundPropertyNames(node.expression, checker); +} +exports.getLateBoundPropertyNamesOfPropertyName = getLateBoundPropertyNamesOfPropertyName; +function getSingleLateBoundPropertyNameOfPropertyName(node, checker) { + const staticName = getPropertyName(node); + if (staticName !== undefined) + return { displayName: staticName, symbolName: ts.escapeLeadingUnderscores(staticName) }; + const { expression } = node; + return isWellKnownSymbolLiterally(expression) + ? getPropertyNameOfWellKnownSymbol(expression) + : type_1.getPropertyNameFromType(checker.getTypeAtLocation(expression)); +} +exports.getSingleLateBoundPropertyNameOfPropertyName = getSingleLateBoundPropertyNameOfPropertyName; +function unwrapParentheses(node) { + while (node.kind === ts.SyntaxKind.ParenthesizedExpression) + node = node.expression; + return node; +} +exports.unwrapParentheses = unwrapParentheses; diff --git a/node_modules/tslint-eslint-rules/package.json b/node_modules/tslint-eslint-rules/package.json new file mode 100644 index 000000000..e8bfc7400 --- /dev/null +++ b/node_modules/tslint-eslint-rules/package.json @@ -0,0 +1,50 @@ +{ + "name": "tslint-eslint-rules", + "version": "5.4.0", + "description": "Improve your TSLint with the missing ESLint Rules", + "main": "index.js", + "scripts": { + "test": "gulp test && gulp self-lint" + }, + "repository": { + "type": "git", + "url": "https://github.com/buzinas/tslint-eslint-rules.git" + }, + "keywords": [ + "eslint", + "tslint", + "custom-rules", + "rules", + "stylish", + "lint", + "linting", + "linter", + "tslint-plugin" + ], + "author": "Vitor Buzinaro ", + "license": "MIT", + "devDependencies": { + "@types/benchmark": "^1.0.30", + "@types/node": "^7.0.12", + "benchmark": "^2.1.3", + "chai": "^3.5.0", + "es6-promise": "^4.0.4", + "gulp": "^3.9.1", + "gulp-sourcemaps": "^1.6.0", + "gulp-spawn-mocha": "^2.2.2", + "gulp-tslint": "^8.0.0", + "gulp-typescript": "^3.1.6", + "tslint": "^5.9.1", + "typescript": "^3.0.1", + "yargs": "^5.0.0" + }, + "peerDependencies": { + "tslint": "^5.0.0", + "typescript": "^2.2.0 || ^3.0.0" + }, + "dependencies": { + "doctrine": "0.7.2", + "tslib": "1.9.0", + "tsutils": "^3.0.0" + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b9d9e31ab..0039f537e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1173,6 +1173,24 @@ "path-type": "^4.0.0" } }, + "doctrine": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-0.7.2.tgz", + "integrity": "sha1-fLhgNZujvpDgQLJrcpzkv6ZUxSM=", + "dev": true, + "requires": { + "esutils": "^1.1.6", + "isarray": "0.0.1" + }, + "dependencies": { + "esutils": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.1.6.tgz", + "integrity": "sha1-wBzKqa5LiXxtDD4hCuUvPHqEQ3U=", + "dev": true + } + } + }, "dot-prop": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.2.0.tgz", @@ -1644,6 +1662,12 @@ "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", "dev": true }, + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -2832,6 +2856,34 @@ } } }, + "tslint-eslint-rules": { + "version": "5.4.0", + "resolved": "https://registry.npmjs.org/tslint-eslint-rules/-/tslint-eslint-rules-5.4.0.tgz", + "integrity": "sha512-WlSXE+J2vY/VPgIcqQuijMQiel+UtmXS+4nvK4ZzlDiqBfXse8FAvkNnTcYhnQyOTW5KFM+uRRGXxYhFpuBc6w==", + "dev": true, + "requires": { + "doctrine": "0.7.2", + "tslib": "1.9.0", + "tsutils": "^3.0.0" + }, + "dependencies": { + "tslib": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.9.0.tgz", + "integrity": "sha512-f/qGG2tUkrISBlQZEjEqoZ3B2+npJjIf04H1wuAv9iA8i04Icp+61KRXxFdha22670NJopsZCIjhC3SnjPRKrQ==", + "dev": true + }, + "tsutils": { + "version": "3.17.1", + "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.17.1.tgz", + "integrity": "sha512-kzeQ5B8H3w60nFY2g8cJIuH7JDpsALXySGtwGJ0p2LSjLgay3NdIpqq5SoOBe46bKDW2iq25irHCr8wjomUS2g==", + "dev": true, + "requires": { + "tslib": "^1.8.1" + } + } + } + }, "tsutils": { "version": "2.29.0", "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", diff --git a/package.json b/package.json index 752860cb9..caedc7113 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,7 @@ "nock": "^12.0.3", "removeNPMAbsolutePaths": "2.0.0", "tslint": "^6.1.0", + "tslint-eslint-rules": "^5.4.0", "typescript": "^3.7.5" } } \ No newline at end of file diff --git a/tslint.json b/tslint.json index bffc6bb28..3951a9fb3 100644 --- a/tslint.json +++ b/tslint.json @@ -2,6 +2,9 @@ "extends": [ "tslint" ], + "rulesDirectory": [ + "./node_modules/tslint-eslint-rules/dist/rules/" + ], "rules": { "align": [ true, @@ -17,9 +20,9 @@ "curly": false, "eofline": true, "forin": true, - "indent": [ + "ter-indent": [ true, - "spaces" + 2 ], "jsdoc-format": true, "label-position": true, @@ -138,4 +141,4 @@ "check-type" ] } -} \ No newline at end of file +} From 88231094bf85802b067b14038383e269fc37c23c Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 14:22:03 +0100 Subject: [PATCH 20/38] Convert all 4-space indented files to 2-space. --- lib/analysis-paths.js.map | 2 +- lib/analysis-paths.test.js.map | 2 +- lib/config-utils.js.map | 2 +- lib/external-queries.test.js.map | 2 +- lib/fingerprints.js.map | 2 +- lib/fingerprints.test.js.map | 2 +- lib/setup-tools.js.map | 2 +- lib/setup-tools.test.js.map | 2 +- lib/setup-tracer.js.map | 2 +- lib/tracer-env.js.map | 2 +- lib/upload-lib.js.map | 2 +- lib/upload-sarif.js.map | 2 +- lib/util.js.map | 2 +- src/analysis-paths.test.ts | 20 +- src/analysis-paths.ts | 28 +- src/config-utils.ts | 392 +++++++++++----------- src/external-queries.test.ts | 20 +- src/fingerprints.test.ts | 320 +++++++++--------- src/fingerprints.ts | 368 ++++++++++----------- src/setup-tools.test.ts | 70 ++-- src/setup-tools.ts | 102 +++--- src/setup-tracer.ts | 402 +++++++++++------------ src/tracer-env.ts | 11 +- src/upload-lib.ts | 332 +++++++++---------- src/upload-sarif.ts | 30 +- src/util.ts | 538 +++++++++++++++---------------- 26 files changed, 1329 insertions(+), 1330 deletions(-) diff --git a/lib/analysis-paths.js.map b/lib/analysis-paths.js.map index d80707f93..e409927c2 100644 --- a/lib/analysis-paths.js.map +++ b/lib/analysis-paths.js.map @@ -1 +1 @@ -{"version":3,"file":"analysis-paths.js","sourceRoot":"","sources":["../src/analysis-paths.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AAItC,SAAgB,8BAA8B,CAAC,MAA0B,EAAE,SAAmB;IAC1F,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3B,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACtE;IAED,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;QACjC,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC5E;IAED,SAAS,qBAAqB,CAAC,QAAQ;QACnC,OAAO,QAAQ,KAAK,YAAY,IAAI,QAAQ,KAAK,QAAQ,CAAC;IAC9D,CAAC;IAED,2DAA2D;IAC3D,+DAA+D;IAC/D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE;QAC3G,IAAI,CAAC,OAAO,CAAC,4FAA4F,CAAC,CAAC;KAC9G;AACL,CAAC;AAlBD,wEAkBC"} \ No newline at end of file +{"version":3,"file":"analysis-paths.js","sourceRoot":"","sources":["../src/analysis-paths.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AAItC,SAAgB,8BAA8B,CAAC,MAA0B,EAAE,SAAmB;IAC5F,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QAC7B,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KACpE;IAED,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;QACnC,IAAI,CAAC,cAAc,CAAC,oBAAoB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAC1E;IAED,SAAS,qBAAqB,CAAC,QAAQ;QACrC,OAAO,QAAQ,KAAK,YAAY,IAAI,QAAQ,KAAK,QAAQ,CAAC;IAC5D,CAAC;IAED,2DAA2D;IAC3D,+DAA+D;IAC/D,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,qBAAqB,CAAC,EAAE;QAC7G,IAAI,CAAC,OAAO,CAAC,4FAA4F,CAAC,CAAC;KAC5G;AACH,CAAC;AAlBD,wEAkBC"} \ No newline at end of file diff --git a/lib/analysis-paths.test.js.map b/lib/analysis-paths.test.js.map index 321415575..6d95947ad 100644 --- a/lib/analysis-paths.test.js.map +++ b/lib/analysis-paths.test.js.map @@ -1 +1 @@ -{"version":3,"file":"analysis-paths.test.js","sourceRoot":"","sources":["../src/analysis-paths.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,gEAAkD;AAClD,4DAA8C;AAE9C,aAAI,CAAC,YAAY,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACzB,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC5B,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;AAC5D,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"analysis-paths.test.js","sourceRoot":"","sources":["../src/analysis-paths.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,gEAAkD;AAClD,4DAA8C;AAE9C,aAAI,CAAC,YAAY,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC3B,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;IACnD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC,CAAC;AACrD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9B,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,aAAa,CAAC,8BAA8B,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,cAAc,CAAC,CAAC;AAC1D,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/config-utils.js.map b/lib/config-utils.js.map index 5c2754fd2..ce2185b34 100644 --- a/lib/config-utils.js.map +++ b/lib/config-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"config-utils.js","sourceRoot":"","sources":["../src/config-utils.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;A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external-queries.test.js.map +++ b/lib/external-queries.test.js.map @@ -1 +1 @@ -{"version":3,"file":"external-queries.test.js","sourceRoot":"","sources":["../src/external-queries.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,6CAA+B;AAE/B,aAAI,CAAC,yBAAyB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACtC,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,GAAG;QACrB,IAAI,WAAW,CAAC,aAAa,CAAC,kBAAkB,EAAE,0CAA0C,CAAC;KAChG,CAAC;IAEF,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QACjC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACpC,MAAM,eAAe,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAEtD,uFAAuF;QACvF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"external-queries.test.js","sourceRoot":"","sources":["../src/external-queries.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,2CAA6B;AAE7B,4DAA8C;AAC9C,oEAAsD;AACtD,6CAA+B;AAE/B,aAAI,CAAC,yBAAyB,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACxC,IAAI,MAAM,GAAG,IAAI,WAAW,CAAC,MAAM,EAAE,CAAC;IACtC,MAAM,CAAC,eAAe,GAAG;QACvB,IAAI,WAAW,CAAC,aAAa,CAAC,kBAAkB,EAAE,0CAA0C,CAAC;KAC9F,CAAC;IAEF,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QACnC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC;QACpC,MAAM,eAAe,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC;QAEtD,uFAAuF;QACvF,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IAC/E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/fingerprints.js.map b/lib/fingerprints.js.map index be89c3518..d61ab331d 100644 --- a/lib/fingerprints.js.map +++ b/lib/fingerprints.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.js","sourceRoot":"","sources":["../src/fingerprints.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,uCAAyB;AACzB,gDAAwB;AAExB,MAAM,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/B,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,EAAE,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAC9B,MAAM,UAAU,GAAG,GAAG,CAAC;AACvB,MAAM,GAAG,GAAG,cAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;AAElC,8CAA8C;AAC9C,SAAS,eAAe;IACpB,IAAI,QAAQ,GAAG,cAAI,CAAC,GAAG,CAAC,CAAC,IAAI;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,EAAE,CAAC,EAAE,EAAE;Q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gBACb,SAAS;aACV;YACD,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAE;gBAC9B,eAAe,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;aAChC;YACD,eAAe,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;SACjF;KACF;IAED,oCAAoC;IACpC,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE;QAChE,yEAAyE;QACzE,MAAM,WAAW,GAAG,UAAU,UAAkB,EAAE,IAAY;YAC5D,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;QAC7D,CAAC,CAAC;QACF,MAAM,YAAY,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC1D,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AA1CD,0CA0CC"} \ No newline at end of file diff --git a/lib/fingerprints.test.js.map b/lib/fingerprints.test.js.map index 5b6be9640..f12afc32c 100644 --- a/lib/fingerprints.test.js.map +++ b/lib/fingerprints.test.js.map @@ -1 +1 @@ -{"version":3,"file":"fingerprints.test.js","sourceRoot":"","sources":["../src/fingerprints.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AAEvB,uCAAyB;AACzB,2CAA6B;AAE7B,6DAA+C;AAE/C,SAAS,QAAQ,CAAC,CAAiB,EAAE,KAAa,EAAE,cAAwB;IACxE,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,QAAQ,GAAG,UAAU,UAAkB,EAA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AkB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,kBAAkB,CAAC,CAAC;IAEjF,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC7D,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IACzB,wCAAwC;IACxC,IAAI,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,8CAA8C,CAAC,CAAC,QAAQ,EAAE,CAAC;IACnG,IAAI,QAAQ,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,iDAAiD,CAAC,CAAC,QAAQ,EAAE,CAAC;IAEzG,mFAAmF;IACnF,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1C,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEhD,yEAAyE;IACzE,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,GAAG,kBAAkB,CAAC,CAAC;IAEjF,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,CAAC;AAC7D,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/setup-tools.js.map b/lib/setup-tools.js.map index faac02a6f..70c6756eb 100644 --- a/lib/setup-tools.js.map +++ b/lib/setup-tools.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tools.js","sourceRoot":"","sources":["../src/setup-tools.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,+DAAiD;AACjD,2CAA6B;AAC7B,+CAAiC;AAEjC,MAAa,WAAW;IAMpB,YAAY,UAAkB;QAC1B,IAAI,CAAC,IAAI,GAAG,U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up-tools.test.js.map b/lib/setup-tools.test.js.map index 079d93c48..0f211ac18 100644 --- a/lib/setup-tools.test.js.map +++ b/lib/setup-tools.test.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tools.test.js","sourceRoot":"","sources":["../src/setup-tools.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+DAAiD;AACjD,8CAAuB;AACvB,gDAAwB;AACxB,2CAA6B;AAE7B,0DAA4C;AAC5C,6CAA+B;AAE/B,aAAI,CAAC,8BAA8B,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAE3C,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAC,MAAM,EAAC,EAAE;QAEjC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,GAAG,MAAM,CAAC;QAEzC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACvD,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE9D,MAAM,QAAQ,GAAG,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;QAE1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAE5B,cAAI,CAAC,qBAAqB,CAAC;iBACtB,GAAG,CAAC,2BAA2B,OAAO,uBAAuB,CAAC;iBAC9D,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,uCAAuC,CAAC,CAAC,CAAC;YAGvF,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,8CAA8C,OAAO,uBAAuB,CAAC;YAE1G,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;YAE/B,CAAC,CAAC,MAAM,CA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c,EAAE,cAAc;QAC9B,OAAO,EAAE,OAAO;QAChB,aAAa,EAAE,aAAa;QAC5B,cAAc,EAAE,cAAc;KAC/B,CAAC;IAEF,KAAK,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAC9D,MAAM,GAAG,GAAG,wCAAwC,OAAO,MAAM,CAAC;QAElE,IAAI;YACF,MAAM,aAAa,GAAG,UAAU,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC;YAC1D,CAAC,CAAC,SAAS,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;SAC7C;QAAC,OAAO,CAAC,EAAE;YACV,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;SACnB;KACF;AACH,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 22ce2bf7e..dd643ffac 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAChC,CAAC,yBAAyB;IACtB,AADuB;IACrB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC/B,CAAC,CAAC;AAEP,KAAK,UAAU,YAAY,CACvB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE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,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC3F,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5F,iEAAiE;QACjE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;QAC1E,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAEnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACR;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tracer-env.js.map b/lib/tracer-env.js.map index e450532a8..824a4338f 100644 --- a/lib/tracer-env.js.map +++ b/lib/tracer-env.js.map @@ -1 +1 @@ -{"version":3,"file":"tracer-env.js","sourceRoot":"","sources":["../src/tracer-env.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAyB;AAEzB,MAAM,GAAG,GAAG,EAAE,CAAC;AACf,KAAK,IAAI,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;IAC3C,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE;QACpF,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;KACpB;CACJ;AACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACtC,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"tracer-env.js","sourceRoot":"","sources":["../src/tracer-env.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAyB;AAEzB,MAAM,GAAG,GAAG,EAAE,CAAC;AACf,KAAK,IAAI,KAAK,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;IAC7C,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACrB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,OAAO,KAAK,KAAK,WAAW,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE;QACtF,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;KAClB;CACF;AACD,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AACtC,EAAE,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 71ac88592..b0dab6fc4 100644 --- a/lib/upload-lib.js.map +++ b/lib/upload-lib.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,wDAA+B;AAC/B,uCAAyB;AACzB,uDAAyC;AACzC,2CAA6B;AAC7B,gDAAwB;AAExB,6DAA+C;AAC/C,gEAAkD;AAClD,6CAA+B;AAE/B,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,CAAC,UAAoB;IAClD,IAAI,aAAa,GAAG;QAChB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAW;KACpB,CAAC;IAEF,KAAK,IAAI,SAAS,IAAI,UAAU,EAAE;QAC9B,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QACjE,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE;YAChC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;SAC/C;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,OAAO,EAAE;YACtD,MAAM,wCAAwC,GAAG,aAAa,CAAC,OAAO,GAAG,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;SAC1G;QAED,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;KAChD;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACzC,CAAC;AAnBD,8CAmBC;AAED,4BAA4B;AAC5B,qEAAqE;AACrE,KAAK,UAAU,aAAa,CAAC,OAAO;IAChC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAE/B,sDAA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-sarif.js.map +++ b/lib/upload-sarif.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-sarif.js","sourceRoot":"","sources":["../src/upload-sarif.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AAEtC,yDAA2C;AAC3C,6CAA+B;AAE/B,KAAK,UAAU,GAAG;IACd,IAAI,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE;QAC9F,OAAO;KACV;IAED,IAAI;QACA,IAAI,MAAM,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,EAAE;YACtD,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;SACpD;aAAM;YACH,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;SAC3D;KACJ;IAAC,OAAO,KAAK,EAAE;QACZ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1E,OAAO;KACV;AACL,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACZ,IAAI,CAAC,SAAS,CAAC,qCAAqC,GAAG,CAAC,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"upload-sarif.js","sourceRoot":"","sources":["../src/upload-sarif.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AAEtC,yDAA2C;AAC3C,6CAA+B;AAE/B,KAAK,UAAU,GAAG;IAChB,IAAI,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE;QAChG,OAAO;KACR;IAED,IAAI;QACF,IAAI,MAAM,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,EAAE;YACxD,MAAM,IAAI,CAAC,qBAAqB,CAAC,cAAc,CAAC,CAAC;SAClD;aAAM;YACL,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;SACzD;KACF;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1E,OAAO;KACR;AACH,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,qCAAqC,GAAG,CAAC,CAAC,CAAC;IAC1D,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.js.map b/lib/util.js.map index 650954e6a..08dc109f2 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE7E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACnB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C9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/analysis-paths.test.ts b/src/analysis-paths.test.ts index 22a21abc9..c6596465a 100644 --- a/src/analysis-paths.test.ts +++ b/src/analysis-paths.test.ts @@ -4,17 +4,17 @@ import * as analysisPaths from './analysis-paths'; import * as configUtils from './config-utils'; test("emptyPaths", async t => { - let config = new configUtils.Config(); - analysisPaths.includeAndExcludeAnalysisPaths(config, []); - t.is(process.env['LGTM_INDEX_INCLUDE'], undefined); - t.is(process.env['LGTM_INDEX_EXCLUDE'], undefined); + let config = new configUtils.Config(); + analysisPaths.includeAndExcludeAnalysisPaths(config, []); + t.is(process.env['LGTM_INDEX_INCLUDE'], undefined); + t.is(process.env['LGTM_INDEX_EXCLUDE'], undefined); }); test("nonEmptyPaths", async t => { - let config = new configUtils.Config(); - config.paths.push('path1', 'path2'); - config.pathsIgnore.push('path3', 'path4'); - analysisPaths.includeAndExcludeAnalysisPaths(config, []); - t.is(process.env['LGTM_INDEX_INCLUDE'], 'path1\npath2'); - t.is(process.env['LGTM_INDEX_EXCLUDE'], 'path3\npath4'); + let config = new configUtils.Config(); + config.paths.push('path1', 'path2'); + config.pathsIgnore.push('path3', 'path4'); + analysisPaths.includeAndExcludeAnalysisPaths(config, []); + t.is(process.env['LGTM_INDEX_INCLUDE'], 'path1\npath2'); + t.is(process.env['LGTM_INDEX_EXCLUDE'], 'path3\npath4'); }); diff --git a/src/analysis-paths.ts b/src/analysis-paths.ts index 2b7451e7c..6a88da05f 100644 --- a/src/analysis-paths.ts +++ b/src/analysis-paths.ts @@ -3,21 +3,21 @@ import * as core from '@actions/core'; import * as configUtils from './config-utils'; export function includeAndExcludeAnalysisPaths(config: configUtils.Config, languages: string[]) { - if (config.paths.length !== 0) { - core.exportVariable('LGTM_INDEX_INCLUDE', config.paths.join('\n')); - } + if (config.paths.length !== 0) { + core.exportVariable('LGTM_INDEX_INCLUDE', config.paths.join('\n')); + } - if (config.pathsIgnore.length !== 0) { - core.exportVariable('LGTM_INDEX_EXCLUDE', config.pathsIgnore.join('\n')); - } + if (config.pathsIgnore.length !== 0) { + core.exportVariable('LGTM_INDEX_EXCLUDE', config.pathsIgnore.join('\n')); + } - function isInterpretedLanguage(language): boolean { - return language === 'javascript' || language === 'python'; - } + function isInterpretedLanguage(language): boolean { + return language === 'javascript' || language === 'python'; + } - // Index include/exclude only work in javascript and python - // If some other language is detected/configured show a warning - if ((config.paths.length !== 0 || config.pathsIgnore.length !== 0) && !languages.every(isInterpretedLanguage)) { - core.warning('The "paths"/"paths-ignore" fields of the config only have effect for Javascript and Python'); - } + // Index include/exclude only work in javascript and python + // If some other language is detected/configured show a warning + if ((config.paths.length !== 0 || config.pathsIgnore.length !== 0) && !languages.every(isInterpretedLanguage)) { + core.warning('The "paths"/"paths-ignore" fields of the config only have effect for Javascript and Python'); + } } diff --git a/src/config-utils.ts b/src/config-utils.ts index 7e92e30ce..ca9ad82a0 100644 --- a/src/config-utils.ts +++ b/src/config-utils.ts @@ -14,14 +14,14 @@ const PATHS_IGNORE_PROPERTY = 'paths-ignore'; const PATHS_PROPERTY = 'paths'; export class ExternalQuery { - public repository: string; - public ref: string; - public path = ''; - - constructor(repository: string, ref: string) { - this.repository = repository; - this.ref = ref; - } + public repository: string; + public ref: string; + public path = ''; + + constructor(repository: string, ref: string) { + this.repository = repository; + this.ref = ref; + } } // The set of acceptable values for built-in suites from the codeql bundle @@ -30,255 +30,255 @@ const builtinSuites = ['security-extended', 'security-and-quality'] as const; type BuiltInSuite = typeof builtinSuites[number]; export class Config { - public name = ""; - public disableDefaultQueries = false; - public additionalQueries: string[] = []; - public externalQueries: ExternalQuery[] = []; - public additionalSuites: BuiltInSuite[] = []; - public pathsIgnore: string[] = []; - public paths: string[] = []; - - public addQuery(configFile: string, queryUses: string) { - // The logic for parsing the string is based on what actions does for - // parsing the 'uses' actions in the workflow file - queryUses = queryUses.trim(); - if (queryUses === "") { - throw new Error(getQueryUsesInvalid(configFile)); - } - - // Check for the local path case before we start trying to parse the repository name - if (queryUses.startsWith("./")) { - const localQueryPath = queryUses.slice(2); - // Resolve the local path against the workspace so that when this is - // passed to codeql it resolves to exactly the path we expect it to resolve to. - const workspacePath = fs.realpathSync(util.getRequiredEnvParam('GITHUB_WORKSPACE')); - let absoluteQueryPath = path.join(workspacePath, localQueryPath); - - // Check the file exists - if (!fs.existsSync(absoluteQueryPath)) { - throw new Error(getLocalPathDoesNotExist(configFile, localQueryPath)); - } - - // Call this after checking file exists, because it'll fail if file doesn't exist - absoluteQueryPath = fs.realpathSync(absoluteQueryPath); - - // Check the local path doesn't jump outside the repo using '..' or symlinks - if (!(absoluteQueryPath + path.sep).startsWith(workspacePath + path.sep)) { - throw new Error(getLocalPathOutsideOfRepository(configFile, localQueryPath)); - } - - this.additionalQueries.push(absoluteQueryPath); - return; - } - - // Check for one of the builtin suites - if (queryUses.indexOf('/') === -1 && queryUses.indexOf('@') === -1) { - const suite = builtinSuites.find((suite) => suite === queryUses); - if (suite) { - this.additionalSuites.push(suite); - return; - } else { - throw new Error(getQueryUsesInvalid(configFile, queryUses)); - } - } - - let tok = queryUses.split('@'); - if (tok.length !== 2) { - throw new Error(getQueryUsesInvalid(configFile, queryUses)); - } - - const ref = tok[1]; - tok = tok[0].split('/'); - // The first token is the owner - // The second token is the repo - // The rest is a path, if there is more than one token combine them to form the full path - if (tok.length < 2) { - throw new Error(getQueryUsesInvalid(configFile, queryUses)); - } - if (tok.length > 3) { - tok = [tok[0], tok[1], tok.slice(2).join('/')]; - } - - // Check none of the parts of the repository name are empty - if (tok[0].trim() === '' || tok[1].trim() === '') { - throw new Error(getQueryUsesInvalid(configFile, queryUses)); - } - - let external = new ExternalQuery(tok[0] + '/' + tok[1], ref); - if (tok.length === 3) { - external.path = tok[2]; - } - this.externalQueries.push(external); + public name = ""; + public disableDefaultQueries = false; + public additionalQueries: string[] = []; + public externalQueries: ExternalQuery[] = []; + public additionalSuites: BuiltInSuite[] = []; + public pathsIgnore: string[] = []; + public paths: string[] = []; + + public addQuery(configFile: string, queryUses: string) { + // The logic for parsing the string is based on what actions does for + // parsing the 'uses' actions in the workflow file + queryUses = queryUses.trim(); + if (queryUses === "") { + throw new Error(getQueryUsesInvalid(configFile)); + } + + // Check for the local path case before we start trying to parse the repository name + if (queryUses.startsWith("./")) { + const localQueryPath = queryUses.slice(2); + // Resolve the local path against the workspace so that when this is + // passed to codeql it resolves to exactly the path we expect it to resolve to. + const workspacePath = fs.realpathSync(util.getRequiredEnvParam('GITHUB_WORKSPACE')); + let absoluteQueryPath = path.join(workspacePath, localQueryPath); + + // Check the file exists + if (!fs.existsSync(absoluteQueryPath)) { + throw new Error(getLocalPathDoesNotExist(configFile, localQueryPath)); + } + + // Call this after checking file exists, because it'll fail if file doesn't exist + absoluteQueryPath = fs.realpathSync(absoluteQueryPath); + + // Check the local path doesn't jump outside the repo using '..' or symlinks + if (!(absoluteQueryPath + path.sep).startsWith(workspacePath + path.sep)) { + throw new Error(getLocalPathOutsideOfRepository(configFile, localQueryPath)); + } + + this.additionalQueries.push(absoluteQueryPath); + return; + } + + // Check for one of the builtin suites + if (queryUses.indexOf('/') === -1 && queryUses.indexOf('@') === -1) { + const suite = builtinSuites.find((suite) => suite === queryUses); + if (suite) { + this.additionalSuites.push(suite); + return; + } else { + throw new Error(getQueryUsesInvalid(configFile, queryUses)); + } + } + + let tok = queryUses.split('@'); + if (tok.length !== 2) { + throw new Error(getQueryUsesInvalid(configFile, queryUses)); + } + + const ref = tok[1]; + tok = tok[0].split('/'); + // The first token is the owner + // The second token is the repo + // The rest is a path, if there is more than one token combine them to form the full path + if (tok.length < 2) { + throw new Error(getQueryUsesInvalid(configFile, queryUses)); + } + if (tok.length > 3) { + tok = [tok[0], tok[1], tok.slice(2).join('/')]; + } + + // Check none of the parts of the repository name are empty + if (tok[0].trim() === '' || tok[1].trim() === '') { + throw new Error(getQueryUsesInvalid(configFile, queryUses)); + } + + let external = new ExternalQuery(tok[0] + '/' + tok[1], ref); + if (tok.length === 3) { + external.path = tok[2]; } + this.externalQueries.push(external); + } } export function getNameInvalid(configFile: string): string { - return getConfigFilePropertyError(configFile, NAME_PROPERTY, 'must be a non-empty string'); + return getConfigFilePropertyError(configFile, NAME_PROPERTY, 'must be a non-empty string'); } export function getDisableDefaultQueriesInvalid(configFile: string): string { - return getConfigFilePropertyError(configFile, DISPLAY_DEFAULT_QUERIES_PROPERTY, 'must be a boolean'); + return getConfigFilePropertyError(configFile, DISPLAY_DEFAULT_QUERIES_PROPERTY, 'must be a boolean'); } export function getQueriesInvalid(configFile: string): string { - return getConfigFilePropertyError(configFile, QUERIES_PROPERTY, 'must be an array'); + return getConfigFilePropertyError(configFile, QUERIES_PROPERTY, 'must be an array'); } export function getQueryUsesInvalid(configFile: string, queryUses?: string): string { - return getConfigFilePropertyError( - configFile, - QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, - 'must be a built-in suite (' + builtinSuites.join(' or ') + - '), a relative path, or be of the form "owner/repo[/path]@ref"' + - (queryUses !== undefined ? '\n Found: ' + queryUses : '')); + return getConfigFilePropertyError( + configFile, + QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, + 'must be a built-in suite (' + builtinSuites.join(' or ') + + '), a relative path, or be of the form "owner/repo[/path]@ref"' + + (queryUses !== undefined ? '\n Found: ' + queryUses : '')); } export function getPathsIgnoreInvalid(configFile: string): string { - return getConfigFilePropertyError(configFile, PATHS_IGNORE_PROPERTY, 'must be an array of non-empty strings'); + return getConfigFilePropertyError(configFile, PATHS_IGNORE_PROPERTY, 'must be an array of non-empty strings'); } export function getPathsInvalid(configFile: string): string { - return getConfigFilePropertyError(configFile, PATHS_PROPERTY, 'must be an array of non-empty strings'); + return getConfigFilePropertyError(configFile, PATHS_PROPERTY, 'must be an array of non-empty strings'); } export function getLocalPathOutsideOfRepository(configFile: string, localPath: string): string { - return getConfigFilePropertyError( - configFile, - QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, - 'is invalid as the local path "' + localPath + '" is outside of the repository'); + return getConfigFilePropertyError( + configFile, + QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, + 'is invalid as the local path "' + localPath + '" is outside of the repository'); } export function getLocalPathDoesNotExist(configFile: string, localPath: string): string { - return getConfigFilePropertyError( - configFile, - QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, - 'is invalid as the local path "' + localPath + '" does not exist in the repository'); + return getConfigFilePropertyError( + configFile, + QUERIES_PROPERTY + '.' + QUERIES_USES_PROPERTY, + 'is invalid as the local path "' + localPath + '" does not exist in the repository'); } export function getConfigFileOutsideWorkspaceErrorMessage(configFile: string): string { - return 'The configuration file "' + configFile + '" is outside of the workspace'; + return 'The configuration file "' + configFile + '" is outside of the workspace'; } export function getConfigFileDoesNotExistErrorMessage(configFile: string): string { - return 'The configuration file "' + configFile + '" does not exist'; + return 'The configuration file "' + configFile + '" does not exist'; } function getConfigFilePropertyError(configFile: string, property: string, error: string): string { - return 'The configuration file "' + configFile + '" is invalid: property "' + property + '" ' + error; + return 'The configuration file "' + configFile + '" is invalid: property "' + property + '" ' + error; } function initConfig(): Config { - let configFile = core.getInput('config-file'); + let configFile = core.getInput('config-file'); - const config = new Config(); + const config = new Config(); - // If no config file was provided create an empty one - if (configFile === '') { - core.debug('No configuration file was provided'); - return config; - } + // If no config file was provided create an empty one + if (configFile === '') { + core.debug('No configuration file was provided'); + return config; + } - // Treat the config file as relative to the workspace - const workspacePath = util.getRequiredEnvParam('GITHUB_WORKSPACE'); - configFile = path.resolve(workspacePath, configFile); + // Treat the config file as relative to the workspace + const workspacePath = util.getRequiredEnvParam('GITHUB_WORKSPACE'); + configFile = path.resolve(workspacePath, configFile); - // Error if the config file is now outside of the workspace - if (!(configFile + path.sep).startsWith(workspacePath + path.sep)) { - throw new Error(getConfigFileOutsideWorkspaceErrorMessage(configFile)); - } + // Error if the config file is now outside of the workspace + if (!(configFile + path.sep).startsWith(workspacePath + path.sep)) { + throw new Error(getConfigFileOutsideWorkspaceErrorMessage(configFile)); + } - // Error if the file does not exist - if (!fs.existsSync(configFile)) { - throw new Error(getConfigFileDoesNotExistErrorMessage(configFile)); - } + // Error if the file does not exist + if (!fs.existsSync(configFile)) { + throw new Error(getConfigFileDoesNotExistErrorMessage(configFile)); + } - const parsedYAML = yaml.safeLoad(fs.readFileSync(configFile, 'utf8')); + const parsedYAML = yaml.safeLoad(fs.readFileSync(configFile, 'utf8')); - if (NAME_PROPERTY in parsedYAML) { - if (typeof parsedYAML[NAME_PROPERTY] !== "string") { - throw new Error(getNameInvalid(configFile)); - } - if (parsedYAML[NAME_PROPERTY].length === 0) { - throw new Error(getNameInvalid(configFile)); - } - config.name = parsedYAML[NAME_PROPERTY]; + if (NAME_PROPERTY in parsedYAML) { + if (typeof parsedYAML[NAME_PROPERTY] !== "string") { + throw new Error(getNameInvalid(configFile)); } - - if (DISPLAY_DEFAULT_QUERIES_PROPERTY in parsedYAML) { - if (typeof parsedYAML[DISPLAY_DEFAULT_QUERIES_PROPERTY] !== "boolean") { - throw new Error(getDisableDefaultQueriesInvalid(configFile)); - } - config.disableDefaultQueries = parsedYAML[DISPLAY_DEFAULT_QUERIES_PROPERTY]; + if (parsedYAML[NAME_PROPERTY].length === 0) { + throw new Error(getNameInvalid(configFile)); } + config.name = parsedYAML[NAME_PROPERTY]; + } - if (QUERIES_PROPERTY in parsedYAML) { - if (!(parsedYAML[QUERIES_PROPERTY] instanceof Array)) { - throw new Error(getQueriesInvalid(configFile)); - } - parsedYAML[QUERIES_PROPERTY].forEach(query => { - if (!(QUERIES_USES_PROPERTY in query) || typeof query[QUERIES_USES_PROPERTY] !== "string") { - throw new Error(getQueryUsesInvalid(configFile)); - } - config.addQuery(configFile, query[QUERIES_USES_PROPERTY]); - }); + if (DISPLAY_DEFAULT_QUERIES_PROPERTY in parsedYAML) { + if (typeof parsedYAML[DISPLAY_DEFAULT_QUERIES_PROPERTY] !== "boolean") { + throw new Error(getDisableDefaultQueriesInvalid(configFile)); } + config.disableDefaultQueries = parsedYAML[DISPLAY_DEFAULT_QUERIES_PROPERTY]; + } - if (PATHS_IGNORE_PROPERTY in parsedYAML) { - if (!(parsedYAML[PATHS_IGNORE_PROPERTY] instanceof Array)) { - throw new Error(getPathsIgnoreInvalid(configFile)); - } - parsedYAML[PATHS_IGNORE_PROPERTY].forEach(path => { - if (typeof path !== "string" || path === '') { - throw new Error(getPathsIgnoreInvalid(configFile)); - } - config.pathsIgnore.push(path); - }); + if (QUERIES_PROPERTY in parsedYAML) { + if (!(parsedYAML[QUERIES_PROPERTY] instanceof Array)) { + throw new Error(getQueriesInvalid(configFile)); } - - if (PATHS_PROPERTY in parsedYAML) { - if (!(parsedYAML[PATHS_PROPERTY] instanceof Array)) { - throw new Error(getPathsInvalid(configFile)); - } - parsedYAML[PATHS_PROPERTY].forEach(path => { - if (typeof path !== "string" || path === '') { - throw new Error(getPathsInvalid(configFile)); - } - config.paths.push(path); - }); + parsedYAML[QUERIES_PROPERTY].forEach(query => { + if (!(QUERIES_USES_PROPERTY in query) || typeof query[QUERIES_USES_PROPERTY] !== "string") { + throw new Error(getQueryUsesInvalid(configFile)); + } + config.addQuery(configFile, query[QUERIES_USES_PROPERTY]); + }); + } + + if (PATHS_IGNORE_PROPERTY in parsedYAML) { + if (!(parsedYAML[PATHS_IGNORE_PROPERTY] instanceof Array)) { + throw new Error(getPathsIgnoreInvalid(configFile)); } - - return config; + parsedYAML[PATHS_IGNORE_PROPERTY].forEach(path => { + if (typeof path !== "string" || path === '') { + throw new Error(getPathsIgnoreInvalid(configFile)); + } + config.pathsIgnore.push(path); + }); + } + + if (PATHS_PROPERTY in parsedYAML) { + if (!(parsedYAML[PATHS_PROPERTY] instanceof Array)) { + throw new Error(getPathsInvalid(configFile)); + } + parsedYAML[PATHS_PROPERTY].forEach(path => { + if (typeof path !== "string" || path === '') { + throw new Error(getPathsInvalid(configFile)); + } + config.paths.push(path); + }); + } + + return config; } function getConfigFolder(): string { - return util.getRequiredEnvParam('RUNNER_TEMP'); + return util.getRequiredEnvParam('RUNNER_TEMP'); } export function getConfigFile(): string { - return path.join(getConfigFolder(), 'config'); + return path.join(getConfigFolder(), 'config'); } async function saveConfig(config: Config) { - const configString = JSON.stringify(config); - await io.mkdirP(getConfigFolder()); - fs.writeFileSync(getConfigFile(), configString, 'utf8'); - core.debug('Saved config:'); - core.debug(configString); + const configString = JSON.stringify(config); + await io.mkdirP(getConfigFolder()); + fs.writeFileSync(getConfigFile(), configString, 'utf8'); + core.debug('Saved config:'); + core.debug(configString); } export async function loadConfig(): Promise { - const configFile = getConfigFile(); - if (fs.existsSync(configFile)) { - const configString = fs.readFileSync(configFile, 'utf8'); - core.debug('Loaded config:'); - core.debug(configString); - return JSON.parse(configString); - - } else { - const config = initConfig(); - core.debug('Initialized config:'); - core.debug(JSON.stringify(config)); - await saveConfig(config); - return config; - } + const configFile = getConfigFile(); + if (fs.existsSync(configFile)) { + const configString = fs.readFileSync(configFile, 'utf8'); + core.debug('Loaded config:'); + core.debug(configString); + return JSON.parse(configString); + + } else { + const config = initConfig(); + core.debug('Initialized config:'); + core.debug(JSON.stringify(config)); + await saveConfig(config); + return config; + } } diff --git a/src/external-queries.test.ts b/src/external-queries.test.ts index 255fab619..3705d6df6 100644 --- a/src/external-queries.test.ts +++ b/src/external-queries.test.ts @@ -7,16 +7,16 @@ import * as externalQueries from "./external-queries"; import * as util from "./util"; test("checkoutExternalQueries", async t => { - let config = new configUtils.Config(); - config.externalQueries = [ - new configUtils.ExternalQuery("github/codeql-go", "df4c6869212341b601005567381944ed90906b6b"), - ]; + let config = new configUtils.Config(); + config.externalQueries = [ + new configUtils.ExternalQuery("github/codeql-go", "df4c6869212341b601005567381944ed90906b6b"), + ]; - await util.withTmpDir(async tmpDir => { - process.env["RUNNER_TEMP"] = tmpDir; - await externalQueries.checkoutExternalQueries(config); + await util.withTmpDir(async tmpDir => { + process.env["RUNNER_TEMP"] = tmpDir; + await externalQueries.checkoutExternalQueries(config); - // COPYRIGHT file existed in df4c6869212341b601005567381944ed90906b6b but not in master - t.true(fs.existsSync(path.join(tmpDir, "github", "codeql-go", "COPYRIGHT"))); - }); + // COPYRIGHT file existed in df4c6869212341b601005567381944ed90906b6b but not in master + t.true(fs.existsSync(path.join(tmpDir, "github", "codeql-go", "COPYRIGHT"))); + }); }); diff --git a/src/fingerprints.test.ts b/src/fingerprints.test.ts index 327bb1dd3..a145f969f 100644 --- a/src/fingerprints.test.ts +++ b/src/fingerprints.test.ts @@ -6,185 +6,185 @@ import * as path from 'path'; import * as fingerprints from './fingerprints'; function testHash(t: ava.Assertions, input: string, expectedHashes: string[]) { - let index = 0; - let callback = function (lineNumber: number, hash: string) { - t.is(lineNumber, index + 1); - t.is(hash, expectedHashes[index]); - index++; - }; - fingerprints.hash(callback, input); - t.is(index, input.split(/\r\n|\r|\n/).length); + let index = 0; + let callback = function (lineNumber: number, hash: string) { + t.is(lineNumber, index + 1); + t.is(hash, expectedHashes[index]); + index++; + }; + fingerprints.hash(callback, input); + t.is(index, input.split(/\r\n|\r|\n/).length); } test('hash', (t: ava.Assertions) => { - // Try empty file - testHash(t, "", ["c129715d7a2bc9a3:1"]); - - // Try various combinations of newline characters - testHash( - t, - " a\nb\n \t\tc\n d", - [ - "271789c17abda88f:1", - "54703d4cd895b18:1", - "180aee12dab6264:1", - "a23a3dc5e078b07b:1" - ]); - testHash( - t, - " hello; \t\nworld!!!\n\n\n \t\tGreetings\n End", - [ - "8b7cf3e952e7aeb2:1", - "b1ae1287ec4718d9:1", - "bff680108adb0fcc:1", - "c6805c5e1288b612:1", - "b86d3392aea1be30:1", - "e6ceba753e1a442:1", - ]); - testHash( - t, - " hello; \t\nworld!!!\n\n\n \t\tGreetings\n End\n", - [ - "e9496ae3ebfced30:1", - "fb7c023a8b9ccb3f:1", - "ce8ba1a563dcdaca:1", - "e20e36e16fcb0cc8:1", - "b3edc88f2938467e:1", - "c8e28b0b4002a3a0:1", - "c129715d7a2bc9a3:1", - ]); - testHash( - t, - " hello; \t\nworld!!!\r\r\r \t\tGreetings\r End\r", - [ - "e9496ae3ebfced30:1", - "fb7c023a8b9ccb3f:1", - "ce8ba1a563dcdaca:1", - "e20e36e16fcb0cc8:1", - "b3edc88f2938467e:1", - "c8e28b0b4002a3a0:1", - "c129715d7a2bc9a3:1", - ]); - testHash( - t, - " hello; \t\r\nworld!!!\r\n\r\n\r\n \t\tGreetings\r\n End\r\n", - [ - "e9496ae3ebfced30:1", - "fb7c023a8b9ccb3f:1", - "ce8ba1a563dcdaca:1", - "e20e36e16fcb0cc8:1", - "b3edc88f2938467e:1", - "c8e28b0b4002a3a0:1", - "c129715d7a2bc9a3:1", - ]); - testHash( - t, - " hello; \t\nworld!!!\r\n\n\r \t\tGreetings\r End\r\n", - [ - "e9496ae3ebfced30:1", - "fb7c023a8b9ccb3f:1", - "ce8ba1a563dcdaca:1", - "e20e36e16fcb0cc8:1", - "b3edc88f2938467e:1", - "c8e28b0b4002a3a0:1", - "c129715d7a2bc9a3:1", - ]); - - // Try repeating line that will generate identical hashes - testHash( - t, - "Lorem ipsum dolor sit amet.\n".repeat(10), - [ - "a7f2ff13bc495cf2:1", - "a7f2ff13bc495cf2:2", - "a7f2ff13bc495cf2:3", - "a7f2ff13bc495cf2:4", - "a7f2ff13bc495cf2:5", - "a7f2ff13bc495cf2:6", - "a7f2ff1481e87703:1", - "a9cf91f7bbf1862b:1", - "55ec222b86bcae53:1", - "cc97dc7b1d7d8f7b:1", - "c129715d7a2bc9a3:1" - ]); + // Try empty file + testHash(t, "", ["c129715d7a2bc9a3:1"]); + + // Try various combinations of newline characters + testHash( + t, + " a\nb\n \t\tc\n d", + [ + "271789c17abda88f:1", + "54703d4cd895b18:1", + "180aee12dab6264:1", + "a23a3dc5e078b07b:1" + ]); + testHash( + t, + " hello; \t\nworld!!!\n\n\n \t\tGreetings\n End", + [ + "8b7cf3e952e7aeb2:1", + "b1ae1287ec4718d9:1", + "bff680108adb0fcc:1", + "c6805c5e1288b612:1", + "b86d3392aea1be30:1", + "e6ceba753e1a442:1", + ]); + testHash( + t, + " hello; \t\nworld!!!\n\n\n \t\tGreetings\n End\n", + [ + "e9496ae3ebfced30:1", + "fb7c023a8b9ccb3f:1", + "ce8ba1a563dcdaca:1", + "e20e36e16fcb0cc8:1", + "b3edc88f2938467e:1", + "c8e28b0b4002a3a0:1", + "c129715d7a2bc9a3:1", + ]); + testHash( + t, + " hello; \t\nworld!!!\r\r\r \t\tGreetings\r End\r", + [ + "e9496ae3ebfced30:1", + "fb7c023a8b9ccb3f:1", + "ce8ba1a563dcdaca:1", + "e20e36e16fcb0cc8:1", + "b3edc88f2938467e:1", + "c8e28b0b4002a3a0:1", + "c129715d7a2bc9a3:1", + ]); + testHash( + t, + " hello; \t\r\nworld!!!\r\n\r\n\r\n \t\tGreetings\r\n End\r\n", + [ + "e9496ae3ebfced30:1", + "fb7c023a8b9ccb3f:1", + "ce8ba1a563dcdaca:1", + "e20e36e16fcb0cc8:1", + "b3edc88f2938467e:1", + "c8e28b0b4002a3a0:1", + "c129715d7a2bc9a3:1", + ]); + testHash( + t, + " hello; \t\nworld!!!\r\n\n\r \t\tGreetings\r End\r\n", + [ + "e9496ae3ebfced30:1", + "fb7c023a8b9ccb3f:1", + "ce8ba1a563dcdaca:1", + "e20e36e16fcb0cc8:1", + "b3edc88f2938467e:1", + "c8e28b0b4002a3a0:1", + "c129715d7a2bc9a3:1", + ]); + + // Try repeating line that will generate identical hashes + testHash( + t, + "Lorem ipsum dolor sit amet.\n".repeat(10), + [ + "a7f2ff13bc495cf2:1", + "a7f2ff13bc495cf2:2", + "a7f2ff13bc495cf2:3", + "a7f2ff13bc495cf2:4", + "a7f2ff13bc495cf2:5", + "a7f2ff13bc495cf2:6", + "a7f2ff1481e87703:1", + "a9cf91f7bbf1862b:1", + "55ec222b86bcae53:1", + "cc97dc7b1d7d8f7b:1", + "c129715d7a2bc9a3:1" + ]); }); function testResolveUriToFile(uri: any, index: any, artifactsURIs: any[]) { - const location = { "uri": uri, "index": index }; - const artifacts = artifactsURIs.map(uri => ({ "location": { "uri": uri } })); - return fingerprints.resolveUriToFile(location, artifacts); + const location = { "uri": uri, "index": index }; + const artifacts = artifactsURIs.map(uri => ({ "location": { "uri": uri } })); + return fingerprints.resolveUriToFile(location, artifacts); } test('resolveUriToFile', t => { - // The resolveUriToFile method checks that the file exists and is in the right directory - // so we need to give it real files to look at. We will use this file as an example. - // For this to work we require the current working directory to be a parent, but this - // should generally always be the case so this is fine. - const cwd = process.cwd(); - const filepath = __filename; - t.true(filepath.startsWith(cwd + '/')); - const relativeFilepaht = filepath.substring(cwd.length + 1); - - process.env['GITHUB_WORKSPACE'] = cwd; - - // Absolute paths are unmodified - t.is(testResolveUriToFile(filepath, undefined, []), filepath); - t.is(testResolveUriToFile('file://' + filepath, undefined, []), filepath); - - // Relative paths are made absolute - t.is(testResolveUriToFile(relativeFilepaht, undefined, []), filepath); - t.is(testResolveUriToFile('file://' + relativeFilepaht, undefined, []), filepath); - - // Absolute paths outside the src root are discarded - t.is(testResolveUriToFile('/src/foo/bar.js', undefined, []), undefined); - t.is(testResolveUriToFile('file:///src/foo/bar.js', undefined, []), undefined); - - // Other schemes are discarded - t.is(testResolveUriToFile('https://' + filepath, undefined, []), undefined); - t.is(testResolveUriToFile('ftp://' + filepath, undefined, []), undefined); - - // Invalid URIs are discarded - t.is(testResolveUriToFile(1, undefined, []), undefined); - t.is(testResolveUriToFile(undefined, undefined, []), undefined); - - // Non-existant files are discarded - t.is(testResolveUriToFile(filepath + '2', undefined, []), undefined); - - // Index is resolved - t.is(testResolveUriToFile(undefined, 0, [filepath]), filepath); - t.is(testResolveUriToFile(undefined, 1, ['foo', filepath]), filepath); - - // Invalid indexes are discarded - t.is(testResolveUriToFile(undefined, 1, [filepath]), undefined); - t.is(testResolveUriToFile(undefined, '0', [filepath]), undefined); + // The resolveUriToFile method checks that the file exists and is in the right directory + // so we need to give it real files to look at. We will use this file as an example. + // For this to work we require the current working directory to be a parent, but this + // should generally always be the case so this is fine. + const cwd = process.cwd(); + const filepath = __filename; + t.true(filepath.startsWith(cwd + '/')); + const relativeFilepaht = filepath.substring(cwd.length + 1); + + process.env['GITHUB_WORKSPACE'] = cwd; + + // Absolute paths are unmodified + t.is(testResolveUriToFile(filepath, undefined, []), filepath); + t.is(testResolveUriToFile('file://' + filepath, undefined, []), filepath); + + // Relative paths are made absolute + t.is(testResolveUriToFile(relativeFilepaht, undefined, []), filepath); + t.is(testResolveUriToFile('file://' + relativeFilepaht, undefined, []), filepath); + + // Absolute paths outside the src root are discarded + t.is(testResolveUriToFile('/src/foo/bar.js', undefined, []), undefined); + t.is(testResolveUriToFile('file:///src/foo/bar.js', undefined, []), undefined); + + // Other schemes are discarded + t.is(testResolveUriToFile('https://' + filepath, undefined, []), undefined); + t.is(testResolveUriToFile('ftp://' + filepath, undefined, []), undefined); + + // Invalid URIs are discarded + t.is(testResolveUriToFile(1, undefined, []), undefined); + t.is(testResolveUriToFile(undefined, undefined, []), undefined); + + // Non-existant files are discarded + t.is(testResolveUriToFile(filepath + '2', undefined, []), undefined); + + // Index is resolved + t.is(testResolveUriToFile(undefined, 0, [filepath]), filepath); + t.is(testResolveUriToFile(undefined, 1, ['foo', filepath]), filepath); + + // Invalid indexes are discarded + t.is(testResolveUriToFile(undefined, 1, [filepath]), undefined); + t.is(testResolveUriToFile(undefined, '0', [filepath]), undefined); }); test('addFingerprints', t => { - // Run an end-to-end test on a test file - let input = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting.input.sarif').toString(); - let expected = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting.expected.sarif').toString(); + // Run an end-to-end test on a test file + let input = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting.input.sarif').toString(); + let expected = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting.expected.sarif').toString(); - // The test files are stored prettified, but addFingerprints outputs condensed JSON - input = JSON.stringify(JSON.parse(input)); - expected = JSON.stringify(JSON.parse(expected)); + // The test files are stored prettified, but addFingerprints outputs condensed JSON + input = JSON.stringify(JSON.parse(input)); + expected = JSON.stringify(JSON.parse(expected)); - // The URIs in the SARIF files resolve to files in the testdata directory - process.env['GITHUB_WORKSPACE'] = path.normalize(__dirname + '/../src/testdata'); + // The URIs in the SARIF files resolve to files in the testdata directory + process.env['GITHUB_WORKSPACE'] = path.normalize(__dirname + '/../src/testdata'); - t.deepEqual(fingerprints.addFingerprints(input), expected); + t.deepEqual(fingerprints.addFingerprints(input), expected); }); test('missingRegions', t => { - // Run an end-to-end test on a test file - let input = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting2.input.sarif').toString(); - let expected = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting2.expected.sarif').toString(); + // Run an end-to-end test on a test file + let input = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting2.input.sarif').toString(); + let expected = fs.readFileSync(__dirname + '/../src/testdata/fingerprinting2.expected.sarif').toString(); - // The test files are stored prettified, but addFingerprints outputs condensed JSON - input = JSON.stringify(JSON.parse(input)); - expected = JSON.stringify(JSON.parse(expected)); + // The test files are stored prettified, but addFingerprints outputs condensed JSON + input = JSON.stringify(JSON.parse(input)); + expected = JSON.stringify(JSON.parse(expected)); - // The URIs in the SARIF files resolve to files in the testdata directory - process.env['GITHUB_WORKSPACE'] = path.normalize(__dirname + '/../src/testdata'); + // The URIs in the SARIF files resolve to files in the testdata directory + process.env['GITHUB_WORKSPACE'] = path.normalize(__dirname + '/../src/testdata'); - t.deepEqual(fingerprints.addFingerprints(input), expected); + t.deepEqual(fingerprints.addFingerprints(input), expected); }); diff --git a/src/fingerprints.ts b/src/fingerprints.ts index cd78bca4a..b75f11e93 100644 --- a/src/fingerprints.ts +++ b/src/fingerprints.ts @@ -11,11 +11,11 @@ const MOD = Long.fromInt(37); // L // Compute the starting point for the hash mod function computeFirstMod(): Long { - let firstMod = Long.ONE; // L - for (let i = 0; i < BLOCK_SIZE; i++) { - firstMod = firstMod.multiply(MOD); - } - return firstMod; + let firstMod = Long.ONE; // L + for (let i = 0; i < BLOCK_SIZE; i++) { + firstMod = firstMod.multiply(MOD); + } + return firstMod; } // Type signature of callback passed to hash function. @@ -35,125 +35,125 @@ type hashCallback = (lineNumber: number, hash: string) => void; * @param input The file's contents */ export function hash(callback: hashCallback, input: string) { - // A rolling view in to the input - const window = Array(BLOCK_SIZE).fill(0); + // A rolling view in to the input + const window = Array(BLOCK_SIZE).fill(0); - // If the character in the window is the start of a new line - // then records the line number, otherwise will be -1. - // Indexes match up with those from the window variable. - const lineNumbers = Array(BLOCK_SIZE).fill(-1); + // If the character in the window is the start of a new line + // then records the line number, otherwise will be -1. + // Indexes match up with those from the window variable. + const lineNumbers = Array(BLOCK_SIZE).fill(-1); - // The current hash value, updated as we read each character - let hash = Long.ZERO; - let firstMod = computeFirstMod(); + // The current hash value, updated as we read each character + let hash = Long.ZERO; + let firstMod = computeFirstMod(); - // The current index in the window, will wrap around to zero when we reach BLOCK_SIZE - let index = 0; - // The line number of the character we are currently processing from the input - let lineNumber = 0; - // Is the next character to be read the start of a new line - let lineStart = true; - // Was the previous character a CR (carriage return) - let prevCR = false; - // A map of hashes we've seen before and how many times, - // so we can disambiguate identical hashes - const hashCounts: { [hashValue: string]: number } = {}; + // The current index in the window, will wrap around to zero when we reach BLOCK_SIZE + let index = 0; + // The line number of the character we are currently processing from the input + let lineNumber = 0; + // Is the next character to be read the start of a new line + let lineStart = true; + // Was the previous character a CR (carriage return) + let prevCR = false; + // A map of hashes we've seen before and how many times, + // so we can disambiguate identical hashes + const hashCounts: { [hashValue: string]: number } = {}; - // Output the current hash and line number to the callback function - const outputHash = function () { - let hashValue = hash.toUnsigned().toString(16); - if (!hashCounts[hashValue]) { - hashCounts[hashValue] = 0; - } - hashCounts[hashValue]++; - callback(lineNumbers[index], hashValue + ":" + hashCounts[hashValue]); - lineNumbers[index] = -1; - }; + // Output the current hash and line number to the callback function + const outputHash = function () { + let hashValue = hash.toUnsigned().toString(16); + if (!hashCounts[hashValue]) { + hashCounts[hashValue] = 0; + } + hashCounts[hashValue]++; + callback(lineNumbers[index], hashValue + ":" + hashCounts[hashValue]); + lineNumbers[index] = -1; + }; - // Update the current hash value and increment the index in the window - const updateHash = function (current: number) { - const begin = window[index]; - window[index] = current; - hash = MOD.multiply(hash) - .add(Long.fromInt(current)) - .subtract(firstMod.multiply(Long.fromInt(begin))); + // Update the current hash value and increment the index in the window + const updateHash = function (current: number) { + const begin = window[index]; + window[index] = current; + hash = MOD.multiply(hash) + .add(Long.fromInt(current)) + .subtract(firstMod.multiply(Long.fromInt(begin))); - index = (index + 1) % BLOCK_SIZE; - }; + index = (index + 1) % BLOCK_SIZE; + }; - // First process every character in the input, updating the hash and lineNumbers - // as we go. Once we reach a point in the window again then we've processed - // BLOCK_SIZE characters and if the last character at this point in the window - // was the start of a line then we should output the hash for that line. - for (let i = 0, len = input.length; i <= len; i++) { - let current = i === len ? 65535 : input.charCodeAt(i); - // skip tabs, spaces, and line feeds that come directly after a carriage return - if (current === space || current === tab || (prevCR && current === lf)) { - prevCR = false; - continue; - } - // replace CR with LF - if (current === cr) { - current = lf; - prevCR = true; - } else { - prevCR = false; - } - if (lineNumbers[index] !== -1) { - outputHash(); - } - if (lineStart) { - lineStart = false; - lineNumber++; - lineNumbers[index] = lineNumber; - } - if (current === lf) { - lineStart = true; - } - updateHash(current); + // First process every character in the input, updating the hash and lineNumbers + // as we go. Once we reach a point in the window again then we've processed + // BLOCK_SIZE characters and if the last character at this point in the window + // was the start of a line then we should output the hash for that line. + for (let i = 0, len = input.length; i <= len; i++) { + let current = i === len ? 65535 : input.charCodeAt(i); + // skip tabs, spaces, and line feeds that come directly after a carriage return + if (current === space || current === tab || (prevCR && current === lf)) { + prevCR = false; + continue; + } + // replace CR with LF + if (current === cr) { + current = lf; + prevCR = true; + } else { + prevCR = false; } + if (lineNumbers[index] !== -1) { + outputHash(); + } + if (lineStart) { + lineStart = false; + lineNumber++; + lineNumbers[index] = lineNumber; + } + if (current === lf) { + lineStart = true; + } + updateHash(current); + } - // Flush the remaining lines - for (let i = 0; i < BLOCK_SIZE; i++) { - if (lineNumbers[index] !== -1) { - outputHash(); - } - updateHash(0); + // Flush the remaining lines + for (let i = 0; i < BLOCK_SIZE; i++) { + if (lineNumbers[index] !== -1) { + outputHash(); } + updateHash(0); + } } // Generate a hash callback function that updates the given result in-place // when it recieves a hash for the correct line number. Ignores hashes for other lines. function locationUpdateCallback(result: any, location: any): hashCallback { - let locationStartLine = location.physicalLocation?.region?.startLine; - if (locationStartLine === undefined) { - // We expect the region section to be present, but it can be absent if the - // alert pertains to the entire file. In this case, we compute the fingerprint - // using the hash of the first line of the file. - locationStartLine = 1; + let locationStartLine = location.physicalLocation?.region?.startLine; + if (locationStartLine === undefined) { + // We expect the region section to be present, but it can be absent if the + // alert pertains to the entire file. In this case, we compute the fingerprint + // using the hash of the first line of the file. + locationStartLine = 1; + } + return function (lineNumber: number, hash: string) { + // Ignore hashes for lines that don't concern us + if (locationStartLine !== lineNumber) { + return; } - return function (lineNumber: number, hash: string) { - // Ignore hashes for lines that don't concern us - if (locationStartLine !== lineNumber) { - return; - } - if (!result.partialFingerprints) { - result.partialFingerprints = {}; - } - const existingFingerprint = result.partialFingerprints.primaryLocationLineHash; + if (!result.partialFingerprints) { + result.partialFingerprints = {}; + } + const existingFingerprint = result.partialFingerprints.primaryLocationLineHash; - // If the hash doesn't match the existing fingerprint then - // output a warning and don't overwrite it. - if (!existingFingerprint) { - result.partialFingerprints.primaryLocationLineHash = hash; - } else if (existingFingerprint !== hash) { - core.warning("Calculated fingerprint of " + hash + - " for file " + location.physicalLocation.artifactLocation.uri + - " line " + lineNumber + - ", but found existing inconsistent fingerprint value " + existingFingerprint); - } - }; + // If the hash doesn't match the existing fingerprint then + // output a warning and don't overwrite it. + if (!existingFingerprint) { + result.partialFingerprints.primaryLocationLineHash = hash; + } else if (existingFingerprint !== hash) { + core.warning("Calculated fingerprint of " + hash + + " for file " + location.physicalLocation.artifactLocation.uri + + " line " + lineNumber + + ", but found existing inconsistent fingerprint value " + existingFingerprint); + } + }; } // Can we fingerprint the given location. This requires access to @@ -161,100 +161,100 @@ function locationUpdateCallback(result: any, location: any): hashCallback { // If possible returns a absolute file path for the source file, // or if not possible then returns undefined. export function resolveUriToFile(location: any, artifacts: any[]): string | undefined { - // This may be referencing an artifact - if (!location.uri && location.index !== undefined) { - if (typeof location.index !== 'number' || - location.index < 0 || - location.index >= artifacts.length || - typeof artifacts[location.index].location !== 'object') { - core.debug('Ignoring location as index "' + location.index + '" is invalid'); - return undefined; - } - location = artifacts[location.index].location; + // This may be referencing an artifact + if (!location.uri && location.index !== undefined) { + if (typeof location.index !== 'number' || + location.index < 0 || + location.index >= artifacts.length || + typeof artifacts[location.index].location !== 'object') { + core.debug('Ignoring location as index "' + location.index + '" is invalid'); + return undefined; } + location = artifacts[location.index].location; + } - // Get the URI and decode - if (typeof location.uri !== 'string') { - core.debug('Ignoring location as uri "' + location.uri + '" is invalid'); - return undefined; - } - let uri = decodeURIComponent(location.uri); + // Get the URI and decode + if (typeof location.uri !== 'string') { + core.debug('Ignoring location as uri "' + location.uri + '" is invalid'); + return undefined; + } + let uri = decodeURIComponent(location.uri); - // Remove a file scheme, and abort if the scheme is anything else - const fileUriPrefix = 'file://'; - if (uri.startsWith(fileUriPrefix)) { - uri = uri.substring(fileUriPrefix.length); - } - if (uri.indexOf('://') !== -1) { - core.debug('Ignoring location URI "' + uri + "' as the scheme is not recognised"); - return undefined; - } + // Remove a file scheme, and abort if the scheme is anything else + const fileUriPrefix = 'file://'; + if (uri.startsWith(fileUriPrefix)) { + uri = uri.substring(fileUriPrefix.length); + } + if (uri.indexOf('://') !== -1) { + core.debug('Ignoring location URI "' + uri + "' as the scheme is not recognised"); + return undefined; + } - // Discard any absolute paths that aren't in the src root - const srcRootPrefix = process.env['GITHUB_WORKSPACE'] + '/'; - if (uri.startsWith('/') && !uri.startsWith(srcRootPrefix)) { - core.debug('Ignoring location URI "' + uri + "' as it is outside of the src root"); - return undefined; - } + // Discard any absolute paths that aren't in the src root + const srcRootPrefix = process.env['GITHUB_WORKSPACE'] + '/'; + if (uri.startsWith('/') && !uri.startsWith(srcRootPrefix)) { + core.debug('Ignoring location URI "' + uri + "' as it is outside of the src root"); + return undefined; + } - // Just assume a relative path is relative to the src root. - // This is not necessarily true but should be a good approximation - // and here we likely want to err on the side of handling more cases. - if (!uri.startsWith('/')) { - uri = srcRootPrefix + uri; - } + // Just assume a relative path is relative to the src root. + // This is not necessarily true but should be a good approximation + // and here we likely want to err on the side of handling more cases. + if (!uri.startsWith('/')) { + uri = srcRootPrefix + uri; + } - // Check the file exists - if (!fs.existsSync(uri)) { - core.debug("Unable to compute fingerprint for non-existent file: " + uri); - return undefined; - } + // Check the file exists + if (!fs.existsSync(uri)) { + core.debug("Unable to compute fingerprint for non-existent file: " + uri); + return undefined; + } - return uri; + return uri; } // Compute fingerprints for results in the given sarif file // and return an updated sarif file contents. export function addFingerprints(sarifContents: string): string { - let sarif = JSON.parse(sarifContents); + let sarif = JSON.parse(sarifContents); - // Gather together results for the same file and construct - // callbacks to accept hashes for that file and update the location - const callbacksByFile: { [filename: string]: hashCallback[] } = {}; - for (const run of sarif.runs || []) { - // We may need the list of artifacts to resolve against - let artifacts = run.artifacts || []; + // Gather together results for the same file and construct + // callbacks to accept hashes for that file and update the location + const callbacksByFile: { [filename: string]: hashCallback[] } = {}; + for (const run of sarif.runs || []) { + // We may need the list of artifacts to resolve against + let artifacts = run.artifacts || []; - for (const result of run.results || []) { - // Check the primary location is defined correctly and is in the src root - const primaryLocation = (result.locations || [])[0]; - if (!primaryLocation || - !primaryLocation.physicalLocation || - !primaryLocation.physicalLocation.artifactLocation) { - core.debug("Unable to compute fingerprint for invalid location: " + JSON.stringify(primaryLocation)); - continue; - } + for (const result of run.results || []) { + // Check the primary location is defined correctly and is in the src root + const primaryLocation = (result.locations || [])[0]; + if (!primaryLocation || + !primaryLocation.physicalLocation || + !primaryLocation.physicalLocation.artifactLocation) { + core.debug("Unable to compute fingerprint for invalid location: " + JSON.stringify(primaryLocation)); + continue; + } - const filepath = resolveUriToFile(primaryLocation.physicalLocation.artifactLocation, artifacts); - if (!filepath) { - continue; - } - if (!callbacksByFile[filepath]) { - callbacksByFile[filepath] = []; - } - callbacksByFile[filepath].push(locationUpdateCallback(result, primaryLocation)); - } + const filepath = resolveUriToFile(primaryLocation.physicalLocation.artifactLocation, artifacts); + if (!filepath) { + continue; + } + if (!callbacksByFile[filepath]) { + callbacksByFile[filepath] = []; + } + callbacksByFile[filepath].push(locationUpdateCallback(result, primaryLocation)); } + } - // Now hash each file that was found - Object.entries(callbacksByFile).forEach(([filepath, callbacks]) => { - // A callback that forwards the hash to all other callbacks for that file - const teeCallback = function (lineNumber: number, hash: string) { - Object.values(callbacks).forEach(c => c(lineNumber, hash)); - }; - const fileContents = fs.readFileSync(filepath).toString(); - hash(teeCallback, fileContents); - }); + // Now hash each file that was found + Object.entries(callbacksByFile).forEach(([filepath, callbacks]) => { + // A callback that forwards the hash to all other callbacks for that file + const teeCallback = function (lineNumber: number, hash: string) { + Object.values(callbacks).forEach(c => c(lineNumber, hash)); + }; + const fileContents = fs.readFileSync(filepath).toString(); + hash(teeCallback, fileContents); + }); - return JSON.stringify(sarif); + return JSON.stringify(sarif); } diff --git a/src/setup-tools.test.ts b/src/setup-tools.test.ts index 96680b339..e0bd0b458 100644 --- a/src/setup-tools.test.ts +++ b/src/setup-tools.test.ts @@ -8,55 +8,55 @@ import * as util from './util'; test('download codeql bundle cache', async t => { - await util.withTmpDir(async tmpDir => { + await util.withTmpDir(async tmpDir => { - process.env['GITHUB_WORKSPACE'] = tmpDir; + process.env['GITHUB_WORKSPACE'] = tmpDir; - process.env['RUNNER_TEMP'] = path.join(tmpDir, 'temp'); - process.env['RUNNER_TOOL_CACHE'] = path.join(tmpDir, 'cache'); + process.env['RUNNER_TEMP'] = path.join(tmpDir, 'temp'); + process.env['RUNNER_TOOL_CACHE'] = path.join(tmpDir, 'cache'); - const versions = ['20200601', '20200610']; + const versions = ['20200601', '20200610']; - for (let i = 0; i < versions.length; i++) { - const version = versions[i]; + for (let i = 0; i < versions.length; i++) { + const version = versions[i]; - nock('https://example.com') - .get(`/download/codeql-bundle-${version}/codeql-bundle.tar.gz`) - .replyWithFile(200, path.join(__dirname, `/../src/testdata/codeql-bundle.tar.gz`)); + nock('https://example.com') + .get(`/download/codeql-bundle-${version}/codeql-bundle.tar.gz`) + .replyWithFile(200, path.join(__dirname, `/../src/testdata/codeql-bundle.tar.gz`)); - process.env['INPUT_TOOLS'] = `https://example.com/download/codeql-bundle-${version}/codeql-bundle.tar.gz`; + process.env['INPUT_TOOLS'] = `https://example.com/download/codeql-bundle-${version}/codeql-bundle.tar.gz`; - await setupTools.setupCodeQL(); + await setupTools.setupCodeQL(); - t.assert(toolcache.find('CodeQL', `0.0.0-${version}`)); - } + t.assert(toolcache.find('CodeQL', `0.0.0-${version}`)); + } - const cachedVersions = toolcache.findAllVersions('CodeQL'); + const cachedVersions = toolcache.findAllVersions('CodeQL'); - t.is(cachedVersions.length, 2); - }); + t.is(cachedVersions.length, 2); + }); }); test('parse codeql bundle url version', t => { - const tests = { - '20200601': '0.0.0-20200601', - '20200601.0': '0.0.0-20200601.0', - '20200601.0.0': '20200601.0.0', - '1.2.3': '1.2.3', - '1.2.3-alpha': '1.2.3-alpha', - '1.2.3-beta.1': '1.2.3-beta.1', - }; - - for (const [version, expectedVersion] of Object.entries(tests)) { - const url = `https://github.com/.../codeql-bundle-${version}/...`; - - try { - const parsedVersion = setupTools.getCodeQLURLVersion(url); - t.deepEqual(parsedVersion, expectedVersion); - } catch (e) { - t.fail(e.message); - } + const tests = { + '20200601': '0.0.0-20200601', + '20200601.0': '0.0.0-20200601.0', + '20200601.0.0': '20200601.0.0', + '1.2.3': '1.2.3', + '1.2.3-alpha': '1.2.3-alpha', + '1.2.3-beta.1': '1.2.3-beta.1', + }; + + for (const [version, expectedVersion] of Object.entries(tests)) { + const url = `https://github.com/.../codeql-bundle-${version}/...`; + + try { + const parsedVersion = setupTools.getCodeQLURLVersion(url); + t.deepEqual(parsedVersion, expectedVersion); + } catch (e) { + t.fail(e.message); } + } }); diff --git a/src/setup-tools.ts b/src/setup-tools.ts index 2ed64c21a..1f878ec17 100644 --- a/src/setup-tools.ts +++ b/src/setup-tools.ts @@ -4,70 +4,70 @@ import * as path from 'path'; import * as semver from 'semver'; export class CodeQLSetup { - public dist: string; - public tools: string; - public cmd: string; - public platform: string; + public dist: string; + public tools: string; + public cmd: string; + public platform: string; - constructor(codeqlDist: string) { - this.dist = codeqlDist; - this.tools = path.join(this.dist, 'tools'); - this.cmd = path.join(codeqlDist, 'codeql'); - // TODO check process.arch ? - if (process.platform === 'win32') { - this.platform = 'win64'; - if (this.cmd.endsWith('codeql')) { - this.cmd += ".cmd"; - } - } else if (process.platform === 'linux') { - this.platform = 'linux64'; - } else if (process.platform === 'darwin') { - this.platform = 'osx64'; - } else { - throw new Error("Unsupported plaform: " + process.platform); - } + constructor(codeqlDist: string) { + this.dist = codeqlDist; + this.tools = path.join(this.dist, 'tools'); + this.cmd = path.join(codeqlDist, 'codeql'); + // TODO check process.arch ? + if (process.platform === 'win32') { + this.platform = 'win64'; + if (this.cmd.endsWith('codeql')) { + this.cmd += ".cmd"; + } + } else if (process.platform === 'linux') { + this.platform = 'linux64'; + } else if (process.platform === 'darwin') { + this.platform = 'osx64'; + } else { + throw new Error("Unsupported plaform: " + process.platform); } + } } export async function setupCodeQL(): Promise { - try { - const codeqlURL = core.getInput('tools', { required: true }); - const codeqlURLVersion = getCodeQLURLVersion(codeqlURL); + try { + const codeqlURL = core.getInput('tools', { required: true }); + const codeqlURLVersion = getCodeQLURLVersion(codeqlURL); - let codeqlFolder = toolcache.find('CodeQL', codeqlURLVersion); - if (codeqlFolder) { - core.debug(`CodeQL found in cache ${codeqlFolder}`); - } else { - const codeqlPath = await toolcache.downloadTool(codeqlURL); - const codeqlExtracted = await toolcache.extractTar(codeqlPath); - codeqlFolder = await toolcache.cacheDir(codeqlExtracted, 'CodeQL', codeqlURLVersion); - } - return new CodeQLSetup(path.join(codeqlFolder, 'codeql')); - - } catch (e) { - core.error(e); - throw new Error("Unable to download and extract CodeQL CLI"); + let codeqlFolder = toolcache.find('CodeQL', codeqlURLVersion); + if (codeqlFolder) { + core.debug(`CodeQL found in cache ${codeqlFolder}`); + } else { + const codeqlPath = await toolcache.downloadTool(codeqlURL); + const codeqlExtracted = await toolcache.extractTar(codeqlPath); + codeqlFolder = await toolcache.cacheDir(codeqlExtracted, 'CodeQL', codeqlURLVersion); } + return new CodeQLSetup(path.join(codeqlFolder, 'codeql')); + + } catch (e) { + core.error(e); + throw new Error("Unable to download and extract CodeQL CLI"); + } } export function getCodeQLURLVersion(url: string): string { - const match = url.match(/\/codeql-bundle-(.*)\//); - if (match === null || match.length < 2) { - throw new Error(`Malformed tools url: ${url}. Version could not be inferred`); - } + const match = url.match(/\/codeql-bundle-(.*)\//); + if (match === null || match.length < 2) { + throw new Error(`Malformed tools url: ${url}. Version could not be inferred`); + } - let version = match[1]; + let version = match[1]; - if (!semver.valid(version)) { - core.debug(`Bundle version ${version} is not in SemVer format. Will treat it as pre-release 0.0.0-${version}.`); - version = '0.0.0-' + version; - } + if (!semver.valid(version)) { + core.debug(`Bundle version ${version} is not in SemVer format. Will treat it as pre-release 0.0.0-${version}.`); + version = '0.0.0-' + version; + } - const s = semver.clean(version); - if (!s) { - throw new Error(`Malformed tools url ${url}. Version should be in SemVer format but have ${version} instead`); - } + const s = semver.clean(version); + if (!s) { + throw new Error(`Malformed tools url ${url}. Version should be in SemVer format but have ${version} instead`); + } - return s; + return s; } diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index a97960682..9cc3b3e6c 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -11,239 +11,239 @@ import * as sharedEnv from './shared-environment'; import * as util from './util'; type TracerConfig = { - spec: string; - env: { [key: string]: string }; + spec: string; + env: { [key: string]: string }; }; const CRITICAL_TRACER_VARS = new Set( - ['SEMMLE_PRELOAD_libtrace', - , 'SEMMLE_RUNNER', - , 'SEMMLE_COPY_EXECUTABLES_ROOT', - , 'SEMMLE_DEPTRACE_SOCKET', - , 'SEMMLE_JAVA_TOOL_OPTIONS' - ]); + ['SEMMLE_PRELOAD_libtrace', + , 'SEMMLE_RUNNER', + , 'SEMMLE_COPY_EXECUTABLES_ROOT', + , 'SEMMLE_DEPTRACE_SOCKET', + , 'SEMMLE_JAVA_TOOL_OPTIONS' + ]); async function tracerConfig( - codeql: setuptools.CodeQLSetup, - database: string, - compilerSpec?: string): Promise { - - const compilerSpecArg = compilerSpec ? ["--compiler-spec=" + compilerSpec] : []; - - let envFile = path.resolve(database, 'working', 'env.tmp'); - await exec.exec(codeql.cmd, ['database', 'trace-command', database, - ...compilerSpecArg, - process.execPath, path.resolve(__dirname, 'tracer-env.js'), envFile] - ); - - const env: { [key: string]: string } = JSON.parse(fs.readFileSync(envFile, 'utf-8')); - - const config = env['ODASA_TRACER_CONFIGURATION']; - const info: TracerConfig = { spec: config, env: {} }; - - // Extract critical tracer variables from the environment - for (let entry of Object.entries(env)) { - const key = entry[0]; - const value = entry[1]; - // skip ODASA_TRACER_CONFIGURATION as it is handled separately - if (key === 'ODASA_TRACER_CONFIGURATION') { - continue; - } - // skip undefined values - if (typeof value === 'undefined') { - continue; - } - // Keep variables that do not exist in current environment. In addition always keep - // critical and CODEQL_ variables - if (typeof process.env[key] === 'undefined' || CRITICAL_TRACER_VARS.has(key) || key.startsWith('CODEQL_')) { - info.env[key] = value; - } + codeql: setuptools.CodeQLSetup, + database: string, + compilerSpec?: string): Promise { + + const compilerSpecArg = compilerSpec ? ["--compiler-spec=" + compilerSpec] : []; + + let envFile = path.resolve(database, 'working', 'env.tmp'); + await exec.exec(codeql.cmd, ['database', 'trace-command', database, + ...compilerSpecArg, + process.execPath, path.resolve(__dirname, 'tracer-env.js'), envFile] + ); + + const env: { [key: string]: string } = JSON.parse(fs.readFileSync(envFile, 'utf-8')); + + const config = env['ODASA_TRACER_CONFIGURATION']; + const info: TracerConfig = { spec: config, env: {} }; + + // Extract critical tracer variables from the environment + for (let entry of Object.entries(env)) { + const key = entry[0]; + const value = entry[1]; + // skip ODASA_TRACER_CONFIGURATION as it is handled separately + if (key === 'ODASA_TRACER_CONFIGURATION') { + continue; + } + // skip undefined values + if (typeof value === 'undefined') { + continue; } - return info; + // Keep variables that do not exist in current environment. In addition always keep + // critical and CODEQL_ variables + if (typeof process.env[key] === 'undefined' || CRITICAL_TRACER_VARS.has(key) || key.startsWith('CODEQL_')) { + info.env[key] = value; + } + } + return info; } function concatTracerConfigs(configs: { [lang: string]: TracerConfig }): TracerConfig { - // A tracer config is a map containing additional environment variables and a tracer 'spec' file. - // A tracer 'spec' file has the following format [log_file, number_of_blocks, blocks_text] - - // Merge the environments - const env: { [key: string]: string; } = {}; - let copyExecutables = false; - let envSize = 0; - for (let v of Object.values(configs)) { - for (let e of Object.entries(v.env)) { - const name = e[0]; - const value = e[1]; - // skip SEMMLE_COPY_EXECUTABLES_ROOT as it is handled separately - if (name === 'SEMMLE_COPY_EXECUTABLES_ROOT') { - copyExecutables = true; - } else if (name in env) { - if (env[name] !== value) { - throw Error('Incompatible values in environment parameter ' + - name + ': ' + env[name] + ' and ' + value); - } - } else { - env[name] = value; - envSize += 1; - } + // A tracer config is a map containing additional environment variables and a tracer 'spec' file. + // A tracer 'spec' file has the following format [log_file, number_of_blocks, blocks_text] + + // Merge the environments + const env: { [key: string]: string; } = {}; + let copyExecutables = false; + let envSize = 0; + for (let v of Object.values(configs)) { + for (let e of Object.entries(v.env)) { + const name = e[0]; + const value = e[1]; + // skip SEMMLE_COPY_EXECUTABLES_ROOT as it is handled separately + if (name === 'SEMMLE_COPY_EXECUTABLES_ROOT') { + copyExecutables = true; + } else if (name in env) { + if (env[name] !== value) { + throw Error('Incompatible values in environment parameter ' + + name + ': ' + env[name] + ' and ' + value); } - } - - // Concatenate spec files into a new spec file - let languages = Object.keys(configs); - const cppIndex = languages.indexOf('cpp'); - // Make sure cpp is the last language, if it's present since it must be concatenated last - if (cppIndex !== -1) { - let lastLang = languages[languages.length - 1]; - languages[languages.length - 1] = languages[cppIndex]; - languages[cppIndex] = lastLang; - } - - let totalLines: string[] = []; - let totalCount = 0; - for (let lang of languages) { - const lines = fs.readFileSync(configs[lang].spec, 'utf8').split(/\r?\n/); - const count = parseInt(lines[1], 10); - totalCount += count; - totalLines.push(...lines.slice(2)); - } - - const tempFolder = util.getRequiredEnvParam('RUNNER_TEMP'); - const newLogFilePath = path.resolve(tempFolder, 'compound-build-tracer.log'); - const spec = path.resolve(tempFolder, 'compound-spec'); - const compoundTempFolder = path.resolve(tempFolder, 'compound-temp'); - const newSpecContent = [newLogFilePath, totalCount.toString(10), ...totalLines]; - - if (copyExecutables) { - env['SEMMLE_COPY_EXECUTABLES_ROOT'] = compoundTempFolder; + } else { + env[name] = value; envSize += 1; + } } - - fs.writeFileSync(spec, newSpecContent.join('\n')); - - // Prepare the content of the compound environment file - let buffer = Buffer.alloc(4); - buffer.writeInt32LE(envSize, 0); - for (let e of Object.entries(env)) { - const key = e[0]; - const value = e[1]; - const lineBuffer = new Buffer(key + '=' + value + '\0', 'utf8'); - const sizeBuffer = Buffer.alloc(4); - sizeBuffer.writeInt32LE(lineBuffer.length, 0); - buffer = Buffer.concat([buffer, sizeBuffer, lineBuffer]); - } - // Write the compound environment - const envPath = spec + '.environment'; - fs.writeFileSync(envPath, buffer); - - return { env, spec }; + } + + // Concatenate spec files into a new spec file + let languages = Object.keys(configs); + const cppIndex = languages.indexOf('cpp'); + // Make sure cpp is the last language, if it's present since it must be concatenated last + if (cppIndex !== -1) { + let lastLang = languages[languages.length - 1]; + languages[languages.length - 1] = languages[cppIndex]; + languages[cppIndex] = lastLang; + } + + let totalLines: string[] = []; + let totalCount = 0; + for (let lang of languages) { + const lines = fs.readFileSync(configs[lang].spec, 'utf8').split(/\r?\n/); + const count = parseInt(lines[1], 10); + totalCount += count; + totalLines.push(...lines.slice(2)); + } + + const tempFolder = util.getRequiredEnvParam('RUNNER_TEMP'); + const newLogFilePath = path.resolve(tempFolder, 'compound-build-tracer.log'); + const spec = path.resolve(tempFolder, 'compound-spec'); + const compoundTempFolder = path.resolve(tempFolder, 'compound-temp'); + const newSpecContent = [newLogFilePath, totalCount.toString(10), ...totalLines]; + + if (copyExecutables) { + env['SEMMLE_COPY_EXECUTABLES_ROOT'] = compoundTempFolder; + envSize += 1; + } + + fs.writeFileSync(spec, newSpecContent.join('\n')); + + // Prepare the content of the compound environment file + let buffer = Buffer.alloc(4); + buffer.writeInt32LE(envSize, 0); + for (let e of Object.entries(env)) { + const key = e[0]; + const value = e[1]; + const lineBuffer = new Buffer(key + '=' + value + '\0', 'utf8'); + const sizeBuffer = Buffer.alloc(4); + sizeBuffer.writeInt32LE(lineBuffer.length, 0); + buffer = Buffer.concat([buffer, sizeBuffer, lineBuffer]); + } + // Write the compound environment + const envPath = spec + '.environment'; + fs.writeFileSync(envPath, buffer); + + return { env, spec }; } async function run() { - try { - if (util.should_abort('init', false) || !await util.reportActionStarting('init')) { - return; - } + try { + if (util.should_abort('init', false) || !await util.reportActionStarting('init')) { + return; + } - // The config file MUST be parsed in the init action - const config = await configUtils.loadConfig(); + // The config file MUST be parsed in the init action + const config = await configUtils.loadConfig(); - core.startGroup('Load language configuration'); + core.startGroup('Load language configuration'); - const languages = await util.getLanguages(); - // If the languages parameter was not given and no languages were - // detected then fail here as this is a workflow configuration error. - if (languages.length === 0) { - core.setFailed("Did not detect any languages to analyze. Please update input in workflow."); - return; - } + const languages = await util.getLanguages(); + // If the languages parameter was not given and no languages were + // detected then fail here as this is a workflow configuration error. + if (languages.length === 0) { + core.setFailed("Did not detect any languages to analyze. Please update input in workflow."); + return; + } - core.endGroup(); + core.endGroup(); - analysisPaths.includeAndExcludeAnalysisPaths(config, languages); + analysisPaths.includeAndExcludeAnalysisPaths(config, languages); - const sourceRoot = path.resolve(); + const sourceRoot = path.resolve(); - core.startGroup('Setup CodeQL tools'); - const codeqlSetup = await setuptools.setupCodeQL(); - await exec.exec(codeqlSetup.cmd, ['version', '--format=json']); - core.endGroup(); + core.startGroup('Setup CodeQL tools'); + const codeqlSetup = await setuptools.setupCodeQL(); + await exec.exec(codeqlSetup.cmd, ['version', '--format=json']); + core.endGroup(); - // Forward Go flags - const goFlags = process.env['GOFLAGS']; - if (goFlags) { - core.exportVariable('GOFLAGS', goFlags); - core.warning("Passing the GOFLAGS env parameter to the init action is deprecated. Please move this to the analyze action."); - } + // Forward Go flags + const goFlags = process.env['GOFLAGS']; + if (goFlags) { + core.exportVariable('GOFLAGS', goFlags); + core.warning("Passing the GOFLAGS env parameter to the init action is deprecated. Please move this to the analyze action."); + } - // Setup CODEQL_RAM flag (todo improve this https://github.com/github/dsp-code-scanning/issues/935) - const codeqlRam = process.env['CODEQL_RAM'] || '6500'; - core.exportVariable('CODEQL_RAM', codeqlRam); - - const databaseFolder = path.resolve(util.getRequiredEnvParam('RUNNER_TEMP'), 'codeql_databases'); - await io.mkdirP(databaseFolder); - - let tracedLanguages: { [key: string]: TracerConfig } = {}; - let scannedLanguages: string[] = []; - - // TODO: replace this code once CodeQL supports multi-language tracing - for (let language of languages) { - const languageDatabase = path.join(databaseFolder, language); - - // Init language database - await exec.exec(codeqlSetup.cmd, ['database', 'init', languageDatabase, '--language=' + language, '--source-root=' + sourceRoot]); - // TODO: add better detection of 'traced languages' instead of using a hard coded list - if (['cpp', 'java', 'csharp'].includes(language)) { - const config: TracerConfig = await tracerConfig(codeqlSetup, languageDatabase); - tracedLanguages[language] = config; - } else { - scannedLanguages.push(language); - } + // Setup CODEQL_RAM flag (todo improve this https://github.com/github/dsp-code-scanning/issues/935) + const codeqlRam = process.env['CODEQL_RAM'] || '6500'; + core.exportVariable('CODEQL_RAM', codeqlRam); + + const databaseFolder = path.resolve(util.getRequiredEnvParam('RUNNER_TEMP'), 'codeql_databases'); + await io.mkdirP(databaseFolder); + + let tracedLanguages: { [key: string]: TracerConfig } = {}; + let scannedLanguages: string[] = []; + + // TODO: replace this code once CodeQL supports multi-language tracing + for (let language of languages) { + const languageDatabase = path.join(databaseFolder, language); + + // Init language database + await exec.exec(codeqlSetup.cmd, ['database', 'init', languageDatabase, '--language=' + language, '--source-root=' + sourceRoot]); + // TODO: add better detection of 'traced languages' instead of using a hard coded list + if (['cpp', 'java', 'csharp'].includes(language)) { + const config: TracerConfig = await tracerConfig(codeqlSetup, languageDatabase); + tracedLanguages[language] = config; + } else { + scannedLanguages.push(language); + } + } + const tracedLanguageKeys = Object.keys(tracedLanguages); + if (tracedLanguageKeys.length > 0) { + const mainTracerConfig = concatTracerConfigs(tracedLanguages); + if (mainTracerConfig.spec) { + for (let entry of Object.entries(mainTracerConfig.env)) { + core.exportVariable(entry[0], entry[1]); } - const tracedLanguageKeys = Object.keys(tracedLanguages); - if (tracedLanguageKeys.length > 0) { - const mainTracerConfig = concatTracerConfigs(tracedLanguages); - if (mainTracerConfig.spec) { - for (let entry of Object.entries(mainTracerConfig.env)) { - core.exportVariable(entry[0], entry[1]); - } - - core.exportVariable('ODASA_TRACER_CONFIGURATION', mainTracerConfig.spec); - if (process.platform === 'darwin') { - core.exportVariable( - 'DYLD_INSERT_LIBRARIES', - path.join(codeqlSetup.tools, 'osx64', 'libtrace.dylib')); - } else if (process.platform === 'win32') { - await exec.exec( - 'powershell', - [path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), - path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe')], - { env: { 'ODASA_TRACER_CONFIGURATION': mainTracerConfig.spec } }); - } else { - core.exportVariable('LD_PRELOAD', path.join(codeqlSetup.tools, 'linux64', '${LIB}trace.so')); - } - } + + core.exportVariable('ODASA_TRACER_CONFIGURATION', mainTracerConfig.spec); + if (process.platform === 'darwin') { + core.exportVariable( + 'DYLD_INSERT_LIBRARIES', + path.join(codeqlSetup.tools, 'osx64', 'libtrace.dylib')); + } else if (process.platform === 'win32') { + await exec.exec( + 'powershell', + [path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), + path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe')], + { env: { 'ODASA_TRACER_CONFIGURATION': mainTracerConfig.spec } }); + } else { + core.exportVariable('LD_PRELOAD', path.join(codeqlSetup.tools, 'linux64', '${LIB}trace.so')); } + } + } - core.exportVariable(sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES, scannedLanguages.join(',')); - core.exportVariable(sharedEnv.CODEQL_ACTION_TRACED_LANGUAGES, tracedLanguageKeys.join(',')); + core.exportVariable(sharedEnv.CODEQL_ACTION_SCANNED_LANGUAGES, scannedLanguages.join(',')); + core.exportVariable(sharedEnv.CODEQL_ACTION_TRACED_LANGUAGES, tracedLanguageKeys.join(',')); - // TODO: make this a "private" environment variable of the action - core.exportVariable(sharedEnv.CODEQL_ACTION_DATABASE_DIR, databaseFolder); - core.exportVariable(sharedEnv.CODEQL_ACTION_CMD, codeqlSetup.cmd); + // TODO: make this a "private" environment variable of the action + core.exportVariable(sharedEnv.CODEQL_ACTION_DATABASE_DIR, databaseFolder); + core.exportVariable(sharedEnv.CODEQL_ACTION_CMD, codeqlSetup.cmd); - } catch (error) { - core.setFailed(error.message); - await util.reportActionFailed('init', error.message, error.stack); - return; - } - await util.reportActionSucceeded('init'); - core.exportVariable(sharedEnv.CODEQL_ACTION_INIT_COMPLETED, 'true'); + } catch (error) { + core.setFailed(error.message); + await util.reportActionFailed('init', error.message, error.stack); + return; + } + await util.reportActionSucceeded('init'); + core.exportVariable(sharedEnv.CODEQL_ACTION_INIT_COMPLETED, 'true'); } run().catch(e => { - core.setFailed("init action failed: " + e); - console.log(e); + core.setFailed("init action failed: " + e); + console.log(e); }); diff --git a/src/tracer-env.ts b/src/tracer-env.ts index 687f253ba..ce91b24e5 100644 --- a/src/tracer-env.ts +++ b/src/tracer-env.ts @@ -2,12 +2,11 @@ import * as fs from 'fs'; const env = {}; for (let entry of Object.entries(process.env)) { - const key = entry[0]; - const value = entry[1]; - if (typeof value !== 'undefined' && key !== '_' && !key.startsWith('JAVA_MAIN_CLASS_')) { - env[key] = value; - } + const key = entry[0]; + const value = entry[1]; + if (typeof value !== 'undefined' && key !== '_' && !key.startsWith('JAVA_MAIN_CLASS_')) { + env[key] = value; + } } process.stdout.write(process.argv[2]); fs.writeFileSync(process.argv[2], JSON.stringify(env), 'utf-8'); - diff --git a/src/upload-lib.ts b/src/upload-lib.ts index 07cabccfb..a917f3446 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -14,212 +14,212 @@ import * as util from './util'; // Takes a list of paths to sarif files and combines them together, // returning the contents of the combined sarif file. export function combineSarifFiles(sarifFiles: string[]): string { - let combinedSarif = { - version: null, - runs: [] as any[] - }; - - for (let sarifFile of sarifFiles) { - let sarifObject = JSON.parse(fs.readFileSync(sarifFile, 'utf8')); - // Check SARIF version - if (combinedSarif.version === null) { - combinedSarif.version = sarifObject.version; - } else if (combinedSarif.version !== sarifObject.version) { - throw "Different SARIF versions encountered: " + combinedSarif.version + " and " + sarifObject.version; - } - - combinedSarif.runs.push(...sarifObject.runs); + let combinedSarif = { + version: null, + runs: [] as any[] + }; + + for (let sarifFile of sarifFiles) { + let sarifObject = JSON.parse(fs.readFileSync(sarifFile, 'utf8')); + // Check SARIF version + if (combinedSarif.version === null) { + combinedSarif.version = sarifObject.version; + } else if (combinedSarif.version !== sarifObject.version) { + throw "Different SARIF versions encountered: " + combinedSarif.version + " and " + sarifObject.version; } - return JSON.stringify(combinedSarif); + combinedSarif.runs.push(...sarifObject.runs); + } + + return JSON.stringify(combinedSarif); } // Upload the given payload. // If the request fails then this will retry a small number of times. async function uploadPayload(payload): Promise { - core.info('Uploading results'); + core.info('Uploading results'); + + // If in test mode we don't want to upload the results + const testMode = process.env['TEST_MODE'] === 'true' || false; + if (testMode) { + return true; + } + + const githubToken = core.getInput('token'); + const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); + const client = new http.HttpClient('Code Scanning : Upload SARIF', [ph]); + const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] + '/code-scanning/analysis'; + + // Make up to 4 attempts to upload, and sleep for these + // number of seconds between each attempt. + // We don't want to backoff too much to avoid wasting action + // minutes, but just waiting a little bit could maybe help. + const backoffPeriods = [1, 5, 15]; + + for (let attempt = 0; attempt <= backoffPeriods.length; attempt++) { + + const res: http.HttpClientResponse = await client.put(url, payload); + core.debug('response status: ' + res.message.statusCode); + + const statusCode = res.message.statusCode; + if (statusCode === 202) { + core.info("Successfully uploaded results"); + return true; + } + + const requestID = res.message.headers["x-github-request-id"]; - // If in test mode we don't want to upload the results - const testMode = process.env['TEST_MODE'] === 'true' || false; - if (testMode) { - return true; + // On any other status code that's not 5xx mark the upload as failed + if (!statusCode || statusCode < 500 || statusCode >= 600) { + core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + return false; } - const githubToken = core.getInput('token'); - const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Upload SARIF', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] + '/code-scanning/analysis'; - - // Make up to 4 attempts to upload, and sleep for these - // number of seconds between each attempt. - // We don't want to backoff too much to avoid wasting action - // minutes, but just waiting a little bit could maybe help. - const backoffPeriods = [1, 5, 15]; - - for (let attempt = 0; attempt <= backoffPeriods.length; attempt++) { - - const res: http.HttpClientResponse = await client.put(url, payload); - core.debug('response status: ' + res.message.statusCode); - - const statusCode = res.message.statusCode; - if (statusCode === 202) { - core.info("Successfully uploaded results"); - return true; - } - - const requestID = res.message.headers["x-github-request-id"]; - - // On any other status code that's not 5xx mark the upload as failed - if (!statusCode || statusCode < 500 || statusCode >= 600) { - core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); - return false; - } - - // On a 5xx status code we may retry the request - if (attempt < backoffPeriods.length) { - // Log the failure as a warning but don't mark the action as failed yet - core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + - ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + - ' seconds: (' + statusCode + ') ' + await res.readBody()); - // Sleep for the backoff period - await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); - continue; - - } else { - // If the upload fails with 5xx then we assume it is a temporary problem - // and not an error that the user has caused or can fix. - // We avoid marking the job as failed to avoid breaking CI workflows. - core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); - return false; - } + // On a 5xx status code we may retry the request + if (attempt < backoffPeriods.length) { + // Log the failure as a warning but don't mark the action as failed yet + core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + + ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + + ' seconds: (' + statusCode + ') ' + await res.readBody()); + // Sleep for the backoff period + await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); + continue; + + } else { + // If the upload fails with 5xx then we assume it is a temporary problem + // and not an error that the user has caused or can fix. + // We avoid marking the job as failed to avoid breaking CI workflows. + core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + return false; } + } - return false; + return false; } // Uploads a single sarif file or a directory of sarif files // depending on what the path happens to refer to. // Returns true iff the upload occurred and succeeded export async function upload(input: string): Promise { - if (fs.lstatSync(input).isDirectory()) { - const sarifFiles = fs.readdirSync(input) - .filter(f => f.endsWith(".sarif")) - .map(f => path.resolve(input, f)); - if (sarifFiles.length === 0) { - core.setFailed("No SARIF files found to upload in \"" + input + "\"."); - return false; - } - return await uploadFiles(sarifFiles); - } else { - return await uploadFiles([input]); + if (fs.lstatSync(input).isDirectory()) { + const sarifFiles = fs.readdirSync(input) + .filter(f => f.endsWith(".sarif")) + .map(f => path.resolve(input, f)); + if (sarifFiles.length === 0) { + core.setFailed("No SARIF files found to upload in \"" + input + "\"."); + return false; } + return await uploadFiles(sarifFiles); + } else { + return await uploadFiles([input]); + } } // Counts the number of results in the given SARIF file export function countResultsInSarif(sarif: string): number { - let numResults = 0; - for (const run of JSON.parse(sarif).runs) { - numResults += run.results.length; - } - return numResults; + let numResults = 0; + for (const run of JSON.parse(sarif).runs) { + numResults += run.results.length; + } + return numResults; } // Validates that the given file path refers to a valid SARIF file. // Returns a non-empty list of error message if the file is invalid, // otherwise returns the empty list if the file is valid. export function validateSarifFileSchema(sarifFilePath: string): boolean { - const sarif = JSON.parse(fs.readFileSync(sarifFilePath, 'utf8')); - const schema = JSON.parse(fs.readFileSync(__dirname + '/../src/sarif_v2.1.0_schema.json', 'utf8')); - - const result = new jsonschema.Validator().validate(sarif, schema); - if (result.valid) { - return true; - } else { - // Set the failure message to the stacks of all the errors. - // This should be of a manageable size and may even give enough to fix the error. - const errorMessages = result.errors.map(e => "- " + e.stack); - core.setFailed("Unable to upload \"" + sarifFilePath + "\" as it is not valid SARIF:\n" + errorMessages.join("\n")); - - // Also output the more verbose error messages in groups as these may be very large. - for (const error of result.errors) { - core.startGroup("Error details: " + error.stack); - core.info(JSON.stringify(error, null, 2)); - core.endGroup(); - } - - return false; + const sarif = JSON.parse(fs.readFileSync(sarifFilePath, 'utf8')); + const schema = JSON.parse(fs.readFileSync(__dirname + '/../src/sarif_v2.1.0_schema.json', 'utf8')); + + const result = new jsonschema.Validator().validate(sarif, schema); + if (result.valid) { + return true; + } else { + // Set the failure message to the stacks of all the errors. + // This should be of a manageable size and may even give enough to fix the error. + const errorMessages = result.errors.map(e => "- " + e.stack); + core.setFailed("Unable to upload \"" + sarifFilePath + "\" as it is not valid SARIF:\n" + errorMessages.join("\n")); + + // Also output the more verbose error messages in groups as these may be very large. + for (const error of result.errors) { + core.startGroup("Error details: " + error.stack); + core.info(JSON.stringify(error, null, 2)); + core.endGroup(); } + + return false; + } } // Uploads the given set of sarif files. // Returns true iff the upload occurred and succeeded async function uploadFiles(sarifFiles: string[]): Promise { - core.startGroup("Uploading results"); - core.info("Uploading sarif files: " + JSON.stringify(sarifFiles)); + core.startGroup("Uploading results"); + core.info("Uploading sarif files: " + JSON.stringify(sarifFiles)); - const sentinelEnvVar = "CODEQL_UPLOAD_SARIF"; - if (process.env[sentinelEnvVar]) { - core.error("Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job"); - return false; - } - core.exportVariable(sentinelEnvVar, sentinelEnvVar); - - // Validate that the files we were asked to upload are all valid SARIF files - for (const file of sarifFiles) { - if (!validateSarifFileSchema(file)) { - return false; - } - } - - const commitOid = await util.getCommitOid(); - const workflowRunIDStr = util.getRequiredEnvParam('GITHUB_RUN_ID'); - const ref = util.getRef(); - const analysisKey = await util.getAnalysisKey(); - const analysisName = util.getRequiredEnvParam('GITHUB_WORKFLOW'); - const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT]; - - let sarifPayload = combineSarifFiles(sarifFiles); - sarifPayload = fingerprints.addFingerprints(sarifPayload); - - const zipped_sarif = zlib.gzipSync(sarifPayload).toString('base64'); - let checkoutPath = core.getInput('checkout_path'); - let checkoutURI = fileUrl(checkoutPath); - const workflowRunID = parseInt(workflowRunIDStr, 10); - - if (Number.isNaN(workflowRunID)) { - core.setFailed('GITHUB_RUN_ID must define a non NaN workflow run ID'); - return false; - } + const sentinelEnvVar = "CODEQL_UPLOAD_SARIF"; + if (process.env[sentinelEnvVar]) { + core.error("Aborting upload: only one run of the codeql/analyze or codeql/upload-sarif actions is allowed per job"); + return false; + } + core.exportVariable(sentinelEnvVar, sentinelEnvVar); - let matrix: string | undefined = core.getInput('matrix'); - if (matrix === "null" || matrix === "") { - matrix = undefined; + // Validate that the files we were asked to upload are all valid SARIF files + for (const file of sarifFiles) { + if (!validateSarifFileSchema(file)) { + return false; } + } - const toolNames = util.getToolNames(sarifPayload); + const commitOid = await util.getCommitOid(); + const workflowRunIDStr = util.getRequiredEnvParam('GITHUB_RUN_ID'); + const ref = util.getRef(); + const analysisKey = await util.getAnalysisKey(); + const analysisName = util.getRequiredEnvParam('GITHUB_WORKFLOW'); + const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT]; - const payload = JSON.stringify({ - "commit_oid": commitOid, - "ref": ref, - "analysis_key": analysisKey, - "analysis_name": analysisName, - "sarif": zipped_sarif, - "workflow_run_id": workflowRunID, - "checkout_uri": checkoutURI, - "environment": matrix, - "started_at": startedAt, - "tool_names": toolNames, - }); + let sarifPayload = combineSarifFiles(sarifFiles); + sarifPayload = fingerprints.addFingerprints(sarifPayload); - // Log some useful debug info about the info - core.debug("Raw upload size: " + sarifPayload.length + " bytes"); - core.debug("Base64 zipped upload size: " + zipped_sarif.length + " bytes"); - core.debug("Number of results in upload: " + countResultsInSarif(sarifPayload)); + const zipped_sarif = zlib.gzipSync(sarifPayload).toString('base64'); + let checkoutPath = core.getInput('checkout_path'); + let checkoutURI = fileUrl(checkoutPath); + const workflowRunID = parseInt(workflowRunIDStr, 10); - // Make the upload - const succeeded = await uploadPayload(payload); - - core.endGroup(); - - return succeeded; + if (Number.isNaN(workflowRunID)) { + core.setFailed('GITHUB_RUN_ID must define a non NaN workflow run ID'); + return false; + } + + let matrix: string | undefined = core.getInput('matrix'); + if (matrix === "null" || matrix === "") { + matrix = undefined; + } + + const toolNames = util.getToolNames(sarifPayload); + + const payload = JSON.stringify({ + "commit_oid": commitOid, + "ref": ref, + "analysis_key": analysisKey, + "analysis_name": analysisName, + "sarif": zipped_sarif, + "workflow_run_id": workflowRunID, + "checkout_uri": checkoutURI, + "environment": matrix, + "started_at": startedAt, + "tool_names": toolNames, + }); + + // Log some useful debug info about the info + core.debug("Raw upload size: " + sarifPayload.length + " bytes"); + core.debug("Base64 zipped upload size: " + zipped_sarif.length + " bytes"); + core.debug("Number of results in upload: " + countResultsInSarif(sarifPayload)); + + // Make the upload + const succeeded = await uploadPayload(payload); + + core.endGroup(); + + return succeeded; } diff --git a/src/upload-sarif.ts b/src/upload-sarif.ts index 418769c27..8d3aada6d 100644 --- a/src/upload-sarif.ts +++ b/src/upload-sarif.ts @@ -4,24 +4,24 @@ import * as upload_lib from './upload-lib'; import * as util from './util'; async function run() { - if (util.should_abort('upload-sarif', false) || !await util.reportActionStarting('upload-sarif')) { - return; - } + if (util.should_abort('upload-sarif', false) || !await util.reportActionStarting('upload-sarif')) { + return; + } - try { - if (await upload_lib.upload(core.getInput('sarif_file'))) { - await util.reportActionSucceeded('upload-sarif'); - } else { - await util.reportActionFailed('upload-sarif', 'upload'); - } - } catch (error) { - core.setFailed(error.message); - await util.reportActionFailed('upload-sarif', error.message, error.stack); - return; + try { + if (await upload_lib.upload(core.getInput('sarif_file'))) { + await util.reportActionSucceeded('upload-sarif'); + } else { + await util.reportActionFailed('upload-sarif', 'upload'); } + } catch (error) { + core.setFailed(error.message); + await util.reportActionFailed('upload-sarif', error.message, error.stack); + return; + } } run().catch(e => { - core.setFailed("codeql/upload-sarif action failed: " + e); - console.log(e); + core.setFailed("codeql/upload-sarif action failed: " + e); + console.log(e); }); diff --git a/src/util.ts b/src/util.ts index eb62441a1..a32bdac9b 100644 --- a/src/util.ts +++ b/src/util.ts @@ -19,81 +19,81 @@ import * as sharedEnv from './shared-environment'; */ export function should_abort(actionName: string, requireInitActionHasRun: boolean): boolean { - // Check that required aspects of the environment are present - const ref = process.env['GITHUB_REF']; - if (ref === undefined) { - core.setFailed('GITHUB_REF must be set.'); - return true; - } + // Check that required aspects of the environment are present + const ref = process.env['GITHUB_REF']; + if (ref === undefined) { + core.setFailed('GITHUB_REF must be set.'); + return true; + } - // If the init action is required, then check the it completed successfully. - if (requireInitActionHasRun && process.env[sharedEnv.CODEQL_ACTION_INIT_COMPLETED] === undefined) { - core.setFailed('The CodeQL ' + actionName + ' action cannot be used unless the CodeQL init action is run first. Aborting.'); - return true; - } + // If the init action is required, then check the it completed successfully. + if (requireInitActionHasRun && process.env[sharedEnv.CODEQL_ACTION_INIT_COMPLETED] === undefined) { + core.setFailed('The CodeQL ' + actionName + ' action cannot be used unless the CodeQL init action is run first. Aborting.'); + return true; + } - return false; + return false; } /** * Get an environment parameter, but throw an error if it is not set. */ export function getRequiredEnvParam(paramName: string): string { - const value = process.env[paramName]; - if (value === undefined) { - throw new Error(paramName + ' environment variable must be set'); - } - core.debug(paramName + '=' + value); - return value; + const value = process.env[paramName]; + if (value === undefined) { + throw new Error(paramName + ' environment variable must be set'); + } + core.debug(paramName + '=' + value); + return value; } /** * Gets the set of languages in the current repository */ async function getLanguagesInRepo(): Promise { - // Translate between GitHub's API names for languages and ours - const codeqlLanguages = { - 'C': 'cpp', - 'C++': 'cpp', - 'C#': 'csharp', - 'Go': 'go', - 'Java': 'java', - 'JavaScript': 'javascript', - 'TypeScript': 'javascript', - 'Python': 'python', - }; - let repo_nwo = process.env['GITHUB_REPOSITORY']?.split("/"); - if (repo_nwo) { - let owner = repo_nwo[0]; - let repo = repo_nwo[1]; - - core.debug(`GitHub repo ${owner} ${repo}`); - let ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: consoleLogLevel({ level: "debug" }) - }); - const response = await ok.request("GET /repos/:owner/:repo/languages", ({ - owner, - repo - })); - - core.debug("Languages API response: " + JSON.stringify(response)); - - // The GitHub API is going to return languages in order of popularity, - // When we pick a language to autobuild we want to pick the most popular traced language - // Since sets in javascript maintain insertion order, using a set here and then splatting it - // into an array gives us an array of languages ordered by popularity - let languages: Set = new Set(); - for (let lang in response.data) { - if (lang in codeqlLanguages) { - languages.add(codeqlLanguages[lang]); - } - } - return [...languages]; - } else { - return []; + // Translate between GitHub's API names for languages and ours + const codeqlLanguages = { + 'C': 'cpp', + 'C++': 'cpp', + 'C#': 'csharp', + 'Go': 'go', + 'Java': 'java', + 'JavaScript': 'javascript', + 'TypeScript': 'javascript', + 'Python': 'python', + }; + let repo_nwo = process.env['GITHUB_REPOSITORY']?.split("/"); + if (repo_nwo) { + let owner = repo_nwo[0]; + let repo = repo_nwo[1]; + + core.debug(`GitHub repo ${owner} ${repo}`); + let ok = new octokit.Octokit({ + auth: core.getInput('token'), + userAgent: "CodeQL Action", + log: consoleLogLevel({ level: "debug" }) + }); + const response = await ok.request("GET /repos/:owner/:repo/languages", ({ + owner, + repo + })); + + core.debug("Languages API response: " + JSON.stringify(response)); + + // The GitHub API is going to return languages in order of popularity, + // When we pick a language to autobuild we want to pick the most popular traced language + // Since sets in javascript maintain insertion order, using a set here and then splatting it + // into an array gives us an array of languages ordered by popularity + let languages: Set = new Set(); + for (let lang in response.data) { + if (lang in codeqlLanguages) { + languages.add(codeqlLanguages[lang]); + } } + return [...languages]; + } else { + return []; + } } /** @@ -110,71 +110,71 @@ async function getLanguagesInRepo(): Promise { */ export async function getLanguages(): Promise { - // Obtain from CODEQL_ACTION_LANGUAGES if set - const langsVar = process.env[sharedEnv.CODEQL_ACTION_LANGUAGES]; - if (langsVar) { - return langsVar.split(',') - .map(x => x.trim()) - .filter(x => x.length > 0); - } - // Obtain from action input 'languages' if set - let languages = core.getInput('languages', { required: false }) - .split(',') - .map(x => x.trim()) - .filter(x => x.length > 0); - core.info("Languages from configuration: " + JSON.stringify(languages)); - - if (languages.length === 0) { - // Obtain languages as all languages in the repo that can be analysed - languages = await getLanguagesInRepo(); - core.info("Automatically detected languages: " + JSON.stringify(languages)); - } - - core.exportVariable(sharedEnv.CODEQL_ACTION_LANGUAGES, languages.join(',')); - - return languages; + // Obtain from CODEQL_ACTION_LANGUAGES if set + const langsVar = process.env[sharedEnv.CODEQL_ACTION_LANGUAGES]; + if (langsVar) { + return langsVar.split(',') + .map(x => x.trim()) + .filter(x => x.length > 0); + } + // Obtain from action input 'languages' if set + let languages = core.getInput('languages', { required: false }) + .split(',') + .map(x => x.trim()) + .filter(x => x.length > 0); + core.info("Languages from configuration: " + JSON.stringify(languages)); + + if (languages.length === 0) { + // Obtain languages as all languages in the repo that can be analysed + languages = await getLanguagesInRepo(); + core.info("Automatically detected languages: " + JSON.stringify(languages)); + } + + core.exportVariable(sharedEnv.CODEQL_ACTION_LANGUAGES, languages.join(',')); + + return languages; } /** * Gets the SHA of the commit that is currently checked out. */ export async function getCommitOid(): Promise { - let commitOid = ''; - await exec.exec('git', ['rev-parse', 'HEAD'], { - silent: true, - listeners: { - stdout: (data) => { commitOid += data.toString(); }, - stderr: (data) => { process.stderr.write(data); } - } - }); - return commitOid.trim(); + let commitOid = ''; + await exec.exec('git', ['rev-parse', 'HEAD'], { + silent: true, + listeners: { + stdout: (data) => { commitOid += data.toString(); }, + stderr: (data) => { process.stderr.write(data); } + } + }); + return commitOid.trim(); } /** * Get the path of the currently executing workflow. */ async function getWorkflowPath(): Promise { - const repo_nwo = getRequiredEnvParam('GITHUB_REPOSITORY').split("/"); - const owner = repo_nwo[0]; - const repo = repo_nwo[1]; - const run_id = getRequiredEnvParam('GITHUB_RUN_ID'); - - const ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: consoleLogLevel({ level: 'debug' }) - }); - - const runsResponse = await ok.request('GET /repos/:owner/:repo/actions/runs/:run_id', { - owner, - repo, - run_id - }); - const workflowUrl = runsResponse.data.workflow_url; - - const workflowResponse = await ok.request('GET ' + workflowUrl); - - return workflowResponse.data.path; + const repo_nwo = getRequiredEnvParam('GITHUB_REPOSITORY').split("/"); + const owner = repo_nwo[0]; + const repo = repo_nwo[1]; + const run_id = getRequiredEnvParam('GITHUB_RUN_ID'); + + const ok = new octokit.Octokit({ + auth: core.getInput('token'), + userAgent: "CodeQL Action", + log: consoleLogLevel({ level: 'debug' }) + }); + + const runsResponse = await ok.request('GET /repos/:owner/:repo/actions/runs/:run_id', { + owner, + repo, + run_id + }); + const workflowUrl = runsResponse.data.workflow_url; + + const workflowResponse = await ok.request('GET ' + workflowUrl); + + return workflowResponse.data.path; } /** @@ -185,54 +185,54 @@ async function getWorkflowPath(): Promise { * the github API, but after that the result will be cached. */ export async function getAnalysisKey(): Promise { - let analysisKey = process.env[sharedEnv.CODEQL_ACTION_ANALYSIS_KEY]; - if (analysisKey !== undefined) { - return analysisKey; - } + let analysisKey = process.env[sharedEnv.CODEQL_ACTION_ANALYSIS_KEY]; + if (analysisKey !== undefined) { + return analysisKey; + } - const workflowPath = await getWorkflowPath(); - const jobName = getRequiredEnvParam('GITHUB_JOB'); + const workflowPath = await getWorkflowPath(); + const jobName = getRequiredEnvParam('GITHUB_JOB'); - analysisKey = workflowPath + ':' + jobName; - core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey); - return analysisKey; + analysisKey = workflowPath + ':' + jobName; + core.exportVariable(sharedEnv.CODEQL_ACTION_ANALYSIS_KEY, analysisKey); + return analysisKey; } /** * Get the ref currently being analyzed. */ export function getRef(): string { - // Will be in the form "refs/heads/master" on a push event - // or in the form "refs/pull/N/merge" on a pull_request event - const ref = getRequiredEnvParam('GITHUB_REF'); - - // For pull request refs we want to convert from the 'merge' ref - // to the 'head' ref, as that is what we want to analyse. - // There should have been some code earlier in the workflow to do - // the checkout, but we have no way of verifying that here. - const pull_ref_regex = /refs\/pull\/(\d+)\/merge/; - if (pull_ref_regex.test(ref)) { - return ref.replace(pull_ref_regex, 'refs/pull/$1/head'); - } else { - return ref; - } + // Will be in the form "refs/heads/master" on a push event + // or in the form "refs/pull/N/merge" on a pull_request event + const ref = getRequiredEnvParam('GITHUB_REF'); + + // For pull request refs we want to convert from the 'merge' ref + // to the 'head' ref, as that is what we want to analyse. + // There should have been some code earlier in the workflow to do + // the checkout, but we have no way of verifying that here. + const pull_ref_regex = /refs\/pull\/(\d+)\/merge/; + if (pull_ref_regex.test(ref)) { + return ref.replace(pull_ref_regex, 'refs/pull/$1/head'); + } else { + return ref; + } } interface StatusReport { - "workflow_run_id": number; - "workflow_name": string; - "job_name": string; - "matrix_vars"?: string; - "languages": string; - "commit_oid": string; - "ref": string; - "action_name": string; - "action_oid": string; - "started_at": string; - "completed_at"?: string; - "status": string; - "cause"?: string; - "exception"?: string; + "workflow_run_id": number; + "workflow_name": string; + "job_name": string; + "matrix_vars"?: string; + "languages": string; + "commit_oid": string; + "ref": string; + "action_name": string; + "action_oid": string; + "started_at": string; + "completed_at"?: string; + "status": string; + "cause"?: string; + "exception"?: string; } /** @@ -244,54 +244,54 @@ interface StatusReport { * @param exception Exception (only supply if status is 'failure') */ async function createStatusReport( - actionName: string, - status: string, - cause?: string, - exception?: string): - Promise { - - const commitOid = process.env['GITHUB_SHA'] || ''; - const ref = getRef(); - const workflowRunIDStr = process.env['GITHUB_RUN_ID']; - let workflowRunID = -1; - if (workflowRunIDStr) { - workflowRunID = parseInt(workflowRunIDStr, 10); - } - const workflowName = process.env['GITHUB_WORKFLOW'] || ''; - const jobName = process.env['GITHUB_JOB'] || ''; - const languages = (await getLanguages()).sort().join(','); - const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString(); - core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt); - - let statusReport: StatusReport = { - workflow_run_id: workflowRunID, - workflow_name: workflowName, - job_name: jobName, - languages: languages, - commit_oid: commitOid, - ref: ref, - action_name: actionName, - action_oid: "unknown", // TODO decide if it's possible to fill this in - started_at: startedAt, - status: status - }; - - // Add optional parameters - if (cause) { - statusReport.cause = cause; - } - if (exception) { - statusReport.exception = exception; - } - if (status === 'success' || status === 'failure') { - statusReport.completed_at = new Date().toISOString(); - } - let matrix: string | undefined = core.getInput('matrix'); - if (matrix) { - statusReport.matrix_vars = matrix; - } - - return statusReport; + actionName: string, + status: string, + cause?: string, + exception?: string): + Promise { + + const commitOid = process.env['GITHUB_SHA'] || ''; + const ref = getRef(); + const workflowRunIDStr = process.env['GITHUB_RUN_ID']; + let workflowRunID = -1; + if (workflowRunIDStr) { + workflowRunID = parseInt(workflowRunIDStr, 10); + } + const workflowName = process.env['GITHUB_WORKFLOW'] || ''; + const jobName = process.env['GITHUB_JOB'] || ''; + const languages = (await getLanguages()).sort().join(','); + const startedAt = process.env[sharedEnv.CODEQL_ACTION_STARTED_AT] || new Date().toISOString(); + core.exportVariable(sharedEnv.CODEQL_ACTION_STARTED_AT, startedAt); + + let statusReport: StatusReport = { + workflow_run_id: workflowRunID, + workflow_name: workflowName, + job_name: jobName, + languages: languages, + commit_oid: commitOid, + ref: ref, + action_name: actionName, + action_oid: "unknown", // TODO decide if it's possible to fill this in + started_at: startedAt, + status: status + }; + + // Add optional parameters + if (cause) { + statusReport.cause = cause; + } + if (exception) { + statusReport.exception = exception; + } + if (status === 'success' || status === 'failure') { + statusReport.completed_at = new Date().toISOString(); + } + let matrix: string | undefined = core.getInput('matrix'); + if (matrix) { + statusReport.matrix_vars = matrix; + } + + return statusReport; } /** @@ -302,18 +302,18 @@ async function createStatusReport( * received. */ async function sendStatusReport(statusReport: StatusReport): Promise { - const statusReportJSON = JSON.stringify(statusReport); + const statusReportJSON = JSON.stringify(statusReport); - core.debug('Sending status report: ' + statusReportJSON); + core.debug('Sending status report: ' + statusReportJSON); - const githubToken = core.getInput('token'); - const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Status Report', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] - + '/code-scanning/analysis/status'; - const res: http.HttpClientResponse = await client.put(url, statusReportJSON); + const githubToken = core.getInput('token'); + const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); + const client = new http.HttpClient('Code Scanning : Status Report', [ph]); + const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] + + '/code-scanning/analysis/status'; + const res: http.HttpClientResponse = await client.put(url, statusReportJSON); - return res.message?.statusCode; + return res.message?.statusCode; } /** @@ -325,24 +325,24 @@ async function sendStatusReport(statusReport: StatusReport): Promise { - const statusCode = await sendStatusReport(await createStatusReport(action, 'starting')); - - // If the status report request fails with a 403 or a 404, then this is a deliberate - // message from the endpoint that the SARIF upload can be expected to fail too, - // so the action should fail to avoid wasting actions minutes. - // - // Other failure responses (or lack thereof) could be transitory and should not - // cause the action to fail. - if (statusCode === 403) { - core.setFailed('The repo on which this action is running is not opted-in to CodeQL code scanning.'); - return false; - } - if (statusCode === 404) { - core.setFailed('Not authorized to used the CodeQL code scanning feature on this repo.'); - return false; - } + const statusCode = await sendStatusReport(await createStatusReport(action, 'starting')); + + // If the status report request fails with a 403 or a 404, then this is a deliberate + // message from the endpoint that the SARIF upload can be expected to fail too, + // so the action should fail to avoid wasting actions minutes. + // + // Other failure responses (or lack thereof) could be transitory and should not + // cause the action to fail. + if (statusCode === 403) { + core.setFailed('The repo on which this action is running is not opted-in to CodeQL code scanning.'); + return false; + } + if (statusCode === 404) { + core.setFailed('Not authorized to used the CodeQL code scanning feature on this repo.'); + return false; + } - return true; + return true; } /** @@ -352,7 +352,7 @@ export async function reportActionStarting(action: string): Promise { * this is likely to give a more useful duration when inspecting events. */ export async function reportActionFailed(action: string, cause?: string, exception?: string) { - await sendStatusReport(await createStatusReport(action, 'failure', cause, exception)); + await sendStatusReport(await createStatusReport(action, 'failure', cause, exception)); } /** @@ -362,7 +362,7 @@ export async function reportActionFailed(action: string, cause?: string, excepti * this is likely to give a more useful duration when inspecting events. */ export async function reportActionSucceeded(action: string) { - await sendStatusReport(await createStatusReport(action, 'success')); + await sendStatusReport(await createStatusReport(action, 'success')); } /** @@ -371,27 +371,27 @@ export async function reportActionSucceeded(action: string) { * Returns an array of unique string tool names. */ export function getToolNames(sarifContents: string): string[] { - const sarif = JSON.parse(sarifContents); - const toolNames = {}; - - for (const run of sarif.runs || []) { - const tool = run.tool || {}; - const driver = tool.driver || {}; - if (typeof driver.name === "string" && driver.name.length > 0) { - toolNames[driver.name] = true; - } + const sarif = JSON.parse(sarifContents); + const toolNames = {}; + + for (const run of sarif.runs || []) { + const tool = run.tool || {}; + const driver = tool.driver || {}; + if (typeof driver.name === "string" && driver.name.length > 0) { + toolNames[driver.name] = true; } + } - return Object.keys(toolNames); + return Object.keys(toolNames); } // Creates a random temporary directory, runs the given body, and then deletes the directory. // Mostly intended for use within tests. export async function withTmpDir(body: (tmpDir: string) => Promise): Promise { - const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codeql-action-')); - const result = await body(tmpDir); - fs.rmdirSync(tmpDir, { recursive: true }); - return result; + const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codeql-action-')); + const result = await body(tmpDir); + fs.rmdirSync(tmpDir, { recursive: true }); + return result; } /** @@ -401,20 +401,20 @@ export async function withTmpDir(body: (tmpDir: string) => Promise): Promi * @returns string */ export function getMemoryFlag(): string { - let memoryToUseMegaBytes: number; - const memoryToUseString = core.getInput("ram"); - if (memoryToUseString) { - memoryToUseMegaBytes = Number(memoryToUseString); - if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { - throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); - } - } else { - const totalMemoryBytes = os.totalmem(); - const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); - const systemReservedMemoryMegaBytes = 256; - memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; + let memoryToUseMegaBytes: number; + const memoryToUseString = core.getInput("ram"); + if (memoryToUseString) { + memoryToUseMegaBytes = Number(memoryToUseString); + if (Number.isNaN(memoryToUseMegaBytes) || memoryToUseMegaBytes <= 0) { + throw new Error("Invalid RAM setting \"" + memoryToUseString + "\", specified."); } - return "--ram=" + Math.floor(memoryToUseMegaBytes); + } else { + const totalMemoryBytes = os.totalmem(); + const totalMemoryMegaBytes = totalMemoryBytes / (1024 * 1024); + const systemReservedMemoryMegaBytes = 256; + memoryToUseMegaBytes = totalMemoryMegaBytes - systemReservedMemoryMegaBytes; + } + return "--ram=" + Math.floor(memoryToUseMegaBytes); } /** @@ -424,21 +424,21 @@ export function getMemoryFlag(): string { * @returns string */ export function getThreadsFlag(): string { - let numThreads = 1; - const numThreadsString = core.getInput("threads"); - if (numThreadsString) { - numThreads = Number(numThreadsString); - if (Number.isNaN(numThreads)) { - throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); - } - const maxThreads = os.cpus().length; - if (numThreads > maxThreads) { - numThreads = maxThreads; - } - const minThreads = -maxThreads; - if (numThreads < minThreads) { - numThreads = minThreads; - } + let numThreads = 1; + const numThreadsString = core.getInput("threads"); + if (numThreadsString) { + numThreads = Number(numThreadsString); + if (Number.isNaN(numThreads)) { + throw new Error(`Invalid threads setting "${numThreadsString}", specified.`); + } + const maxThreads = os.cpus().length; + if (numThreads > maxThreads) { + numThreads = maxThreads; + } + const minThreads = -maxThreads; + if (numThreads < minThreads) { + numThreads = minThreads; } - return `--threads=${numThreads}`; + } + return `--threads=${numThreads}`; } From 107d8ffc4c8a552266f83ef22a3dcad641ae53b5 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 14:22:32 +0100 Subject: [PATCH 21/38] Fix a line that's too long. --- lib/setup-tracer.js | 8 +++++++- lib/setup-tracer.js.map | 2 +- src/setup-tracer.ts | 8 +++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/lib/setup-tracer.js b/lib/setup-tracer.js index 074ee97df..28902a121 100644 --- a/lib/setup-tracer.js +++ b/lib/setup-tracer.js @@ -165,7 +165,13 @@ async function run() { for (let language of languages) { const languageDatabase = path.join(databaseFolder, language); // Init language database - await exec.exec(codeqlSetup.cmd, ['database', 'init', languageDatabase, '--language=' + language, '--source-root=' + sourceRoot]); + await exec.exec(codeqlSetup.cmd, [ + 'database', + 'init', + languageDatabase, + '--language=' + language, + '--source-root=' + sourceRoot, + ]); // TODO: add better detection of 'traced languages' instead of using a hard coded list if (['cpp', 'java', 'csharp'].includes(language)) { const config = await tracerConfig(codeqlSetup, languageDatabase); diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index dd643ffac..90eb3c952 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,CAAC,yBAAyB;IACxB,AADyB;IACvB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC7B,CAAC,CAAC;AAEL,KAAK,UAAU,YAAY,CACzB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC3D,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ;QAChE,GAAG,eAAe;QAClB,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,OAAO,CAAC,CACrE,CAAC;IAEF,MAAM,GAAG,GAA8B,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAErF,MAAM,MAAM,GAAG,GAAG,CAAC,4BAA4B,CAAC,CAAC;IACjD,MAAM,IAAI,GAAiB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;IAErD,yDA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B,EAAE,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5F,iEAAiE;QACjE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;QAC1E,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAEnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACR;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file +{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,CAAC,yBAAyB;IACxB,AADyB;IACvB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC7B,CAAC,CAAC;AAEL,KAAK,UAAU,YAAY,CAC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,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index 9cc3b3e6c..2c32268a0 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -193,7 +193,13 @@ async function run() { const languageDatabase = path.join(databaseFolder, language); // Init language database - await exec.exec(codeqlSetup.cmd, ['database', 'init', languageDatabase, '--language=' + language, '--source-root=' + sourceRoot]); + await exec.exec(codeqlSetup.cmd, [ + 'database', + 'init', + languageDatabase, + '--language=' + language, + '--source-root=' + sourceRoot, + ]); // TODO: add better detection of 'traced languages' instead of using a hard coded list if (['cpp', 'java', 'csharp'].includes(language)) { const config: TracerConfig = await tracerConfig(codeqlSetup, languageDatabase); From 052d39e909535fc4c10b127eb7051ca05deb2bd7 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 14:22:56 +0100 Subject: [PATCH 22/38] Fix some strange formatting. --- lib/setup-tracer.js | 6 ++++-- lib/setup-tracer.js.map | 2 +- src/setup-tracer.ts | 6 ++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/setup-tracer.js b/lib/setup-tracer.js index 28902a121..1f064a2af 100644 --- a/lib/setup-tracer.js +++ b/lib/setup-tracer.js @@ -193,8 +193,10 @@ async function run() { core.exportVariable('DYLD_INSERT_LIBRARIES', path.join(codeqlSetup.tools, 'osx64', 'libtrace.dylib')); } else if (process.platform === 'win32') { - await exec.exec('powershell', [path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), - path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe')], { env: { 'ODASA_TRACER_CONFIGURATION': mainTracerConfig.spec } }); + await exec.exec('powershell', [ + path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), + path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe'), + ], { env: { 'ODASA_TRACER_CONFIGURATION': mainTracerConfig.spec } }); } else { core.exportVariable('LD_PRELOAD', path.join(codeqlSetup.tools, 'linux64', '${LIB}trace.so')); diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 90eb3c952..a70da7ff6 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,CAAC,yBAAyB;IACxB,AADyB;IACvB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC7B,CAAC,CAAC;AAEL,KAAK,UAAU,YAAY,CACzB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC3D,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ;QAChE,GAAG,eAAe;QAClB,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,O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cAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAEnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACR;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index 2c32268a0..a72140648 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -224,8 +224,10 @@ async function run() { } else if (process.platform === 'win32') { await exec.exec( 'powershell', - [path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), - path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe')], + [ + path.resolve(__dirname, '..', 'src', 'inject-tracer.ps1'), + path.resolve(codeqlSetup.tools, 'win64', 'tracer.exe'), + ], { env: { 'ODASA_TRACER_CONFIGURATION': mainTracerConfig.spec } }); } else { core.exportVariable('LD_PRELOAD', path.join(codeqlSetup.tools, 'linux64', '${LIB}trace.so')); From 852d99d8e2aa0aaf3ed817d5cebeb5a36956cb4a Mon Sep 17 00:00:00 2001 From: Nick Rolfe Date: Tue, 23 Jun 2020 13:56:20 +0100 Subject: [PATCH 23/38] Call codeql.exe rather than codeql.cmd wrapper on Windows --- lib/setup-tools.js | 2 +- src/setup-tools.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/setup-tools.js b/lib/setup-tools.js index c86581fd2..ee11fbf2c 100644 --- a/lib/setup-tools.js +++ b/lib/setup-tools.js @@ -20,7 +20,7 @@ class CodeQLSetup { if (process.platform === 'win32') { this.platform = 'win64'; if (this.cmd.endsWith('codeql')) { - this.cmd += ".cmd"; + this.cmd += ".exe"; } } else if (process.platform === 'linux') { diff --git a/src/setup-tools.ts b/src/setup-tools.ts index 2ed64c21a..3e8f3423c 100644 --- a/src/setup-tools.ts +++ b/src/setup-tools.ts @@ -17,7 +17,7 @@ export class CodeQLSetup { if (process.platform === 'win32') { this.platform = 'win64'; if (this.cmd.endsWith('codeql')) { - this.cmd += ".cmd"; + this.cmd += ".exe"; } } else if (process.platform === 'linux') { this.platform = 'linux64'; From 52e52435f75b99055a91c23ed6489f41cc43ea3c Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 17:17:11 +0100 Subject: [PATCH 24/38] handle Uint8Array --- lib/testing-utils.js | 23 ++++++++++++++++++++--- lib/testing-utils.js.map | 2 +- src/testing-utils.ts | 29 ++++++++++++++++++++++++----- 3 files changed, 45 insertions(+), 9 deletions(-) diff --git a/lib/testing-utils.js b/lib/testing-utils.js index e1659282a..32d9f6142 100644 --- a/lib/testing-utils.js +++ b/lib/testing-utils.js @@ -1,9 +1,26 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function wrapOutput(context) { - return (str) => { - if (typeof str === 'string') { - context.testOutput += str; + // Function signature taken from Socket.write. + // Note there are two overloads: + // write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; + // write(str: Uint8Array | string, encoding?: string, cb?: (err?: Error) => void): boolean; + return (chunk, encoding, cb) => { + // Work out which method overload we are in + if (cb === undefined && typeof encoding === 'function') { + cb = encoding; + encoding = undefined; + } + // Record the output + if (typeof chunk === 'string') { + context.testOutput += chunk; + } + else { + context.testOutput += new TextDecoder(encoding || 'utf-8').decode(chunk); + } + // Satisfy contract by calling callback when done + if (cb !== undefined && typeof cb === 'function') { + cb(); } return true; }; diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index a27fa46cb..cc691d2ba 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAIA,SAAS,UAAU,CAAC,OAAoB;IACtC,OAAO,CAAC,GAAQ,EAAW,EAAE;QAC3B,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;YAC3B,OAAO,CAAC,UAAU,IAAI,GAAG,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAwB;IACzD,MAAM,SAAS,GAAG,IAAkC,CAAC;IAErD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACrB,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE,CAAC;QAE1B,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;QAE7C,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IACjD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAA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C,EAAE;QACrB,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE,CAAC;QAE1B,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAQ,CAAC;QAEpD,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAQ,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;QAC3B,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAE7C,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;YACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC5C;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/src/testing-utils.ts b/src/testing-utils.ts index 2a72b6034..7334ca1a5 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -3,10 +3,29 @@ import {TestInterface} from 'ava'; type TestContext = {stdoutWrite: any, stderrWrite: any, testOutput: string}; function wrapOutput(context: TestContext) { - return (str: any): boolean => { - if (typeof str === 'string') { - context.testOutput += str; + // Function signature taken from Socket.write. + // Note there are two overloads: + // write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; + // write(str: Uint8Array | string, encoding?: string, cb?: (err?: Error) => void): boolean; + return (chunk: Uint8Array | string, encoding?: string, cb?: (err?: Error) => void): boolean => { + // Work out which method overload we are in + if (cb === undefined && typeof encoding === 'function') { + cb = encoding; + encoding = undefined; } + + // Record the output + if (typeof chunk === 'string') { + context.testOutput += chunk; + } else { + context.testOutput += new TextDecoder(encoding || 'utf-8').decode(chunk); + } + + // Satisfy contract by calling callback when done + if (cb !== undefined && typeof cb === 'function') { + cb(); + } + return true; }; } @@ -19,11 +38,11 @@ export function silenceDebugOutput(test: TestInterface) { const processStdoutWrite = process.stdout.write.bind(process.stdout); t.context.stdoutWrite = processStdoutWrite; - process.stdout.write = wrapOutput(t.context); + process.stdout.write = wrapOutput(t.context) as any; const processStderrWrite = process.stderr.write.bind(process.stderr); t.context.stderrWrite = processStderrWrite; - process.stderr.write = wrapOutput(t.context); + process.stderr.write = wrapOutput(t.context) as any; }); typedTest.afterEach.always(t => { From cb384e776bbf3310b1e6fd71debaaf625b624dcd Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 17:29:15 +0100 Subject: [PATCH 25/38] fix indentation --- lib/testing-utils.js.map | 2 +- src/testing-utils.ts | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/testing-utils.js.map b/lib/testing-utils.js.map index cc691d2ba..efbea80fb 100644 --- a/lib/testing-utils.js.map +++ b/lib/testing-utils.js.map @@ -1 +1 @@ -{"version":3,"file":"testing-utils.js","sourceRoot":"","sources":["../src/testing-utils.ts"],"names":[],"mappings":";;AAIA,SAAS,UAAU,CAAC,OAAoB;IACtC,8CAA8C;IAC9C,gCAAgC;IAChC,2EAA2E;IAC3E,2FAA2F;IAC3F,OAAO,CAAC,KAA0B,EAAE,QAAiB,EAAE,EAA0B,EAAW,EAAE;QAC5F,2CAA2C;QAC3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;IAErD,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;QACvB,CAAC,CAAC,OAAO,CAAC,UAAU,GAAG,EAAE,CAAC;QAE1B,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAQ,CAAC;QAEpD,MAAM,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,CAAC,CAAC,OAAO,CAAC,WAAW,GAAG,kBAAkB,CAAC;QAC3C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,UAAU,CAAC,CAAC,CAAC,OAAO,CAAQ,CAAC;IACtD,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;QAC7B,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAC7C,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;QAE7C,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE;YACb,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SAC5C;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/src/testing-utils.ts b/src/testing-utils.ts index 7334ca1a5..75d32e06d 100644 --- a/src/testing-utils.ts +++ b/src/testing-utils.ts @@ -34,23 +34,23 @@ export function silenceDebugOutput(test: TestInterface) { const typedTest = test as TestInterface; typedTest.beforeEach(t => { - t.context.testOutput = ""; + t.context.testOutput = ""; - const processStdoutWrite = process.stdout.write.bind(process.stdout); - t.context.stdoutWrite = processStdoutWrite; - process.stdout.write = wrapOutput(t.context) as any; + const processStdoutWrite = process.stdout.write.bind(process.stdout); + t.context.stdoutWrite = processStdoutWrite; + process.stdout.write = wrapOutput(t.context) as any; - const processStderrWrite = process.stderr.write.bind(process.stderr); - t.context.stderrWrite = processStderrWrite; - process.stderr.write = wrapOutput(t.context) as any; + const processStderrWrite = process.stderr.write.bind(process.stderr); + t.context.stderrWrite = processStderrWrite; + process.stderr.write = wrapOutput(t.context) as any; }); typedTest.afterEach.always(t => { - process.stdout.write = t.context.stdoutWrite; - process.stderr.write = t.context.stderrWrite; + process.stdout.write = t.context.stdoutWrite; + process.stderr.write = t.context.stderrWrite; - if (!t.passed) { - process.stdout.write(t.context.testOutput); - } + if (!t.passed) { + process.stdout.write(t.context.testOutput); + } }); } From af252d2f0d0da964e80d1c09f310f1689f220a05 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Tue, 23 Jun 2020 18:36:08 +0200 Subject: [PATCH 26/38] report action has aborted --- lib/setup-tracer.js | 15 +++++++++++---- lib/setup-tracer.js.map | 2 +- lib/util.js | 10 ++++++++++ lib/util.js.map | 2 +- src/setup-tracer.ts | 22 +++++++++++++++------- src/util.ts | 10 ++++++++++ 6 files changed, 48 insertions(+), 13 deletions(-) diff --git a/lib/setup-tracer.js b/lib/setup-tracer.js index 074ee97df..70dcbf2fb 100644 --- a/lib/setup-tracer.js +++ b/lib/setup-tracer.js @@ -127,22 +127,29 @@ function concatTracerConfigs(configs) { return { env, spec }; } async function run() { + let languages; try { if (util.should_abort('init', false) || !await util.reportActionStarting('init')) { return; } - // The config file MUST be parsed in the init action - const config = await configUtils.loadConfig(); core.startGroup('Load language configuration'); - const languages = await util.getLanguages(); + const config = await configUtils.loadConfig(); + languages = await util.getLanguages(); // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. if (languages.length === 0) { core.setFailed("Did not detect any languages to analyze. Please update input in workflow."); return; } - core.endGroup(); analysisPaths.includeAndExcludeAnalysisPaths(config, languages); + core.endGroup(); + } + catch (e) { + core.setFailed(e.message); + await util.reportActionAborted('init', e.message); + return; + } + try { const sourceRoot = path.resolve(); core.startGroup('Setup CodeQL tools'); const codeqlSetup = await setuptools.setupCodeQL(); diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 22ce2bf7e..17bd68ba3 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAChC,CAAC,yBAAyB;IACtB,AADuB;IACrB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC/B,CAAC,CAAC;AAEP,KAAK,UAAU,YAAY,CACvB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC3D,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ;QAC9D,GAAG,eAAe;QAClB,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,OAAO,CAAC,CACvE,C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EAAE,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5F,iEAAiE;QACjE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;QAC1E,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAErE;IAAC,OAAO,KAAK,EAAE;QACZ,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACV;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACxE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACZ,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index f200754ba..ac617d26b 100644 --- a/lib/util.js +++ b/lib/util.js @@ -327,6 +327,16 @@ async function reportActionSucceeded(action) { await sendStatusReport(await createStatusReport(action, 'success')); } exports.reportActionSucceeded = reportActionSucceeded; +/** + * Report that an action has been aborted. + * + * Note that the started_at date is always that of the `init` action, since + * this is likely to give a more useful duration when inspecting events. + */ +async function reportActionAborted(action, cause) { + await sendStatusReport(await createStatusReport(action, 'abort', cause)); +} +exports.reportActionAborted = reportActionAborted; /** * Get the array of all the tool names contained in the given sarif contents. * diff --git a/lib/util.js.map b/lib/util.js.map index 650954e6a..e80c38c56 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +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ACvC,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;QAC9D,MAAM,6BAA6B,GAAG,GAAG,CAAC;QAC1C,oBAAoB,GAAG,oBAAoB,GAAG,6BAA6B,CAAC;KAC/E;IACD,OAAO,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AACvD,CAAC;AAfD,sCAeC;AAED;;;;;GAKG;AACH,SAAgB,cAAc;IAC1B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,gBAAgB,EAAE;QAClB,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAChF;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YACzB,UAAU,GAAG,UAAU,CAAC;SAC3B;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YACzB,UAAU,GAAG,UAAU,CAAC;SAC3B;KACJ;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACrC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index a97960682..9089b2550 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -139,20 +139,20 @@ function concatTracerConfigs(configs: { [lang: string]: TracerConfig }): TracerC return { env, spec }; } +async function run() { + let languages: string[]; -async function run() { try { if (util.should_abort('init', false) || !await util.reportActionStarting('init')) { return; } - // The config file MUST be parsed in the init action - const config = await configUtils.loadConfig(); - core.startGroup('Load language configuration'); - - const languages = await util.getLanguages(); + + const config = await configUtils.loadConfig(); + + languages = await util.getLanguages(); // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. if (languages.length === 0) { @@ -160,9 +160,17 @@ async function run() { return; } + analysisPaths.includeAndExcludeAnalysisPaths(config, languages); + core.endGroup(); + + } catch (e) { + core.setFailed(e.message); + await util.reportActionAborted('init', e.message, ); + return; + } - analysisPaths.includeAndExcludeAnalysisPaths(config, languages); + try { const sourceRoot = path.resolve(); diff --git a/src/util.ts b/src/util.ts index eb62441a1..b5ca17951 100644 --- a/src/util.ts +++ b/src/util.ts @@ -365,6 +365,16 @@ export async function reportActionSucceeded(action: string) { await sendStatusReport(await createStatusReport(action, 'success')); } +/** + * Report that an action has been aborted. + * + * Note that the started_at date is always that of the `init` action, since + * this is likely to give a more useful duration when inspecting events. + */ +export async function reportActionAborted(action: string, cause?: string) { + await sendStatusReport(await createStatusReport(action, 'abort', cause)); +} + /** * Get the array of all the tool names contained in the given sarif contents. * From 7581ac8b174af1a5d0e6b68f1ac3bfbf1a065577 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Tue, 23 Jun 2020 17:40:46 +0100 Subject: [PATCH 27/38] make the temporary directory in tests a symlink --- lib/util.js | 6 +++++- lib/util.js.map | 2 +- src/util.ts | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/lib/util.js b/lib/util.js index f200754ba..18affb9a7 100644 --- a/lib/util.js +++ b/lib/util.js @@ -349,7 +349,11 @@ exports.getToolNames = getToolNames; // Mostly intended for use within tests. async function withTmpDir(body) { const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codeql-action-')); - const result = await body(tmpDir); + const realSubdir = path.join(tmpDir, 'real'); + fs.mkdirSync(realSubdir); + const symlinkSubdir = path.join(tmpDir, 'symlink'); + fs.symlinkSync(realSubdir, symlinkSubdir, 'dir'); + const result = await body(symlinkSubdir); fs.rmdirSync(tmpDir, { recursive: true }); return result; } diff --git a/lib/util.js.map b/lib/util.js.map index 08dc109f2..515b4a712 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACrB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAChG,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,oCAgBC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACnD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,SAAS,GAAG,mCAAmC,CAAC,CAAC;KAClE;IACD,IAAI,CAAC,KAAK,CAAC,SAAS,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC;IACpC,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,kDAOC;AAED;;GAEG;AACH,KAAK,UAAU,kBAAkB;;IAC/B,8DAA8D;IAC9D,MAAM,eAAe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M,IAAI,KAAK,CAAC,wBAAwB,GAAG,iBAAiB,GAAG,gBAAgB,CAAC,CAAC;SAClF;KACF;SAAM;QACL,MAAM,gBAAgB,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;QACvC,MAAM,oBAAoB,GAAG,gBAAgB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;QAC9D,MAAM,6BAA6B,GAAG,GAAG,CAAC;QAC1C,oBAAoB,GAAG,oBAAoB,GAAG,6BAA6B,CAAC;KAC7E;IACD,OAAO,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AACrD,CAAC;AAfD,sCAeC;AAED;;;;;GAKG;AACH,SAAgB,cAAc;IAC5B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,gBAAgB,EAAE;QACpB,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/util.ts b/src/util.ts index a32bdac9b..c101ccc26 100644 --- a/src/util.ts +++ b/src/util.ts @@ -389,7 +389,11 @@ export function getToolNames(sarifContents: string): string[] { // Mostly intended for use within tests. export async function withTmpDir(body: (tmpDir: string) => Promise): Promise { const tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'codeql-action-')); - const result = await body(tmpDir); + const realSubdir = path.join(tmpDir, 'real'); + fs.mkdirSync(realSubdir); + const symlinkSubdir = path.join(tmpDir, 'symlink'); + fs.symlinkSync(realSubdir, symlinkSubdir, 'dir'); + const result = await body(symlinkSubdir); fs.rmdirSync(tmpDir, { recursive: true }); return result; } From b8ac06a9c8dea490100f1088d550c98130ffe937 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Tue, 23 Jun 2020 18:41:16 +0200 Subject: [PATCH 28/38] run tslint --fix --- lib/setup-tracer.js.map | 2 +- src/setup-tracer.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 17bd68ba3..7cb44ec67 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAChC,CAAC,yBAAyB;IACtB,AADuB;IACrB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC/B,CAAC,CAAC;AAEP,KAAK,UAAU,YAAY,CACvB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,Q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C,CAAC,CAAC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index 9089b2550..840224053 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -149,9 +149,9 @@ async function run() { } core.startGroup('Load language configuration'); - + const config = await configUtils.loadConfig(); - + languages = await util.getLanguages(); // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. @@ -163,10 +163,10 @@ async function run() { analysisPaths.includeAndExcludeAnalysisPaths(config, languages); core.endGroup(); - + } catch (e) { core.setFailed(e.message); - await util.reportActionAborted('init', e.message, ); + await util.reportActionAborted('init', e.message); return; } From 74c48f71fa285c2c223bd4363bfb94f185e01b4b Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Tue, 23 Jun 2020 19:08:30 +0100 Subject: [PATCH 29/38] Use a single Octokit client for everything rather than a bunch of Octokits and an HTTP client. --- lib/api-client.js | 23 ++++++++++++++++++++++ lib/api-client.js.map | 1 + lib/upload-lib.js | 26 ++++++++++++------------ lib/upload-lib.js.map | 2 +- lib/util.js | 46 +++++++++++++------------------------------ lib/util.js.map | 2 +- src/api-client.ts | 11 +++++++++++ src/upload-lib.ts | 26 ++++++++++++------------ src/util.ts | 46 ++++++++++++++----------------------------- 9 files changed, 92 insertions(+), 91 deletions(-) create mode 100644 lib/api-client.js create mode 100644 lib/api-client.js.map create mode 100644 src/api-client.ts diff --git a/lib/api-client.js b/lib/api-client.js new file mode 100644 index 000000000..22e33a2d3 --- /dev/null +++ b/lib/api-client.js @@ -0,0 +1,23 @@ +"use strict"; +var __importStar = (this && this.__importStar) || function (mod) { + 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; +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const core = __importStar(require("@actions/core")); +const octokit = __importStar(require("@octokit/rest")); +const console_log_level_1 = __importDefault(require("console-log-level")); +const githubAPIURL = process.env["GITHUB_API_URL"] || "https://api.github.com"; +exports.client = new octokit.Octokit({ + auth: core.getInput("token"), + baseUrl: githubAPIURL, + userAgent: "CodeQL Action", + log: console_log_level_1.default({ level: "debug" }) +}); +//# sourceMappingURL=api-client.js.map \ No newline at end of file diff --git a/lib/api-client.js.map b/lib/api-client.js.map new file mode 100644 index 000000000..4113884a1 --- /dev/null +++ b/lib/api-client.js.map @@ -0,0 +1 @@ +{"version":3,"file":"api-client.js","sourceRoot":"","sources":["../src/api-client.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,uDAAyC;AACzC,0EAAgD;AAEhD,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,wBAAwB,CAAC;AAClE,QAAA,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,CAAC;IACxC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC;IAC5B,OAAO,EAAE,YAAY;IACrB,SAAS,EAAE,eAAe;IAC1B,GAAG,EAAE,2BAAe,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;CACzC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/upload-lib.js b/lib/upload-lib.js index 5e9f8c868..ef0d7cb66 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -11,13 +11,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const core = __importStar(require("@actions/core")); -const http = __importStar(require("@actions/http-client")); -const auth = __importStar(require("@actions/http-client/auth")); const file_url_1 = __importDefault(require("file-url")); const fs = __importStar(require("fs")); const jsonschema = __importStar(require("jsonschema")); const path = __importStar(require("path")); const zlib_1 = __importDefault(require("zlib")); +const api = __importStar(require("./api-client")); const fingerprints = __importStar(require("./fingerprints")); const sharedEnv = __importStar(require("./shared-environment")); const util = __importStar(require("./util")); @@ -51,27 +50,28 @@ async function uploadPayload(payload) { if (testMode) { return true; } - const githubToken = core.getInput('token'); - const ph = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Upload SARIF', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] + '/code-scanning/analysis'; + const [owner, repo] = util.getRequiredEnvParam("GITHUB_REPOSITORY").split("/"); // Make up to 4 attempts to upload, and sleep for these // number of seconds between each attempt. // We don't want to backoff too much to avoid wasting action // minutes, but just waiting a little bit could maybe help. const backoffPeriods = [1, 5, 15]; for (let attempt = 0; attempt <= backoffPeriods.length; attempt++) { - const res = await client.put(url, payload); - core.debug('response status: ' + res.message.statusCode); - const statusCode = res.message.statusCode; + const response = await api.client.request("PUT /repos/:owner/:repo/code-scanning/analysis", ({ + owner: owner, + repo: repo, + data: payload, + })); + core.debug('response status: ' + response.status); + const statusCode = response.status; if (statusCode === 202) { core.info("Successfully uploaded results"); return true; } - const requestID = res.message.headers["x-github-request-id"]; + const requestID = response.headers["x-github-request-id"]; // On any other status code that's not 5xx mark the upload as failed if (!statusCode || statusCode < 500 || statusCode >= 600) { - core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); return false; } // On a 5xx status code we may retry the request @@ -79,7 +79,7 @@ async function uploadPayload(payload) { // Log the failure as a warning but don't mark the action as failed yet core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + - ' seconds: (' + statusCode + ') ' + await res.readBody()); + ' seconds: (' + statusCode + ') ' + response.data); // Sleep for the backoff period await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); continue; @@ -88,7 +88,7 @@ async function uploadPayload(payload) { // If the upload fails with 5xx then we assume it is a temporary problem // and not an error that the user has caused or can fix. // We avoid marking the job as failed to avoid breaking CI workflows. - core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); return false; } } diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index b0dab6fc4..523761e41 100644 --- a/lib/upload-lib.js.map +++ b/lib/upload-lib.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,wDAA+B;AAC/B,uCAAyB;AACzB,uDAAyC;AACzC,2CAA6B;AAC7B,gDAAwB;AAExB,6DAA+C;AAC/C,gEAAkD;AAClD,6CAA+B;AAE/B,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,IAAI,aAAa,GAAG;QAClB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAW;KAClB,CAAC;IAEF,KAAK,IAAI,SAAS,IAAI,UAAU,EAAE;QAChC,IAAI,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QACjE,sBAAsB;QACtB,IAAI,aAAa,CAAC,OAAO,KAAK,IAAI,EAAE;YAClC,aAAa,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;SAC7C;aAAM,IAAI,aAAa,CAAC,OAAO,KAAK,WAAW,CAAC,OAAO,EAAE;YACxD,MAAM,wCAAwC,GAAG,aAAa,CAAC,OAAO,GAAG,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;SACxG;QAED,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;KAC9C;IAED,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;AACvC,CAAC;AAnBD,8CAmBC;AAED,4BAA4B;AAC5B,qEAAqE;AACrE,KAAK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DAAqD,CAAC,CAAC;QACtE,OAAO,KAAK,CAAC;KACd;IAED,IAAI,MAAM,GAAuB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,MAAM,KAAK,MAAM,IAAI,MAAM,KAAK,EAAE,EAAE;QACtC,MAAM,GAAG,SAAS,CAAC;KACpB;IAED,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAElD,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC;QAC7B,YAAY,EAAE,SAAS;QACvB,KAAK,EAAE,GAAG;QACV,cAAc,EAAE,WAAW;QAC3B,eAAe,EAAE,YAAY;QAC7B,OAAO,EAAE,YAAY;QACrB,iBAAiB,EAAE,aAAa;QAChC,cAAc,EAAE,WAAW;QAC3B,aAAa,EAAE,MAAM;QACrB,YAAY,EAAE,SAAS;QACvB,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;IAEH,4CAA4C;IAC5C,IAAI,CAAC,KAAK,CAAC,mBAAmB,GAAG,YAAY,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;IACjE,IAAI,CAAC,KAAK,CAAC,6BAA6B,GAAG,YAAY,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;IAC3E,IAAI,CAAC,KAAK,CAAC,+BAA+B,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC;IAEhF,kBAAkB;IAClB,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;IAE/C,IAAI,CAAC,QAAQ,EAAE,CAAC;IAEhB,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index f200754ba..71d0e99b2 100644 --- a/lib/util.js +++ b/lib/util.js @@ -6,19 +6,13 @@ var __importStar = (this && this.__importStar) || function (mod) { result["default"] = 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(require("@actions/core")); const exec = __importStar(require("@actions/exec")); -const http = __importStar(require("@actions/http-client")); -const auth = __importStar(require("@actions/http-client/auth")); -const octokit = __importStar(require("@octokit/rest")); -const console_log_level_1 = __importDefault(require("console-log-level")); const fs = __importStar(require("fs")); const os = __importStar(require("os")); const path = __importStar(require("path")); +const api = __importStar(require("./api-client")); const sharedEnv = __importStar(require("./shared-environment")); /** * Should the current action be aborted? @@ -75,12 +69,7 @@ async function getLanguagesInRepo() { let owner = repo_nwo[0]; let repo = repo_nwo[1]; core.debug(`GitHub repo ${owner} ${repo}`); - let ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: console_log_level_1.default({ level: "debug" }) - }); - const response = await ok.request("GET /repos/:owner/:repo/languages", ({ + const response = await api.client.request("GET /repos/:owner/:repo/languages", ({ owner, repo })); @@ -158,19 +147,14 @@ async function getWorkflowPath() { const repo_nwo = getRequiredEnvParam('GITHUB_REPOSITORY').split("/"); const owner = repo_nwo[0]; const repo = repo_nwo[1]; - const run_id = getRequiredEnvParam('GITHUB_RUN_ID'); - const ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: console_log_level_1.default({ level: 'debug' }) - }); - const runsResponse = await ok.request('GET /repos/:owner/:repo/actions/runs/:run_id', { + const run_id = Number(getRequiredEnvParam('GITHUB_RUN_ID')); + const runsResponse = await api.client.request('GET /repos/:owner/:repo/actions/runs/:run_id', { owner, repo, run_id }); const workflowUrl = runsResponse.data.workflow_url; - const workflowResponse = await ok.request('GET ' + workflowUrl); + const workflowResponse = await api.client.request('GET ' + workflowUrl); return workflowResponse.data.path; } /** @@ -264,21 +248,19 @@ async function createStatusReport(actionName, status, cause, exception) { /** * Send a status report to the code_scanning/analysis/status endpoint. * - * Returns the status code of the response to the status request, or - * undefined if the given statusReport is undefined or no response was - * received. + * Returns the status code of the response to the status request. */ async function sendStatusReport(statusReport) { - var _a; const statusReportJSON = JSON.stringify(statusReport); core.debug('Sending status report: ' + statusReportJSON); - const githubToken = core.getInput('token'); - const ph = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Status Report', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] - + '/code-scanning/analysis/status'; - const res = await client.put(url, statusReportJSON); - return (_a = res.message) === null || _a === void 0 ? void 0 : _a.statusCode; + const nwo = getRequiredEnvParam("GITHUB_REPOSITORY"); + const [owner, repo] = nwo.split("/"); + const statusResponse = await api.client.request('PUT /repos/:owner/:repo/code-scanning/analysis/status', { + owner: owner, + repo: repo, + data: statusReportJSON, + }); + return statusResponse.status; } /** * Send a status report that an action is starting. diff --git a/lib/util.js.map b/lib/util.js.map index 08dc109f2..849d35262 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACrB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAChG,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;K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CAAC;AACrD,CAAC;AAfD,sCAeC;AAED;;;;;GAKG;AACH,SAAgB,cAAc;IAC5B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,gBAAgB,EAAE;QACpB,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/api-client.ts b/src/api-client.ts new file mode 100644 index 000000000..1a3b34224 --- /dev/null +++ b/src/api-client.ts @@ -0,0 +1,11 @@ +import * as core from "@actions/core"; +import * as octokit from "@octokit/rest"; +import consoleLogLevel from "console-log-level"; + +const githubAPIURL = process.env["GITHUB_API_URL"] || "https://api.github.com"; +export const client = new octokit.Octokit({ + auth: core.getInput("token"), + baseUrl: githubAPIURL, + userAgent: "CodeQL Action", + log: consoleLogLevel({ level: "debug" }) +}); diff --git a/src/upload-lib.ts b/src/upload-lib.ts index a917f3446..5d910f15a 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -1,12 +1,11 @@ import * as core from '@actions/core'; -import * as http from '@actions/http-client'; -import * as auth from '@actions/http-client/auth'; import fileUrl from 'file-url'; import * as fs from 'fs'; import * as jsonschema from 'jsonschema'; import * as path from 'path'; import zlib from 'zlib'; +import * as api from './api-client'; import * as fingerprints from './fingerprints'; import * as sharedEnv from './shared-environment'; import * as util from './util'; @@ -45,10 +44,7 @@ async function uploadPayload(payload): Promise { return true; } - const githubToken = core.getInput('token'); - const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Upload SARIF', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] + '/code-scanning/analysis'; + const [owner, repo] = util.getRequiredEnvParam("GITHUB_REPOSITORY").split("/"); // Make up to 4 attempts to upload, and sleep for these // number of seconds between each attempt. @@ -57,21 +53,25 @@ async function uploadPayload(payload): Promise { const backoffPeriods = [1, 5, 15]; for (let attempt = 0; attempt <= backoffPeriods.length; attempt++) { + const response = await api.client.request("PUT /repos/:owner/:repo/code-scanning/analysis", ({ + owner: owner, + repo: repo, + data: payload, + })); - const res: http.HttpClientResponse = await client.put(url, payload); - core.debug('response status: ' + res.message.statusCode); + core.debug('response status: ' + response.status); - const statusCode = res.message.statusCode; + const statusCode = response.status; if (statusCode === 202) { core.info("Successfully uploaded results"); return true; } - const requestID = res.message.headers["x-github-request-id"]; + const requestID = response.headers["x-github-request-id"]; // On any other status code that's not 5xx mark the upload as failed if (!statusCode || statusCode < 500 || statusCode >= 600) { - core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); return false; } @@ -80,7 +80,7 @@ async function uploadPayload(payload): Promise { // Log the failure as a warning but don't mark the action as failed yet core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + - ' seconds: (' + statusCode + ') ' + await res.readBody()); + ' seconds: (' + statusCode + ') ' + response.data); // Sleep for the backoff period await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); continue; @@ -89,7 +89,7 @@ async function uploadPayload(payload): Promise { // If the upload fails with 5xx then we assume it is a temporary problem // and not an error that the user has caused or can fix. // We avoid marking the job as failed to avoid breaking CI workflows. - core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + await res.readBody()); + core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); return false; } } diff --git a/src/util.ts b/src/util.ts index a32bdac9b..2f0f0b104 100644 --- a/src/util.ts +++ b/src/util.ts @@ -1,13 +1,10 @@ import * as core from '@actions/core'; import * as exec from '@actions/exec'; -import * as http from '@actions/http-client'; -import * as auth from '@actions/http-client/auth'; -import * as octokit from '@octokit/rest'; -import consoleLogLevel from 'console-log-level'; import * as fs from "fs"; import * as os from 'os'; import * as path from 'path'; +import * as api from './api-client'; import * as sharedEnv from './shared-environment'; /** @@ -68,12 +65,7 @@ async function getLanguagesInRepo(): Promise { let repo = repo_nwo[1]; core.debug(`GitHub repo ${owner} ${repo}`); - let ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: consoleLogLevel({ level: "debug" }) - }); - const response = await ok.request("GET /repos/:owner/:repo/languages", ({ + const response = await api.client.request("GET /repos/:owner/:repo/languages", ({ owner, repo })); @@ -157,22 +149,16 @@ async function getWorkflowPath(): Promise { const repo_nwo = getRequiredEnvParam('GITHUB_REPOSITORY').split("/"); const owner = repo_nwo[0]; const repo = repo_nwo[1]; - const run_id = getRequiredEnvParam('GITHUB_RUN_ID'); + const run_id = Number(getRequiredEnvParam('GITHUB_RUN_ID')); - const ok = new octokit.Octokit({ - auth: core.getInput('token'), - userAgent: "CodeQL Action", - log: consoleLogLevel({ level: 'debug' }) - }); - - const runsResponse = await ok.request('GET /repos/:owner/:repo/actions/runs/:run_id', { + const runsResponse = await api.client.request('GET /repos/:owner/:repo/actions/runs/:run_id', { owner, repo, run_id }); const workflowUrl = runsResponse.data.workflow_url; - const workflowResponse = await ok.request('GET ' + workflowUrl); + const workflowResponse = await api.client.request('GET ' + workflowUrl); return workflowResponse.data.path; } @@ -297,23 +283,21 @@ async function createStatusReport( /** * Send a status report to the code_scanning/analysis/status endpoint. * - * Returns the status code of the response to the status request, or - * undefined if the given statusReport is undefined or no response was - * received. + * Returns the status code of the response to the status request. */ -async function sendStatusReport(statusReport: StatusReport): Promise { +async function sendStatusReport(statusReport: StatusReport): Promise { const statusReportJSON = JSON.stringify(statusReport); core.debug('Sending status report: ' + statusReportJSON); - const githubToken = core.getInput('token'); - const ph: auth.BearerCredentialHandler = new auth.BearerCredentialHandler(githubToken); - const client = new http.HttpClient('Code Scanning : Status Report', [ph]); - const url = 'https://api.github.com/repos/' + process.env['GITHUB_REPOSITORY'] - + '/code-scanning/analysis/status'; - const res: http.HttpClientResponse = await client.put(url, statusReportJSON); - - return res.message?.statusCode; + const nwo = getRequiredEnvParam("GITHUB_REPOSITORY"); + const [owner, repo] = nwo.split("/"); + const statusResponse = await api.client.request('PUT /repos/:owner/:repo/code-scanning/analysis/status', { + owner: owner, + repo: repo, + data: statusReportJSON, + }); + return statusResponse.status; } /** From 3871ca717b54701b22e601820d4c08aa35d7c3ca Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Wed, 24 Jun 2020 14:12:51 +0200 Subject: [PATCH 30/38] reformat remaining 4 space indentations --- lib/setup-tracer.js.map | 2 +- lib/util.js.map | 2 +- src/util.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index f1693c80e..271cae027 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GA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AC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.js.map b/lib/util.js.map index 328e37913..c6d887fb9 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACrB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAChG,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,oCAgBC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACnD,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACrC,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,MAAM,IAAI,KAAK,CAAC,SAAS,GAAG,mCAAmC,CAAC,CAAC;KAClE;IACD,IAAI,CA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,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/util.ts b/src/util.ts index 1907c0435..832b52545 100644 --- a/src/util.ts +++ b/src/util.ts @@ -372,7 +372,7 @@ export async function reportActionSucceeded(action: string) { * this is likely to give a more useful duration when inspecting events. */ export async function reportActionAborted(action: string, cause?: string) { - await sendStatusReport(await createStatusReport(action, 'abort', cause)); + await sendStatusReport(await createStatusReport(action, 'abort', cause)); } /** From a67896b792023288d56062851e1d6e96156f1403 Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Wed, 24 Jun 2020 14:31:06 +0200 Subject: [PATCH 31/38] fix typo and throw error when languages are not detected --- lib/setup-tracer.js | 3 +-- lib/setup-tracer.js.map | 2 +- lib/util.js | 2 +- lib/util.js.map | 2 +- src/setup-tracer.ts | 3 +-- src/util.ts | 2 +- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/setup-tracer.js b/lib/setup-tracer.js index 5d201794a..e2feddb5f 100644 --- a/lib/setup-tracer.js +++ b/lib/setup-tracer.js @@ -138,8 +138,7 @@ async function run() { // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. if (languages.length === 0) { - core.setFailed("Did not detect any languages to analyze. Please update input in workflow."); - return; + throw new Error("Did not detect any languages to analyze. Please update input in workflow."); } analysisPaths.includeAndExcludeAnalysisPaths(config, languages); core.endGroup(); diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 271cae027..4953c400d 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file":"setup-tracer.js","sourceRoot":"","sources":["../src/setup-tracer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,gDAAkC;AAClC,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAClD,4DAA8C;AAC9C,0DAA4C;AAC5C,gEAAkD;AAClD,6CAA+B;AAO/B,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAClC,CAAC,yBAAyB;IACxB,AADyB;IACvB,eAAe;IACjB,AADkB;IAChB,8BAA8B;IAChC,AADiC;IAC/B,wBAAwB;IAC1B,AAD2B;IACzB,0BAA0B;CAC7B,CAAC,CAAC;AAEL,KAAK,UAAU,YAAY,CACzB,MAA8B,EAC9B,QAAgB,EAChB,YAAqB;IAErB,MAAM,eAAe,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,kBAAkB,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEhF,IAAI,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IAC3D,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,UAAU,EAAE,eAAe,EAAE,QAAQ;QAChE,GAAG,eAAe;QAClB,OAAO,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,eAAe,CAAC,EAAE,OAAO,CAAC,CACrE,CAAC;IAEF,MAAM,GAAG,GAA8B,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;IAErF,MAAM,MAAM,GAAG,GAAG,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AC,SAAS,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5F,iEAAiE;QACjE,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAC;QAC1E,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAEnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACR;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/util.js b/lib/util.js index 600231702..00acf3bef 100644 --- a/lib/util.js +++ b/lib/util.js @@ -334,7 +334,7 @@ exports.reportActionSucceeded = reportActionSucceeded; * this is likely to give a more useful duration when inspecting events. */ async function reportActionAborted(action, cause) { - await sendStatusReport(await createStatusReport(action, 'abort', cause)); + await sendStatusReport(await createStatusReport(action, 'aborted', cause)); } exports.reportActionAborted = reportActionAborted; /** diff --git a/lib/util.js.map b/lib/util.js.map index c6d887fb9..ad0dd651e 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;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BAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index 8d56a53f6..e2c07a984 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -156,8 +156,7 @@ async function run() { // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. if (languages.length === 0) { - core.setFailed("Did not detect any languages to analyze. Please update input in workflow."); - return; + throw new Error("Did not detect any languages to analyze. Please update input in workflow.") } analysisPaths.includeAndExcludeAnalysisPaths(config, languages); diff --git a/src/util.ts b/src/util.ts index 832b52545..77f9a8966 100644 --- a/src/util.ts +++ b/src/util.ts @@ -372,7 +372,7 @@ export async function reportActionSucceeded(action: string) { * this is likely to give a more useful duration when inspecting events. */ export async function reportActionAborted(action: string, cause?: string) { - await sendStatusReport(await createStatusReport(action, 'abort', cause)); + await sendStatusReport(await createStatusReport(action, 'aborted', cause)); } /** From 8530f5b76a46e2bf02c89bf9e6490dc7323ea0fd Mon Sep 17 00:00:00 2001 From: Alex Kalyvitis Date: Wed, 24 Jun 2020 14:37:12 +0200 Subject: [PATCH 32/38] add missing semicolon --- lib/setup-tracer.js.map | 2 +- src/setup-tracer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/setup-tracer.js.map b/lib/setup-tracer.js.map index 4953c400d..921161d2b 100644 --- a/lib/setup-tracer.js.map +++ b/lib/setup-tracer.js.map @@ -1 +1 @@ -{"version":3,"file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S,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;KAEnE;IAAC,OAAO,KAAK,EAAE;QACd,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC9B,MAAM,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QAClE,OAAO;KACR;IACD,MAAM,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IACzC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAC;AACtE,CAAC;AAED,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACd,IAAI,CAAC,SAAS,CAAC,sBAAsB,GAAG,CAAC,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACjB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/setup-tracer.ts b/src/setup-tracer.ts index e2c07a984..370e29691 100644 --- a/src/setup-tracer.ts +++ b/src/setup-tracer.ts @@ -156,7 +156,7 @@ async function run() { // If the languages parameter was not given and no languages were // detected then fail here as this is a workflow configuration error. if (languages.length === 0) { - throw new Error("Did not detect any languages to analyze. Please update input in workflow.") + throw new Error("Did not detect any languages to analyze. Please update input in workflow."); } analysisPaths.includeAndExcludeAnalysisPaths(config, languages); From 464ce1b43aa27e496c6547890e1081d9ef31fa31 Mon Sep 17 00:00:00 2001 From: Chris Gavin Date: Wed, 24 Jun 2020 13:50:52 +0100 Subject: [PATCH 33/38] Manually convert response.data to a JSON string. --- lib/upload-lib.js | 6 +++--- lib/upload-lib.js.map | 2 +- src/upload-lib.ts | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/upload-lib.js b/lib/upload-lib.js index ef0d7cb66..eb2a716b4 100644 --- a/lib/upload-lib.js +++ b/lib/upload-lib.js @@ -71,7 +71,7 @@ async function uploadPayload(payload) { const requestID = response.headers["x-github-request-id"]; // On any other status code that's not 5xx mark the upload as failed if (!statusCode || statusCode < 500 || statusCode >= 600) { - core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); + core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + JSON.stringify(response.data)); return false; } // On a 5xx status code we may retry the request @@ -79,7 +79,7 @@ async function uploadPayload(payload) { // Log the failure as a warning but don't mark the action as failed yet core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + - ' seconds: (' + statusCode + ') ' + response.data); + ' seconds: (' + statusCode + ') ' + JSON.stringify(response.data)); // Sleep for the backoff period await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); continue; @@ -88,7 +88,7 @@ async function uploadPayload(payload) { // If the upload fails with 5xx then we assume it is a temporary problem // and not an error that the user has caused or can fix. // We avoid marking the job as failed to avoid breaking CI workflows. - core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); + core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + JSON.stringify(response.data)); return false; } } diff --git a/lib/upload-lib.js.map b/lib/upload-lib.js.map index 523761e41..7e6b65871 100644 --- a/lib/upload-lib.js.map +++ b/lib/upload-lib.js.map @@ -1 +1 @@ -{"version":3,"file":"upload-lib.js","sourceRoot":"","sources":["../src/upload-lib.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,wDAA+B;AAC/B,uCAAyB;AACzB,uDAAyC;AACzC,2CAA6B;AAC7B,gDAAwB;AAExB,kDAAoC;AACpC,6DAA+C;AAC/C,gEAAkD;AAClD,6CAA+B;AAE/B,mEAAmE;AACnE,qDAAqD;AACrD,SAAgB,iBAAiB,CAAC,UAAoB;IACpD,IAAI,aAAa,GAAG;QAClB,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,EAAW;KAClB,CAAC;IAEF,KAAK,IAAI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,CAAC,6BAA6B,GAAG,YAAY,CAAC,MAAM,GAAG,QAAQ,CAAC,CAAC;IAC3E,IAAI,CAAC,KAAK,CAAC,+BAA+B,GAAG,mBAAmB,CAAC,YAAY,CAAC,CAAC,CAAC;IAEhF,kBAAkB;IAClB,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,OAAO,CAAC,CAAC;IAE/C,IAAI,CAAC,QAAQ,EAAE,CAAC;IAEhB,OAAO,SAAS,CAAC;AACnB,CAAC"} \ No newline at end of file diff --git a/src/upload-lib.ts b/src/upload-lib.ts index 5d910f15a..c4d5fc472 100644 --- a/src/upload-lib.ts +++ b/src/upload-lib.ts @@ -71,7 +71,7 @@ async function uploadPayload(payload): Promise { // On any other status code that's not 5xx mark the upload as failed if (!statusCode || statusCode < 500 || statusCode >= 600) { - core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); + core.setFailed('Upload failed (' + requestID + '): (' + statusCode + ') ' + JSON.stringify(response.data)); return false; } @@ -80,7 +80,7 @@ async function uploadPayload(payload): Promise { // Log the failure as a warning but don't mark the action as failed yet core.warning('Upload attempt (' + (attempt + 1) + ' of ' + (backoffPeriods.length + 1) + ') failed (' + requestID + '). Retrying in ' + backoffPeriods[attempt] + - ' seconds: (' + statusCode + ') ' + response.data); + ' seconds: (' + statusCode + ') ' + JSON.stringify(response.data)); // Sleep for the backoff period await new Promise(r => setTimeout(r, backoffPeriods[attempt] * 1000)); continue; @@ -89,7 +89,7 @@ async function uploadPayload(payload): Promise { // If the upload fails with 5xx then we assume it is a temporary problem // and not an error that the user has caused or can fix. // We avoid marking the job as failed to avoid breaking CI workflows. - core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + response.data); + core.error('Upload failed (' + requestID + '): (' + statusCode + ') ' + JSON.stringify(response.data)); return false; } } From 50a2815790ca4dd44bc05513aa6de877180efe08 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Thu, 25 Jun 2020 14:10:28 +0100 Subject: [PATCH 34/38] Include completed_at when action is aborted --- lib/util.js | 2 +- lib/util.js.map | 2 +- src/util.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util.js b/lib/util.js index 00acf3bef..c9d1a5092 100644 --- a/lib/util.js +++ b/lib/util.js @@ -252,7 +252,7 @@ async function createStatusReport(actionName, status, cause, exception) { if (exception) { statusReport.exception = exception; } - if (status === 'success' || status === 'failure') { + if (status === 'success' || status === 'failure' || status === 'aborted') { statusReport.completed_at = new Date().toISOString(); } let matrix = core.getInput('matrix'); diff --git a/lib/util.js.map b/lib/util.js.map index ad0dd651e..ab044ef1e 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACrB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAChG,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,oCAgBC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACnD,MAAM,K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AAC,CAAC;QAC9D,MAAM,6BAA6B,GAAG,GAAG,CAAC;QAC1C,oBAAoB,GAAG,oBAAoB,GAAG,6BAA6B,CAAC;KAC7E;IACD,OAAO,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;AACrD,CAAC;AAfD,sCAeC;AAED;;;;;GAKG;AACH,SAAgB,cAAc;IAC5B,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAClD,IAAI,gBAAgB,EAAE;QACpB,UAAU,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACtC,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/util.ts b/src/util.ts index 77f9a8966..553dfd1fc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -283,7 +283,7 @@ async function createStatusReport( if (exception) { statusReport.exception = exception; } - if (status === 'success' || status === 'failure') { + if (status === 'success' || status === 'failure' || status === 'aborted') { statusReport.completed_at = new Date().toISOString(); } let matrix: string | undefined = core.getInput('matrix'); From 0fdc2c71e4137d8be2a5fdc2a6c12091f6be6255 Mon Sep 17 00:00:00 2001 From: Robert Brignull Date: Thu, 25 Jun 2020 15:53:24 +0100 Subject: [PATCH 35/38] fall back to GITHUB_SHA env var if git is not available --- lib/util.js | 31 ++++++++++++++++++++++--------- lib/util.js.map | 2 +- src/util.ts | 30 +++++++++++++++++++++--------- 3 files changed, 44 insertions(+), 19 deletions(-) diff --git a/lib/util.js b/lib/util.js index c9d1a5092..6f5aed511 100644 --- a/lib/util.js +++ b/lib/util.js @@ -140,15 +140,28 @@ exports.getLanguages = getLanguages; * Gets the SHA of the commit that is currently checked out. */ async function getCommitOid() { - let commitOid = ''; - await exec.exec('git', ['rev-parse', 'HEAD'], { - silent: true, - listeners: { - stdout: (data) => { commitOid += data.toString(); }, - stderr: (data) => { process.stderr.write(data); } - } - }); - return commitOid.trim(); + // Try to use git to get the current commit SHA. If that fails then + // log but otherwise silently fall back to using the SHA from the environment. + // The only time these two values will differ is during analysis of a PR when + // the workflow has changed the current commit to the head commit instead of + // the merge commit, which must mean that git is available. + // Even if this does go wrong, it's not a huge problem for the alerts to + // reported on the merge commit. + try { + let commitOid = ''; + await exec.exec('git', ['rev-parse', 'HEAD'], { + silent: true, + listeners: { + stdout: (data) => { commitOid += data.toString(); }, + stderr: (data) => { process.stderr.write(data); } + } + }); + return commitOid.trim(); + } + catch (e) { + core.info("Failed to call git to get current commit. Continuing with data from environment: " + e); + return getRequiredEnvParam('GITHUB_SHA'); + } } exports.getCommitOid = getCommitOid; /** diff --git a/lib/util.js.map b/lib/util.js.map index ab044ef1e..8e76f3124 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,2DAA6C;AAC7C,gEAAkD;AAClD,uDAAyC;AACzC,0EAAgD;AAChD,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAA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UAAU,CAAC,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,4BAA4B,gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/src/util.ts b/src/util.ts index 553dfd1fc..064d697be 100644 --- a/src/util.ts +++ b/src/util.ts @@ -139,15 +139,27 @@ export async function getLanguages(): Promise { * Gets the SHA of the commit that is currently checked out. */ export async function getCommitOid(): Promise { - let commitOid = ''; - await exec.exec('git', ['rev-parse', 'HEAD'], { - silent: true, - listeners: { - stdout: (data) => { commitOid += data.toString(); }, - stderr: (data) => { process.stderr.write(data); } - } - }); - return commitOid.trim(); + // Try to use git to get the current commit SHA. If that fails then + // log but otherwise silently fall back to using the SHA from the environment. + // The only time these two values will differ is during analysis of a PR when + // the workflow has changed the current commit to the head commit instead of + // the merge commit, which must mean that git is available. + // Even if this does go wrong, it's not a huge problem for the alerts to + // reported on the merge commit. + try { + let commitOid = ''; + await exec.exec('git', ['rev-parse', 'HEAD'], { + silent: true, + listeners: { + stdout: (data) => { commitOid += data.toString(); }, + stderr: (data) => { process.stderr.write(data); } + } + }); + return commitOid.trim(); + } catch (e) { + core.info("Failed to call git to get current commit. Continuing with data from environment: " + e); + return getRequiredEnvParam('GITHUB_SHA'); + } } /** From bb9ed79f3da5607dc29ab30b624bfd1ec0419b30 Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Fri, 26 Jun 2020 11:44:17 +0100 Subject: [PATCH 36/38] getRequiredEnvParams must be non-empty --- lib/util.js | 2 +- lib/util.js.map | 2 +- lib/util.test.js | 6 ++++++ lib/util.test.js.map | 2 +- src/util.test.ts | 7 +++++++ src/util.ts | 2 +- 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/lib/util.js b/lib/util.js index f44e26848..6f69d8433 100644 --- a/lib/util.js +++ b/lib/util.js @@ -41,7 +41,7 @@ exports.should_abort = should_abort; */ function getRequiredEnvParam(paramName) { const value = process.env[paramName]; - if (value === undefined) { + if (value === undefined || value.length === 0) { throw new Error(paramName + ' environment variable must be set'); } core.debug(paramName + '=' + value); diff --git a/lib/util.js.map b/lib/util.js.map index ad093cdfe..3b8da8c40 100644 --- a/lib/util.js.map +++ b/lib/util.js.map @@ -1 +1 @@ -{"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsC;AACtC,oDAAsC;AACtC,uCAAyB;AACzB,uCAAyB;AACzB,2CAA6B;AAE7B,kDAAoC;AACpC,gEAAkD;AAElD;;;;;;GAMG;AACH,SAAgB,YAAY,CAAC,UAAkB,EAAE,uBAAgC;IAE/E,6DAA6D;IAC7D,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;IACtC,IAAI,GAAG,KAAK,SAAS,EAAE;QACrB,IAAI,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC;QAC1C,OAAO,IAAI,CAAC;KACb;IAED,4EAA4E;IAC5E,IAAI,uBAAuB,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,SAAS,EAAE;QAChG,IAAI,CAAC,SAAS,CAAC,aAAa,GAAG,UAAU,GAAG,8EAA8E,CAAC,CAAC;QAC5H,OAAO,IAAI,CAAC;KACb;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAhBD,oCAgBC;AAED;;GAEG;AACH,SAAgB,mBAAmB,CAAC,SAAiB;IACnD,MAAM,KAAK,GAAG,OAAO,CA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gBAAgB,eAAe,CAAC,CAAC;SAC9E;QACD,MAAM,UAAU,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;QACpC,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;QACD,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC;QAC/B,IAAI,UAAU,GAAG,UAAU,EAAE;YAC3B,UAAU,GAAG,UAAU,CAAC;SACzB;KACF;IACD,OAAO,aAAa,UAAU,EAAE,CAAC;AACnC,CAAC;AAlBD,wCAkBC"} \ No newline at end of file diff --git a/lib/util.test.js b/lib/util.test.js index 63d3299b2..9f1504d22 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -59,4 +59,10 @@ ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { t.throws(util.getThreadsFlag); } }); +ava_1.default('getRef() throws on the empty string', t => { + for (const input of [""]) { + process.env["GITHUB_REF"] = input; + t.throws(util.getRef); + } +}); //# sourceMappingURL=util.test.js.map \ No newline at end of file diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 03f9a59bc..f7348a369 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,mDAAmD;AACnD,6CAA+B;AAE/B,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CA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,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACjC;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IACjE,KAAK,MAAM,KAAK,IAAI,CAAC,QAAQ,CAAC,EAAE;QAC9B,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QACrC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;KAC/B;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,qCAAqC,EAAE,CAAC,CAAC,EAAE;IAC9C,KAAK,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC,EAAE;QACxB,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,KAAK,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KACvB;AACH,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/util.test.ts b/src/util.test.ts index e36e1aab0..cb1ecc4a9 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -64,3 +64,10 @@ test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { t.throws(util.getThreadsFlag); } }); + +test('getRef() throws on the empty string', t => { + for (const input of [""]) { + process.env["GITHUB_REF"] = input; + t.throws(util.getRef); + } +}); diff --git a/src/util.ts b/src/util.ts index 6250a99c7..84a757d09 100644 --- a/src/util.ts +++ b/src/util.ts @@ -37,7 +37,7 @@ export function should_abort(actionName: string, requireInitActionHasRun: boolea */ export function getRequiredEnvParam(paramName: string): string { const value = process.env[paramName]; - if (value === undefined) { + if (value === undefined || value.length === 0) { throw new Error(paramName + ' environment variable must be set'); } core.debug(paramName + '=' + value); From a0d43304349f187cfb70913fb6a757dcb932ff38 Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Fri, 26 Jun 2020 15:11:00 +0100 Subject: [PATCH 37/38] Simplify singleton tests by removing the loop --- lib/util.test.js | 12 ++++-------- lib/util.test.js.map | 2 +- src/util.test.ts | 12 ++++-------- 3 files changed, 9 insertions(+), 17 deletions(-) diff --git a/lib/util.test.js b/lib/util.test.js index 9f1504d22..fa6a5e97c 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -54,15 +54,11 @@ ava_1.default('getThreadsFlag() should return the correct --threads flag', t => } }); ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["hello!"]) { - process.env['INPUT_THREADS'] = input; - t.throws(util.getThreadsFlag); - } + process.env['INPUT_THREADS'] = "hello!"; + t.throws(util.getThreadsFlag); }); ava_1.default('getRef() throws on the empty string', t => { - for (const input of [""]) { - process.env["GITHUB_REF"] = input; - t.throws(util.getRef); - } + process.env["GITHUB_REF"] = ""; + t.throws(util.getRef); }); //# sourceMappingURL=util.test.js.map \ No newline at end of file diff --git a/lib/util.test.js.map b/lib/util.test.js.map index f7348a369..7deffbda8 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,mDAAmD;AACnD,6CAA+B;AAE/B,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,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AO,GAAG,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,OAAO,EAAE;KAC7C,CAAC;IAEF,KAAK,MAAM,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QAEzD,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,KAAK,CAAC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACjC;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,wDAAwD,EAAE,CAAC,CAAC,EAAE;IACjE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;IACxC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,qCAAqC,EAAE,CAAC,CAAC,EAAE;IAC9C,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IAC/B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/util.test.ts b/src/util.test.ts index cb1ecc4a9..428f8e5ab 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -59,15 +59,11 @@ test('getThreadsFlag() should return the correct --threads flag', t => { }); test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { - for (const input of ["hello!"]) { - process.env['INPUT_THREADS'] = input; - t.throws(util.getThreadsFlag); - } + process.env['INPUT_THREADS'] = "hello!"; + t.throws(util.getThreadsFlag); }); test('getRef() throws on the empty string', t => { - for (const input of [""]) { - process.env["GITHUB_REF"] = input; - t.throws(util.getRef); - } + process.env["GITHUB_REF"] = ""; + t.throws(util.getRef); }); From 151d531bd04963a2d546eef99853101205c7ff50 Mon Sep 17 00:00:00 2001 From: Robin Neatherway Date: Fri, 26 Jun 2020 16:01:59 +0100 Subject: [PATCH 38/38] Correct copy/pasted test description --- lib/util.test.js | 2 +- lib/util.test.js.map | 2 +- src/util.test.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/util.test.js b/lib/util.test.js index fa6a5e97c..6f70d3b46 100644 --- a/lib/util.test.js +++ b/lib/util.test.js @@ -53,7 +53,7 @@ ava_1.default('getThreadsFlag() should return the correct --threads flag', t => t.deepEqual(flag, expectedFlag); } }); -ava_1.default('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { +ava_1.default('getThreadsFlag() throws if the threads input is not an integer', t => { process.env['INPUT_THREADS'] = "hello!"; t.throws(util.getThreadsFlag); }); diff --git a/lib/util.test.js.map b/lib/util.test.js.map index 7deffbda8..61b4a8b60 100644 --- a/lib/util.test.js.map +++ b/lib/util.test.js.map @@ -1 +1 @@ -{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../src/util.test.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAAuB;AACvB,uCAAyB;AACzB,uCAAyB;AAEzB,mDAAmD;AACnD,6CAA+B;AAE/B,kCAAkB,CAAC,aAAI,CAAC,CAAC;AAEzB,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACvB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,GAAG,mCAAmC,EAAE,MAAM,CAAC,CAAC;IACvF,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,+BAA+B,EAAE,QAAQ,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sDAAsD,EAAE,CAAC,CAAC,EAAE;IAE/D,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC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E,CAAC;QACnC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;KACjC;AACH,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gEAAgE,EAAE,CAAC,CAAC,EAAE;IACzE,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC;IACxC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,qCAAqC,EAAE,CAAC,CAAC,EAAE;IAC9C,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC;IAC/B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/src/util.test.ts b/src/util.test.ts index 428f8e5ab..a47732fc6 100644 --- a/src/util.test.ts +++ b/src/util.test.ts @@ -58,7 +58,7 @@ test('getThreadsFlag() should return the correct --threads flag', t => { } }); -test('getThreadsFlag() throws if the ram input is < 0 or NaN', t => { +test('getThreadsFlag() throws if the threads input is not an integer', t => { process.env['INPUT_THREADS'] = "hello!"; t.throws(util.getThreadsFlag); });