From 04231246fac5586140a56f89da65325d1e6b15c3 Mon Sep 17 00:00:00 2001 From: Christopher Dignam Date: Sun, 2 Jun 2024 20:18:55 -0400 Subject: [PATCH] cleanup repository (#65) - remove dead code - remove unused dependencies - fix command names to be prefixed with `githubinator` instead of the example repository `extension` --- .github/workflows/javascript.yml | 13 +- .vscode/extensions.json | 7 - .vscode/launch.json | 55 ++++--- .vscode/settings.json | 20 +-- .vscode/tasks.json | 32 ++-- Makefile | 14 -- README.md | 12 +- package.json | 130 ++++++++--------- src/extension.ts | 50 +++---- src/openfromUrl.ts | 11 +- src/providers.ts | 9 +- src/test/suite/providers.test.ts | 6 +- yarn.lock | 243 ++++--------------------------- 13 files changed, 192 insertions(+), 410 deletions(-) delete mode 100644 .vscode/extensions.json delete mode 100644 Makefile diff --git a/.github/workflows/javascript.yml b/.github/workflows/javascript.yml index 1b21d27..330cd3e 100644 --- a/.github/workflows/javascript.yml +++ b/.github/workflows/javascript.yml @@ -17,4 +17,15 @@ jobs: - name: Install dependencies run: yarn install --frozen-lockfile - name: Run tests - run: xvfb-run -a npm test + run: xvfb-run -a yarn test + format: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Run tests + run: yarn format:check diff --git a/.vscode/extensions.json b/.vscode/extensions.json deleted file mode 100644 index 0a18b9c..0000000 --- a/.vscode/extensions.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "ms-vscode.vscode-typescript-tslint-plugin" - ] -} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 84cb5e7..16f921b 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,34 +3,29 @@ // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 { - "version": "0.2.0", - "configurations": [{ - "name": "Run Extension", - "type": "extensionHost", - "request": "launch", - "runtimeExecutable": "${execPath}", - "args": [ - "--extensionDevelopmentPath=${workspaceFolder}" - ], - "outFiles": [ - "${workspaceFolder}/out/**/*.js" - ], - "preLaunchTask": "npm: watch" - }, - { - "name": "Extension Tests", - "type": "extensionHost", - "request": "launch", - "runtimeExecutable": "${execPath}", - "args": [ - "--disable-extensions", - "--extensionDevelopmentPath=${workspaceFolder}", - "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" - ], - "outFiles": [ - "${workspaceFolder}/out/test/**/*.js" - ], - "preLaunchTask": "npm: watch" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Run Extension", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": ["--extensionDevelopmentPath=${workspaceFolder}"], + "outFiles": ["${workspaceFolder}/out/**/*.js"], + "preLaunchTask": "npm: watch" + }, + { + "name": "Extension Tests", + "type": "extensionHost", + "request": "launch", + "runtimeExecutable": "${execPath}", + "args": [ + "--disable-extensions", + "--extensionDevelopmentPath=${workspaceFolder}", + "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" + ], + "outFiles": ["${workspaceFolder}/out/test/**/*.js"], + "preLaunchTask": "npm: watch" + } + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json index 8bf37e0..e375ad4 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,12 +1,12 @@ // Place your settings in this file to overwrite default and user settings. { - "files.exclude": { - "out": false // set this to true to hide the "out" folder with the compiled JS files - }, - "search.exclude": { - "out": true // set this to false to include "out" folder in search results - }, - // Turn off tsc task auto detection since we have the necessary tasks as npm scripts - "typescript.tsc.autoDetect": "off", - "editor.formatOnSave": true -} \ No newline at end of file + "files.exclude": { + "out": false // set this to true to hide the "out" folder with the compiled JS files + }, + "search.exclude": { + "out": true // set this to false to include "out" folder in search results + }, + // Turn off tsc task auto detection since we have the necessary tasks as npm scripts + "typescript.tsc.autoDetect": "off", + "editor.formatOnSave": true +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3b17e53..078ff7e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,20 +1,20 @@ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format { - "version": "2.0.0", - "tasks": [ - { - "type": "npm", - "script": "watch", - "problemMatcher": "$tsc-watch", - "isBackground": true, - "presentation": { - "reveal": "never" - }, - "group": { - "kind": "build", - "isDefault": true - } - } - ] + "version": "2.0.0", + "tasks": [ + { + "type": "npm", + "script": "watch", + "problemMatcher": "$tsc-watch", + "isBackground": true, + "presentation": { + "reveal": "never" + }, + "group": { + "kind": "build", + "isDefault": true + } + } + ] } diff --git a/Makefile b/Makefile deleted file mode 100644 index 1a9c6e0..0000000 --- a/Makefile +++ /dev/null @@ -1,14 +0,0 @@ -.PHONY: install, lint, format, format-ci, test, test-ci - -install: - @yarn install -lint: - @yarn lint -format: - @yarn format -format-ci: - @yarn format:ci -test: - @yarn vscode:prepublish - @yarn test -test-ci: lint format-ci test diff --git a/README.md b/README.md index 1f04fb8..3212dc1 100644 --- a/README.md +++ b/README.md @@ -83,17 +83,13 @@ This plugin is based on the [Sublime Plugin by ehamiter](https://github.com/eham ```sh # install dependencies -make install -# lint (tslint and formatting) -make lint +yarn install # format code -make format +yarn format # check formatting -make format-ci +yarb format:check # run tests -make test -# run linting and testing -make test-ci +yarn test ``` ### VSCode instructions diff --git a/package.json b/package.json index 865536c..01d9d1b 100644 --- a/package.json +++ b/package.json @@ -25,101 +25,85 @@ "url": "https://github.com/chdsbd/vscode-githubinator/issues" }, "engines": { - "vscode": "^1.53.0" + "vscode": "^1.89.0" }, "categories": [ "Other" ], - "activationEvents": [ - "onCommand:extension.githubinator", - "onCommand:extension.githubinatorCopy", - "onCommand:extension.githubinatorCopyMaster", - "onCommand:extension.githubinatorCopyPermalink", - "onCommand:extension.githubinatorCopyMasterPermalink", - "onCommand:extension.githubinatorOnMaster", - "onCommand:extension.githubinatorPermalink", - "onCommand:extension.githubinatorBlame", - "onCommand:extension.githubinatorBlameOnMaster", - "onCommand:extension.githubinatorBlamePermalink", - "onCommand:extension.githubinatorHistory", - "onCommand:extension.githubinatorRepository", - "onCommand:extension.githubinatorOpenPR", - "onCommand:extension.githubinatorCompare" - ], "main": "./out/extension.js", "contributes": { "commands": [ { - "command": "extension.githubinator", + "command": "githubinator.githubinator", "title": "Githubinator" }, { - "command": "extension.githubinatorCopy", + "command": "githubinator.githubinatorCopy", "title": "Copy", "category": "Githubinator" }, { - "command": "extension.githubinatorOpenFromUrl", + "command": "githubinator.githubinatorOpenFromUrl", "title": "Open from URL", "category": "Githubinator" }, { - "command": "extension.githubinatorCopyMaster", + "command": "githubinator.githubinatorCopyMaster", "title": "Copy Main", "category": "Githubinator" }, { - "command": "extension.githubinatorCopyPermalink", + "command": "githubinator.githubinatorCopyPermalink", "title": "Copy Permalink", "category": "Githubinator" }, { - "command": "extension.githubinatorCopyMasterPermalink", + "command": "githubinator.githubinatorCopyMasterPermalink", "title": "Copy Main Permalink", "category": "Githubinator" }, { - "command": "extension.githubinatorOnMaster", + "command": "githubinator.githubinatorOnMaster", "title": "On Main", "category": "Githubinator" }, { - "command": "extension.githubinatorPermalink", + "command": "githubinator.githubinatorPermalink", "title": "Permalink", "category": "Githubinator" }, { - "command": "extension.githubinatorBlame", + "command": "githubinator.githubinatorBlame", "title": "Blame", "category": "Githubinator" }, { - "command": "extension.githubinatorBlameOnMaster", + "command": "githubinator.githubinatorBlameOnMaster", "title": "Blame On Main", "category": "Githubinator" }, { - "command": "extension.githubinatorBlamePermalink", + "command": "githubinator.githubinatorBlamePermalink", "title": "Blame Permalink", "category": "Githubinator" }, { - "command": "extension.githubinatorRepository", + "command": "githubinator.githubinatorRepository", "title": "Repository", "category": "Githubinator" }, { - "command": "extension.githubinatorHistory", + "command": "githubinator.githubinatorHistory", "title": "History", "category": "Githubinator" }, { - "command": "extension.githubinatorOpenPR", + "command": "githubinator.githubinatorOpenPR", "title": "Open Pull Request", "category": "Githubinator" }, { - "command": "extension.githubinatorCompare", + "command": "githubinator.githubinatorCompare", "title": "Compare", "category": "Githubinator" } @@ -127,148 +111,148 @@ "menus": { "editor/context": [ { - "command": "extension.githubinator", + "command": "githubinator.githubinator", "group": "githubinator@1", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuGithubinator" }, { - "command": "extension.githubinatorCopy", + "command": "githubinator.githubinatorCopy", "group": "githubinator@2", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopy" }, { - "command": "extension.githubinatorCopyMaster", + "command": "githubinator.githubinatorCopyMaster", "group": "githubinator@3", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyMaster" }, { - "command": "extension.githubinatorCopyPermalink", + "command": "githubinator.githubinatorCopyPermalink", "group": "githubinator@4", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyPermalink" }, { - "command": "extension.githubinatorCopyMasterPermalink", + "command": "githubinator.githubinatorCopyMasterPermalink", "group": "githubinator@5", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCopyMasterPermalink" }, { - "command": "extension.githubinatorOnMaster", + "command": "githubinator.githubinatorOnMaster", "group": "githubinator@6", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuOnMaster" }, { - "command": "extension.githubinatorPermalink", + "command": "githubinator.githubinatorPermalink", "group": "githubinator@7", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuPermalink" }, { - "command": "extension.githubinatorBlame", + "command": "githubinator.githubinatorBlame", "group": "githubinator@8", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlame" }, { - "command": "extension.githubinatorBlameOnMaster", + "command": "githubinator.githubinatorBlameOnMaster", "group": "githubinator@9", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlameOnMaster" }, { - "command": "extension.githubinatorBlamePermalink", + "command": "githubinator.githubinatorBlamePermalink", "group": "githubinator@10", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuBlamePermalink" }, { - "command": "extension.githubinatorRepository", + "command": "githubinator.githubinatorRepository", "group": "githubinator@11", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuRepository" }, { - "command": "extension.githubinatorHistory", + "command": "githubinator.githubinatorHistory", "group": "githubinator@12", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuHistory" }, { - "command": "extension.githubinatorOpenPR", + "command": "githubinator.githubinatorOpenPR", "group": "githubinator@13", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuOpenPR" }, { - "command": "extension.githubinatorCompare", + "command": "githubinator.githubinatorCompare", "group": "githubinator@14", "when": "config.githubinator.contextMenu == enabled && config.githubinator.contextMenuCompare" }, { - "submenu": "extension.githubinatorSubmenu", + "submenu": "githubinator.githubinatorSubmenu", "group": "githubinator@15" } ], - "extension.githubinatorSubmenu": [ + "githubinator.githubinatorSubmenu": [ { - "command": "extension.githubinator", + "command": "githubinator.githubinator", "group": "githubinator@1", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuGithubinator" }, { - "command": "extension.githubinatorCopy", + "command": "githubinator.githubinatorCopy", "group": "githubinator@2", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopy" }, { - "command": "extension.githubinatorCopyMaster", + "command": "githubinator.githubinatorCopyMaster", "group": "githubinator@3", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyMaster" }, { - "command": "extension.githubinatorCopyPermalink", + "command": "githubinator.githubinatorCopyPermalink", "group": "githubinator@4", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyPermalink" }, { - "command": "extension.githubinatorCopyMasterPermalink", + "command": "githubinator.githubinatorCopyMasterPermalink", "group": "githubinator@5", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCopyMasterPermalink" }, { - "command": "extension.githubinatorOnMaster", + "command": "githubinator.githubinatorOnMaster", "group": "githubinator@6", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuOnMaster" }, { - "command": "extension.githubinatorPermalink", + "command": "githubinator.githubinatorPermalink", "group": "githubinator@7", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuPermalink" }, { - "command": "extension.githubinatorBlame", + "command": "githubinator.githubinatorBlame", "group": "githubinator@8", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlame" }, { - "command": "extension.githubinatorBlameOnMaster", + "command": "githubinator.githubinatorBlameOnMaster", "group": "githubinator@9", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlameOnMaster" }, { - "command": "extension.githubinatorBlamePermalink", + "command": "githubinator.githubinatorBlamePermalink", "group": "githubinator@10", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuBlamePermalink" }, { - "command": "extension.githubinatorRepository", + "command": "githubinator.githubinatorRepository", "group": "githubinator@11", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuRepository" }, { - "command": "extension.githubinatorHistory", + "command": "githubinator.githubinatorHistory", "group": "githubinator@12", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuHistory" }, { - "command": "extension.githubinatorOpenPR", + "command": "githubinator.githubinatorOpenPR", "group": "githubinator@13", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuOpenPR" }, { - "command": "extension.githubinatorCompare", + "command": "githubinator.githubinatorCompare", "group": "githubinator@14", "when": "config.githubinator.contextMenu == submenu && config.githubinator.contextMenuCompare" } @@ -277,7 +261,7 @@ "submenus": [ { "label": "Githubinator", - "id": "extension.githubinatorSubmenu" + "id": "githubinator.githubinatorSubmenu" } ], "configuration": { @@ -460,14 +444,12 @@ "vscode:prepublish": "yarn esbuild ./src/extension.ts --bundle --platform=node --external:vscode --outfile=out/extension.js", "compile": "tsc -p ./", "watch": "tsc -watch -p ./", - "lint": "yarn run tslint --project tsconfig.json", "test": "yarn run compile && yarn vscode-test", - "format": "$(yarn bin)/prettier --write src/* src/**/* .circleci/* *.md *.json", - "format:ci": "$(yarn bin)/prettier --check src/* src/**/* .circleci/* *.md *.json" + "format": "$(yarn bin)/prettier --write --cache .", + "format:check": "$(yarn bin)/prettier --check --cache ." }, "devDependencies": { "@types/git-url-parse": "^9.0.1", - "@types/glob": "^7.1.3", "@types/ini": "^1.3.30", "@types/lodash": "^4.14.170", "@types/mocha": "^10.0.6", @@ -477,18 +459,20 @@ "@vscode/test-cli": "^0.0.9", "@vscode/test-electron": "^2.4.0", "esbuild": "^0.11.12", - "glob": "^7.1.7", "mocha": "^10.4.0", - "prettier": "^1.16.4", - "tslint": "^5.12.1", - "typescript": "^4.2.2" + "prettier": "^3.3.0", + "typescript": "^4.2.2", + "vscode-test": "^1.6.1" }, "dependencies": { "git-url-parse": "^11.6.0", "gitconfiglocal": "^2.1.0", "ini": "^1.3.5", "lodash": "^4.17.21", - "mz": "^2.7.0", - "vscode-test": "^1.6.1" + "mz": "^2.7.0" + }, + "volta": { + "node": "18.20.3", + "yarn": "1.22.22" } } diff --git a/src/extension.ts b/src/extension.ts index 846fb0d..993a341 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -6,59 +6,59 @@ import { openFileFromGitHubUrl } from "./openfromUrl" const COMMANDS: [string, IGithubinator][] = [ [ - "extension.githubinator", // + "githubinator.githubinator", // { copyToClipboard: true, openUrl: true }, ], [ - "extension.githubinatorCopy", // + "githubinator.githubinatorCopy", // { copyToClipboard: true }, ], [ - "extension.githubinatorCopyMaster", // + "githubinator.githubinatorCopyMaster", // { copyToClipboard: true, mainBranch: true }, ], [ - "extension.githubinatorCopyPermalink", // + "githubinator.githubinatorCopyPermalink", // { copyToClipboard: true, permalink: true }, ], [ - "extension.githubinatorCopyMasterPermalink", // + "githubinator.githubinatorCopyMasterPermalink", // { copyToClipboard: true, mainBranch: true, permalink: true }, ], [ - "extension.githubinatorOnMaster", // + "githubinator.githubinatorOnMaster", // { copyToClipboard: true, openUrl: true, mainBranch: true }, ], [ - "extension.githubinatorPermalink", // + "githubinator.githubinatorPermalink", // { copyToClipboard: true, openUrl: true, permalink: true }, ], [ - "extension.githubinatorBlame", // + "githubinator.githubinatorBlame", // { copyToClipboard: true, openUrl: true, blame: true }, ], [ - "extension.githubinatorBlameOnMaster", // + "githubinator.githubinatorBlameOnMaster", // { copyToClipboard: true, openUrl: true, blame: true, mainBranch: true }, ], [ - "extension.githubinatorBlamePermalink", // + "githubinator.githubinatorBlamePermalink", // { copyToClipboard: true, openUrl: true, blame: true, permalink: true }, ], [ - "extension.githubinatorHistory", // + "githubinator.githubinatorHistory", // { copyToClipboard: true, openUrl: true, history: true }, ], [ - "extension.githubinatorRepository", // + "githubinator.githubinatorRepository", // { copyToClipboard: true, openUrl: true, openRepo: true }, ], [ - "extension.githubinatorOpenPR", // + "githubinator.githubinatorOpenPR", // { copyToClipboard: false, openUrl: true, openPR: true }, ], [ - "extension.githubinatorCompare", // + "githubinator.githubinatorCompare", // { copyToClipboard: true, openUrl: true, compare: true }, ], ] @@ -86,7 +86,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push(disposable) }) vscode.commands.registerCommand( - "extension.githubinatorOpenFromUrl", + "githubinator.githubinatorOpenFromUrl", openFileFromGitHubUrl, ) @@ -209,7 +209,7 @@ async function githubinator({ const parsedUrl = await new provider( providersConfig, globalDefaultRemote, - remote => git.origin(gitDir, remote), + (remote) => git.origin(gitDir, remote), ).getUrls({ selection, // priority: permalink > branch > branch from HEAD @@ -238,18 +238,18 @@ async function githubinator({ let url = compare ? urls.compareUrl : openPR - ? urls.prUrl - : openRepo - ? urls.repoUrl - : history - ? urls.historyUrl - : blame - ? urls.blameUrl - : urls.blobUrl + ? urls.prUrl + : openRepo + ? urls.repoUrl + : history + ? urls.historyUrl + : blame + ? urls.blameUrl + : urls.blobUrl // file-specific urls will be null when we are using the workspace path. Use // the compare url or repo url if available instead. - const fallbackUrl = [urls.compareUrl, urls.repoUrl].find(x => x != null) + const fallbackUrl = [urls.compareUrl, urls.repoUrl].find((x) => x != null) if (!url && fallbackUrl) { url = fallbackUrl } diff --git a/src/openfromUrl.ts b/src/openfromUrl.ts index 5c19248..5e5bc6c 100644 --- a/src/openfromUrl.ts +++ b/src/openfromUrl.ts @@ -62,18 +62,13 @@ export async function openFileFromGitHubUrl() { // if a branch name has a / in it, this won't work. // // /org/repo/blob/branch/my/file.js -> /my/file.js - const path = - "/" + - url.path - .split("/") - .slice(5) - .join("/") + const path = "/" + url.path.split("/").slice(5).join("/") if (!path) { return } const selection = fragmentToSelection(url.fragment) const results = await Promise.allSettled( - vscode.workspace.workspaceFolders?.map(async folder => { + vscode.workspace.workspaceFolders?.map(async (folder) => { const doc = await vscode.workspace.openTextDocument( folder.uri.fsPath + path, ) @@ -93,5 +88,5 @@ export async function openFileFromGitHubUrl() { } // don't wait for error message so we can trigger command. vscode.window.showErrorMessage("Could not open file from URL.") - await vscode.commands.executeCommand("extension.githubinatorOpenFromUrl") + await vscode.commands.executeCommand("githubinator.githubinatorOpenFromUrl") } diff --git a/src/providers.ts b/src/providers.ts index 1fd1342..16f84fe 100644 --- a/src/providers.ts +++ b/src/providers.ts @@ -93,7 +93,7 @@ abstract class BaseProvider { return null } - if (!this.getHostnames().some(x => parsed.resource.includes(x))) { + if (!this.getHostnames().some((x) => parsed.resource.includes(x))) { return null } @@ -104,7 +104,7 @@ abstract class BaseProvider { export function pathJoin(...args: string[]): string { return path.join( - ...flatten(args.map(x => x.split("/"))).map(encodeURIComponent), + ...flatten(args.map((x) => x.split("/"))).map(encodeURIComponent), ) } @@ -123,8 +123,9 @@ export class Github extends BaseProvider { const rootUrl = `https://${repoInfo.hostname}/` const { start, end } = selection // Github uses 1-based indexing - const lines = `L${start.line + 1}C${start.character + 1}-L${end.line + - 1}C${end.character + 1}` + const lines = `L${start.line + 1}C${start.character + 1}-L${ + end.line + 1 + }C${end.character + 1}` const repoUrl = new url.URL( path.join(repoInfo.org, repoInfo.repo), rootUrl, diff --git a/src/test/suite/providers.test.ts b/src/test/suite/providers.test.ts index df0bbb2..b06dcce 100644 --- a/src/test/suite/providers.test.ts +++ b/src/test/suite/providers.test.ts @@ -116,7 +116,7 @@ suite("Gitlab", async () => { const gl = new Gitlab( {}, "origin", - async _ => "git@gitlab.com:recipeyak/recipeyak.git", + async (_) => "git@gitlab.com:recipeyak/recipeyak.git", ) const result = await gl.getUrls({ selection: { @@ -147,7 +147,7 @@ suite("Gitlab", async () => { gitlab: { hostnames: ["gitlab.mycompany.com"] }, }, "origin", - async _ => "https://gitlab.mycompany.com/recipeyak/recipeyak.git", + async (_) => "https://gitlab.mycompany.com/recipeyak/recipeyak.git", ) const result = await gl.getUrls({ selection: { @@ -180,7 +180,7 @@ suite("Bitbucket", async () => { const bb = new Bitbucket( {}, "origin", - async _ => "git@bitbucket.org:recipeyak/recipeyak.git", + async (_) => "git@bitbucket.org:recipeyak/recipeyak.git", ) const result = await bb.getUrls({ selection: { diff --git a/yarn.lock b/yarn.lock index 99fe967..3148f77 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,27 +2,6 @@ # yarn lockfile v1 -"@babel/code-frame@^7.0.0": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.14.5.tgz#23b08d740e83f49c5e59945fbf1b43e80bbf4edb" - integrity sha512-9pzDqyc6OLDaqe+zbACgFkb6fKMNG6CObKpnYXChRsvYGyEdc7CA2BaqeOM+vOtCS5ndmJicPJhKAwYRI6UfFw== - dependencies: - "@babel/highlight" "^7.14.5" - -"@babel/helper-validator-identifier@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz#d0f0e277c512e0c938277faa85a3968c9a44c0e8" - integrity sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg== - -"@babel/highlight@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.14.5.tgz#6861a52f03966405001f6aa534a01a24d99e8cd9" - integrity sha512-qf9u2WFWVV0MppaL877j2dBtQIDgmidgjGk5VIMw3OadXvYaXn66U1BFlH2t4+t3i+8PhedppRv+i40ABzd+gg== - dependencies: - "@babel/helper-validator-identifier" "^7.14.5" - chalk "^2.0.0" - js-tokens "^4.0.0" - "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -78,14 +57,6 @@ resolved "https://registry.yarnpkg.com/@types/git-url-parse/-/git-url-parse-9.0.1.tgz#1c7cc89527ca8b5afcf260ead3b0e4e373c43938" integrity sha512-Zf9mY4Mz7N3Nyi341nUkOtgVUQn4j6NS4ndqEha/lOgEbTkHzpD7wZuRagYKzrXNtvawWfsrojoC1nhsQexvNA== -"@types/glob@^7.1.3": - version "7.1.3" - resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.1.3.tgz#e6ba80f36b7daad2c685acd9266382e68985c183" - integrity sha512-SEYeGAIQIQX8NN6LDKprLjbrd5dARM5EXsd8GI/A5l0apYI1fGMWgPHSe4ZKL4eozlAyI+doUE9XbYS4xCkQ1w== - dependencies: - "@types/minimatch" "*" - "@types/node" "*" - "@types/ini@^1.3.30": version "1.3.30" resolved "https://registry.yarnpkg.com/@types/ini/-/ini-1.3.30.tgz#d1485459c9fad84e937414b832a2adb649eab379" @@ -101,11 +72,6 @@ resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.170.tgz#0d67711d4bf7f4ca5147e9091b847479b87925d6" integrity sha512-bpcvu/MKHHeYX+qeEN8GE7DIravODWdACVA1ctevD8CN24RhPZIKMn9ntfAsrvLfSX3cR5RrBKAbYm9bGs0A+Q== -"@types/minimatch@*": - version "3.0.4" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21" - integrity sha512-1z8k4wzFnNjVK/tlxvrWuK5WMt6mydWWP7+zvH5eFep4oj+UkrfiJTRtjCeBXNpwaA/FYqqtb4/QS4ianFpIRA== - "@types/mocha@^10.0.2", "@types/mocha@^10.0.6": version "10.0.6" resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.6.tgz#818551d39113081048bdddbef96701b4e8bb9d1b" @@ -183,13 +149,6 @@ ansi-regex@^6.0.1: resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - ansi-styles@^4.0.0, ansi-styles@^4.1.0: version "4.3.0" resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" @@ -215,13 +174,6 @@ anymatch@~3.1.2: normalize-path "^3.0.0" picomatch "^2.0.4" -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - argparse@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" @@ -314,11 +266,6 @@ buffers@~0.1.1: resolved "https://registry.yarnpkg.com/buffers/-/buffers-0.1.1.tgz#b24579c3bed4d6d396aeee6d9a8ae7f5482ab7bb" integrity sha512-9q/rDEGSb/Qsvv2qvzIzdluL5k7AaJOTrw23z9reQthrbF7is4CtlT0DXyO1oei2DCp4uojjzQ7igaSHp1kAEQ== -builtin-modules@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" - integrity sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8= - c8@^9.1.0: version "9.1.0" resolved "https://registry.yarnpkg.com/c8/-/c8-9.1.0.tgz#0e57ba3ab9e5960ab1d650b4a86f71e53cb68112" @@ -356,15 +303,6 @@ chainsaw@~0.1.0: dependencies: traverse ">=0.3.0 <0.4" -chalk@^2.0.0, chalk@^2.3.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" @@ -438,13 +376,6 @@ cliui@^8.0.1: strip-ansi "^6.0.1" wrap-ansi "^7.0.0" -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - color-convert@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" @@ -452,21 +383,11 @@ color-convert@^2.0.1: dependencies: color-name "~1.1.4" -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - color-name@~1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== -commander@^2.12.1: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - concat-map@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" @@ -527,11 +448,6 @@ diff@5.0.0: resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - duplexer2@~0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.1.4.tgz#8b12dab878c0d69e3e7891051662a32fc6bddcc1" @@ -582,16 +498,6 @@ escape-string-regexp@4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - fill-range@^7.0.1: version "7.0.1" resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" @@ -715,18 +621,6 @@ glob@^10.3.10: minipass "^7.1.2" path-scurry "^1.11.1" -glob@^7.1.1, glob@^7.1.7: - version "7.1.7" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" - integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - glob@^7.1.3, glob@^7.1.4: version "7.2.3" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" @@ -744,11 +638,6 @@ graceful-fs@^4.1.2, graceful-fs@^4.2.2, graceful-fs@^4.2.4: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= - has-flag@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" @@ -844,13 +733,6 @@ is-binary-path@~2.1.0: dependencies: binary-extensions "^2.0.0" -is-core-module@^2.2.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.4.0.tgz#8e9fc8e15027b011418026e98f0e6f4d86305cc1" - integrity sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A== - dependencies: - has "^1.0.3" - is-extglob@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" @@ -941,11 +823,6 @@ jackspeak@^3.1.2: optionalDependencies: "@pkgjs/parseargs" "^0.11.0" -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - js-yaml@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" @@ -953,14 +830,6 @@ js-yaml@4.1.0: dependencies: argparse "^2.0.1" -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - jszip@^3.10.1: version "3.10.1" resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2" @@ -1063,11 +932,6 @@ minimatch@^9.0.3, minimatch@^9.0.4: dependencies: brace-expansion "^2.0.1" -minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - minimist@^1.2.6: version "1.2.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" @@ -1085,13 +949,6 @@ minimist@^1.2.6: dependencies: minimist "^1.2.6" -mkdirp@^0.5.1: - version "0.5.5" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.5.tgz#d91cefd62d1436ca0f41620e251288d420099def" - integrity sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ== - dependencies: - minimist "^1.2.5" - mocha@^10.2.0, mocha@^10.4.0: version "10.4.0" resolved "https://registry.yarnpkg.com/mocha/-/mocha-10.4.0.tgz#ed03db96ee9cfc6d20c56f8e2af07b961dbae261" @@ -1240,11 +1097,6 @@ path-key@^3.1.0: resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== -path-parse@^1.0.6: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - path-scurry@^1.11.1: version "1.11.1" resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" @@ -1263,10 +1115,10 @@ picomatch@^2.2.1: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== -prettier@^1.16.4: - version "1.19.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" - integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== +prettier@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.0.tgz#d173ea0524a691d4c0b1181752f2b46724328cdf" + integrity sha512-J9odKxERhCQ10OC2yb93583f6UnYutOeiV5i0zEDS7UGTdUt0u+y8erxl3lBKvwo/JHyyoEdXjwp4dke9oyZ/g== process-nextick-args@~2.0.0: version "2.0.1" @@ -1349,14 +1201,6 @@ require-directory@^2.1.1: resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= -resolve@^1.3.2: - version "1.20.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" - integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== - dependencies: - is-core-module "^2.2.0" - path-parse "^1.0.6" - restore-cursor@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-4.0.0.tgz#519560a4318975096def6e609d44100edaa4ccb9" @@ -1389,11 +1233,6 @@ safe-buffer@~5.1.0, safe-buffer@~5.1.1: resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== -semver@^5.3.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - semver@^7.5.3, semver@^7.6.2: version "7.6.2" resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" @@ -1447,11 +1286,6 @@ split-on-first@^1.0.0: resolved "https://registry.yarnpkg.com/split-on-first/-/split-on-first-1.1.0.tgz#f610afeee3b12bce1d0c30425e76398b78249a5f" integrity sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw== -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= - stdin-discarder@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/stdin-discarder/-/stdin-discarder-0.1.0.tgz#22b3e400393a8e28ebf53f9958f3880622efde21" @@ -1464,7 +1298,16 @@ strict-uri-encode@^2.0.0: resolved "https://registry.yarnpkg.com/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz#b9c7330c7042862f6b142dc274bbcc5866ce3546" integrity sha1-ucczDHBChi9rFC3CdLvMWGbONUY= -"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -1505,7 +1348,14 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -1531,13 +1381,6 @@ supports-color@8.1.1: dependencies: has-flag "^4.0.0" -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - supports-color@^7.1.0: version "7.2.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" @@ -1590,37 +1433,6 @@ to-regex-range@^5.0.1: resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9" integrity sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ== -tslib@^1.8.0, tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tslint@^5.12.1: - version "5.20.1" - resolved "https://registry.yarnpkg.com/tslint/-/tslint-5.20.1.tgz#e401e8aeda0152bc44dd07e614034f3f80c67b7d" - integrity sha512-EcMxhzCFt8k+/UP5r8waCf/lzmeSyVlqxqMEDQE7rWYiQky8KpIBz1JAoYXfROHrPZ1XXd43q8yQnULOLiBRQg== - 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.8.0" - tsutils "^2.29.0" - -tsutils@^2.29.0: - version "2.29.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-2.29.0.tgz#32b488501467acbedd4b85498673a0812aca0b99" - integrity sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA== - dependencies: - tslib "^1.8.1" - typescript@^4.2.2: version "4.3.4" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.4.tgz#3f85b986945bcf31071decdd96cf8bfa65f9dcbc" @@ -1678,7 +1490,16 @@ workerpool@6.2.1: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.1.tgz#46fc150c17d826b86a008e5a4508656777e9c343" integrity sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==