forked from snyk/vscode-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
392 lines (392 loc) · 15.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
{
"name": "snyk-vulnerability-scanner",
"//": "Changing display name requires change in general.ts",
"displayName": "Snyk Vulnerability Scanner",
"version": "1.2.4",
"description": "Easily find and fix vulnerabilities in both your code and open source dependencies with fast and accurate scans.",
"icon": "media/images/readme/snyk_extension_icon.png",
"publisher": "snyk-security",
"homepage": "https://snyk.io",
"repository": {
"type": "git",
"url": "https://github.com/snyk/vscode-extension.git"
},
"engines": {
"vscode": "^1.48.0"
},
"galleryBanner": {
"color": "#283e55",
"theme": "dark"
},
"categories": [
"Programming Languages",
"Linters",
"Other"
],
"keywords": [
"Code Analysis",
"JavaScript",
"Java",
"TypeScript",
"ts",
"Vue",
"Angular",
"React",
"Static Code Analysis",
"Code Quality",
"Python"
],
"activationEvents": [
"onWebviewPanel:snyk.views.suggestion.code",
"onWebviewPanel:snyk.views.suggestion.oss",
"*"
],
"main": "./out/extension.js",
"types": "./out/extension.d.ts",
"contributes": {
"configuration": [
{
"title": "Snyk Vulnerability Scanner",
"properties": {
"snyk.token": {
"type": "string",
"default": "",
"description": "API key",
"scope": "application"
},
"snyk.yesCrashReport": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Allow crash reports to be reported to Snyk.",
"scope": "application"
},
"snyk.yesTelemetry": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Allow extension's telemetry to be sent to Snyk.",
"scope": "application"
},
"snyk.yesWelcomeNotification": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Show welcome notification after installation and restart",
"scope": "application"
},
"snyk.yesBackgroundOssNotification": {
"//": "Name starts with y to put it at the end, as configs are sorted alphbetically",
"type": "boolean",
"default": true,
"markdownDescription": "Show scan notification for critical Open Source Security vulnerabilities when Snyk view is hidden",
"scope": "application"
},
"snyk.advanced.advancedMode": {
"type": "boolean",
"default": false,
"description": "Allows to configure if Snyk Code analysis is run automatically, manually or every 30 minutes. Default is automatically on save.",
"scope": "application"
},
"snyk.advanced.autoScanOpenSourceSecurity": {
"type": "boolean",
"default": false,
"description": "Run Snyk Open Source Security vulnerability analysis in automatic mode.",
"scope": "application"
},
"snyk.advanced.additionalParameters": {
"type": "string",
"description": "Parameters to pass to Snyk CLI for Open Source security tests.",
"scope": "window"
},
"snyk.advanced.customEndpoint": {
"type": "string",
"description": "Sets API endpoint to use for Snyk requests. Useful for on-premise instances and configuring proxies.",
"scope": "window"
},
"snyk.advanced.organization": {
"type": "string",
"description": "Specifies the organization name to run Snyk Open Source security tests tied to a specific organization.",
"scope": "window"
},
"snyk.features.openSourceSecurity": {
"type": "boolean",
"title": "Snyk Open Source security issues",
"description": "Find and fix open source vulnerabilities.",
"default": true
},
"snyk.features.codeSecurity": {
"type": "boolean",
"title": "Snyk Code security issues",
"description": "Find and fix vulnerabilities in your application code in real time.",
"default": true
},
"snyk.features.codeQuality": {
"type": "boolean",
"title": "Snyk Code quality issues",
"description": "Find and fix code quality issues in your application code in real time.",
"default": true
},
"snyk.severity": {
"type": "object",
"default": {
"critical": true,
"high": true,
"medium": true,
"low": true
},
"properties": {
"critical": {
"type": "boolean",
"default": true
},
"high": {
"type": "boolean",
"default": true
},
"medium": {
"type": "boolean",
"default": true
},
"low": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false,
"description": "Severity issues to display.",
"scope": "window"
}
}
}
],
"viewsContainers": {
"activitybar": [
{
"id": "snyk",
"title": "Snyk",
"icon": "media/images/snyk_extension_icon_new.svg"
}
]
},
"views": {
"snyk": [
{
"id": "snyk.views.features",
"name": "Snyk",
"when": "snyk:loggedIn && !snyk:featuresSelected && !snyk:error",
"type": "webview"
},
{
"id": "snyk.views.welcome",
"name": "Snyk",
"when": "!snyk:loggedIn || snyk:error || snyk:featuresSelected && !snyk:workspaceFound"
},
{
"id": "snyk.views.analysis.oss",
"name": "Open Source Security",
"when": "snyk:loggedIn && snyk:featuresSelected && snyk:workspaceFound && !snyk:error"
},
{
"id": "snyk.views.analysis.code.security",
"name": "Code Security",
"when": "snyk:loggedIn && snyk:featuresSelected && snyk:codeEnabled && snyk:workspaceFound && !snyk:error"
},
{
"id": "snyk.views.analysis.code.quality",
"name": "Code Quality",
"when": "snyk:loggedIn && snyk:featuresSelected && snyk:codeEnabled && snyk:workspaceFound && !snyk:error"
},
{
"id": "snyk.views.analysis.code.enablement",
"name": "Code Security & Quality",
"when": "snyk:loggedIn && snyk:featuresSelected && !snyk:codeEnabled && snyk:workspaceFound && !snyk:error"
},
{
"id": "snyk.views.actions",
"name": "Code Security & Quality Actions",
"when": "snyk:advanced && !snyk:error && snyk:loggedIn && snyk:featuresSelected && snyk:codeEnabled && snyk:workspaceFound"
},
{
"id": "snyk.views.support",
"name": "Help & feedback"
}
]
},
"viewsWelcome": [
{
"view": "snyk.views.welcome",
"contents": "Snyk is temporarily unavailable\nWe are automatically retrying to connect...",
"when": "snyk:error == 'transient'"
},
{
"view": "snyk.views.welcome",
"contents": "Snyk has encountered a problem. Please restart the extension: \n[Restart](command:snyk.start 'Restart Snyk')\nIf the error persists, please check your [settings](command:snyk.settings) and [contact us](https://snyk.io/contact-us/?utm_source=vsc)!",
"when": "snyk:error == 'blocking'"
},
{
"view": "snyk.views.welcome",
"contents": "Welcome to Snyk for Visual Studio Code. 👋\nLet's start by connecting VS Code with Snyk:\n[Connect VS Code with Snyk](command:snyk.login 'Connect with Snyk')\n👉 Snyk's mission is to finds bugs, fast. Connect with Snyk to start your first analysis!",
"when": "!snyk:error && !snyk:loggedIn && snyk:welcomeViewExperiment == 'control'"
},
{
"view": "snyk.views.welcome",
"contents": "👋 Welcome to Snyk for Visual Studio Code.\n• Test open source dependencies for vulnerabilities\n• Get instant suggestions for your code issues \n• Check code examples from the community\n• JavaScript, TypeScript, Java and Python supported\n• Detects the critical vulnerability Log4Shell\n• Learn more about [Snyk for Visual Studio Code](https://docs.snyk.io/features/integrations/ide-tools/visual-studio-code-extension-for-snyk-code)\n[🚀 Get started for free today](command:snyk.login '🚀 Get started for free today')",
"when": "!snyk:error && !snyk:loggedIn && snyk:welcomeViewExperiment == 'treatment'"
},
{
"view": "snyk.views.welcome",
"contents": "We are now redirecting you to our auth page, go ahead and log in. If a browser window doesn't open after a few seconds, please copy the url below and manually paste it in a browser.\n[Copy URL to clipboard](command:snyk.copyAuthLink 'Copy URL to clipboard')",
"when": "!snyk:error && !snyk:loggedIn && snyk:authenticating"
},
{
"view": "snyk.views.analysis.code.enablement",
"contents": "Thanks for connecting with Snyk. ✅\n 👉 You are almost set 🤗.\n[Enable Snyk Code and start analysing](command:snyk.enableCode 'Upload code to Snyk')\nIt looks like your organization's configuration is disabled, that's why you are seeing this message. You can easily enable it by pressing the above button and switching it on.\nWe apologize for the inconvenience and please [contact us](https://snyk.io/contact-us/?utm_source=vsc) if you have any other questions or concerns!"
},
{
"view": "snyk.views.welcome",
"contents": "Open a workspace or a folder in Visual Studio Code to start the analysis.",
"when": "!snyk:error && snyk:loggedIn && snyk:featuresSelected && !snyk:workspaceFound"
},
{
"view": "snyk.views.actions",
"contents": "You are currently running code security and quality scanning in manual mode. You are in control, no automated actions from our side.\n[Scan now](command:snyk.start)\n[Switch to auto-scan mode](command:snyk.setmode?%5B%22auto%22%5D)",
"when": "snyk:mode == 'manual'"
},
{
"view": "snyk.views.actions",
"contents": "Code security and quality analysis is currently paused.\n[Resume](command:snyk.setmode?%5B%22auto%22%5D)",
"when": "snyk:mode == 'paused'"
},
{
"view": "snyk.views.actions",
"contents": "You are currently running code security and quality scanning in a throttled mode - it scans your code every 30 minutes if it detects changes in your files.\n[Scan now](command:snyk.start)\n[Switch to auto-scan mode](command:snyk.setmode?%5B%22auto%22%5D)",
"when": "snyk:mode == 'throttled'"
},
{
"view": "snyk.views.actions",
"contents": "You are currently running code security and quality in a fully automated mode. It scans your code for issues when you save a file.\nNeed to take control?\n[Pause for 30 minutes](command:snyk.setmode?%5B%22paused%22%5D)\n[Switch to manual scan mode](command:snyk.setmode?%5B%22manual%22%5D)\n[Switch to throttled scan mode](command:snyk.setmode?%5B%22throttled%22%5D)",
"when": "snyk:mode != 'manual' && snyk:mode != 'paused' && snyk:mode != 'throttled'"
}
],
"menus": {
"view/title": [
{
"command": "snyk.start",
"when": "view == 'snyk.views.analysis.code.security' || view == 'snyk.views.analysis.code.quality' || view == 'snyk.views.analysis.oss'",
"group": "navigation"
},
{
"command": "snyk.settings",
"when": "view == 'snyk.views.analysis.code.security' || view == 'snyk.views.analysis.code.quality' || view == 'snyk.views.analysis.oss' || view == 'snyk.views.welcome' || view == 'snyk.views.actions'",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "snyk.login",
"when": "!snyk:loggedIn"
},
{
"command": "snyk.dcignore",
"when": "!snyk:error && snyk:loggedIn && snyk:codeEnabled && snyk:workspaceFound"
}
]
},
"commands": [
{
"command": "snyk.start",
"title": "Rescan",
"category": "Snyk",
"icon": "$(run)"
},
{
"command": "snyk.settings",
"title": "Settings",
"category": "Snyk",
"icon": "$(gear)"
},
{
"command": "snyk.login",
"title": "Login",
"category": "Snyk",
"icon": "$(log-in)"
},
{
"command": "snyk.dcignore",
"title": "Create dcignore file",
"category": "Snyk",
"icon": "$(new-file)"
},
{
"command": "snyk.showOutputChannel",
"title": "Show Output Channel",
"category": "Snyk"
}
]
},
"scripts": {
"vscode:prepublish": "tsc -p ./",
"build": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "tsc -p ./",
"test:unit": "mocha --ui tdd -c 'out/test/unit/**/*.test.js'",
"test:unit:watch": "mocha --ui tdd -w -c 'out/test/unit/**/*.test.js'",
"test:integration": "node ./out/test/integration/runTest.js",
"lint": "npx eslint 'src/**/*.ts'",
"lint:fix": "npx eslint --fix 'src/**/*.ts'",
"vscode:uninstall": "node ./out/uninstall",
"ampli:verify": "ampli status -u --skip-update-on-default-branch",
"patch-preview": "node ./scripts/patchPreview.js"
},
"devDependencies": {
"@amplitude/ampli": "^0.2.3",
"@types/analytics-node": "^3.1.4",
"@types/babel__traverse": "^7.12.2",
"@types/find-package-json": "^1.2.2",
"@types/glob": "^7.1.3",
"@types/lodash": "^4.14.161",
"@types/marked": "^3.0.0",
"@types/mocha": "^8.0.3",
"@types/node": "^14.6.2",
"@types/sinon": "^10.0.2",
"@types/uuid": "^8.3.0",
"@types/validate-npm-package-name": "^3.0.3",
"@types/vscode": "^1.48.0",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.4",
"mocha": "^8.1.3",
"prettier": "^2.1.1",
"sinon": "^11.1.1",
"typescript": "^4.3.4",
"vscode-test": "^1.4.0",
"yalc": "^1.0.0-pre.44"
},
"dependencies": {
"@amplitude/experiment-node-server": "^1.0.2",
"@babel/parser": "^7.22.10",
"@babel/traverse": "^7.22.10",
"@babel/types": "^7.22.10",
"@itly/plugin-amplitude-node": "^2.5.0",
"@itly/plugin-schema-validator": "^2.4.0",
"@itly/plugin-segment-node": "^2.4.0",
"@itly/sdk": "^2.3.1",
"@snyk/code-client": "^4.5.0",
"analytics-node": "^4.0.1",
"axios": "^0.21.1",
"glob": "^7.2.0",
"htmlparser2": "^7.2.0",
"lodash": "^4.17.21",
"marked": "^3.0.2",
"open": "^7.4.2",
"rxjs": "^7.3.0",
"string-argv": "^0.3.1",
"uuid": "^8.3.2",
"validate-npm-package-name": "^3.0.0"
}
}