Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: implement updated equality heuristics for hopprestrequest struct
Andrew Bastinede27e06003f
diff --git a/packages/hoppscotch-app/components/collections/my/Request.vue b/packages/hoppscotch-app/components/collections/my/Request.vueindex abeb983e3..0da5f2b07 100644--- a/packages/hoppscotch-app/components/collections/my/Request.vue+++ b/packages/hoppscotch-app/components/collections/my/Request.vue@@ -162,8 +162,8 @@ import {HoppRESTRequest,safelyExtractRESTRequest,translateToNewRequest,+ isEqualHoppRESTRequest,} from "@hoppscotch/data"-import isEqual from "lodash/isEqual"import * as E from "fp-ts/Either"import {useI18n,@@ -349,9 +349,9 @@ const selectRequest = () => {const currentFullReq = getRESTRequest()// Check if whether user clicked the same request or not- if (!isActive.value) {+ if (!isActive.value && currentReqWithNoChange !== undefined) {// Check if there is any changes done on the current request- if (isEqual(currentReqWithNoChange, currentFullReq)) {+ if (isEqualHoppRESTRequest(currentReqWithNoChange, currentFullReq)) {setRestReq(props.request)if (props.saveRequest)emit("select", {diff --git a/packages/hoppscotch-app/components/collections/teams/Request.vue b/packages/hoppscotch-app/components/collections/teams/Request.vueindex 477e61e23..ad33ee0e6 100644--- a/packages/hoppscotch-app/components/collections/teams/Request.vue+++ b/packages/hoppscotch-app/components/collections/teams/Request.vue@@ -157,11 +157,11 @@import { ref, computed } from "@nuxtjs/composition-api"import {HoppRESTRequest,+ isEqualHoppRESTRequest,safelyExtractRESTRequest,translateToNewRequest,} from "@hoppscotch/data"import * as E from "fp-ts/Either"-import isEqual from "lodash/isEqual"import {useI18n,useToast,@@ -277,8 +277,7 @@ const isActive = computed(() =>active.value &&active.value.originLocation === "team-collection" &&- active.value.requestID === props.requestIndex &&- isEqual(active.value.req, props.request)+ active.value.requestID === props.requestIndex)const dragStart = ({ dataTransfer }: DragEvent) => {@@ -333,9 +332,9 @@ const selectRequest = () => {const currentFullReq = getRESTRequest()// Check if whether user clicked the same request or not- if (!isActive.value) {+ if (!isActive.value && currentReqWithNoChange) {// Check if there is any changes done on the current request- if (isEqual(currentReqWithNoChange, currentFullReq)) {+ if (isEqualHoppRESTRequest(currentReqWithNoChange, currentFullReq)) {setRestReq(props.request)if (props.saveRequest)emit("select", {diff --git a/packages/hoppscotch-app/components/history/index.vue b/packages/hoppscotch-app/components/history/index.vueindex f757d4c79..2d8b653be 100644--- a/packages/hoppscotch-app/components/history/index.vue+++ b/packages/hoppscotch-app/components/history/index.vue@@ -113,13 +113,16 @@<script setup lang="ts">import { computed, ref, Ref } from "@nuxtjs/composition-api"-import { HoppRESTRequest, safelyExtractRESTRequest } from "@hoppscotch/data"+import {+ HoppRESTRequest,+ isEqualHoppRESTRequest,+ safelyExtractRESTRequest,+} from "@hoppscotch/data"import groupBy from "lodash/groupBy"import { useTimeAgo } from "@vueuse/core"import { pipe } from "fp-ts/function"import * as A from "fp-ts/Array"import * as E from "fp-ts/Either"-import isEqual from "lodash/isEqual"import {useI18n,useReadonlyStream,@@ -231,7 +234,9 @@ const setRestReq = (request: HoppRESTRequest | null | undefined) => {setRESTRequest(safelyExtractRESTRequest(request, getDefaultRESTRequest()))}-const useHistory = (entry: HistoryEntry) => {+// NOTE: For GQL, the HistoryGraphqlCard component already implements useEntry+// (That is not a really good behaviour tho ¯\_(ツ)_/¯)+const useHistory = (entry: RESTHistoryEntry) => {const currentFullReq = getRESTRequest()// Initial state trigers a popupif (!clickedHistory.value) {@@ -240,7 +245,12 @@ const useHistory = (entry: HistoryEntry) => {return}// Checks if there are any change done in current request and the history request- if (!isEqual(currentFullReq, clickedHistory.value.request)) {+ if (+ !isEqualHoppRESTRequest(+ currentFullReq,+ clickedHistory.value.request as HoppRESTRequest+ )+ ) {clickedHistory.value = entryconfirmChange.value = true} else {@@ -342,7 +352,7 @@ const deleteHistory = (entry: HistoryEntry) => {}const toggleStar = (entry: HistoryEntry) => {- //History entry type specified because function does not know the type+ // History entry type specified because function does not know the typeif (props.page === "rest")toggleRESTHistoryEntryStar(entry as RESTHistoryEntry)else toggleGraphqlHistoryEntryStar(entry as GQLHistoryEntry)diff --git a/packages/hoppscotch-app/package.json b/packages/hoppscotch-app/package.jsonindex 66075021f..8ce15706a 100644--- a/packages/hoppscotch-app/package.json+++ b/packages/hoppscotch-app/package.json@@ -58,7 +58,7 @@"@codemirror/tooltip": "^0.19.16","@codemirror/view": "^0.19.48","@hoppscotch/codemirror-lang-graphql": "workspace:^0.1.0",- "@hoppscotch/data": "workspace:^0.4.0",+ "@hoppscotch/data": "workspace:^0.4.2","@hoppscotch/js-sandbox": "workspace:^2.0.0","@nuxtjs/axios": "^5.13.6","@nuxtjs/composition-api": "^0.32.0",diff --git a/packages/hoppscotch-app/pages/index.vue b/packages/hoppscotch-app/pages/index.vueindex b481ee27b..27e46cd15 100644--- a/packages/hoppscotch-app/pages/index.vue+++ b/packages/hoppscotch-app/pages/index.vue@@ -25,11 +25,11 @@ import {watch,} from "@nuxtjs/composition-api"import { Subscription } from "rxjs"-import isEqual from "lodash/isEqual"import {HoppRESTRequest,HoppRESTAuthOAuth2,safelyExtractRESTRequest,+ isEqualHoppRESTRequest,} from "@hoppscotch/data"import {getRESTRequest,@@ -102,8 +102,7 @@ function setupRequestSync() {const request = await loadRequestFromSync()if (request) {- // setRESTRequest(request)- if (!isEqual(request, getRESTRequest())) {+ if (!isEqualHoppRESTRequest(request, getRESTRequest())) {requestForSync.value = requestconfirmSync.value = true}diff --git a/packages/hoppscotch-cli/package.json b/packages/hoppscotch-cli/package.jsonindex 75764476d..596a5a28d 100644--- a/packages/hoppscotch-cli/package.json+++ b/packages/hoppscotch-cli/package.json@@ -35,7 +35,7 @@"license": "MIT","private": false,"devDependencies": {- "@hoppscotch/data": "workspace:^0.4.1",+ "@hoppscotch/data": "workspace:^0.4.2","@hoppscotch/js-sandbox": "workspace:^2.0.0","@swc/core": "^1.2.163","@types/axios": "^0.14.0",diff --git a/packages/hoppscotch-data/package.json b/packages/hoppscotch-data/package.jsonindex 74629ca1a..1dab3b0c4 100644--- a/packages/hoppscotch-data/package.json+++ b/packages/hoppscotch-data/package.json@@ -1,6 +1,6 @@{"name": "@hoppscotch/data",- "version": "0.4.1",+ "version": "0.4.2","description": "Data Types, Validations and Migrations for Hoppscotch Public Data Structures","main": "dist/index.js","module": "true",diff --git a/packages/hoppscotch-data/src/rest/index.ts b/packages/hoppscotch-data/src/rest/index.tsindex d98e36849..c4fa6d9c0 100644--- a/packages/hoppscotch-data/src/rest/index.ts+++ b/packages/hoppscotch-data/src/rest/index.ts@@ -1,6 +1,9 @@import cloneDeep from "lodash/cloneDeep"+import * as Eq from "fp-ts/Eq"+import * as S from "fp-ts/string"import { ValidContentTypes } from "./content-types"import { HoppRESTAuth } from "./HoppRESTAuth"+import { lodashIsEqualEq, mapThenEq, undefinedEq } from "../utils/eq"export * from "./content-types"export * from "./HoppRESTAuth"@@ -57,6 +60,28 @@ export interface HoppRESTRequest {body: HoppRESTReqBody}+export const HoppRESTRequestEq = Eq.struct<HoppRESTRequest>({+ id: undefinedEq(S.Eq),+ v: S.Eq,+ auth: lodashIsEqualEq,+ body: lodashIsEqualEq,+ endpoint: S.Eq,+ headers: mapThenEq(+ (arr) => arr.filter((h) => h.key !== "" && h.value !== ""),+ lodashIsEqualEq+ ),+ params: mapThenEq(+ (arr) => arr.filter((p) => p.key !== "" && p.value !== ""),+ lodashIsEqualEq+ ),+ method: S.Eq,+ name: S.Eq,+ preRequestScript: S.Eq,+ testScript: S.Eq,+})++export const isEqualHoppRESTRequest = HoppRESTRequestEq.equals+/*** Safely tries to extract REST Request data from an unknown value.* If we fail to detect certain bits, we just resolve it to the default valuediff --git a/packages/hoppscotch-data/src/utils/eq.ts b/packages/hoppscotch-data/src/utils/eq.tsnew file mode 100644index 000000000..d90eac950--- /dev/null+++ b/packages/hoppscotch-data/src/utils/eq.ts@@ -0,0 +1,50 @@+import * as Eq from "fp-ts/Eq"+import * as S from "fp-ts/string"+import isEqual from "lodash/isEqual"++/*+ * Eq-s are fp-ts an interface (type class) that defines how the equality+ * of 2 values of a certain type are matched as equal+ */+++/**+ * Create an Eq from a non-undefinable value and makes it accept undefined+ * @param eq The non nullable Eq to add to+ * @returns The updated Eq which accepts undefined+ */+export const undefinedEq = <T>(eq: Eq.Eq<T>): Eq.Eq<T | undefined> => ({+ equals(x: T | undefined, y: T | undefined) {+ if (x !== undefined && y !== undefined) {+ return eq.equals(x, y)+ }++ return x === undefined && y === undefined+ }+})++/**+ * An Eq which compares by transforming based on a mapping function and then applying the Eq to it+ * @param map The mapping function to map values to+ * @param eq The Eq which takes the value which the map returns+ * @returns An Eq which takes the input of the mapping function+ */+export const mapThenEq = <A, B>(map: (x: A) => B, eq: Eq.Eq<B>): Eq.Eq<A> => ({+ equals(x: A, y: A) {+ return eq.equals(map(x), map(y))+ }+})++/**+ * An Eq which checks equality of 2 string in a case insensitive way+ */+export const stringCaseInsensitiveEq: Eq.Eq<string> = mapThenEq(S.toLowerCase, S.Eq)++/**+ * An Eq that does equality check with Lodash's isEqual function+ */+export const lodashIsEqualEq: Eq.Eq<any> = {+ equals(x: any, y: any) {+ return isEqual(x, y)+ }+}diff --git a/packages/hoppscotch-js-sandbox/package.json b/packages/hoppscotch-js-sandbox/package.jsonindex 7274fb4a5..6a5d539cc 100644--- a/packages/hoppscotch-js-sandbox/package.json+++ b/packages/hoppscotch-js-sandbox/package.json@@ -40,7 +40,7 @@"author": "Hoppscotch ([email protected])","license": "MIT","dependencies": {- "@hoppscotch/data": "workspace:^0.4.0",+ "@hoppscotch/data": "workspace:^0.4.2","fp-ts": "^2.11.9","lodash": "^4.17.21","quickjs-emscripten": "^0.15.0",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 24e1bd6a9..869ff45fe 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -76,7 +76,7 @@ importers:'@graphql-codegen/urql-introspection': ^2.1.1'@graphql-typed-document-node/core': ^3.1.1'@hoppscotch/codemirror-lang-graphql': workspace:^0.1.0- '@hoppscotch/data': workspace:^0.4.0+ '@hoppscotch/data': workspace:^0.4.2'@hoppscotch/js-sandbox': workspace:^2.0.0'@nuxt/types': ^2.15.8'@nuxt/typescript-build': ^2.1.0@@ -345,7 +345,7 @@ importers:packages/hoppscotch-cli:specifiers:- '@hoppscotch/data': workspace:^0.4.1+ '@hoppscotch/data': workspace:^0.4.2'@hoppscotch/js-sandbox': workspace:^2.0.0'@swc/core': ^1.2.163'@types/axios': ^0.14.0@@ -399,7 +399,7 @@ importers:packages/hoppscotch-js-sandbox:specifiers:'@digitak/esrun': ^3.1.2- '@hoppscotch/data': workspace:^0.4.0+ '@hoppscotch/data': workspace:^0.4.2'@relmify/jest-fp-ts': ^2.0.1'@types/jest': ^27.4.1'@types/lodash': ^4.14.181@@ -3909,11 +3909,11 @@ packages:ufo: 0.7.11dev: false- /@nuxt/kit-edge/3.0.0-27494471.1091d45:- resolution: {integrity: sha512-aDN043C1VMsZfKq3FffDW/QofQY/aCDJfYgtnJOoGwkqNbe+KpFd/R9XFrqSh6rk7V41x9EVBMsoaHH6/H+Ctw==}+ /@nuxt/kit-edge/3.0.0-27498764.32c798c:+ resolution: {integrity: sha512-2Ikg0/XCpJR6AlX3y+rFJhLoVmmVPSrHKtrH0SFf/U3wrC36PNKB21804fhPFAXqTwfBgTtOiRa7fHYgYr2Pjw==}engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0}dependencies:- '@nuxt/schema': /@nuxt/schema-edge/3.0.0-27494471.1091d45+ '@nuxt/schema': /@nuxt/schema-edge/3.0.0-27498764.32c798cc12: 0.2.5consola: 2.15.3defu: 6.0.0@@ -3927,9 +3927,9 @@ packages:pathe: 0.2.0pkg-types: 0.3.2scule: 0.2.1- semver: 7.3.6+ semver: 7.3.7unctx: 1.1.4- unimport: 0.1.4+ unimport: 0.1.5untyped: 0.4.4transitivePeerDependencies:- esbuild@@ -3961,8 +3961,8 @@ packages:- encodingdev: false- /@nuxt/schema-edge/3.0.0-27494471.1091d45:- resolution: {integrity: sha512-2tokTe3YQYKxyiTGC7cgeKRSJif+xvx5pXl5cb7sx0Nwim2hJyTi6gE9U5YbCZ85Rqu5pnqVZ5c6bLNOtIdDRw==}+ /@nuxt/schema-edge/3.0.0-27498764.32c798c:+ resolution: {integrity: sha512-oJ6pARR1IIhVLIAZK5VIB5IMXF2IEbbDtlWRwHNYJc3nyPbFY/yIfgBYo5E6+XNk45VLt+Yme66H4oGLEl706g==}engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0}dependencies:c12: 0.2.5@@ -3974,7 +3974,7 @@ packages:scule: 0.2.1std-env: 3.0.1ufo: 0.8.3- unimport: 0.1.4+ unimport: 0.1.5transitivePeerDependencies:- esbuild- rollup@@ -7170,15 +7170,6 @@ packages:resolution: {integrity: sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=}dev: false- /bundle-require/[email protected]:- resolution: {integrity: sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}- peerDependencies:- esbuild: '>=0.13'- dependencies:- esbuild: 0.14.30- load-tsconfig: 0.2.3-/bundle-require/[email protected]:resolution: {integrity: sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A==}engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}@@ -7187,7 +7178,6 @@ packages:dependencies:esbuild: 0.14.34load-tsconfig: 0.2.3- dev: true/bytes/3.0.0:resolution: {integrity: sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=}@@ -9174,29 +9164,12 @@ packages:is-date-object: 1.0.5is-symbol: 1.0.4- /esbuild-android-64/0.14.30:- resolution: {integrity: sha512-vdJ7t8A8msPfKpYUGUV/KaTQRiZ0vDa2XSTlzXVkGGVHLKPeb85PBUtYJcEgw3htW3IdX5i1t1IMdQCwJJgNAg==}- engines: {node: '>=12'}- cpu: [x64]- os: [android]- requiresBuild: true- optional: true-/esbuild-android-64/0.14.34:resolution: {integrity: sha512-XfxcfJqmMYsT/LXqrptzFxmaR3GWzXHDLdFNIhm6S00zPaQF1TBBWm+9t0RZ6LRR7iwH57DPjaOeW20vMqI4Yw==}engines: {node: '>=12'}cpu: [x64]os: [android]requiresBuild: true- dev: true- optional: true-- /esbuild-android-arm64/0.14.30:- resolution: {integrity: sha512-BdgGfxeA5hBQNErLr7BWJUA8xjflEfyaARICy8e0OJYNSAwDbEzOf8LyiKWSrDcgV129mWhi3VpbNQvOIDEHcg==}- engines: {node: '>=12'}- cpu: [arm64]- os: [android]- requiresBuild: trueoptional: true/esbuild-android-arm64/0.14.34:@@ -9205,15 +9178,6 @@ packages:cpu: [arm64]os: [android]requiresBuild: true- dev: true- optional: true-- /esbuild-darwin-64/0.14.30:- resolution: {integrity: sha512-VRaOXMMrsG5n53pl4qFZQdXy2+E0NoLP/QH3aDUI0+bQP+ZHDmbINKcDy2IX7GVFI9kqPS18iJNAs5a6/G2LZg==}- engines: {node: '>=12'}- cpu: [x64]- os: [darwin]- requiresBuild: trueoptional: true/esbuild-darwin-64/0.14.34:@@ -9222,15 +9186,6 @@ packages:cpu: [x64]os: [darwin]requiresBuild: true- dev: true- optional: true-- /esbuild-darwin-arm64/0.14.30:- resolution: {integrity: sha512-qDez+fHMOrO9Oc9qjt/x+sy09RJVh62kik5tVybKRLmezeV4qczM9/sAYY57YN0aWLdHbcCj2YqJUWYJNsgKnw==}- engines: {node: '>=12'}- cpu: [arm64]- os: [darwin]- requiresBuild: trueoptional: true/esbuild-darwin-arm64/0.14.34:@@ -9239,15 +9194,6 @@ packages:cpu: [arm64]os: [darwin]requiresBuild: true- dev: true- optional: true-- /esbuild-freebsd-64/0.14.30:- resolution: {integrity: sha512-mec1jENcImVVagddZlGWsdAUwBnzR5cgnhzCxv+9fSMxKbx1uZYLLUAnLPp8m/i934zrumR1xGjJ5VoWdPlI2w==}- engines: {node: '>=12'}- cpu: [x64]- os: [freebsd]- requiresBuild: trueoptional: true/esbuild-freebsd-64/0.14.34:@@ -9256,15 +9202,6 @@ packages:cpu: [x64]os: [freebsd]requiresBuild: true- dev: true- optional: true-- /esbuild-freebsd-arm64/0.14.30:- resolution: {integrity: sha512-cpjbTs6Iok/AfeB0JgTzyUJTMStC1SQULmany5nHx6S4GTkSgaAHuJzZO0GcVWqghI4e0YL/bjXAhN5Mn6feNw==}- engines: {node: '>=12'}- cpu: [arm64]- os: [freebsd]- requiresBuild: trueoptional: true/esbuild-freebsd-arm64/0.14.34:@@ -9273,15 +9210,6 @@ packages:cpu: [arm64]os: [freebsd]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-32/0.14.30:- resolution: {integrity: sha512-liIONVT4F2kZmOMwtwASqZ8WkIjb5HHBR9HUffdHiuotSTF3CyZO+EJf+Og+SYYuuVIvt0qHNSFjBA/iSESteQ==}- engines: {node: '>=12'}- cpu: [ia32]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-32/0.14.34:@@ -9290,15 +9218,6 @@ packages:cpu: [ia32]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-64/0.14.30:- resolution: {integrity: sha512-LUnpzoMpRqFON5En4qEj6NWiyH6a1K+Y2qYNKrCy5qPTjDoG/EWeqMz69n8Uv7pRuvDKl3FNGJ1dufTrA5i0sw==}- engines: {node: '>=12'}- cpu: [x64]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-64/0.14.34:@@ -9307,15 +9226,6 @@ packages:cpu: [x64]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-arm/0.14.30:- resolution: {integrity: sha512-97T+bbXnpqf7mfIG49UR7ZSJFGgvc22byn74qw3Kx2GDCBSQoVFjyWuKOHGXp8nXk3XYrdFF+mQ8yQ7aNsgQvg==}- engines: {node: '>=12'}- cpu: [arm]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-arm/0.14.34:@@ -9324,15 +9234,6 @@ packages:cpu: [arm]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-arm64/0.14.30:- resolution: {integrity: sha512-DHZHn6FK5q/KL0fpNT/0jE38Nnyk2rXxKE9WENi95EXtqfOLPgE8tzjTZQNgpr61R95QX4ymQU26ni3IZk8buQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-arm64/0.14.34:@@ -9341,15 +9242,6 @@ packages:cpu: [arm64]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-mips64le/0.14.30:- resolution: {integrity: sha512-fLUzTFZ7uknC0aPTk7/lM7NmaG/9ZqE3SaHEphcaM009SZK/mDOvZugWi1ss6WGNhk13dUrhkfHcc4FSb9hYhg==}- engines: {node: '>=12'}- cpu: [mips64el]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-mips64le/0.14.34:@@ -9358,15 +9250,6 @@ packages:cpu: [mips64el]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-ppc64le/0.14.30:- resolution: {integrity: sha512-2Oudm2WEfj0dNU9bzIl5L/LrsMEmHWsOsYgJJqu8fDyUDgER+J1d33qz3cUdjsJk7gAENayIxDSpsuCszx0w3A==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-ppc64le/0.14.34:@@ -9375,15 +9258,6 @@ packages:cpu: [ppc64]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-riscv64/0.14.30:- resolution: {integrity: sha512-RPMucPW47rV4t2jlelaE948iCRtbZf5RhifxSwzlpM1Mqdyu99MMNK0w4jFreGTmLN+oGomxIOxD6n+2E/XqHw==}- engines: {node: '>=12'}- cpu: [riscv64]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-riscv64/0.14.34:@@ -9392,15 +9266,6 @@ packages:cpu: [riscv64]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-linux-s390x/0.14.30:- resolution: {integrity: sha512-OZ68r7ok6qO7hdwrwQn2p5jbIRRcUcVaAykB7e0uCA0ODwfeGunILM6phJtq2Oz4dlEEFvd+tSuma3paQKwt+A==}- engines: {node: '>=12'}- cpu: [s390x]- os: [linux]- requiresBuild: trueoptional: true/esbuild-linux-s390x/0.14.34:@@ -9409,15 +9274,6 @@ packages:cpu: [s390x]os: [linux]requiresBuild: true- dev: true- optional: true-- /esbuild-netbsd-64/0.14.30:- resolution: {integrity: sha512-iyejQUKn0TzpPkufq8pSCxOg9NheycQbMbPCmjefTe9wYuUlBt1TcHvdoJnYbQzsAhAh1BNq+s0ycRsIJFZzaQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [netbsd]- requiresBuild: trueoptional: true/esbuild-netbsd-64/0.14.34:@@ -9426,15 +9282,6 @@ packages:cpu: [x64]os: [netbsd]requiresBuild: true- dev: true- optional: true-- /esbuild-openbsd-64/0.14.30:- resolution: {integrity: sha512-UyK1MTMcy4j5fH260fsE1o6MVgWNhb62eCK2yCKCRazZv8Nqdc2WiP9ygjWidmEdCDS+A6MuVp9ozk9uoQtQpA==}- engines: {node: '>=12'}- cpu: [x64]- os: [openbsd]- requiresBuild: trueoptional: true/esbuild-openbsd-64/0.14.34:@@ -9443,15 +9290,6 @@ packages:cpu: [x64]os: [openbsd]requiresBuild: true- dev: true- optional: true-- /esbuild-sunos-64/0.14.30:- resolution: {integrity: sha512-aQRtRTNKHB4YuG+xXATe5AoRTNY48IJg5vjE8ElxfmjO9+KdX7MHFkTLhlKevCD6rNANtB3qOlSIeAiXTwHNqw==}- engines: {node: '>=12'}- cpu: [x64]- os: [sunos]- requiresBuild: trueoptional: true/esbuild-sunos-64/0.14.34:@@ -9460,15 +9298,6 @@ packages:cpu: [x64]os: [sunos]requiresBuild: true- dev: true- optional: true-- /esbuild-windows-32/0.14.30:- resolution: {integrity: sha512-9/fb1tPtpacMqxAXp3fGHowUDg/l9dVch5hKmCLEZC6PdGljh6h372zMdJwYfH0Bd5CCPT0Wx95uycBLJiqpXA==}- engines: {node: '>=12'}- cpu: [ia32]- os: [win32]- requiresBuild: trueoptional: true/esbuild-windows-32/0.14.34:@@ -9477,15 +9306,6 @@ packages:cpu: [ia32]os: [win32]requiresBuild: true- dev: true- optional: true-- /esbuild-windows-64/0.14.30:- resolution: {integrity: sha512-DHgITeUhPAnN9I5O6QBa1GVyPOhiYCn4S4TtQr7sO4+X0LNyqnlmA1M0qmGkUdDC1QQfjI8uQ4G/whdWb2pWIQ==}- engines: {node: '>=12'}- cpu: [x64]- os: [win32]- requiresBuild: trueoptional: true/esbuild-windows-64/0.14.34:@@ -9494,15 +9314,6 @@ packages:cpu: [x64]os: [win32]requiresBuild: true- dev: true- optional: true-- /esbuild-windows-arm64/0.14.30:- resolution: {integrity: sha512-F1kLyQH7zSgjh5eLxogGZN7C9+KNs9m+s7Q6WZoMmCWT/6j998zlaoECHyM8izJRRfsvw2eZlEa1jO6/IOU1AQ==}- engines: {node: '>=12'}- cpu: [arm64]- os: [win32]- requiresBuild: trueoptional: true/esbuild-windows-arm64/0.14.34:@@ -9511,7 +9322,6 @@ packages:cpu: [arm64]os: [win32]requiresBuild: true- dev: trueoptional: true/esbuild/0.12.29:@@ -9520,33 +9330,6 @@ packages:requiresBuild: truedev: true- /esbuild/0.14.30:- resolution: {integrity: sha512-wCecQSBkIjp2xjuXY+wcXS/PpOQo9rFh4NAKPh4Pm9f3fuLcnxkR0rDzA+mYP88FtXIUcXUyYmaIgfrzRl55jA==}- engines: {node: '>=12'}- hasBin: true- requiresBuild: true- optionalDependencies:- esbuild-android-64: 0.14.30- esbuild-android-arm64: 0.14.30- esbuild-darwin-64: 0.14.30- esbuild-darwin-arm64: 0.14.30- esbuild-freebsd-64: 0.14.30- esbuild-freebsd-arm64: 0.14.30- esbuild-linux-32: 0.14.30- esbuild-linux-64: 0.14.30- esbuild-linux-arm: 0.14.30- esbuild-linux-arm64: 0.14.30- esbuild-linux-mips64le: 0.14.30- esbuild-linux-ppc64le: 0.14.30- esbuild-linux-riscv64: 0.14.30- esbuild-linux-s390x: 0.14.30- esbuild-netbsd-64: 0.14.30- esbuild-openbsd-64: 0.14.30- esbuild-sunos-64: 0.14.30- esbuild-windows-32: 0.14.30- esbuild-windows-64: 0.14.30- esbuild-windows-arm64: 0.14.30-/esbuild/0.14.34:resolution: {integrity: sha512-QIWdPT/gFF6hCaf4m7kP0cJ+JIuFkdHibI7vVFvu3eJS1HpVmYHWDulyN5WXwbRA0SX/7ZDaJ/1DH8SdY9xOJg==}engines: {node: '>=12'}@@ -9573,7 +9356,6 @@ packages:esbuild-windows-32: 0.14.34esbuild-windows-64: 0.14.34esbuild-windows-arm64: 0.14.34- dev: true/escalade/3.1.1:resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}@@ -12898,7 +12680,7 @@ packages:/jsonfile/4.0.0:resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=}optionalDependencies:- graceful-fs: 4.2.8+ graceful-fs: 4.2.10dev: false/jsonfile/6.1.0:@@ -13940,10 +13722,6 @@ packages:resolution: {integrity: sha512-zMq5n3cOf4fOzA4WoeulxagbAgMChdev3MgP6K51k7M0u2whTXxupfIY4VVzws4vxkiWhwH1rVQcsw7zDGfRhA==}dev: true- /mlly/0.4.3:- resolution: {integrity: sha512-xezyv7hnfFPuiDS3AiJuWs0OxlvooS++3L2lURvmh/1n7UG4O2Ehz9UkwWgg3wyLEPKGVfJLlr2DjjTCl9UJTg==}- dev: true-/mlly/0.5.1:resolution: {integrity: sha512-0axKqxbYyQvaAfi6BNqDluCJqg6RkjdsdFxSDoiP6l5HplSTr3ie5Vkxvw9U9ogdj65x56amTnAn+xSoP727Rg==}dependencies:@@ -14317,7 +14095,7 @@ packages:/nuxt-windicss/2.2.10:resolution: {integrity: sha512-DCn0LWgeQ9PWSjSoVH6LB82P/sF8QMVNpFmjJAfe+V1EcNJIY/5RCmqRp3zItNibVsRNiyYTEWQa/SoI3ts6Hw==}dependencies:- '@nuxt/kit': /@nuxt/kit-edge/3.0.0-27494471.1091d45+ '@nuxt/kit': /@nuxt/kit-edge/3.0.0-27498764.32c798c'@windicss/plugin-utils': 1.8.3consola: 2.15.3defu: 6.0.0@@ -16735,6 +16513,14 @@ packages:dependencies:lru-cache: 7.8.1+ /semver/7.3.7:+ resolution: {integrity: sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==}+ engines: {node: '>=10'}+ hasBin: true+ dependencies:+ lru-cache: 6.0.0+ dev: true+/send/0.17.1:resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==}engines: {node: '>= 0.8.0'}@@ -17690,18 +17476,6 @@ packages:- bufferutil- utf-8-validate- /sucrase/3.20.3:- resolution: {integrity: sha512-azqwq0/Bs6RzLAdb4dXxsCgMtAaD2hzmUr4UhSfsxO46JFPAwMnnb441B/qsudZiS6Ylea3JXZe3Q497lsgXzQ==}- engines: {node: '>=8'}- hasBin: true- dependencies:- commander: 4.1.1- glob: 7.1.6- lines-and-columns: 1.2.4- mz: 2.7.0- pirates: 4.0.5- ts-interface-checker: 0.1.13-/sucrase/3.21.0:resolution: {integrity: sha512-FjAhMJjDcifARI7bZej0Bi1yekjWQHoEvWIXhLPwDhC6O4iZ5PtGb86WV56riW87hzpgB13wwBKO9vKAiWu5VQ==}engines: {node: '>=8'}@@ -17713,7 +17487,6 @@ packages:mz: 2.7.0pirates: 4.0.5ts-interface-checker: 0.1.13- dev: true/supports-color/2.0.0:resolution: {integrity: sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=}@@ -18419,11 +18192,11 @@ packages:typescript:optional: truedependencies:- bundle-require: [email protected]+ bundle-require: [email protected]cac: 6.7.12chokidar: 3.5.3debug: 4.3.4- esbuild: 0.14.30+ esbuild: 0.14.34execa: 5.1.1globby: 11.1.0joycon: 3.1.1@@ -18431,7 +18204,7 @@ packages:resolve-from: 5.0.0rollup: 2.70.1source-map: 0.7.3- sucrase: 3.20.3+ sucrase: 3.21.0tree-kill: 1.2.2typescript: 4.6.3transitivePeerDependencies:@@ -18604,18 +18377,18 @@ packages:engines: {node: '>= 0.4.12'}dev: true- /unimport/0.1.4:- resolution: {integrity: sha512-vrqIM/YzAQZR9UDod94pAQmYRFA/3m88KiL/U91pN9m6BVFG0TplxLe6siGn1V3XwQb14UJHqj7hiATjwUwI9A==}+ /unimport/0.1.5:+ resolution: {integrity: sha512-Wv+CFdDJXkyiHD6yXeHdYMmD5LisII43o6q2ttw1s5mAhwfcBtZPRbZcqPvSkgHX4ZzMPTUIstMhVfC+tHrh6A==}dependencies:'@rollup/pluginutils': 4.2.0escape-string-regexp: 5.0.0globby: 13.1.1local-pkg: 0.4.1magic-string: 0.26.1- mlly: 0.4.3+ mlly: 0.5.1pathe: 0.2.0scule: 0.2.1- unplugin: 0.3.3+ unplugin: 0.6.1transitivePeerDependencies:- esbuild- rollup@@ -18726,26 +18499,6 @@ packages:webpack-virtual-modules: 0.4.3dev: false- /unplugin/0.3.3:- resolution: {integrity: sha512-WjZWpUqqcYPQ/efR00Zm2m1+J1LitwoZ4uhHV4VdZ+IpW0Nh/qnDYtVf+nLhozXdGxslMPecOshVR7NiWFl4gA==}- peerDependencies:- esbuild: '>=0.13'- rollup: ^2.50.0- vite: ^2.3.0- webpack: 4 || 5- peerDependenciesMeta:- esbuild:- optional: true- rollup:- optional: true- vite:- optional: true- webpack:- optional: true- dependencies:- webpack-virtual-modules: 0.4.3- dev: true-/unplugin/0.6.1:resolution: {integrity: sha512-cQqRCgQ2v/Q4fPIWNVZ6sNIDdl5v8JXOnlsUOsGzT4fblTONoPWaytiYSpu5qJ9lvSDZYAQN6BRVo3XQoZMfUQ==}peerDependencies:@@ -19585,7 +19338,7 @@ packages:/write-file-atomic/2.4.3:resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==}dependencies:- graceful-fs: 4.2.9+ graceful-fs: 4.2.10imurmurhash: 0.1.4signal-exit: 3.0.7dev: false