Skip to content

Commit c5c4e5d

Browse files
committed
feat(new tool): HAR file sanitizer
Fix #811
1 parent 08d977b commit c5c4e5d

14 files changed

+7016
-8460
lines changed

.eslintrc-auto-import.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@
286286
"watchTriggerable": true,
287287
"watchWithFilter": true,
288288
"whenever": true,
289-
"toValue": true
289+
"toValue": true,
290+
"injectLocal": true,
291+
"provideLocal": true,
292+
"useClipboardItems": true
290293
}
291294
}

auto-imports.d.ts

+9
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ declare global {
3636
const h: typeof import('vue')['h']
3737
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
3838
const inject: typeof import('vue')['inject']
39+
const injectLocal: typeof import('@vueuse/core')['injectLocal']
3940
const isDefined: typeof import('@vueuse/core')['isDefined']
4041
const isProxy: typeof import('vue')['isProxy']
4142
const isReactive: typeof import('vue')['isReactive']
@@ -65,6 +66,7 @@ declare global {
6566
const onUpdated: typeof import('vue')['onUpdated']
6667
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
6768
const provide: typeof import('vue')['provide']
69+
const provideLocal: typeof import('@vueuse/core')['provideLocal']
6870
const reactify: typeof import('@vueuse/core')['reactify']
6971
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
7072
const reactive: typeof import('vue')['reactive']
@@ -128,6 +130,7 @@ declare global {
128130
const useBrowserLocation: typeof import('@vueuse/core')['useBrowserLocation']
129131
const useCached: typeof import('@vueuse/core')['useCached']
130132
const useClipboard: typeof import('@vueuse/core')['useClipboard']
133+
const useClipboardItems: typeof import('@vueuse/core')['useClipboardItems']
131134
const useCloned: typeof import('@vueuse/core')['useCloned']
132135
const useColorMode: typeof import('@vueuse/core')['useColorMode']
133136
const useConfirmDialog: typeof import('@vueuse/core')['useConfirmDialog']
@@ -326,6 +329,7 @@ declare module 'vue' {
326329
readonly h: UnwrapRef<typeof import('vue')['h']>
327330
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
328331
readonly inject: UnwrapRef<typeof import('vue')['inject']>
332+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
329333
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
330334
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
331335
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -355,6 +359,7 @@ declare module 'vue' {
355359
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
356360
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
357361
readonly provide: UnwrapRef<typeof import('vue')['provide']>
362+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
358363
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
359364
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
360365
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -418,6 +423,7 @@ declare module 'vue' {
418423
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
419424
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
420425
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
426+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
421427
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
422428
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
423429
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>
@@ -610,6 +616,7 @@ declare module '@vue/runtime-core' {
610616
readonly h: UnwrapRef<typeof import('vue')['h']>
611617
readonly ignorableWatch: UnwrapRef<typeof import('@vueuse/core')['ignorableWatch']>
612618
readonly inject: UnwrapRef<typeof import('vue')['inject']>
619+
readonly injectLocal: UnwrapRef<typeof import('@vueuse/core')['injectLocal']>
613620
readonly isDefined: UnwrapRef<typeof import('@vueuse/core')['isDefined']>
614621
readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
615622
readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
@@ -639,6 +646,7 @@ declare module '@vue/runtime-core' {
639646
readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
640647
readonly pausableWatch: UnwrapRef<typeof import('@vueuse/core')['pausableWatch']>
641648
readonly provide: UnwrapRef<typeof import('vue')['provide']>
649+
readonly provideLocal: UnwrapRef<typeof import('@vueuse/core')['provideLocal']>
642650
readonly reactify: UnwrapRef<typeof import('@vueuse/core')['reactify']>
643651
readonly reactifyObject: UnwrapRef<typeof import('@vueuse/core')['reactifyObject']>
644652
readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
@@ -702,6 +710,7 @@ declare module '@vue/runtime-core' {
702710
readonly useBrowserLocation: UnwrapRef<typeof import('@vueuse/core')['useBrowserLocation']>
703711
readonly useCached: UnwrapRef<typeof import('@vueuse/core')['useCached']>
704712
readonly useClipboard: UnwrapRef<typeof import('@vueuse/core')['useClipboard']>
713+
readonly useClipboardItems: UnwrapRef<typeof import('@vueuse/core')['useClipboardItems']>
705714
readonly useCloned: UnwrapRef<typeof import('@vueuse/core')['useCloned']>
706715
readonly useColorMode: UnwrapRef<typeof import('@vueuse/core')['useColorMode']>
707716
readonly useConfirmDialog: UnwrapRef<typeof import('@vueuse/core')['useConfirmDialog']>

components.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ declare module '@vue/runtime-core' {
8282
FormatTransformer: typeof import('./src/components/FormatTransformer.vue')['default']
8383
GitMemo: typeof import('./src/tools/git-memo/git-memo.vue')['default']
8484
'GitMemo.content': typeof import('./src/tools/git-memo/git-memo.content.md')['default']
85+
HarSanitizer: typeof import('./src/tools/har-sanitizer/har-sanitizer.vue')['default']
8586
HashText: typeof import('./src/tools/hash-text/hash-text.vue')['default']
8687
HmacGenerator: typeof import('./src/tools/hmac-generator/hmac-generator.vue')['default']
8788
'Home.page': typeof import('./src/pages/Home.page.vue')['default']
@@ -133,16 +134,15 @@ declare module '@vue/runtime-core' {
133134
NCheckbox: typeof import('naive-ui')['NCheckbox']
134135
NCollapseTransition: typeof import('naive-ui')['NCollapseTransition']
135136
NConfigProvider: typeof import('naive-ui')['NConfigProvider']
136-
NDivider: typeof import('naive-ui')['NDivider']
137137
NEllipsis: typeof import('naive-ui')['NEllipsis']
138+
NGrid: typeof import('naive-ui')['NGrid']
138139
NH1: typeof import('naive-ui')['NH1']
139140
NH3: typeof import('naive-ui')['NH3']
140141
NIcon: typeof import('naive-ui')['NIcon']
141142
NLayout: typeof import('naive-ui')['NLayout']
142143
NLayoutSider: typeof import('naive-ui')['NLayoutSider']
143144
NMenu: typeof import('naive-ui')['NMenu']
144145
NSpace: typeof import('naive-ui')['NSpace']
145-
NTable: typeof import('naive-ui')['NTable']
146146
NumeronymGenerator: typeof import('./src/tools/numeronym-generator/numeronym-generator.vue')['default']
147147
OtpCodeGeneratorAndValidator: typeof import('./src/tools/otp-code-generator-and-validator/otp-code-generator-and-validator.vue')['default']
148148
PasswordStrengthAnalyser: typeof import('./src/tools/password-strength-analyser/password-strength-analyser.vue')['default']

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"@types/bcryptjs": "^2.4.2",
116116
"@types/crypto-js": "^4.1.1",
117117
"@types/dompurify": "^3.0.5",
118+
"@types/har-format": "^1.2.16",
118119
"@types/jsdom": "^21.0.0",
119120
"@types/lodash": "^4.14.192",
120121
"@types/mime-types": "^2.1.1",

0 commit comments

Comments
 (0)