chore(deps): update some tools dependencies

This commit is contained in:
ShareVB committed 2025-02-09 23:03:10 +01:00
1 parent 2ff77eefc0
commit a3ac98993b
10 files changed
+838 -964

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
import { type MaybeRef, get } from '@vueuse/core';
import Fuse from 'fuse.js';
import Fuse, { type IFuseOptions } from 'fuse.js';
import { computed } from 'vue';
export { useFuzzySearch };
@@ -11,7 +11,7 @@ function useFuzzySearch<Data>({
}: {
search: MaybeRef<string>
data: Data[]
options?: Fuse.IFuseOptions<Data> & { filterEmpty?: boolean }
options?: IFuseOptions<Data> & { filterEmpty?: boolean }
}) {
const fuse = new Fuse(data, options);
const filterEmpty = options.filterEmpty ?? true;
@@ -1,5 +1,5 @@
/* eslint-disable no-restricted-globals */
import { describe, expect, it } from 'vitest';
import { getKeyOrCertificateInfosAsync } from './certificate-key-parser.service';
const encryptedPrivateKey = /* NOSONAR */ `-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFHzBJBgkqhkiG9w0BBQ0wPDAbBgkqhkiG9w0BBQwwDgQILjmiBkdY16UCAggA
@@ -188,7 +188,13 @@ c6:b9:73:b8:68:49:33:ad:27:51:bb:6c:16:e7:9c:da:dd:e3:92:15
},
];
describe('certificate-key-parser', () => {
describe('certificate-key-parser', async () => {
const textEncoding = await import('text-encoding-utf-8');
global.TextEncoder = textEncoding.TextEncoder as never;
global.TextDecoder = textEncoding.TextDecoder as never;
const { getKeyOrCertificateInfosAsync } = await import('./certificate-key-parser.service');
for (const format of formatsData) {
const { input, pass, type, title } = format;
it(`Parse '${title ?? type}' format with right type (${type})`, async () => {
+1 -2
View File
@@ -16,8 +16,7 @@ const outputHtml = computed(() => {
FORBID_TAGS: ['form', 'span'],
ALLOW_DATA_ATTR: false,
ALLOW_ARIA_ATTR: false,
RETURN_DOM: true,
}).outerHTML;
});
return beautify.html(cleanedHtml, {
unformatted: ['code', 'pre', 'em', 'strong', 'span'],
indent_inner_html: true,
@@ -1,3 +1,4 @@
<!-- eslint-disable vue/no-side-effects-in-computed-properties -->
<script setup lang="ts">
import { mergeCidr, parseCidr } from 'cidr-tools';
import { isIP, isIPv6 } from 'is-ip';
+1 -1
View File
@@ -1,4 +1,4 @@
import jwtDecode, { type JwtHeader, type JwtPayload } from 'jwt-decode';
import { type JwtHeader, type JwtPayload, jwtDecode } from 'jwt-decode';
import _ from 'lodash';
import { ALGORITHM_DESCRIPTIONS, CLAIM_DESCRIPTIONS } from './jwt-parser.constants';
@@ -1,3 +1,4 @@
<!-- eslint-disable vue/no-side-effects-in-computed-properties -->
<script setup lang="ts">
import { useCopy } from '@/composable/copy';
-1
View File
@@ -10,7 +10,6 @@ const config = reactive<FormatOptionsWithLanguage>({
useTabs: false,
language: 'sql',
indentStyle: 'standard',
tabulateAlias: true,
});
const rawSQL = ref('select field1,field2,field3 from my_table where my_condition;');