├── .eslintrc.json ├── .gitignore ├── .vscode ├── extensions.json ├── launch.json └── settings.json ├── .vscodeignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── extension.js ├── images ├── default_icon.png ├── delete_capture.gif ├── insert_capture.gif ├── select_capture.gif └── update_capture.gif ├── installTypings.js ├── jsconfig.json ├── package-lock.json ├── package.json ├── scriptDeleteAs.js ├── scriptFuncAs.js ├── scriptInsertAs.js ├── scriptSPAs.js ├── scriptSelectAs.js ├── scriptSqlUtils.js ├── scriptUpdateAs.js ├── test ├── runTest.js └── suite │ ├── extension.test.js │ └── index.js ├── typings └── azdata.proposed.d.ts └── vsc-extension-quickstart.md /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": false, 4 | "commonjs": true, 5 | "es6": true, 6 | "node": true, 7 | "mocha": true 8 | }, 9 | "parserOptions": { 10 | "ecmaVersion": 2018, 11 | "ecmaFeatures": { 12 | "jsx": true 13 | }, 14 | "sourceType": "module" 15 | }, 16 | "rules": { 17 | "no-const-assign": "warn", 18 | "no-this-before-super": "warn", 19 | "no-undef": "warn", 20 | "no-unreachable": "warn", 21 | "no-unused-vars": "warn", 22 | "constructor-super": "warn", 23 | "valid-typeof": "warn" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .vscode-test/ 3 | *.vsix 4 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See https://go.microsoft.com/fwlink/?LinkId=733558 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "dbaeumer.vscode-eslint" 6 | ] 7 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that launches the extension inside a new window 2 | // Use IntelliSense to learn about possible attributes. 3 | // Hover to view descriptions of existing attributes. 4 | // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 | 6 | // To debug the extension: 7 | // 1. please install the "Azure Data Studio Debug" extension into VSCode 8 | // 2. Ensure azuredatastudio is added to your path: 9 | // - open Azure Data Studio 10 | // - run the command "Install 'azuredatastudio' command in PATH" 11 | { 12 | "version": "0.2.0", 13 | "configurations": [ 14 | { 15 | "name": "Extension", 16 | "type": "sqlopsExtensionHost", 17 | "request": "launch", 18 | "runtimeExecutable": "azuredatastudio", 19 | "args": [ 20 | "--extensionDevelopmentPath=${workspaceFolder}" 21 | ], 22 | "timeout": 25000 23 | }, 24 | { 25 | "name": "Extension Tests", 26 | "type": "sqlopsExtensionHost", 27 | "request": "launch", 28 | "runtimeExecutable": "azuredatastudio", 29 | "args": [ 30 | "--extensionDevelopmentPath=${workspaceFolder}", 31 | "--extensionTestsPath=${workspaceFolder}/test" 32 | ] 33 | } 34 | ] 35 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | } -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | test/** 4 | .gitignore 5 | vsc-extension-quickstart.md 6 | **/jsconfig.json 7 | **/*.map 8 | **/.eslintrc.json 9 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to the "extraSqlScriptAs" extension will be documented in this file. 4 | 5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file. 6 | 7 | ## [Unreleased] 8 | 9 | - Initial release -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 pacoweb 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Due to the retirement of Azure Data Studio, the repository is marked read-only!!! 2 | https://devblogs.microsoft.com/azure-sql/azure-data-studio-retirement/ 3 | ## Thank you all 4 | 5 | # Azure Data Studio - 5 "Extra Sql Script As" Extension 6 | 7 | This extension adds several missing options to the context menu of the object tree: 8 | 9 | * Script Table as INSERT 10 | * Script Table as INSERT to clipboard 11 | * Script Table as INSERT SET IDENTITY ON 12 | * Script Table as INSERT SET IDENTITY ON to clipboard 13 | * Script Table as UPDATE 14 | * Script Table as UPDATE to clipboard 15 | * Script Table as DELETE 16 | * Script Table as DELETE to clipboard 17 | * Script Table as SELECT 18 | * Script Stored procedure as DROP AND CREATE 19 | * Script Stored procedure as DROP AND CREATE to clipboard 20 | * Script Function as DROP AND CREATE 21 | * Script Function as DROP AND CREATE to clipboard Script Table as SELECT to clipboard 22 | 23 | ## Features 24 | 25 | #### Script Table as INSERT 26 | ![Import a Script](https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/images/insert_capture.gif) 27 | #### Script Table as UPDATE 28 | ![Import a Script](https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/images/update_capture.gif) 29 | #### Script Table as DELETE 30 | ![Import a Script](https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/images/delete_capture.gif) 31 | #### Script Table as SELECT 32 | ![Import a Script](https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/images/select_capture.gif) 33 | #### Script Stored procedure as DROP AND CREATE 34 | 35 | #### Script Function as DROP AND CREATE 36 | 37 | ## Known Issues 38 | 39 | No open issues at this time. 40 | 41 | ## Unknown Issues 42 | Can be raised here: https://github.com/pacoweb/extraSqlScriptAs/issues 43 | 44 | ## Release Notes 45 | 46 | ### 0.8.0 47 | 48 | - Added Script Stored procedure as DROP AND CREATE 49 | - Added Script Function as DROP AND CREATE 50 | 51 | ### 0.7.0 52 | 53 | - Added support for MySQL provider [@olegrumiancev](https://github.com/olegrumiancev) 54 | 55 | ### 0.6.0 56 | 57 | - Added Script Table as INSERT with SET IDENTITY ON 58 | 59 | ### 0.5.0 60 | 61 | - Added Script Table as SELECT 62 | 63 | ### 0.1.0 64 | 65 | - Initial release. 66 | 67 | ## Star History 68 | 69 | [![Star History Chart](https://api.star-history.com/svg?repos=pacoweb/extraSqlScriptAs&type=Date)](https://star-history.com/#pacoweb/extraSqlScriptAs&Date) 70 | -------------------------------------------------------------------------------- /extension.js: -------------------------------------------------------------------------------- 1 | const vscode = require('vscode'); 2 | const {getSqlScriptAsInsertAsync} = require('./scriptInsertAs.js'); 3 | const {getSqlScriptAsUpdateAsync} = require('./scriptUpdateAs.js'); 4 | const {getSqlScriptAsSelectAsync} = require('./scriptSelectAs.js'); 5 | const {getDeleteSqlScript} = require('./scriptDeleteAs.js'); 6 | const { 7 | getSqlScriptAsDropAndCreateStoredProcedureAsync, 8 | } = require("./scriptSPAs.js"); 9 | const sqlUtils = require('./scriptSqlUtils.js'); 10 | const { getSqlScriptAsDropAndCreateFunctionAsync } = require('./scriptFuncAs.js'); 11 | 12 | const databaseNotFoundMessage = 'Database name not found.'; 13 | 14 | function tryGetBestDatabaseName(context) 15 | { 16 | let databaseName = context.connectionProfile.databaseName; 17 | 18 | if (databaseName) 19 | return databaseName; 20 | 21 | //In Macos, in some cases, the database name is not available in the connection profile. 22 | //In this case, we try to get the database name from metadata.urn 23 | const metadataUrn = context.nodeInfo.metadata.urn; 24 | 25 | if (metadataUrn) { 26 | const regex = /\/Database\[@Name='([^']*)'\]/; 27 | const match = metadataUrn.match(regex); 28 | if (match) return match[1]; 29 | } 30 | 31 | return null; 32 | } 33 | 34 | async function handleCommand(context, getScriptFunc, clipboard = false, identityOn = false) { 35 | let databaseName = tryGetBestDatabaseName(context); 36 | if (!databaseName) { 37 | vscode.window.showErrorMessage(databaseNotFoundMessage); 38 | return; 39 | } 40 | 41 | let schemaName = context.nodeInfo.metadata.schema; 42 | let tableName = context.nodeInfo.metadata.name; 43 | 44 | try { 45 | let scriptText = await getScriptFunc(context.connectionProfile, databaseName, schemaName, tableName, identityOn); 46 | if (clipboard) { 47 | await vscode.env.clipboard.writeText(scriptText); 48 | vscode.window.showInformationMessage('Script copied to clipboard.'); 49 | } else { 50 | await vscode.commands.executeCommand('newQuery'); 51 | let editor = vscode.window.activeTextEditor; 52 | editor.edit(edit => { 53 | edit.insert(new vscode.Position(0, 0), scriptText); 54 | }); 55 | } 56 | } catch (reason) { 57 | vscode.window.showErrorMessage(reason.message); 58 | } 59 | } 60 | 61 | function activate(context) { 62 | 63 | const commands = [ 64 | { name: "extraSqlScriptAs.insertTableToClipboard", func: getSqlScriptAsInsertAsync, clipboard: true }, 65 | { name: "extraSqlScriptAs.insertTable", func: getSqlScriptAsInsertAsync }, 66 | { name: "extraSqlScriptAs.insertTableToClipboardIdentityOn", func: getSqlScriptAsInsertAsync, clipboard: true, identityOn: true }, 67 | { name: "extraSqlScriptAs.insertTableIdentityOn", func: getSqlScriptAsInsertAsync, identityOn: true }, 68 | { name: "extraSqlScriptAs.updateTableToClipboard", func: getSqlScriptAsUpdateAsync, clipboard: true }, 69 | { name: "extraSqlScriptAs.updateTable", func: getSqlScriptAsUpdateAsync }, 70 | { name: "extraSqlScriptAs.deleteTableToClipboard", func: (profile, db, schema, table) => Promise.resolve(getDeleteSqlScript(profile, db, schema, table)), clipboard: true }, 71 | { name: "extraSqlScriptAs.deleteTable", func: (profile, db, schema, table) => Promise.resolve(getDeleteSqlScript(profile, db, schema, table)) }, 72 | { name: "extraSqlScriptAs.selectTableToClipboard", func: getSqlScriptAsSelectAsync, clipboard: true }, 73 | { name: "extraSqlScriptAs.selectTable", func: getSqlScriptAsSelectAsync }, 74 | { name: "extraSqlScriptAs.dropAndCreateStoredProcedureToClipboard", func: getSqlScriptAsDropAndCreateStoredProcedureAsync, clipboard: true }, 75 | { name: "extraSqlScriptAs.dropAndCreateStoredProcedure", func: getSqlScriptAsDropAndCreateStoredProcedureAsync }, 76 | { name: "extraSqlScriptAs.dropAndCreateFunctionToClipboard", func: getSqlScriptAsDropAndCreateFunctionAsync, clipboard: true }, 77 | { name: "extraSqlScriptAs.dropAndCreateFunction", func: getSqlScriptAsDropAndCreateFunctionAsync }, 78 | ]; 79 | 80 | for (const { name, func, clipboard, identityOn } of commands) { 81 | let command = vscode.commands.registerCommand(name, context => handleCommand(context, func, clipboard, identityOn)); 82 | context.subscriptions.push(command); 83 | } 84 | } 85 | 86 | function deactivate() {} 87 | 88 | exports.activate = activate; 89 | exports.deactivate = deactivate; 90 | -------------------------------------------------------------------------------- /images/default_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/958f863a027b89efc277a700fdfc30cbf7ad0743/images/default_icon.png -------------------------------------------------------------------------------- /images/delete_capture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/958f863a027b89efc277a700fdfc30cbf7ad0743/images/delete_capture.gif -------------------------------------------------------------------------------- /images/insert_capture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/958f863a027b89efc277a700fdfc30cbf7ad0743/images/insert_capture.gif -------------------------------------------------------------------------------- /images/select_capture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/958f863a027b89efc277a700fdfc30cbf7ad0743/images/select_capture.gif -------------------------------------------------------------------------------- /images/update_capture.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/958f863a027b89efc277a700fdfc30cbf7ad0743/images/update_capture.gif -------------------------------------------------------------------------------- /installTypings.js: -------------------------------------------------------------------------------- 1 | var https = require('https'); 2 | var fs = require('fs'); 3 | 4 | function download(filename, url) { 5 | var file = fs.createWriteStream(filename); 6 | var request = https.get(url, function(response) { 7 | response.pipe(file); 8 | }); 9 | } 10 | 11 | console.log('Downloading azdata proposed typings'); 12 | download('typings/azdata.proposed.d.ts', 'https://raw.githubusercontent.com/Microsoft/azuredatastudio/master/src/sql/azdata.proposed.d.ts'); 13 | -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "checkJs": true, /* Typecheck .js files. */ 6 | "lib": [ 7 | "es6" 8 | ] 9 | }, 10 | "exclude": [ 11 | "node_modules" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "extra-sql-script-as", 3 | "version": "0.7.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "extra-sql-script-as", 9 | "version": "0.7.0", 10 | "license": "https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/LICENSE", 11 | "devDependencies": { 12 | "@types/azdata": "*", 13 | "@types/glob": "^7.2.0", 14 | "@types/mocha": "^9.0.0", 15 | "@types/node": "^16.11.12", 16 | "@types/vscode": "^1.58.0", 17 | "eslint": "^8.4.1", 18 | "glob": "^7.2.0", 19 | "mocha": "^9.1.3", 20 | "typescript": "^4.5.2", 21 | "vscode-test": "^1.6.1" 22 | }, 23 | "engines": { 24 | "azdata": "*", 25 | "vscode": "^1.58.0" 26 | } 27 | }, 28 | "node_modules/@eslint/eslintrc": { 29 | "version": "1.0.5", 30 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.0.5.tgz", 31 | "integrity": "sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==", 32 | "dev": true, 33 | "dependencies": { 34 | "ajv": "^6.12.4", 35 | "debug": "^4.3.2", 36 | "espree": "^9.2.0", 37 | "globals": "^13.9.0", 38 | "ignore": "^4.0.6", 39 | "import-fresh": "^3.2.1", 40 | "js-yaml": "^4.1.0", 41 | "minimatch": "^3.0.4", 42 | "strip-json-comments": "^3.1.1" 43 | }, 44 | "engines": { 45 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 46 | } 47 | }, 48 | "node_modules/@humanwhocodes/config-array": { 49 | "version": "0.9.2", 50 | "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.9.2.tgz", 51 | "integrity": "sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA==", 52 | "deprecated": "Use @eslint/config-array instead", 53 | "dev": true, 54 | "dependencies": { 55 | "@humanwhocodes/object-schema": "^1.2.1", 56 | "debug": "^4.1.1", 57 | "minimatch": "^3.0.4" 58 | }, 59 | "engines": { 60 | "node": ">=10.10.0" 61 | } 62 | }, 63 | "node_modules/@humanwhocodes/object-schema": { 64 | "version": "1.2.1", 65 | "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", 66 | "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", 67 | "deprecated": "Use @eslint/object-schema instead", 68 | "dev": true 69 | }, 70 | "node_modules/@tootallnate/once": { 71 | "version": "1.1.2", 72 | "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", 73 | "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", 74 | "dev": true, 75 | "engines": { 76 | "node": ">= 6" 77 | } 78 | }, 79 | "node_modules/@types/azdata": { 80 | "version": "1.21.0", 81 | "resolved": "https://registry.npmjs.org/@types/azdata/-/azdata-1.21.0.tgz", 82 | "integrity": "sha512-gK1SdNoNM72U9Zi9xfxr9GqnpjKpKVSC+MnM1YXIyU5UeGEl+Bo6nbr6j6YMEonSyLXECehU1osh3vtfd6BWEg==", 83 | "dev": true, 84 | "dependencies": { 85 | "@types/vscode": "*" 86 | } 87 | }, 88 | "node_modules/@types/glob": { 89 | "version": "7.2.0", 90 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", 91 | "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", 92 | "dev": true, 93 | "dependencies": { 94 | "@types/minimatch": "*", 95 | "@types/node": "*" 96 | } 97 | }, 98 | "node_modules/@types/minimatch": { 99 | "version": "3.0.5", 100 | "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", 101 | "integrity": "sha512-Klz949h02Gz2uZCMGwDUSDS1YBlTdDDgbWHi+81l29tQALUtvz4rAYi5uoVhE5Lagoq6DeqAUlbrHvW/mXDgdQ==", 102 | "dev": true 103 | }, 104 | "node_modules/@types/mocha": { 105 | "version": "9.0.0", 106 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-9.0.0.tgz", 107 | "integrity": "sha512-scN0hAWyLVAvLR9AyW7HoFF5sJZglyBsbPuHO4fv7JRvfmPBMfp1ozWqOf/e4wwPNxezBZXRfWzMb6iFLgEVRA==", 108 | "dev": true 109 | }, 110 | "node_modules/@types/node": { 111 | "version": "16.11.12", 112 | "resolved": "https://registry.npmjs.org/@types/node/-/node-16.11.12.tgz", 113 | "integrity": "sha512-+2Iggwg7PxoO5Kyhvsq9VarmPbIelXP070HMImEpbtGCoyWNINQj4wzjbQCXzdHTRXnqufutJb5KAURZANNBAw==", 114 | "dev": true 115 | }, 116 | "node_modules/@types/vscode": { 117 | "version": "1.63.0", 118 | "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.63.0.tgz", 119 | "integrity": "sha512-iePu1axOi5WSThV6l2TYcciBIpAlMarjBC8H0y8L8ocsZLxh7MttzwFU3pjoItF5fRVGxHS0Hsvje9jO3yJsfw==", 120 | "dev": true 121 | }, 122 | "node_modules/@ungap/promise-all-settled": { 123 | "version": "1.1.2", 124 | "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", 125 | "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", 126 | "dev": true 127 | }, 128 | "node_modules/acorn": { 129 | "version": "8.6.0", 130 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.6.0.tgz", 131 | "integrity": "sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==", 132 | "dev": true, 133 | "bin": { 134 | "acorn": "bin/acorn" 135 | }, 136 | "engines": { 137 | "node": ">=0.4.0" 138 | } 139 | }, 140 | "node_modules/acorn-jsx": { 141 | "version": "5.3.2", 142 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 143 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 144 | "dev": true, 145 | "peerDependencies": { 146 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 147 | } 148 | }, 149 | "node_modules/agent-base": { 150 | "version": "6.0.2", 151 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", 152 | "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", 153 | "dev": true, 154 | "dependencies": { 155 | "debug": "4" 156 | }, 157 | "engines": { 158 | "node": ">= 6.0.0" 159 | } 160 | }, 161 | "node_modules/ajv": { 162 | "version": "6.12.6", 163 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 164 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 165 | "dev": true, 166 | "dependencies": { 167 | "fast-deep-equal": "^3.1.1", 168 | "fast-json-stable-stringify": "^2.0.0", 169 | "json-schema-traverse": "^0.4.1", 170 | "uri-js": "^4.2.2" 171 | }, 172 | "funding": { 173 | "type": "github", 174 | "url": "https://github.com/sponsors/epoberezkin" 175 | } 176 | }, 177 | "node_modules/ansi-colors": { 178 | "version": "4.1.1", 179 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", 180 | "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", 181 | "dev": true, 182 | "engines": { 183 | "node": ">=6" 184 | } 185 | }, 186 | "node_modules/ansi-regex": { 187 | "version": "5.0.1", 188 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 189 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 190 | "dev": true, 191 | "engines": { 192 | "node": ">=8" 193 | } 194 | }, 195 | "node_modules/ansi-styles": { 196 | "version": "4.3.0", 197 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 198 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 199 | "dev": true, 200 | "dependencies": { 201 | "color-convert": "^2.0.1" 202 | }, 203 | "engines": { 204 | "node": ">=8" 205 | }, 206 | "funding": { 207 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 208 | } 209 | }, 210 | "node_modules/anymatch": { 211 | "version": "3.1.2", 212 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", 213 | "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", 214 | "dev": true, 215 | "dependencies": { 216 | "normalize-path": "^3.0.0", 217 | "picomatch": "^2.0.4" 218 | }, 219 | "engines": { 220 | "node": ">= 8" 221 | } 222 | }, 223 | "node_modules/argparse": { 224 | "version": "2.0.1", 225 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 226 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 227 | "dev": true 228 | }, 229 | "node_modules/balanced-match": { 230 | "version": "1.0.2", 231 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 232 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 233 | "dev": true 234 | }, 235 | "node_modules/big-integer": { 236 | "version": "1.6.51", 237 | "resolved": "https://registry.npmjs.org/big-integer/-/big-integer-1.6.51.tgz", 238 | "integrity": "sha512-GPEid2Y9QU1Exl1rpO9B2IPJGHPSupF5GnVIP0blYvNOMer2bTvSWs1jGOUg04hTmu67nmLsQ9TBo1puaotBHg==", 239 | "dev": true, 240 | "engines": { 241 | "node": ">=0.6" 242 | } 243 | }, 244 | "node_modules/binary": { 245 | "version": "0.3.0", 246 | "resolved": "https://registry.npmjs.org/binary/-/binary-0.3.0.tgz", 247 | "integrity": "sha1-n2BVO8XOjDOG87VTz/R0Yq3sqnk=", 248 | "dev": true, 249 | "dependencies": { 250 | "buffers": "~0.1.1", 251 | "chainsaw": "~0.1.0" 252 | }, 253 | "engines": { 254 | "node": "*" 255 | } 256 | }, 257 | "node_modules/binary-extensions": { 258 | "version": "2.2.0", 259 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 260 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 261 | "dev": true, 262 | "engines": { 263 | "node": ">=8" 264 | } 265 | }, 266 | "node_modules/bluebird": { 267 | "version": "3.4.7", 268 | "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.4.7.tgz", 269 | "integrity": "sha1-9y12C+Cbf3bQjtj66Ysomo0F+rM=", 270 | "dev": true 271 | }, 272 | "node_modules/brace-expansion": { 273 | "version": "1.1.11", 274 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 275 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 276 | "dev": true, 277 | "dependencies": { 278 | "balanced-match": "^1.0.0", 279 | "concat-map": "0.0.1" 280 | } 281 | }, 282 | "node_modules/braces": { 283 | "version": "3.0.2", 284 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", 285 | "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", 286 | "dev": true, 287 | "dependencies": { 288 | "fill-range": "^7.0.1" 289 | }, 290 | "engines": { 291 | "node": ">=8" 292 | } 293 | }, 294 | "node_modules/browser-stdout": { 295 | "version": "1.3.1", 296 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 297 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 298 | "dev": true 299 | }, 300 | "node_modules/buffer-indexof-polyfill": { 301 | "version": "1.0.2", 302 | "resolved": "https://registry.npmjs.org/buffer-indexof-polyfill/-/buffer-indexof-polyfill-1.0.2.tgz", 303 | "integrity": "sha512-I7wzHwA3t1/lwXQh+A5PbNvJxgfo5r3xulgpYDB5zckTu/Z9oUK9biouBKQUjEqzaz3HnAT6TYoovmE+GqSf7A==", 304 | "dev": true, 305 | "engines": { 306 | "node": ">=0.10" 307 | } 308 | }, 309 | "node_modules/buffers": { 310 | "version": "0.1.1", 311 | "resolved": "https://registry.npmjs.org/buffers/-/buffers-0.1.1.tgz", 312 | "integrity": "sha1-skV5w77U1tOWru5tmorn9Ugqt7s=", 313 | "dev": true, 314 | "engines": { 315 | "node": ">=0.2.0" 316 | } 317 | }, 318 | "node_modules/callsites": { 319 | "version": "3.1.0", 320 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 321 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 322 | "dev": true, 323 | "engines": { 324 | "node": ">=6" 325 | } 326 | }, 327 | "node_modules/camelcase": { 328 | "version": "6.2.1", 329 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.1.tgz", 330 | "integrity": "sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA==", 331 | "dev": true, 332 | "engines": { 333 | "node": ">=10" 334 | }, 335 | "funding": { 336 | "url": "https://github.com/sponsors/sindresorhus" 337 | } 338 | }, 339 | "node_modules/chainsaw": { 340 | "version": "0.1.0", 341 | "resolved": "https://registry.npmjs.org/chainsaw/-/chainsaw-0.1.0.tgz", 342 | "integrity": "sha1-XqtQsor+WAdNDVgpE4iCi15fvJg=", 343 | "dev": true, 344 | "dependencies": { 345 | "traverse": ">=0.3.0 <0.4" 346 | }, 347 | "engines": { 348 | "node": "*" 349 | } 350 | }, 351 | "node_modules/chalk": { 352 | "version": "4.1.2", 353 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 354 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 355 | "dev": true, 356 | "dependencies": { 357 | "ansi-styles": "^4.1.0", 358 | "supports-color": "^7.1.0" 359 | }, 360 | "engines": { 361 | "node": ">=10" 362 | }, 363 | "funding": { 364 | "url": "https://github.com/chalk/chalk?sponsor=1" 365 | } 366 | }, 367 | "node_modules/chokidar": { 368 | "version": "3.5.2", 369 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.2.tgz", 370 | "integrity": "sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ==", 371 | "dev": true, 372 | "dependencies": { 373 | "anymatch": "~3.1.2", 374 | "braces": "~3.0.2", 375 | "glob-parent": "~5.1.2", 376 | "is-binary-path": "~2.1.0", 377 | "is-glob": "~4.0.1", 378 | "normalize-path": "~3.0.0", 379 | "readdirp": "~3.6.0" 380 | }, 381 | "engines": { 382 | "node": ">= 8.10.0" 383 | }, 384 | "optionalDependencies": { 385 | "fsevents": "~2.3.2" 386 | } 387 | }, 388 | "node_modules/chokidar/node_modules/glob-parent": { 389 | "version": "5.1.2", 390 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 391 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 392 | "dev": true, 393 | "dependencies": { 394 | "is-glob": "^4.0.1" 395 | }, 396 | "engines": { 397 | "node": ">= 6" 398 | } 399 | }, 400 | "node_modules/cliui": { 401 | "version": "7.0.4", 402 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", 403 | "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", 404 | "dev": true, 405 | "dependencies": { 406 | "string-width": "^4.2.0", 407 | "strip-ansi": "^6.0.0", 408 | "wrap-ansi": "^7.0.0" 409 | } 410 | }, 411 | "node_modules/color-convert": { 412 | "version": "2.0.1", 413 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 414 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 415 | "dev": true, 416 | "dependencies": { 417 | "color-name": "~1.1.4" 418 | }, 419 | "engines": { 420 | "node": ">=7.0.0" 421 | } 422 | }, 423 | "node_modules/color-name": { 424 | "version": "1.1.4", 425 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 426 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 427 | "dev": true 428 | }, 429 | "node_modules/concat-map": { 430 | "version": "0.0.1", 431 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 432 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 433 | "dev": true 434 | }, 435 | "node_modules/core-util-is": { 436 | "version": "1.0.3", 437 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 438 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", 439 | "dev": true 440 | }, 441 | "node_modules/cross-spawn": { 442 | "version": "7.0.3", 443 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", 444 | "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", 445 | "dev": true, 446 | "dependencies": { 447 | "path-key": "^3.1.0", 448 | "shebang-command": "^2.0.0", 449 | "which": "^2.0.1" 450 | }, 451 | "engines": { 452 | "node": ">= 8" 453 | } 454 | }, 455 | "node_modules/debug": { 456 | "version": "4.3.3", 457 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.3.tgz", 458 | "integrity": "sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q==", 459 | "dev": true, 460 | "dependencies": { 461 | "ms": "2.1.2" 462 | }, 463 | "engines": { 464 | "node": ">=6.0" 465 | }, 466 | "peerDependenciesMeta": { 467 | "supports-color": { 468 | "optional": true 469 | } 470 | } 471 | }, 472 | "node_modules/decamelize": { 473 | "version": "4.0.0", 474 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 475 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 476 | "dev": true, 477 | "engines": { 478 | "node": ">=10" 479 | }, 480 | "funding": { 481 | "url": "https://github.com/sponsors/sindresorhus" 482 | } 483 | }, 484 | "node_modules/deep-is": { 485 | "version": "0.1.4", 486 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 487 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 488 | "dev": true 489 | }, 490 | "node_modules/diff": { 491 | "version": "5.0.0", 492 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", 493 | "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", 494 | "dev": true, 495 | "engines": { 496 | "node": ">=0.3.1" 497 | } 498 | }, 499 | "node_modules/doctrine": { 500 | "version": "3.0.0", 501 | "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz", 502 | "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", 503 | "dev": true, 504 | "dependencies": { 505 | "esutils": "^2.0.2" 506 | }, 507 | "engines": { 508 | "node": ">=6.0.0" 509 | } 510 | }, 511 | "node_modules/duplexer2": { 512 | "version": "0.1.4", 513 | "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", 514 | "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", 515 | "dev": true, 516 | "dependencies": { 517 | "readable-stream": "^2.0.2" 518 | } 519 | }, 520 | "node_modules/emoji-regex": { 521 | "version": "8.0.0", 522 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 523 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 524 | "dev": true 525 | }, 526 | "node_modules/enquirer": { 527 | "version": "2.3.6", 528 | "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.3.6.tgz", 529 | "integrity": "sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg==", 530 | "dev": true, 531 | "dependencies": { 532 | "ansi-colors": "^4.1.1" 533 | }, 534 | "engines": { 535 | "node": ">=8.6" 536 | } 537 | }, 538 | "node_modules/escalade": { 539 | "version": "3.1.1", 540 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 541 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 542 | "dev": true, 543 | "engines": { 544 | "node": ">=6" 545 | } 546 | }, 547 | "node_modules/escape-string-regexp": { 548 | "version": "4.0.0", 549 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 550 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 551 | "dev": true, 552 | "engines": { 553 | "node": ">=10" 554 | }, 555 | "funding": { 556 | "url": "https://github.com/sponsors/sindresorhus" 557 | } 558 | }, 559 | "node_modules/eslint": { 560 | "version": "8.4.1", 561 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.4.1.tgz", 562 | "integrity": "sha512-TxU/p7LB1KxQ6+7aztTnO7K0i+h0tDi81YRY9VzB6Id71kNz+fFYnf5HD5UOQmxkzcoa0TlVZf9dpMtUv0GpWg==", 563 | "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", 564 | "dev": true, 565 | "dependencies": { 566 | "@eslint/eslintrc": "^1.0.5", 567 | "@humanwhocodes/config-array": "^0.9.2", 568 | "ajv": "^6.10.0", 569 | "chalk": "^4.0.0", 570 | "cross-spawn": "^7.0.2", 571 | "debug": "^4.3.2", 572 | "doctrine": "^3.0.0", 573 | "enquirer": "^2.3.5", 574 | "escape-string-regexp": "^4.0.0", 575 | "eslint-scope": "^7.1.0", 576 | "eslint-utils": "^3.0.0", 577 | "eslint-visitor-keys": "^3.1.0", 578 | "espree": "^9.2.0", 579 | "esquery": "^1.4.0", 580 | "esutils": "^2.0.2", 581 | "fast-deep-equal": "^3.1.3", 582 | "file-entry-cache": "^6.0.1", 583 | "functional-red-black-tree": "^1.0.1", 584 | "glob-parent": "^6.0.1", 585 | "globals": "^13.6.0", 586 | "ignore": "^4.0.6", 587 | "import-fresh": "^3.0.0", 588 | "imurmurhash": "^0.1.4", 589 | "is-glob": "^4.0.0", 590 | "js-yaml": "^4.1.0", 591 | "json-stable-stringify-without-jsonify": "^1.0.1", 592 | "levn": "^0.4.1", 593 | "lodash.merge": "^4.6.2", 594 | "minimatch": "^3.0.4", 595 | "natural-compare": "^1.4.0", 596 | "optionator": "^0.9.1", 597 | "progress": "^2.0.0", 598 | "regexpp": "^3.2.0", 599 | "semver": "^7.2.1", 600 | "strip-ansi": "^6.0.1", 601 | "strip-json-comments": "^3.1.0", 602 | "text-table": "^0.2.0", 603 | "v8-compile-cache": "^2.0.3" 604 | }, 605 | "bin": { 606 | "eslint": "bin/eslint.js" 607 | }, 608 | "engines": { 609 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 610 | }, 611 | "funding": { 612 | "url": "https://opencollective.com/eslint" 613 | } 614 | }, 615 | "node_modules/eslint-scope": { 616 | "version": "7.1.0", 617 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.0.tgz", 618 | "integrity": "sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==", 619 | "dev": true, 620 | "dependencies": { 621 | "esrecurse": "^4.3.0", 622 | "estraverse": "^5.2.0" 623 | }, 624 | "engines": { 625 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 626 | } 627 | }, 628 | "node_modules/eslint-utils": { 629 | "version": "3.0.0", 630 | "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", 631 | "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", 632 | "dev": true, 633 | "dependencies": { 634 | "eslint-visitor-keys": "^2.0.0" 635 | }, 636 | "engines": { 637 | "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" 638 | }, 639 | "funding": { 640 | "url": "https://github.com/sponsors/mysticatea" 641 | }, 642 | "peerDependencies": { 643 | "eslint": ">=5" 644 | } 645 | }, 646 | "node_modules/eslint-utils/node_modules/eslint-visitor-keys": { 647 | "version": "2.1.0", 648 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", 649 | "integrity": "sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw==", 650 | "dev": true, 651 | "engines": { 652 | "node": ">=10" 653 | } 654 | }, 655 | "node_modules/eslint-visitor-keys": { 656 | "version": "3.1.0", 657 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz", 658 | "integrity": "sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==", 659 | "dev": true, 660 | "engines": { 661 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 662 | } 663 | }, 664 | "node_modules/espree": { 665 | "version": "9.2.0", 666 | "resolved": "https://registry.npmjs.org/espree/-/espree-9.2.0.tgz", 667 | "integrity": "sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==", 668 | "dev": true, 669 | "dependencies": { 670 | "acorn": "^8.6.0", 671 | "acorn-jsx": "^5.3.1", 672 | "eslint-visitor-keys": "^3.1.0" 673 | }, 674 | "engines": { 675 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 676 | } 677 | }, 678 | "node_modules/esquery": { 679 | "version": "1.4.0", 680 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", 681 | "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", 682 | "dev": true, 683 | "dependencies": { 684 | "estraverse": "^5.1.0" 685 | }, 686 | "engines": { 687 | "node": ">=0.10" 688 | } 689 | }, 690 | "node_modules/esrecurse": { 691 | "version": "4.3.0", 692 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 693 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 694 | "dev": true, 695 | "dependencies": { 696 | "estraverse": "^5.2.0" 697 | }, 698 | "engines": { 699 | "node": ">=4.0" 700 | } 701 | }, 702 | "node_modules/estraverse": { 703 | "version": "5.3.0", 704 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 705 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 706 | "dev": true, 707 | "engines": { 708 | "node": ">=4.0" 709 | } 710 | }, 711 | "node_modules/esutils": { 712 | "version": "2.0.3", 713 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 714 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 715 | "dev": true, 716 | "engines": { 717 | "node": ">=0.10.0" 718 | } 719 | }, 720 | "node_modules/fast-deep-equal": { 721 | "version": "3.1.3", 722 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 723 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 724 | "dev": true 725 | }, 726 | "node_modules/fast-json-stable-stringify": { 727 | "version": "2.1.0", 728 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 729 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 730 | "dev": true 731 | }, 732 | "node_modules/fast-levenshtein": { 733 | "version": "2.0.6", 734 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 735 | "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", 736 | "dev": true 737 | }, 738 | "node_modules/file-entry-cache": { 739 | "version": "6.0.1", 740 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", 741 | "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", 742 | "dev": true, 743 | "dependencies": { 744 | "flat-cache": "^3.0.4" 745 | }, 746 | "engines": { 747 | "node": "^10.12.0 || >=12.0.0" 748 | } 749 | }, 750 | "node_modules/fill-range": { 751 | "version": "7.0.1", 752 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", 753 | "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", 754 | "dev": true, 755 | "dependencies": { 756 | "to-regex-range": "^5.0.1" 757 | }, 758 | "engines": { 759 | "node": ">=8" 760 | } 761 | }, 762 | "node_modules/find-up": { 763 | "version": "5.0.0", 764 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 765 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 766 | "dev": true, 767 | "dependencies": { 768 | "locate-path": "^6.0.0", 769 | "path-exists": "^4.0.0" 770 | }, 771 | "engines": { 772 | "node": ">=10" 773 | }, 774 | "funding": { 775 | "url": "https://github.com/sponsors/sindresorhus" 776 | } 777 | }, 778 | "node_modules/flat": { 779 | "version": "5.0.2", 780 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 781 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 782 | "dev": true, 783 | "bin": { 784 | "flat": "cli.js" 785 | } 786 | }, 787 | "node_modules/flat-cache": { 788 | "version": "3.0.4", 789 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz", 790 | "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==", 791 | "dev": true, 792 | "dependencies": { 793 | "flatted": "^3.1.0", 794 | "rimraf": "^3.0.2" 795 | }, 796 | "engines": { 797 | "node": "^10.12.0 || >=12.0.0" 798 | } 799 | }, 800 | "node_modules/flatted": { 801 | "version": "3.2.4", 802 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.4.tgz", 803 | "integrity": "sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw==", 804 | "dev": true 805 | }, 806 | "node_modules/fs.realpath": { 807 | "version": "1.0.0", 808 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 809 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 810 | "dev": true 811 | }, 812 | "node_modules/fsevents": { 813 | "version": "2.3.2", 814 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 815 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 816 | "dev": true, 817 | "hasInstallScript": true, 818 | "optional": true, 819 | "os": [ 820 | "darwin" 821 | ], 822 | "engines": { 823 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 824 | } 825 | }, 826 | "node_modules/fstream": { 827 | "version": "1.0.12", 828 | "resolved": "https://registry.npmjs.org/fstream/-/fstream-1.0.12.tgz", 829 | "integrity": "sha512-WvJ193OHa0GHPEL+AycEJgxvBEwyfRkN1vhjca23OaPVMCaLCXTd5qAu82AjTcgP1UJmytkOKb63Ypde7raDIg==", 830 | "deprecated": "This package is no longer supported.", 831 | "dev": true, 832 | "dependencies": { 833 | "graceful-fs": "^4.1.2", 834 | "inherits": "~2.0.0", 835 | "mkdirp": ">=0.5 0", 836 | "rimraf": "2" 837 | }, 838 | "engines": { 839 | "node": ">=0.6" 840 | } 841 | }, 842 | "node_modules/fstream/node_modules/rimraf": { 843 | "version": "2.7.1", 844 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", 845 | "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", 846 | "deprecated": "Rimraf versions prior to v4 are no longer supported", 847 | "dev": true, 848 | "dependencies": { 849 | "glob": "^7.1.3" 850 | }, 851 | "bin": { 852 | "rimraf": "bin.js" 853 | } 854 | }, 855 | "node_modules/functional-red-black-tree": { 856 | "version": "1.0.1", 857 | "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", 858 | "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", 859 | "dev": true 860 | }, 861 | "node_modules/get-caller-file": { 862 | "version": "2.0.5", 863 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 864 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 865 | "dev": true, 866 | "engines": { 867 | "node": "6.* || 8.* || >= 10.*" 868 | } 869 | }, 870 | "node_modules/glob": { 871 | "version": "7.2.0", 872 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", 873 | "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", 874 | "deprecated": "Glob versions prior to v9 are no longer supported", 875 | "dev": true, 876 | "dependencies": { 877 | "fs.realpath": "^1.0.0", 878 | "inflight": "^1.0.4", 879 | "inherits": "2", 880 | "minimatch": "^3.0.4", 881 | "once": "^1.3.0", 882 | "path-is-absolute": "^1.0.0" 883 | }, 884 | "engines": { 885 | "node": "*" 886 | }, 887 | "funding": { 888 | "url": "https://github.com/sponsors/isaacs" 889 | } 890 | }, 891 | "node_modules/glob-parent": { 892 | "version": "6.0.2", 893 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 894 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 895 | "dev": true, 896 | "dependencies": { 897 | "is-glob": "^4.0.3" 898 | }, 899 | "engines": { 900 | "node": ">=10.13.0" 901 | } 902 | }, 903 | "node_modules/globals": { 904 | "version": "13.12.0", 905 | "resolved": "https://registry.npmjs.org/globals/-/globals-13.12.0.tgz", 906 | "integrity": "sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg==", 907 | "dev": true, 908 | "dependencies": { 909 | "type-fest": "^0.20.2" 910 | }, 911 | "engines": { 912 | "node": ">=8" 913 | }, 914 | "funding": { 915 | "url": "https://github.com/sponsors/sindresorhus" 916 | } 917 | }, 918 | "node_modules/graceful-fs": { 919 | "version": "4.2.8", 920 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.8.tgz", 921 | "integrity": "sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg==", 922 | "dev": true 923 | }, 924 | "node_modules/growl": { 925 | "version": "1.10.5", 926 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 927 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 928 | "dev": true, 929 | "engines": { 930 | "node": ">=4.x" 931 | } 932 | }, 933 | "node_modules/has-flag": { 934 | "version": "4.0.0", 935 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 936 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 937 | "dev": true, 938 | "engines": { 939 | "node": ">=8" 940 | } 941 | }, 942 | "node_modules/he": { 943 | "version": "1.2.0", 944 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 945 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 946 | "dev": true, 947 | "bin": { 948 | "he": "bin/he" 949 | } 950 | }, 951 | "node_modules/http-proxy-agent": { 952 | "version": "4.0.1", 953 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", 954 | "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", 955 | "dev": true, 956 | "dependencies": { 957 | "@tootallnate/once": "1", 958 | "agent-base": "6", 959 | "debug": "4" 960 | }, 961 | "engines": { 962 | "node": ">= 6" 963 | } 964 | }, 965 | "node_modules/https-proxy-agent": { 966 | "version": "5.0.0", 967 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", 968 | "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", 969 | "dev": true, 970 | "dependencies": { 971 | "agent-base": "6", 972 | "debug": "4" 973 | }, 974 | "engines": { 975 | "node": ">= 6" 976 | } 977 | }, 978 | "node_modules/ignore": { 979 | "version": "4.0.6", 980 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", 981 | "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", 982 | "dev": true, 983 | "engines": { 984 | "node": ">= 4" 985 | } 986 | }, 987 | "node_modules/import-fresh": { 988 | "version": "3.3.0", 989 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 990 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 991 | "dev": true, 992 | "dependencies": { 993 | "parent-module": "^1.0.0", 994 | "resolve-from": "^4.0.0" 995 | }, 996 | "engines": { 997 | "node": ">=6" 998 | }, 999 | "funding": { 1000 | "url": "https://github.com/sponsors/sindresorhus" 1001 | } 1002 | }, 1003 | "node_modules/imurmurhash": { 1004 | "version": "0.1.4", 1005 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1006 | "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", 1007 | "dev": true, 1008 | "engines": { 1009 | "node": ">=0.8.19" 1010 | } 1011 | }, 1012 | "node_modules/inflight": { 1013 | "version": "1.0.6", 1014 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1015 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1016 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 1017 | "dev": true, 1018 | "dependencies": { 1019 | "once": "^1.3.0", 1020 | "wrappy": "1" 1021 | } 1022 | }, 1023 | "node_modules/inherits": { 1024 | "version": "2.0.4", 1025 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1026 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1027 | "dev": true 1028 | }, 1029 | "node_modules/is-binary-path": { 1030 | "version": "2.1.0", 1031 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1032 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1033 | "dev": true, 1034 | "dependencies": { 1035 | "binary-extensions": "^2.0.0" 1036 | }, 1037 | "engines": { 1038 | "node": ">=8" 1039 | } 1040 | }, 1041 | "node_modules/is-extglob": { 1042 | "version": "2.1.1", 1043 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1044 | "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", 1045 | "dev": true, 1046 | "engines": { 1047 | "node": ">=0.10.0" 1048 | } 1049 | }, 1050 | "node_modules/is-fullwidth-code-point": { 1051 | "version": "3.0.0", 1052 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1053 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1054 | "dev": true, 1055 | "engines": { 1056 | "node": ">=8" 1057 | } 1058 | }, 1059 | "node_modules/is-glob": { 1060 | "version": "4.0.3", 1061 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1062 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1063 | "dev": true, 1064 | "dependencies": { 1065 | "is-extglob": "^2.1.1" 1066 | }, 1067 | "engines": { 1068 | "node": ">=0.10.0" 1069 | } 1070 | }, 1071 | "node_modules/is-number": { 1072 | "version": "7.0.0", 1073 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1074 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1075 | "dev": true, 1076 | "engines": { 1077 | "node": ">=0.12.0" 1078 | } 1079 | }, 1080 | "node_modules/is-plain-obj": { 1081 | "version": "2.1.0", 1082 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1083 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1084 | "dev": true, 1085 | "engines": { 1086 | "node": ">=8" 1087 | } 1088 | }, 1089 | "node_modules/is-unicode-supported": { 1090 | "version": "0.1.0", 1091 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 1092 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 1093 | "dev": true, 1094 | "engines": { 1095 | "node": ">=10" 1096 | }, 1097 | "funding": { 1098 | "url": "https://github.com/sponsors/sindresorhus" 1099 | } 1100 | }, 1101 | "node_modules/isarray": { 1102 | "version": "1.0.0", 1103 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1104 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1105 | "dev": true 1106 | }, 1107 | "node_modules/isexe": { 1108 | "version": "2.0.0", 1109 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1110 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 1111 | "dev": true 1112 | }, 1113 | "node_modules/js-yaml": { 1114 | "version": "4.1.0", 1115 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1116 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1117 | "dev": true, 1118 | "dependencies": { 1119 | "argparse": "^2.0.1" 1120 | }, 1121 | "bin": { 1122 | "js-yaml": "bin/js-yaml.js" 1123 | } 1124 | }, 1125 | "node_modules/json-schema-traverse": { 1126 | "version": "0.4.1", 1127 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1128 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1129 | "dev": true 1130 | }, 1131 | "node_modules/json-stable-stringify-without-jsonify": { 1132 | "version": "1.0.1", 1133 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1134 | "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", 1135 | "dev": true 1136 | }, 1137 | "node_modules/levn": { 1138 | "version": "0.4.1", 1139 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1140 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1141 | "dev": true, 1142 | "dependencies": { 1143 | "prelude-ls": "^1.2.1", 1144 | "type-check": "~0.4.0" 1145 | }, 1146 | "engines": { 1147 | "node": ">= 0.8.0" 1148 | } 1149 | }, 1150 | "node_modules/listenercount": { 1151 | "version": "1.0.1", 1152 | "resolved": "https://registry.npmjs.org/listenercount/-/listenercount-1.0.1.tgz", 1153 | "integrity": "sha1-hMinKrWcRyUyFIDJdeZQg0LnCTc=", 1154 | "dev": true 1155 | }, 1156 | "node_modules/locate-path": { 1157 | "version": "6.0.0", 1158 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1159 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1160 | "dev": true, 1161 | "dependencies": { 1162 | "p-locate": "^5.0.0" 1163 | }, 1164 | "engines": { 1165 | "node": ">=10" 1166 | }, 1167 | "funding": { 1168 | "url": "https://github.com/sponsors/sindresorhus" 1169 | } 1170 | }, 1171 | "node_modules/lodash.merge": { 1172 | "version": "4.6.2", 1173 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1174 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1175 | "dev": true 1176 | }, 1177 | "node_modules/log-symbols": { 1178 | "version": "4.1.0", 1179 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 1180 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 1181 | "dev": true, 1182 | "dependencies": { 1183 | "chalk": "^4.1.0", 1184 | "is-unicode-supported": "^0.1.0" 1185 | }, 1186 | "engines": { 1187 | "node": ">=10" 1188 | }, 1189 | "funding": { 1190 | "url": "https://github.com/sponsors/sindresorhus" 1191 | } 1192 | }, 1193 | "node_modules/lru-cache": { 1194 | "version": "6.0.0", 1195 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 1196 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 1197 | "dev": true, 1198 | "dependencies": { 1199 | "yallist": "^4.0.0" 1200 | }, 1201 | "engines": { 1202 | "node": ">=10" 1203 | } 1204 | }, 1205 | "node_modules/minimatch": { 1206 | "version": "3.0.4", 1207 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1208 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1209 | "dev": true, 1210 | "dependencies": { 1211 | "brace-expansion": "^1.1.7" 1212 | }, 1213 | "engines": { 1214 | "node": "*" 1215 | } 1216 | }, 1217 | "node_modules/minimist": { 1218 | "version": "1.2.5", 1219 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", 1220 | "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", 1221 | "dev": true 1222 | }, 1223 | "node_modules/mkdirp": { 1224 | "version": "0.5.5", 1225 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", 1226 | "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", 1227 | "dev": true, 1228 | "dependencies": { 1229 | "minimist": "^1.2.5" 1230 | }, 1231 | "bin": { 1232 | "mkdirp": "bin/cmd.js" 1233 | } 1234 | }, 1235 | "node_modules/mocha": { 1236 | "version": "9.1.3", 1237 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-9.1.3.tgz", 1238 | "integrity": "sha512-Xcpl9FqXOAYqI3j79pEtHBBnQgVXIhpULjGQa7DVb0Po+VzmSIK9kanAiWLHoRR/dbZ2qpdPshuXr8l1VaHCzw==", 1239 | "dev": true, 1240 | "dependencies": { 1241 | "@ungap/promise-all-settled": "1.1.2", 1242 | "ansi-colors": "4.1.1", 1243 | "browser-stdout": "1.3.1", 1244 | "chokidar": "3.5.2", 1245 | "debug": "4.3.2", 1246 | "diff": "5.0.0", 1247 | "escape-string-regexp": "4.0.0", 1248 | "find-up": "5.0.0", 1249 | "glob": "7.1.7", 1250 | "growl": "1.10.5", 1251 | "he": "1.2.0", 1252 | "js-yaml": "4.1.0", 1253 | "log-symbols": "4.1.0", 1254 | "minimatch": "3.0.4", 1255 | "ms": "2.1.3", 1256 | "nanoid": "3.1.25", 1257 | "serialize-javascript": "6.0.0", 1258 | "strip-json-comments": "3.1.1", 1259 | "supports-color": "8.1.1", 1260 | "which": "2.0.2", 1261 | "workerpool": "6.1.5", 1262 | "yargs": "16.2.0", 1263 | "yargs-parser": "20.2.4", 1264 | "yargs-unparser": "2.0.0" 1265 | }, 1266 | "bin": { 1267 | "_mocha": "bin/_mocha", 1268 | "mocha": "bin/mocha" 1269 | }, 1270 | "engines": { 1271 | "node": ">= 12.0.0" 1272 | }, 1273 | "funding": { 1274 | "type": "opencollective", 1275 | "url": "https://opencollective.com/mochajs" 1276 | } 1277 | }, 1278 | "node_modules/mocha/node_modules/debug": { 1279 | "version": "4.3.2", 1280 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", 1281 | "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", 1282 | "dev": true, 1283 | "dependencies": { 1284 | "ms": "2.1.2" 1285 | }, 1286 | "engines": { 1287 | "node": ">=6.0" 1288 | }, 1289 | "peerDependenciesMeta": { 1290 | "supports-color": { 1291 | "optional": true 1292 | } 1293 | } 1294 | }, 1295 | "node_modules/mocha/node_modules/debug/node_modules/ms": { 1296 | "version": "2.1.2", 1297 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1298 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1299 | "dev": true 1300 | }, 1301 | "node_modules/mocha/node_modules/glob": { 1302 | "version": "7.1.7", 1303 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz", 1304 | "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==", 1305 | "deprecated": "Glob versions prior to v9 are no longer supported", 1306 | "dev": true, 1307 | "dependencies": { 1308 | "fs.realpath": "^1.0.0", 1309 | "inflight": "^1.0.4", 1310 | "inherits": "2", 1311 | "minimatch": "^3.0.4", 1312 | "once": "^1.3.0", 1313 | "path-is-absolute": "^1.0.0" 1314 | }, 1315 | "engines": { 1316 | "node": "*" 1317 | }, 1318 | "funding": { 1319 | "url": "https://github.com/sponsors/isaacs" 1320 | } 1321 | }, 1322 | "node_modules/mocha/node_modules/ms": { 1323 | "version": "2.1.3", 1324 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1325 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1326 | "dev": true 1327 | }, 1328 | "node_modules/mocha/node_modules/supports-color": { 1329 | "version": "8.1.1", 1330 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1331 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1332 | "dev": true, 1333 | "dependencies": { 1334 | "has-flag": "^4.0.0" 1335 | }, 1336 | "engines": { 1337 | "node": ">=10" 1338 | }, 1339 | "funding": { 1340 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1341 | } 1342 | }, 1343 | "node_modules/ms": { 1344 | "version": "2.1.2", 1345 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1346 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1347 | "dev": true 1348 | }, 1349 | "node_modules/nanoid": { 1350 | "version": "3.1.25", 1351 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.25.tgz", 1352 | "integrity": "sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q==", 1353 | "dev": true, 1354 | "bin": { 1355 | "nanoid": "bin/nanoid.cjs" 1356 | }, 1357 | "engines": { 1358 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1359 | } 1360 | }, 1361 | "node_modules/natural-compare": { 1362 | "version": "1.4.0", 1363 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1364 | "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", 1365 | "dev": true 1366 | }, 1367 | "node_modules/normalize-path": { 1368 | "version": "3.0.0", 1369 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1370 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1371 | "dev": true, 1372 | "engines": { 1373 | "node": ">=0.10.0" 1374 | } 1375 | }, 1376 | "node_modules/once": { 1377 | "version": "1.4.0", 1378 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1379 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1380 | "dev": true, 1381 | "dependencies": { 1382 | "wrappy": "1" 1383 | } 1384 | }, 1385 | "node_modules/optionator": { 1386 | "version": "0.9.1", 1387 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", 1388 | "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", 1389 | "dev": true, 1390 | "dependencies": { 1391 | "deep-is": "^0.1.3", 1392 | "fast-levenshtein": "^2.0.6", 1393 | "levn": "^0.4.1", 1394 | "prelude-ls": "^1.2.1", 1395 | "type-check": "^0.4.0", 1396 | "word-wrap": "^1.2.3" 1397 | }, 1398 | "engines": { 1399 | "node": ">= 0.8.0" 1400 | } 1401 | }, 1402 | "node_modules/p-limit": { 1403 | "version": "3.1.0", 1404 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1405 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1406 | "dev": true, 1407 | "dependencies": { 1408 | "yocto-queue": "^0.1.0" 1409 | }, 1410 | "engines": { 1411 | "node": ">=10" 1412 | }, 1413 | "funding": { 1414 | "url": "https://github.com/sponsors/sindresorhus" 1415 | } 1416 | }, 1417 | "node_modules/p-locate": { 1418 | "version": "5.0.0", 1419 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1420 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1421 | "dev": true, 1422 | "dependencies": { 1423 | "p-limit": "^3.0.2" 1424 | }, 1425 | "engines": { 1426 | "node": ">=10" 1427 | }, 1428 | "funding": { 1429 | "url": "https://github.com/sponsors/sindresorhus" 1430 | } 1431 | }, 1432 | "node_modules/parent-module": { 1433 | "version": "1.0.1", 1434 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1435 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1436 | "dev": true, 1437 | "dependencies": { 1438 | "callsites": "^3.0.0" 1439 | }, 1440 | "engines": { 1441 | "node": ">=6" 1442 | } 1443 | }, 1444 | "node_modules/path-exists": { 1445 | "version": "4.0.0", 1446 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1447 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1448 | "dev": true, 1449 | "engines": { 1450 | "node": ">=8" 1451 | } 1452 | }, 1453 | "node_modules/path-is-absolute": { 1454 | "version": "1.0.1", 1455 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1456 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1457 | "dev": true, 1458 | "engines": { 1459 | "node": ">=0.10.0" 1460 | } 1461 | }, 1462 | "node_modules/path-key": { 1463 | "version": "3.1.1", 1464 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1465 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1466 | "dev": true, 1467 | "engines": { 1468 | "node": ">=8" 1469 | } 1470 | }, 1471 | "node_modules/picomatch": { 1472 | "version": "2.3.0", 1473 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.0.tgz", 1474 | "integrity": "sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw==", 1475 | "dev": true, 1476 | "engines": { 1477 | "node": ">=8.6" 1478 | }, 1479 | "funding": { 1480 | "url": "https://github.com/sponsors/jonschlinkert" 1481 | } 1482 | }, 1483 | "node_modules/prelude-ls": { 1484 | "version": "1.2.1", 1485 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1486 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1487 | "dev": true, 1488 | "engines": { 1489 | "node": ">= 0.8.0" 1490 | } 1491 | }, 1492 | "node_modules/process-nextick-args": { 1493 | "version": "2.0.1", 1494 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1495 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1496 | "dev": true 1497 | }, 1498 | "node_modules/progress": { 1499 | "version": "2.0.3", 1500 | "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", 1501 | "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", 1502 | "dev": true, 1503 | "engines": { 1504 | "node": ">=0.4.0" 1505 | } 1506 | }, 1507 | "node_modules/punycode": { 1508 | "version": "2.1.1", 1509 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 1510 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 1511 | "dev": true, 1512 | "engines": { 1513 | "node": ">=6" 1514 | } 1515 | }, 1516 | "node_modules/randombytes": { 1517 | "version": "2.1.0", 1518 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1519 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1520 | "dev": true, 1521 | "dependencies": { 1522 | "safe-buffer": "^5.1.0" 1523 | } 1524 | }, 1525 | "node_modules/readable-stream": { 1526 | "version": "2.3.7", 1527 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", 1528 | "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", 1529 | "dev": true, 1530 | "dependencies": { 1531 | "core-util-is": "~1.0.0", 1532 | "inherits": "~2.0.3", 1533 | "isarray": "~1.0.0", 1534 | "process-nextick-args": "~2.0.0", 1535 | "safe-buffer": "~5.1.1", 1536 | "string_decoder": "~1.1.1", 1537 | "util-deprecate": "~1.0.1" 1538 | } 1539 | }, 1540 | "node_modules/readable-stream/node_modules/safe-buffer": { 1541 | "version": "5.1.2", 1542 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1543 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1544 | "dev": true 1545 | }, 1546 | "node_modules/readdirp": { 1547 | "version": "3.6.0", 1548 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1549 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1550 | "dev": true, 1551 | "dependencies": { 1552 | "picomatch": "^2.2.1" 1553 | }, 1554 | "engines": { 1555 | "node": ">=8.10.0" 1556 | } 1557 | }, 1558 | "node_modules/regexpp": { 1559 | "version": "3.2.0", 1560 | "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", 1561 | "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", 1562 | "dev": true, 1563 | "engines": { 1564 | "node": ">=8" 1565 | }, 1566 | "funding": { 1567 | "url": "https://github.com/sponsors/mysticatea" 1568 | } 1569 | }, 1570 | "node_modules/require-directory": { 1571 | "version": "2.1.1", 1572 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1573 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 1574 | "dev": true, 1575 | "engines": { 1576 | "node": ">=0.10.0" 1577 | } 1578 | }, 1579 | "node_modules/resolve-from": { 1580 | "version": "4.0.0", 1581 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1582 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1583 | "dev": true, 1584 | "engines": { 1585 | "node": ">=4" 1586 | } 1587 | }, 1588 | "node_modules/rimraf": { 1589 | "version": "3.0.2", 1590 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", 1591 | "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", 1592 | "deprecated": "Rimraf versions prior to v4 are no longer supported", 1593 | "dev": true, 1594 | "dependencies": { 1595 | "glob": "^7.1.3" 1596 | }, 1597 | "bin": { 1598 | "rimraf": "bin.js" 1599 | }, 1600 | "funding": { 1601 | "url": "https://github.com/sponsors/isaacs" 1602 | } 1603 | }, 1604 | "node_modules/safe-buffer": { 1605 | "version": "5.2.1", 1606 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1607 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1608 | "dev": true, 1609 | "funding": [ 1610 | { 1611 | "type": "github", 1612 | "url": "https://github.com/sponsors/feross" 1613 | }, 1614 | { 1615 | "type": "patreon", 1616 | "url": "https://www.patreon.com/feross" 1617 | }, 1618 | { 1619 | "type": "consulting", 1620 | "url": "https://feross.org/support" 1621 | } 1622 | ] 1623 | }, 1624 | "node_modules/semver": { 1625 | "version": "7.3.5", 1626 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", 1627 | "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", 1628 | "dev": true, 1629 | "dependencies": { 1630 | "lru-cache": "^6.0.0" 1631 | }, 1632 | "bin": { 1633 | "semver": "bin/semver.js" 1634 | }, 1635 | "engines": { 1636 | "node": ">=10" 1637 | } 1638 | }, 1639 | "node_modules/serialize-javascript": { 1640 | "version": "6.0.0", 1641 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", 1642 | "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", 1643 | "dev": true, 1644 | "dependencies": { 1645 | "randombytes": "^2.1.0" 1646 | } 1647 | }, 1648 | "node_modules/setimmediate": { 1649 | "version": "1.0.5", 1650 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 1651 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 1652 | "dev": true 1653 | }, 1654 | "node_modules/shebang-command": { 1655 | "version": "2.0.0", 1656 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1657 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1658 | "dev": true, 1659 | "dependencies": { 1660 | "shebang-regex": "^3.0.0" 1661 | }, 1662 | "engines": { 1663 | "node": ">=8" 1664 | } 1665 | }, 1666 | "node_modules/shebang-regex": { 1667 | "version": "3.0.0", 1668 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1669 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1670 | "dev": true, 1671 | "engines": { 1672 | "node": ">=8" 1673 | } 1674 | }, 1675 | "node_modules/string_decoder": { 1676 | "version": "1.1.1", 1677 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1678 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1679 | "dev": true, 1680 | "dependencies": { 1681 | "safe-buffer": "~5.1.0" 1682 | } 1683 | }, 1684 | "node_modules/string_decoder/node_modules/safe-buffer": { 1685 | "version": "5.1.2", 1686 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1687 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1688 | "dev": true 1689 | }, 1690 | "node_modules/string-width": { 1691 | "version": "4.2.3", 1692 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1693 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1694 | "dev": true, 1695 | "dependencies": { 1696 | "emoji-regex": "^8.0.0", 1697 | "is-fullwidth-code-point": "^3.0.0", 1698 | "strip-ansi": "^6.0.1" 1699 | }, 1700 | "engines": { 1701 | "node": ">=8" 1702 | } 1703 | }, 1704 | "node_modules/strip-ansi": { 1705 | "version": "6.0.1", 1706 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1707 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1708 | "dev": true, 1709 | "dependencies": { 1710 | "ansi-regex": "^5.0.1" 1711 | }, 1712 | "engines": { 1713 | "node": ">=8" 1714 | } 1715 | }, 1716 | "node_modules/strip-json-comments": { 1717 | "version": "3.1.1", 1718 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1719 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1720 | "dev": true, 1721 | "engines": { 1722 | "node": ">=8" 1723 | }, 1724 | "funding": { 1725 | "url": "https://github.com/sponsors/sindresorhus" 1726 | } 1727 | }, 1728 | "node_modules/supports-color": { 1729 | "version": "7.2.0", 1730 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1731 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1732 | "dev": true, 1733 | "dependencies": { 1734 | "has-flag": "^4.0.0" 1735 | }, 1736 | "engines": { 1737 | "node": ">=8" 1738 | } 1739 | }, 1740 | "node_modules/text-table": { 1741 | "version": "0.2.0", 1742 | "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz", 1743 | "integrity": "sha1-f17oI66AUgfACvLfSoTsP8+lcLQ=", 1744 | "dev": true 1745 | }, 1746 | "node_modules/to-regex-range": { 1747 | "version": "5.0.1", 1748 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1749 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1750 | "dev": true, 1751 | "dependencies": { 1752 | "is-number": "^7.0.0" 1753 | }, 1754 | "engines": { 1755 | "node": ">=8.0" 1756 | } 1757 | }, 1758 | "node_modules/traverse": { 1759 | "version": "0.3.9", 1760 | "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.3.9.tgz", 1761 | "integrity": "sha1-cXuPIgzAu3tE5AUUwisui7xw2Lk=", 1762 | "dev": true, 1763 | "engines": { 1764 | "node": "*" 1765 | } 1766 | }, 1767 | "node_modules/type-check": { 1768 | "version": "0.4.0", 1769 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 1770 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 1771 | "dev": true, 1772 | "dependencies": { 1773 | "prelude-ls": "^1.2.1" 1774 | }, 1775 | "engines": { 1776 | "node": ">= 0.8.0" 1777 | } 1778 | }, 1779 | "node_modules/type-fest": { 1780 | "version": "0.20.2", 1781 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", 1782 | "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", 1783 | "dev": true, 1784 | "engines": { 1785 | "node": ">=10" 1786 | }, 1787 | "funding": { 1788 | "url": "https://github.com/sponsors/sindresorhus" 1789 | } 1790 | }, 1791 | "node_modules/typescript": { 1792 | "version": "4.5.2", 1793 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", 1794 | "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", 1795 | "dev": true, 1796 | "bin": { 1797 | "tsc": "bin/tsc", 1798 | "tsserver": "bin/tsserver" 1799 | }, 1800 | "engines": { 1801 | "node": ">=4.2.0" 1802 | } 1803 | }, 1804 | "node_modules/unzipper": { 1805 | "version": "0.10.11", 1806 | "resolved": "https://registry.npmjs.org/unzipper/-/unzipper-0.10.11.tgz", 1807 | "integrity": "sha512-+BrAq2oFqWod5IESRjL3S8baohbevGcVA+teAIOYWM3pDVdseogqbzhhvvmiyQrUNKFUnDMtELW3X8ykbyDCJw==", 1808 | "dev": true, 1809 | "dependencies": { 1810 | "big-integer": "^1.6.17", 1811 | "binary": "~0.3.0", 1812 | "bluebird": "~3.4.1", 1813 | "buffer-indexof-polyfill": "~1.0.0", 1814 | "duplexer2": "~0.1.4", 1815 | "fstream": "^1.0.12", 1816 | "graceful-fs": "^4.2.2", 1817 | "listenercount": "~1.0.1", 1818 | "readable-stream": "~2.3.6", 1819 | "setimmediate": "~1.0.4" 1820 | } 1821 | }, 1822 | "node_modules/uri-js": { 1823 | "version": "4.4.1", 1824 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 1825 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 1826 | "dev": true, 1827 | "dependencies": { 1828 | "punycode": "^2.1.0" 1829 | } 1830 | }, 1831 | "node_modules/util-deprecate": { 1832 | "version": "1.0.2", 1833 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1834 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 1835 | "dev": true 1836 | }, 1837 | "node_modules/v8-compile-cache": { 1838 | "version": "2.3.0", 1839 | "resolved": "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz", 1840 | "integrity": "sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA==", 1841 | "dev": true 1842 | }, 1843 | "node_modules/vscode-test": { 1844 | "version": "1.6.1", 1845 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.6.1.tgz", 1846 | "integrity": "sha512-086q88T2ca1k95mUzffvbzb7esqQNvJgiwY4h29ukPhFo8u+vXOOmelUoU5EQUHs3Of8+JuQ3oGdbVCqaxuTXA==", 1847 | "deprecated": "This package has been renamed to @vscode/test-electron, please update to the new name", 1848 | "dev": true, 1849 | "dependencies": { 1850 | "http-proxy-agent": "^4.0.1", 1851 | "https-proxy-agent": "^5.0.0", 1852 | "rimraf": "^3.0.2", 1853 | "unzipper": "^0.10.11" 1854 | }, 1855 | "engines": { 1856 | "node": ">=8.9.3" 1857 | } 1858 | }, 1859 | "node_modules/which": { 1860 | "version": "2.0.2", 1861 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 1862 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 1863 | "dev": true, 1864 | "dependencies": { 1865 | "isexe": "^2.0.0" 1866 | }, 1867 | "bin": { 1868 | "node-which": "bin/node-which" 1869 | }, 1870 | "engines": { 1871 | "node": ">= 8" 1872 | } 1873 | }, 1874 | "node_modules/word-wrap": { 1875 | "version": "1.2.3", 1876 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", 1877 | "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", 1878 | "dev": true, 1879 | "engines": { 1880 | "node": ">=0.10.0" 1881 | } 1882 | }, 1883 | "node_modules/workerpool": { 1884 | "version": "6.1.5", 1885 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.5.tgz", 1886 | "integrity": "sha512-XdKkCK0Zqc6w3iTxLckiuJ81tiD/o5rBE/m+nXpRCB+/Sq4DqkfXZ/x0jW02DG1tGsfUGXbTJyZDP+eu67haSw==", 1887 | "dev": true 1888 | }, 1889 | "node_modules/wrap-ansi": { 1890 | "version": "7.0.0", 1891 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 1892 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 1893 | "dev": true, 1894 | "dependencies": { 1895 | "ansi-styles": "^4.0.0", 1896 | "string-width": "^4.1.0", 1897 | "strip-ansi": "^6.0.0" 1898 | }, 1899 | "engines": { 1900 | "node": ">=10" 1901 | }, 1902 | "funding": { 1903 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 1904 | } 1905 | }, 1906 | "node_modules/wrappy": { 1907 | "version": "1.0.2", 1908 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1909 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1910 | "dev": true 1911 | }, 1912 | "node_modules/y18n": { 1913 | "version": "5.0.8", 1914 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 1915 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 1916 | "dev": true, 1917 | "engines": { 1918 | "node": ">=10" 1919 | } 1920 | }, 1921 | "node_modules/yallist": { 1922 | "version": "4.0.0", 1923 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 1924 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 1925 | "dev": true 1926 | }, 1927 | "node_modules/yargs": { 1928 | "version": "16.2.0", 1929 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", 1930 | "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", 1931 | "dev": true, 1932 | "dependencies": { 1933 | "cliui": "^7.0.2", 1934 | "escalade": "^3.1.1", 1935 | "get-caller-file": "^2.0.5", 1936 | "require-directory": "^2.1.1", 1937 | "string-width": "^4.2.0", 1938 | "y18n": "^5.0.5", 1939 | "yargs-parser": "^20.2.2" 1940 | }, 1941 | "engines": { 1942 | "node": ">=10" 1943 | } 1944 | }, 1945 | "node_modules/yargs-parser": { 1946 | "version": "20.2.4", 1947 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", 1948 | "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", 1949 | "dev": true, 1950 | "engines": { 1951 | "node": ">=10" 1952 | } 1953 | }, 1954 | "node_modules/yargs-unparser": { 1955 | "version": "2.0.0", 1956 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 1957 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 1958 | "dev": true, 1959 | "dependencies": { 1960 | "camelcase": "^6.0.0", 1961 | "decamelize": "^4.0.0", 1962 | "flat": "^5.0.2", 1963 | "is-plain-obj": "^2.1.0" 1964 | }, 1965 | "engines": { 1966 | "node": ">=10" 1967 | } 1968 | }, 1969 | "node_modules/yocto-queue": { 1970 | "version": "0.1.0", 1971 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 1972 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 1973 | "dev": true, 1974 | "engines": { 1975 | "node": ">=10" 1976 | }, 1977 | "funding": { 1978 | "url": "https://github.com/sponsors/sindresorhus" 1979 | } 1980 | } 1981 | } 1982 | } 1983 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "extra-sql-script-as", 3 | "displayName": "Extra Sql Script As (MSSQL + MySQL)", 4 | "description": "This extension adds several missing options to the context menu of the object tree: Script Table as INSERT, Script Table as UPDATE...", 5 | "publisher": "pacoweb", 6 | "version": "0.8.0", 7 | "license": "https://raw.githubusercontent.com/pacoweb/extraSqlScriptAs/master/LICENSE", 8 | "icon": "images/default_icon.png", 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/pacoweb/extraSqlScriptAs.git" 12 | }, 13 | "engines": { 14 | "vscode": "^1.58.0", 15 | "azdata": "*" 16 | }, 17 | "categories": [ 18 | "Other" 19 | ], 20 | "activationEvents": [ 21 | "onCommand:extraSqlScriptAs.insertTable", 22 | "onCommand:extraSqlScriptAs.insertTableIdentityOn", 23 | "onCommand:extraSqlScriptAs.updateTable", 24 | "onCommand:extraSqlScriptAs.deleteTable", 25 | "onCommand:extraSqlScriptAs.selectTable", 26 | "onCommand:extraSqlScriptAs.dropAndCreateStoredProcedure", 27 | "onCommand:extraSqlScriptAs.dropAndCreateFunction", 28 | "onCommand:extraSqlScriptAs.insertTableToClipboard", 29 | "onCommand:extraSqlScriptAs.insertTableToClipboardIdentityOn", 30 | "onCommand:extraSqlScriptAs.updateTableToClipboard", 31 | "onCommand:extraSqlScriptAs.deleteTableToClipboard", 32 | "onCommand:extraSqlScriptAs.selectTableToClipboard", 33 | "onCommand:extraSqlScriptAs.dropAndCreateStoredProcedureToClipboard", 34 | "onCommand:extraSqlScriptAs.dropAndCreateFunctionToClipboard" 35 | ], 36 | "main": "./extension.js", 37 | "contributes": { 38 | "submenus": [ 39 | { 40 | "id": "extraSqlScriptAs.submenu", 41 | "label": "Extra Sql Script As", 42 | "group": "1data1" 43 | }, 44 | { 45 | "id": "extraSqlScriptAsStoredProcedure.submenu", 46 | "label": "Extra Sql Script As", 47 | "group": "extraSqlScriptAsStoredProcedure" 48 | }, 49 | { 50 | "id": "extraSqlScriptAsScalarValuedFunction.submenu", 51 | "label": "Extra Sql Script As", 52 | "group": "extraSqlScriptAsScalarValuedFunction" 53 | } 54 | ], 55 | "commands": [ 56 | { 57 | "command": "extraSqlScriptAs.insertTable", 58 | "title": "Script Table as INSERT" 59 | }, 60 | { 61 | "command": "extraSqlScriptAs.insertTableIdentityOn", 62 | "title": "Script Table as INSERT SET IDENTITY ON" 63 | }, 64 | { 65 | "command": "extraSqlScriptAs.updateTable", 66 | "title": "Script Table as UPDATE" 67 | }, 68 | { 69 | "command": "extraSqlScriptAs.deleteTable", 70 | "title": "Script Table as DELETE" 71 | }, 72 | { 73 | "command": "extraSqlScriptAs.selectTable", 74 | "title": "Script Table as SELECT" 75 | }, 76 | { 77 | "command": "extraSqlScriptAs.dropAndCreateStoredProcedure", 78 | "title": "Script Stored procedure as DROP AND CREATE" 79 | }, 80 | { 81 | "command": "extraSqlScriptAs.dropAndCreateFunction", 82 | "title": "Script Functions as DROP AND CREATE" 83 | }, 84 | { 85 | "command": "extraSqlScriptAs.insertTableToClipboard", 86 | "title": "Script Table as INSERT to clipboard" 87 | }, 88 | { 89 | "command": "extraSqlScriptAs.insertTableToClipboardIdentityOn", 90 | "title": "Script Table as INSERT SET IDENTITY ON to clipboard" 91 | }, 92 | { 93 | "command": "extraSqlScriptAs.updateTableToClipboard", 94 | "title": "Script Table as UPDATE to clipboard" 95 | }, 96 | { 97 | "command": "extraSqlScriptAs.deleteTableToClipboard", 98 | "title": "Script Table as DELETE to clipboard" 99 | }, 100 | { 101 | "command": "extraSqlScriptAs.selectTableToClipboard", 102 | "title": "Script Table as SELECT to clipboard" 103 | }, 104 | { 105 | "command": "extraSqlScriptAs.dropAndCreateStoredProcedureToClipboard", 106 | "title": "Script Stored procedure as DROP AND CREATE to clipboard" 107 | }, 108 | { 109 | "command": "extraSqlScriptAs.dropAndCreateFunctionToClipboard", 110 | "title": "Script Functions as DROP AND CREATE to clipboard" 111 | } 112 | ], 113 | "menus": { 114 | "objectExplorer/item/context": [ 115 | { 116 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 117 | "group": "extraSqlScriptAs", 118 | "submenu": "extraSqlScriptAs.submenu" 119 | }, 120 | { 121 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == StoredProcedure", 122 | "group": "extraSqlScriptAsStoredProcedure", 123 | "submenu": "extraSqlScriptAsStoredProcedure.submenu" 124 | }, 125 | { 126 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Function", 127 | "group": "extraSqlScriptAsScalarValuedFunction", 128 | "submenu": "extraSqlScriptAsScalarValuedFunction.submenu" 129 | } 130 | ], 131 | "extraSqlScriptAs.submenu": [ 132 | { 133 | "command": "extraSqlScriptAs.insertTable", 134 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 135 | "group": "extraSqlScriptAs" 136 | }, 137 | { 138 | "command": "extraSqlScriptAs.insertTableIdentityOn", 139 | "when": "connectionProvider == MSSQL && nodeType && nodeType == Table", 140 | "group": "extraSqlScriptAs" 141 | }, 142 | { 143 | "command": "extraSqlScriptAs.updateTable", 144 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 145 | "group": "extraSqlScriptAs" 146 | }, 147 | { 148 | "command": "extraSqlScriptAs.deleteTable", 149 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 150 | "group": "extraSqlScriptAs" 151 | }, 152 | { 153 | "command": "extraSqlScriptAs.selectTable", 154 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 155 | "group": "extraSqlScriptAs" 156 | }, 157 | { 158 | "command": "extraSqlScriptAs.dropAndCreateFunction", 159 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == ScalarValuedFunction", 160 | "group": "1data1" 161 | }, 162 | { 163 | "command": "extraSqlScriptAs.insertTableToClipboard", 164 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 165 | "group": "1data1" 166 | }, 167 | { 168 | "command": "extraSqlScriptAs.insertTableToClipboardIdentityOn", 169 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 170 | "group": "1data1" 171 | }, 172 | { 173 | "command": "extraSqlScriptAs.updateTableToClipboard", 174 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 175 | "group": "1data1" 176 | }, 177 | { 178 | "command": "extraSqlScriptAs.deleteTableToClipboard", 179 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 180 | "group": "1data1" 181 | }, 182 | { 183 | "command": "extraSqlScriptAs.selectTableToClipboard", 184 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == Table", 185 | "group": "1data1" 186 | } 187 | ], 188 | "extraSqlScriptAsStoredProcedure.submenu": [ 189 | { 190 | "command": "extraSqlScriptAs.dropAndCreateStoredProcedure", 191 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == StoredProcedure", 192 | "group": "extraSqlScriptAsStoredProcedure" 193 | }, 194 | { 195 | "command": "extraSqlScriptAs.dropAndCreateStoredProcedureToClipboard", 196 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == StoredProcedure", 197 | "group": "extraSqlScriptAsStoredProcedure" 198 | } 199 | ], 200 | "extraSqlScriptAsScalarValuedFunction.submenu": [ 201 | { 202 | "command": "extraSqlScriptAs.dropAndCreateFunction", 203 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == ScalarValuedFunction", 204 | "group": "extraSqlScriptAsScalarValuedFunction" 205 | }, 206 | { 207 | "command": "extraSqlScriptAs.dropAndCreateFunctionToClipboard", 208 | "when": "(connectionProvider == MSSQL || connectionProvider == MySQL) && nodeType && nodeType == ScalarValuedFunction", 209 | "group": "extraSqlScriptAsScalarValuedFunction" 210 | } 211 | ] 212 | } 213 | }, 214 | "scripts": { 215 | "lint": "eslint .", 216 | "pretest": "npm run lint", 217 | "test": "node ./test/runTest.js", 218 | "proposedapi": "node installTypings.js" 219 | }, 220 | "devDependencies": { 221 | "@types/vscode": "^1.58.0", 222 | "@types/azdata": "*", 223 | "@types/glob": "^7.2.0", 224 | "@types/mocha": "^9.0.0", 225 | "@types/node": "^16.11.12", 226 | "eslint": "^8.4.1", 227 | "glob": "^7.2.0", 228 | "mocha": "^9.1.3", 229 | "typescript": "^4.5.2", 230 | "vscode-test": "^1.6.1" 231 | } 232 | } 233 | -------------------------------------------------------------------------------- /scriptDeleteAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const vscode = require('vscode'); 4 | const sqlUtils = require('./scriptSqlUtils.js'); 5 | 6 | function getDeleteSqlScript(connectionProfile, tableCatalog, tableSchema, tableName) 7 | { 8 | let provider = connectionProfile.providerName; 9 | let queryText = "[FAILED TO RESOLVE QUERY TEXT]"; 10 | if (provider === "MSSQL") { 11 | queryText = `DELETE FROM [${tableCatalog}].[${tableSchema}].[${tableName}] 12 | WHERE `; 13 | } 14 | else if (provider === "MySQL") { 15 | queryText = `DELETE FROM \`${tableSchema}\`.\`${tableName}\` 16 | WHERE `; 17 | } 18 | return queryText; 19 | } 20 | 21 | module.exports.getDeleteSqlScript = getDeleteSqlScript; -------------------------------------------------------------------------------- /scriptFuncAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const sqlUtils = require('./scriptSqlUtils.js'); 4 | 5 | const colNameOrdinal = 0; 6 | 7 | async function getSqlScriptAsDropAndCreateFunctionAsync( 8 | connectionProfile, 9 | tableCatalog, 10 | tableSchema, 11 | routineName 12 | ) { 13 | let queryText = sqlUtils.getRoutineInfoQuerySql( 14 | tableCatalog, 15 | tableSchema, 16 | routineName 17 | ); 18 | 19 | let results = await sqlUtils.getResultsFromQuerySql( 20 | connectionProfile, 21 | "MSSQL", 22 | queryText 23 | ); 24 | 25 | if (!results || results.rowCount === 0) { 26 | throw "No query results returned"; 27 | } 28 | 29 | let updateSqlScript = buildFinalScript( 30 | results, 31 | tableCatalog, 32 | tableSchema, 33 | routineName 34 | ); 35 | 36 | return updateSqlScript; 37 | } 38 | 39 | function buildFinalScript(results, tableCatalog, tableSchema, routineName) { 40 | let fullScript = []; 41 | let columsScriptPart = []; 42 | 43 | fullScript.push(`DROP FUNCTION IF EXISTS [${tableSchema}].[${routineName}];\n`); 44 | fullScript.push(`GO \n\n`); 45 | 46 | fullScript.push(`SET ANSI_NULLS ON;\n`); 47 | fullScript.push(`SET QUOTED_IDENTIFIER ON;\n`); 48 | fullScript.push(`GO \n\n`); 49 | 50 | 51 | 52 | for (let i = 0; i !== results.rowCount; i++) { 53 | let rowData = results.rows[i]; 54 | 55 | columsScriptPart.push( 56 | rowData[colNameOrdinal].displayValue 57 | ); 58 | } 59 | 60 | return fullScript 61 | .concat(columsScriptPart) 62 | .join(""); 63 | } 64 | 65 | module.exports.getSqlScriptAsDropAndCreateFunctionAsync = 66 | getSqlScriptAsDropAndCreateFunctionAsync; 67 | -------------------------------------------------------------------------------- /scriptInsertAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const vscode = require('vscode'); 4 | const sqlUtils = require('./scriptSqlUtils.js'); 5 | 6 | const colNameOrdinal = 0; 7 | const colDataTypeOrdinal = 1; 8 | const colCharsMaxLenOrdinal = 2; 9 | const colNumericPrecisionOrdinal = 3; 10 | const colNumerocScaleOrdinal = 4; 11 | const colIsNullableOrdinal = 5; 12 | const colIsIdentityOrdinal = 6; 13 | const colComputedOrdinal = 7; 14 | const colDatetimePrecisionOrdinal = 8; 15 | 16 | async function getSqlScriptAsInsertAsync(connectionProfile, tableCatalog, tableSchema, tableName, allowIdentityOn = false) 17 | { 18 | let provider = connectionProfile.providerName; 19 | let queryText = "[FAILED TO RESOLVE QUERY TEXT]"; 20 | if (provider === "MSSQL") { 21 | queryText = sqlUtils.getColumnInfoQuerySql(tableCatalog, tableSchema, tableName); 22 | } 23 | else if (provider === "MySQL") { 24 | queryText = sqlUtils.getColumnInfoQueryMySql(tableCatalog, tableSchema, tableName); 25 | } 26 | 27 | let results = await sqlUtils.getResultsFromQuerySql(connectionProfile, provider, queryText, tableCatalog); 28 | if (!results || results.rowCount === 0) { 29 | throw "No results"; 30 | } 31 | 32 | let insertSqlScript = "..."; 33 | if (provider === "MSSQL") { 34 | insertSqlScript = buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName, allowIdentityOn); 35 | } 36 | else if (provider === "MySQL") { 37 | insertSqlScript = buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName, allowIdentityOn); 38 | } 39 | 40 | return insertSqlScript; 41 | } 42 | 43 | function buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName, allowIdentityOn) 44 | { 45 | let fullScript = []; 46 | let columsScriptPart = []; 47 | let valuesScriptPart = []; 48 | 49 | columsScriptPart.push("("); 50 | valuesScriptPart.push("("); 51 | 52 | let columnIndex = 0; 53 | let anyIdentityColumn = false; 54 | 55 | for (let i= 0; i !== results.rowCount; i++) 56 | { 57 | let rowData = results.rows[i]; 58 | 59 | let isComputedRaw = rowData[colComputedOrdinal].displayValue; 60 | let isIdentityRaw = rowData[colIsIdentityOrdinal].displayValue; 61 | let dataTypeRaw = rowData[colDataTypeOrdinal].displayValue; 62 | 63 | let isComputedColumn = isComputedRaw === "1"; 64 | let isIdentityColumn = isIdentityRaw === "1"; 65 | let isTimeStampColumn = dataTypeRaw == "timestamp"; 66 | 67 | if(isComputedColumn || isTimeStampColumn){ 68 | continue; 69 | } 70 | 71 | if(isIdentityColumn) 72 | { 73 | if(!allowIdentityOn){ 74 | continue; 75 | } 76 | 77 | if(!anyIdentityColumn){ 78 | anyIdentityColumn = true; 79 | } 80 | } 81 | 82 | const separator = (columnIndex === 0) ? " " : ","; 83 | 84 | columsScriptPart.push("\t\t" + separator + "[" + rowData[colNameOrdinal].displayValue + "]"); 85 | 86 | valuesScriptPart.push("\t\t" + separator + sqlUtils.getColTypeString( 87 | rowData[colDataTypeOrdinal].displayValue, 88 | rowData[colCharsMaxLenOrdinal].displayValue, 89 | rowData[colNumericPrecisionOrdinal].displayValue, 90 | rowData[colNumerocScaleOrdinal].displayValue, 91 | rowData[colIsNullableOrdinal].displayValue, 92 | rowData[colDatetimePrecisionOrdinal].displayValue 93 | )); 94 | 95 | columnIndex += 1; 96 | } 97 | 98 | const printSetIdentity = allowIdentityOn && anyIdentityColumn; 99 | 100 | if(printSetIdentity){ 101 | fullScript.push(`SET IDENTITY_INSERT [${tableCatalog}].[${tableSchema}].[${tableName}] ON\n`); 102 | } 103 | 104 | fullScript.push(`INSERT INTO [${tableCatalog}].[${tableSchema}].[${tableName}]`); 105 | 106 | columsScriptPart.push(")"); 107 | valuesScriptPart.push(")"); 108 | 109 | if(printSetIdentity){ 110 | valuesScriptPart.push(`\nSET IDENTITY_INSERT [${tableCatalog}].[${tableSchema}].[${tableName}] OFF\n`); 111 | } 112 | 113 | return fullScript.concat(columsScriptPart).concat(["VALUES"]).concat(valuesScriptPart).join('\n'); 114 | } 115 | 116 | function buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName, allowIdentityOn) 117 | { 118 | let fullScript = []; 119 | let columsScriptPart = []; 120 | let valuesScriptPart = []; 121 | 122 | columsScriptPart.push("("); 123 | valuesScriptPart.push("("); 124 | 125 | let columnIndex = 0; 126 | let anyIdentityColumn = false; 127 | 128 | for (let i= 0; i !== results.rowCount; i++) 129 | { 130 | let rowData = results.rows[i]; 131 | 132 | let isComputedRaw = rowData[colComputedOrdinal].displayValue; 133 | let isIdentityRaw = rowData[colIsIdentityOrdinal].displayValue; 134 | let dataTypeRaw = rowData[colDataTypeOrdinal].displayValue; 135 | 136 | let isComputedColumn = isComputedRaw === "1"; 137 | let isIdentityColumn = isIdentityRaw === "1"; 138 | let isTimeStampColumn = dataTypeRaw == "timestamp"; 139 | 140 | if(isComputedColumn || isTimeStampColumn){ 141 | continue; 142 | } 143 | 144 | if(isIdentityColumn) 145 | { 146 | if(!allowIdentityOn){ 147 | continue; 148 | } 149 | 150 | if(!anyIdentityColumn){ 151 | anyIdentityColumn = true; 152 | } 153 | } 154 | 155 | const separator = (columnIndex === 0) ? " " : ","; 156 | 157 | columsScriptPart.push("\t\t" + separator + "`" + rowData[colNameOrdinal].displayValue + "`"); 158 | 159 | valuesScriptPart.push("\t\t" + separator + sqlUtils.getColTypeString( 160 | rowData[colDataTypeOrdinal].displayValue, 161 | rowData[colCharsMaxLenOrdinal].displayValue, 162 | rowData[colNumericPrecisionOrdinal].displayValue, 163 | rowData[colNumerocScaleOrdinal].displayValue, 164 | rowData[colIsNullableOrdinal].displayValue, 165 | rowData[colDatetimePrecisionOrdinal].displayValue 166 | )); 167 | 168 | columnIndex += 1; 169 | } 170 | 171 | const printSetIdentity = allowIdentityOn && anyIdentityColumn; 172 | 173 | if(printSetIdentity){ 174 | // no need in MySQL 175 | //fullScript.push(`SET IDENTITY_INSERT \`${tableSchema}\`.\`${tableName}\` ON;\n`); 176 | } 177 | 178 | fullScript.push(`INSERT INTO \`${tableSchema}\`.\`${tableName}\``); 179 | 180 | columsScriptPart.push(")"); 181 | valuesScriptPart.push(");"); 182 | 183 | if(printSetIdentity){ 184 | // no need in MySQL 185 | //valuesScriptPart.push(`\nSET IDENTITY_INSERT \`${tableSchema}\`.\`${tableName}\` OFF;\n`); 186 | } 187 | 188 | return fullScript.concat(columsScriptPart).concat(["VALUES"]).concat(valuesScriptPart).join('\n'); 189 | } 190 | 191 | module.exports.getSqlScriptAsInsertAsync = getSqlScriptAsInsertAsync; -------------------------------------------------------------------------------- /scriptSPAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const sqlUtils = require('./scriptSqlUtils.js'); 4 | 5 | const colNameOrdinal = 0; 6 | const defaultNoQueryText = "[FAILED TO RESOLVE QUERY TEXT]"; 7 | const defaultNoParamText = "[FAILED TO RESOLVE PARAM TEXT]"; 8 | 9 | async function getSqlScriptAsDropAndCreateStoredProcedureAsync( 10 | connectionProfile, 11 | tableCatalog, 12 | tableSchema, 13 | routineName 14 | ) { 15 | let provider = connectionProfile.providerName; 16 | let queryText = defaultNoQueryText; 17 | let paramText = defaultNoParamText; 18 | 19 | if (provider === "MSSQL") 20 | { 21 | queryText = sqlUtils.getRoutineInfoQuerySql(tableCatalog, tableSchema, routineName); 22 | } 23 | else if (provider === "MySQL") 24 | { 25 | queryText = sqlUtils.getRoutineInfoQueryMySql(tableCatalog, tableSchema, routineName); 26 | paramText = sqlUtils.getRoutineParamsQueryMySql(tableCatalog, tableSchema, routineName); 27 | } 28 | 29 | let results = await sqlUtils.getResultsFromQuerySql(connectionProfile, provider, queryText); 30 | 31 | if (!results || results.rowCount === 0) { 32 | throw "No query results returned"; 33 | } 34 | 35 | let updateSqlScript = "..."; 36 | 37 | if (provider === "MSSQL") 38 | { 39 | updateSqlScript = buildFinalScriptMSSQL(results, tableCatalog, tableSchema, routineName); 40 | } 41 | else if (provider === "MySQL") 42 | { 43 | const paramResults = await sqlUtils.getResultsFromQuerySql(connectionProfile, provider, paramText); 44 | 45 | updateSqlScript = buildFinalScriptMySQL(results, paramResults, tableCatalog, tableSchema, routineName); 46 | } 47 | 48 | return updateSqlScript; 49 | } 50 | 51 | function buildFinalScriptMSSQL(results, tableCatalog, tableSchema, routineName) { 52 | let fullScript = []; 53 | let columsScriptPart = []; 54 | 55 | fullScript.push(`DROP PROCEDURE IF EXISTS [${tableSchema}].[${routineName}];\n`); 56 | fullScript.push(`GO \n\n`); 57 | 58 | fullScript.push(`SET ANSI_NULLS ON;\n`); 59 | fullScript.push(`SET QUOTED_IDENTIFIER ON;\n`); 60 | fullScript.push(`GO \n`); 61 | 62 | for (let i = 0; i !== results.rowCount; i++) { 63 | let rowData = results.rows[i]; 64 | 65 | columsScriptPart.push( 66 | rowData[colNameOrdinal].displayValue 67 | ); 68 | } 69 | 70 | return fullScript 71 | .concat(columsScriptPart) 72 | .join(""); 73 | } 74 | 75 | function buildFinalScriptMySQL(results, paramResults, tableCatalog, tableSchema, routineName) { 76 | const fullScript = []; 77 | const columsScriptPart = []; 78 | 79 | const firstRow = results.rows[0]; 80 | const definerRaw = firstRow[3].rawObject; 81 | const dataAccessRaw = firstRow[5].rawObject; 82 | const commentRaw = firstRow[8].rawObject; 83 | 84 | fullScript.push(`DROP PROCEDURE IF EXISTS \`${routineName}\`;\n\n`); 85 | fullScript.push(`CREATE DEFINER=\`${definerRaw}\` PROCEDURE \`${routineName}\`(`); 86 | 87 | for (let i = 0; i !== paramResults.rowCount; i++) 88 | { 89 | const rowData = paramResults.rows[i]; 90 | const charMaxLenRaw = rowData[3].rawObject; 91 | const charMaxLenPart = charMaxLenRaw == null || charMaxLenRaw.toLowerCase() == "null" ? "" : `(${charMaxLenRaw})`; 92 | 93 | const isFirstRow = i === 0; 94 | const isLastRow = i === paramResults.rowCount - 1; 95 | const comma = isLastRow ? "" : ","; 96 | 97 | if(isFirstRow){ 98 | columsScriptPart.push(`\n`); 99 | } 100 | 101 | columsScriptPart.push( 102 | ` ${rowData[0].rawObject} ${rowData[1].rawObject} ${rowData[2].rawObject}${charMaxLenPart}${comma} \n` 103 | ); 104 | 105 | } 106 | 107 | fullScript.push(`)`); 108 | 109 | if(dataAccessRaw){ 110 | fullScript.push(`\n${dataAccessRaw}\n`); 111 | } 112 | 113 | if(commentRaw){ 114 | fullScript.push(`\nCOMMENT '${commentRaw}'\n`); 115 | } 116 | 117 | for (let i = 0; i !== results.rowCount; i++) { 118 | let rowData = results.rows[i]; 119 | 120 | columsScriptPart.push( 121 | rowData[colNameOrdinal].displayValue 122 | ); 123 | } 124 | 125 | return fullScript 126 | .concat(columsScriptPart) 127 | .join(""); 128 | } 129 | 130 | module.exports.getSqlScriptAsDropAndCreateStoredProcedureAsync = 131 | getSqlScriptAsDropAndCreateStoredProcedureAsync; 132 | -------------------------------------------------------------------------------- /scriptSelectAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const sqlUtils = require('./scriptSqlUtils.js'); 4 | 5 | const colNameOrdinal = 0; 6 | 7 | async function getSqlScriptAsSelectAsync(connectionProfile, tableCatalog, tableSchema, tableName) 8 | { 9 | let provider = connectionProfile.providerName; 10 | let queryText = "[FAILED TO RESOLVE QUERY TEXT]"; 11 | if (provider === "MSSQL") { 12 | queryText = sqlUtils.getColumnInfoQuerySql(tableCatalog, tableSchema, tableName); 13 | } 14 | else if (provider === "MySQL") { 15 | queryText = sqlUtils.getColumnInfoQueryMySql(tableCatalog, tableSchema, tableName); 16 | } 17 | 18 | let results = await sqlUtils.getResultsFromQuerySql(connectionProfile, provider, queryText, tableCatalog); 19 | 20 | if (!results || results.rowCount === 0) { 21 | throw "No results"; 22 | } 23 | 24 | let selectSqlScript = "..."; 25 | if (provider === "MSSQL") { 26 | selectSqlScript = buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName); 27 | } 28 | else if (provider === "MySQL") { 29 | selectSqlScript = buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName); 30 | } 31 | 32 | return selectSqlScript; 33 | } 34 | 35 | function buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName) 36 | { 37 | let fullScript = []; 38 | let columsScriptPart = []; 39 | 40 | fullScript.push("SELECT "); 41 | 42 | let columnIndex = 0; 43 | 44 | for (let i= 0; i !== results.rowCount; i++) 45 | { 46 | let rowData = results.rows[i]; 47 | 48 | const separator = (columnIndex === 0) ? " " : ","; 49 | 50 | columsScriptPart.push("\t\t" + separator + "[" + rowData[colNameOrdinal].displayValue + "]"); 51 | 52 | columnIndex += 1; 53 | } 54 | 55 | return fullScript.concat(columsScriptPart).concat([`FROM [${tableCatalog}].[${tableSchema}].[${tableName}] `]).join('\n'); 56 | } 57 | 58 | function buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName) 59 | { 60 | let fullScript = []; 61 | let columsScriptPart = []; 62 | 63 | fullScript.push("SELECT "); 64 | 65 | let columnIndex = 0; 66 | 67 | for (let i= 0; i !== results.rowCount; i++) 68 | { 69 | let rowData = results.rows[i]; 70 | 71 | const separator = (columnIndex === 0) ? " " : ","; 72 | 73 | columsScriptPart.push("\t\t" + separator + "`" + rowData[colNameOrdinal].displayValue + "`"); 74 | 75 | columnIndex += 1; 76 | } 77 | 78 | return fullScript.concat(columsScriptPart).concat([`FROM \`${tableSchema}\`.\`${tableName}\` `, `LIMIT 1000`, `;`]).join('\n'); 79 | } 80 | 81 | module.exports.getSqlScriptAsSelectAsync = getSqlScriptAsSelectAsync; -------------------------------------------------------------------------------- /scriptSqlUtils.js: -------------------------------------------------------------------------------- 1 | 2 | const azdata = require('azdata'); 3 | 4 | function getColumnInfoQueryMySql(tableCatalog, tableSchema, tableName) { 5 | return `SELECT 6 | C.COLUMN_NAME, 7 | C.DATA_TYPE, 8 | C.CHARACTER_MAXIMUM_LENGTH, 9 | C.NUMERIC_PRECISION, 10 | C.NUMERIC_SCALE, 11 | C.IS_NULLABLE, 12 | (CASE WHEN EXTRA LIKE '%auto_increment%' THEN 'YES' ELSE 'NO' END) AS IS_IDENTITY, 13 | (CASE WHEN EXTRA LIKE '%VIRTUAL GENERATED%' OR EXTRA LIKE '%STORED GENERATED%' THEN 'YES' ELSE 'NO' END) AS IS_COMPUTED, 14 | C.DATETIME_PRECISION 15 | FROM 16 | INFORMATION_SCHEMA.TABLES AS T 17 | INNER JOIN 18 | INFORMATION_SCHEMA.COLUMNS AS C ON C.TABLE_NAME = T.TABLE_NAME AND C.TABLE_SCHEMA = T.TABLE_SCHEMA 19 | WHERE 20 | T.TABLE_TYPE = 'BASE TABLE' 21 | AND T.TABLE_SCHEMA = '${tableSchema}' -- Ensure this is the correct catalog name 22 | AND T.TABLE_NAME = '${tableName}' 23 | ORDER BY 24 | C.ORDINAL_POSITION;`; 25 | } 26 | 27 | function getColumnInfoQuerySql(tableCatalog, tableSchema, tableName) 28 | { 29 | return `SELECT 30 | COL.COLUMN_NAME, 31 | COL.DATA_TYPE, 32 | COL.CHARACTER_MAXIMUM_LENGTH, 33 | COL.NUMERIC_PRECISION, 34 | COL.NUMERIC_SCALE, 35 | COL.IS_NULLABLE, 36 | SYS_COLS.SUB_ISIDENTITY IS_IDENTITY, 37 | SYS_COLS.SUB_ISCOMPUTED IS_COMPUTED, 38 | COL.DATETIME_PRECISION 39 | FROM [${tableCatalog}].INFORMATION_SCHEMA.TABLES T 40 | INNER JOIN [${tableCatalog}].INFORMATION_SCHEMA.COLUMNS COL ON COL.TABLE_NAME = T.TABLE_NAME AND COL.TABLE_SCHEMA = T.TABLE_SCHEMA 41 | INNER JOIN 42 | ( 43 | SELECT 44 | cc.name as SUB_COLNAME 45 | ,cc.is_identity as SUB_ISIDENTITY 46 | ,cc.is_computed as SUB_ISCOMPUTED 47 | FROM 48 | [${tableCatalog}].SYS.columns CC 49 | inner join [${tableCatalog}].SYS.tables TT 50 | on CC.object_id = TT.object_id 51 | inner join [${tableCatalog}].SYS.schemas SS 52 | on TT.schema_id = SS.schema_id 53 | WHERE SS.name = '${tableSchema}' and TT.name = '${tableName}' 54 | ) SYS_COLS ON 55 | COL.COLUMN_NAME = SYS_COLS.SUB_COLNAME 56 | WHERE 57 | T.TABLE_TYPE = 'BASE TABLE' 58 | AND T.TABLE_SCHEMA = '${tableSchema}' 59 | AND T.TABLE_CATALOG = '${tableCatalog}' 60 | AND T.TABLE_NAME = '${tableName}' 61 | ORDER BY COL.ORDINAL_POSITION`; 62 | } 63 | 64 | async function getResultsFromQuerySql(connectionProfile, providerText, queryText, tableCatalog) 65 | { 66 | //FIX AZURE DATA PROVIDER, WHEN DEFAULT DATABASE IS NOT SET USE ALWAYS MASTER IN CONNECTION PROFILE OPTIONS 67 | if(tableCatalog 68 | && connectionProfile.options.database != tableCatalog){ 69 | connectionProfile.options.database = tableCatalog; 70 | } 71 | 72 | let connectionResult = await azdata.connection.connect(connectionProfile, false, false); 73 | let connectionUri = await azdata.connection.getUriForConnection(connectionResult.connectionId); 74 | 75 | let queryProvider = azdata.dataprotocol.getProvider(providerText, azdata.DataProviderType.QueryProvider); 76 | 77 | return await queryProvider.runQueryAndReturn(connectionUri, queryText); 78 | } 79 | 80 | function getColTypeString (dataType, charMaxLen, numericPrecision, numericScale, isNullable, datetimePrecision) 81 | { 82 | const scaleDataTypes = ["decimal", "numeric"]; 83 | const precisionDataTypes = ["time", "datetimeoffset", "datetime2"]; 84 | const maxLenDataTypes = ["char", "nchar", "varchar", "nvarchar", "varbinary"]; 85 | 86 | let typeParts = []; 87 | 88 | typeParts.push("<"); 89 | typeParts.push(dataType); 90 | 91 | if(maxLenDataTypes.includes(dataType)) 92 | { 93 | typeParts.push("("); 94 | 95 | if(charMaxLen === "-1") 96 | typeParts.push("MAX"); 97 | else 98 | typeParts.push(charMaxLen); 99 | 100 | typeParts.push(")"); 101 | } 102 | 103 | if(precisionDataTypes.includes(dataType) || scaleDataTypes.includes(dataType)) 104 | { 105 | typeParts.push("("); 106 | 107 | if(numericPrecision === "NULL") 108 | typeParts.push(datetimePrecision); 109 | else 110 | typeParts.push(numericPrecision); 111 | 112 | if(numericScale !== "NULL" && numericScale === "0"){ 113 | typeParts.push(","); 114 | typeParts.push(numericScale); 115 | } 116 | 117 | typeParts.push(")"); 118 | } 119 | 120 | if(isNullable === "YES") 121 | { 122 | typeParts.push(", NULLABLE"); 123 | } 124 | 125 | typeParts.push(">"); 126 | 127 | return typeParts.join(''); 128 | } 129 | 130 | function getRoutineInfoQuerySql(tableCatalog, tableSchema, routineName) { 131 | return `USE [${tableCatalog}] 132 | EXEC sp_helptext '${tableSchema}.${routineName}'`; 133 | } 134 | 135 | function getRoutineInfoQueryMySql(tableCatalog, tableSchema, routineName) { 136 | return `SELECT 137 | ROUTINE_DEFINITION, 138 | ROUTINE_TYPE, 139 | DTD_IDENTIFIER, 140 | DEFINER, 141 | IS_DETERMINISTIC, 142 | SQL_DATA_ACCESS, 143 | SECURITY_TYPE, 144 | PARAMETER_STYLE, 145 | CONVERT(ROUTINE_COMMENT USING utf8) AS ROUTINE_COMMENT_TEXT 146 | FROM INFORMATION_SCHEMA.ROUTINES 147 | WHERE ROUTINE_SCHEMA = '${tableSchema}' 148 | AND ROUTINE_NAME = '${routineName}';`; 149 | } 150 | 151 | function getRoutineParamsQueryMySql(tableCatalog, tableSchema, routineName) { 152 | return `SELECT 153 | PARAMETER_MODE as MODE, 154 | PARAMETER_NAME, 155 | DATA_TYPE, 156 | CHARACTER_MAXIMUM_LENGTH 157 | FROM INFORMATION_SCHEMA.PARAMETERS 158 | WHERE SPECIFIC_SCHEMA = '${tableSchema}' 159 | AND SPECIFIC_NAME = '${routineName}'; 160 | ORDER BY ORDINAL_POSITION;`; 161 | } 162 | 163 | module.exports.getResultsFromQuerySql = getResultsFromQuerySql; 164 | module.exports.getColumnInfoQueryMySql = getColumnInfoQueryMySql; 165 | module.exports.getColTypeString = getColTypeString; 166 | module.exports.getColumnInfoQuerySql = getColumnInfoQuerySql; 167 | module.exports.getRoutineInfoQuerySql = getRoutineInfoQuerySql; 168 | module.exports.getRoutineInfoQueryMySql = getRoutineInfoQueryMySql; 169 | module.exports.getRoutineParamsQueryMySql = getRoutineParamsQueryMySql; -------------------------------------------------------------------------------- /scriptUpdateAs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | const sqlUtils = require('./scriptSqlUtils.js'); 4 | 5 | const colNameOrdinal = 0; 6 | const colDataTypeOrdinal = 1; 7 | const colCharsMaxLenOrdinal = 2; 8 | const colNumericPrecisionOrdinal = 3; 9 | const colNumerocScaleOrdinal = 4; 10 | const colIsNullableOrdinal = 5; 11 | const colIsIdentityOrdinal = 6; 12 | const colComputedOrdinal = 7; 13 | const colDatetimePrecisionOrdinal = 8; 14 | 15 | async function getSqlScriptAsUpdateAsync(connectionProfile, tableCatalog, tableSchema, tableName) 16 | { 17 | let provider = connectionProfile.providerName; 18 | let queryText = "[FAILED TO RESOLVE QUERY TEXT]"; 19 | if (provider === "MSSQL") { 20 | queryText = sqlUtils.getColumnInfoQuerySql(tableCatalog, tableSchema, tableName); 21 | } 22 | else if (provider === "MySQL") { 23 | queryText = sqlUtils.getColumnInfoQueryMySql(tableCatalog, tableSchema, tableName); 24 | } 25 | 26 | let results = await sqlUtils.getResultsFromQuerySql(connectionProfile, provider, queryText, tableCatalog); 27 | 28 | if (!results || results.rowCount === 0) { 29 | throw "No results"; 30 | } 31 | 32 | let updateSqlScript = "..."; 33 | if (provider === "MSSQL") { 34 | updateSqlScript = buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName); 35 | } 36 | else if (provider === "MySQL") { 37 | updateSqlScript = buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName); 38 | } 39 | 40 | return updateSqlScript; 41 | } 42 | 43 | function buildFinalScriptMSSQL(results, tableCatalog, tableSchema, tableName) 44 | { 45 | let fullScript = []; 46 | let columsScriptPart = []; 47 | 48 | fullScript.push(`UPDATE [${tableCatalog}].[${tableSchema}].[${tableName}] `); 49 | fullScript.push("SET"); 50 | 51 | let columnIndex = 0; 52 | 53 | for (let i= 0; i !== results.rowCount; i++) 54 | { 55 | let rowData = results.rows[i]; 56 | 57 | let isComputedRaw = rowData[colComputedOrdinal].displayValue; 58 | let isIdentityRaw = rowData[colIsIdentityOrdinal].displayValue; 59 | let dataTypeRaw = rowData[colDataTypeOrdinal].displayValue; 60 | 61 | let isComputedColumn = isComputedRaw === "1"; 62 | let isIdentityColumn = isIdentityRaw === "1"; 63 | let isTimeStampColumn = dataTypeRaw == "timestamp"; 64 | 65 | if(isComputedColumn || isIdentityColumn || isTimeStampColumn) 66 | continue; 67 | 68 | const separator = (columnIndex === 0) ? " " : ","; 69 | 70 | columsScriptPart.push("\t\t" + separator + "[" + rowData[colNameOrdinal].displayValue + "]" 71 | + "=" 72 | + sqlUtils.getColTypeString( 73 | rowData[colDataTypeOrdinal].displayValue, 74 | rowData[colCharsMaxLenOrdinal].displayValue, 75 | rowData[colNumericPrecisionOrdinal].displayValue, 76 | rowData[colNumerocScaleOrdinal].displayValue, 77 | rowData[colIsNullableOrdinal].displayValue, 78 | rowData[colDatetimePrecisionOrdinal].displayValue 79 | )); 80 | 81 | columnIndex += 1; 82 | } 83 | 84 | return fullScript.concat(columsScriptPart).concat(["WHERE "]).join('\n'); 85 | } 86 | 87 | function buildFinalScriptMySQL(results, tableCatalog, tableSchema, tableName) 88 | { 89 | let fullScript = []; 90 | let columsScriptPart = []; 91 | 92 | fullScript.push(`UPDATE \`${tableSchema}\`.\`${tableName}\` `); 93 | fullScript.push("SET"); 94 | 95 | let columnIndex = 0; 96 | 97 | for (let i= 0; i !== results.rowCount; i++) 98 | { 99 | let rowData = results.rows[i]; 100 | 101 | let isComputedRaw = rowData[colComputedOrdinal].displayValue; 102 | let isIdentityRaw = rowData[colIsIdentityOrdinal].displayValue; 103 | let dataTypeRaw = rowData[colDataTypeOrdinal].displayValue; 104 | 105 | let isComputedColumn = isComputedRaw === "1"; 106 | let isIdentityColumn = isIdentityRaw === "1"; 107 | let isTimeStampColumn = dataTypeRaw == "timestamp"; 108 | 109 | if(isComputedColumn || isIdentityColumn || isTimeStampColumn) 110 | continue; 111 | 112 | const separator = (columnIndex === 0) ? " " : ","; 113 | 114 | columsScriptPart.push("\t\t" + separator + "`" + rowData[colNameOrdinal].displayValue + "`" 115 | + "=" 116 | + sqlUtils.getColTypeString( 117 | rowData[colDataTypeOrdinal].displayValue, 118 | rowData[colCharsMaxLenOrdinal].displayValue, 119 | rowData[colNumericPrecisionOrdinal].displayValue, 120 | rowData[colNumerocScaleOrdinal].displayValue, 121 | rowData[colIsNullableOrdinal].displayValue, 122 | rowData[colDatetimePrecisionOrdinal].displayValue 123 | )); 124 | 125 | columnIndex += 1; 126 | } 127 | 128 | return fullScript.concat(columsScriptPart).concat(["WHERE "]).join('\n'); 129 | } 130 | 131 | module.exports.getSqlScriptAsUpdateAsync = getSqlScriptAsUpdateAsync; -------------------------------------------------------------------------------- /test/runTest.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | const { runTests } = require('vscode-test'); 4 | 5 | async function main() { 6 | try { 7 | // The folder containing the Extension Manifest package.json 8 | // Passed to `--extensionDevelopmentPath` 9 | const extensionDevelopmentPath = path.resolve(__dirname, '../'); 10 | 11 | // The path to the extension test script 12 | // Passed to --extensionTestsPath 13 | const extensionTestsPath = path.resolve(__dirname, './suite/index'); 14 | 15 | // Download VS Code, unzip it and run the integration test 16 | await runTests({ extensionDevelopmentPath, extensionTestsPath }); 17 | } catch (err) { 18 | console.error('Failed to run tests'); 19 | process.exit(1); 20 | } 21 | } 22 | 23 | main(); 24 | -------------------------------------------------------------------------------- /test/suite/extension.test.js: -------------------------------------------------------------------------------- 1 | const assert = require('assert'); 2 | 3 | // You can import and use all API from the 'vscode' module 4 | // as well as import your extension to test it 5 | const vscode = require('vscode'); 6 | // const myExtension = require('../extension'); 7 | 8 | suite('Extension Test Suite', () => { 9 | vscode.window.showInformationMessage('Start all tests.'); 10 | 11 | test('Sample test', () => { 12 | assert.equal(-1, [1, 2, 3].indexOf(5)); 13 | assert.equal(-1, [1, 2, 3].indexOf(0)); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /test/suite/index.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | const Mocha = require('mocha'); 3 | const glob = require('glob'); 4 | 5 | function run() { 6 | // Create the mocha test 7 | const mocha = new Mocha({ 8 | ui: 'tdd', 9 | color: true 10 | }); 11 | 12 | const testsRoot = path.resolve(__dirname, '..'); 13 | 14 | return new Promise((c, e) => { 15 | glob('**/**.test.js', { cwd: testsRoot }, (err, files) => { 16 | if (err) { 17 | return e(err); 18 | } 19 | 20 | // Add files to the test suite 21 | files.forEach(f => mocha.addFile(path.resolve(testsRoot, f))); 22 | 23 | try { 24 | // Run the mocha test 25 | mocha.run(failures => { 26 | if (failures > 0) { 27 | e(new Error(`${failures} tests failed.`)); 28 | } else { 29 | c(); 30 | } 31 | }); 32 | } catch (err) { 33 | console.error(err); 34 | e(err); 35 | } 36 | }); 37 | }); 38 | } 39 | 40 | module.exports = { 41 | run 42 | }; 43 | -------------------------------------------------------------------------------- /typings/azdata.proposed.d.ts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the Source EULA. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | // This is the place for API experiments and proposal. 7 | 8 | import * as vscode from 'vscode'; 9 | 10 | declare module 'azdata' { 11 | /** 12 | * Namespace for connection management 13 | */ 14 | export namespace connection { 15 | export type ConnectionEventType = 16 | | 'onConnect' 17 | | 'onDisconnect' 18 | | 'onConnectionChanged'; 19 | 20 | export interface ConnectionEventListener { 21 | onConnectionEvent(type: ConnectionEventType, ownerUri: string, args: IConnectionProfile): void; 22 | } 23 | 24 | /** 25 | * Register a connection event listener 26 | */ 27 | export function registerConnectionEventListener(listener: connection.ConnectionEventListener): void; 28 | 29 | export function getConnection(uri: string): Thenable; 30 | } 31 | 32 | export namespace nb { 33 | export interface NotebookDocument { 34 | /** 35 | * Sets the trust mode for the notebook document. 36 | */ 37 | setTrusted(state: boolean); 38 | } 39 | } 40 | 41 | export type SqlDbType = 'BigInt' | 'Binary' | 'Bit' | 'Char' | 'DateTime' | 'Decimal' 42 | | 'Float' | 'Image' | 'Int' | 'Money' | 'NChar' | 'NText' | 'NVarChar' | 'Real' 43 | | 'UniqueIdentifier' | 'SmallDateTime' | 'SmallInt' | 'SmallMoney' | 'Text' | 'Timestamp' 44 | | 'TinyInt' | 'VarBinary' | 'VarChar' | 'Variant' | 'Xml' | 'Udt' | 'Structured' | 'Date' 45 | | 'Time' | 'DateTime2' | 'DateTimeOffset'; 46 | 47 | export interface SimpleColumnInfo { 48 | name: string; 49 | /** 50 | * This is expected to match the SqlDbTypes for serialization purposes 51 | */ 52 | dataTypeName: SqlDbType; 53 | } 54 | export interface SerializeDataStartRequestParams { 55 | /** 56 | * 'csv', 'json', 'excel', 'xml' 57 | */ 58 | saveFormat: string; 59 | filePath: string; 60 | isLastBatch: boolean; 61 | rows: DbCellValue[][]; 62 | columns: SimpleColumnInfo[]; 63 | includeHeaders?: boolean; 64 | delimiter?: string; 65 | lineSeperator?: string; 66 | textIdentifier?: string; 67 | encoding?: string; 68 | formatted?: boolean; 69 | } 70 | 71 | export interface SerializeDataContinueRequestParams { 72 | filePath: string; 73 | isLastBatch: boolean; 74 | rows: DbCellValue[][]; 75 | } 76 | 77 | export interface SerializeDataResult { 78 | messages?: string; 79 | succeeded: boolean; 80 | } 81 | 82 | export interface SerializationProvider extends DataProvider { 83 | startSerialization(requestParams: SerializeDataStartRequestParams): Thenable; 84 | continueSerialization(requestParams: SerializeDataContinueRequestParams): Thenable; 85 | } 86 | 87 | export namespace dataprotocol { 88 | export function registerSerializationProvider(provider: SerializationProvider): vscode.Disposable; 89 | export function registerSqlAssessmentServicesProvider(provider: SqlAssessmentServicesProvider): vscode.Disposable; 90 | } 91 | 92 | export interface HyperlinkComponent { 93 | /** 94 | * An event called when the text is clicked 95 | */ 96 | onDidClick: vscode.Event; 97 | } 98 | 99 | export interface DeclarativeTableColumn { 100 | headerCssStyles?: { [key: string]: string }; 101 | rowCssStyles?: { [key: string]: string }; 102 | ariaLabel?: string; 103 | } 104 | 105 | export enum DeclarativeDataType { 106 | component = 'component' 107 | } 108 | 109 | /* 110 | * Add optional azureAccount for connectionWidget. 111 | */ 112 | export interface IConnectionProfile extends ConnectionInfo { 113 | azureAccount?: string; 114 | azureResourceId?: string; 115 | azurePortalEndpoint?: string; 116 | } 117 | 118 | /* 119 | * Add optional per-OS default value. 120 | */ 121 | export interface DefaultValueOsOverride { 122 | os: string; 123 | 124 | defaultValueOverride: string; 125 | } 126 | 127 | export interface ConnectionOption { 128 | defaultValueOsOverrides?: DefaultValueOsOverride[]; 129 | } 130 | 131 | export interface ModelBuilder { 132 | radioCardGroup(): ComponentBuilder; 133 | tabbedPanel(): TabbedPanelComponentBuilder; 134 | separator(): ComponentBuilder; 135 | propertiesContainer(): ComponentBuilder; 136 | } 137 | 138 | export interface RadioCard { 139 | id: string; 140 | label: string; 141 | descriptions?: RadioCardDescription[]; 142 | icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri }; 143 | } 144 | 145 | export interface RadioCardDescription { 146 | ariaLabel: string; 147 | labelHeader: string; 148 | contents: RadioCardLabelValuePair[]; 149 | valueHeader?: string; 150 | } 151 | 152 | export interface RadioCardLabelValuePair { 153 | label: string; 154 | value?: string; 155 | } 156 | 157 | export interface RadioCardGroupComponentProperties extends ComponentProperties, TitledComponentProperties { 158 | cards: RadioCard[]; 159 | cardWidth: string; 160 | cardHeight: string; 161 | iconWidth?: string; 162 | iconHeight?: string; 163 | selectedCardId?: string; 164 | } 165 | 166 | export interface RadioCardGroupComponent extends Component, RadioCardGroupComponentProperties { 167 | onSelectionChanged: vscode.Event; 168 | } 169 | 170 | export interface SeparatorComponent extends Component { 171 | } 172 | 173 | export interface DeclarativeTableProperties extends ComponentProperties { 174 | } 175 | 176 | export interface ComponentProperties { 177 | ariaHidden?: boolean; 178 | } 179 | 180 | export interface ComponentWithIconProperties { 181 | /** 182 | * The path for the icon with optional dark-theme away alternative 183 | */ 184 | iconPath?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri }; 185 | /** 186 | * The height of the icon 187 | */ 188 | iconHeight?: number | string; 189 | /** 190 | * The width of the icon 191 | */ 192 | iconWidth?: number | string; 193 | /** 194 | * The title for the icon. This title will show when hovered over 195 | */ 196 | title?: string; 197 | } 198 | 199 | export interface ComponentWithIcon extends ComponentWithIconProperties { 200 | } 201 | 202 | export interface ImageComponent extends ComponentWithIcon { 203 | } 204 | 205 | export interface ImageComponentProperties extends ComponentProperties, ComponentWithIconProperties { 206 | } 207 | 208 | /** 209 | * Panel component with tabs 210 | */ 211 | export interface TabbedPanelComponent extends Container { 212 | /** 213 | * An event triggered when the selected tab is changed. 214 | * The event argument is the id of the selected tab. 215 | */ 216 | onTabChanged: vscode.Event; 217 | 218 | /** 219 | * update the tabs. 220 | * @param tabs new tabs 221 | */ 222 | updateTabs(tabs: (Tab | TabGroup)[]): void; 223 | 224 | /** 225 | * Selects the tab with the specified id 226 | * @param id The id of the tab to select 227 | */ 228 | selectTab(id: string): void; 229 | } 230 | 231 | /** 232 | * Defines the tab orientation of TabbedPanelComponent 233 | */ 234 | export enum TabOrientation { 235 | Vertical = 'vertical', 236 | Horizontal = 'horizontal' 237 | } 238 | 239 | /** 240 | * Layout of TabbedPanelComponent, can be used to initialize the component when using ModelBuilder 241 | */ 242 | export interface TabbedPanelLayout { 243 | /** 244 | * Tab orientation. Default horizontal. 245 | */ 246 | orientation?: TabOrientation; 247 | 248 | /** 249 | * Whether to show the tab icon. Default false. 250 | */ 251 | showIcon?: boolean; 252 | 253 | /** 254 | * Whether to show the tab navigation pane even when there is only one tab. Default false. 255 | */ 256 | alwaysShowTabs?: boolean; 257 | } 258 | 259 | /** 260 | * Represents the tab of TabbedPanelComponent 261 | */ 262 | export interface Tab { 263 | /** 264 | * Title of the tab 265 | */ 266 | title: string; 267 | 268 | /** 269 | * Content component of the tab 270 | */ 271 | content: Component; 272 | 273 | /** 274 | * Id of the tab 275 | */ 276 | id: string; 277 | 278 | /** 279 | * Icon of the tab 280 | */ 281 | icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri }; 282 | } 283 | 284 | /** 285 | * Represents the tab group of TabbedPanelComponent 286 | */ 287 | export interface TabGroup { 288 | /** 289 | * Title of the tab group 290 | */ 291 | title: string; 292 | 293 | /** 294 | * children of the tab group 295 | */ 296 | tabs: Tab[]; 297 | } 298 | 299 | /** 300 | * Builder for TabbedPannelComponent 301 | */ 302 | export interface TabbedPanelComponentBuilder extends ContainerBuilder { 303 | /** 304 | * Add the tabs to the component 305 | * @param tabs tabs/tab groups to be added 306 | */ 307 | withTabs(tabs: (Tab | TabGroup)[]): ContainerBuilder; 308 | } 309 | 310 | export interface InputBoxProperties extends ComponentProperties { 311 | validationErrorMessage?: string; 312 | readOnly?: boolean; 313 | } 314 | 315 | export interface CheckBoxProperties { 316 | required?: boolean; 317 | } 318 | 319 | /** 320 | * A property to be displayed in the PropertiesContainerComponent 321 | */ 322 | export interface PropertiesContainerItem { 323 | /** 324 | * The name of the property to display 325 | */ 326 | displayName: string; 327 | /** 328 | * The value of the property to display 329 | */ 330 | value: string; 331 | } 332 | 333 | /** 334 | * Component to display a list of property values. 335 | */ 336 | export interface PropertiesContainerComponent extends Component, PropertiesContainerComponentProperties { 337 | 338 | } 339 | 340 | /** 341 | * Properties for configuring a PropertiesContainerComponent 342 | */ 343 | export interface PropertiesContainerComponentProperties { 344 | /** 345 | * The properties to display 346 | */ 347 | propertyItems?: PropertiesContainerItem[]; 348 | } 349 | 350 | export namespace nb { 351 | /** 352 | * An event that is emitted when the active Notebook editor is changed. 353 | */ 354 | export const onDidChangeActiveNotebookEditor: vscode.Event; 355 | } 356 | 357 | export namespace window { 358 | export interface ModelViewDashboard { 359 | registerTabs(handler: (view: ModelView) => Thenable<(DashboardTab | DashboardTabGroup)[]>): void; 360 | open(): Thenable; 361 | updateTabs(tabs: (DashboardTab | DashboardTabGroup)[]): void; 362 | selectTab(id: string): void; 363 | } 364 | 365 | export function createModelViewDashboard(title: string, options?: ModelViewDashboardOptions): ModelViewDashboard; 366 | 367 | export interface Dialog { 368 | /** 369 | * Width of the dialog 370 | */ 371 | width?: DialogWidth; 372 | } 373 | 374 | export interface Wizard { 375 | /** 376 | * Width of the wizard 377 | */ 378 | width?: DialogWidth; 379 | } 380 | 381 | export type DialogWidth = 'narrow' | 'medium' | 'wide' | number; 382 | 383 | /** 384 | * Create a dialog with the given title 385 | * @param title The title of the dialog, displayed at the top 386 | * @param dialogName the name of the dialog 387 | * @param width width of the dialog, default is 'wide' 388 | */ 389 | export function createModelViewDialog(title: string, dialogName?: string, width?: DialogWidth): Dialog; 390 | 391 | /** 392 | * Create a wizard with the given title and width 393 | * @param title The title of the wizard 394 | * @param width The width of the wizard, default value is 'narrow' 395 | */ 396 | export function createWizard(title: string, width?: DialogWidth): Wizard; 397 | } 398 | 399 | export interface DashboardTab extends Tab { 400 | /** 401 | * Toolbar of the tab, optional. 402 | */ 403 | toolbar?: ToolbarContainer; 404 | } 405 | 406 | export interface DashboardTabGroup { 407 | /** 408 | * * Title of the tab group 409 | */ 410 | title: string; 411 | 412 | /** 413 | * children of the tab group 414 | */ 415 | tabs: DashboardTab[]; 416 | } 417 | 418 | export interface ModelViewDashboardOptions { 419 | /** 420 | * Whether to show the tab icon, default is true 421 | */ 422 | showIcon?: boolean; 423 | 424 | /** 425 | * Whether to show the tab navigation pane even when there is only one tab, default is false 426 | */ 427 | alwaysShowTabs?: boolean; 428 | } 429 | 430 | export interface Container extends Component { 431 | setItemLayout(component: Component, layout: TItemLayout): void; 432 | } 433 | 434 | export interface TaskInfo { 435 | targetLocation?: string; 436 | } 437 | 438 | export namespace sqlAssessment { 439 | 440 | export enum SqlAssessmentTargetType { 441 | Server = 1, 442 | Database = 2 443 | } 444 | 445 | export enum SqlAssessmentResultItemKind { 446 | RealResult = 0, 447 | Warning = 1, 448 | Error = 2 449 | } 450 | } 451 | // Assessment interfaces 452 | 453 | export interface SqlAssessmentResultItem { 454 | rulesetVersion: string; 455 | rulesetName: string; 456 | targetType: sqlAssessment.SqlAssessmentTargetType; 457 | targetName: string; 458 | checkId: string; 459 | tags: string[]; 460 | displayName: string; 461 | description: string; 462 | message: string; 463 | helpLink: string; 464 | level: string; 465 | timestamp: string; 466 | kind: sqlAssessment.SqlAssessmentResultItemKind; 467 | } 468 | 469 | export interface SqlAssessmentResult extends ResultStatus { 470 | items: SqlAssessmentResultItem[]; 471 | apiVersion: string; 472 | } 473 | 474 | export interface SqlAssessmentServicesProvider extends DataProvider { 475 | assessmentInvoke(ownerUri: string, targetType: sqlAssessment.SqlAssessmentTargetType): Promise; 476 | getAssessmentItems(ownerUri: string, targetType: sqlAssessment.SqlAssessmentTargetType): Promise; 477 | generateAssessmentScript(items: SqlAssessmentResultItem[]): Promise; 478 | } 479 | 480 | export interface TreeItem2 extends vscode.TreeItem2 { 481 | payload?: IConnectionProfile; 482 | childProvider?: string; 483 | type?: ExtensionNodeType; 484 | } 485 | } 486 | -------------------------------------------------------------------------------- /vsc-extension-quickstart.md: -------------------------------------------------------------------------------- 1 | # Welcome to your Azure Data Studio Extension 2 | 3 | ## What's in the folder 4 | * This folder contains all of the files necessary for your extension. 5 | * `package.json` - this is the manifest file in which you declare your extension and command. 6 | The sample plugin registers a command and defines its title and command name. With this information 7 | Azure Data Studio can show the command in the command palette. It doesn’t yet need to load the plugin. 8 | * `extension.js` - this is the main file where you will provide the implementation of your command. 9 | The file exports one function, `activate`, which is called the very first time your extension is 10 | activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`. 11 | We pass the function containing the implementation of the command as the second parameter to 12 | `registerCommand`. 13 | 14 | ## Get up and running straight away 15 | * Install the debugger, search extensions for 'ms-mssql.sqlops-debug' 16 | * Press `F5` to open a new window with your extension loaded. 17 | * Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`. 18 | * Set breakpoints in your code inside `extension.js` to debug your extension. 19 | * Find output from your extension in the debug console. 20 | 21 | ## Make changes 22 | * You can relaunch the extension from the debug toolbar after changing code in `extension.js`. 23 | * You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the Azure Data Studio window with your extension to load your changes. 24 | 25 | ## Explore the API 26 | * You can open the full set of our API when you open the file: 27 | * SQL specific APIs: `node_modules/@types/azdata/index.d.ts`. 28 | * Other APIs: `node_modules/@types/vscode/index.d.ts`. 29 | * To include Proposed APIs, run `npm run proposedapi` in your terminal 30 | * Proposed APIs will downloaded into: `typings/azdata.proposed.d.ts` 31 | 32 | ## Run tests 33 | * Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Launch Tests`. 34 | * Press `F5` to run the tests in a new window with your extension loaded. 35 | * See the output of the test result in the debug console. 36 | * Make changes to `test/extension.test.js` or create new test files inside the `test` folder. 37 | * By convention, the test runner will only consider files matching the name pattern `**.test.js`. 38 | * You can create folders inside the `test` folder to structure your tests any way you want. 39 | --------------------------------------------------------------------------------