|
33 | 33 | }, |
34 | 34 | "icon": "socket-square.png", |
35 | 35 | "activationEvents": [ |
36 | | - "workspaceContains:**/[pP][aA][cC][kK][aA][gG][eE].[jJ][sS][oO][nN]", |
37 | | - "workspaceContains:**/[sS][oO][cC][kK][eE][tT].[yY][mM][lL]", |
| 36 | + "workspaceConatains:**/[pP][aA][cC][kK][aA][gG][eE].[jJ][sS][oO][nN]", |
38 | 37 | "workspaceContains:**/[rR][eE][qQ][uU][iI][rR][eE][mM][eE][nN][tT][sS].[tT][xX][tT]", |
39 | 38 | "workspaceContains:**/[pP][yY][pP][rR][oO][jJ][eE][cC][tT].[tT][oO][mM][lL]", |
40 | 39 | "workspaceContains:**/[pP][iI][pP][fF][iI][lL][eE]", |
|
48 | 47 | "main": "./out/main.js", |
49 | 48 | "homepage": "https://socket.dev", |
50 | 49 | "contributes": { |
51 | | - "commands": [ |
52 | | - { |
53 | | - "command": "socket-security.runReport", |
54 | | - "category": "Socket Security", |
55 | | - "title": "Run Report", |
56 | | - "enablement": "workspaceFolderCount >= 1" |
57 | | - } |
58 | | - ], |
59 | 50 | "configuration": { |
60 | 51 | "title": "Socket Security", |
61 | 52 | "properties": { |
62 | | - "socket-security.minIssueLevel": { |
63 | | - "order": 1, |
64 | | - "type": "string", |
65 | | - "default": "low", |
66 | | - "enum": [ |
67 | | - "critical", |
68 | | - "high", |
69 | | - "middle", |
70 | | - "low" |
71 | | - ], |
72 | | - "description": "Hide all issues that are less important than this level. Note some issues are hidden by default so you may also wish to enable showing all issue types still." |
73 | | - }, |
74 | | - "socket-security.errorOverlayThreshold": { |
75 | | - "order": 2, |
76 | | - "type": "number", |
77 | | - "default": 50, |
78 | | - "minimum": 0, |
79 | | - "maximum": 100, |
80 | | - "description": "Show error overlay for any import of a package with a summary score less than this value.", |
81 | | - "examples": [ |
82 | | - 50 |
83 | | - ] |
84 | | - }, |
85 | | - "socket-security.warnOverlayThreshold": { |
86 | | - "order": 3, |
87 | | - "type": "number", |
88 | | - "default": 80, |
89 | | - "minimum": 0, |
90 | | - "maximum": 100, |
91 | | - "description": "Show overlay for any import of a package with a summary score less than this value.", |
92 | | - "examples": [ |
93 | | - 80 |
94 | | - ] |
95 | | - }, |
96 | | - "socket-security.reportsEnabled": { |
97 | | - "order": 4, |
98 | | - "type": "boolean", |
99 | | - "default": true, |
100 | | - "description": "Create reports from package manifest files (package.json / package-lock.json) that require sending data remotely. Disabling this will disable all issues but keep scores listed." |
101 | | - }, |
102 | 53 | "socket-security.pythonInterpreter": { |
103 | | - "order": 5, |
| 54 | + "order": 1, |
104 | 55 | "type": "string", |
105 | 56 | "description": "Path to a Python interpreter to use for Socket dependency analysis.", |
106 | 57 | "examples": [ |
107 | 58 | "/usr/bin/python" |
108 | 59 | ] |
109 | 60 | }, |
110 | 61 | "socket-security.goExecutable": { |
111 | | - "order": 6, |
| 62 | + "order": 2, |
112 | 63 | "type": "string", |
113 | 64 | "description": "Path to a Go executable to use for Socket dependency analysis.", |
114 | 65 | "examples": [ |
115 | 66 | "/usr/bin/go" |
116 | 67 | ] |
117 | 68 | } |
118 | 69 | } |
119 | | - } |
| 70 | + }, |
| 71 | + "commands": [{ |
| 72 | + "title": "Login", |
| 73 | + "category": "Socket Security", |
| 74 | + "command": "socket-security.login" |
| 75 | + }] |
120 | 76 | }, |
121 | 77 | "bugs": { |
122 | 78 | "email": "support@socket.dev" |
123 | 79 | }, |
124 | 80 | "publisher": "SocketSecurity", |
125 | 81 | "scripts": { |
126 | 82 | "vscode:prepublish": "npm run esbuild -- --minify", |
127 | | - "esbuild-base": "esbuild --bundle --external:vscode --loader:.wasm=binary --loader:.go=file --outdir=out/ --platform=node --sourcemap", |
| 83 | + "vscode:uninstall": "node ./src/lifecycle/uninstall.mjs", |
| 84 | + "esbuild-base": "esbuild --bundle --external:tree-sitter-java --external:vscode --loader:.wasm=binary --loader:.go=file --loader:.py=text --outdir=out/ --platform=node --sourcemap", |
128 | 85 | "esbuild": "npm run esbuild-base -- --format=cjs main=src/extension.ts", |
129 | 86 | "test-compile": "tsc -p ./", |
130 | 87 | "lint": "eslint \"src/**/*.ts\"", |
|
133 | 90 | }, |
134 | 91 | "dependencies": { |
135 | 92 | "@babel/parser": "^7.20.7", |
| 93 | + "@babel/traverse": "^7.20.7", |
| 94 | + "@babel/types": "^7.20.7", |
136 | 95 | "@socketsecurity/config": "^2.0.0", |
137 | 96 | "@socketsecurity/registry": "^1.0.66", |
138 | | - "@vscode/vsce": "^2.20.1", |
139 | | - "acorn-walk": "^8.2.0", |
140 | | - "antlr4": "^4.13.0", |
141 | | - "ast-types": "^0.14.2", |
142 | | - "form-data-encoder": "^3.0.0", |
143 | | - "formdata-node": "^5.0.1", |
144 | | - "ini": "^3.0.1", |
145 | | - "json-to-ast": "^2.1.0", |
146 | | - "micromatch": "^4.0.8", |
147 | | - "octokit": "^3.1.2", |
148 | | - "safe-stable-stringify": "^2.4.1", |
149 | | - "semver": "^7.5.2", |
150 | | - "yaml": "^2.2.2" |
| 97 | + "@vscode/python-extension": "^1.0.5", |
| 98 | + "@vscode/vsce": "^3.6.0", |
| 99 | + "ini": "^5.0.0", |
| 100 | + "json-to-ast": "^2.1.0" |
151 | 101 | }, |
152 | 102 | "devDependencies": { |
| 103 | + "@types/babel__traverse": "^7.20.7", |
153 | 104 | "@types/ini": "^1.3.31", |
154 | 105 | "@types/json-to-ast": "^2.1.2", |
155 | 106 | "@types/micromatch": "^4.0.2", |
156 | | - "@types/node": "^16.11.7", |
| 107 | + "@types/node": "^24.0.15", |
157 | 108 | "@types/vscode": "^1.26.0", |
158 | 109 | "@typescript-eslint/eslint-plugin": "^5.42.0", |
159 | 110 | "@typescript-eslint/parser": "^5.42.0", |
|
0 commit comments