├── .gitignore ├── .vscode ├── extensions.json ├── launch.json ├── settings.json └── tasks.json ├── .vscodeignore ├── CHANGELOG.md ├── LICENSE ├── README.md ├── img └── demo.gif ├── package-lock.json ├── package.json ├── src ├── extension.ts ├── gen.ts ├── helloworld.ts ├── jump.ts └── test │ ├── runTest.ts │ └── suite │ ├── extension.test.ts │ └── index.ts ├── tsconfig.json ├── tslint.json └── vsc-extension-quickstart.md /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | out 3 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 3 | // for the documentation about the extensions.json format 4 | "recommendations": [ 5 | "ms-vscode.vscode-typescript-tslint-plugin" 6 | ] 7 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | // A launch configuration that compiles the extension and then opens it 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 | "version": "0.2.0", 7 | "configurations": [ 8 | { 9 | "name": "Run Extension", 10 | "type": "extensionHost", 11 | "request": "launch", 12 | "runtimeExecutable": "${execPath}", 13 | "args": [ 14 | "--extensionDevelopmentPath=${workspaceFolder}" 15 | ], 16 | "outFiles": [ 17 | "${workspaceFolder}/out/**/*.js" 18 | ], 19 | "preLaunchTask": "npm: watch" 20 | }, 21 | { 22 | "name": "Extension Tests", 23 | "type": "extensionHost", 24 | "request": "launch", 25 | "runtimeExecutable": "${execPath}", 26 | "args": [ 27 | "--extensionDevelopmentPath=${workspaceFolder}", 28 | "--extensionTestsPath=${workspaceFolder}/out/test/suite/index" 29 | ], 30 | "outFiles": [ 31 | "${workspaceFolder}/out/test/**/*.js" 32 | ], 33 | "preLaunchTask": "npm: watch" 34 | } 35 | ] 36 | } 37 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | // Place your settings in this file to overwrite default and user settings. 2 | { 3 | "files.exclude": { 4 | "out": false // set this to true to hide the "out" folder with the compiled JS files 5 | }, 6 | "search.exclude": { 7 | "out": true // set this to false to include "out" folder in search results 8 | }, 9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts 10 | "typescript.tsc.autoDetect": "off" 11 | } -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- 1 | // See https://go.microsoft.com/fwlink/?LinkId=733558 2 | // for the documentation about the tasks.json format 3 | { 4 | "version": "2.0.0", 5 | "tasks": [ 6 | { 7 | "type": "npm", 8 | "script": "watch", 9 | "problemMatcher": "$tsc-watch", 10 | "isBackground": true, 11 | "presentation": { 12 | "reveal": "never" 13 | }, 14 | "group": { 15 | "kind": "build", 16 | "isDefault": true 17 | } 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /.vscodeignore: -------------------------------------------------------------------------------- 1 | .vscode/** 2 | .vscode-test/** 3 | out/test/** 4 | src/** 5 | .gitignore 6 | vsc-extension-quickstart.md 7 | **/tsconfig.json 8 | **/tslint.json 9 | **/*.map 10 | **/*.ts -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | All notable changes to the "vscode-cpython-explorer" 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) 2019 typeli 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 | # vscode-cpython-explorer 2 | 3 | A VS Code extension help you explore CPython internals 4 | 5 | 6 | ## Features 7 | - Right click on the .py file to generate Python bytecode 8 | - Jump from bytecode to C implementation 9 | 10 | ## Demo 11 | 12 | ![Demo](img/demo.gif) 13 | 14 | 15 | ## TODO 16 | 17 | ### Document 18 | - CPython internals 19 | - Extension tutorial 20 | - Some exercises, such as add new syntax 21 | 22 | ### Extension Features 23 | - A build button 24 | - Explorer 25 | - Parser 26 | - AST 27 | - Symbol table 28 | - Assembler 29 | - PyObject 30 | - Interpreter 31 | - Visualize VM 32 | - Single step run bytecode 33 | - Version control 34 | -------------------------------------------------------------------------------- /img/demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijunchen/vscode-cpython-explorer/0a78e70e1481ddf068681d8bf9c52c26dddc4283/img/demo.gif -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vscode-cpython-explorer", 3 | "version": "0.0.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@babel/code-frame": { 8 | "version": "7.5.5", 9 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.5.5.tgz", 10 | "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", 11 | "dev": true, 12 | "requires": { 13 | "@babel/highlight": "^7.0.0" 14 | } 15 | }, 16 | "@babel/highlight": { 17 | "version": "7.5.0", 18 | "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.5.0.tgz", 19 | "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", 20 | "dev": true, 21 | "requires": { 22 | "chalk": "^2.0.0", 23 | "esutils": "^2.0.2", 24 | "js-tokens": "^4.0.0" 25 | } 26 | }, 27 | "@types/events": { 28 | "version": "3.0.0", 29 | "resolved": "https://registry.npmjs.org/@types/events/-/events-3.0.0.tgz", 30 | "integrity": "sha512-EaObqwIvayI5a8dCzhFrjKzVwKLxjoG9T6Ppd5CEo07LRKfQ8Yokw54r5+Wq7FaBQ+yXRvQAYPrHwya1/UFt9g==", 31 | "dev": true 32 | }, 33 | "@types/glob": { 34 | "version": "7.1.1", 35 | "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.1.1.tgz", 36 | "integrity": "sha512-1Bh06cbWJUHMC97acuD6UMG29nMt0Aqz1vF3guLfG+kHHJhy3AyohZFFxYk2f7Q1SQIrNwvncxAE0N/9s70F2w==", 37 | "dev": true, 38 | "requires": { 39 | "@types/events": "*", 40 | "@types/minimatch": "*", 41 | "@types/node": "*" 42 | } 43 | }, 44 | "@types/minimatch": { 45 | "version": "3.0.3", 46 | "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", 47 | "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==", 48 | "dev": true 49 | }, 50 | "@types/mocha": { 51 | "version": "5.2.7", 52 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.2.7.tgz", 53 | "integrity": "sha512-NYrtPht0wGzhwe9+/idPaBB+TqkY9AhTvOLMkThm0IoEfLaiVQZwBwyJ5puCkO3AUCWrmcoePjp2mbFocKy4SQ==", 54 | "dev": true 55 | }, 56 | "@types/node": { 57 | "version": "10.14.13", 58 | "resolved": "https://registry.npmjs.org/@types/node/-/node-10.14.13.tgz", 59 | "integrity": "sha512-yN/FNNW1UYsRR1wwAoyOwqvDuLDtVXnaJTZ898XIw/Q5cCaeVAlVwvsmXLX5PuiScBYwZsZU4JYSHB3TvfdwvQ==", 60 | "dev": true 61 | }, 62 | "@types/vscode": { 63 | "version": "1.36.0", 64 | "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.36.0.tgz", 65 | "integrity": "sha512-SbHR3Q5g/C3N+Ila3KrRf1rSZiyHxWdOZ7X3yFHXzw6HrvRLuVZrxnwEX0lTBMRpH9LkwZdqRTgXW+D075jxkg==", 66 | "dev": true 67 | }, 68 | "agent-base": { 69 | "version": "4.3.0", 70 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", 71 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", 72 | "dev": true, 73 | "requires": { 74 | "es6-promisify": "^5.0.0" 75 | } 76 | }, 77 | "ansi-colors": { 78 | "version": "3.2.3", 79 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-3.2.3.tgz", 80 | "integrity": "sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw==", 81 | "dev": true 82 | }, 83 | "ansi-regex": { 84 | "version": "3.0.0", 85 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", 86 | "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", 87 | "dev": true 88 | }, 89 | "ansi-styles": { 90 | "version": "3.2.1", 91 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 92 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 93 | "dev": true, 94 | "requires": { 95 | "color-convert": "^1.9.0" 96 | } 97 | }, 98 | "argparse": { 99 | "version": "1.0.10", 100 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 101 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 102 | "dev": true, 103 | "requires": { 104 | "sprintf-js": "~1.0.2" 105 | } 106 | }, 107 | "balanced-match": { 108 | "version": "1.0.0", 109 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 110 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 111 | "dev": true 112 | }, 113 | "brace-expansion": { 114 | "version": "1.1.11", 115 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 116 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 117 | "dev": true, 118 | "requires": { 119 | "balanced-match": "^1.0.0", 120 | "concat-map": "0.0.1" 121 | } 122 | }, 123 | "browser-stdout": { 124 | "version": "1.3.1", 125 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 126 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 127 | "dev": true 128 | }, 129 | "builtin-modules": { 130 | "version": "1.1.1", 131 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 132 | "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", 133 | "dev": true 134 | }, 135 | "camelcase": { 136 | "version": "5.3.1", 137 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 138 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 139 | "dev": true 140 | }, 141 | "chalk": { 142 | "version": "2.4.2", 143 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 144 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 145 | "dev": true, 146 | "requires": { 147 | "ansi-styles": "^3.2.1", 148 | "escape-string-regexp": "^1.0.5", 149 | "supports-color": "^5.3.0" 150 | }, 151 | "dependencies": { 152 | "supports-color": { 153 | "version": "5.5.0", 154 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 155 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 156 | "dev": true, 157 | "requires": { 158 | "has-flag": "^3.0.0" 159 | } 160 | } 161 | } 162 | }, 163 | "cliui": { 164 | "version": "4.1.0", 165 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz", 166 | "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", 167 | "dev": true, 168 | "requires": { 169 | "string-width": "^2.1.1", 170 | "strip-ansi": "^4.0.0", 171 | "wrap-ansi": "^2.0.0" 172 | } 173 | }, 174 | "code-point-at": { 175 | "version": "1.1.0", 176 | "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", 177 | "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", 178 | "dev": true 179 | }, 180 | "color-convert": { 181 | "version": "1.9.3", 182 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 183 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 184 | "dev": true, 185 | "requires": { 186 | "color-name": "1.1.3" 187 | } 188 | }, 189 | "color-name": { 190 | "version": "1.1.3", 191 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 192 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 193 | "dev": true 194 | }, 195 | "commander": { 196 | "version": "2.20.0", 197 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", 198 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", 199 | "dev": true 200 | }, 201 | "concat-map": { 202 | "version": "0.0.1", 203 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 204 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 205 | "dev": true 206 | }, 207 | "cross-spawn": { 208 | "version": "6.0.5", 209 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", 210 | "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", 211 | "dev": true, 212 | "requires": { 213 | "nice-try": "^1.0.4", 214 | "path-key": "^2.0.1", 215 | "semver": "^5.5.0", 216 | "shebang-command": "^1.2.0", 217 | "which": "^1.2.9" 218 | } 219 | }, 220 | "debug": { 221 | "version": "3.2.6", 222 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 223 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 224 | "dev": true, 225 | "requires": { 226 | "ms": "^2.1.1" 227 | } 228 | }, 229 | "decamelize": { 230 | "version": "1.2.0", 231 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 232 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 233 | "dev": true 234 | }, 235 | "define-properties": { 236 | "version": "1.1.3", 237 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 238 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 239 | "dev": true, 240 | "requires": { 241 | "object-keys": "^1.0.12" 242 | } 243 | }, 244 | "diff": { 245 | "version": "3.5.0", 246 | "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", 247 | "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", 248 | "dev": true 249 | }, 250 | "emoji-regex": { 251 | "version": "7.0.3", 252 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", 253 | "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", 254 | "dev": true 255 | }, 256 | "end-of-stream": { 257 | "version": "1.4.1", 258 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 259 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 260 | "dev": true, 261 | "requires": { 262 | "once": "^1.4.0" 263 | } 264 | }, 265 | "es-abstract": { 266 | "version": "1.13.0", 267 | "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.13.0.tgz", 268 | "integrity": "sha512-vDZfg/ykNxQVwup/8E1BZhVzFfBxs9NqMzGcvIJrqg5k2/5Za2bWo40dK2J1pgLngZ7c+Shh8lwYtLGyrwPutg==", 269 | "dev": true, 270 | "requires": { 271 | "es-to-primitive": "^1.2.0", 272 | "function-bind": "^1.1.1", 273 | "has": "^1.0.3", 274 | "is-callable": "^1.1.4", 275 | "is-regex": "^1.0.4", 276 | "object-keys": "^1.0.12" 277 | } 278 | }, 279 | "es-to-primitive": { 280 | "version": "1.2.0", 281 | "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz", 282 | "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==", 283 | "dev": true, 284 | "requires": { 285 | "is-callable": "^1.1.4", 286 | "is-date-object": "^1.0.1", 287 | "is-symbol": "^1.0.2" 288 | } 289 | }, 290 | "es6-promise": { 291 | "version": "4.2.8", 292 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 293 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", 294 | "dev": true 295 | }, 296 | "es6-promisify": { 297 | "version": "5.0.0", 298 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 299 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", 300 | "dev": true, 301 | "requires": { 302 | "es6-promise": "^4.0.3" 303 | } 304 | }, 305 | "escape-string-regexp": { 306 | "version": "1.0.5", 307 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 308 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 309 | "dev": true 310 | }, 311 | "esprima": { 312 | "version": "4.0.1", 313 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 314 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 315 | "dev": true 316 | }, 317 | "esutils": { 318 | "version": "2.0.2", 319 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", 320 | "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", 321 | "dev": true 322 | }, 323 | "execa": { 324 | "version": "1.0.0", 325 | "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", 326 | "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", 327 | "dev": true, 328 | "requires": { 329 | "cross-spawn": "^6.0.0", 330 | "get-stream": "^4.0.0", 331 | "is-stream": "^1.1.0", 332 | "npm-run-path": "^2.0.0", 333 | "p-finally": "^1.0.0", 334 | "signal-exit": "^3.0.0", 335 | "strip-eof": "^1.0.0" 336 | } 337 | }, 338 | "find-up": { 339 | "version": "3.0.0", 340 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", 341 | "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", 342 | "dev": true, 343 | "requires": { 344 | "locate-path": "^3.0.0" 345 | } 346 | }, 347 | "flat": { 348 | "version": "4.1.0", 349 | "resolved": "https://registry.npmjs.org/flat/-/flat-4.1.0.tgz", 350 | "integrity": "sha512-Px/TiLIznH7gEDlPXcUD4KnBusa6kR6ayRUVcnEAbreRIuhkqow/mun59BuRXwoYk7ZQOLW1ZM05ilIvK38hFw==", 351 | "dev": true, 352 | "requires": { 353 | "is-buffer": "~2.0.3" 354 | } 355 | }, 356 | "fs.realpath": { 357 | "version": "1.0.0", 358 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 359 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 360 | "dev": true 361 | }, 362 | "function-bind": { 363 | "version": "1.1.1", 364 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 365 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 366 | "dev": true 367 | }, 368 | "get-caller-file": { 369 | "version": "2.0.5", 370 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 371 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 372 | "dev": true 373 | }, 374 | "get-stream": { 375 | "version": "4.1.0", 376 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 377 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 378 | "dev": true, 379 | "requires": { 380 | "pump": "^3.0.0" 381 | } 382 | }, 383 | "glob": { 384 | "version": "7.1.4", 385 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 386 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 387 | "dev": true, 388 | "requires": { 389 | "fs.realpath": "^1.0.0", 390 | "inflight": "^1.0.4", 391 | "inherits": "2", 392 | "minimatch": "^3.0.4", 393 | "once": "^1.3.0", 394 | "path-is-absolute": "^1.0.0" 395 | } 396 | }, 397 | "growl": { 398 | "version": "1.10.5", 399 | "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", 400 | "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", 401 | "dev": true 402 | }, 403 | "has": { 404 | "version": "1.0.3", 405 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 406 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 407 | "dev": true, 408 | "requires": { 409 | "function-bind": "^1.1.1" 410 | } 411 | }, 412 | "has-flag": { 413 | "version": "3.0.0", 414 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 415 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 416 | "dev": true 417 | }, 418 | "has-symbols": { 419 | "version": "1.0.0", 420 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", 421 | "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", 422 | "dev": true 423 | }, 424 | "he": { 425 | "version": "1.2.0", 426 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 427 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 428 | "dev": true 429 | }, 430 | "http-proxy-agent": { 431 | "version": "2.1.0", 432 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", 433 | "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", 434 | "dev": true, 435 | "requires": { 436 | "agent-base": "4", 437 | "debug": "3.1.0" 438 | }, 439 | "dependencies": { 440 | "debug": { 441 | "version": "3.1.0", 442 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", 443 | "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", 444 | "dev": true, 445 | "requires": { 446 | "ms": "2.0.0" 447 | } 448 | }, 449 | "ms": { 450 | "version": "2.0.0", 451 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 452 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 453 | "dev": true 454 | } 455 | } 456 | }, 457 | "https-proxy-agent": { 458 | "version": "2.2.2", 459 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.2.tgz", 460 | "integrity": "sha512-c8Ndjc9Bkpfx/vCJueCPy0jlP4ccCCSNDp8xwCZzPjKJUm+B+u9WX2x98Qx4n1PiMNTWo3D7KK5ifNV/yJyRzg==", 461 | "dev": true, 462 | "requires": { 463 | "agent-base": "^4.3.0", 464 | "debug": "^3.1.0" 465 | } 466 | }, 467 | "inflight": { 468 | "version": "1.0.6", 469 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 470 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 471 | "dev": true, 472 | "requires": { 473 | "once": "^1.3.0", 474 | "wrappy": "1" 475 | } 476 | }, 477 | "inherits": { 478 | "version": "2.0.4", 479 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 480 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 481 | "dev": true 482 | }, 483 | "invert-kv": { 484 | "version": "2.0.0", 485 | "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-2.0.0.tgz", 486 | "integrity": "sha512-wPVv/y/QQ/Uiirj/vh3oP+1Ww+AWehmi1g5fFWGPF6IpCBCDVrhgHRMvrLfdYcwDh3QJbGXDW4JAuzxElLSqKA==", 487 | "dev": true 488 | }, 489 | "is-buffer": { 490 | "version": "2.0.3", 491 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-2.0.3.tgz", 492 | "integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==", 493 | "dev": true 494 | }, 495 | "is-callable": { 496 | "version": "1.1.4", 497 | "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.1.4.tgz", 498 | "integrity": "sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA==", 499 | "dev": true 500 | }, 501 | "is-date-object": { 502 | "version": "1.0.1", 503 | "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.1.tgz", 504 | "integrity": "sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=", 505 | "dev": true 506 | }, 507 | "is-fullwidth-code-point": { 508 | "version": "2.0.0", 509 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 510 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", 511 | "dev": true 512 | }, 513 | "is-regex": { 514 | "version": "1.0.4", 515 | "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.0.4.tgz", 516 | "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", 517 | "dev": true, 518 | "requires": { 519 | "has": "^1.0.1" 520 | } 521 | }, 522 | "is-stream": { 523 | "version": "1.1.0", 524 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", 525 | "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", 526 | "dev": true 527 | }, 528 | "is-symbol": { 529 | "version": "1.0.2", 530 | "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz", 531 | "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==", 532 | "dev": true, 533 | "requires": { 534 | "has-symbols": "^1.0.0" 535 | } 536 | }, 537 | "isexe": { 538 | "version": "2.0.0", 539 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 540 | "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", 541 | "dev": true 542 | }, 543 | "js-tokens": { 544 | "version": "4.0.0", 545 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 546 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 547 | "dev": true 548 | }, 549 | "js-yaml": { 550 | "version": "3.13.1", 551 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", 552 | "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", 553 | "dev": true, 554 | "requires": { 555 | "argparse": "^1.0.7", 556 | "esprima": "^4.0.0" 557 | } 558 | }, 559 | "lcid": { 560 | "version": "2.0.0", 561 | "resolved": "https://registry.npmjs.org/lcid/-/lcid-2.0.0.tgz", 562 | "integrity": "sha512-avPEb8P8EGnwXKClwsNUgryVjllcRqtMYa49NTsbQagYuT1DcXnl1915oxWjoyGrXR6zH/Y0Zc96xWsPcoDKeA==", 563 | "dev": true, 564 | "requires": { 565 | "invert-kv": "^2.0.0" 566 | } 567 | }, 568 | "locate-path": { 569 | "version": "3.0.0", 570 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", 571 | "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", 572 | "dev": true, 573 | "requires": { 574 | "p-locate": "^3.0.0", 575 | "path-exists": "^3.0.0" 576 | } 577 | }, 578 | "lodash": { 579 | "version": "4.17.15", 580 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 581 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", 582 | "dev": true 583 | }, 584 | "log-symbols": { 585 | "version": "2.2.0", 586 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-2.2.0.tgz", 587 | "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", 588 | "dev": true, 589 | "requires": { 590 | "chalk": "^2.0.1" 591 | } 592 | }, 593 | "map-age-cleaner": { 594 | "version": "0.1.3", 595 | "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", 596 | "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", 597 | "dev": true, 598 | "requires": { 599 | "p-defer": "^1.0.0" 600 | } 601 | }, 602 | "mem": { 603 | "version": "4.3.0", 604 | "resolved": "https://registry.npmjs.org/mem/-/mem-4.3.0.tgz", 605 | "integrity": "sha512-qX2bG48pTqYRVmDB37rn/6PT7LcR8T7oAX3bf99u1Tt1nzxYfxkgqDwUwolPlXweM0XzBOBFzSx4kfp7KP1s/w==", 606 | "dev": true, 607 | "requires": { 608 | "map-age-cleaner": "^0.1.1", 609 | "mimic-fn": "^2.0.0", 610 | "p-is-promise": "^2.0.0" 611 | } 612 | }, 613 | "mimic-fn": { 614 | "version": "2.1.0", 615 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 616 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 617 | "dev": true 618 | }, 619 | "minimatch": { 620 | "version": "3.0.4", 621 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 622 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 623 | "dev": true, 624 | "requires": { 625 | "brace-expansion": "^1.1.7" 626 | } 627 | }, 628 | "minimist": { 629 | "version": "0.0.8", 630 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 631 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", 632 | "dev": true 633 | }, 634 | "mkdirp": { 635 | "version": "0.5.1", 636 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 637 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 638 | "dev": true, 639 | "requires": { 640 | "minimist": "0.0.8" 641 | } 642 | }, 643 | "mocha": { 644 | "version": "6.2.0", 645 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-6.2.0.tgz", 646 | "integrity": "sha512-qwfFgY+7EKAAUAdv7VYMZQknI7YJSGesxHyhn6qD52DV8UcSZs5XwCifcZGMVIE4a5fbmhvbotxC0DLQ0oKohQ==", 647 | "dev": true, 648 | "requires": { 649 | "ansi-colors": "3.2.3", 650 | "browser-stdout": "1.3.1", 651 | "debug": "3.2.6", 652 | "diff": "3.5.0", 653 | "escape-string-regexp": "1.0.5", 654 | "find-up": "3.0.0", 655 | "glob": "7.1.3", 656 | "growl": "1.10.5", 657 | "he": "1.2.0", 658 | "js-yaml": "3.13.1", 659 | "log-symbols": "2.2.0", 660 | "minimatch": "3.0.4", 661 | "mkdirp": "0.5.1", 662 | "ms": "2.1.1", 663 | "node-environment-flags": "1.0.5", 664 | "object.assign": "4.1.0", 665 | "strip-json-comments": "2.0.1", 666 | "supports-color": "6.0.0", 667 | "which": "1.3.1", 668 | "wide-align": "1.1.3", 669 | "yargs": "13.2.2", 670 | "yargs-parser": "13.0.0", 671 | "yargs-unparser": "1.5.0" 672 | }, 673 | "dependencies": { 674 | "glob": { 675 | "version": "7.1.3", 676 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", 677 | "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", 678 | "dev": true, 679 | "requires": { 680 | "fs.realpath": "^1.0.0", 681 | "inflight": "^1.0.4", 682 | "inherits": "2", 683 | "minimatch": "^3.0.4", 684 | "once": "^1.3.0", 685 | "path-is-absolute": "^1.0.0" 686 | } 687 | } 688 | } 689 | }, 690 | "ms": { 691 | "version": "2.1.1", 692 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 693 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 694 | "dev": true 695 | }, 696 | "nice-try": { 697 | "version": "1.0.5", 698 | "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", 699 | "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", 700 | "dev": true 701 | }, 702 | "node-environment-flags": { 703 | "version": "1.0.5", 704 | "resolved": "https://registry.npmjs.org/node-environment-flags/-/node-environment-flags-1.0.5.tgz", 705 | "integrity": "sha512-VNYPRfGfmZLx0Ye20jWzHUjyTW/c+6Wq+iLhDzUI4XmhrDd9l/FozXV3F2xOaXjvp0co0+v1YSR3CMP6g+VvLQ==", 706 | "dev": true, 707 | "requires": { 708 | "object.getownpropertydescriptors": "^2.0.3", 709 | "semver": "^5.7.0" 710 | } 711 | }, 712 | "npm-run-path": { 713 | "version": "2.0.2", 714 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", 715 | "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", 716 | "dev": true, 717 | "requires": { 718 | "path-key": "^2.0.0" 719 | } 720 | }, 721 | "number-is-nan": { 722 | "version": "1.0.1", 723 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 724 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", 725 | "dev": true 726 | }, 727 | "object-keys": { 728 | "version": "1.1.1", 729 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 730 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 731 | "dev": true 732 | }, 733 | "object.assign": { 734 | "version": "4.1.0", 735 | "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", 736 | "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", 737 | "dev": true, 738 | "requires": { 739 | "define-properties": "^1.1.2", 740 | "function-bind": "^1.1.1", 741 | "has-symbols": "^1.0.0", 742 | "object-keys": "^1.0.11" 743 | } 744 | }, 745 | "object.getownpropertydescriptors": { 746 | "version": "2.0.3", 747 | "resolved": "https://registry.npmjs.org/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz", 748 | "integrity": "sha1-h1jIRvW0B62rDyNuCYbxSwUcqhY=", 749 | "dev": true, 750 | "requires": { 751 | "define-properties": "^1.1.2", 752 | "es-abstract": "^1.5.1" 753 | } 754 | }, 755 | "once": { 756 | "version": "1.4.0", 757 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 758 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 759 | "dev": true, 760 | "requires": { 761 | "wrappy": "1" 762 | } 763 | }, 764 | "os-locale": { 765 | "version": "3.1.0", 766 | "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-3.1.0.tgz", 767 | "integrity": "sha512-Z8l3R4wYWM40/52Z+S265okfFj8Kt2cC2MKY+xNi3kFs+XGI7WXu/I309QQQYbRW4ijiZ+yxs9pqEhJh0DqW3Q==", 768 | "dev": true, 769 | "requires": { 770 | "execa": "^1.0.0", 771 | "lcid": "^2.0.0", 772 | "mem": "^4.0.0" 773 | } 774 | }, 775 | "p-defer": { 776 | "version": "1.0.0", 777 | "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", 778 | "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", 779 | "dev": true 780 | }, 781 | "p-finally": { 782 | "version": "1.0.0", 783 | "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", 784 | "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", 785 | "dev": true 786 | }, 787 | "p-is-promise": { 788 | "version": "2.1.0", 789 | "resolved": "https://registry.npmjs.org/p-is-promise/-/p-is-promise-2.1.0.tgz", 790 | "integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==", 791 | "dev": true 792 | }, 793 | "p-limit": { 794 | "version": "2.2.0", 795 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.0.tgz", 796 | "integrity": "sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ==", 797 | "dev": true, 798 | "requires": { 799 | "p-try": "^2.0.0" 800 | } 801 | }, 802 | "p-locate": { 803 | "version": "3.0.0", 804 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", 805 | "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", 806 | "dev": true, 807 | "requires": { 808 | "p-limit": "^2.0.0" 809 | } 810 | }, 811 | "p-try": { 812 | "version": "2.2.0", 813 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 814 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 815 | "dev": true 816 | }, 817 | "path-exists": { 818 | "version": "3.0.0", 819 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 820 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", 821 | "dev": true 822 | }, 823 | "path-is-absolute": { 824 | "version": "1.0.1", 825 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 826 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 827 | "dev": true 828 | }, 829 | "path-key": { 830 | "version": "2.0.1", 831 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", 832 | "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", 833 | "dev": true 834 | }, 835 | "path-parse": { 836 | "version": "1.0.6", 837 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 838 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 839 | "dev": true 840 | }, 841 | "pump": { 842 | "version": "3.0.0", 843 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 844 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 845 | "dev": true, 846 | "requires": { 847 | "end-of-stream": "^1.1.0", 848 | "once": "^1.3.1" 849 | } 850 | }, 851 | "require-directory": { 852 | "version": "2.1.1", 853 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 854 | "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", 855 | "dev": true 856 | }, 857 | "require-main-filename": { 858 | "version": "2.0.0", 859 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", 860 | "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", 861 | "dev": true 862 | }, 863 | "resolve": { 864 | "version": "1.11.1", 865 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.11.1.tgz", 866 | "integrity": "sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw==", 867 | "dev": true, 868 | "requires": { 869 | "path-parse": "^1.0.6" 870 | } 871 | }, 872 | "semver": { 873 | "version": "5.7.0", 874 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", 875 | "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", 876 | "dev": true 877 | }, 878 | "set-blocking": { 879 | "version": "2.0.0", 880 | "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", 881 | "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", 882 | "dev": true 883 | }, 884 | "shebang-command": { 885 | "version": "1.2.0", 886 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", 887 | "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", 888 | "dev": true, 889 | "requires": { 890 | "shebang-regex": "^1.0.0" 891 | } 892 | }, 893 | "shebang-regex": { 894 | "version": "1.0.0", 895 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", 896 | "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", 897 | "dev": true 898 | }, 899 | "signal-exit": { 900 | "version": "3.0.2", 901 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", 902 | "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", 903 | "dev": true 904 | }, 905 | "sprintf-js": { 906 | "version": "1.0.3", 907 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 908 | "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", 909 | "dev": true 910 | }, 911 | "string-width": { 912 | "version": "2.1.1", 913 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", 914 | "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", 915 | "dev": true, 916 | "requires": { 917 | "is-fullwidth-code-point": "^2.0.0", 918 | "strip-ansi": "^4.0.0" 919 | } 920 | }, 921 | "strip-ansi": { 922 | "version": "4.0.0", 923 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", 924 | "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", 925 | "dev": true, 926 | "requires": { 927 | "ansi-regex": "^3.0.0" 928 | } 929 | }, 930 | "strip-eof": { 931 | "version": "1.0.0", 932 | "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", 933 | "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", 934 | "dev": true 935 | }, 936 | "strip-json-comments": { 937 | "version": "2.0.1", 938 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", 939 | "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", 940 | "dev": true 941 | }, 942 | "supports-color": { 943 | "version": "6.0.0", 944 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-6.0.0.tgz", 945 | "integrity": "sha512-on9Kwidc1IUQo+bQdhi8+Tijpo0e1SS6RoGo2guUwn5vdaxw8RXOF9Vb2ws+ihWOmh4JnCJOvaziZWP1VABaLg==", 946 | "dev": true, 947 | "requires": { 948 | "has-flag": "^3.0.0" 949 | } 950 | }, 951 | "tslib": { 952 | "version": "1.10.0", 953 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.10.0.tgz", 954 | "integrity": "sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ==", 955 | "dev": true 956 | }, 957 | "tslint": { 958 | "version": "5.18.0", 959 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-5.18.0.tgz", 960 | "integrity": "sha512-Q3kXkuDEijQ37nXZZLKErssQVnwCV/+23gFEMROi8IlbaBG6tXqLPQJ5Wjcyt/yHPKBC+hD5SzuGaMora+ZS6w==", 961 | "dev": true, 962 | "requires": { 963 | "@babel/code-frame": "^7.0.0", 964 | "builtin-modules": "^1.1.1", 965 | "chalk": "^2.3.0", 966 | "commander": "^2.12.1", 967 | "diff": "^3.2.0", 968 | "glob": "^7.1.1", 969 | "js-yaml": "^3.13.1", 970 | "minimatch": "^3.0.4", 971 | "mkdirp": "^0.5.1", 972 | "resolve": "^1.3.2", 973 | "semver": "^5.3.0", 974 | "tslib": "^1.8.0", 975 | "tsutils": "^2.29.0" 976 | } 977 | }, 978 | "tsutils": { 979 | "version": "2.29.0", 980 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 981 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 982 | "dev": true, 983 | "requires": { 984 | "tslib": "^1.8.1" 985 | } 986 | }, 987 | "typescript": { 988 | "version": "3.5.3", 989 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.5.3.tgz", 990 | "integrity": "sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g==", 991 | "dev": true 992 | }, 993 | "vscode-test": { 994 | "version": "1.0.2", 995 | "resolved": "https://registry.npmjs.org/vscode-test/-/vscode-test-1.0.2.tgz", 996 | "integrity": "sha512-lBvwzJWl/uVfsa2buouUwIaN10MIaiZMlTXP+rESGrHLa12Nt8nP2xroZYdbnSv1DrTCFjnQAsGXbCJnQC585A==", 997 | "dev": true, 998 | "requires": { 999 | "http-proxy-agent": "^2.1.0", 1000 | "https-proxy-agent": "^2.2.1" 1001 | } 1002 | }, 1003 | "which": { 1004 | "version": "1.3.1", 1005 | "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", 1006 | "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", 1007 | "dev": true, 1008 | "requires": { 1009 | "isexe": "^2.0.0" 1010 | } 1011 | }, 1012 | "which-module": { 1013 | "version": "2.0.0", 1014 | "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", 1015 | "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", 1016 | "dev": true 1017 | }, 1018 | "wide-align": { 1019 | "version": "1.1.3", 1020 | "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", 1021 | "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", 1022 | "dev": true, 1023 | "requires": { 1024 | "string-width": "^1.0.2 || 2" 1025 | } 1026 | }, 1027 | "wrap-ansi": { 1028 | "version": "2.1.0", 1029 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", 1030 | "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", 1031 | "dev": true, 1032 | "requires": { 1033 | "string-width": "^1.0.1", 1034 | "strip-ansi": "^3.0.1" 1035 | }, 1036 | "dependencies": { 1037 | "ansi-regex": { 1038 | "version": "2.1.1", 1039 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 1040 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 1041 | "dev": true 1042 | }, 1043 | "is-fullwidth-code-point": { 1044 | "version": "1.0.0", 1045 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", 1046 | "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", 1047 | "dev": true, 1048 | "requires": { 1049 | "number-is-nan": "^1.0.0" 1050 | } 1051 | }, 1052 | "string-width": { 1053 | "version": "1.0.2", 1054 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", 1055 | "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", 1056 | "dev": true, 1057 | "requires": { 1058 | "code-point-at": "^1.0.0", 1059 | "is-fullwidth-code-point": "^1.0.0", 1060 | "strip-ansi": "^3.0.0" 1061 | } 1062 | }, 1063 | "strip-ansi": { 1064 | "version": "3.0.1", 1065 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 1066 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 1067 | "dev": true, 1068 | "requires": { 1069 | "ansi-regex": "^2.0.0" 1070 | } 1071 | } 1072 | } 1073 | }, 1074 | "wrappy": { 1075 | "version": "1.0.2", 1076 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1077 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1078 | "dev": true 1079 | }, 1080 | "y18n": { 1081 | "version": "4.0.0", 1082 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz", 1083 | "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==", 1084 | "dev": true 1085 | }, 1086 | "yargs": { 1087 | "version": "13.2.2", 1088 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.2.2.tgz", 1089 | "integrity": "sha512-WyEoxgyTD3w5XRpAQNYUB9ycVH/PQrToaTXdYXRdOXvEy1l19br+VJsc0vcO8PTGg5ro/l/GY7F/JMEBmI0BxA==", 1090 | "dev": true, 1091 | "requires": { 1092 | "cliui": "^4.0.0", 1093 | "find-up": "^3.0.0", 1094 | "get-caller-file": "^2.0.1", 1095 | "os-locale": "^3.1.0", 1096 | "require-directory": "^2.1.1", 1097 | "require-main-filename": "^2.0.0", 1098 | "set-blocking": "^2.0.0", 1099 | "string-width": "^3.0.0", 1100 | "which-module": "^2.0.0", 1101 | "y18n": "^4.0.0", 1102 | "yargs-parser": "^13.0.0" 1103 | }, 1104 | "dependencies": { 1105 | "ansi-regex": { 1106 | "version": "4.1.0", 1107 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", 1108 | "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", 1109 | "dev": true 1110 | }, 1111 | "string-width": { 1112 | "version": "3.1.0", 1113 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", 1114 | "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", 1115 | "dev": true, 1116 | "requires": { 1117 | "emoji-regex": "^7.0.1", 1118 | "is-fullwidth-code-point": "^2.0.0", 1119 | "strip-ansi": "^5.1.0" 1120 | } 1121 | }, 1122 | "strip-ansi": { 1123 | "version": "5.2.0", 1124 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", 1125 | "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", 1126 | "dev": true, 1127 | "requires": { 1128 | "ansi-regex": "^4.1.0" 1129 | } 1130 | } 1131 | } 1132 | }, 1133 | "yargs-parser": { 1134 | "version": "13.0.0", 1135 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.0.0.tgz", 1136 | "integrity": "sha512-w2LXjoL8oRdRQN+hOyppuXs+V/fVAYtpcrRxZuF7Kt/Oc+Jr2uAcVntaUTNT6w5ihoWfFDpNY8CPx1QskxZ/pw==", 1137 | "dev": true, 1138 | "requires": { 1139 | "camelcase": "^5.0.0", 1140 | "decamelize": "^1.2.0" 1141 | } 1142 | }, 1143 | "yargs-unparser": { 1144 | "version": "1.5.0", 1145 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-1.5.0.tgz", 1146 | "integrity": "sha512-HK25qidFTCVuj/D1VfNiEndpLIeJN78aqgR23nL3y4N0U/91cOAzqfHlF8n2BvoNDcZmJKin3ddNSvOxSr8flw==", 1147 | "dev": true, 1148 | "requires": { 1149 | "flat": "^4.1.0", 1150 | "lodash": "^4.17.11", 1151 | "yargs": "^12.0.5" 1152 | }, 1153 | "dependencies": { 1154 | "get-caller-file": { 1155 | "version": "1.0.3", 1156 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", 1157 | "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", 1158 | "dev": true 1159 | }, 1160 | "require-main-filename": { 1161 | "version": "1.0.1", 1162 | "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", 1163 | "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", 1164 | "dev": true 1165 | }, 1166 | "yargs": { 1167 | "version": "12.0.5", 1168 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-12.0.5.tgz", 1169 | "integrity": "sha512-Lhz8TLaYnxq/2ObqHDql8dX8CJi97oHxrjUcYtzKbbykPtVW9WB+poxI+NM2UIzsMgNCZTIf0AQwsjK5yMAqZw==", 1170 | "dev": true, 1171 | "requires": { 1172 | "cliui": "^4.0.0", 1173 | "decamelize": "^1.2.0", 1174 | "find-up": "^3.0.0", 1175 | "get-caller-file": "^1.0.1", 1176 | "os-locale": "^3.0.0", 1177 | "require-directory": "^2.1.1", 1178 | "require-main-filename": "^1.0.1", 1179 | "set-blocking": "^2.0.0", 1180 | "string-width": "^2.0.0", 1181 | "which-module": "^2.0.0", 1182 | "y18n": "^3.2.1 || ^4.0.0", 1183 | "yargs-parser": "^11.1.1" 1184 | } 1185 | }, 1186 | "yargs-parser": { 1187 | "version": "11.1.1", 1188 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-11.1.1.tgz", 1189 | "integrity": "sha512-C6kB/WJDiaxONLJQnF8ccx9SEeoTTLek8RVbaOIsrAUS8VrBEXfmeSnCZxygc+XC2sNMBIwOOnfcxiynjHsVSQ==", 1190 | "dev": true, 1191 | "requires": { 1192 | "camelcase": "^5.0.0", 1193 | "decamelize": "^1.2.0" 1194 | } 1195 | } 1196 | } 1197 | } 1198 | } 1199 | } 1200 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "vscode-cpython-explorer", 3 | "displayName": "vscode-cpython-explorer", 4 | "description": "", 5 | "version": "0.0.1", 6 | "engines": { 7 | "vscode": "^1.36.0" 8 | }, 9 | "categories": [ 10 | "Other" 11 | ], 12 | "activationEvents": [ 13 | "onCommand:extension.sayHello2" 14 | ], 15 | "main": "./out/extension.js", 16 | "contributes": { 17 | "commands": [ 18 | { 19 | "command": "extension.sayHello2", 20 | "title": "Hello World" 21 | }, 22 | { 23 | "command": "extension.generateBytecode", 24 | "title": "Generate Bytecode" 25 | } 26 | ], 27 | "keybindings": [ 28 | { 29 | "command": "extension.sayHello2", 30 | "key": "ctrl+f10", 31 | "mac": "cmd+f10", 32 | "when": "editorTextFocus" 33 | } 34 | ], 35 | "menus": { 36 | "editor/context": [ 37 | { 38 | "when": "editorFocus", 39 | "command": "extension.generateBytecode", 40 | "group": "navigation" 41 | } 42 | ], 43 | "explorer/context": [ 44 | { 45 | "command": "extension.generateBytecode", 46 | "group": "navigation" 47 | } 48 | ] 49 | } 50 | }, 51 | "scripts": { 52 | "vscode:prepublish": "npm run compile", 53 | "compile": "tsc -p ./", 54 | "watch": "tsc -watch -p ./", 55 | "pretest": "npm run compile", 56 | "test": "node ./out/test/runTest.js" 57 | }, 58 | "devDependencies": { 59 | "@types/glob": "^7.1.1", 60 | "@types/mocha": "^5.2.6", 61 | "@types/node": "^10.12.21", 62 | "@types/vscode": "^1.36.0", 63 | "glob": "^7.1.4", 64 | "mocha": "^6.1.4", 65 | "typescript": "^3.3.1", 66 | "tslint": "^5.12.1", 67 | "vscode-test": "^1.0.0-next.0" 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /src/extension.ts: -------------------------------------------------------------------------------- 1 | // The module 'vscode' contains the VS Code extensibility API 2 | // Import the module and reference it with the alias vscode in your code below 3 | import * as vscode from 'vscode'; 4 | 5 | // this method is called when your extension is activated 6 | // your extension is activated the very first time the command is executed 7 | export function activate(context: vscode.ExtensionContext) { 8 | // Use the console to output diagnostic information (console.log) and errors (console.error) 9 | // This line of code will only be executed once when your extension is activated 10 | console.log('Congratulations, your extension "vscode-cpython-explorer" is now active!'); 11 | require("./helloworld")(context); 12 | require("./gen")(context); 13 | require("./jump")(context); 14 | 15 | 16 | // The command has been defined in the package.json file 17 | // Now provide the implementation of the command with registerCommand 18 | // The commandId parameter must match the command field in package.json 19 | // let disposable = vscode.commands.registerCommand('extension.helloWorld', () => { 20 | // // The code you place here will be executed every time your command is executed 21 | 22 | // // Display a message box to the user 23 | // // vscode.window.showInformationMessage('Hello World!'); 24 | // let filename = vscode.window.activeTextEditor.document.fileName; 25 | // vscode.window.showInformationMessage(filename) 26 | // let child = require('child_process').execFile('python', ['-m', 'dis', filename]); 27 | // // use event hooks to provide a callback to execute when data are available: 28 | // child.stdout.on('data', (data) => { 29 | // let bc = data.toString(); 30 | // console.log(bc); 31 | // let path = require('path'); 32 | // let fs = require('fs'); 33 | // // let filePath = path.join(vscode.workspace.rootPath, 'test.bc'); 34 | // let filePath = filename; 35 | // if (filePath.endsWith(".py")) { 36 | // filePath += "bc"; 37 | // } 38 | // else { 39 | // filePath += ".pybc"; 40 | // } 41 | // vscode.window.showInformationMessage(filePath); 42 | // fs.writeFileSync(filePath, bc, {encoding: 'utf8', flag: 'w'}); 43 | // }); 44 | 45 | 46 | // // var openPath = vscode.Uri.parse("file:///" + filePath); //A request file path 47 | // // vscode.workspace.openTextDocument(openPath).then(doc => { 48 | // // vscode.window.showTextDocument(doc); 49 | // // }); 50 | 51 | 52 | // }); 53 | 54 | // context.subscriptions.push(disposable); 55 | } 56 | 57 | // this method is called when your extension is deactivated 58 | export function deactivate() {} 59 | -------------------------------------------------------------------------------- /src/gen.ts: -------------------------------------------------------------------------------- 1 | import { Uri } from "vscode"; 2 | 3 | const vscode = require("vscode"); 4 | const child_process = require("child_process"); 5 | const path = require('path'); 6 | const fs = require('fs'); 7 | module.exports = function(context) { 8 | context.subscriptions.push(vscode.commands.registerCommand('extension.generateBytecode', (uri) => { 9 | if (!uri) { 10 | vscode.window.showInformationMessage("Empty file"); 11 | return; 12 | } 13 | console.log(uri.path); 14 | let child = require('child_process').execFile('python', ['-m', 'dis', uri.fsPath]); 15 | child.stdout.on('data', (data) => { 16 | console.log("???"); 17 | let bc = data.toString(); 18 | console.log(bc); 19 | let filePath = uri.fsPath; 20 | if (filePath.endsWith(".py")) { 21 | filePath += "bc"; 22 | } 23 | else { 24 | filePath += ".pybc"; 25 | } 26 | // vscode.window.showInformationMessage(filePath); 27 | vscode.window.showInformationMessage("Generation succeeded"); 28 | fs.writeFileSync(filePath, bc, {encoding: 'utf8', flag: 'w'}); 29 | }); 30 | })); 31 | }; 32 | -------------------------------------------------------------------------------- /src/helloworld.ts: -------------------------------------------------------------------------------- 1 | import { Uri } from "vscode"; 2 | 3 | const vscode = require("vscode"); 4 | module.exports = function(context) { 5 | context.subscriptions.push(vscode.commands.registerCommand("extension.sayHello2", () => { 6 | vscode.window.showInformationMessage("Extension activated!"); 7 | })); 8 | }; 9 | 10 | 11 | -------------------------------------------------------------------------------- /src/jump.ts: -------------------------------------------------------------------------------- 1 | import vscode = require('vscode'); 2 | 3 | import path = require('path'); 4 | import fs = require('fs'); 5 | import readline = require("readline"); 6 | 7 | function provideDefinition(document, position, token) { 8 | const fileName = document.fileName; 9 | const workDir = path.dirname(fileName); 10 | const word = document.getText(document.getWordRangeAtPosition(position)); 11 | 12 | if (fileName.endsWith(".pybc")) { 13 | let destPath = `${workDir}/Python/ceval.c`; 14 | let table = {'POP_TOP': 1356, 15 | 'ROT_TWO': 1362, 16 | 'ROT_THREE': 1370, 17 | 'DUP_TOP': 1392, 18 | 'DUP_TOP_TWO': 1399, 19 | 'ROT_FOUR': 1380, 20 | 'NOP': 1324, 21 | 'UNARY_POSITIVE': 1410, 22 | 'UNARY_NEGATIVE': 1420, 23 | 'UNARY_NOT': 1430, 24 | 'UNARY_INVERT': 1448, 25 | 'BINARY_MATRIX_MULTIPLY': 1482, 26 | 'INPLACE_MATRIX_MULTIPLY': 1696, 27 | 'BINARY_POWER': 1458, 28 | 'BINARY_MULTIPLY': 1470, 29 | 'BINARY_MODULO': 1518, 30 | 'BINARY_ADD': 1538, 31 | 'BINARY_SUBTRACT': 1564, 32 | 'BINARY_SUBSCR': 1576, 33 | 'BINARY_FLOOR_DIVIDE': 1506, 34 | 'BINARY_TRUE_DIVIDE': 1494, 35 | 'INPLACE_FLOOR_DIVIDE': 1720, 36 | 'INPLACE_TRUE_DIVIDE': 1708, 37 | 'GET_AITER': 1912, 38 | 'GET_ANEXT': 1956, 39 | 'BEFORE_ASYNC_WITH': 3232, 40 | 'BEGIN_FINALLY': 2185, 41 | 'END_ASYNC_FOR': 2224, 42 | 'INPLACE_ADD': 1744, 43 | 'INPLACE_SUBTRACT': 1763, 44 | 'INPLACE_MULTIPLY': 1684, 45 | 'INPLACE_MODULO': 1732, 46 | 'STORE_SUBSCR': 1835, 47 | 'DELETE_SUBSCR': 1851, 48 | 'BINARY_LSHIFT': 1588, 49 | 'BINARY_RSHIFT': 1600, 50 | 'BINARY_AND': 1612, 51 | 'BINARY_XOR': 1624, 52 | 'BINARY_OR': 1636, 53 | 'INPLACE_POWER': 1672, 54 | 'GET_ITER': 3151, 55 | 'GET_YIELD_FROM_ITER': 3164, 56 | 'PRINT_EXPR': 1865, 57 | 'LOAD_BUILD_CLASS': 2244, 58 | 'YIELD_FROM': 2043, 59 | 'GET_AWAITABLE': 2007, 60 | 'INPLACE_LSHIFT': 1775, 61 | 'INPLACE_RSHIFT': 1787, 62 | 'INPLACE_AND': 1799, 63 | 'INPLACE_XOR': 1811, 64 | 'INPLACE_OR': 1823, 65 | 'WITH_CLEANUP_START': 3295, 66 | 'WITH_CLEANUP_FINISH': 3366, 67 | 'RETURN_VALUE': 1906, 68 | 'IMPORT_STAR': 2997, 69 | 'SETUP_ANNOTATIONS': 2803, 70 | 'YIELD_VALUE': 2077, 71 | 'POP_BLOCK': 2118, 72 | 'END_FINALLY': 2193, 73 | 'POP_EXCEPT': 2094, 74 | 'STORE_NAME': 2275, 75 | 'DELETE_NAME': 2296, 76 | 'UNPACK_SEQUENCE': 2315, 77 | 'FOR_ITER': 3193, 78 | 'UNPACK_EX': 2346, 79 | 'STORE_ATTR': 2361, 80 | 'DELETE_ATTR': 2375, 81 | 'STORE_GLOBAL': 2386, 82 | 'DELETE_GLOBAL': 2397, 83 | 'LOAD_CONST': 1341, 84 | 'LOAD_NAME': 2411, 85 | 'BUILD_TUPLE': 2672, 86 | 'BUILD_LIST': 2684, 87 | 'BUILD_SET': 2739, 88 | 'BUILD_MAP': 2779, 89 | 'LOAD_ATTR': 2958, 90 | 'COMPARE_OP': 2969, 91 | 'IMPORT_NAME': 2983, 92 | 'IMPORT_FROM': 3020, 93 | 'JUMP_FORWARD': 3031, 94 | 'JUMP_IF_FALSE_OR_POP': 3085, 95 | 'JUMP_IF_TRUE_OR_POP': 3109, 96 | 'JUMP_ABSOLUTE': 3134, 97 | 'POP_JUMP_IF_FALSE': 3036, 98 | 'POP_JUMP_IF_TRUE': 3060, 99 | 'LOAD_GLOBAL': 2475, 100 | 'SETUP_FINALLY': 3221, 101 | 'LOAD_FAST': 1328, 102 | 'STORE_FAST': 1349, 103 | 'DELETE_FAST': 2561, 104 | 'RAISE_VARARGS': 1884, 105 | 'CALL_FUNCTION': 3489, 106 | 'MAKE_FUNCTION': 3564, 107 | 'BUILD_SLICE': 3597, 108 | 'LOAD_CLOSURE': 2587, 109 | 'LOAD_DEREF': 2633, 110 | 'STORE_DEREF': 2645, 111 | 'DELETE_DEREF': 2575, 112 | 'CALL_FUNCTION_KW': 3502, 113 | 'CALL_FUNCTION_EX': 3519, 114 | 'SETUP_WITH': 3266, 115 | 'EXTENDED_ARG': 3675, 116 | 'LIST_APPEND': 1648, 117 | 'SET_ADD': 1660, 118 | 'MAP_ADD': 2941, 119 | 'LOAD_CLASSDEREF': 2594, 120 | 'BUILD_LIST_UNPACK': 2698, 121 | 'BUILD_MAP_UNPACK': 2895, 122 | 'BUILD_MAP_UNPACK_WITH_CALL': 2920, 123 | 'BUILD_TUPLE_UNPACK': 2697, 124 | 'BUILD_SET_UNPACK': 2760, 125 | 'SETUP_ASYNC_WITH': 3256, 126 | 'FORMAT_VALUE': 3615, 127 | 'BUILD_CONST_KEY_MAP': 2862, 128 | 'BUILD_STRING': 2654, 129 | 'BUILD_TUPLE_UNPACK_WITH_CALL': 2696, 130 | 'LOAD_METHOD': 3403, 131 | 'CALL_METHOD': 3440, 132 | 'CALL_FINALLY': 2175, 133 | 'POP_FINALLY': 2124}; 134 | return new vscode.Location(vscode.Uri.file(destPath), new vscode.Position(table[word], 0)); 135 | 136 | } 137 | }; 138 | 139 | module.exports = function(context) { 140 | // 注册如何实现跳转到定义,第一个参数表示仅对json文件生效 141 | context.subscriptions.push(vscode.languages.registerDefinitionProvider(['*'], { 142 | provideDefinition 143 | })); 144 | }; -------------------------------------------------------------------------------- /src/test/runTest.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | 3 | import { runTests } from '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 test runner 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 | -------------------------------------------------------------------------------- /src/test/suite/extension.test.ts: -------------------------------------------------------------------------------- 1 | import * as assert from 'assert'; 2 | import { before } from 'mocha'; 3 | 4 | // You can import and use all API from the 'vscode' module 5 | // as well as import your extension to test it 6 | import * as vscode from 'vscode'; 7 | // import * as myExtension from '../extension'; 8 | 9 | suite('Extension Test Suite', () => { 10 | before(() => { 11 | vscode.window.showInformationMessage('Start all tests.'); 12 | }); 13 | 14 | test('Sample test', () => { 15 | assert.equal(-1, [1, 2, 3].indexOf(5)); 16 | assert.equal(-1, [1, 2, 3].indexOf(0)); 17 | }); 18 | }); 19 | -------------------------------------------------------------------------------- /src/test/suite/index.ts: -------------------------------------------------------------------------------- 1 | import * as path from 'path'; 2 | import * as Mocha from 'mocha'; 3 | import * as glob from 'glob'; 4 | 5 | export function run(): Promise { 6 | // Create the mocha test 7 | const mocha = new Mocha({ 8 | ui: 'tdd', 9 | }); 10 | mocha.useColors(true); 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 | e(err); 34 | } 35 | }); 36 | }); 37 | } 38 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "target": "es6", 5 | "outDir": "out", 6 | "lib": [ 7 | "es6" 8 | ], 9 | "sourceMap": true, 10 | "rootDir": "src", 11 | "strict": true /* enable all strict type-checking options */ 12 | /* Additional Checks */ 13 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ 14 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ 15 | // "noUnusedParameters": true, /* Report errors on unused parameters. */ 16 | }, 17 | "exclude": [ 18 | "node_modules", 19 | ".vscode-test" 20 | ] 21 | } 22 | -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "rules": { 3 | "no-string-throw": true, 4 | "no-unused-expression": true, 5 | "no-duplicate-variable": true, 6 | "curly": true, 7 | "class-name": true, 8 | "semicolon": [ 9 | true, 10 | "always" 11 | ], 12 | "triple-equals": true 13 | }, 14 | "defaultSeverity": "warning" 15 | } 16 | -------------------------------------------------------------------------------- /vsc-extension-quickstart.md: -------------------------------------------------------------------------------- 1 | # Welcome to your VS Code Extension 2 | 3 | ## What's in the folder 4 | 5 | * This folder contains all of the files necessary for your extension. 6 | * `package.json` - this is the manifest file in which you declare your extension and command. 7 | * The sample plugin registers a command and defines its title and command name. With this information VS Code can show the command in the command palette. It doesn’t yet need to load the plugin. 8 | * `src/extension.ts` - 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 activated (in this case by executing the command). Inside the `activate` function we call `registerCommand`. 10 | * We pass the function containing the implementation of the command as the second parameter to `registerCommand`. 11 | 12 | ## Get up and running straight away 13 | 14 | * Press `F5` to open a new window with your extension loaded. 15 | * Run your command from the command palette by pressing (`Ctrl+Shift+P` or `Cmd+Shift+P` on Mac) and typing `Hello World`. 16 | * Set breakpoints in your code inside `src/extension.ts` to debug your extension. 17 | * Find output from your extension in the debug console. 18 | 19 | ## Make changes 20 | 21 | * You can relaunch the extension from the debug toolbar after changing code in `src/extension.ts`. 22 | * You can also reload (`Ctrl+R` or `Cmd+R` on Mac) the VS Code window with your extension to load your changes. 23 | 24 | ## Explore the API 25 | 26 | * You can open the full set of our API when you open the file `node_modules/vscode/vscode.d.ts`. 27 | 28 | ## Run tests 29 | 30 | * Open the debug viewlet (`Ctrl+Shift+D` or `Cmd+Shift+D` on Mac) and from the launch configuration dropdown pick `Extension Tests`. 31 | * Press `F5` to run the tests in a new window with your extension loaded. 32 | * See the output of the test result in the debug console. 33 | * Make changes to `test/extension.test.ts` or create new test files inside the `test` folder. 34 | * By convention, the test runner will only consider files matching the name pattern `**.test.ts`. 35 | * You can create folders inside the `test` folder to structure your tests any way you want. 36 | 37 | ## Go further 38 | 39 | * Reduce the extension size and improve the startup time by [bundling your extension](https://code.visualstudio.com/api/working-with-extensions/testing-extension). 40 | * [Publish your extension](https://code.visualstudio.com/api/working-with-extensions/publishing-extension) on the VSCode extension marketplace. 41 | * Automate builds by setting up [Continuous Integration](https://code.visualstudio.com/api/working-with-extensions/continuous-integration). 42 | --------------------------------------------------------------------------------