From 618e4620312e1b528cb19629f0862cb6a9a9b7bc Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 8 Jan 2025 10:09:43 +0100 Subject: [PATCH] Revert "chore: Update planx-core to ESM module (#601)" This reverts commit f8cdf5b9ce77a64f297ddf76dfa16f973d6ae253. --- jest.config.ts | 16 + package.json | 25 +- pnpm-lock.yaml | 1637 +++-------------- src/export/bops/index.ts | 18 +- src/export/bops/mocks/constraints.ts | 2 +- src/export/bops/mocks/flow.ts | 2 +- src/export/bops/mocks/payload.ts | 2 +- src/export/bops/mocks/sections.ts | 2 +- src/export/bops/mocks/sessionData.ts | 2 +- src/export/bops/tests/addressInput.test.ts | 2 +- src/export/bops/tests/applicationType.test.ts | 4 +- src/export/bops/tests/constraints.test.ts | 10 +- src/export/bops/tests/contactInput.test.ts | 2 +- src/export/bops/tests/files.test.ts | 4 +- src/export/bops/tests/flags.test.ts | 2 +- src/export/bops/tests/payload.test.ts | 10 +- src/export/bops/tests/policyRefs.test.ts | 2 +- src/export/bops/tests/proposalDetails.test.ts | 9 +- src/export/bops/tests/userRole.test.ts | 4 +- src/export/bops/tests/works.test.ts | 2 +- src/export/bops/utils/index.ts | 2 +- src/export/bops/utils/mapAndLabel.ts | 6 +- src/export/bops/utils/schema.ts | 4 +- src/export/csv/index.ts | 6 +- src/export/digitalPlanning/index.ts | 10 +- .../mocks/flows/planningPermission.ts | 2 +- .../mocks/flows/priorApproval.ts | 2 +- src/export/digitalPlanning/model.test.ts | 22 +- src/export/digitalPlanning/model.ts | 22 +- src/export/index.ts | 16 +- src/export/oneApp/OneApp.test.ts | 14 +- src/export/oneApp/index.test.ts | 33 +- src/export/oneApp/index.ts | 14 +- src/export/oneApp/mocks/passport.ts | 2 +- src/export/oneApp/mocks/session.ts | 4 +- src/export/oneApp/model.ts | 10 +- src/export/oneApp/schema.ts | 2 +- src/index.ts | 10 +- src/models/index.test.ts | 2 +- src/models/index.ts | 4 +- src/models/passport/index.ts | 2 +- src/models/passport/mocks/index.ts | 2 +- src/models/passport/passport.test.ts | 6 +- src/models/passport/passport.ts | 4 +- src/models/result.ts | 4 +- src/models/session/index.ts | 2 +- src/models/session/logic.test.ts | 17 +- src/models/session/logic.ts | 4 +- .../session/mocks/complex-flow-breadcrumbs.ts | 4 +- .../mocks/flow-with-internal-portals.ts | 2 +- .../session/mocks/large-real-life-flow.ts | 2 +- .../session/mocks/section-flow-breadcrumbs.ts | 4 +- src/models/session/mocks/section-scenarios.ts | 4 +- .../session/mocks/simple-flow-breadcrumbs.ts | 4 +- src/requests/application.ts | 2 +- src/requests/flow.ts | 4 +- src/requests/index.test.ts | 30 +- src/requests/index.ts | 18 +- src/requests/payment-request.test.ts | 4 +- src/requests/payment-request.ts | 21 +- src/requests/session.ts | 2 +- src/requests/team.ts | 6 +- src/requests/user.ts | 2 +- src/templates/docx/LDCETemplate.ts | 9 +- src/templates/docx/LDCPTemplate.ts | 9 +- src/templates/docx/builder.test.ts | 12 +- src/templates/generateExamples.ts | 10 +- src/templates/helpers.test.ts | 2 +- src/templates/helpers.ts | 2 +- src/templates/html/Main.tsx | 14 +- .../html/application/ApplicationHTML.tsx | 24 +- .../html/application/helpers.test.ts | 2 +- src/templates/html/application/helpers.ts | 6 +- src/templates/html/map/Map.tsx | 2 +- src/templates/html/map/MapHTML.tsx | 4 +- src/templates/index.ts | 12 +- src/templates/mocks/exampleLDCE.ts | 2 +- src/templates/mocks/exampleLDCP.ts | 2 +- src/templates/mocks/index.ts | 10 +- src/types/bops.ts | 2 +- src/types/export.ts | 2 +- src/types/flow.ts | 4 +- src/types/index.ts | 38 +- src/types/payment-request.ts | 4 +- src/types/result.ts | 2 +- src/types/sections.ts | 2 +- src/types/session.ts | 8 +- src/types/user.ts | 2 +- src/utils/digitalPlanningSchema.test.ts | 2 +- src/utils/digitalPlanningSchema.ts | 2 +- src/utils/encryption.test.ts | 2 +- src/utils/feeBreakdown.test.ts | 4 +- src/utils/feeBreakdown.ts | 2 +- src/utils/govPayMetadata.test.ts | 4 +- src/utils/govPayMetadata.ts | 4 +- src/utils/index.ts | 10 +- src/utils/projectTypes.test.ts | 2 +- src/utils/projectTypes.ts | 6 +- tsconfig.build.json | 15 +- tsconfig.check.json | 16 +- tsconfig.json | 18 +- tsconfig.types.json | 17 +- vitest.config.ts | 19 - 103 files changed, 596 insertions(+), 1807 deletions(-) create mode 100644 jest.config.ts delete mode 100644 vitest.config.ts diff --git a/jest.config.ts b/jest.config.ts new file mode 100644 index 00000000..e6f84d61 --- /dev/null +++ b/jest.config.ts @@ -0,0 +1,16 @@ +export default { + testEnvironment: "node", + preset: "ts-jest", + transform: { + "^.+\\.js$": [ + "esbuild-jest", + { + sourcemap: true, + }, + ], + }, + testPathIgnorePatterns: ["dist/*"], + collectCoverage: true, + coverageReporters: ["html", "lcov", "text-summary"], + coverageDirectory: "./coverage", +}; diff --git a/package.json b/package.json index 913205e3..97246c91 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "dist", "types" ], - "type": "module", "module": "./dist/index.js", "main": "./dist/index.js", "lint-staged": { @@ -33,12 +32,12 @@ "types": "./dist/index.d.ts", "scripts": { "build": "rimraf ./types ./dist && tsc --project ./tsconfig.types.json && tsc --project ./tsconfig.build.json && pnpm copy-json-schema", - "examples": "rimraf ./examples && tsx ./src/templates/generateExamples.ts", + "examples": "rimraf ./examples && ts-node ./src/templates/generateExamples.ts", "lint": "eslint 'src/**/*.{js,ts}' && prettier -c src/**/*", "lint:fix": "eslint --fix 'src/**/*.{js,ts}' && prettier -w src/**/*", - "test": "vitest run", - "test:coverage": "vitest run --coverage && open coverage/lcov-report/index.html", - "test:watch": "vitest --ui --coverage", + "test": "jest", + "test:coverage": "jest; open ./coverage/lcov-report/index.html", + "test:watch": "jest --watch", "check": "tsc --project ./tsconfig.check.json && pnpm lint", "postinstall": "pnpm i rimraf && pnpm build", "prepare": "husky install", @@ -61,8 +60,8 @@ "graphql": "^16.10.0", "graphql-request": "^6.1.0", "json-schema-to-typescript": "^15.0.3", + "lodash": "^4.17.21", "marked": "^15.0.5", - "lodash-es": "^4.17.21", "prettier": "^3.4.2", "react": "^18.3.1", "react-dom": "^18.3.1", @@ -72,25 +71,25 @@ }, "devDependencies": { "@types/geojson": "^7946.0.15", - "@types/lodash-es": "^4.17.12", + "@types/jest": "^29.5.14", + "@types/lodash": "^4.17.14", "@types/node": "^22.10.5", "@types/react": "^18.3.12", "@types/react-dom": "^18.3.1", "@types/uuid": "^10.0.0", "@typescript-eslint/eslint-plugin": "^7.0.0", "@typescript-eslint/parser": "^6.21.0", - "@vitest/coverage-istanbul": "2.1.8", - "esbuild-jest": "^0.5.0", "esbuild": "^0.24.2", - "eslint-plugin-simple-import-sort": "^12.1.1", + "esbuild-jest": "^0.5.0", "eslint": "^8.57.1", + "eslint-plugin-simple-import-sort": "^12.1.1", "husky": "^9.1.7", "jest": "^29.7.0", "lint-staged": "^15.3.0", "rimraf": "^5.0.10", - "tsx": "^4.19.2", - "typescript": "^5.5.4", - "vitest": "^2.1.8" + "ts-jest": "^29.2.5", + "ts-node": "^10.9.2", + "typescript": "^5.5.4" }, "packageManager": "pnpm@8.6.6", "pnpm": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 71c3f928..42ad4530 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -53,7 +53,7 @@ dependencies: json-schema-to-typescript: specifier: ^15.0.3 version: 15.0.3 - lodash-es: + lodash: specifier: ^4.17.21 version: 4.17.21 marked: @@ -82,9 +82,12 @@ devDependencies: '@types/geojson': specifier: ^7946.0.15 version: 7946.0.15 - '@types/lodash-es': - specifier: ^4.17.12 - version: 4.17.12 + '@types/jest': + specifier: ^29.5.14 + version: 29.5.14 + '@types/lodash': + specifier: ^4.17.14 + version: 4.17.14 '@types/node': specifier: ^22.10.5 version: 22.10.5 @@ -103,9 +106,6 @@ devDependencies: '@typescript-eslint/parser': specifier: ^6.21.0 version: 6.21.0(eslint@8.57.1)(typescript@5.5.4) - '@vitest/coverage-istanbul': - specifier: 2.1.8 - version: 2.1.8(vitest@2.1.8) esbuild: specifier: ^0.24.2 version: 0.24.2 @@ -120,22 +120,22 @@ devDependencies: version: 9.1.7 jest: specifier: ^29.7.0 - version: 29.7.0(@types/node@22.10.5) + version: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) lint-staged: specifier: ^15.3.0 version: 15.3.0 rimraf: specifier: ^5.0.10 version: 5.0.10 - tsx: - specifier: ^4.19.2 - version: 4.19.2 + ts-jest: + specifier: ^29.2.5 + version: 29.2.5(@babel/core@7.22.8)(esbuild@0.24.2)(jest@29.7.0)(typescript@5.5.4) + ts-node: + specifier: ^10.9.2 + version: 10.9.2(@types/node@22.10.5)(typescript@5.5.4) typescript: specifier: ^5.5.4 version: 5.5.4 - vitest: - specifier: ^2.1.8 - version: 2.1.8(@types/node@22.10.5) packages: @@ -167,25 +167,11 @@ packages: '@babel/highlight': 7.22.20 chalk: 2.4.2 - /@babel/code-frame@7.26.2: - resolution: {integrity: sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-validator-identifier': 7.25.9 - js-tokens: 4.0.0 - picocolors: 1.0.0 - dev: true - /@babel/compat-data@7.22.6: resolution: {integrity: sha512-29tfsWTq2Ftu7MXmimyC0C5FDZv5DYxOZkh3XD3+QW4V/BYuv/LyEsjj3c0hqedEaDt6DBfDvexMKU8YevdqFg==} engines: {node: '>=6.9.0'} dev: true - /@babel/compat-data@7.26.3: - resolution: {integrity: sha512-nHIxvKPniQXpmQLb0vhY3VaFb3S0YrTAwpOWJZh1wn3oJPjJk9Asva204PsBdmAE8vpzfHudT8DB0scYvy9q0g==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/core@7.22.8: resolution: {integrity: sha512-75+KxFB4CZqYRXjx4NlR4J7yGvKumBuZTmV4NV6v09dVXXkuYVYLT68N6HCzLvfJ+fWCxQsntNzKwwIXL4bHnw==} engines: {node: '>=6.9.0'} @@ -209,29 +195,6 @@ packages: - supports-color dev: true - /@babel/core@7.26.0: - resolution: {integrity: sha512-i1SLeK+DzNnQ3LL/CswPCa/E5u4lh1k6IAEphON8F+cXt0t9euTshDru0q7/IqMa1PMPz5RnHuHscF8/ZJsStg==} - engines: {node: '>=6.9.0'} - dependencies: - '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.26.2 - '@babel/generator': 7.26.3 - '@babel/helper-compilation-targets': 7.25.9 - '@babel/helper-module-transforms': 7.26.0(@babel/core@7.26.0) - '@babel/helpers': 7.26.0 - '@babel/parser': 7.26.3 - '@babel/template': 7.25.9 - '@babel/traverse': 7.26.4 - '@babel/types': 7.26.3 - convert-source-map: 2.0.0 - debug: 4.4.0 - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/generator@7.22.7: resolution: {integrity: sha512-p+jPjMG+SI8yvIaxGgeW24u7q9+5+TGpZh8/CuB7RhBKd7RCy8FayNEFNNKrNK/eUcY/4ExQqLmyrvBXKsIcwQ==} engines: {node: '>=6.9.0'} @@ -252,17 +215,6 @@ packages: jsesc: 2.5.2 dev: true - /@babel/generator@7.26.3: - resolution: {integrity: sha512-6FF/urZvD0sTeO7k6/B15pMLC4CHUv1426lzr3N01aHJTl046uCAh9LXW/fzeXXjPNCJ6iABW5XaWOsIZB93aQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/parser': 7.26.3 - '@babel/types': 7.26.3 - '@jridgewell/gen-mapping': 0.3.8 - '@jridgewell/trace-mapping': 0.3.25 - jsesc: 3.1.0 - dev: true - /@babel/helper-compilation-targets@7.22.6(@babel/core@7.22.8): resolution: {integrity: sha512-534sYEqWD9VfUm3IPn2SLcH4Q3P86XL+QvqdC7ZsFrzyyPF3T4XGiVghF6PTYNdWg6pXuoqXxNQAhbYeEInTzA==} engines: {node: '>=6.9.0'} @@ -277,17 +229,6 @@ packages: lru-cache: 5.1.1 dev: true - /@babel/helper-compilation-targets@7.25.9: - resolution: {integrity: sha512-j9Db8Suy6yV/VHa4qzrj9yZfZxhLWQdVnRlXxmKLYlhWUVB1sB2G5sxuWYXk/whHD9iW76PmNzxZ4UCnTQTVEQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/compat-data': 7.26.3 - '@babel/helper-validator-option': 7.25.9 - browserslist: 4.24.3 - lru-cache: 5.1.1 - semver: 6.3.1 - dev: true - /@babel/helper-environment-visitor@7.22.20: resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} engines: {node: '>=6.9.0'} @@ -319,16 +260,6 @@ packages: dependencies: '@babel/types': 7.23.0 - /@babel/helper-module-imports@7.25.9: - resolution: {integrity: sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/traverse': 7.26.4 - '@babel/types': 7.26.3 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/helper-module-transforms@7.22.5: resolution: {integrity: sha512-+hGKDt/Ze8GFExiVHno/2dvG5IdstpzCq0y4Qc9OJ25D4q3pKfiIP/4Vp3/JvhDkLKsDK2api3q3fpIgiIF5bw==} engines: {node: '>=6.9.0'} @@ -345,20 +276,6 @@ packages: - supports-color dev: true - /@babel/helper-module-transforms@7.26.0(@babel/core@7.26.0): - resolution: {integrity: sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.26.0 - '@babel/helper-module-imports': 7.25.9 - '@babel/helper-validator-identifier': 7.25.9 - '@babel/traverse': 7.26.4 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/helper-plugin-utils@7.22.5: resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} engines: {node: '>=6.9.0'} @@ -382,30 +299,15 @@ packages: resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} engines: {node: '>=6.9.0'} - /@babel/helper-string-parser@7.25.9: - resolution: {integrity: sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/helper-validator-identifier@7.22.20: resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} engines: {node: '>=6.9.0'} - /@babel/helper-validator-identifier@7.25.9: - resolution: {integrity: sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/helper-validator-option@7.22.5: resolution: {integrity: sha512-R3oB6xlIVKUnxNUxbmgq7pKjxpru24zlimpE8WK47fACIlM0II/Hm1RS8IaOI7NgCr6LNS+jl5l75m20npAziw==} engines: {node: '>=6.9.0'} dev: true - /@babel/helper-validator-option@7.25.9: - resolution: {integrity: sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==} - engines: {node: '>=6.9.0'} - dev: true - /@babel/helpers@7.22.6: resolution: {integrity: sha512-YjDs6y/fVOYFV8hAf1rxd1QvR9wJe1pDBZ2AREKq/SDayfPzgk0PBnVuTCE5X1acEpMMNOVUqoe+OwiZGJ+OaA==} engines: {node: '>=6.9.0'} @@ -417,14 +319,6 @@ packages: - supports-color dev: true - /@babel/helpers@7.26.0: - resolution: {integrity: sha512-tbhNuIxNcVb21pInl3ZSjksLCvgdZy9KwJ8brv993QtIVKJBBkYXz4q4ZbAv31GdnC+R90np23L5FbEBlthAEw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/template': 7.25.9 - '@babel/types': 7.26.3 - dev: true - /@babel/highlight@7.22.20: resolution: {integrity: sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==} engines: {node: '>=6.9.0'} @@ -443,19 +337,10 @@ packages: /@babel/parser@7.23.0: resolution: {integrity: sha512-vvPKKdMemU85V9WE/l5wZEmImpCtLqbnTvqDS2U1fJ96KrxoW7KrXhNsNCblQlg8Ck4b85yxdTyelsMUgFUXiw==} engines: {node: '>=6.0.0'} - hasBin: true dependencies: '@babel/types': 7.23.0 dev: true - /@babel/parser@7.26.3: - resolution: {integrity: sha512-WJ/CvmY8Mea8iDXo6a7RK2wbmJITT5fN3BEkRuFlxVyNx8jOKIIhmC4fSkTcPcf8JyavbBwIe6OpiCOBXt/IcA==} - engines: {node: '>=6.0.0'} - hasBin: true - dependencies: - '@babel/types': 7.26.3 - dev: true - /@babel/plugin-syntax-async-generators@7.8.4(@babel/core@7.22.8): resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==} peerDependencies: @@ -627,19 +512,10 @@ packages: engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.22.13 - '@babel/parser': 7.23.0 + '@babel/parser': 7.22.7 '@babel/types': 7.23.0 dev: true - /@babel/template@7.25.9: - resolution: {integrity: sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.26.2 - '@babel/parser': 7.26.3 - '@babel/types': 7.26.3 - dev: true - /@babel/traverse@7.23.2: resolution: {integrity: sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==} engines: {node: '>=6.9.0'} @@ -658,21 +534,6 @@ packages: - supports-color dev: true - /@babel/traverse@7.26.4: - resolution: {integrity: sha512-fH+b7Y4p3yqvApJALCPJcwb0/XaOSgtK4pzV6WVjPR5GLFQBRI7pfoX2V2iM48NXvX07NUxxm1Vw98YjqTcU5w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.26.2 - '@babel/generator': 7.26.3 - '@babel/parser': 7.26.3 - '@babel/template': 7.25.9 - '@babel/types': 7.26.3 - debug: 4.4.0 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: true - /@babel/types@7.23.0: resolution: {integrity: sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==} engines: {node: '>=6.9.0'} @@ -681,14 +542,6 @@ packages: '@babel/helper-validator-identifier': 7.22.20 to-fast-properties: 2.0.0 - /@babel/types@7.26.3: - resolution: {integrity: sha512-vN5p+1kl59GVKMvTHt55NzzmYVxprfJD+ql7U9NFIfKCBkYE55LYtS+WtPlaYOyzydrKI8Nezd+aZextrd+FMA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-string-parser': 7.25.9 - '@babel/helper-validator-identifier': 7.25.9 - dev: true - /@bcoe/v8-coverage@0.2.3: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true @@ -701,6 +554,13 @@ packages: minimist: 1.2.8 dev: true + /@cspotcode/source-map-support@0.8.1: + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + dev: true + /@emotion/babel-plugin@11.12.0: resolution: {integrity: sha512-y2WQb+oP8Jqvvclh8Q55gLUyb7UFvgv7eJfsj7td5TToBrIUtPay2kMrZi4xjq9qw2vD0ZR5fSho0yqoFgX7Rw==} dependencies: @@ -831,24 +691,6 @@ packages: resolution: {integrity: sha512-snKqtPW01tN0ui7yu9rGv69aJXr/a/Ywvl11sUjNtEcRc+ng/mQriFL0wLXMef74iHa/EkftbDzU9F8iFbH+zg==} dev: false - /@esbuild/aix-ppc64@0.21.5: - resolution: {integrity: sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [aix] - requiresBuild: true - dev: true - optional: true - - /@esbuild/aix-ppc64@0.23.1: - resolution: {integrity: sha512-6VhYk1diRqrhBAqpJEdjASR/+WVRtfjpqKuNw11cLiaWpAT/Uu+nokB+UJnevzy/P9C/ty6AOe0dwueMrGh/iQ==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [aix] - requiresBuild: true - dev: true - optional: true - /@esbuild/aix-ppc64@0.24.2: resolution: {integrity: sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA==} engines: {node: '>=18'} @@ -858,24 +700,6 @@ packages: dev: true optional: true - /@esbuild/android-arm64@0.21.5: - resolution: {integrity: sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-arm64@0.23.1: - resolution: {integrity: sha512-xw50ipykXcLstLeWH7WRdQuysJqejuAGPd30vd1i5zSyKK3WE+ijzHmLKxdiCMtH1pHz78rOg0BKSYOSB/2Khw==} - engines: {node: '>=18'} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-arm64@0.24.2: resolution: {integrity: sha512-cNLgeqCqV8WxfcTIOeL4OAtSmL8JjcN6m09XIgro1Wi7cF4t/THaWEa7eL5CMoMBdjoHOTh/vwTO/o2TRXIyzg==} engines: {node: '>=18'} @@ -885,24 +709,6 @@ packages: dev: true optional: true - /@esbuild/android-arm@0.21.5: - resolution: {integrity: sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==} - engines: {node: '>=12'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-arm@0.23.1: - resolution: {integrity: sha512-uz6/tEy2IFm9RYOyvKl88zdzZfwEfKZmnX9Cj1BHjeSGNuGLuMD1kR8y5bteYmwqKm1tj8m4cb/aKEorr6fHWQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-arm@0.24.2: resolution: {integrity: sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q==} engines: {node: '>=18'} @@ -912,24 +718,6 @@ packages: dev: true optional: true - /@esbuild/android-x64@0.21.5: - resolution: {integrity: sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==} - engines: {node: '>=12'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@esbuild/android-x64@0.23.1: - resolution: {integrity: sha512-nlN9B69St9BwUoB+jkyU090bru8L0NA3yFvAd7k8dNsVH8bi9a8cUAUSEcEEgTp2z3dbEDGJGfP6VUnkQnlReg==} - engines: {node: '>=18'} - cpu: [x64] - os: [android] - requiresBuild: true - dev: true - optional: true - /@esbuild/android-x64@0.24.2: resolution: {integrity: sha512-B6Q0YQDqMx9D7rvIcsXfmJfvUYLoP722bgfBlO5cGvNVb5V/+Y7nhBE3mHV9OpxBf4eAS2S68KZztiPaWq4XYw==} engines: {node: '>=18'} @@ -939,24 +727,6 @@ packages: dev: true optional: true - /@esbuild/darwin-arm64@0.21.5: - resolution: {integrity: sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==} - engines: {node: '>=12'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-arm64@0.23.1: - resolution: {integrity: sha512-YsS2e3Wtgnw7Wq53XXBLcV6JhRsEq8hkfg91ESVadIrzr9wO6jJDMZnCQbHm1Guc5t/CdDiFSSfWP58FNuvT3Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@esbuild/darwin-arm64@0.24.2: resolution: {integrity: sha512-kj3AnYWc+CekmZnS5IPu9D+HWtUI49hbnyqk0FLEJDbzCIQt7hg7ucF1SQAilhtYpIujfaHr6O0UHlzzSPdOeA==} engines: {node: '>=18'} @@ -966,24 +736,6 @@ packages: dev: true optional: true - /@esbuild/darwin-x64@0.21.5: - resolution: {integrity: sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==} - engines: {node: '>=12'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@esbuild/darwin-x64@0.23.1: - resolution: {integrity: sha512-aClqdgTDVPSEGgoCS8QDG37Gu8yc9lTHNAQlsztQ6ENetKEO//b8y31MMu2ZaPbn4kVsIABzVLXYLhCGekGDqw==} - engines: {node: '>=18'} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - /@esbuild/darwin-x64@0.24.2: resolution: {integrity: sha512-WeSrmwwHaPkNR5H3yYfowhZcbriGqooyu3zI/3GGpF8AyUdsrrP0X6KumITGA9WOyiJavnGZUwPGvxvwfWPHIA==} engines: {node: '>=18'} @@ -993,24 +745,6 @@ packages: dev: true optional: true - /@esbuild/freebsd-arm64@0.21.5: - resolution: {integrity: sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==} - engines: {node: '>=12'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-arm64@0.23.1: - resolution: {integrity: sha512-h1k6yS8/pN/NHlMl5+v4XPfikhJulk4G+tKGFIOwURBSFzE8bixw1ebjluLOjfwtLqY0kewfjLSrO6tN2MgIhA==} - engines: {node: '>=18'} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/freebsd-arm64@0.24.2: resolution: {integrity: sha512-UN8HXjtJ0k/Mj6a9+5u6+2eZ2ERD7Edt1Q9IZiB5UZAIdPnVKDoG7mdTVGhHJIeEml60JteamR3qhsr1r8gXvg==} engines: {node: '>=18'} @@ -1020,24 +754,6 @@ packages: dev: true optional: true - /@esbuild/freebsd-x64@0.21.5: - resolution: {integrity: sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/freebsd-x64@0.23.1: - resolution: {integrity: sha512-lK1eJeyk1ZX8UklqFd/3A60UuZ/6UVfGT2LuGo3Wp4/z7eRTRYY+0xOu2kpClP+vMTi9wKOfXi2vjUpO1Ro76g==} - engines: {node: '>=18'} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - /@esbuild/freebsd-x64@0.24.2: resolution: {integrity: sha512-TvW7wE/89PYW+IevEJXZ5sF6gJRDY/14hyIGFXdIucxCsbRmLUcjseQu1SyTko+2idmCw94TgyaEZi9HUSOe3Q==} engines: {node: '>=18'} @@ -1047,24 +763,6 @@ packages: dev: true optional: true - /@esbuild/linux-arm64@0.21.5: - resolution: {integrity: sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==} - engines: {node: '>=12'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm64@0.23.1: - resolution: {integrity: sha512-/93bf2yxencYDnItMYV/v116zff6UyTjo4EtEQjUBeGiVpMmffDNUyD9UN2zV+V3LRV3/on4xdZ26NKzn6754g==} - engines: {node: '>=18'} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-arm64@0.24.2: resolution: {integrity: sha512-7HnAD6074BW43YvvUmE/35Id9/NB7BeX5EoNkK9obndmZBUk8xmJJeU7DwmUeN7tkysslb2eSl6CTrYz6oEMQg==} engines: {node: '>=18'} @@ -1074,24 +772,6 @@ packages: dev: true optional: true - /@esbuild/linux-arm@0.21.5: - resolution: {integrity: sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==} - engines: {node: '>=12'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-arm@0.23.1: - resolution: {integrity: sha512-CXXkzgn+dXAPs3WBwE+Kvnrf4WECwBdfjfeYHpMeVxWE0EceB6vhWGShs6wi0IYEqMSIzdOF1XjQ/Mkm5d7ZdQ==} - engines: {node: '>=18'} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-arm@0.24.2: resolution: {integrity: sha512-n0WRM/gWIdU29J57hJyUdIsk0WarGd6To0s+Y+LwvlC55wt+GT/OgkwoXCXvIue1i1sSNWblHEig00GBWiJgfA==} engines: {node: '>=18'} @@ -1101,24 +781,6 @@ packages: dev: true optional: true - /@esbuild/linux-ia32@0.21.5: - resolution: {integrity: sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==} - engines: {node: '>=12'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ia32@0.23.1: - resolution: {integrity: sha512-VTN4EuOHwXEkXzX5nTvVY4s7E/Krz7COC8xkftbbKRYAl96vPiUssGkeMELQMOnLOJ8k3BY1+ZY52tttZnHcXQ==} - engines: {node: '>=18'} - cpu: [ia32] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-ia32@0.24.2: resolution: {integrity: sha512-sfv0tGPQhcZOgTKO3oBE9xpHuUqguHvSo4jl+wjnKwFpapx+vUDcawbwPNuBIAYdRAvIDBfZVvXprIj3HA+Ugw==} engines: {node: '>=18'} @@ -1128,24 +790,6 @@ packages: dev: true optional: true - /@esbuild/linux-loong64@0.21.5: - resolution: {integrity: sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==} - engines: {node: '>=12'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-loong64@0.23.1: - resolution: {integrity: sha512-Vx09LzEoBa5zDnieH8LSMRToj7ir/Jeq0Gu6qJ/1GcBq9GkfoEAoXvLiW1U9J1qE/Y/Oyaq33w5p2ZWrNNHNEw==} - engines: {node: '>=18'} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-loong64@0.24.2: resolution: {integrity: sha512-CN9AZr8kEndGooS35ntToZLTQLHEjtVB5n7dl8ZcTZMonJ7CCfStrYhrzF97eAecqVbVJ7APOEe18RPI4KLhwQ==} engines: {node: '>=18'} @@ -1155,24 +799,6 @@ packages: dev: true optional: true - /@esbuild/linux-mips64el@0.21.5: - resolution: {integrity: sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==} - engines: {node: '>=12'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-mips64el@0.23.1: - resolution: {integrity: sha512-nrFzzMQ7W4WRLNUOU5dlWAqa6yVeI0P78WKGUo7lg2HShq/yx+UYkeNSE0SSfSure0SqgnsxPvmAUu/vu0E+3Q==} - engines: {node: '>=18'} - cpu: [mips64el] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-mips64el@0.24.2: resolution: {integrity: sha512-iMkk7qr/wl3exJATwkISxI7kTcmHKE+BlymIAbHO8xanq/TjHaaVThFF6ipWzPHryoFsesNQJPE/3wFJw4+huw==} engines: {node: '>=18'} @@ -1182,24 +808,6 @@ packages: dev: true optional: true - /@esbuild/linux-ppc64@0.21.5: - resolution: {integrity: sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==} - engines: {node: '>=12'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-ppc64@0.23.1: - resolution: {integrity: sha512-dKN8fgVqd0vUIjxuJI6P/9SSSe/mB9rvA98CSH2sJnlZ/OCZWO1DJvxj8jvKTfYUdGfcq2dDxoKaC6bHuTlgcw==} - engines: {node: '>=18'} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-ppc64@0.24.2: resolution: {integrity: sha512-shsVrgCZ57Vr2L8mm39kO5PPIb+843FStGt7sGGoqiiWYconSxwTiuswC1VJZLCjNiMLAMh34jg4VSEQb+iEbw==} engines: {node: '>=18'} @@ -1209,24 +817,6 @@ packages: dev: true optional: true - /@esbuild/linux-riscv64@0.21.5: - resolution: {integrity: sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==} - engines: {node: '>=12'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-riscv64@0.23.1: - resolution: {integrity: sha512-5AV4Pzp80fhHL83JM6LoA6pTQVWgB1HovMBsLQ9OZWLDqVY8MVobBXNSmAJi//Csh6tcY7e7Lny2Hg1tElMjIA==} - engines: {node: '>=18'} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-riscv64@0.24.2: resolution: {integrity: sha512-4eSFWnU9Hhd68fW16GD0TINewo1L6dRrB+oLNNbYyMUAeOD2yCK5KXGK1GH4qD/kT+bTEXjsyTCiJGHPZ3eM9Q==} engines: {node: '>=18'} @@ -1236,24 +826,6 @@ packages: dev: true optional: true - /@esbuild/linux-s390x@0.21.5: - resolution: {integrity: sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==} - engines: {node: '>=12'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-s390x@0.23.1: - resolution: {integrity: sha512-9ygs73tuFCe6f6m/Tb+9LtYxWR4c9yg7zjt2cYkjDbDpV/xVn+68cQxMXCjUpYwEkze2RcU/rMnfIXNRFmSoDw==} - engines: {node: '>=18'} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-s390x@0.24.2: resolution: {integrity: sha512-S0Bh0A53b0YHL2XEXC20bHLuGMOhFDO6GN4b3YjRLK//Ep3ql3erpNcPlEFed93hsQAjAQDNsvcK+hV90FubSw==} engines: {node: '>=18'} @@ -1263,24 +835,6 @@ packages: dev: true optional: true - /@esbuild/linux-x64@0.21.5: - resolution: {integrity: sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==} - engines: {node: '>=12'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@esbuild/linux-x64@0.23.1: - resolution: {integrity: sha512-EV6+ovTsEXCPAp58g2dD68LxoP/wK5pRvgy0J/HxPGB009omFPv3Yet0HiaqvrIrgPTBuC6wCH1LTOY91EO5hQ==} - engines: {node: '>=18'} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - /@esbuild/linux-x64@0.24.2: resolution: {integrity: sha512-8Qi4nQcCTbLnK9WoMjdC9NiTG6/E38RNICU6sUNqK0QFxCYgoARqVqxdFmWkdonVsvGqWhmm7MO0jyTqLqwj0Q==} engines: {node: '>=18'} @@ -1294,177 +848,60 @@ packages: resolution: {integrity: sha512-wuLK/VztRRpMt9zyHSazyCVdCXlpHkKm34WUyinD2lzK07FAHTq0KQvZZlXikNWkDGoT6x3TD51jKQ7gMVpopw==} engines: {node: '>=18'} cpu: [arm64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64@0.21.5: - resolution: {integrity: sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==} - engines: {node: '>=12'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64@0.23.1: - resolution: {integrity: sha512-aevEkCNu7KlPRpYLjwmdcuNz6bDFiE7Z8XC4CPqExjTvrHugh28QzUXVOZtiYghciKUacNktqxdpymplil1beA==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/netbsd-x64@0.24.2: - resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} - engines: {node: '>=18'} - cpu: [x64] - os: [netbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-arm64@0.23.1: - resolution: {integrity: sha512-3x37szhLexNA4bXhLrCC/LImN/YtWis6WXr1VESlfVtVeoFJBRINPJ3f0a/6LV8zpikqoUg4hyXw0sFBt5Cr+Q==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-arm64@0.24.2: - resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64@0.21.5: - resolution: {integrity: sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==} - engines: {node: '>=12'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64@0.23.1: - resolution: {integrity: sha512-aY2gMmKmPhxfU+0EdnN+XNtGbjfQgwZj43k8G3fyrDM/UdZww6xrWxmDkuz2eCZchqVeABjV5BpildOrUbBTqA==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/openbsd-x64@0.24.2: - resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} - engines: {node: '>=18'} - cpu: [x64] - os: [openbsd] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64@0.21.5: - resolution: {integrity: sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==} - engines: {node: '>=12'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64@0.23.1: - resolution: {integrity: sha512-RBRT2gqEl0IKQABT4XTj78tpk9v7ehp+mazn2HbUeZl1YMdaGAQqhapjGTCe7uw7y0frDi4gS0uHzhvpFuI1sA==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/sunos-x64@0.24.2: - resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} - engines: {node: '>=18'} - cpu: [x64] - os: [sunos] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-arm64@0.21.5: - resolution: {integrity: sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==} - engines: {node: '>=12'} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@esbuild/win32-arm64@0.23.1: - resolution: {integrity: sha512-4O+gPR5rEBe2FpKOVyiJ7wNDPA8nGzDuJ6gN4okSA1gEOYZ67N8JPk58tkWtdtPeLz7lBnY6I5L3jdsr3S+A6A==} - engines: {node: '>=18'} - cpu: [arm64] - os: [win32] + os: [netbsd] requiresBuild: true dev: true optional: true - /@esbuild/win32-arm64@0.24.2: - resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + /@esbuild/netbsd-x64@0.24.2: + resolution: {integrity: sha512-VefFaQUc4FMmJuAxmIHgUmfNiLXY438XrL4GDNV1Y1H/RW3qow68xTwjZKfj/+Plp9NANmzbH5R40Meudu8mmw==} engines: {node: '>=18'} - cpu: [arm64] - os: [win32] + cpu: [x64] + os: [netbsd] requiresBuild: true dev: true optional: true - /@esbuild/win32-ia32@0.21.5: - resolution: {integrity: sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==} - engines: {node: '>=12'} - cpu: [ia32] - os: [win32] + /@esbuild/openbsd-arm64@0.24.2: + resolution: {integrity: sha512-YQbi46SBct6iKnszhSvdluqDmxCJA+Pu280Av9WICNwQmMxV7nLRHZfjQzwbPs3jeWnuAhE9Jy0NrnJ12Oz+0A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] requiresBuild: true dev: true optional: true - /@esbuild/win32-ia32@0.23.1: - resolution: {integrity: sha512-BcaL0Vn6QwCwre3Y717nVHZbAa4UBEigzFm6VdsVdT/MbZ38xoj1X9HPkZhbmaBGUD1W8vxAfffbDe8bA6AKnQ==} + /@esbuild/openbsd-x64@0.24.2: + resolution: {integrity: sha512-+iDS6zpNM6EnJyWv0bMGLWSWeXGN/HTaF/LXHXHwejGsVi+ooqDfMCCTerNFxEkM3wYVcExkeGXNqshc9iMaOA==} engines: {node: '>=18'} - cpu: [ia32] - os: [win32] + cpu: [x64] + os: [openbsd] requiresBuild: true dev: true optional: true - /@esbuild/win32-ia32@0.24.2: - resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} + /@esbuild/sunos-x64@0.24.2: + resolution: {integrity: sha512-hTdsW27jcktEvpwNHJU4ZwWFGkz2zRJUz8pvddmXPtXDzVKTTINmlmga3ZzwcuMpUvLw7JkLy9QLKyGpD2Yxig==} engines: {node: '>=18'} - cpu: [ia32] - os: [win32] + cpu: [x64] + os: [sunos] requiresBuild: true dev: true optional: true - /@esbuild/win32-x64@0.21.5: - resolution: {integrity: sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==} - engines: {node: '>=12'} - cpu: [x64] + /@esbuild/win32-arm64@0.24.2: + resolution: {integrity: sha512-LihEQ2BBKVFLOC9ZItT9iFprsE9tqjDjnbulhHoFxYQtQfai7qfluVODIYxt1PgdoyQkz23+01rzwNwYfutxUQ==} + engines: {node: '>=18'} + cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@esbuild/win32-x64@0.23.1: - resolution: {integrity: sha512-BHpFFeslkWrXWyUPnbKm+xYYVYruCinGcftSBaa8zoF9hZO4BcSCFUvHVTtzpIY6YzUnYtuEhZ+C9iEXjxnasg==} + /@esbuild/win32-ia32@0.24.2: + resolution: {integrity: sha512-q+iGUwfs8tncmFC9pcnD5IvRHAzmbwQ3GPS5/ceCyHdjXubwQWI12MKWSNSMYLJMq23/IUCvJMS76PDqXe1fxA==} engines: {node: '>=18'} - cpu: [x64] + cpu: [ia32] os: [win32] requiresBuild: true dev: true @@ -1636,7 +1073,7 @@ packages: slash: 3.0.0 dev: true - /@jest/core@29.7.0: + /@jest/core@29.7.0(ts-node@10.9.2): resolution: {integrity: sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -1657,7 +1094,7 @@ packages: exit: 0.1.2 graceful-fs: 4.2.11 jest-changed-files: 29.7.0 - jest-config: 29.7.0(@types/node@22.10.5) + jest-config: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) jest-haste-map: 29.7.0 jest-message-util: 29.7.0 jest-regex-util: 29.6.3 @@ -1881,15 +1318,6 @@ packages: '@jridgewell/trace-mapping': 0.3.18 dev: true - /@jridgewell/gen-mapping@0.3.8: - resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} - engines: {node: '>=6.0.0'} - dependencies: - '@jridgewell/set-array': 1.2.1 - '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.25 - dev: true - /@jridgewell/resolve-uri@3.1.0: resolution: {integrity: sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==} engines: {node: '>=6.0.0'} @@ -1905,11 +1333,6 @@ packages: engines: {node: '>=6.0.0'} dev: true - /@jridgewell/set-array@1.2.1: - resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} - engines: {node: '>=6.0.0'} - dev: true - /@jridgewell/sourcemap-codec@1.4.14: resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==} dev: true @@ -1918,10 +1341,6 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true - /@jridgewell/sourcemap-codec@1.5.0: - resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} - dev: true - /@jridgewell/trace-mapping@0.3.18: resolution: {integrity: sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==} dependencies: @@ -1929,8 +1348,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.14 dev: true - /@jridgewell/trace-mapping@0.3.25: - resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + /@jridgewell/trace-mapping@0.3.9: + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} dependencies: '@jridgewell/resolve-uri': 3.1.1 '@jridgewell/sourcemap-codec': 1.4.15 @@ -2190,158 +1609,6 @@ packages: resolution: {integrity: sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==} dev: false - /@rollup/rollup-android-arm-eabi@4.29.1: - resolution: {integrity: sha512-ssKhA8RNltTZLpG6/QNkCSge+7mBQGUqJRisZ2MDQcEGaK93QESEgWK2iOpIDZ7k9zPVkG5AS3ksvD5ZWxmItw==} - cpu: [arm] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-android-arm64@4.29.1: - resolution: {integrity: sha512-CaRfrV0cd+NIIcVVN/jx+hVLN+VRqnuzLRmfmlzpOzB87ajixsN/+9L5xNmkaUUvEbI5BmIKS+XTwXsHEb65Ew==} - cpu: [arm64] - os: [android] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-arm64@4.29.1: - resolution: {integrity: sha512-2ORr7T31Y0Mnk6qNuwtyNmy14MunTAMx06VAPI6/Ju52W10zk1i7i5U3vlDRWjhOI5quBcrvhkCHyF76bI7kEw==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-darwin-x64@4.29.1: - resolution: {integrity: sha512-j/Ej1oanzPjmN0tirRd5K2/nncAhS9W6ICzgxV+9Y5ZsP0hiGhHJXZ2JQ53iSSjj8m6cRY6oB1GMzNn2EUt6Ng==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-freebsd-arm64@4.29.1: - resolution: {integrity: sha512-91C//G6Dm/cv724tpt7nTyP+JdN12iqeXGFM1SqnljCmi5yTXriH7B1r8AD9dAZByHpKAumqP1Qy2vVNIdLZqw==} - cpu: [arm64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-freebsd-x64@4.29.1: - resolution: {integrity: sha512-hEioiEQ9Dec2nIRoeHUP6hr1PSkXzQaCUyqBDQ9I9ik4gCXQZjJMIVzoNLBRGet+hIUb3CISMh9KXuCcWVW/8w==} - cpu: [x64] - os: [freebsd] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm-gnueabihf@4.29.1: - resolution: {integrity: sha512-Py5vFd5HWYN9zxBv3WMrLAXY3yYJ6Q/aVERoeUFwiDGiMOWsMs7FokXihSOaT/PMWUty/Pj60XDQndK3eAfE6A==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm-musleabihf@4.29.1: - resolution: {integrity: sha512-RiWpGgbayf7LUcuSNIbahr0ys2YnEERD4gYdISA06wa0i8RALrnzflh9Wxii7zQJEB2/Eh74dX4y/sHKLWp5uQ==} - cpu: [arm] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-gnu@4.29.1: - resolution: {integrity: sha512-Z80O+taYxTQITWMjm/YqNoe9d10OX6kDh8X5/rFCMuPqsKsSyDilvfg+vd3iXIqtfmp+cnfL1UrYirkaF8SBZA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-arm64-musl@4.29.1: - resolution: {integrity: sha512-fOHRtF9gahwJk3QVp01a/GqS4hBEZCV1oKglVVq13kcK3NeVlS4BwIFzOHDbmKzt3i0OuHG4zfRP0YoG5OF/rA==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-loongarch64-gnu@4.29.1: - resolution: {integrity: sha512-5a7q3tnlbcg0OodyxcAdrrCxFi0DgXJSoOuidFUzHZ2GixZXQs6Tc3CHmlvqKAmOs5eRde+JJxeIf9DonkmYkw==} - cpu: [loong64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-powerpc64le-gnu@4.29.1: - resolution: {integrity: sha512-9b4Mg5Yfz6mRnlSPIdROcfw1BU22FQxmfjlp/CShWwO3LilKQuMISMTtAu/bxmmrE6A902W2cZJuzx8+gJ8e9w==} - cpu: [ppc64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-riscv64-gnu@4.29.1: - resolution: {integrity: sha512-G5pn0NChlbRM8OJWpJFMX4/i8OEU538uiSv0P6roZcbpe/WfhEO+AT8SHVKfp8qhDQzaz7Q+1/ixMy7hBRidnQ==} - cpu: [riscv64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-s390x-gnu@4.29.1: - resolution: {integrity: sha512-WM9lIkNdkhVwiArmLxFXpWndFGuOka4oJOZh8EP3Vb8q5lzdSCBuhjavJsw68Q9AKDGeOOIHYzYm4ZFvmWez5g==} - cpu: [s390x] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-gnu@4.29.1: - resolution: {integrity: sha512-87xYCwb0cPGZFoGiErT1eDcssByaLX4fc0z2nRM6eMtV9njAfEE6OW3UniAoDhX4Iq5xQVpE6qO9aJbCFumKYQ==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-linux-x64-musl@4.29.1: - resolution: {integrity: sha512-xufkSNppNOdVRCEC4WKvlR1FBDyqCSCpQeMMgv9ZyXqqtKBfkw1yfGMTUTs9Qsl6WQbJnsGboWCp7pJGkeMhKA==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-arm64-msvc@4.29.1: - resolution: {integrity: sha512-F2OiJ42m77lSkizZQLuC+jiZ2cgueWQL5YC9tjo3AgaEw+KJmVxHGSyQfDUoYR9cci0lAywv2Clmckzulcq6ig==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-ia32-msvc@4.29.1: - resolution: {integrity: sha512-rYRe5S0FcjlOBZQHgbTKNrqxCBUmgDJem/VQTCcTnA2KCabYSWQDrytOzX7avb79cAAweNmMUb/Zw18RNd4mng==} - cpu: [ia32] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rollup/rollup-win32-x64-msvc@4.29.1: - resolution: {integrity: sha512-+10CMg9vt1MoHj6x1pxyjPSMjHTIlqs8/tBztXvPAx24SKs9jwVnKqHJumlH/IzhaPUaj3T6T6wfZr8okdXaIg==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -2358,10 +1625,26 @@ packages: '@sinonjs/commons': 3.0.0 dev: true + /@tsconfig/node10@1.0.9: + resolution: {integrity: sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==} + dev: true + + /@tsconfig/node12@1.0.11: + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + dev: true + + /@tsconfig/node14@1.0.3: + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + dev: true + + /@tsconfig/node16@1.0.4: + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + dev: true + /@types/babel__core@7.20.1: resolution: {integrity: sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==} dependencies: - '@babel/parser': 7.23.0 + '@babel/parser': 7.22.7 '@babel/types': 7.23.0 '@types/babel__generator': 7.6.4 '@types/babel__template': 7.4.1 @@ -2377,7 +1660,7 @@ packages: /@types/babel__template@7.4.1: resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==} dependencies: - '@babel/parser': 7.23.0 + '@babel/parser': 7.22.7 '@babel/types': 7.23.0 dev: true @@ -2387,10 +1670,6 @@ packages: '@babel/types': 7.23.0 dev: true - /@types/estree@1.0.6: - resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - dev: true - /@types/geojson@7946.0.15: resolution: {integrity: sha512-9oSxFzDCT2Rj6DfcHF8G++jxBKS7mBqXl5xrRW+Kbvjry6Uduya2iiwqHPhVXpasAVMBYKkEPGgKhd3+/HZ6xA==} dev: true @@ -2417,15 +1696,16 @@ packages: '@types/istanbul-lib-report': 3.0.0 dev: true - /@types/json-schema@7.0.15: - resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} - - /@types/lodash-es@4.17.12: - resolution: {integrity: sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==} + /@types/jest@29.5.14: + resolution: {integrity: sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==} dependencies: - '@types/lodash': 4.17.14 + expect: 29.7.0 + pretty-format: 29.7.0 dev: true + /@types/json-schema@7.0.15: + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + /@types/lodash@4.17.14: resolution: {integrity: sha512-jsxagdikDiDBeIRaPYtArcT8my4tN1og7MtMRquFT3XNA6axxyHDRUemqDz/taRDdOUn0GnGHRCuff4q48sW9A==} @@ -2669,87 +1949,6 @@ packages: /@ungap/structured-clone@1.2.0: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - /@vitest/coverage-istanbul@2.1.8(vitest@2.1.8): - resolution: {integrity: sha512-cSaCd8KcWWvgDwEJSXm0NEWZ1YTiJzjicKHy+zOEbUm0gjbbkz+qJf1p8q71uBzSlS7vdnZA8wRLeiwVE3fFTA==} - peerDependencies: - vitest: 2.1.8 - dependencies: - '@istanbuljs/schema': 0.1.3 - debug: 4.4.0 - istanbul-lib-coverage: 3.2.2 - istanbul-lib-instrument: 6.0.3 - istanbul-lib-report: 3.0.1 - istanbul-lib-source-maps: 5.0.6 - istanbul-reports: 3.1.7 - magicast: 0.3.5 - test-exclude: 7.0.1 - tinyrainbow: 1.2.0 - vitest: 2.1.8(@types/node@22.10.5) - transitivePeerDependencies: - - supports-color - dev: true - - /@vitest/expect@2.1.8: - resolution: {integrity: sha512-8ytZ/fFHq2g4PJVAtDX57mayemKgDR6X3Oa2Foro+EygiOJHUXhCqBAAKQYYajZpFoIfvBCF1j6R6IYRSIUFuw==} - dependencies: - '@vitest/spy': 2.1.8 - '@vitest/utils': 2.1.8 - chai: 5.1.2 - tinyrainbow: 1.2.0 - dev: true - - /@vitest/mocker@2.1.8(vite@5.4.11): - resolution: {integrity: sha512-7guJ/47I6uqfttp33mgo6ga5Gr1VnL58rcqYKyShoRK9ebu8T5Rs6HN3s1NABiBeVTdWNrwUMcHH54uXZBN4zA==} - peerDependencies: - msw: ^2.4.9 - vite: ^5.0.0 - peerDependenciesMeta: - msw: - optional: true - vite: - optional: true - dependencies: - '@vitest/spy': 2.1.8 - estree-walker: 3.0.3 - magic-string: 0.30.17 - vite: 5.4.11(@types/node@22.10.5) - dev: true - - /@vitest/pretty-format@2.1.8: - resolution: {integrity: sha512-9HiSZ9zpqNLKlbIDRWOnAWqgcA7xu+8YxXSekhr0Ykab7PAYFkhkwoqVArPOtJhPmYeE2YHgKZlj3CP36z2AJQ==} - dependencies: - tinyrainbow: 1.2.0 - dev: true - - /@vitest/runner@2.1.8: - resolution: {integrity: sha512-17ub8vQstRnRlIU5k50bG+QOMLHRhYPAna5tw8tYbj+jzjcspnwnwtPtiOlkuKC4+ixDPTuLZiqiWWQ2PSXHVg==} - dependencies: - '@vitest/utils': 2.1.8 - pathe: 1.1.2 - dev: true - - /@vitest/snapshot@2.1.8: - resolution: {integrity: sha512-20T7xRFbmnkfcmgVEz+z3AU/3b0cEzZOt/zmnvZEctg64/QZbSDJEVm9fLnnlSi74KibmRsO9/Qabi+t0vCRPg==} - dependencies: - '@vitest/pretty-format': 2.1.8 - magic-string: 0.30.17 - pathe: 1.1.2 - dev: true - - /@vitest/spy@2.1.8: - resolution: {integrity: sha512-5swjf2q95gXeYPevtW0BLk6H8+bPlMb4Vw/9Em4hFxDcaOxS+e0LOX4yqNxoHzMR2akEB2xfpnWUzkZokmgWDg==} - dependencies: - tinyspy: 3.0.2 - dev: true - - /@vitest/utils@2.1.8: - resolution: {integrity: sha512-dwSoui6djdwbfFmIgbIjX2ZhIoG7Ex/+xpxyiEgIGzjliY8xGkcpITKTlp6B4MgtGkF2ilvm97cPM96XZaAgcA==} - dependencies: - '@vitest/pretty-format': 2.1.8 - loupe: 3.1.2 - tinyrainbow: 1.2.0 - dev: true - /acorn-jsx@5.3.2(acorn@8.10.0): resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -2757,6 +1956,11 @@ packages: dependencies: acorn: 8.10.0 + /acorn-walk@8.2.0: + resolution: {integrity: sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==} + engines: {node: '>=0.4.0'} + dev: true + /acorn@8.10.0: resolution: {integrity: sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==} engines: {node: '>=0.4.0'} @@ -2852,6 +2056,10 @@ packages: picomatch: 2.3.1 dev: true + /arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + dev: true + /argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} dependencies: @@ -2881,16 +2089,15 @@ packages: engines: {node: '>=0.10.0'} dev: true - /assertion-error@2.0.1: - resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} - engines: {node: '>=12'} - dev: true - /assign-symbols@1.0.0: resolution: {integrity: sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==} engines: {node: '>=0.10.0'} dev: true + /async@3.2.5: + resolution: {integrity: sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg==} + dev: true + /atob@2.1.2: resolution: {integrity: sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==} engines: {node: '>= 4.5.0'} @@ -2960,7 +2167,7 @@ packages: resolution: {integrity: sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: - '@babel/template': 7.22.15 + '@babel/template': 7.22.5 '@babel/types': 7.23.0 '@types/babel__core': 7.20.1 '@types/babel__traverse': 7.20.1 @@ -3066,15 +2273,11 @@ packages: update-browserslist-db: 1.0.11(browserslist@4.21.9) dev: true - /browserslist@4.24.3: - resolution: {integrity: sha512-1CPmv8iobE2fyRMV97dAcMVegvvWKxmq94hkLiAkUGwKVTyDLw33K+ZxiFrREKmmps4rIw6grcCFCnTMSZ/YiA==} - engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} - hasBin: true + /bs-logger@0.2.6: + resolution: {integrity: sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==} + engines: {node: '>= 6'} dependencies: - caniuse-lite: 1.0.30001690 - electron-to-chromium: 1.5.76 - node-releases: 2.0.19 - update-browserslist-db: 1.1.1(browserslist@4.24.3) + fast-json-stable-stringify: 2.1.0 dev: true /bser@2.1.1: @@ -3087,11 +2290,6 @@ packages: resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==} dev: true - /cac@6.7.14: - resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} - engines: {node: '>=8'} - dev: true - /cache-base@1.0.1: resolution: {integrity: sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==} engines: {node: '>=0.10.0'} @@ -3125,10 +2323,6 @@ packages: resolution: {integrity: sha512-ENcIpYBmwAAOm/V2cXgM7rZUrKKaqisZl4ZAI520FIkqGXUxJjmaIssbRW5HVVR5tyV6ygTLIm15aU8LUmQSaQ==} dev: true - /caniuse-lite@1.0.30001690: - resolution: {integrity: sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==} - dev: true - /capture-exit@2.0.0: resolution: {integrity: sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==} engines: {node: 6.* || 8.* || >= 10.*} @@ -3136,17 +2330,6 @@ packages: rsvp: 4.8.5 dev: true - /chai@5.1.2: - resolution: {integrity: sha512-aGtmf24DW6MLHHG5gCx4zaI3uBq3KRtxeVs0DjFH6Z0rDNbsvTxFASFvdj79pxjxZ8/5u3PIiN3IwEIQkiiuPw==} - engines: {node: '>=12'} - dependencies: - assertion-error: 2.0.1 - check-error: 2.1.1 - deep-eql: 5.0.2 - loupe: 3.1.2 - pathval: 2.0.0 - dev: true - /chalk@2.4.2: resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==} engines: {node: '>=4'} @@ -3172,11 +2355,6 @@ packages: engines: {node: '>=10'} dev: true - /check-error@2.1.1: - resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} - engines: {node: '>= 16'} - dev: true - /cheerio-select@2.1.0: resolution: {integrity: sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==} dependencies: @@ -3354,7 +2532,7 @@ packages: yaml: 1.10.2 dev: false - /create-jest@29.7.0(@types/node@22.10.5): + /create-jest@29.7.0(@types/node@22.10.5)(ts-node@10.9.2): resolution: {integrity: sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dependencies: @@ -3362,7 +2540,7 @@ packages: chalk: 4.1.2 exit: 0.1.2 graceful-fs: 4.2.11 - jest-config: 29.7.0(@types/node@22.10.5) + jest-config: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) jest-util: 29.7.0 prompts: 2.4.2 transitivePeerDependencies: @@ -3372,6 +2550,10 @@ packages: - ts-node dev: true + /create-require@1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + dev: true + /cross-fetch@3.1.8: resolution: {integrity: sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==} dependencies: @@ -3480,11 +2662,6 @@ packages: optional: true dev: true - /deep-eql@5.0.2: - resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} - engines: {node: '>=6'} - dev: true - /deep-is@0.1.4: resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==} @@ -3525,6 +2702,11 @@ packages: engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} dev: true + /diff@4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + dev: true + /dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -3588,12 +2770,16 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /electron-to-chromium@1.4.454: - resolution: {integrity: sha512-pmf1rbAStw8UEQ0sr2cdJtWl48ZMuPD9Sto8HVQOq9vx9j2WgDEN6lYoaqFvqEHYOmGA9oRGn7LqWI9ta0YugQ==} + /ejs@3.1.10: + resolution: {integrity: sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==} + engines: {node: '>=0.10.0'} + hasBin: true + dependencies: + jake: 10.9.1 dev: true - /electron-to-chromium@1.5.76: - resolution: {integrity: sha512-CjVQyG7n7Sr+eBXE86HIulnL5N8xZY1sgmOPGuq/F0Rr0FJq63lg0kEtOIDfZBk44FnDLf6FUJ+dsJcuiUDdDQ==} + /electron-to-chromium@1.4.454: + resolution: {integrity: sha512-pmf1rbAStw8UEQ0sr2cdJtWl48ZMuPD9Sto8HVQOq9vx9j2WgDEN6lYoaqFvqEHYOmGA9oRGn7LqWI9ta0YugQ==} dev: true /emittery@0.13.1: @@ -3640,10 +2826,6 @@ packages: dependencies: is-arrayish: 0.2.1 - /es-module-lexer@1.6.0: - resolution: {integrity: sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==} - dev: true - /esbuild-jest@0.5.0(esbuild@0.24.2): resolution: {integrity: sha512-AMZZCdEpXfNVOIDvURlqYyHwC8qC1/BFjgsrOiSL1eyiIArVtHL8YAC83Shhn16cYYoAWEW17yZn0W/RJKJKHQ==} peerDependencies: @@ -3657,69 +2839,6 @@ packages: - supports-color dev: true - /esbuild@0.21.5: - resolution: {integrity: sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==} - engines: {node: '>=12'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/aix-ppc64': 0.21.5 - '@esbuild/android-arm': 0.21.5 - '@esbuild/android-arm64': 0.21.5 - '@esbuild/android-x64': 0.21.5 - '@esbuild/darwin-arm64': 0.21.5 - '@esbuild/darwin-x64': 0.21.5 - '@esbuild/freebsd-arm64': 0.21.5 - '@esbuild/freebsd-x64': 0.21.5 - '@esbuild/linux-arm': 0.21.5 - '@esbuild/linux-arm64': 0.21.5 - '@esbuild/linux-ia32': 0.21.5 - '@esbuild/linux-loong64': 0.21.5 - '@esbuild/linux-mips64el': 0.21.5 - '@esbuild/linux-ppc64': 0.21.5 - '@esbuild/linux-riscv64': 0.21.5 - '@esbuild/linux-s390x': 0.21.5 - '@esbuild/linux-x64': 0.21.5 - '@esbuild/netbsd-x64': 0.21.5 - '@esbuild/openbsd-x64': 0.21.5 - '@esbuild/sunos-x64': 0.21.5 - '@esbuild/win32-arm64': 0.21.5 - '@esbuild/win32-ia32': 0.21.5 - '@esbuild/win32-x64': 0.21.5 - dev: true - - /esbuild@0.23.1: - resolution: {integrity: sha512-VVNz/9Sa0bs5SELtn3f7qhJCDPCF5oMEl5cO9/SSinpE9hbPVvxbd572HH5AKiP7WD8INO53GgfDDhRjkylHEg==} - engines: {node: '>=18'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@esbuild/aix-ppc64': 0.23.1 - '@esbuild/android-arm': 0.23.1 - '@esbuild/android-arm64': 0.23.1 - '@esbuild/android-x64': 0.23.1 - '@esbuild/darwin-arm64': 0.23.1 - '@esbuild/darwin-x64': 0.23.1 - '@esbuild/freebsd-arm64': 0.23.1 - '@esbuild/freebsd-x64': 0.23.1 - '@esbuild/linux-arm': 0.23.1 - '@esbuild/linux-arm64': 0.23.1 - '@esbuild/linux-ia32': 0.23.1 - '@esbuild/linux-loong64': 0.23.1 - '@esbuild/linux-mips64el': 0.23.1 - '@esbuild/linux-ppc64': 0.23.1 - '@esbuild/linux-riscv64': 0.23.1 - '@esbuild/linux-s390x': 0.23.1 - '@esbuild/linux-x64': 0.23.1 - '@esbuild/netbsd-x64': 0.23.1 - '@esbuild/openbsd-arm64': 0.23.1 - '@esbuild/openbsd-x64': 0.23.1 - '@esbuild/sunos-x64': 0.23.1 - '@esbuild/win32-arm64': 0.23.1 - '@esbuild/win32-ia32': 0.23.1 - '@esbuild/win32-x64': 0.23.1 - dev: true - /esbuild@0.24.2: resolution: {integrity: sha512-+9egpBW8I3CD5XPe0n6BfT5fxLzxrlDzqydF3aviG+9ni1lDC/OvMHcxqEFV0+LANZG5R1bFMWfUrjVsdwxJvA==} engines: {node: '>=18'} @@ -3757,11 +2876,6 @@ packages: resolution: {integrity: sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==} engines: {node: '>=6'} - /escalade@3.2.0: - resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==} - engines: {node: '>=6'} - dev: true - /escape-string-regexp@1.0.5: resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==} engines: {node: '>=0.8.0'} @@ -3869,12 +2983,6 @@ packages: resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} engines: {node: '>=4.0'} - /estree-walker@3.0.3: - resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - dependencies: - '@types/estree': 1.0.6 - dev: true - /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -3950,11 +3058,6 @@ packages: - supports-color dev: true - /expect-type@1.1.0: - resolution: {integrity: sha512-bFi65yM+xZgk+u/KRIpekdSYkTB5W1pEf0Lt8Q8Msh7b+eQ7LXVtIB1Bkm4fvclDEL1b2CZkMhv2mOeF8tMdkA==} - engines: {node: '>=12.0.0'} - dev: true - /expect@29.7.0: resolution: {integrity: sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} @@ -4056,6 +3159,12 @@ packages: dependencies: flat-cache: 3.0.4 + /filelist@1.0.4: + resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} + dependencies: + minimatch: 5.1.6 + dev: true + /fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} @@ -4162,12 +3271,6 @@ packages: engines: {node: '>=16'} dev: true - /get-tsconfig@4.8.1: - resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==} - dependencies: - resolve-pkg-maps: 1.0.0 - dev: true - /get-value@2.0.6: resolution: {integrity: sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA==} engines: {node: '>=0.10.0'} @@ -4198,18 +3301,6 @@ packages: path-scurry: 1.10.2 dev: true - /glob@10.4.5: - resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} - hasBin: true - dependencies: - foreground-child: 3.1.1 - jackspeak: 3.4.3 - minimatch: 9.0.5 - minipass: 7.1.2 - package-json-from-dist: 1.0.1 - path-scurry: 1.11.1 - dev: true - /glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} deprecated: Glob versions prior to v9 are no longer supported @@ -4580,17 +3671,12 @@ packages: engines: {node: '>=8'} dev: true - /istanbul-lib-coverage@3.2.2: - resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} - engines: {node: '>=8'} - dev: true - /istanbul-lib-instrument@5.2.1: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} dependencies: '@babel/core': 7.22.8 - '@babel/parser': 7.23.0 + '@babel/parser': 7.22.7 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 6.3.0 @@ -4603,7 +3689,7 @@ packages: engines: {node: '>=10'} dependencies: '@babel/core': 7.22.8 - '@babel/parser': 7.23.0 + '@babel/parser': 7.22.7 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.0 semver: 7.6.3 @@ -4611,19 +3697,6 @@ packages: - supports-color dev: true - /istanbul-lib-instrument@6.0.3: - resolution: {integrity: sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==} - engines: {node: '>=10'} - dependencies: - '@babel/core': 7.26.0 - '@babel/parser': 7.26.3 - '@istanbuljs/schema': 0.1.3 - istanbul-lib-coverage: 3.2.2 - semver: 7.6.3 - transitivePeerDependencies: - - supports-color - dev: true - /istanbul-lib-report@3.0.0: resolution: {integrity: sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==} engines: {node: '>=8'} @@ -4633,15 +3706,6 @@ packages: supports-color: 7.2.0 dev: true - /istanbul-lib-report@3.0.1: - resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} - engines: {node: '>=10'} - dependencies: - istanbul-lib-coverage: 3.2.2 - make-dir: 4.0.0 - supports-color: 7.2.0 - dev: true - /istanbul-lib-source-maps@4.0.1: resolution: {integrity: sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==} engines: {node: '>=10'} @@ -4653,17 +3717,6 @@ packages: - supports-color dev: true - /istanbul-lib-source-maps@5.0.6: - resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} - engines: {node: '>=10'} - dependencies: - '@jridgewell/trace-mapping': 0.3.25 - debug: 4.4.0 - istanbul-lib-coverage: 3.2.2 - transitivePeerDependencies: - - supports-color - dev: true - /istanbul-reports@3.1.5: resolution: {integrity: sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==} engines: {node: '>=8'} @@ -4672,14 +3725,6 @@ packages: istanbul-lib-report: 3.0.0 dev: true - /istanbul-reports@3.1.7: - resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} - engines: {node: '>=8'} - dependencies: - html-escaper: 2.0.2 - istanbul-lib-report: 3.0.1 - dev: true - /jackspeak@2.3.6: resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==} engines: {node: '>=14'} @@ -4689,12 +3734,15 @@ packages: '@pkgjs/parseargs': 0.11.0 dev: true - /jackspeak@3.4.3: - resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + /jake@10.9.1: + resolution: {integrity: sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w==} + engines: {node: '>=10'} + hasBin: true dependencies: - '@isaacs/cliui': 8.0.2 - optionalDependencies: - '@pkgjs/parseargs': 0.11.0 + async: 3.2.5 + chalk: 4.1.2 + filelist: 1.0.4 + minimatch: 3.1.2 dev: true /jest-changed-files@29.7.0: @@ -4735,7 +3783,7 @@ packages: - supports-color dev: true - /jest-cli@29.7.0(@types/node@22.10.5): + /jest-cli@29.7.0(@types/node@22.10.5)(ts-node@10.9.2): resolution: {integrity: sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -4745,14 +3793,14 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0 + '@jest/core': 29.7.0(ts-node@10.9.2) '@jest/test-result': 29.7.0 '@jest/types': 29.6.3 chalk: 4.1.2 - create-jest: 29.7.0(@types/node@22.10.5) + create-jest: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) exit: 0.1.2 import-local: 3.1.0 - jest-config: 29.7.0(@types/node@22.10.5) + jest-config: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) jest-util: 29.7.0 jest-validate: 29.7.0 yargs: 17.7.2 @@ -4763,7 +3811,7 @@ packages: - ts-node dev: true - /jest-config@29.7.0(@types/node@22.10.5): + /jest-config@29.7.0(@types/node@22.10.5)(ts-node@10.9.2): resolution: {integrity: sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} peerDependencies: @@ -4798,6 +3846,7 @@ packages: pretty-format: 29.7.0 slash: 3.0.0 strip-json-comments: 3.1.1 + ts-node: 10.9.2(@types/node@22.10.5)(typescript@5.5.4) transitivePeerDependencies: - babel-plugin-macros - supports-color @@ -5143,7 +4192,7 @@ packages: supports-color: 8.1.1 dev: true - /jest@29.7.0(@types/node@22.10.5): + /jest@29.7.0(@types/node@22.10.5)(ts-node@10.9.2): resolution: {integrity: sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==} engines: {node: ^14.15.0 || ^16.10.0 || >=18.0.0} hasBin: true @@ -5153,10 +4202,10 @@ packages: node-notifier: optional: true dependencies: - '@jest/core': 29.7.0 + '@jest/core': 29.7.0(ts-node@10.9.2) '@jest/types': 29.6.3 import-local: 3.1.0 - jest-cli: 29.7.0(@types/node@22.10.5) + jest-cli: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) transitivePeerDependencies: - '@types/node' - babel-plugin-macros @@ -5186,12 +4235,6 @@ packages: engines: {node: '>=4'} dev: true - /jsesc@3.1.0: - resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} - engines: {node: '>=6'} - hasBin: true - dev: true - /json-parse-even-better-errors@2.3.1: resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==} @@ -5335,9 +4378,9 @@ packages: dependencies: p-locate: 5.0.0 - /lodash-es@4.17.21: - resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==} - dev: false + /lodash.memoize@4.1.2: + resolution: {integrity: sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==} + dev: true /lodash.merge@4.6.2: resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==} @@ -5364,10 +4407,6 @@ packages: js-tokens: 4.0.0 dev: false - /loupe@3.1.2: - resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==} - dev: true - /lru-cache@10.2.0: resolution: {integrity: sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q==} engines: {node: 14 || >=16.14} @@ -5386,20 +4425,6 @@ packages: yallist: 4.0.0 dev: true - /magic-string@0.30.17: - resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} - dependencies: - '@jridgewell/sourcemap-codec': 1.5.0 - dev: true - - /magicast@0.3.5: - resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==} - dependencies: - '@babel/parser': 7.26.3 - '@babel/types': 7.26.3 - source-map-js: 1.2.1 - dev: true - /make-dir@3.1.0: resolution: {integrity: sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==} engines: {node: '>=8'} @@ -5407,11 +4432,8 @@ packages: semver: 6.3.0 dev: true - /make-dir@4.0.0: - resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} - engines: {node: '>=10'} - dependencies: - semver: 7.6.3 + /make-error@1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} dev: true /makeerror@1.0.12: @@ -5500,15 +4522,15 @@ packages: dependencies: brace-expansion: 1.1.11 - /minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} - engines: {node: '>=16 || 14 >=14.17'} + /minimatch@5.1.6: + resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==} + engines: {node: '>=10'} dependencies: brace-expansion: 2.0.1 dev: true - /minimatch@9.0.5: - resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + /minimatch@9.0.3: + resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} engines: {node: '>=16 || 14 >=14.17'} dependencies: brace-expansion: 2.0.1 @@ -5522,11 +4544,6 @@ packages: engines: {node: '>=16 || 14 >=14.17'} dev: true - /minipass@7.1.2: - resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} - engines: {node: '>=16 || 14 >=14.17'} - dev: true - /mixin-deep@1.3.2: resolution: {integrity: sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==} engines: {node: '>=0.10.0'} @@ -5550,12 +4567,6 @@ packages: /ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - /nanoid@3.3.8: - resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} - engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} - hasBin: true - dev: true - /nanoid@5.0.9: resolution: {integrity: sha512-Aooyr6MXU6HpvvWXKoVoXwKMs/KyVakWwg7xQfv5/S/RIgJMy0Ifa45H9qqYy7pTCszrHzP21Uk4PZq2HpEM8Q==} engines: {node: ^18 || >=20} @@ -5608,10 +4619,6 @@ packages: resolution: {integrity: sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==} dev: true - /node-releases@2.0.19: - resolution: {integrity: sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==} - dev: true - /noms@0.0.0: resolution: {integrity: sha512-lNDU9VJaOPxUmXcLb+HQFeUgQQPtMI24Gt6hgfuMHRJgMRHMF/qZ4HJD3GDru4sSw9IQl2jPjAYnQrdIeLbwow==} dependencies: @@ -5759,10 +4766,6 @@ packages: engines: {node: '>=6'} dev: true - /package-json-from-dist@1.0.1: - resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} - dev: true - /pako@1.0.11: resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} dev: false @@ -5839,35 +4842,14 @@ packages: minipass: 7.0.4 dev: true - /path-scurry@1.11.1: - resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} - engines: {node: '>=16 || 14 >=14.18'} - dependencies: - lru-cache: 10.2.0 - minipass: 7.1.2 - dev: true - /path-type@4.0.0: resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==} engines: {node: '>=8'} - /pathe@1.1.2: - resolution: {integrity: sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==} - dev: true - - /pathval@2.0.0: - resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} - engines: {node: '>= 14.16'} - dev: true - /picocolors@1.0.0: resolution: {integrity: sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==} dev: true - /picocolors@1.1.1: - resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} - dev: true - /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} @@ -5901,15 +4883,6 @@ packages: engines: {node: '>=0.10.0'} dev: true - /postcss@8.4.49: - resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} - engines: {node: ^10 || ^12 || >=14} - dependencies: - nanoid: 3.3.8 - picocolors: 1.1.1 - source-map-js: 1.2.1 - dev: true - /prelude-ls@1.2.1: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} @@ -6067,10 +5040,6 @@ packages: engines: {node: '>=8'} dev: true - /resolve-pkg-maps@1.0.0: - resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} - dev: true - /resolve-url@0.2.1: resolution: {integrity: sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg==} dev: true @@ -6123,35 +5092,6 @@ packages: glob: 10.3.12 dev: true - /rollup@4.29.1: - resolution: {integrity: sha512-RaJ45M/kmJUzSWDs1Nnd5DdV4eerC98idtUOVr6FfKcgxqvjwHmxc5upLF9qZU9EpsVzzhleFahrT3shLuJzIw==} - engines: {node: '>=18.0.0', npm: '>=8.0.0'} - hasBin: true - dependencies: - '@types/estree': 1.0.6 - optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.29.1 - '@rollup/rollup-android-arm64': 4.29.1 - '@rollup/rollup-darwin-arm64': 4.29.1 - '@rollup/rollup-darwin-x64': 4.29.1 - '@rollup/rollup-freebsd-arm64': 4.29.1 - '@rollup/rollup-freebsd-x64': 4.29.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.29.1 - '@rollup/rollup-linux-arm-musleabihf': 4.29.1 - '@rollup/rollup-linux-arm64-gnu': 4.29.1 - '@rollup/rollup-linux-arm64-musl': 4.29.1 - '@rollup/rollup-linux-loongarch64-gnu': 4.29.1 - '@rollup/rollup-linux-powerpc64le-gnu': 4.29.1 - '@rollup/rollup-linux-riscv64-gnu': 4.29.1 - '@rollup/rollup-linux-s390x-gnu': 4.29.1 - '@rollup/rollup-linux-x64-gnu': 4.29.1 - '@rollup/rollup-linux-x64-musl': 4.29.1 - '@rollup/rollup-win32-arm64-msvc': 4.29.1 - '@rollup/rollup-win32-ia32-msvc': 4.29.1 - '@rollup/rollup-win32-x64-msvc': 4.29.1 - fsevents: 2.3.3 - dev: true - /rsvp@4.8.5: resolution: {integrity: sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==} engines: {node: 6.* || >= 7.*} @@ -6213,11 +5153,6 @@ packages: hasBin: true dev: true - /semver@6.3.1: - resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} - hasBin: true - dev: true - /semver@7.5.4: resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} engines: {node: '>=10'} @@ -6268,10 +5203,6 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} - /siginfo@2.0.0: - resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} - dev: true - /signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} dev: true @@ -6322,11 +5253,6 @@ packages: - supports-color dev: true - /source-map-js@1.2.1: - resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} - engines: {node: '>=0.10.0'} - dev: true - /source-map-resolve@0.5.3: resolution: {integrity: sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==} dependencies: @@ -6375,10 +5301,6 @@ packages: escape-string-regexp: 2.0.0 dev: true - /stackback@0.0.2: - resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} - dev: true - /static-extend@0.1.2: resolution: {integrity: sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g==} engines: {node: '>=0.10.0'} @@ -6387,10 +5309,6 @@ packages: object-copy: 0.1.0 dev: true - /std-env@3.8.0: - resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==} - dev: true - /string-argv@0.3.2: resolution: {integrity: sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q==} engines: {node: '>=0.6.19'} @@ -6517,15 +5435,6 @@ packages: minimatch: 3.1.2 dev: true - /test-exclude@7.0.1: - resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} - engines: {node: '>=18'} - dependencies: - '@istanbuljs/schema': 0.1.3 - glob: 10.4.5 - minimatch: 9.0.5 - dev: true - /text-table@0.2.0: resolution: {integrity: sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==} @@ -6536,14 +5445,6 @@ packages: xtend: 4.0.2 dev: false - /tinybench@2.9.0: - resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} - dev: true - - /tinyexec@0.3.2: - resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} - dev: true - /tinyglobby@0.2.10: resolution: {integrity: sha512-Zc+8eJlFMvgatPZTl6A9L/yht8QqdmUNtURHaKZLmKBE12hNPSrqNkUp2cs3M/UKmNVVAMFQYSjYIVHDjW5zew==} engines: {node: '>=12.0.0'} @@ -6552,21 +5453,6 @@ packages: picomatch: 4.0.2 dev: false - /tinypool@1.0.2: - resolution: {integrity: sha512-al6n+QEANGFOMf/dmUMsuS5/r9B06uwlyNjZZql/zv8J7ybHCgoihBNORZCY2mzUuAnomQa2JdhyHKzZxPCrFA==} - engines: {node: ^18.0.0 || >=20.0.0} - dev: true - - /tinyrainbow@1.2.0: - resolution: {integrity: sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==} - engines: {node: '>=14.0.0'} - dev: true - - /tinyspy@3.0.2: - resolution: {integrity: sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==} - engines: {node: '>=14.0.0'} - dev: true - /tmpl@1.0.5: resolution: {integrity: sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==} dev: true @@ -6612,21 +5498,80 @@ packages: typescript: 5.5.4 dev: true - /tslib@2.7.0: - resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - dev: false + /ts-jest@29.2.5(@babel/core@7.22.8)(esbuild@0.24.2)(jest@29.7.0)(typescript@5.5.4): + resolution: {integrity: sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==} + engines: {node: ^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0} + hasBin: true + peerDependencies: + '@babel/core': '>=7.0.0-beta.0 <8' + '@jest/transform': ^29.0.0 + '@jest/types': ^29.0.0 + babel-jest: ^29.0.0 + esbuild: '*' + jest: ^29.0.0 + typescript: '>=4.3 <6' + peerDependenciesMeta: + '@babel/core': + optional: true + '@jest/transform': + optional: true + '@jest/types': + optional: true + babel-jest: + optional: true + esbuild: + optional: true + dependencies: + '@babel/core': 7.22.8 + bs-logger: 0.2.6 + ejs: 3.1.10 + esbuild: 0.24.2 + fast-json-stable-stringify: 2.1.0 + jest: 29.7.0(@types/node@22.10.5)(ts-node@10.9.2) + jest-util: 29.7.0 + json5: 2.2.3 + lodash.memoize: 4.1.2 + make-error: 1.3.6 + semver: 7.6.3 + typescript: 5.5.4 + yargs-parser: 21.1.1 + dev: true - /tsx@4.19.2: - resolution: {integrity: sha512-pOUl6Vo2LUq/bSa8S5q7b91cgNSjctn9ugq/+Mvow99qW6x/UZYwzxy/3NmqoT66eHYfCVvFvACC58UBPFf28g==} - engines: {node: '>=18.0.0'} + /ts-node@10.9.2(@types/node@22.10.5)(typescript@5.5.4): + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true dependencies: - esbuild: 0.23.1 - get-tsconfig: 4.8.1 - optionalDependencies: - fsevents: 2.3.3 + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.9 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 22.10.5 + acorn: 8.10.0 + acorn-walk: 8.2.0 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.5.4 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 dev: true + /tslib@2.7.0: + resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} + dev: false + /type-check@0.4.0: resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==} engines: {node: '>= 0.8.0'} @@ -6706,17 +5651,6 @@ packages: picocolors: 1.0.0 dev: true - /update-browserslist-db@1.1.1(browserslist@4.24.3): - resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==} - hasBin: true - peerDependencies: - browserslist: '>= 4.21.0' - dependencies: - browserslist: 4.24.3 - escalade: 3.2.0 - picocolors: 1.1.1 - dev: true - /uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} dependencies: @@ -6740,6 +5674,10 @@ packages: hasBin: true dev: false + /v8-compile-cache-lib@3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + dev: true + /v8-to-istanbul@9.1.0: resolution: {integrity: sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==} engines: {node: '>=10.12.0'} @@ -6749,125 +5687,6 @@ packages: convert-source-map: 1.9.0 dev: true - /vite-node@2.1.8(@types/node@22.10.5): - resolution: {integrity: sha512-uPAwSr57kYjAUux+8E2j0q0Fxpn8M9VoyfGiRI8Kfktz9NcYMCenwY5RnZxnF1WTu3TGiYipirIzacLL3VVGFg==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - dependencies: - cac: 6.7.14 - debug: 4.4.0 - es-module-lexer: 1.6.0 - pathe: 1.1.2 - vite: 5.4.11(@types/node@22.10.5) - transitivePeerDependencies: - - '@types/node' - - less - - lightningcss - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - dev: true - - /vite@5.4.11(@types/node@22.10.5): - resolution: {integrity: sha512-c7jFQRklXua0mTzneGW9QVyxFjUgwcihC4bXEtujIo2ouWCe1Ajt/amn2PCxYnhYfd5k09JX3SB7OYWFKYqj8Q==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@types/node': ^18.0.0 || >=20.0.0 - less: '*' - lightningcss: ^1.21.0 - sass: '*' - sass-embedded: '*' - stylus: '*' - sugarss: '*' - terser: ^5.4.0 - peerDependenciesMeta: - '@types/node': - optional: true - less: - optional: true - lightningcss: - optional: true - sass: - optional: true - sass-embedded: - optional: true - stylus: - optional: true - sugarss: - optional: true - terser: - optional: true - dependencies: - '@types/node': 22.10.5 - esbuild: 0.21.5 - postcss: 8.4.49 - rollup: 4.29.1 - optionalDependencies: - fsevents: 2.3.3 - dev: true - - /vitest@2.1.8(@types/node@22.10.5): - resolution: {integrity: sha512-1vBKTZskHw/aosXqQUlVWWlGUxSJR8YtiyZDJAFeW2kPAeX6S3Sool0mjspO+kXLuxVWlEDDowBAeqeAQefqLQ==} - engines: {node: ^18.0.0 || >=20.0.0} - hasBin: true - peerDependencies: - '@edge-runtime/vm': '*' - '@types/node': ^18.0.0 || >=20.0.0 - '@vitest/browser': 2.1.8 - '@vitest/ui': 2.1.8 - happy-dom: '*' - jsdom: '*' - peerDependenciesMeta: - '@edge-runtime/vm': - optional: true - '@types/node': - optional: true - '@vitest/browser': - optional: true - '@vitest/ui': - optional: true - happy-dom: - optional: true - jsdom: - optional: true - dependencies: - '@types/node': 22.10.5 - '@vitest/expect': 2.1.8 - '@vitest/mocker': 2.1.8(vite@5.4.11) - '@vitest/pretty-format': 2.1.8 - '@vitest/runner': 2.1.8 - '@vitest/snapshot': 2.1.8 - '@vitest/spy': 2.1.8 - '@vitest/utils': 2.1.8 - chai: 5.1.2 - debug: 4.4.0 - expect-type: 1.1.0 - magic-string: 0.30.17 - pathe: 1.1.2 - std-env: 3.8.0 - tinybench: 2.9.0 - tinyexec: 0.3.2 - tinypool: 1.0.2 - tinyrainbow: 1.2.0 - vite: 5.4.11(@types/node@22.10.5) - vite-node: 2.1.8(@types/node@22.10.5) - why-is-node-running: 2.3.0 - transitivePeerDependencies: - - less - - lightningcss - - msw - - sass - - sass-embedded - - stylus - - sugarss - - supports-color - - terser - dev: true - /walker@1.0.8: resolution: {integrity: sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==} dependencies: @@ -6911,15 +5730,6 @@ packages: dependencies: isexe: 2.0.0 - /why-is-node-running@2.3.0: - resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} - engines: {node: '>=8'} - hasBin: true - dependencies: - siginfo: 2.0.0 - stackback: 0.0.2 - dev: true - /wrap-ansi@7.0.0: resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} engines: {node: '>=10'} @@ -7041,6 +5851,11 @@ packages: yargs-parser: 21.1.1 dev: true + /yn@3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + dev: true + /yocto-queue@0.1.0: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} diff --git a/src/export/bops/index.ts b/src/export/bops/index.ts index 92ccd12b..73d2b40a 100644 --- a/src/export/bops/index.ts +++ b/src/export/bops/index.ts @@ -1,10 +1,10 @@ import { load } from "cheerio"; -import { isEmpty, isNil } from "lodash-es"; +import { isEmpty, isNil } from "lodash"; import { marked } from "marked"; -import { Passport } from "../../models/passport/index.js"; -import { getResultData } from "../../models/result.js"; -import { sortBreadcrumbs } from "../../models/session/logic.js"; +import { Passport } from "../../models/passport"; +import { getResultData } from "../../models/result"; +import { sortBreadcrumbs } from "../../models/session/logic"; import type { ApplicationUserRole, Breadcrumbs, @@ -19,7 +19,7 @@ import type { ResponseMetaData, SiteAddress, Value, -} from "../../types/index.js"; +} from "../../types"; import { BOPSFullPayload, ComponentType, @@ -28,10 +28,10 @@ import { flatFlags, GOV_PAY_PASSPORT_KEY, USER_ROLES, -} from "../../types/index.js"; -import { DataObject } from "./../../types/data.js"; -import { getMapAndLabelProposalDetails } from "./utils/mapAndLabel.js"; -import { getSchemaProposalDetails, isSchemaType } from "./utils/schema.js"; +} from "../../types"; +import { DataObject } from "./../../types/data"; +import { getMapAndLabelProposalDetails } from "./utils/mapAndLabel"; +import { getSchemaProposalDetails, isSchemaType } from "./utils/schema"; const bopsDictionary = { // applicant or agent details can be provided via TextInput(plural) or ContactInput component diff --git a/src/export/bops/mocks/constraints.ts b/src/export/bops/mocks/constraints.ts index 455d9d09..76d07641 100644 --- a/src/export/bops/mocks/constraints.ts +++ b/src/export/bops/mocks/constraints.ts @@ -1,4 +1,4 @@ -import { Value } from "../../../types/index.js"; +import { Value } from "../../../types"; export const constraints: Value = [ { diff --git a/src/export/bops/mocks/flow.ts b/src/export/bops/mocks/flow.ts index 05d9ad7e..665df986 100644 --- a/src/export/bops/mocks/flow.ts +++ b/src/export/bops/mocks/flow.ts @@ -1,4 +1,4 @@ -import type { FlowGraph } from "../../../types/index.js"; +import type { FlowGraph } from "../../../types"; // Copied from Lambeth on 07 Jan 2024 export const mockPublishedLDCFlow: FlowGraph = { diff --git a/src/export/bops/mocks/payload.ts b/src/export/bops/mocks/payload.ts index 7d316cf1..fcdad139 100644 --- a/src/export/bops/mocks/payload.ts +++ b/src/export/bops/mocks/payload.ts @@ -1,4 +1,4 @@ -import { constraints } from "./constraints.js"; +import { constraints } from "./constraints"; export const mockExpectedBOPSPayload = { site: { diff --git a/src/export/bops/mocks/sections.ts b/src/export/bops/mocks/sections.ts index 28ab0fbc..a5371a0a 100644 --- a/src/export/bops/mocks/sections.ts +++ b/src/export/bops/mocks/sections.ts @@ -1,4 +1,4 @@ -import type { Breadcrumbs, FlowGraph } from "../../../types/index.js"; +import type { Breadcrumbs, FlowGraph } from "../../../types"; export const flowWithThreeSections: FlowGraph = { _root: { diff --git a/src/export/bops/mocks/sessionData.ts b/src/export/bops/mocks/sessionData.ts index 50928d2c..7d5713c7 100644 --- a/src/export/bops/mocks/sessionData.ts +++ b/src/export/bops/mocks/sessionData.ts @@ -1,4 +1,4 @@ -import { constraints } from "./constraints.js"; +import { constraints } from "./constraints"; // Mock sessionData generated on Lambeths' LDC service on 27.04.2023 export const mockSessionData = { diff --git a/src/export/bops/tests/addressInput.test.ts b/src/export/bops/tests/addressInput.test.ts index 84309043..26b70270 100644 --- a/src/export/bops/tests/addressInput.test.ts +++ b/src/export/bops/tests/addressInput.test.ts @@ -1,4 +1,4 @@ -import { computeBOPSParams } from "../index.js"; +import { computeBOPSParams } from "../index"; describe("AddressInput details are set correctly based on the breadcrumbs", () => { const testParams = { diff --git a/src/export/bops/tests/applicationType.test.ts b/src/export/bops/tests/applicationType.test.ts index f6ae0dfa..da1e1e45 100644 --- a/src/export/bops/tests/applicationType.test.ts +++ b/src/export/bops/tests/applicationType.test.ts @@ -1,5 +1,5 @@ -import { DEFAULT_APPLICATION_TYPE } from "../../../types/index.js"; -import { computeBOPSParams } from "../index.js"; +import { DEFAULT_APPLICATION_TYPE } from "../../../types"; +import { computeBOPSParams } from "../index"; describe("application_type is set correctly based on flowName", () => { const testParams = { diff --git a/src/export/bops/tests/constraints.test.ts b/src/export/bops/tests/constraints.test.ts index a338ba38..57de9147 100644 --- a/src/export/bops/tests/constraints.test.ts +++ b/src/export/bops/tests/constraints.test.ts @@ -1,9 +1,9 @@ -import { omit } from "lodash-es"; +import { omit } from "lodash"; -import { computeBOPSParams } from "../index.js"; -import { mockPublishedLDCFlow } from "../mocks/flow.js"; -import { mockExpectedBOPSPayload } from "../mocks/payload.js"; -import { mockSessionData } from "../mocks/sessionData.js"; +import { computeBOPSParams } from "../index"; +import { mockPublishedLDCFlow } from "../mocks/flow"; +import { mockExpectedBOPSPayload } from "../mocks/payload"; +import { mockSessionData } from "../mocks/sessionData"; describe("Full BOPS payload with invalid constraints", () => { const passportWithInvalidConstraints = mockSessionData.passport; diff --git a/src/export/bops/tests/contactInput.test.ts b/src/export/bops/tests/contactInput.test.ts index 8eb5b8d2..01e86469 100644 --- a/src/export/bops/tests/contactInput.test.ts +++ b/src/export/bops/tests/contactInput.test.ts @@ -1,4 +1,4 @@ -import { computeBOPSParams } from "../index.js"; +import { computeBOPSParams } from "../index"; describe("ContactInput details are set correctly based on the breadcrumbs", () => { const testParams = { diff --git a/src/export/bops/tests/files.test.ts b/src/export/bops/tests/files.test.ts index 2d5b7855..a17a88ad 100644 --- a/src/export/bops/tests/files.test.ts +++ b/src/export/bops/tests/files.test.ts @@ -1,5 +1,5 @@ -import type { FileTag } from "../../../types/index.js"; -import { computeBOPSParams, extractTagsFromPassportKey } from "../index.js"; +import type { FileTag } from "../../../types"; +import { computeBOPSParams, extractTagsFromPassportKey } from "../index"; const PASSPORT_UPLOAD_KEY = "locationPlan"; diff --git a/src/export/bops/tests/flags.test.ts b/src/export/bops/tests/flags.test.ts index 238af500..c8b6c9b4 100644 --- a/src/export/bops/tests/flags.test.ts +++ b/src/export/bops/tests/flags.test.ts @@ -1,4 +1,4 @@ -import { computeBOPSParams } from "../index.js"; +import { computeBOPSParams } from "../index"; // Planx ALWAYS sends a flag result & optional override description (test 2) // to BOPS, even if (1) no flag result component is shown to the applicant, diff --git a/src/export/bops/tests/payload.test.ts b/src/export/bops/tests/payload.test.ts index ed5d356b..9e0ad65b 100644 --- a/src/export/bops/tests/payload.test.ts +++ b/src/export/bops/tests/payload.test.ts @@ -1,9 +1,9 @@ -import { omit } from "lodash-es"; +import { omit } from "lodash"; -import { computeBOPSParams } from "../index.js"; -import { mockPublishedLDCFlow } from "../mocks/flow.js"; -import { mockExpectedBOPSPayload } from "../mocks/payload.js"; -import { mockSessionData } from "../mocks/sessionData.js"; +import { computeBOPSParams } from "../index"; +import { mockPublishedLDCFlow } from "../mocks/flow"; +import { mockExpectedBOPSPayload } from "../mocks/payload"; +import { mockSessionData } from "../mocks/sessionData"; describe("computeBOPSParams", () => { describe("Full BOPS payload", () => { diff --git a/src/export/bops/tests/policyRefs.test.ts b/src/export/bops/tests/policyRefs.test.ts index 9af5da49..4c9b61eb 100644 --- a/src/export/bops/tests/policyRefs.test.ts +++ b/src/export/bops/tests/policyRefs.test.ts @@ -1,4 +1,4 @@ -import { parsePolicyRefs } from "../index.js"; +import { parsePolicyRefs } from ".."; describe("parsing policyRefs from PlanX content", () => { it("handles markdown without a link", () => { diff --git a/src/export/bops/tests/proposalDetails.test.ts b/src/export/bops/tests/proposalDetails.test.ts index deaf388b..3e1a0b53 100644 --- a/src/export/bops/tests/proposalDetails.test.ts +++ b/src/export/bops/tests/proposalDetails.test.ts @@ -3,12 +3,9 @@ import type { FlowGraph, QuestionAndResponses, Response, -} from "../../../types/index.js"; -import { formatProposalDetails } from "../index.js"; -import { - flowWithThreeSections, - sectionBreadcrumbs, -} from "../mocks/sections.js"; +} from "../../../types"; +import { formatProposalDetails } from "../index"; +import { flowWithThreeSections, sectionBreadcrumbs } from "../mocks/sections"; const mockFlow = { _root: { diff --git a/src/export/bops/tests/userRole.test.ts b/src/export/bops/tests/userRole.test.ts index 0b8d14f1..f66d6d56 100644 --- a/src/export/bops/tests/userRole.test.ts +++ b/src/export/bops/tests/userRole.test.ts @@ -1,5 +1,5 @@ -import { USER_ROLES } from "../../../types/index.js"; -import { computeBOPSParams } from "../index.js"; +import { USER_ROLES } from "../../../types"; +import { computeBOPSParams } from "../index"; const mockFlow = { _root: { diff --git a/src/export/bops/tests/works.test.ts b/src/export/bops/tests/works.test.ts index 99b6a976..4bc889bf 100644 --- a/src/export/bops/tests/works.test.ts +++ b/src/export/bops/tests/works.test.ts @@ -1,4 +1,4 @@ -import { computeBOPSParams } from "../index.js"; +import { computeBOPSParams } from "../index"; describe("works is set correctly based on the passport", () => { const testParams = { diff --git a/src/export/bops/utils/index.ts b/src/export/bops/utils/index.ts index e1e8c715..84606e31 100644 --- a/src/export/bops/utils/index.ts +++ b/src/export/bops/utils/index.ts @@ -6,7 +6,7 @@ import { Node, QuestionAndResponses, Response, -} from "../../../types/index.js"; +} from "../../../types"; /** * Schema driven components and MapAndLabel components must be unpacked diff --git a/src/export/bops/utils/mapAndLabel.ts b/src/export/bops/utils/mapAndLabel.ts index b161b2e0..35dcd2a9 100644 --- a/src/export/bops/utils/mapAndLabel.ts +++ b/src/export/bops/utils/mapAndLabel.ts @@ -1,14 +1,14 @@ import { z } from "zod"; -import { EnrichedCrumb, QuestionAndResponses } from "../../../types/index.js"; +import { EnrichedCrumb, QuestionAndResponses } from "../../../types"; import { formatQuestion, formatResponses, GetProposalDetails, parseNodeData, SchemaNodeData, - SchemaResponses, -} from "./index.js"; +} from "."; +import { SchemaResponses } from "./index"; /** * Parse the breadcrumb which contains the user's responses diff --git a/src/export/bops/utils/schema.ts b/src/export/bops/utils/schema.ts index 5cb337f2..ca2fb9f5 100644 --- a/src/export/bops/utils/schema.ts +++ b/src/export/bops/utils/schema.ts @@ -4,13 +4,13 @@ import { ComponentType, EnrichedCrumb, QuestionAndResponses, -} from "../../../types/index.js"; +} from "../../../types"; import { formatQuestion, formatResponses, GetProposalDetails, parseNodeData, -} from "./index.js"; +} from "."; export const isSchemaType = (type: ComponentType) => [ComponentType.Page, ComponentType.List].includes(type); diff --git a/src/export/csv/index.ts b/src/export/csv/index.ts index 9368204c..8fb8139e 100644 --- a/src/export/csv/index.ts +++ b/src/export/csv/index.ts @@ -1,13 +1,13 @@ -import { omit } from "lodash-es"; +import { omit } from "lodash"; -import { Passport } from "../../models/index.js"; +import { Passport } from "../../models"; import type { BOPSFullPayload, GovUKPayment, Passport as IPassport, QuestionAndResponses, Response, -} from "../../types/index.js"; +} from "../../types"; export function computeCSVData({ sessionId, diff --git a/src/export/digitalPlanning/index.ts b/src/export/digitalPlanning/index.ts index d7d32590..7fefc5c4 100644 --- a/src/export/digitalPlanning/index.ts +++ b/src/export/digitalPlanning/index.ts @@ -1,8 +1,8 @@ -import { findPublishedFlowBySessionId } from "../../requests/flow.js"; -import { getSessionById, getSessionMetadata } from "../../requests/session.js"; -import { ExportParams } from "../index.js"; -import { DigitalPlanning } from "./model.js"; -import { Application as DigitalPlanningPayload } from "./schema/types.js"; +import { findPublishedFlowBySessionId } from "../../requests/flow"; +import { getSessionById, getSessionMetadata } from "../../requests/session"; +import { ExportParams } from ".."; +import { DigitalPlanning } from "./model"; +import { Application as DigitalPlanningPayload } from "./schema/types"; interface DigitalPlanningExportParams extends ExportParams { skipValidation?: boolean; diff --git a/src/export/digitalPlanning/mocks/flows/planningPermission.ts b/src/export/digitalPlanning/mocks/flows/planningPermission.ts index 3ebed6c9..5741618d 100644 --- a/src/export/digitalPlanning/mocks/flows/planningPermission.ts +++ b/src/export/digitalPlanning/mocks/flows/planningPermission.ts @@ -1,4 +1,4 @@ -import { FlowGraph } from "../../../../types/index.js"; +import { FlowGraph } from "../../../../types"; // Copied from Lambeth on 07 Jan 2024 export const mockPublishedPlanningPermissionFlow: FlowGraph = { diff --git a/src/export/digitalPlanning/mocks/flows/priorApproval.ts b/src/export/digitalPlanning/mocks/flows/priorApproval.ts index 0817969b..be74e1aa 100644 --- a/src/export/digitalPlanning/mocks/flows/priorApproval.ts +++ b/src/export/digitalPlanning/mocks/flows/priorApproval.ts @@ -1,4 +1,4 @@ -import { FlowGraph } from "../../../../types/index.js"; +import { FlowGraph } from "../../../../types"; // Copied from Lambeth on 07 Jan 2024 export const mockPublishedPriorApprovalFlow: FlowGraph = { diff --git a/src/export/digitalPlanning/model.test.ts b/src/export/digitalPlanning/model.test.ts index a01b2d52..9386bb42 100644 --- a/src/export/digitalPlanning/model.test.ts +++ b/src/export/digitalPlanning/model.test.ts @@ -1,20 +1,16 @@ -import { Passport } from "../../models/passport/index.js"; -import { - Breadcrumbs, - GovUKPayment, - SessionMetadata, -} from "../../types/index.js"; -import { mockPublishedLDCFlow } from "../bops/mocks/flow.js"; -import { mockPublishedPlanningPermissionFlow } from "./mocks/flows/planningPermission.js"; -import { mockPublishedPriorApprovalFlow } from "./mocks/flows/priorApproval.js"; +import { Passport } from "../../models/passport"; +import { Breadcrumbs, GovUKPayment, SessionMetadata } from "../../types"; +import { mockPublishedLDCFlow } from "../bops/mocks/flow"; +import { mockPublishedPlanningPermissionFlow } from "./mocks/flows/planningPermission"; +import { mockPublishedPriorApprovalFlow } from "./mocks/flows/priorApproval"; import { mockLDCESession, mockLDCPSession, mockLDCPSession2, -} from "./mocks/lawfulDevelopmentCertificate.js"; -import { mockPlanningPermissionSession } from "./mocks/planningPermission.js"; -import { mockPriorApprovalSession } from "./mocks/priorApproval.js"; -import { DigitalPlanning } from "./model.js"; +} from "./mocks/lawfulDevelopmentCertificate"; +import { mockPlanningPermissionSession } from "./mocks/planningPermission"; +import { mockPriorApprovalSession } from "./mocks/priorApproval"; +import { DigitalPlanning } from "./model"; // `getPlanningConstraints` relies on an accurate teamSlug to be available, other vars can be be mocked const mockMetadataForSession = ( diff --git a/src/export/digitalPlanning/model.ts b/src/export/digitalPlanning/model.ts index 3077fd0c..9a57c873 100644 --- a/src/export/digitalPlanning/model.ts +++ b/src/export/digitalPlanning/model.ts @@ -1,10 +1,10 @@ -import { default as Ajv } from "ajv/dist/ajv.js"; -import { default as addFormats } from "ajv-formats/dist/index.js"; +import Ajv from "ajv"; +import addFormats from "ajv-formats"; import { Feature } from "geojson"; -import { set } from "lodash-es"; +import { set } from "lodash"; -import { Passport } from "../../models/index.js"; -import { getResultData } from "../../models/result.js"; +import { Passport } from "../../models"; +import { getResultData } from "../../models/result"; import { Breadcrumbs, ComponentType, @@ -16,14 +16,14 @@ import { Passport as IPassport, SessionMetadata, Value, -} from "../../types/index.js"; -import { getFeeBreakdown } from "../../utils/index.js"; +} from "../../types"; +import { getFeeBreakdown } from "../../utils"; import { extractFileDescriptionForPassportKey, formatProposalDetails, parsePolicyRefs, -} from "../bops/index.js"; -import jsonSchema from "./schema/schema.json" with { type: "json" }; +} from "../bops"; +import jsonSchema from "./schema/schema.json"; import { Application as Payload, ApplicationType, @@ -44,7 +44,7 @@ import { Proposal, RequestedFiles, SiteContact, -} from "./schema/types.js"; +} from "./schema/types"; const PARKING_TYPES = [ "cars", @@ -134,7 +134,7 @@ export class DigitalPlanning { } validatePayload() { - const ajv = addFormats.default(new Ajv.default({ allowUnionTypes: true })); + const ajv = addFormats(new Ajv({ allowUnionTypes: true })); const validate = ajv.compile(jsonSchema); const isValid = validate(this.payload); diff --git a/src/export/index.ts b/src/export/index.ts index 5adc8ec1..12b4f8ad 100644 --- a/src/export/index.ts +++ b/src/export/index.ts @@ -1,13 +1,13 @@ import { GraphQLClient } from "graphql-request"; -import { findPublishedFlowBySessionId, getFlowName } from "../requests/flow.js"; -import { getSessionById } from "../requests/session.js"; -import type { BOPSFullPayload, QuestionAndResponses } from "../types/index.js"; -import { computeBOPSParams } from "./bops/index.js"; -import { computeCSVData } from "./csv/index.js"; -import { generateDigitalPlanningPayload } from "./digitalPlanning/index.js"; -import { Application as DigitalPlanningApplication } from "./digitalPlanning/schema/types.js"; -import { generateOneAppXML } from "./oneApp/index.js"; +import { findPublishedFlowBySessionId, getFlowName } from "../requests/flow"; +import { getSessionById, getSessionPassport } from "../requests/session"; +import type { BOPSFullPayload, QuestionAndResponses } from "../types"; +import { computeBOPSParams } from "./bops"; +import { computeCSVData } from "./csv"; +import { generateDigitalPlanningPayload } from "./digitalPlanning"; +import { Application as DigitalPlanningApplication } from "./digitalPlanning/schema/types"; +import { generateOneAppXML } from "./oneApp"; export type ExportParams = { client: GraphQLClient; diff --git a/src/export/oneApp/OneApp.test.ts b/src/export/oneApp/OneApp.test.ts index 4acd4619..7986f0b4 100644 --- a/src/export/oneApp/OneApp.test.ts +++ b/src/export/oneApp/OneApp.test.ts @@ -1,17 +1,17 @@ import { X2jOptions, XMLParser, XMLValidator } from "fast-xml-parser"; -import { get } from "lodash-es"; +import { get } from "lodash"; -import { Passport } from "../../models/passport/index.js"; -import { Address, SiteAddress } from "../../types/index.js"; -import { mockProposedLDCPassportData } from "./mocks/passport.js"; -import { OneAppPayload } from "./model.js"; +import { Passport } from "../../models/passport"; +import { Address, SiteAddress } from "../../types"; +import { mockProposedLDCPassportData } from "./mocks/passport"; +import { OneAppPayload } from "./model"; import { ApplicantOrAgent, ExternalAddress, FileAttachment, IOneAppPayload, ProposedUseApplication, -} from "./types.js"; +} from "./types"; // Match build options in OneAppPayload.buildXML() const parseOptions: X2jOptions = { @@ -780,7 +780,7 @@ test("Unhandled error", () => { buildXML: () => void; getXMLBuilder: () => void; }; - payload.getXMLBuilder = vi.fn().mockImplementation(() => { + payload.getXMLBuilder = jest.fn().mockImplementation(() => { throw Error(); }); expect(() => payload.buildXML()).toThrow(/Unhandled exception/); diff --git a/src/export/oneApp/index.test.ts b/src/export/oneApp/index.test.ts index 1b5c259c..50efcce5 100644 --- a/src/export/oneApp/index.test.ts +++ b/src/export/oneApp/index.test.ts @@ -1,27 +1,26 @@ import { X2jOptions, XMLParser, XMLValidator } from "fast-xml-parser"; -import { get } from "lodash-es"; -import { vi } from "vitest"; +import { get } from "lodash"; -import { getGraphQLClient } from "../../requests/graphql.js"; -import { generateOneAppXML } from "./index.js"; -import { mockSession } from "./mocks/session.js"; -import { OneAppPayload } from "./model.js"; -import { FileAttachment } from "./types.js"; +import { getGraphQLClient } from "../../requests/graphql"; +import { generateOneAppXML } from "./index"; +import { mockSession } from "./mocks/session"; +import { OneAppPayload } from "./model"; +import { FileAttachment } from "./types"; -let mockHasRequiredDataForTemplate = vi.fn(); -vi.mock("../../templates", () => { +let mockHasRequiredDataForTemplate = jest.fn(); +jest.mock("../../templates", () => { return { - hasRequiredDataForTemplate: vi.fn(() => mockHasRequiredDataForTemplate()), + hasRequiredDataForTemplate: jest.fn(() => mockHasRequiredDataForTemplate()), }; }); -vi.mock("../../requests/session", () => ({ - getSessionById: vi.fn(() => mockSession), +jest.mock("../../requests/session", () => ({ + getSessionById: jest.fn(() => mockSession), })); -let mockGetDocumentTemplateNamesForSession = vi.fn(); -vi.mock("../../requests/document-templates", () => ({ - getDocumentTemplateNamesForSession: vi.fn(() => +let mockGetDocumentTemplateNamesForSession = jest.fn(); +jest.mock("../../requests/document-templates", () => ({ + getDocumentTemplateNamesForSession: jest.fn(() => mockGetDocumentTemplateNamesForSession(), ), })); @@ -39,13 +38,13 @@ const client = getGraphQLClient({ url: process.env.HASURA_GRAPHQL_URL! }); describe("generateOneAppXML", () => { test("includes template doc files when the flow has document templates", async () => { // Fist two templates valid, last two invalid - mockGetDocumentTemplateNamesForSession = vi.fn(() => [ + mockGetDocumentTemplateNamesForSession = jest.fn(() => [ "LDCE", "LDCE_redacted", "LDCP", "LDCP_redacted", ]); - mockHasRequiredDataForTemplate = vi + mockHasRequiredDataForTemplate = jest .fn() .mockImplementationOnce(() => true) .mockImplementationOnce(() => true) diff --git a/src/export/oneApp/index.ts b/src/export/oneApp/index.ts index cf611786..9b26a3ba 100644 --- a/src/export/oneApp/index.ts +++ b/src/export/oneApp/index.ts @@ -1,10 +1,10 @@ -import { Passport } from "../../models/passport/index.js"; -import { getDocumentTemplateNamesForSession } from "../../requests/document-templates.js"; -import { getSessionById } from "../../requests/session.js"; -import { hasRequiredDataForTemplate } from "../../templates/index.js"; -import { Passport as IPassport } from "../../types/index.js"; -import { ExportParams } from "../index.js"; -import { OneAppPayload } from "./model.js"; +import { Passport } from "../../models/passport"; +import { getDocumentTemplateNamesForSession } from "../../requests/document-templates"; +import { getSessionById } from "../../requests/session"; +import { hasRequiredDataForTemplate } from "../../templates"; +import { Passport as IPassport } from "../../types"; +import { ExportParams } from ".."; +import { OneAppPayload } from "./model"; export async function generateOneAppXML({ client, diff --git a/src/export/oneApp/mocks/passport.ts b/src/export/oneApp/mocks/passport.ts index a8343af4..5b590500 100644 --- a/src/export/oneApp/mocks/passport.ts +++ b/src/export/oneApp/mocks/passport.ts @@ -1,4 +1,4 @@ -import { DataObject } from "../../../types/index.js"; +import { DataObject } from "../../../types"; // Mock passport generated on Bucks' LDC service on 10/02/23 export const mockProposedLDCPassportData: DataObject = { diff --git a/src/export/oneApp/mocks/session.ts b/src/export/oneApp/mocks/session.ts index c336437e..952d1d10 100644 --- a/src/export/oneApp/mocks/session.ts +++ b/src/export/oneApp/mocks/session.ts @@ -1,5 +1,5 @@ -import { Session } from "../../../types/index.js"; -import { mockProposedLDCPassportData } from "./passport.js"; +import { Session } from "../../../types"; +import { mockProposedLDCPassportData } from "./passport"; export const mockSession: Session = { id: "session123", diff --git a/src/export/oneApp/model.ts b/src/export/oneApp/model.ts index d1652780..adc16b32 100644 --- a/src/export/oneApp/model.ts +++ b/src/export/oneApp/model.ts @@ -2,15 +2,15 @@ import { XMLBuilder, XmlBuilderOptions } from "fast-xml-parser"; import type { PartialDeep } from "type-fest"; import { ZodError } from "zod"; -import { Passport } from "../../models/passport/index.js"; +import { Passport } from "../../models/passport"; import type { Address, AddressSources, GovUKPayment, SiteAddress, -} from "../../types/index.js"; -import { GOV_PAY_PASSPORT_KEY } from "../../types/index.js"; -import { iOneAppPayloadSchema } from "./schema.js"; +} from "../../types"; +import { GOV_PAY_PASSPORT_KEY } from "../../types"; +import { iOneAppPayloadSchema } from "./schema"; import type { ApplicantOrAgent, ApplicationScenario, @@ -21,7 +21,7 @@ import type { IOneAppPayload, Payment, ProposedUseApplication, -} from "./types.js"; +} from "./types"; /** * Available values for passport variable "application.type" diff --git a/src/export/oneApp/schema.ts b/src/export/oneApp/schema.ts index c2c0a185..21ee5ba5 100644 --- a/src/export/oneApp/schema.ts +++ b/src/export/oneApp/schema.ts @@ -1,4 +1,4 @@ -import { get } from "lodash-es"; +import { get } from "lodash"; import { z } from "zod"; // Models the XML payload required by Uniform to process PlanX applications diff --git a/src/index.ts b/src/index.ts index 484d7bbc..06cdc842 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,5 +1,5 @@ -export * from "./export/index.js"; -export * from "./models/index.js"; -export * from "./requests/index.js"; -export * from "./templates/index.js"; -export * from "./utils/index.js"; +export * from "./export"; +export * from "./models"; +export * from "./requests"; +export * from "./templates"; +export * from "./utils"; diff --git a/src/models/index.test.ts b/src/models/index.test.ts index c2e9d320..fea89665 100644 --- a/src/models/index.test.ts +++ b/src/models/index.test.ts @@ -1,4 +1,4 @@ -import { sortBreadcrumbs, sortFlow } from "./index.js"; +import { sortBreadcrumbs, sortFlow } from "./index"; describe("Logic", () => { test("sortFlow is available", () => { diff --git a/src/models/index.ts b/src/models/index.ts index ba11a591..cb4a7389 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -1,2 +1,2 @@ -export * from "./passport/index.js"; -export * from "./session/index.js"; +export * from "./passport"; +export * from "./session"; diff --git a/src/models/passport/index.ts b/src/models/passport/index.ts index 525417de..cee3a0f8 100644 --- a/src/models/passport/index.ts +++ b/src/models/passport/index.ts @@ -1 +1 @@ -export * from "./passport.js"; +export * from "./passport"; diff --git a/src/models/passport/mocks/index.ts b/src/models/passport/mocks/index.ts index 35810297..0eef0cef 100644 --- a/src/models/passport/mocks/index.ts +++ b/src/models/passport/mocks/index.ts @@ -1,4 +1,4 @@ -import type { Passport } from "../../../types/index.js"; +import type { Passport } from "../../../types"; export const noFiles: Passport = { data: { diff --git a/src/models/passport/passport.test.ts b/src/models/passport/passport.test.ts index 62bc1949..d3e38660 100644 --- a/src/models/passport/passport.test.ts +++ b/src/models/passport/passport.test.ts @@ -1,12 +1,12 @@ -import { Passport as IPassport } from "../../types/index.js"; -import { Passport, QuestionWithFiles } from "./index.js"; +import { Passport as IPassport } from "../../types"; +import { Passport, QuestionWithFiles } from "."; import { drawBoundaryComponent, multipleFileQuestions, multipleFilesMultipleQuestions, noFiles, singleFileQuestion, -} from "./mocks/index.js"; +} from "./mocks"; describe("Passport", () => { describe("constructor", () => { diff --git a/src/models/passport/passport.ts b/src/models/passport/passport.ts index 55caf645..62e18720 100644 --- a/src/models/passport/passport.ts +++ b/src/models/passport/passport.ts @@ -1,11 +1,11 @@ -import { get as getByKeyPath, has } from "lodash-es"; +import { get as getByKeyPath, has } from "lodash"; import type { DataObject, KeyPath, Passport as IPassport, Value, -} from "../../types/index.js"; +} from "../../types"; interface File { key: string; diff --git a/src/models/result.ts b/src/models/result.ts index c4c26d38..387226b9 100644 --- a/src/models/result.ts +++ b/src/models/result.ts @@ -4,13 +4,13 @@ import type { FlagSet, FlowGraph, ResultData, -} from "../types/index.js"; +} from "../types"; import { ComponentType, DEFAULT_FLAG_CATEGORY, flatFlags, resultOverrides, -} from "../types/index.js"; +} from "../types"; // Functions in this file need to stay in sync with planx-new/editor.planx.uk/src/pages/FlowEditor/lib/store/preview.ts !! // TODO eventually replace/combine ?? diff --git a/src/models/session/index.ts b/src/models/session/index.ts index aed59324..f1104893 100644 --- a/src/models/session/index.ts +++ b/src/models/session/index.ts @@ -1 +1 @@ -export * from "./logic.js"; +export * from "./logic"; diff --git a/src/models/session/logic.test.ts b/src/models/session/logic.test.ts index 2c6bf99b..5beb6031 100644 --- a/src/models/session/logic.test.ts +++ b/src/models/session/logic.test.ts @@ -1,13 +1,10 @@ -import { - type OrderedBreadcrumbs, - type OrderedFlow, -} from "../../types/index.js"; -import { getPathForNode, sortBreadcrumbs, sortFlow } from "./logic.js"; -import * as complex from "./mocks/complex-flow-breadcrumbs.js"; -import * as portals from "./mocks/flow-with-internal-portals.js"; -import * as large from "./mocks/large-real-life-flow.js"; -import * as sectioned from "./mocks/section-flow-breadcrumbs.js"; -import * as simple from "./mocks/simple-flow-breadcrumbs.js"; +import { type OrderedBreadcrumbs, type OrderedFlow } from "../../types"; +import { getPathForNode, sortBreadcrumbs, sortFlow } from "./logic"; +import * as complex from "./mocks/complex-flow-breadcrumbs"; +import * as portals from "./mocks/flow-with-internal-portals"; +import * as large from "./mocks/large-real-life-flow"; +import * as sectioned from "./mocks/section-flow-breadcrumbs"; +import * as simple from "./mocks/simple-flow-breadcrumbs"; describe("sortFlow", () => { test("it sorts a simple graph of nodes into an ordered array", () => { diff --git a/src/models/session/logic.ts b/src/models/session/logic.ts index 4a7aca28..c0aa34e6 100644 --- a/src/models/session/logic.ts +++ b/src/models/session/logic.ts @@ -9,8 +9,8 @@ import type { NodeId, OrderedBreadcrumbs, OrderedFlow, -} from "../../types/index.js"; -import { ComponentType } from "../../types/index.js"; +} from "../../types"; +import { ComponentType } from "../../types"; export function sortFlow(flow: FlowGraph): OrderedFlow { let sectionId: string | undefined; diff --git a/src/models/session/mocks/complex-flow-breadcrumbs.ts b/src/models/session/mocks/complex-flow-breadcrumbs.ts index ee4ba471..ba07fdac 100644 --- a/src/models/session/mocks/complex-flow-breadcrumbs.ts +++ b/src/models/session/mocks/complex-flow-breadcrumbs.ts @@ -4,8 +4,8 @@ import type { NormalizedFlow, OrderedBreadcrumbs, OrderedFlow, -} from "../../../types/index.js"; -import { ComponentType } from "../../../types/index.js"; +} from "../../../types"; +import { ComponentType } from "../../../types"; export const flow: FlowGraph = { _root: { diff --git a/src/models/session/mocks/flow-with-internal-portals.ts b/src/models/session/mocks/flow-with-internal-portals.ts index 1af983e8..48025d2d 100644 --- a/src/models/session/mocks/flow-with-internal-portals.ts +++ b/src/models/session/mocks/flow-with-internal-portals.ts @@ -1,4 +1,4 @@ -import { ComponentType, FlowGraph } from "../../../types/index.js"; +import { ComponentType, FlowGraph } from "../../../types"; export const flow: FlowGraph = { _root: { diff --git a/src/models/session/mocks/large-real-life-flow.ts b/src/models/session/mocks/large-real-life-flow.ts index 4bbbaaf2..7fff6204 100644 --- a/src/models/session/mocks/large-real-life-flow.ts +++ b/src/models/session/mocks/large-real-life-flow.ts @@ -1,4 +1,4 @@ -import type { Breadcrumbs, FlowGraph } from "../../../types/index.js"; +import type { Breadcrumbs, FlowGraph } from "../../../types"; export const breadcrumbs: Breadcrumbs = { "77iAKzVKuK": { diff --git a/src/models/session/mocks/section-flow-breadcrumbs.ts b/src/models/session/mocks/section-flow-breadcrumbs.ts index 0892e8cf..c1afe1bf 100644 --- a/src/models/session/mocks/section-flow-breadcrumbs.ts +++ b/src/models/session/mocks/section-flow-breadcrumbs.ts @@ -4,8 +4,8 @@ import type { NormalizedFlow, OrderedBreadcrumbs, OrderedFlow, -} from "../../../types/index.js"; -import { ComponentType } from "../../../types/index.js"; +} from "../../../types"; +import { ComponentType } from "../../../types"; export const flow: FlowGraph = { _root: { diff --git a/src/models/session/mocks/section-scenarios.ts b/src/models/session/mocks/section-scenarios.ts index c90d4865..af033f50 100644 --- a/src/models/session/mocks/section-scenarios.ts +++ b/src/models/session/mocks/section-scenarios.ts @@ -3,8 +3,8 @@ import type { FlowGraph, NodeId, SectionOverview, -} from "../../../types/index.js"; -import { SectionStatuses } from "../../../types/index.js"; +} from "../../../types"; +import { SectionStatuses } from "../../../types"; export const flow: FlowGraph = { _root: { diff --git a/src/models/session/mocks/simple-flow-breadcrumbs.ts b/src/models/session/mocks/simple-flow-breadcrumbs.ts index f97f481e..2d87c195 100644 --- a/src/models/session/mocks/simple-flow-breadcrumbs.ts +++ b/src/models/session/mocks/simple-flow-breadcrumbs.ts @@ -4,8 +4,8 @@ import type { NormalizedFlow, OrderedBreadcrumbs, OrderedFlow, -} from "../../../types/index.js"; -import { ComponentType } from "../../../types/index.js"; +} from "../../../types"; +import { ComponentType } from "../../../types"; export const flow: FlowGraph = { _root: { diff --git a/src/requests/application.ts b/src/requests/application.ts index f74704c2..6c3f9a2c 100644 --- a/src/requests/application.ts +++ b/src/requests/application.ts @@ -1,6 +1,6 @@ import { gql, GraphQLClient } from "graphql-request"; -import type { ApplicationResponse } from "../types/index.js"; +import type { ApplicationResponse } from "../types"; export class ApplicationClient { protected client: GraphQLClient; diff --git a/src/requests/flow.ts b/src/requests/flow.ts index 2eaa7029..b0138b8f 100644 --- a/src/requests/flow.ts +++ b/src/requests/flow.ts @@ -1,8 +1,8 @@ import type { GraphQLClient } from "graphql-request"; import { gql } from "graphql-request"; -import { capitalize } from "lodash-es"; +import { capitalize } from "lodash"; -import type { FlowGraph, FlowStatus } from "../types/index.js"; +import type { FlowGraph, FlowStatus } from "../types"; export class FlowClient { protected client: GraphQLClient; diff --git a/src/requests/index.test.ts b/src/requests/index.test.ts index ff4ebb2f..79a9359c 100644 --- a/src/requests/index.test.ts +++ b/src/requests/index.test.ts @@ -1,27 +1,35 @@ -import { vi } from "vitest"; - -import { CoreDomainClient } from "./index.js"; +import { CoreDomainClient } from "./index"; describe("DomainClient", () => { + const OriginalEnv = process.env; + beforeEach(() => { - vi.resetModules(); - vi.stubEnv("HASURA_GRAPHQL_ADMIN_SECRET", "shhh"); - vi.stubEnv("HASURA_GRAPHQL_URL", "http://a.b.c"); + jest.resetModules(); + process.env = { + ...OriginalEnv, + HASURA_GRAPHQL_ADMIN_SECRET: "shhh", + HASURA_GRAPHQL_URL: "http://a.b.c", + }; }); afterAll(() => { - vi.unstubAllEnvs(); + process.env = OriginalEnv; }); describe("CoreDomainClient", () => { + const OriginalEnv = process.env; + beforeEach(() => { - vi.resetModules(); - vi.stubEnv("HASURA_GRAPHQL_ADMIN_SECRET", "shhh"); - vi.stubEnv("HASURA_GRAPHQL_URL", "http://a.b.c"); + jest.resetModules(); + process.env = { + ...OriginalEnv, + HASURA_GRAPHQL_ADMIN_SECRET: "shhh", + HASURA_GRAPHQL_URL: "http://a.b.c", + }; }); afterAll(() => { - vi.unstubAllEnvs(); + process.env = OriginalEnv; }); test("instantiating a client without any arguments", () => { diff --git a/src/requests/index.ts b/src/requests/index.ts index 505e3aa1..6c7e05f4 100644 --- a/src/requests/index.ts +++ b/src/requests/index.ts @@ -1,17 +1,17 @@ import type { GraphQLClient } from "graphql-request"; -import { ExportClient } from "../export/index.js"; -import { ApplicationClient } from "./application.js"; +import { ExportClient } from "../export"; +import { ApplicationClient } from "./application"; import { getDocumentTemplateNamesForFlow, getDocumentTemplateNamesForSession, -} from "./document-templates.js"; -import { FlowClient } from "./flow.js"; -import { Auth, getGraphQLClient } from "./graphql.js"; -import { PaymentRequestClient } from "./payment-request.js"; -import { SessionClient } from "./session.js"; -import { TeamClient } from "./team.js"; -import { UserClient } from "./user.js"; +} from "./document-templates"; +import { FlowClient } from "./flow"; +import { Auth, getGraphQLClient } from "./graphql"; +import { PaymentRequestClient } from "./payment-request"; +import { SessionClient } from "./session"; +import { TeamClient } from "./team"; +import { UserClient } from "./user"; const defaultURL = process.env.HASURA_GRAPHQL_URL!; diff --git a/src/requests/payment-request.test.ts b/src/requests/payment-request.test.ts index eaf113b7..f2caa22e 100644 --- a/src/requests/payment-request.test.ts +++ b/src/requests/payment-request.test.ts @@ -1,5 +1,5 @@ -import type { KeyPath, Session } from "../types/index.js"; -import { extractSessionPreviewData } from "./payment-request.js"; +import type { KeyPath, Session } from "../types"; +import { extractSessionPreviewData } from "./payment-request"; describe("extractSessionPreviewData", () => { test("passport data must be available", () => { diff --git a/src/requests/payment-request.ts b/src/requests/payment-request.ts index 41b90c4c..b1f20865 100644 --- a/src/requests/payment-request.ts +++ b/src/requests/payment-request.ts @@ -1,18 +1,13 @@ import { gql, GraphQLClient } from "graphql-request"; -import { set as setByKeyPath } from "lodash-es"; +import { set as setByKeyPath } from "lodash"; -import { Passport } from "../models/passport/index.js"; -import { getLatestFlowGraph } from "../requests/flow.js"; -import type { - KeyPath, - PaymentRequest, - Session, - Value, -} from "../types/index.js"; -import { ComponentType, FlowGraph, Node } from "../types/index.js"; -import { getFeeBreakdown } from "../utils/index.js"; -import { FeeBreakdown } from "./../types/feeBreakdown.js"; -import { getDetailedSessionById } from "./session.js"; +import { Passport } from "../models/passport"; +import { getLatestFlowGraph } from "../requests/flow"; +import type { KeyPath, PaymentRequest, Session, Value } from "../types"; +import { ComponentType, FlowGraph, Node } from "../types"; +import { getFeeBreakdown } from "../utils"; +import { FeeBreakdown } from "./../types/feeBreakdown"; +import { getDetailedSessionById } from "./session"; export class PaymentRequestClient { protected client: GraphQLClient; diff --git a/src/requests/session.ts b/src/requests/session.ts index 683ecde4..7107eac0 100644 --- a/src/requests/session.ts +++ b/src/requests/session.ts @@ -8,7 +8,7 @@ import type { Session, SessionData, SessionMetadata, -} from "../types/index.js"; +} from "../types"; export class SessionClient { protected client: GraphQLClient; diff --git a/src/requests/team.ts b/src/requests/team.ts index 9449858d..5b4c5c6b 100644 --- a/src/requests/team.ts +++ b/src/requests/team.ts @@ -1,9 +1,9 @@ import type { GraphQLClient } from "graphql-request"; import { gql } from "graphql-request"; -import { TeamRole } from "../types/roles.js"; -import { Team, TeamSettings, TeamTheme } from "../types/team.js"; -import { decrypt } from "../utils/encryption.js"; +import { TeamRole } from "../types/roles"; +import { Team, TeamSettings, TeamTheme } from "../types/team"; +import { decrypt } from "../utils/encryption"; interface UpsertMember { userId: number; diff --git a/src/requests/user.ts b/src/requests/user.ts index 82e48ee5..0c3d1ac4 100644 --- a/src/requests/user.ts +++ b/src/requests/user.ts @@ -1,7 +1,7 @@ import type { GraphQLClient } from "graphql-request"; import { gql } from "graphql-request"; -import { User } from "../types/user.js"; +import { User } from "../types/user"; interface CreateUser { firstName: string; diff --git a/src/templates/docx/LDCETemplate.ts b/src/templates/docx/LDCETemplate.ts index 65b586d2..62fe9745 100644 --- a/src/templates/docx/LDCETemplate.ts +++ b/src/templates/docx/LDCETemplate.ts @@ -1,11 +1,8 @@ import type { Document } from "docx"; -import type { Passport } from "../../types/index.js"; -import { - getBoolean as _getBoolean, - getString as _getString, -} from "../helpers.js"; -import { buildFormTemplate } from "./builder.js"; +import type { Passport } from "../../types"; +import { getBoolean as _getBoolean, getString as _getString } from "../helpers"; +import { buildFormTemplate } from "./builder"; export function LDCETemplate(passport: Passport): Document { const get = (path: string): string => _getString(passport.data!, path); diff --git a/src/templates/docx/LDCPTemplate.ts b/src/templates/docx/LDCPTemplate.ts index a9057338..03421a53 100644 --- a/src/templates/docx/LDCPTemplate.ts +++ b/src/templates/docx/LDCPTemplate.ts @@ -1,11 +1,8 @@ import type { Document } from "docx"; -import type { Passport } from "../../types/index.js"; -import { - getBoolean as _getBoolean, - getString as _getString, -} from "../helpers.js"; -import { buildFormTemplate } from "./builder.js"; +import type { Passport } from "../../types"; +import { getBoolean as _getBoolean, getString as _getString } from "../helpers"; +import { buildFormTemplate } from "./builder"; export function LDCPTemplate(passport: Passport): Document { const get = (path: string): string => _getString(passport.data!, path); diff --git a/src/templates/docx/builder.test.ts b/src/templates/docx/builder.test.ts index 2dd0ca9c..261ad99d 100644 --- a/src/templates/docx/builder.test.ts +++ b/src/templates/docx/builder.test.ts @@ -1,15 +1,13 @@ -import { vi } from "vitest"; - -import type { TemplateData } from "./builder.js"; -import { buildFormTemplate } from "./builder.js"; -import { buildTestTemplate } from "./testTemplate.js"; +import type { TemplateData } from "./builder"; +import { buildFormTemplate } from "./builder"; +import { buildTestTemplate } from "./testTemplate"; describe("FormTemplateBuilder", () => { beforeEach(() => { - vi.useFakeTimers(); + jest.useFakeTimers(); }); afterAll(() => { - vi.useRealTimers(); + jest.useRealTimers(); }); test("a simple form template", () => { const data: TemplateData = { diff --git a/src/templates/generateExamples.ts b/src/templates/generateExamples.ts index afa38b13..459924bf 100644 --- a/src/templates/generateExamples.ts +++ b/src/templates/generateExamples.ts @@ -8,21 +8,21 @@ import type { Writable as WritableStream } from "node:stream"; import { Packer } from "docx"; -import type { Passport as IPassport } from "../types/index.js"; -import { DrawBoundaryUserAction } from "../types/index.js"; -import { buildTestTemplate } from "./docx/testTemplate.js"; +import type { Passport as IPassport } from "../types"; +import { DrawBoundaryUserAction } from "../types"; +import { buildTestTemplate } from "./docx/testTemplate"; import { generateApplicationHTML, generateDocxTemplateStream, generateMapHTML, -} from "./index.js"; +} from "./index"; import { buckinghamshireBoundary, exampleData, exampleLDCEPassport, exampleLDCPPassport, exampleWithSections, -} from "./mocks/index.js"; +} from "./mocks"; (async () => { try { diff --git a/src/templates/helpers.test.ts b/src/templates/helpers.test.ts index d0c61472..fbc463d0 100644 --- a/src/templates/helpers.test.ts +++ b/src/templates/helpers.test.ts @@ -4,7 +4,7 @@ import { getString, getStrings, hasValue, -} from "./helpers.js"; +} from "./helpers"; describe("Passport helper functions", () => { describe("applyRedactions", () => { diff --git a/src/templates/helpers.ts b/src/templates/helpers.ts index 29ab16f4..0961c9ab 100644 --- a/src/templates/helpers.ts +++ b/src/templates/helpers.ts @@ -1,4 +1,4 @@ -import type { Passport } from "../types/index.js"; +import type { Passport } from "../types"; /* eslint @typescript-eslint/no-explicit-any: "off" */ /* eslint @typescript-eslint/no-unsafe-assignment: "off" */ diff --git a/src/templates/html/Main.tsx b/src/templates/html/Main.tsx index d99b6ecc..f99ba115 100644 --- a/src/templates/html/Main.tsx +++ b/src/templates/html/Main.tsx @@ -1,12 +1,14 @@ -import { Box, Tab, Tabs } from "@mui/material"; +import Box from "@mui/material/Box"; +import Tab from "@mui/material/Tab"; +import Tabs from "@mui/material/Tabs"; import React, { useState } from "react"; import ReactDOM from "react-dom/client"; -import { DrawBoundaryUserAction } from "../../types/index.js"; -import { buckinghamshireBoundary } from "../mocks/buckinghamshireBoundary.js"; -import { exampleWithSections as example } from "../mocks/exampleWithSections.js"; -import { ApplicationHTML } from "./application/ApplicationHTML.js"; -import { MapHTML } from "./map/MapHTML.js"; +import { buckinghamshireBoundary } from "../mocks/buckinghamshireBoundary"; +import { MapHTML } from "./map/MapHTML"; +import { ApplicationHTML } from "./application/ApplicationHTML"; +import { exampleWithSections as example } from "../mocks"; +import { DrawBoundaryUserAction } from "../../types"; interface TabPanelProps { children?: React.ReactNode; diff --git a/src/templates/html/application/ApplicationHTML.tsx b/src/templates/html/application/ApplicationHTML.tsx index 1105af11..e665add4 100644 --- a/src/templates/html/application/ApplicationHTML.tsx +++ b/src/templates/html/application/ApplicationHTML.tsx @@ -1,21 +1,23 @@ import { css, Global } from "@emotion/react"; -import { Box, Grid } from "@mui/material"; -import { groupBy, startCase } from "lodash-es"; +import Box from "@mui/material/Box"; +import Grid from "@mui/material/Grid"; +import { groupBy, startCase as prettyTitle } from "lodash"; import * as React from "react"; -import type { - BOPSFullPayload, - DrawBoundaryUserAction, - GovUKPayment, - PlanXExportData, -} from "../../../types/index.js"; -import Map from "../map/Map.js"; import { getToday, prettyQuestion, prettyResponse, validatePlanXExportData, -} from "./helpers.js"; +} from "./helpers"; +import type { + BOPSFullPayload, + GovUKPayment, + PlanXExportData, + DrawBoundaryUserAction, +} from "../../../types"; + +import Map from "../map/Map"; function Highlights(props: { data: PlanXExportData[] }): JSX.Element { const siteAddress = props.data.find((d) => d.question === "site") @@ -219,7 +221,7 @@ export function ApplicationHTML(props: { applicationType && typeof applicationType === "string" && typeof workStatus === "string" - ? [startCase(applicationType), startCase(workStatus)] + ? [prettyTitle(applicationType), prettyTitle(workStatus)] .filter(Boolean) .join(" - ") : "PlanX Submission Overview"; diff --git a/src/templates/html/application/helpers.test.ts b/src/templates/html/application/helpers.test.ts index 1df051ab..229a3fa0 100644 --- a/src/templates/html/application/helpers.test.ts +++ b/src/templates/html/application/helpers.test.ts @@ -3,7 +3,7 @@ import { prettyResponse, safeDecodeURI, validatePlanXExportData, -} from "./helpers.js"; +} from "./helpers"; describe("validatePlanXExportData", () => { test("null", () => { diff --git a/src/templates/html/application/helpers.ts b/src/templates/html/application/helpers.ts index 77ed3e66..73cff7d7 100644 --- a/src/templates/html/application/helpers.ts +++ b/src/templates/html/application/helpers.ts @@ -1,6 +1,6 @@ -import { startCase } from "lodash-es"; +import { startCase as prettyTitle } from "lodash"; -import type { PlanXExportData, ResponseObject } from "../../../types/index.js"; +import type { PlanXExportData, ResponseObject } from "../../../types"; export function validatePlanXExportData(data: PlanXExportData[]): boolean { return ( @@ -30,7 +30,7 @@ export function prettyQuestion(data: PlanXExportData["question"]): string { if (isPhrasedAsQuestion || isFileUpload || isCustomLabeledKey) { return safeDecodeURI(data); } else { - return safeDecodeURI(startCase(data)); + return safeDecodeURI(prettyTitle(data)); } } diff --git a/src/templates/html/map/Map.tsx b/src/templates/html/map/Map.tsx index 7d530f82..9824f394 100644 --- a/src/templates/html/map/Map.tsx +++ b/src/templates/html/map/Map.tsx @@ -1,6 +1,6 @@ import * as React from "react"; -import { DrawBoundaryUserAction } from "../../../types/index.js"; +import { DrawBoundaryUserAction } from "../../../types"; const osCopyright = `Basemap subject to Crown copyright and database rights ${new Date().getFullYear()} OS (0)100024857`; const titleBoundaryCopyright = `Title boundary subject to Crown copyright and database rights ${new Date().getFullYear()} OS (0)100026316`; diff --git a/src/templates/html/map/MapHTML.tsx b/src/templates/html/map/MapHTML.tsx index 047a9e5e..80f1a8c0 100644 --- a/src/templates/html/map/MapHTML.tsx +++ b/src/templates/html/map/MapHTML.tsx @@ -1,8 +1,8 @@ import { css, Global } from "@emotion/react"; import * as React from "react"; -import { DrawBoundaryUserAction } from "../../../types/index.js"; -import Map from "./Map.js"; +import Map from "./Map"; +import { DrawBoundaryUserAction } from "../../../types"; export function MapHTML(props: { geojson: object; diff --git a/src/templates/index.ts b/src/templates/index.ts index e2c95349..c1e8fc96 100644 --- a/src/templates/index.ts +++ b/src/templates/index.ts @@ -6,12 +6,12 @@ import type { DrawBoundaryUserAction, Passport, PlanXExportData, -} from "../types/index.js"; -import { LDCETemplate } from "./docx/LDCETemplate.js"; -import { LDCPTemplate } from "./docx/LDCPTemplate.js"; -import { applyRedactions, getString, hasValue } from "./helpers.js"; -import { ApplicationHTML } from "./html/application/ApplicationHTML.js"; -import { MapHTML } from "./html/map/MapHTML.js"; +} from "../types"; +import { LDCETemplate } from "./docx/LDCETemplate"; +import { LDCPTemplate } from "./docx/LDCPTemplate"; +import { applyRedactions, getString, hasValue } from "./helpers"; +import { ApplicationHTML } from "./html/application/ApplicationHTML"; +import { MapHTML } from "./html/map/MapHTML"; export type Template = { template: (passport: Passport) => Document; diff --git a/src/templates/mocks/exampleLDCE.ts b/src/templates/mocks/exampleLDCE.ts index 00ec76a3..d70d7423 100644 --- a/src/templates/mocks/exampleLDCE.ts +++ b/src/templates/mocks/exampleLDCE.ts @@ -1,4 +1,4 @@ -import type { Passport as IPassport } from "../../types/index.js"; +import type { Passport as IPassport } from "../../types"; export const exampleLDCEPassport: IPassport = { data: { diff --git a/src/templates/mocks/exampleLDCP.ts b/src/templates/mocks/exampleLDCP.ts index 42fc83ea..c5111a8b 100644 --- a/src/templates/mocks/exampleLDCP.ts +++ b/src/templates/mocks/exampleLDCP.ts @@ -1,4 +1,4 @@ -import type { Passport as IPassport } from "../../types/index.js"; +import type { Passport as IPassport } from "../../types"; export const exampleLDCPPassport: IPassport = { data: { diff --git a/src/templates/mocks/index.ts b/src/templates/mocks/index.ts index 2197bd35..f7060908 100644 --- a/src/templates/mocks/index.ts +++ b/src/templates/mocks/index.ts @@ -1,5 +1,5 @@ -export { buckinghamshireBoundary } from "./buckinghamshireBoundary.js"; -export { exampleData } from "./exampleData.js"; -export { exampleLDCEPassport } from "./exampleLDCE.js"; -export { exampleLDCPPassport } from "./exampleLDCP.js"; -export { exampleWithSections } from "./exampleWithSections.js"; +export { buckinghamshireBoundary } from "./buckinghamshireBoundary"; +export { exampleData } from "./exampleData"; +export { exampleLDCEPassport } from "./exampleLDCE"; +export { exampleLDCPPassport } from "./exampleLDCP"; +export { exampleWithSections } from "./exampleWithSections"; diff --git a/src/types/bops.ts b/src/types/bops.ts index 64664b19..7842ed3a 100644 --- a/src/types/bops.ts +++ b/src/types/bops.ts @@ -1,4 +1,4 @@ -import { EnhancedGISResponse } from "../types/index.js"; +import { EnhancedGISResponse } from "../types"; export const DEFAULT_APPLICATION_TYPE = "lawfulness_certificate"; diff --git a/src/types/export.ts b/src/types/export.ts index 5145a97d..210bac36 100644 --- a/src/types/export.ts +++ b/src/types/export.ts @@ -1,4 +1,4 @@ -import { QuestionAndResponses } from "./bops.js"; +import { QuestionAndResponses } from "./bops"; export type ExportData = { responses: QuestionAndResponses[]; diff --git a/src/types/flow.ts b/src/types/flow.ts index e34e557d..86759a01 100644 --- a/src/types/flow.ts +++ b/src/types/flow.ts @@ -1,5 +1,5 @@ -import { ComponentType } from "./component.js"; -import type { Value } from "./data.js"; +import { ComponentType } from "./component"; +import type { Value } from "./data"; export type FlowId = string; diff --git a/src/types/index.ts b/src/types/index.ts index bc650592..85dbfe88 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,19 +1,19 @@ -export * from "./address.js"; -export * from "./application.js"; -export * from "./bops.js"; -export * from "./component.js"; -export * from "./data.js"; -export * from "./export.js"; -export * from "./feeBreakdown.js"; -export * from "./flags.js"; -export * from "./flow.js"; -export * from "./gov-uk-payment.js"; -export * from "./integrations.js"; -export * from "./payment-request.js"; -export * from "./planning-constraints.js"; -export * from "./result.js"; -export * from "./roles.js"; -export * from "./sections.js"; -export * from "./session.js"; -export * from "./team.js"; -export * from "./user.js"; +export * from "./address"; +export * from "./application"; +export * from "./bops"; +export * from "./component"; +export * from "./data"; +export * from "./export"; +export * from "./feeBreakdown"; +export * from "./flags"; +export * from "./flow"; +export * from "./gov-uk-payment"; +export * from "./integrations"; +export * from "./payment-request"; +export * from "./planning-constraints"; +export * from "./result"; +export * from "./roles"; +export * from "./sections"; +export * from "./session"; +export * from "./team"; +export * from "./user"; diff --git a/src/types/payment-request.ts b/src/types/payment-request.ts index a0edb60d..979a673b 100644 --- a/src/types/payment-request.ts +++ b/src/types/payment-request.ts @@ -1,5 +1,5 @@ -import { DataObject } from "./data.js"; -import { FeeBreakdown } from "./feeBreakdown.js"; +import { DataObject } from "./data"; +import { FeeBreakdown } from "./feeBreakdown"; export interface PaymentRequest { id: string; diff --git a/src/types/result.ts b/src/types/result.ts index 6363e080..368724fa 100644 --- a/src/types/result.ts +++ b/src/types/result.ts @@ -1,4 +1,4 @@ -import type { Flag } from "./flags.js"; +import type { Flag } from "./flags"; export type resultOverrides = { [flagId: string]: { heading?: string; description?: string }; diff --git a/src/types/sections.ts b/src/types/sections.ts index 4f938bf9..8a364450 100644 --- a/src/types/sections.ts +++ b/src/types/sections.ts @@ -1,4 +1,4 @@ -import type { NodeId } from "./flow.js"; +import type { NodeId } from "./flow"; export const SectionStatuses = { ReadyToStart: "READY TO START", diff --git a/src/types/session.ts b/src/types/session.ts index 4d6bf787..838b312f 100644 --- a/src/types/session.ts +++ b/src/types/session.ts @@ -1,7 +1,7 @@ -import { ComponentType } from "./component.js"; -import type { DataObject } from "./data.js"; -import type { NodeId } from "./flow.js"; -import type { GovUKPayment } from "./gov-uk-payment.js"; +import { ComponentType } from "./component"; +import type { DataObject } from "./data"; +import type { NodeId } from "./flow"; +import type { GovUKPayment } from "./gov-uk-payment"; export type Passport = { data: DataObject; diff --git a/src/types/user.ts b/src/types/user.ts index d5b37e22..39e77930 100644 --- a/src/types/user.ts +++ b/src/types/user.ts @@ -1,4 +1,4 @@ -import { TeamRole } from "./roles.js"; +import { TeamRole } from "./roles"; export interface User { firstName: string; diff --git a/src/utils/digitalPlanningSchema.test.ts b/src/utils/digitalPlanningSchema.test.ts index d020fe19..0843f9de 100644 --- a/src/utils/digitalPlanningSchema.test.ts +++ b/src/utils/digitalPlanningSchema.test.ts @@ -1,7 +1,7 @@ import { getValidSchemaDictionary, getValidSchemaValues, -} from "./digitalPlanningSchema.js"; +} from "./digitalPlanningSchema"; describe("get valid schema values", () => { it("should return a list of values for a valid enum definition", () => { diff --git a/src/utils/digitalPlanningSchema.ts b/src/utils/digitalPlanningSchema.ts index 39f17a65..96c62d79 100644 --- a/src/utils/digitalPlanningSchema.ts +++ b/src/utils/digitalPlanningSchema.ts @@ -1,4 +1,4 @@ -import jsonSchema from "../export/digitalPlanning/schema/schema.json" with { type: "json" }; +import jsonSchema from "../export/digitalPlanning/schema/schema.json"; /** * For a given 'anyOf' enum definition in the JSON Schema (with properties `value` & `description`), return its valid `values` diff --git a/src/utils/encryption.test.ts b/src/utils/encryption.test.ts index 73c119cc..3c18be69 100644 --- a/src/utils/encryption.test.ts +++ b/src/utils/encryption.test.ts @@ -1,4 +1,4 @@ -import { decrypt, encrypt } from "./encryption.js"; +import { decrypt, encrypt } from "./encryption"; const key = "mySecretKey".padEnd(32, "0"); diff --git a/src/utils/feeBreakdown.test.ts b/src/utils/feeBreakdown.test.ts index 8ee70166..cd1a6f10 100644 --- a/src/utils/feeBreakdown.test.ts +++ b/src/utils/feeBreakdown.test.ts @@ -1,10 +1,10 @@ -import { PassportFeeFields } from "../types/index.js"; +import { PassportFeeFields } from "../types"; import { calculateReduction, getFeeBreakdown, toFeeBreakdown, toNumber, -} from "./feeBreakdown.js"; +} from "./feeBreakdown"; describe("toNumber() helper function", () => { it("outputs a number when passed a number", () => { diff --git a/src/utils/feeBreakdown.ts b/src/utils/feeBreakdown.ts index 4555c1a4..93e69778 100644 --- a/src/utils/feeBreakdown.ts +++ b/src/utils/feeBreakdown.ts @@ -1,6 +1,6 @@ import { z } from "zod"; -import { FeeBreakdown, PassportFeeFields } from "../types/index.js"; +import { FeeBreakdown, PassportFeeFields } from "../types"; export const VAT_RATE = 0.2; diff --git a/src/utils/govPayMetadata.test.ts b/src/utils/govPayMetadata.test.ts index a2adeead..30e2c711 100644 --- a/src/utils/govPayMetadata.test.ts +++ b/src/utils/govPayMetadata.test.ts @@ -1,5 +1,5 @@ -import type { GovPayMetadata, Passport } from "../types/index.js"; -import { formatGovPayMetadata } from "./govPayMetadata.js"; +import type { GovPayMetadata, Passport } from "../types"; +import { formatGovPayMetadata } from "./govPayMetadata"; const mockMetadata: GovPayMetadata[] = [ { key: "firstKey", value: "firstValue" }, diff --git a/src/utils/govPayMetadata.ts b/src/utils/govPayMetadata.ts index fc814ec5..bc7713c9 100644 --- a/src/utils/govPayMetadata.ts +++ b/src/utils/govPayMetadata.ts @@ -1,11 +1,11 @@ -import { Passport } from "../models/index.js"; +import { Passport } from "../models"; import { GovPayMetadata, GovPayMetadataValue, GovUKCreatePaymentPayload, Passport as IPassport, Value, -} from "../types/index.js"; +} from "../types"; type FormattedMetadata = NonNullable; diff --git a/src/utils/index.ts b/src/utils/index.ts index 9de811be..1f736b0b 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,5 +1,5 @@ -export * from "./digitalPlanningSchema.js"; -export * from "./encryption.js"; -export { getFeeBreakdown, VAT_RATE } from "./feeBreakdown.js"; -export * from "./govPayMetadata.js"; -export * from "./projectTypes.js"; +export * from "./digitalPlanningSchema"; +export * from "./encryption"; +export { getFeeBreakdown, VAT_RATE } from "./feeBreakdown"; +export * from "./govPayMetadata"; +export * from "./projectTypes"; diff --git a/src/utils/projectTypes.test.ts b/src/utils/projectTypes.test.ts index 9877201f..bcc3d416 100644 --- a/src/utils/projectTypes.test.ts +++ b/src/utils/projectTypes.test.ts @@ -1,7 +1,7 @@ import { formatHumanReadableProjectTypes, formatRawProjectTypes, -} from "./projectTypes.js"; +} from "./projectTypes"; describe("formatRawProjectTypes()", () => { it("correctly displays the schema descriptions for a list of valid raw project types", () => { diff --git a/src/utils/projectTypes.ts b/src/utils/projectTypes.ts index 072fb408..8a5a8c71 100644 --- a/src/utils/projectTypes.ts +++ b/src/utils/projectTypes.ts @@ -1,7 +1,7 @@ -import "@formatjs/intl-listformat/locale-data/en.js"; -import "@formatjs/intl-listformat/polyfill.js"; +import "@formatjs/intl-listformat/locale-data/en"; +import "@formatjs/intl-listformat/polyfill"; -import { getValidSchemaDictionary } from "./digitalPlanningSchema.js"; +import { getValidSchemaDictionary } from "./digitalPlanningSchema"; export function formatRawProjectTypes(rawProjectTypes: string[]): string { const schemaProjectTypes = getValidSchemaDictionary("ProjectType"); diff --git a/tsconfig.build.json b/tsconfig.build.json index f533ce37..328933ef 100644 --- a/tsconfig.build.json +++ b/tsconfig.build.json @@ -1,21 +1,20 @@ { "compilerOptions": { "allowJs": true, - "allowSyntheticDefaultImports": true, - "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "jsx": "react-jsx", "lib": ["DOM", "ESNext"], - "module": "NodeNext", - "moduleResolution": "nodenext", + "target": "es2022", + "module": "commonjs", + "moduleResolution": "node", "noImplicitAny": false, - "outDir": "dist", "resolveJsonModule": true, - "rootDir": "./src", "skipLibCheck": true, + "jsx": "react", "strict": true, - "target": "es2022", + "rootDir": "./src", + "declaration": true, + "outDir": "dist" }, "include": ["./src/*", "./src/**/*"], "exclude": ["./src/**/*.test.ts", "./src/**/mocks"] diff --git a/tsconfig.check.json b/tsconfig.check.json index 3e582a53..25ff109f 100644 --- a/tsconfig.check.json +++ b/tsconfig.check.json @@ -1,23 +1,19 @@ { "compilerOptions": { "allowJs": true, - "allowSyntheticDefaultImports": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "jsx": "react-jsx", "lib": ["DOM", "ESNext"], - "module": "NodeNext", - "moduleResolution": "nodenext", - "noEmit": true, + "target": "es2022", + "module": "commonjs", + "moduleResolution": "node", "noImplicitAny": false, "resolveJsonModule": true, - "rootDir": "./src", "skipLibCheck": true, + "jsx": "react", "strict": true, - "target": "es2022", - "types": [ - "vitest/globals" - ], + "rootDir": "./src", + "noEmit": true }, "include": ["./src/*", "./src/**/*"] } diff --git a/tsconfig.json b/tsconfig.json index 641e63d1..dc3db328 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,24 +1,20 @@ { "compilerOptions": { "allowJs": true, - "allowSyntheticDefaultImports": true, - "declaration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "jsx": "react-jsx", "lib": ["DOM", "ESNext"], - "module": "NodeNext", - "moduleResolution": "nodenext", + "target": "es2022", + "module": "commonjs", + "moduleResolution": "node", "noImplicitAny": false, - "outDir": "dist", "resolveJsonModule": true, - "rootDir": "./src", "skipLibCheck": true, + "jsx": "react", "strict": true, - "target": "es2022", - "types": [ - "vitest/globals" - ], + "rootDir": "./src", + "declaration": true, + "outDir": "dist" }, "include": ["./src/*", "./src/**/*"], } diff --git a/tsconfig.types.json b/tsconfig.types.json index fb813878..313b49e4 100644 --- a/tsconfig.types.json +++ b/tsconfig.types.json @@ -1,22 +1,21 @@ { "compilerOptions": { "allowJs": true, - "allowSyntheticDefaultImports": true, - "declaration": true, - "declarationDir": "types", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "jsx": "react-jsx", "lib": ["DOM", "ESNext"], - "module": "NodeNext", - "moduleResolution": "nodenext", + "target": "es2022", + "module": "commonjs", + "moduleResolution": "node", "noImplicitAny": false, - "outDir": "types", "resolveJsonModule": true, - "rootDir": "./src/types", "skipLibCheck": true, + "jsx": "react", "strict": true, - "target": "es2022", + "rootDir": "./src/types", + "declaration": true, + "declarationDir": "types", + "outDir": "types" }, "include": ["./src/types/*"], "exclude": ["./src/**/*.test.ts", "./src/**/mocks"] diff --git a/vitest.config.ts b/vitest.config.ts deleted file mode 100644 index 5a3689dd..00000000 --- a/vitest.config.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { defineConfig } from "vitest/config"; - -export default defineConfig({ - test: { - globals: true, - environment: "node", - coverage: { - provider: "istanbul", - reporter: ["lcov", "html", "text-summary"], - thresholds: { - statements: 66.58, - branches: 69.79, - functions: 57.14, - lines: 65.99, - autoUpdate: true, - }, - }, - }, -}); \ No newline at end of file