refactor: implement updated equality heuristics for hopprestrequest struct

This commit is contained in:
Andrew Bastin
2022-04-14 20:23:29 +05:30
parent efbd165c5c
commit 7047289d95
11 changed files with 132 additions and 296 deletions

View File

@@ -162,8 +162,8 @@ import {
HoppRESTRequest, HoppRESTRequest,
safelyExtractRESTRequest, safelyExtractRESTRequest,
translateToNewRequest, translateToNewRequest,
isEqualHoppRESTRequest,
} from "@hoppscotch/data" } from "@hoppscotch/data"
import isEqual from "lodash/isEqual"
import * as E from "fp-ts/Either" import * as E from "fp-ts/Either"
import { import {
useI18n, useI18n,
@@ -349,9 +349,9 @@ const selectRequest = () => {
const currentFullReq = getRESTRequest() const currentFullReq = getRESTRequest()
// Check if whether user clicked the same request or not // 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 // Check if there is any changes done on the current request
if (isEqual(currentReqWithNoChange, currentFullReq)) { if (isEqualHoppRESTRequest(currentReqWithNoChange, currentFullReq)) {
setRestReq(props.request) setRestReq(props.request)
if (props.saveRequest) if (props.saveRequest)
emit("select", { emit("select", {

View File

@@ -157,11 +157,11 @@
import { ref, computed } from "@nuxtjs/composition-api" import { ref, computed } from "@nuxtjs/composition-api"
import { import {
HoppRESTRequest, HoppRESTRequest,
isEqualHoppRESTRequest,
safelyExtractRESTRequest, safelyExtractRESTRequest,
translateToNewRequest, translateToNewRequest,
} from "@hoppscotch/data" } from "@hoppscotch/data"
import * as E from "fp-ts/Either" import * as E from "fp-ts/Either"
import isEqual from "lodash/isEqual"
import { import {
useI18n, useI18n,
useToast, useToast,
@@ -277,8 +277,7 @@ const isActive = computed(
() => () =>
active.value && active.value &&
active.value.originLocation === "team-collection" && active.value.originLocation === "team-collection" &&
active.value.requestID === props.requestIndex && active.value.requestID === props.requestIndex
isEqual(active.value.req, props.request)
) )
const dragStart = ({ dataTransfer }: DragEvent) => { const dragStart = ({ dataTransfer }: DragEvent) => {
@@ -333,9 +332,9 @@ const selectRequest = () => {
const currentFullReq = getRESTRequest() const currentFullReq = getRESTRequest()
// Check if whether user clicked the same request or not // 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 // Check if there is any changes done on the current request
if (isEqual(currentReqWithNoChange, currentFullReq)) { if (isEqualHoppRESTRequest(currentReqWithNoChange, currentFullReq)) {
setRestReq(props.request) setRestReq(props.request)
if (props.saveRequest) if (props.saveRequest)
emit("select", { emit("select", {

View File

@@ -113,13 +113,16 @@
<script setup lang="ts"> <script setup lang="ts">
import { computed, ref, Ref } from "@nuxtjs/composition-api" 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 groupBy from "lodash/groupBy"
import { useTimeAgo } from "@vueuse/core" import { useTimeAgo } from "@vueuse/core"
import { pipe } from "fp-ts/function" import { pipe } from "fp-ts/function"
import * as A from "fp-ts/Array" import * as A from "fp-ts/Array"
import * as E from "fp-ts/Either" import * as E from "fp-ts/Either"
import isEqual from "lodash/isEqual"
import { import {
useI18n, useI18n,
useReadonlyStream, useReadonlyStream,
@@ -231,7 +234,9 @@ const setRestReq = (request: HoppRESTRequest | null | undefined) => {
setRESTRequest(safelyExtractRESTRequest(request, getDefaultRESTRequest())) 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() const currentFullReq = getRESTRequest()
// Initial state trigers a popup // Initial state trigers a popup
if (!clickedHistory.value) { if (!clickedHistory.value) {
@@ -240,7 +245,12 @@ const useHistory = (entry: HistoryEntry) => {
return return
} }
// Checks if there are any change done in current request and the history request // 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 = entry clickedHistory.value = entry
confirmChange.value = true confirmChange.value = true
} else { } else {
@@ -342,7 +352,7 @@ const deleteHistory = (entry: HistoryEntry) => {
} }
const toggleStar = (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 type
if (props.page === "rest") if (props.page === "rest")
toggleRESTHistoryEntryStar(entry as RESTHistoryEntry) toggleRESTHistoryEntryStar(entry as RESTHistoryEntry)
else toggleGraphqlHistoryEntryStar(entry as GQLHistoryEntry) else toggleGraphqlHistoryEntryStar(entry as GQLHistoryEntry)

View File

@@ -58,7 +58,7 @@
"@codemirror/tooltip": "^0.19.16", "@codemirror/tooltip": "^0.19.16",
"@codemirror/view": "^0.19.48", "@codemirror/view": "^0.19.48",
"@hoppscotch/codemirror-lang-graphql": "workspace:^0.1.0", "@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", "@hoppscotch/js-sandbox": "workspace:^2.0.0",
"@nuxtjs/axios": "^5.13.6", "@nuxtjs/axios": "^5.13.6",
"@nuxtjs/composition-api": "^0.32.0", "@nuxtjs/composition-api": "^0.32.0",

View File

@@ -25,11 +25,11 @@ import {
watch, watch,
} from "@nuxtjs/composition-api" } from "@nuxtjs/composition-api"
import { Subscription } from "rxjs" import { Subscription } from "rxjs"
import isEqual from "lodash/isEqual"
import { import {
HoppRESTRequest, HoppRESTRequest,
HoppRESTAuthOAuth2, HoppRESTAuthOAuth2,
safelyExtractRESTRequest, safelyExtractRESTRequest,
isEqualHoppRESTRequest,
} from "@hoppscotch/data" } from "@hoppscotch/data"
import { import {
getRESTRequest, getRESTRequest,
@@ -102,8 +102,7 @@ function setupRequestSync(
) { ) {
const request = await loadRequestFromSync() const request = await loadRequestFromSync()
if (request) { if (request) {
// setRESTRequest(request) if (!isEqualHoppRESTRequest(request, getRESTRequest())) {
if (!isEqual(request, getRESTRequest())) {
requestForSync.value = request requestForSync.value = request
confirmSync.value = true confirmSync.value = true
} }

View File

@@ -35,7 +35,7 @@
"license": "MIT", "license": "MIT",
"private": false, "private": false,
"devDependencies": { "devDependencies": {
"@hoppscotch/data": "workspace:^0.4.1", "@hoppscotch/data": "workspace:^0.4.2",
"@hoppscotch/js-sandbox": "workspace:^2.0.0", "@hoppscotch/js-sandbox": "workspace:^2.0.0",
"@swc/core": "^1.2.163", "@swc/core": "^1.2.163",
"@types/axios": "^0.14.0", "@types/axios": "^0.14.0",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@hoppscotch/data", "name": "@hoppscotch/data",
"version": "0.4.1", "version": "0.4.2",
"description": "Data Types, Validations and Migrations for Hoppscotch Public Data Structures", "description": "Data Types, Validations and Migrations for Hoppscotch Public Data Structures",
"main": "dist/index.js", "main": "dist/index.js",
"module": "true", "module": "true",

View File

@@ -1,6 +1,9 @@
import cloneDeep from "lodash/cloneDeep" 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 { ValidContentTypes } from "./content-types"
import { HoppRESTAuth } from "./HoppRESTAuth" import { HoppRESTAuth } from "./HoppRESTAuth"
import { lodashIsEqualEq, mapThenEq, undefinedEq } from "../utils/eq"
export * from "./content-types" export * from "./content-types"
export * from "./HoppRESTAuth" export * from "./HoppRESTAuth"
@@ -57,6 +60,28 @@ export interface HoppRESTRequest {
body: HoppRESTReqBody 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. * 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 value * If we fail to detect certain bits, we just resolve it to the default value

View File

@@ -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)
}
}

View File

@@ -40,7 +40,7 @@
"author": "Hoppscotch (support@hoppscotch.io)", "author": "Hoppscotch (support@hoppscotch.io)",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@hoppscotch/data": "workspace:^0.4.0", "@hoppscotch/data": "workspace:^0.4.2",
"fp-ts": "^2.11.9", "fp-ts": "^2.11.9",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"quickjs-emscripten": "^0.15.0", "quickjs-emscripten": "^0.15.0",

305
pnpm-lock.yaml generated
View File

@@ -76,7 +76,7 @@ importers:
'@graphql-codegen/urql-introspection': ^2.1.1 '@graphql-codegen/urql-introspection': ^2.1.1
'@graphql-typed-document-node/core': ^3.1.1 '@graphql-typed-document-node/core': ^3.1.1
'@hoppscotch/codemirror-lang-graphql': workspace:^0.1.0 '@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 '@hoppscotch/js-sandbox': workspace:^2.0.0
'@nuxt/types': ^2.15.8 '@nuxt/types': ^2.15.8
'@nuxt/typescript-build': ^2.1.0 '@nuxt/typescript-build': ^2.1.0
@@ -345,7 +345,7 @@ importers:
packages/hoppscotch-cli: packages/hoppscotch-cli:
specifiers: specifiers:
'@hoppscotch/data': workspace:^0.4.1 '@hoppscotch/data': workspace:^0.4.2
'@hoppscotch/js-sandbox': workspace:^2.0.0 '@hoppscotch/js-sandbox': workspace:^2.0.0
'@swc/core': ^1.2.163 '@swc/core': ^1.2.163
'@types/axios': ^0.14.0 '@types/axios': ^0.14.0
@@ -399,7 +399,7 @@ importers:
packages/hoppscotch-js-sandbox: packages/hoppscotch-js-sandbox:
specifiers: specifiers:
'@digitak/esrun': ^3.1.2 '@digitak/esrun': ^3.1.2
'@hoppscotch/data': workspace:^0.4.0 '@hoppscotch/data': workspace:^0.4.2
'@relmify/jest-fp-ts': ^2.0.1 '@relmify/jest-fp-ts': ^2.0.1
'@types/jest': ^27.4.1 '@types/jest': ^27.4.1
'@types/lodash': ^4.14.181 '@types/lodash': ^4.14.181
@@ -3909,11 +3909,11 @@ packages:
ufo: 0.7.11 ufo: 0.7.11
dev: false dev: false
/@nuxt/kit-edge/3.0.0-27494471.1091d45: /@nuxt/kit-edge/3.0.0-27498764.32c798c:
resolution: {integrity: sha512-aDN043C1VMsZfKq3FffDW/QofQY/aCDJfYgtnJOoGwkqNbe+KpFd/R9XFrqSh6rk7V41x9EVBMsoaHH6/H+Ctw==} resolution: {integrity: sha512-2Ikg0/XCpJR6AlX3y+rFJhLoVmmVPSrHKtrH0SFf/U3wrC36PNKB21804fhPFAXqTwfBgTtOiRa7fHYgYr2Pjw==}
engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0} engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0}
dependencies: dependencies:
'@nuxt/schema': /@nuxt/schema-edge/3.0.0-27494471.1091d45 '@nuxt/schema': /@nuxt/schema-edge/3.0.0-27498764.32c798c
c12: 0.2.5 c12: 0.2.5
consola: 2.15.3 consola: 2.15.3
defu: 6.0.0 defu: 6.0.0
@@ -3927,9 +3927,9 @@ packages:
pathe: 0.2.0 pathe: 0.2.0
pkg-types: 0.3.2 pkg-types: 0.3.2
scule: 0.2.1 scule: 0.2.1
semver: 7.3.6 semver: 7.3.7
unctx: 1.1.4 unctx: 1.1.4
unimport: 0.1.4 unimport: 0.1.5
untyped: 0.4.4 untyped: 0.4.4
transitivePeerDependencies: transitivePeerDependencies:
- esbuild - esbuild
@@ -3961,8 +3961,8 @@ packages:
- encoding - encoding
dev: false dev: false
/@nuxt/schema-edge/3.0.0-27494471.1091d45: /@nuxt/schema-edge/3.0.0-27498764.32c798c:
resolution: {integrity: sha512-2tokTe3YQYKxyiTGC7cgeKRSJif+xvx5pXl5cb7sx0Nwim2hJyTi6gE9U5YbCZ85Rqu5pnqVZ5c6bLNOtIdDRw==} resolution: {integrity: sha512-oJ6pARR1IIhVLIAZK5VIB5IMXF2IEbbDtlWRwHNYJc3nyPbFY/yIfgBYo5E6+XNk45VLt+Yme66H4oGLEl706g==}
engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0} engines: {node: ^14.16.0 || ^16.11.0 || ^17.0.0}
dependencies: dependencies:
c12: 0.2.5 c12: 0.2.5
@@ -3974,7 +3974,7 @@ packages:
scule: 0.2.1 scule: 0.2.1
std-env: 3.0.1 std-env: 3.0.1
ufo: 0.8.3 ufo: 0.8.3
unimport: 0.1.4 unimport: 0.1.5
transitivePeerDependencies: transitivePeerDependencies:
- esbuild - esbuild
- rollup - rollup
@@ -7170,15 +7170,6 @@ packages:
resolution: {integrity: sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=} resolution: {integrity: sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=}
dev: false dev: false
/bundle-require/3.0.4_esbuild@0.14.30:
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/3.0.4_esbuild@0.14.34: /bundle-require/3.0.4_esbuild@0.14.34:
resolution: {integrity: sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A==} resolution: {integrity: sha512-VXG6epB1yrLAvWVQpl92qF347/UXmncQj7J3U8kZEbdVZ1ZkQyr4hYeL/9RvcE8vVVdp53dY78Fd/3pqfRqI1A==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
@@ -7187,7 +7178,6 @@ packages:
dependencies: dependencies:
esbuild: 0.14.34 esbuild: 0.14.34
load-tsconfig: 0.2.3 load-tsconfig: 0.2.3
dev: true
/bytes/3.0.0: /bytes/3.0.0:
resolution: {integrity: sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=} resolution: {integrity: sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=}
@@ -9174,29 +9164,12 @@ packages:
is-date-object: 1.0.5 is-date-object: 1.0.5
is-symbol: 1.0.4 is-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: /esbuild-android-64/0.14.34:
resolution: {integrity: sha512-XfxcfJqmMYsT/LXqrptzFxmaR3GWzXHDLdFNIhm6S00zPaQF1TBBWm+9t0RZ6LRR7iwH57DPjaOeW20vMqI4Yw==} resolution: {integrity: sha512-XfxcfJqmMYsT/LXqrptzFxmaR3GWzXHDLdFNIhm6S00zPaQF1TBBWm+9t0RZ6LRR7iwH57DPjaOeW20vMqI4Yw==}
engines: {node: '>=12'} engines: {node: '>=12'}
cpu: [x64] cpu: [x64]
os: [android] os: [android]
requiresBuild: true requiresBuild: true
dev: true
optional: true
/esbuild-android-arm64/0.14.30:
resolution: {integrity: sha512-BdgGfxeA5hBQNErLr7BWJUA8xjflEfyaARICy8e0OJYNSAwDbEzOf8LyiKWSrDcgV129mWhi3VpbNQvOIDEHcg==}
engines: {node: '>=12'}
cpu: [arm64]
os: [android]
requiresBuild: true
optional: true optional: true
/esbuild-android-arm64/0.14.34: /esbuild-android-arm64/0.14.34:
@@ -9205,15 +9178,6 @@ packages:
cpu: [arm64] cpu: [arm64]
os: [android] os: [android]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-darwin-64/0.14.34: /esbuild-darwin-64/0.14.34:
@@ -9222,15 +9186,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-darwin-arm64/0.14.34: /esbuild-darwin-arm64/0.14.34:
@@ -9239,15 +9194,6 @@ packages:
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-freebsd-64/0.14.34: /esbuild-freebsd-64/0.14.34:
@@ -9256,15 +9202,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [freebsd] os: [freebsd]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-freebsd-arm64/0.14.34: /esbuild-freebsd-arm64/0.14.34:
@@ -9273,15 +9210,6 @@ packages:
cpu: [arm64] cpu: [arm64]
os: [freebsd] os: [freebsd]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-32/0.14.34: /esbuild-linux-32/0.14.34:
@@ -9290,15 +9218,6 @@ packages:
cpu: [ia32] cpu: [ia32]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-64/0.14.34: /esbuild-linux-64/0.14.34:
@@ -9307,15 +9226,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-arm/0.14.34: /esbuild-linux-arm/0.14.34:
@@ -9324,15 +9234,6 @@ packages:
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-arm64/0.14.34: /esbuild-linux-arm64/0.14.34:
@@ -9341,15 +9242,6 @@ packages:
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-mips64le/0.14.34: /esbuild-linux-mips64le/0.14.34:
@@ -9358,15 +9250,6 @@ packages:
cpu: [mips64el] cpu: [mips64el]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-ppc64le/0.14.34: /esbuild-linux-ppc64le/0.14.34:
@@ -9375,15 +9258,6 @@ packages:
cpu: [ppc64] cpu: [ppc64]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-riscv64/0.14.34: /esbuild-linux-riscv64/0.14.34:
@@ -9392,15 +9266,6 @@ packages:
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-linux-s390x/0.14.34: /esbuild-linux-s390x/0.14.34:
@@ -9409,15 +9274,6 @@ packages:
cpu: [s390x] cpu: [s390x]
os: [linux] os: [linux]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-netbsd-64/0.14.34: /esbuild-netbsd-64/0.14.34:
@@ -9426,15 +9282,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [netbsd] os: [netbsd]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-openbsd-64/0.14.34: /esbuild-openbsd-64/0.14.34:
@@ -9443,15 +9290,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [openbsd] os: [openbsd]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-sunos-64/0.14.34: /esbuild-sunos-64/0.14.34:
@@ -9460,15 +9298,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [sunos] os: [sunos]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-windows-32/0.14.34: /esbuild-windows-32/0.14.34:
@@ -9477,15 +9306,6 @@ packages:
cpu: [ia32] cpu: [ia32]
os: [win32] os: [win32]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-windows-64/0.14.34: /esbuild-windows-64/0.14.34:
@@ -9494,15 +9314,6 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
requiresBuild: true 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: true
optional: true optional: true
/esbuild-windows-arm64/0.14.34: /esbuild-windows-arm64/0.14.34:
@@ -9511,7 +9322,6 @@ packages:
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
requiresBuild: true requiresBuild: true
dev: true
optional: true optional: true
/esbuild/0.12.29: /esbuild/0.12.29:
@@ -9520,33 +9330,6 @@ packages:
requiresBuild: true requiresBuild: true
dev: true dev: 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: /esbuild/0.14.34:
resolution: {integrity: sha512-QIWdPT/gFF6hCaf4m7kP0cJ+JIuFkdHibI7vVFvu3eJS1HpVmYHWDulyN5WXwbRA0SX/7ZDaJ/1DH8SdY9xOJg==} resolution: {integrity: sha512-QIWdPT/gFF6hCaf4m7kP0cJ+JIuFkdHibI7vVFvu3eJS1HpVmYHWDulyN5WXwbRA0SX/7ZDaJ/1DH8SdY9xOJg==}
engines: {node: '>=12'} engines: {node: '>=12'}
@@ -9573,7 +9356,6 @@ packages:
esbuild-windows-32: 0.14.34 esbuild-windows-32: 0.14.34
esbuild-windows-64: 0.14.34 esbuild-windows-64: 0.14.34
esbuild-windows-arm64: 0.14.34 esbuild-windows-arm64: 0.14.34
dev: true
/escalade/3.1.1: /escalade/3.1.1:
resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==}
@@ -12898,7 +12680,7 @@ packages:
/jsonfile/4.0.0: /jsonfile/4.0.0:
resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=} resolution: {integrity: sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=}
optionalDependencies: optionalDependencies:
graceful-fs: 4.2.8 graceful-fs: 4.2.10
dev: false dev: false
/jsonfile/6.1.0: /jsonfile/6.1.0:
@@ -13940,10 +13722,6 @@ packages:
resolution: {integrity: sha512-zMq5n3cOf4fOzA4WoeulxagbAgMChdev3MgP6K51k7M0u2whTXxupfIY4VVzws4vxkiWhwH1rVQcsw7zDGfRhA==} resolution: {integrity: sha512-zMq5n3cOf4fOzA4WoeulxagbAgMChdev3MgP6K51k7M0u2whTXxupfIY4VVzws4vxkiWhwH1rVQcsw7zDGfRhA==}
dev: true dev: true
/mlly/0.4.3:
resolution: {integrity: sha512-xezyv7hnfFPuiDS3AiJuWs0OxlvooS++3L2lURvmh/1n7UG4O2Ehz9UkwWgg3wyLEPKGVfJLlr2DjjTCl9UJTg==}
dev: true
/mlly/0.5.1: /mlly/0.5.1:
resolution: {integrity: sha512-0axKqxbYyQvaAfi6BNqDluCJqg6RkjdsdFxSDoiP6l5HplSTr3ie5Vkxvw9U9ogdj65x56amTnAn+xSoP727Rg==} resolution: {integrity: sha512-0axKqxbYyQvaAfi6BNqDluCJqg6RkjdsdFxSDoiP6l5HplSTr3ie5Vkxvw9U9ogdj65x56amTnAn+xSoP727Rg==}
dependencies: dependencies:
@@ -14317,7 +14095,7 @@ packages:
/nuxt-windicss/2.2.10: /nuxt-windicss/2.2.10:
resolution: {integrity: sha512-DCn0LWgeQ9PWSjSoVH6LB82P/sF8QMVNpFmjJAfe+V1EcNJIY/5RCmqRp3zItNibVsRNiyYTEWQa/SoI3ts6Hw==} resolution: {integrity: sha512-DCn0LWgeQ9PWSjSoVH6LB82P/sF8QMVNpFmjJAfe+V1EcNJIY/5RCmqRp3zItNibVsRNiyYTEWQa/SoI3ts6Hw==}
dependencies: 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.3 '@windicss/plugin-utils': 1.8.3
consola: 2.15.3 consola: 2.15.3
defu: 6.0.0 defu: 6.0.0
@@ -16735,6 +16513,14 @@ packages:
dependencies: dependencies:
lru-cache: 7.8.1 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: /send/0.17.1:
resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==} resolution: {integrity: sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==}
engines: {node: '>= 0.8.0'} engines: {node: '>= 0.8.0'}
@@ -17690,18 +17476,6 @@ packages:
- bufferutil - bufferutil
- utf-8-validate - 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: /sucrase/3.21.0:
resolution: {integrity: sha512-FjAhMJjDcifARI7bZej0Bi1yekjWQHoEvWIXhLPwDhC6O4iZ5PtGb86WV56riW87hzpgB13wwBKO9vKAiWu5VQ==} resolution: {integrity: sha512-FjAhMJjDcifARI7bZej0Bi1yekjWQHoEvWIXhLPwDhC6O4iZ5PtGb86WV56riW87hzpgB13wwBKO9vKAiWu5VQ==}
engines: {node: '>=8'} engines: {node: '>=8'}
@@ -17713,7 +17487,6 @@ packages:
mz: 2.7.0 mz: 2.7.0
pirates: 4.0.5 pirates: 4.0.5
ts-interface-checker: 0.1.13 ts-interface-checker: 0.1.13
dev: true
/supports-color/2.0.0: /supports-color/2.0.0:
resolution: {integrity: sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=} resolution: {integrity: sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=}
@@ -18419,11 +18192,11 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
bundle-require: 3.0.4_esbuild@0.14.30 bundle-require: 3.0.4_esbuild@0.14.34
cac: 6.7.12 cac: 6.7.12
chokidar: 3.5.3 chokidar: 3.5.3
debug: 4.3.4 debug: 4.3.4
esbuild: 0.14.30 esbuild: 0.14.34
execa: 5.1.1 execa: 5.1.1
globby: 11.1.0 globby: 11.1.0
joycon: 3.1.1 joycon: 3.1.1
@@ -18431,7 +18204,7 @@ packages:
resolve-from: 5.0.0 resolve-from: 5.0.0
rollup: 2.70.1 rollup: 2.70.1
source-map: 0.7.3 source-map: 0.7.3
sucrase: 3.20.3 sucrase: 3.21.0
tree-kill: 1.2.2 tree-kill: 1.2.2
typescript: 4.6.3 typescript: 4.6.3
transitivePeerDependencies: transitivePeerDependencies:
@@ -18604,18 +18377,18 @@ packages:
engines: {node: '>= 0.4.12'} engines: {node: '>= 0.4.12'}
dev: true dev: true
/unimport/0.1.4: /unimport/0.1.5:
resolution: {integrity: sha512-vrqIM/YzAQZR9UDod94pAQmYRFA/3m88KiL/U91pN9m6BVFG0TplxLe6siGn1V3XwQb14UJHqj7hiATjwUwI9A==} resolution: {integrity: sha512-Wv+CFdDJXkyiHD6yXeHdYMmD5LisII43o6q2ttw1s5mAhwfcBtZPRbZcqPvSkgHX4ZzMPTUIstMhVfC+tHrh6A==}
dependencies: dependencies:
'@rollup/pluginutils': 4.2.0 '@rollup/pluginutils': 4.2.0
escape-string-regexp: 5.0.0 escape-string-regexp: 5.0.0
globby: 13.1.1 globby: 13.1.1
local-pkg: 0.4.1 local-pkg: 0.4.1
magic-string: 0.26.1 magic-string: 0.26.1
mlly: 0.4.3 mlly: 0.5.1
pathe: 0.2.0 pathe: 0.2.0
scule: 0.2.1 scule: 0.2.1
unplugin: 0.3.3 unplugin: 0.6.1
transitivePeerDependencies: transitivePeerDependencies:
- esbuild - esbuild
- rollup - rollup
@@ -18726,26 +18499,6 @@ packages:
webpack-virtual-modules: 0.4.3 webpack-virtual-modules: 0.4.3
dev: false dev: 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: /unplugin/0.6.1:
resolution: {integrity: sha512-cQqRCgQ2v/Q4fPIWNVZ6sNIDdl5v8JXOnlsUOsGzT4fblTONoPWaytiYSpu5qJ9lvSDZYAQN6BRVo3XQoZMfUQ==} resolution: {integrity: sha512-cQqRCgQ2v/Q4fPIWNVZ6sNIDdl5v8JXOnlsUOsGzT4fblTONoPWaytiYSpu5qJ9lvSDZYAQN6BRVo3XQoZMfUQ==}
peerDependencies: peerDependencies:
@@ -19585,7 +19338,7 @@ packages:
/write-file-atomic/2.4.3: /write-file-atomic/2.4.3:
resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==} resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==}
dependencies: dependencies:
graceful-fs: 4.2.9 graceful-fs: 4.2.10
imurmurhash: 0.1.4 imurmurhash: 0.1.4
signal-exit: 3.0.7 signal-exit: 3.0.7
dev: false dev: false