-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
307 lines (307 loc) · 8.73 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
{
"name": "censitive",
"displayName": "Censitive (Hide Passwords and Tokens)",
"description": "automatically censor sensitive information like passwords, tokens and keys",
"license": "MIT",
"author": "1nVitr0",
"publisher": "1nVitr0",
"repository": {
"type": "git",
"url": "https://github.com/1nVitr0/plugin-vscode-censitive"
},
"icon": "resources/icon.png",
"version": "1.1.0",
"engines": {
"vscode": "^1.53.0"
},
"categories": [
"Linters",
"Other"
],
"keywords": [
"censor",
"hide",
"sensitive",
"private",
"passwords"
],
"activationEvents": [
"*"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "censitive.toggleCensoring",
"title": "Toggle Censoring of Sensitive Information"
}
],
"configuration": {
"title": "Censitive",
"properties": {
"censitive.enable": {
"default": true,
"description": "Controls if censoring is enabled",
"type": "boolean"
},
"censitive.codeLanguages": {
"default": [
"coffeescript",
"c",
"cpp",
"csharp",
"fsharp",
"go",
"groovy",
"handlebars",
"html",
"java",
"javascript",
"lua",
"objective-c",
"objective-cpp",
"perl",
"php",
"jade",
"pug",
"python",
"r",
"razor",
"ruby",
"rust",
"slim",
"typescript",
"vb",
"vue",
"vue-html"
],
"description": "List of code languages that conform to standard code syntax (e.g. `c`, `cpp`, `javascript`, `python`)",
"type": "array",
"items": {
"type": "string"
}
},
"censitive.assignmentRegex": {
"default": {
"default": "[\\t ]*[:=][=>]?[\\t ]*",
"yaml": "[\\t ]*:[\\t ]*(?!>|\\|)",
"cpp": "(?:[\\t ]*=[\\t ]*|(?<=^#define[\\t ]+.+)[\\t ]+)",
"c": "(?:[\\t ]*=[\\t ]*|(?<=^#define[\\t ]+.+)[\\t ]+)"
},
"description": "Regex used to detect assignments",
"type": "object",
"items": {
"type": "string"
},
"required": [
"default"
]
},
"censitive.showTimeoutSeconds": {
"default": 10,
"description": "Time a censored text is shown after clicking 'Show Censored Text'",
"type": "integer"
},
"censitive.useFastModeMinLines": {
"default": 10000,
"description": "The lines above which censoring is performed for the visible range first to speed up censoring.",
"type": "integer"
},
"censitive.mergeGlobalCensoring": {
"default": true,
"description": "Merge global and local .censitive files",
"type": "boolean"
},
"censitive.mergeDefaultCensoring": {
"default": true,
"description": "Merge default config with all .censitive files",
"type": "boolean"
},
"censitive.defaultCensoring": {
"default": [
{
"match": "**/{env,.env,env.*,.env.*}",
"exclude": "**/{env.example,.env.example}",
"censor": [
".*password",
".*token",
".*secret.*"
]
},
{
"match": "**/id_{rsa,dsa,ecdsa,eddsa,dss,sha2}",
"censor": [
{
"start": "-----BEGIN.*PRIVATE KEY-----",
"end": "-----END.*PRIVATE KEY-----"
}
]
}
],
"description": "Default censoring rules for all files",
"type": "array",
"items": {
"type": "object",
"properties": {
"match": {
"default": "**/{env,env.*}",
"description": "glob pattern to match files",
"type": "string",
"minLength": 1
},
"exclude": {
"description": "glob pattern to exclude files",
"type": "string",
"minLength": 1
},
"censor": {
"type": "array",
"minItems": 1,
"items": {
"oneOf": [
{
"default": ".*password",
"type": "string",
"minLength": 1
},
{
"type": "object",
"properties": {
"start": {
"default": "---BEGIN SECRET KEY---",
"description": "start of the sensitive content",
"type": "string",
"minLength": 1
},
"end": {
"default": "---END SECRET KEY---",
"description": "end of the sensitive content",
"type": "string",
"minLength": 1
}
}
}
]
}
}
},
"required": [
"match",
"censor"
]
}
},
"censitive.censoring": {
"type": "object",
"default": {
"color": "theme.editorInfo.background",
"prefix": "🔒",
"border": "2px solid grey",
"grow": true
},
"description": "Visual settings used for censoring",
"properties": {
"prefix": {
"type": "string",
"default": "🔒",
"description": "text displayed before the censored content"
},
"postfix": {
"type": "string",
"description": "text displayed after the censored content"
},
"grow": {
"type": "boolean",
"default": true,
"description": "grow censoring when the text is edited (when disabled single letters might be visible before censored)"
},
"border": {
"type": "string",
"description": "css border around censored content"
},
"color": {
"type": "string",
"default": "theme.editorInfo.background",
"description": "color of the censor bar. use `theme.` prefix to use theme colors (e.g. `theme.foreground`)"
}
}
}
}
},
"grammars": [
{
"language": "censitive",
"scopeName": "source.censitive",
"path": "./syntaxes/censitive.tmLanguage.json"
}
],
"languages": [
{
"id": "censitive",
"filenames": [
".censitive"
]
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"test-compile": "tsc -p ./",
"test-watch": "tsc -watch -p ./",
"pretest": "npm run test-compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@types/node": "^18.15.5",
"@types/vscode": "^1.53.0",
"@typescript-eslint/eslint-plugin": "^7.13.0",
"@typescript-eslint/parser": "^7.13.0",
"eslint": "^8.56.0",
"glob": "^10.4.1",
"mocha": "^10.4.0",
"semantic-release": "^24.0.0",
"semantic-release-vsce": "^5.7.1",
"ts-loader": "^9.5.1",
"typescript": "^5.4.5",
"vscode-test": "^1.5.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
},
"release": {
"branches": [
"main",
"develop"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}",
"assets": [
"package.json",
"CHANGELOG.md",
"README.md"
]
}
],
[
"semantic-release-vsce",
{
"packageVsix": true
}
],
"@semantic-release/github"
]
}
}