Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

chore: changes to support id based syncing for collections (#2977)

Akash Keeee8af80610
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/Collection.vue b/packages/hoppscotch-common/src/components/collections/graphql/Collection.vue
index 4776a15bf..f6debfa99 100644
--- a/packages/hoppscotch-common/src/components/collections/graphql/Collection.vue
+++ b/packages/hoppscotch-common/src/components/collections/graphql/Collection.vue
@@ -299,7 +299,8 @@ const removeCollection = () => {
) {
emit("select", null)
}
- removeGraphqlCollection(props.collectionIndex)
+
+ removeGraphqlCollection(props.collectionIndex, props.collection.id)
toast.success(`${t("state.deleted")}`)
}
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/Folder.vue b/packages/hoppscotch-common/src/components/collections/graphql/Folder.vue
index 701dfa0df..7670dae14 100644
--- a/packages/hoppscotch-common/src/components/collections/graphql/Folder.vue
+++ b/packages/hoppscotch-common/src/components/collections/graphql/Folder.vue
@@ -279,7 +279,7 @@ const removeFolder = () => {
emit("select", { picked: null })
}
- removeGraphqlFolder(props.folderPath)
+ removeGraphqlFolder(props.folderPath, props.folder.id)
toast.success(t("state.deleted"))
}
diff --git a/packages/hoppscotch-common/src/components/collections/graphql/Request.vue b/packages/hoppscotch-common/src/components/collections/graphql/Request.vue
index 0c4225404..0071a169a 100644
--- a/packages/hoppscotch-common/src/components/collections/graphql/Request.vue
+++ b/packages/hoppscotch-common/src/components/collections/graphql/Request.vue
@@ -214,7 +214,7 @@ const removeRequest = () => {
emit("select", null)
}
- removeGraphqlRequest(props.folderPath, props.requestIndex)
+ removeGraphqlRequest(props.folderPath, props.requestIndex, props.request.id)
toast.success(`${t("state.deleted")}`)
}
</script>
diff --git a/packages/hoppscotch-common/src/components/collections/index.vue b/packages/hoppscotch-common/src/components/collections/index.vue
index dd59e1115..cd7b48e10 100644
--- a/packages/hoppscotch-common/src/components/collections/index.vue
+++ b/packages/hoppscotch-common/src/components/collections/index.vue
@@ -183,6 +183,8 @@ import {
updateRESTRequestOrder,
updateRESTCollectionOrder,
moveRESTFolder,
+ navigateToFolderWithIndexPath,
+ restCollectionStore,
} from "~/newstore/collections"
import TeamCollectionAdapter from "~/helpers/teams/TeamCollectionAdapter"
import {
@@ -1014,6 +1016,13 @@ const onRemoveCollection = () => {
if (collectionsType.value.type === "my-collections") {
const collectionIndex = editingCollectionIndex.value
+ const collectionToRemove =
+ collectionIndex || collectionIndex == 0
+ ? navigateToFolderWithIndexPath(restCollectionStore.value.state, [
+ collectionIndex,
+ ])
+ : undefined
+
if (collectionIndex === null) return
if (
@@ -1024,7 +1033,10 @@ const onRemoveCollection = () => {
emit("select", null)
}
- removeRESTCollection(collectionIndex)
+ removeRESTCollection(
+ collectionIndex,
+ collectionToRemove ? collectionToRemove.id : undefined
+ )
resolveSaveContextOnCollectionReorder({
lastIndex: collectionIndex,
@@ -1077,7 +1089,14 @@ const onRemoveFolder = () => {
emit("select", null)
}
- removeRESTFolder(folderPath)
+ const folderToRemove = folderPath
+ ? navigateToFolderWithIndexPath(
+ restCollectionStore.value.state,
+ folderPath.split("/").map((i) => parseInt(i))
+ )
+ : undefined
+
+ removeRESTFolder(folderPath, folderToRemove ? folderToRemove.id : undefined)
const parentFolder = folderPath.split("/").slice(0, -1).join("/") // remove last folder to get parent folder
resolveSaveContextOnCollectionReorder({
@@ -1151,7 +1170,12 @@ const onRemoveRequest = () => {
possibleTab.value.document.isDirty = true
}
- removeRESTRequest(folderPath, requestIndex)
+ const requestToRemove = navigateToFolderWithIndexPath(
+ restCollectionStore.value.state,
+ folderPath.split("/").map((i) => parseInt(i))
+ )?.requests[requestIndex]
+
+ removeRESTRequest(folderPath, requestIndex, requestToRemove?.id)
// the same function is used to reorder requests since after removing, it's basically doing reorder
resolveSaveContextOnRequestReorder({
diff --git a/packages/hoppscotch-common/src/newstore/collections.ts b/packages/hoppscotch-common/src/newstore/collections.ts
index aff9bd9b9..612308363 100644
--- a/packages/hoppscotch-common/src/newstore/collections.ts
+++ b/packages/hoppscotch-common/src/newstore/collections.ts
@@ -33,6 +33,10 @@ const defaultGraphqlCollectionState = {
type RESTCollectionStoreType = typeof defaultRESTCollectionState
type GraphqlCollectionStoreType = typeof defaultGraphqlCollectionState
+/**
+ * NOTE: this function is not pure. It mutates the indexPaths inplace
+ * Not removing this behaviour because i'm not sure if we utilize this behaviour anywhere and i found this on a tight time crunch.
+ */
export function navigateToFolderWithIndexPath(
collections: HoppCollection<HoppRESTRequest | HoppGQLRequest>[],
indexPaths: number[]
@@ -86,7 +90,12 @@ const restCollectionDispatchers = defineDispatchers({
removeCollection(
{ state }: RESTCollectionStoreType,
- { collectionIndex }: { collectionIndex: number }
+ {
+ collectionIndex,
+ // this collectionID is used to sync the collection removal
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ collectionID,
+ }: { collectionIndex: number; collectionID?: string }
) {
return {
state: (state as any).filter(
@@ -174,7 +183,12 @@ const restCollectionDispatchers = defineDispatchers({
}
},
- removeFolder({ state }: RESTCollectionStoreType, { path }: { path: string }) {
+ removeFolder(
+ { state }: RESTCollectionStoreType,
+ // folderID is used to sync the folder removal in collections.sync.ts
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ { path, folderID }: { path: string; folderID?: string }
+ ) {
const newState = state
const indexPaths = path.split("/").map((x) => parseInt(x))
@@ -415,7 +429,13 @@ const restCollectionDispatchers = defineDispatchers({
removeRequest(
{ state }: RESTCollectionStoreType,
- { path, requestIndex }: { path: string; requestIndex: number }
+ {
+ path,
+ requestIndex,
+ // this requestID is used to sync the request removal
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ requestID,
+ }: { path: string; requestIndex: number; requestID?: string }
) {
const newState = state
@@ -573,6 +593,31 @@ const restCollectionDispatchers = defineDispatchers({
state: newState,
}
},
+
+ // only used for collections.sync.ts to prevent double insertion of collections from storeSync and Subscriptions
+ removeDuplicateCollectionOrFolder(
+ { state },
+ {
+ id,
+ collectionPath,
+ type,
+ }: {
+ id: string
+ collectionPath: string
+ type: "collection" | "request"
+ }
+ ) {
+ const after = removeDuplicateCollectionsFromPath<HoppRESTRequest>(
+ id,
+ collectionPath,
+ state,
+ type ?? "collection"
+ )
+
+ return {
+ state: after,
+ }
+ },
})
const gqlCollectionDispatchers = defineDispatchers({
@@ -605,7 +650,11 @@ const gqlCollectionDispatchers = defineDispatchers({
removeCollection(
{ state }: GraphqlCollectionStoreType,
- { collectionIndex }: { collectionIndex: number }
+ {
+ collectionIndex, // this collectionID is used to sync the collection removal
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ collectionID,
+ }: { collectionIndex: number; collectionID?: string }
) {
return {
state: (state as any).filter(
@@ -687,7 +736,9 @@ const gqlCollectionDispatchers = defineDispatchers({
removeFolder(
{ state }: GraphqlCollectionStoreType,
- { path }: { path: string }
+ // folderID is used to sync the folder removal in collections.sync.ts
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ { path, folderID }: { path: string; folderID?: string }
) {
const newState = state
@@ -775,7 +826,13 @@ const gqlCollectionDispatchers = defineDispatchers({
removeRequest(
{ state }: GraphqlCollectionStoreType,
- { path, requestIndex }: { path: string; requestIndex: number }
+ {
+ path,
+ requestIndex,
+ // this requestID is used to sync the request removal
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ requestID,
+ }: { path: string; requestIndex: number; requestID?: string }
) {
const newState = state
@@ -838,6 +895,30 @@ const gqlCollectionDispatchers = defineDispatchers({
state: newState,
}
},
+ // only used for collections.sync.ts to prevent double insertion of collections from storeSync and Subscriptions
+ removeDuplicateCollectionOrFolder(
+ { state },
+ {
+ id,
+ collectionPath,
+ type,
+ }: {
+ id: string
+ collectionPath: string
+ type: "collection" | "request"
+ }
+ ) {
+ const after = removeDuplicateCollectionsFromPath<HoppGQLRequest>(
+ id,
+ collectionPath,
+ state,
+ type ?? "collection"
+ )
+
+ return {
+ state: after,
+ }
+ },
})
export const restCollectionStore = new DispatchingStore(
@@ -887,11 +968,15 @@ export function addRESTCollection(collection: HoppCollection<HoppRESTRequest>) {
})
}
-export function removeRESTCollection(collectionIndex: number) {
+export function removeRESTCollection(
+ collectionIndex: number,
+ collectionID?: string
+) {
restCollectionStore.dispatch({
dispatcher: "removeCollection",
payload: {
collectionIndex,
+ collectionID,
},
})
}
@@ -936,11 +1021,12 @@ export function editRESTFolder(
})
}
-export function removeRESTFolder(path: string) {
+export function removeRESTFolder(path: string, folderID?: string) {
restCollectionStore.dispatch({
dispatcher: "removeFolder",
payload: {
path,
+ folderID,
},
})
}
@@ -955,6 +1041,21 @@ export function moveRESTFolder(path: string, destinationPath: string | null) {
})
}
+export function removeDuplicateRESTCollectionOrFolder(
+ id: string,
+ collectionPath: string,
+ type?: "collection" | "request"
+) {
+ restCollectionStore.dispatch({
+ dispatcher: "removeDuplicateCollectionOrFolder",
+ payload: {
+ id,
+ collectionPath,
+ type: type ?? "collection",
+ },
+ })
+}
+
export function editRESTRequest(
path: string,
requestIndex: number,
@@ -996,12 +1097,17 @@ export function saveRESTRequestAs(path: string, request: HoppRESTRequest) {
return insertionIndex
}
-export function removeRESTRequest(path: string, requestIndex: number) {
+export function removeRESTRequest(
+ path: string,
+ requestIndex: number,
+ requestID?: string
+) {
restCollectionStore.dispatch({
dispatcher: "removeRequest",
payload: {
path,
requestIndex,
+ requestID,
},
})
}
@@ -1082,11 +1188,15 @@ export function addGraphqlCollection(
})
}
-export function removeGraphqlCollection(collectionIndex: number) {
+export function removeGraphqlCollection(
+ collectionIndex: number,
+ collectionID?: string
+) {
graphqlCollectionStore.dispatch({
dispatcher: "removeCollection",
payload: {
collectionIndex,
+ collectionID,
},
})
}
@@ -1127,11 +1237,27 @@ export function editGraphqlFolder(
})
}
-export function removeGraphqlFolder(path: string) {
+export function removeGraphqlFolder(path: string, folderID?: string) {
graphqlCollectionStore.dispatch({
dispatcher: "removeFolder",
payload: {
path,
+ folderID,
+ },
+ })
+}
+
+export function removeDuplicateGraphqlCollectionOrFolder(
+ id: string,
+ collectionPath: string,
+ type?: "collection" | "request"
+) {
+ graphqlCollectionStore.dispatch({
+ dispatcher: "removeDuplicateCollectionOrFolder",
+ payload: {
+ id,
+ collectionPath,
+ type: type ?? "collection",
},
})
}
@@ -1161,12 +1287,17 @@ export function saveGraphqlRequestAs(path: string, request: HoppGQLRequest) {
})
}
-export function removeGraphqlRequest(path: string, requestIndex: number) {
+export function removeGraphqlRequest(
+ path: string,
+ requestIndex: number,
+ requestID?: string
+) {
graphqlCollectionStore.dispatch({
dispatcher: "removeRequest",
payload: {
path,
requestIndex,
+ requestID,
},
})
}
@@ -1185,3 +1316,60 @@ export function moveGraphqlRequest(
},
})
}
+
+function removeDuplicateCollectionsFromPath<
+ T extends HoppRESTRequest | HoppGQLRequest
+>(
+ idToRemove: string,
+ collectionPath: string | null,
+ collections: HoppCollection<T>[],
+ type: "collection" | "request"
+): HoppCollection<T>[] {
+ const indexes = collectionPath?.split("/").map((x) => parseInt(x))
+ indexes && indexes.pop()
+ const parentPath = indexes?.join("/")
+
+ const parentCollection = parentPath
+ ? navigateToFolderWithIndexPath(
+ collections,
+ parentPath.split("/").map((x) => parseInt(x)) || []
+ )
+ : undefined
+
+ if (collectionPath && parentCollection) {
+ if (type == "collection") {
+ parentCollection.folders = removeDuplicatesFromAnArrayById(
+ idToRemove,
+ parentCollection.folders
+ )
+ } else {
+ parentCollection.requests = removeDuplicatesFromAnArrayById(
+ idToRemove,
+ parentCollection.requests
+ )
+ }
+ } else {
+ return removeDuplicatesFromAnArrayById(idToRemove, collections)
+ }
+
+ return collections
+
+ function removeDuplicatesFromAnArrayById<T extends { id?: string }>(
+ idToRemove: string,
+ arrayWithID: T[]
+ ) {
+ const duplicateEntries = arrayWithID.filter(
+ (entry) => entry.id === idToRemove
+ )
+
+ if (duplicateEntries.length == 2) {
+ const duplicateEntryIndex = arrayWithID.findIndex(
+ (entry) => entry.id === idToRemove
+ )
+
+ arrayWithID.splice(duplicateEntryIndex, 1)
+ }
+
+ return arrayWithID
+ }
+}
diff --git a/packages/hoppscotch-data/src/graphql/index.ts b/packages/hoppscotch-data/src/graphql/index.ts
index 67e85620e..801b8fe82 100644
--- a/packages/hoppscotch-data/src/graphql/index.ts
+++ b/packages/hoppscotch-data/src/graphql/index.ts
@@ -11,6 +11,7 @@ export type GQLHeader = {
}
export type HoppGQLRequest = {
+ id?: string
v: number
name: string
url: string
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 80187ae78..b1b30301a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -58,10 +58,10 @@ importers:
packages/hoppscotch-cli:
devDependencies:
'@hoppscotch/data':
- specifier: workspace:^0.4.4
+ specifier: workspace:^
version: link:../hoppscotch-data
'@hoppscotch/js-sandbox':
- specifier: workspace:^2.0.0
+ specifier: workspace:^
version: link:../hoppscotch-js-sandbox
'@relmify/jest-fp-ts':
specifier: ^2.0.2
@@ -166,16 +166,16 @@ importers:
specifier: ^6.0.2
version: 6.0.2
'@hoppscotch/codemirror-lang-graphql':
- specifier: workspace:^0.2.0
+ specifier: workspace:^
version: link:../codemirror-lang-graphql
'@hoppscotch/data':
- specifier: workspace:^0.4.4
+ specifier: workspace:^
version: link:../hoppscotch-data
'@hoppscotch/js-sandbox':
- specifier: workspace:^2.1.0
+ specifier: workspace:^
version: link:../hoppscotch-js-sandbox
'@hoppscotch/ui':
- specifier: workspace:^0.0.1
+ specifier: workspace:^
version: link:../hoppscotch-ui
'@hoppscotch/vue-toasted':
specifier: ^0.1.0
@@ -203,7 +203,7 @@ importers:
version: 4.4.3([email protected])
'@vitejs/plugin-legacy':
specifier: ^2.3.0
'@vueuse/core':
specifier: ^8.7.5
version: 8.7.5([email protected])
@@ -477,7 +477,7 @@ importers:
vite:
specifier: ^3.1.4
vite-plugin-checker:
specifier: ^0.5.1
@@ -535,12 +535,12 @@ importers:
version: 4.7.4
vite:
specifier: ^3.2.3
packages/hoppscotch-js-sandbox:
dependencies:
'@hoppscotch/data':
- specifier: workspace:^0.4.4
+ specifier: workspace:^
version: link:../hoppscotch-data
fp-ts:
specifier: ^2.11.10
@@ -611,7 +611,7 @@ importers:
version: 1.0.0
'@vitejs/plugin-legacy':
specifier: ^2.3.0
'@vueuse/core':
specifier: ^8.7.5
version: 8.7.5([email protected])
@@ -732,7 +732,7 @@ importers:
version: 9.5.1([email protected])
histoire:
specifier: ^0.12.4
npm-run-all:
specifier: ^4.1.5
version: 4.1.5
@@ -753,7 +753,7 @@ importers:
vite:
specifier: ^3.2.3
vite-plugin-checker:
specifier: ^0.5.1
@@ -803,7 +803,7 @@ importers:
specifier: workspace:^
version: link:../hoppscotch-common
'@hoppscotch/data':
- specifier: workspace:^0.4.4
+ specifier: workspace:^
version: link:../hoppscotch-data
'@hoppscotch/ui':
specifier: workspace:^
@@ -847,7 +847,7 @@ importers:
'@vitejs/plugin-legacy':
specifier: ^2.3.0
'@vitejs/plugin-vue':
specifier: ^3.2.0
@@ -877,7 +877,7 @@ importers:
vite:
specifier: ^3.2.3
vite-plugin-fonts:
specifier: ^0.6.0
version: 0.6.0([email protected])
@@ -3660,7 +3660,7 @@ packages:
'@histoire/controls': 0.12.4
'@histoire/shared': 0.12.4([email protected])
'@histoire/vendors': 0.12.4
vue: 3.2.45
transitivePeerDependencies:
- vite
@@ -3676,7 +3676,7 @@ packages:
chokidar: 3.5.3
pathe: 0.2.0
picocolors: 1.0.0
dev: true
/@histoire/[email protected]:
@@ -3870,7 +3870,7 @@ packages:
debug: 4.3.4([email protected])
fast-glob: 3.2.11
source-map: 0.6.1
vue-i18n: 9.2.2([email protected])
transitivePeerDependencies:
- supports-color
@@ -4139,7 +4139,6 @@ packages:
/@jridgewell/[email protected]:
resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==}
engines: {node: '>=6.0.0'}
- dev: true
/@jridgewell/[email protected]:
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
@@ -4149,7 +4148,7 @@ packages:
resolution: {integrity: sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw==}
dependencies:
'@jridgewell/gen-mapping': 0.3.2
- '@jridgewell/trace-mapping': 0.3.14
+ '@jridgewell/trace-mapping': 0.3.17
/@jridgewell/[email protected]:
resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
@@ -4165,7 +4164,6 @@ packages:
dependencies:
'@jridgewell/resolve-uri': 3.1.0
'@jridgewell/sourcemap-codec': 1.4.14
- dev: true
/@jridgewell/[email protected]:
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
@@ -5362,7 +5360,7 @@ packages:
graphql: 15.8.0
dev: true
resolution: {integrity: sha512-Bh62i0gzQvvT8AeAAb78nOnqSYXypkRmQmOTImdPZ39meHR9e2une3AIFmVo4s1SDmcmJ6qj18Sa/lRc/14KaA==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
@@ -5374,11 +5372,11 @@ packages:
magic-string: 0.26.7
regenerator-runtime: 0.13.10
systemjs: 6.13.0
- terser: 5.14.1
+ terser: 5.16.8
dev: false
resolution: {integrity: sha512-Bh62i0gzQvvT8AeAAb78nOnqSYXypkRmQmOTImdPZ39meHR9e2une3AIFmVo4s1SDmcmJ6qj18Sa/lRc/14KaA==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
@@ -5390,8 +5388,8 @@ packages:
magic-string: 0.26.7
regenerator-runtime: 0.13.10
systemjs: 6.13.0
- terser: 5.14.1
+ terser: 5.16.8
resolution: {integrity: sha512-fmxtHPjSOEIRg6vHYDaem+97iwCUg/uSIaTzp98lhELt2ISOQuDo2hbkBdXod0g15IhfPMQmAxh4heUks2zvDA==}
@@ -5400,7 +5398,7 @@ packages:
vite: ^3.0.0
vue: ^3.2.25
dependencies:
vue: 3.2.37
dev: true
@@ -5411,7 +5409,7 @@ packages:
vite: ^3.0.0
vue: ^3.2.25
dependencies:
vue: 3.2.45
dev: true
@@ -6091,7 +6089,7 @@ packages:
hasBin: true
- resolution: {integrity: sha512-QbJ0NTQ/I9DI3uSJA4cbexiwQeRAfjPScqIbSjUDd9TOrcg6pTkdgziesOqxBMBzit8vFCTwrP27t13vFOORRA==}
+ resolution: {integrity: sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=}
dev: false
@@ -6456,7 +6454,7 @@ packages:
resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
- resolution: {integrity: sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==}
+ resolution: {integrity: sha1-mBjHngWbE1X5fgQooBfIOOkLqBI=}
engines: {node: '>= 0.6.0'}
dev: false
@@ -6923,7 +6921,7 @@ packages:
dev: true
- resolution: {integrity: sha512-WZveuKPeKAG9qY+FkYDeADzdHyTYdIboXS59ixDeRJL5ZhxpqUnxSOwop4FQjMsiYm3/Or8cegVbpAHNA7pHxw==}
+ resolution: {integrity: sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=}
dev: false
@@ -6931,7 +6929,7 @@ packages:
dev: false
- resolution: {integrity: sha512-w+LhYREhatpVqTESyGFg3NlP6Iu0kEKUHETY9GoZP/pQyW4mHFZuFWRUCIqVPZ36ueVLtoOEZaAqbCF2RDndaA==}
+ resolution: {integrity: sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=}
dev: false
@@ -9309,7 +9307,7 @@ packages:
dev: false
- resolution: {integrity: sha512-g5VNKdkFuUuVCP9gYfDJHjK2nqdQJ7aDLTnycnc2+RvsOQbuLdF5pm7vuE5J76SEBIQjs4kQY/BWq74JUmjbXA==}
+ resolution: {integrity: sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=}
dev: false
@@ -9361,7 +9359,7 @@ packages:
engines: {node: '>=10.0.0'}
dev: true
resolution: {integrity: sha512-q20Zncdh+GI2jDXiry1JS1DrN5qprKpl452AnS/P06Vgowqf79aG85E0XmhNpX2r8HI2HmIntwZ5FLd6hxYobQ==}
hasBin: true
peerDependencies:
@@ -9397,8 +9395,8 @@ packages:
shiki-es: 0.1.2
sirv: 2.0.2
tinypool: 0.1.3
transitivePeerDependencies:
- '@types/node'
- bufferutil
@@ -9613,7 +9611,7 @@ packages:
engines: {node: '>=8'}
- resolution: {integrity: sha512-i0G7hLJ1z0DE8dsqJa2rycj9dBmNKgXBvotXtZYXakU9oivfB9Uj2ZBC27qqef2U58/ZLwalxa1X/RDCdkHtVg==}
+ resolution: {integrity: sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=}
dev: false
@@ -12468,7 +12466,7 @@ packages:
jest-worker: 26.6.2
rollup: 2.79.1
serialize-javascript: 4.0.0
- terser: 5.14.1
+ terser: 5.16.8
dev: true
@@ -13298,16 +13296,6 @@ packages:
webpack: 5.78.0([email protected])
dev: true
- resolution: {integrity: sha512-+ahUAE+iheqBTDxXhTisdA8hgvbEG1hHOQ9xmNjeUJSoi6DU/gMrKNcfZjHkyY6Alnuyc+ikYJaxxfHkT3+WuQ==}
- engines: {node: '>=10'}
- hasBin: true
- dependencies:
- '@jridgewell/source-map': 0.3.2
- acorn: 8.8.2
- commander: 2.20.3
- source-map-support: 0.5.21
-
resolution: {integrity: sha512-QI5g1E/ef7d+PsDifb+a6nnVgC4F22Bg6T0xrBrz6iloVB4PUkkunp6V8nzoOOZJIzjWVdAGqCdlKlhLq/TbIA==}
engines: {node: '>=10'}
@@ -13317,7 +13305,6 @@ packages:
acorn: 8.8.2
commander: 2.20.3
source-map-support: 0.5.21
- dev: true
resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==}
@@ -13404,7 +13391,7 @@ packages:
dev: true
- resolution: {integrity: sha512-LhVdShQD/4Mk4zXNroIQZJC+Ap3zgLcDuwEdcmLv9CCO73NWockQDwyUnW/m8VX/EElfL6FcYx7EeutN4HJA6A==}
+ resolution: {integrity: sha1-F+bBH3PdTz10zaek/zI46a2b+JA=}
dev: false
@@ -13908,7 +13895,7 @@ packages:
chokidar: 3.5.3
esbuild: 0.15.15
rollup: 2.79.1
webpack: 5.78.0([email protected])
webpack-sources: 3.2.3
webpack-virtual-modules: 0.4.4
@@ -13935,7 +13922,7 @@ packages:
chokidar: 3.5.3
esbuild: 0.15.15
rollup: 2.79.1
webpack-sources: 3.2.3
webpack-virtual-modules: 0.4.4
dev: true
@@ -14060,7 +14047,7 @@ packages:
resolution: {integrity: sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==}
engines: {node: '>=12'}
resolution: {integrity: sha512-nLtHWCv6reONl1oFsKhQ/LT7n3UNLpvVARAJlmGrQV6qSElht/9AdN41Pa+WSkw2Winh682UzM0Yw0GNlfqejw==}
engines: {node: '>=v14.16.0'}
hasBin: true
@@ -14070,7 +14057,7 @@ packages:
pathe: 0.2.0
source-map: 0.6.1
source-map-support: 0.5.21
transitivePeerDependencies:
- '@types/node'
- less
@@ -14113,7 +14100,7 @@ packages:
strip-ansi: 6.0.1
tiny-invariant: 1.2.0
typescript: 4.7.4
vscode-languageclient: 7.0.0
vscode-languageserver: 7.0.0
vscode-languageserver-textdocument: 1.0.7
@@ -14152,7 +14139,7 @@ packages:
strip-ansi: 6.0.1
tiny-invariant: 1.2.0
typescript: 4.7.4
vscode-languageclient: 7.0.0
vscode-languageserver: 7.0.0
vscode-languageserver-textdocument: 1.0.7
@@ -14175,7 +14162,7 @@ packages:
kolorist: 1.7.0
magic-string: 0.29.0
ts-morph: 17.0.1
transitivePeerDependencies:
- '@types/node'
- rollup
@@ -14192,7 +14179,7 @@ packages:
'@types/eslint': 8.4.10
eslint: 8.28.0
rollup: 2.79.1
dev: false
@@ -14201,7 +14188,7 @@ packages:
vite: ^2.0.0 || ^3.0.0
dependencies:
fast-glob: 3.2.11
dev: true
@@ -14210,7 +14197,7 @@ packages:
vite: ^2.0.0 || ^3.0.0
dependencies:
fast-glob: 3.2.11
dev: true
@@ -14219,7 +14206,7 @@ packages:
peerDependencies:
vite: '>=2.0.0'
dependencies:
dev: true
@@ -14228,7 +14215,7 @@ packages:
peerDependencies:
vite: '>=2.0.0'
dependencies:
dev: true
@@ -14243,7 +14230,7 @@ packages:
kolorist: 1.5.1
sirv: 2.0.2
ufo: 0.8.5
transitivePeerDependencies:
- supports-color
dev: true
@@ -14260,7 +14247,7 @@ packages:
kolorist: 1.5.1
sirv: 2.0.2
ufo: 0.8.5
transitivePeerDependencies:
- supports-color
dev: true
@@ -14287,7 +14274,7 @@ packages:
json5: 2.2.1
local-pkg: 0.4.2
picocolors: 1.0.0
yaml: 2.1.1
transitivePeerDependencies:
- supports-color
@@ -14311,7 +14298,7 @@ packages:
json5: 2.2.1
local-pkg: 0.4.2
picocolors: 1.0.0
yaml: 2.1.1
transitivePeerDependencies:
- supports-color
@@ -14328,7 +14315,7 @@ packages:
fast-glob: 3.2.11
pretty-bytes: 6.0.0
rollup: 2.79.1
workbox-build: 6.5.4
workbox-window: 6.5.4
transitivePeerDependencies:
@@ -14346,7 +14333,7 @@ packages:
fast-glob: 3.2.11
pretty-bytes: 6.0.0
rollup: 2.79.1
workbox-build: 6.5.4
workbox-window: 6.5.4
transitivePeerDependencies:
@@ -14363,7 +14350,7 @@ packages:
fast-glob: 3.2.11
fs-extra: 10.1.0
picocolors: 1.0.0
dev: true
@@ -14376,7 +14363,7 @@ packages:
'@vue/compiler-sfc': 3.2.45
debug: 4.3.4([email protected])
fast-glob: 3.2.11
vue: 3.2.37
vue-router: 4.1.0([email protected])
transitivePeerDependencies:
@@ -14393,7 +14380,7 @@ packages:
'@vue/compiler-sfc': 3.2.45
debug: 4.3.4([email protected])
fast-glob: 3.2.11
vue: 3.2.45
vue-router: 4.1.0([email protected])
transitivePeerDependencies:
@@ -14408,7 +14395,7 @@ packages:
'@windicss/plugin-utils': 1.8.8
debug: 4.3.4([email protected])
kolorist: 1.5.1
windicss: 3.5.6
transitivePeerDependencies:
- supports-color
@@ -14422,13 +14409,13 @@ packages:
'@windicss/plugin-utils': 1.8.8
debug: 4.3.4([email protected])
kolorist: 1.5.1
windicss: 3.5.6
transitivePeerDependencies:
- supports-color
dev: true
resolution: {integrity: sha512-JoQI08aBjY9lycL7jcEq4p9o1xUjq5aRvdH4KWaXtkSx7e7RpAh9D3IjzDWRD4Fg44LS3oDAIOG/Kq1L+82psA==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -14452,11 +14439,11 @@ packages:
resolve: 1.22.1
rollup: 2.78.1
sass: 1.53.0
- terser: 5.14.1
+ terser: 5.16.8
optionalDependencies:
fsevents: 2.3.2
resolution: {integrity: sha512-Z2X6SRAffOUYTa+sLy3NQ7nlHFU100xwanq1WDwqaiFiCe+25zdxP1TfCS5ojPV2oDDcXudHIoPnI1Z/66B7Yw==}
engines: {node: ^14.18.0 || >=16.0.0}
hasBin: true
@@ -14487,7 +14474,7 @@ packages:
resolve: 1.22.1
rollup: 2.79.1
sass: 1.53.0
- terser: 5.14.1
+ terser: 5.16.8
optionalDependencies:
fsevents: 2.3.2
@@ -15379,7 +15366,7 @@ packages:
dev: false
- resolution: {integrity: sha512-8HFIh676uyGYP6wP13R/j6OJ/1HwJ46snpvzE7aHAN3Ryqh2yX6Xox2B4CUmTwwOIzlG3Bs7ocsP5dZH/R1Qbg==}
+ resolution: {integrity: sha1-AI4G2AlDIMNy28L47XagymyKxBk=}
dev: false