Update vite packages, ignore error on import

pull/2163/head
Jérémy Rialland 2022-05-23 11:11:20 +02:00 committed by Johan Girod
parent 4cc28e0c4e
commit c3e7e316e5
3 changed files with 209 additions and 76 deletions

View File

@ -1,12 +1,17 @@
import cors from '@koa/cors'
import Router from '@koa/router'
// @ts-ignore
import { koaMiddleware as publicodesAPI } from '@publicodes/api'
import { readFileSync } from 'fs'
import Koa from 'koa'
// @ts-ignore
import rules from 'modele-social'
import path from 'path'
// @ts-ignore
import Engine from 'publicodes'
// @ts-ignore
import { docRoutes } from './route/doc.js'
// @ts-ignore
import { openapiRoutes } from './route/openapi.js'
type State = Koa.DefaultState

View File

@ -127,8 +127,8 @@
"@types/recharts": "^1.8.16",
"@types/serve-static": "^1.13.10",
"@types/styled-components": "^5.1.24",
"@vitejs/plugin-legacy": "^1.8.1",
"@vitejs/plugin-react": "^1.3.1",
"@vitejs/plugin-legacy": "^1.8.2",
"@vitejs/plugin-react": "^1.3.2",
"cypress": "^9.5.4",
"cypress-plugin-tab": "^1.0.5",
"cypress-wait-until": "^1.7.2",
@ -142,7 +142,7 @@
"ts-node": "^10.5.0",
"typescript": "^4.3.2",
"vite": "^2.9.9",
"vite-plugin-shim-react-pdf": "^1.0.4",
"vite-plugin-shim-react-pdf": "^1.0.5",
"vitest": "^0.9.4",
"xml2js": "^0.4.23",
"yaml": "^1.9.2"

274
yarn.lock
View File

@ -260,6 +260,13 @@ __metadata:
languageName: node
linkType: hard
"@babel/compat-data@npm:^7.17.10":
version: 7.17.10
resolution: "@babel/compat-data@npm:7.17.10"
checksum: e85051087cd4690de5061909a2dd2d7f8b6434a3c2e30be6c119758db2027ae1845bcd75a81127423dd568b706ac6994a1a3d7d701069a23bf5cfe900728290b
languageName: node
linkType: hard
"@babel/core@npm:7.12.9":
version: 7.12.9
resolution: "@babel/core@npm:7.12.9"
@ -307,26 +314,26 @@ __metadata:
languageName: node
linkType: hard
"@babel/core@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/core@npm:7.17.9"
"@babel/core@npm:^7.17.10":
version: 7.18.0
resolution: "@babel/core@npm:7.18.0"
dependencies:
"@ampproject/remapping": ^2.1.0
"@babel/code-frame": ^7.16.7
"@babel/generator": ^7.17.9
"@babel/helper-compilation-targets": ^7.17.7
"@babel/helper-module-transforms": ^7.17.7
"@babel/helpers": ^7.17.9
"@babel/parser": ^7.17.9
"@babel/generator": ^7.18.0
"@babel/helper-compilation-targets": ^7.17.10
"@babel/helper-module-transforms": ^7.18.0
"@babel/helpers": ^7.18.0
"@babel/parser": ^7.18.0
"@babel/template": ^7.16.7
"@babel/traverse": ^7.17.9
"@babel/types": ^7.17.0
"@babel/traverse": ^7.18.0
"@babel/types": ^7.18.0
convert-source-map: ^1.7.0
debug: ^4.1.0
gensync: ^1.0.0-beta.2
json5: ^2.2.1
semver: ^6.3.0
checksum: 2d301e4561a170bb584a735ec412de8fdc40b2052e12380d4a5e36781be5af1fd2a60552e7f0764b0a491a242f20105265bd2a10ff57b30c2842684f02dbb5a2
checksum: 350b7724a48c80b76f8af11e3cac1ad8ec9021325389f5ae20c713b10d4359c5e60aa7e71a309a3e1893826c46e72eef5df4978eb63eaabc403e8cc4ce5e94fc
languageName: node
linkType: hard
@ -341,14 +348,14 @@ __metadata:
languageName: node
linkType: hard
"@babel/generator@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/generator@npm:7.17.9"
"@babel/generator@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/generator@npm:7.18.0"
dependencies:
"@babel/types": ^7.17.0
"@babel/types": ^7.18.0
"@jridgewell/gen-mapping": ^0.3.0
jsesc: ^2.5.1
source-map: ^0.5.0
checksum: afbdd4afbf731ba0a17e7e2d9a2291e6461259af887f88f1178f63514a86e9c18cec462ae8f9cd6df9ba15a18296f47b0e151202bb4f834f7338ac0c07ec8dc8
checksum: 0854b21d94f99e3ac68249a9bbaa0c3a914a600c69c12fffa4a01377d89282174a67e619654e401be4c791414a1d5e825671f089f1c2407694a494dcfab8b06c
languageName: node
linkType: hard
@ -385,6 +392,20 @@ __metadata:
languageName: node
linkType: hard
"@babel/helper-compilation-targets@npm:^7.17.10":
version: 7.17.10
resolution: "@babel/helper-compilation-targets@npm:7.17.10"
dependencies:
"@babel/compat-data": ^7.17.10
"@babel/helper-validator-option": ^7.16.7
browserslist: ^4.20.2
semver: ^6.3.0
peerDependencies:
"@babel/core": ^7.0.0
checksum: 5f547c7ebd372e90fa72c2aaea867e7193166e9f469dec5acde4f0e18a78b80bdca8e02a0f641f3e998be984fb5b802c729a9034faaee8b1a9ef6670cb76f120
languageName: node
linkType: hard
"@babel/helper-create-class-features-plugin@npm:^7.16.10, @babel/helper-create-class-features-plugin@npm:^7.16.7, @babel/helper-create-class-features-plugin@npm:^7.17.6":
version: 7.17.6
resolution: "@babel/helper-create-class-features-plugin@npm:7.17.6"
@ -541,6 +562,22 @@ __metadata:
languageName: node
linkType: hard
"@babel/helper-module-transforms@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/helper-module-transforms@npm:7.18.0"
dependencies:
"@babel/helper-environment-visitor": ^7.16.7
"@babel/helper-module-imports": ^7.16.7
"@babel/helper-simple-access": ^7.17.7
"@babel/helper-split-export-declaration": ^7.16.7
"@babel/helper-validator-identifier": ^7.16.7
"@babel/template": ^7.16.7
"@babel/traverse": ^7.18.0
"@babel/types": ^7.18.0
checksum: 824c3967c08d75bb36adc18c31dcafebcd495b75b723e2e17c6185e88daf5c6db62a6a75d9f791b5f38618a349e7cb32503e715a1b9a4e8bad4d0f43e3e6b523
languageName: node
linkType: hard
"@babel/helper-optimise-call-expression@npm:^7.16.7":
version: 7.16.7
resolution: "@babel/helper-optimise-call-expression@npm:7.16.7"
@ -652,14 +689,14 @@ __metadata:
languageName: node
linkType: hard
"@babel/helpers@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/helpers@npm:7.17.9"
"@babel/helpers@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/helpers@npm:7.18.0"
dependencies:
"@babel/template": ^7.16.7
"@babel/traverse": ^7.17.9
"@babel/types": ^7.17.0
checksum: 3c6db861e4c82fff2de3efb4ad12e32658c50c29920597cd0979390659b202e5849acd9542e0e2453167a52ccc30156ee4455d64d0e330f020d991d7551566f8
"@babel/traverse": ^7.18.0
"@babel/types": ^7.18.0
checksum: 3f41631c0797b052cc22337ee56290700fe7db7bc06b847fcdf2c0043cddc35861855a1acc4c948397838675d2dc694f4fb1b102d1c7eb484ea01e9029916b55
languageName: node
linkType: hard
@ -683,12 +720,12 @@ __metadata:
languageName: node
linkType: hard
"@babel/parser@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/parser@npm:7.17.9"
"@babel/parser@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/parser@npm:7.18.0"
bin:
parser: ./bin/babel-parser.js
checksum: ea59c985ebfae7c0299c8ea63ed34903202f51665db8d59c55b4366e20270b74d7367a2c211fdd2db20f25750df89adcc85ab6c8692061c6459a88efb79f43e6
checksum: 253b5828bf4a0b443301baedc5993d6f7f35aa0d81cf8f2f2f53940904b7067eab7bd2380aee4b3be1d8efd5ae1008eb0fad19bde28f5fbc213c0fdf9a414466
languageName: node
linkType: hard
@ -1803,10 +1840,10 @@ __metadata:
languageName: node
linkType: hard
"@babel/standalone@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/standalone@npm:7.17.9"
checksum: fcddeb533fc6cddf046d1e73357955452c33ac914c37e7ac8b6e0376b438a03cfa9e69dacd3f24abc47a7366c6f6b774eda9e0218d07105c431121fc32889eef
"@babel/standalone@npm:^7.17.11":
version: 7.18.1
resolution: "@babel/standalone@npm:7.18.1"
checksum: f05f7d49c387558a47fd8126615ff3ae2080d795414a0777506a6c68d96ce8cbe700060ceeb4a24fd062b8aeb919139bbf864b0a75c3134a2d50f722e8793c44
languageName: node
linkType: hard
@ -1839,21 +1876,21 @@ __metadata:
languageName: node
linkType: hard
"@babel/traverse@npm:^7.17.9":
version: 7.17.9
resolution: "@babel/traverse@npm:7.17.9"
"@babel/traverse@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/traverse@npm:7.18.0"
dependencies:
"@babel/code-frame": ^7.16.7
"@babel/generator": ^7.17.9
"@babel/generator": ^7.18.0
"@babel/helper-environment-visitor": ^7.16.7
"@babel/helper-function-name": ^7.17.9
"@babel/helper-hoist-variables": ^7.16.7
"@babel/helper-split-export-declaration": ^7.16.7
"@babel/parser": ^7.17.9
"@babel/types": ^7.17.0
"@babel/parser": ^7.18.0
"@babel/types": ^7.18.0
debug: ^4.1.0
globals: ^11.1.0
checksum: d907c71d1617589cc0cddc9837cb27bcb9b8f2117c379e13e72653745abe01da24e8c072bd0c91b9db33323ddb1086722756fbc50b487b2608733baf9dd6fd2c
checksum: b80b49ba5cead42c4b09bdfbe926d94179f884d35319a0a3ab5a798c85f16102a7342799fac928b3041337ea2c3f5194f17c4a08f611a474de6eea719b640dd4
languageName: node
linkType: hard
@ -1867,6 +1904,16 @@ __metadata:
languageName: node
linkType: hard
"@babel/types@npm:^7.18.0":
version: 7.18.0
resolution: "@babel/types@npm:7.18.0"
dependencies:
"@babel/helper-validator-identifier": ^7.16.7
to-fast-properties: ^2.0.0
checksum: 151485f94c929171fd6539430c0ae519e8bb67fbc0d856b285328f5e6ecbaf4237b52d7a581b413f5e7b6268d31a4db6ca9bc01372b284b2966aa473fc902f27
languageName: node
linkType: hard
"@base2/pretty-print-object@npm:1.0.1":
version: 1.0.1
resolution: "@base2/pretty-print-object@npm:1.0.1"
@ -2498,6 +2545,17 @@ __metadata:
languageName: node
linkType: hard
"@jridgewell/gen-mapping@npm:^0.3.0":
version: 0.3.1
resolution: "@jridgewell/gen-mapping@npm:0.3.1"
dependencies:
"@jridgewell/set-array": ^1.0.0
"@jridgewell/sourcemap-codec": ^1.4.10
"@jridgewell/trace-mapping": ^0.3.9
checksum: e9e7bb3335dea9e60872089761d4e8e089597360cdb1af90370e9d53b7d67232c1e0a3ab65fbfef4fc785745193fbc56bff9f3a6cab6c6ce3f15e12b4191f86b
languageName: node
linkType: hard
"@jridgewell/resolve-uri@npm:^3.0.3":
version: 3.0.5
resolution: "@jridgewell/resolve-uri@npm:3.0.5"
@ -2505,6 +2563,13 @@ __metadata:
languageName: node
linkType: hard
"@jridgewell/set-array@npm:^1.0.0":
version: 1.1.1
resolution: "@jridgewell/set-array@npm:1.1.1"
checksum: cc5d91e0381c347e3edee4ca90b3c292df9e6e55f29acbe0dd97de8651b4730e9ab761406fd572effa79972a0edc55647b627f8c72315e276d959508853d9bf2
languageName: node
linkType: hard
"@jridgewell/sourcemap-codec@npm:^1.4.10":
version: 1.4.11
resolution: "@jridgewell/sourcemap-codec@npm:1.4.11"
@ -2522,6 +2587,16 @@ __metadata:
languageName: node
linkType: hard
"@jridgewell/trace-mapping@npm:^0.3.9":
version: 0.3.13
resolution: "@jridgewell/trace-mapping@npm:0.3.13"
dependencies:
"@jridgewell/resolve-uri": ^3.0.3
"@jridgewell/sourcemap-codec": ^1.4.10
checksum: e38254e830472248ca10a6ed1ae75af5e8514f0680245a5e7b53bc3c030fd8691d4d3115d80595b45d3badead68269769ed47ecbbdd67db1343a11f05700e75a
languageName: node
linkType: hard
"@jsdevtools/ono@npm:^7.1.3":
version: 7.1.3
resolution: "@jsdevtools/ono@npm:7.1.3"
@ -4239,6 +4314,16 @@ __metadata:
languageName: node
linkType: hard
"@rollup/pluginutils@npm:^4.2.1":
version: 4.2.1
resolution: "@rollup/pluginutils@npm:4.2.1"
dependencies:
estree-walker: ^2.0.1
picomatch: ^2.2.2
checksum: 6bc41f22b1a0f1efec3043899e4d3b6b1497b3dea4d94292d8f83b4cf07a1073ecbaedd562a22d11913ff7659f459677b01b09e9598a98936e746780ecc93a12
languageName: node
linkType: hard
"@sentry/browser@npm:6.19.6":
version: 6.19.6
resolution: "@sentry/browser@npm:6.19.6"
@ -6855,18 +6940,18 @@ __metadata:
languageName: node
linkType: hard
"@vitejs/plugin-legacy@npm:^1.8.1":
version: 1.8.1
resolution: "@vitejs/plugin-legacy@npm:1.8.1"
"@vitejs/plugin-legacy@npm:^1.8.2":
version: 1.8.2
resolution: "@vitejs/plugin-legacy@npm:1.8.2"
dependencies:
"@babel/standalone": ^7.17.9
core-js: ^3.21.1
"@babel/standalone": ^7.17.11
core-js: ^3.22.3
magic-string: ^0.26.1
regenerator-runtime: ^0.13.9
systemjs: ^6.12.1
peerDependencies:
vite: ^2.8.0
checksum: 1536dfae39cd27068e84f6f95e8a16b4aaae10b5ce4bca1cf9b81071f4fb1b45ebeca94f7b6152b41b2786a2979a9aa96829d39ba7137f2661ca28b702008f9e
checksum: f4db4114008b54cb444c3c65f5e330185289d58c72e49246a52e4ec201df9a75eaa3a267c2a4e12a104188a103bde090a7ebed5e9f08231cf5497589facab932
languageName: node
linkType: hard
@ -6886,19 +6971,19 @@ __metadata:
languageName: node
linkType: hard
"@vitejs/plugin-react@npm:^1.3.1":
version: 1.3.1
resolution: "@vitejs/plugin-react@npm:1.3.1"
"@vitejs/plugin-react@npm:^1.3.2":
version: 1.3.2
resolution: "@vitejs/plugin-react@npm:1.3.2"
dependencies:
"@babel/core": ^7.17.9
"@babel/core": ^7.17.10
"@babel/plugin-transform-react-jsx": ^7.17.3
"@babel/plugin-transform-react-jsx-development": ^7.16.7
"@babel/plugin-transform-react-jsx-self": ^7.16.7
"@babel/plugin-transform-react-jsx-source": ^7.16.7
"@rollup/pluginutils": ^4.2.0
react-refresh: ^0.12.0
"@rollup/pluginutils": ^4.2.1
react-refresh: ^0.13.0
resolve: ^1.22.0
checksum: 2d71677ec14b62589fd411bc9c76a0eba48469d06cf7b29106f0fae265bc386aeeb3071215d6a95f561a26c30a8bab8f523eedaabe7fe5f91b27d6317897bd47
checksum: 9e083e561145cad00bdd2bc93d56b7ec8e209a05c4a9ebce8d1891e88e74de7eda197934c716023a1642582f250e330da6269e0cd1dc2285762f628c82f32229
languageName: node
linkType: hard
@ -8645,6 +8730,21 @@ __metadata:
languageName: node
linkType: hard
"browserslist@npm:^4.20.2":
version: 4.20.3
resolution: "browserslist@npm:4.20.3"
dependencies:
caniuse-lite: ^1.0.30001332
electron-to-chromium: ^1.4.118
escalade: ^3.1.1
node-releases: ^2.0.3
picocolors: ^1.0.0
bin:
browserslist: cli.js
checksum: 1e4b719ac2ca0fe235218a606e8b8ef16b8809e0973b924158c39fbc435a0b0fe43437ea52dd6ef5ad2efcb83fcb07431244e472270177814217f7c563651f7d
languageName: node
linkType: hard
"bser@npm:2.1.1":
version: 2.1.1
resolution: "bser@npm:2.1.1"
@ -8993,6 +9093,13 @@ __metadata:
languageName: node
linkType: hard
"caniuse-lite@npm:^1.0.30001332":
version: 1.0.30001342
resolution: "caniuse-lite@npm:1.0.30001342"
checksum: 9ad47aec82e85017c59aaa0acee8027d910a715c7481cf66c9b4e296f3d10cc5d96df86d3c3033326b0110f5792b3f117a1dc935e3299abf2139fa345bb326f1
languageName: node
linkType: hard
"capture-exit@npm:^2.0.0":
version: 2.0.0
resolution: "capture-exit@npm:2.0.0"
@ -9764,13 +9871,20 @@ __metadata:
languageName: node
linkType: hard
"core-js@npm:^3.0.4, core-js@npm:^3.21.1, core-js@npm:^3.6.5, core-js@npm:^3.8.2":
"core-js@npm:^3.0.4, core-js@npm:^3.6.5, core-js@npm:^3.8.2":
version: 3.21.1
resolution: "core-js@npm:3.21.1"
checksum: d68eddd831340ad5b24ac29c72fda022a43b17f194c4278b6b875a843283d316502cb4abd07f28631d6ebc4387f66aa06e2b1b3c8fd7e08096a751b5c63f6889
languageName: node
linkType: hard
"core-js@npm:^3.22.3":
version: 3.22.6
resolution: "core-js@npm:3.22.6"
checksum: 3600235a29cae4c066fbbca595b17f33707b3827f9c2e838ec1bd34f450b62f438da271717bd8de19a2a0d4e382b3d3310a048ee1c22617d09fbfeaf67faaf7e
languageName: node
linkType: hard
"core-util-is@npm:1.0.2":
version: 1.0.2
resolution: "core-util-is@npm:1.0.2"
@ -10766,6 +10880,13 @@ __metadata:
languageName: node
linkType: hard
"electron-to-chromium@npm:^1.4.118":
version: 1.4.137
resolution: "electron-to-chromium@npm:1.4.137"
checksum: 639d7b94906efafcf363519c3698eecc44be46755a6a5cdc9088954329978866cc93fbd57e08b97290599b68d5226243d21de9fa50be416b8a5d3fa8fd42c3a0
languageName: node
linkType: hard
"electron-to-chromium@npm:^1.4.84":
version: 1.4.103
resolution: "electron-to-chromium@npm:1.4.103"
@ -16729,6 +16850,13 @@ __metadata:
languageName: node
linkType: hard
"node-releases@npm:^2.0.3":
version: 2.0.4
resolution: "node-releases@npm:2.0.4"
checksum: b32d6c2032c7b169ae3938b416fc50f123f5bd577d54a79b2ae201febf27b22846b01c803dd35ac8689afe840f8ba4e5f7154723db629b80f359836b6707b92f
languageName: node
linkType: hard
"nodemon@npm:^2.0.16":
version: 2.0.16
resolution: "nodemon@npm:2.0.16"
@ -18177,19 +18305,6 @@ __metadata:
languageName: node
linkType: hard
"publicodes@npm:^1.0.0-beta.36":
version: 1.0.0-beta.36
resolution: "publicodes@npm:1.0.0-beta.36"
dependencies:
moo: ^0.5.1
nearley: ^2.19.2
yaml: ^1.9.2
peerDependencies:
"@types/mocha": ^9.0.0
checksum: 8a4baa98df719ceea80f0873f344b4024881025391a26e4354af7676bedb11519bed2b515eb60cdea8a26ed9d46596f4ba85fd1c3932c4029c6aa9ad84c0d47d
languageName: node
linkType: hard
"publicodes@npm:=1.0.0-beta.41":
version: 1.0.0-beta.41
resolution: "publicodes@npm:1.0.0-beta.41"
@ -18203,6 +18318,19 @@ __metadata:
languageName: node
linkType: hard
"publicodes@npm:^1.0.0-beta.36":
version: 1.0.0-beta.36
resolution: "publicodes@npm:1.0.0-beta.36"
dependencies:
moo: ^0.5.1
nearley: ^2.19.2
yaml: ^1.9.2
peerDependencies:
"@types/mocha": ^9.0.0
checksum: 8a4baa98df719ceea80f0873f344b4024881025391a26e4354af7676bedb11519bed2b515eb60cdea8a26ed9d46596f4ba85fd1c3932c4029c6aa9ad84c0d47d
languageName: node
linkType: hard
"pump@npm:^2.0.0":
version: 2.0.1
resolution: "pump@npm:2.0.1"
@ -18729,10 +18857,10 @@ __metadata:
languageName: node
linkType: hard
"react-refresh@npm:^0.12.0":
version: 0.12.0
resolution: "react-refresh@npm:0.12.0"
checksum: 046522ed9e26c2846afb734303d9461a825a96f863ea373b9296a90e7112e1602bdf5954d8b48193e763f3ff0108f2e4c00e42f0e3d45382bb9d38dc87348867
"react-refresh@npm:^0.13.0":
version: 0.13.0
resolution: "react-refresh@npm:0.13.0"
checksum: 1cf2b87ed99e1d388aa3923078bc30cd3ce43ee86e8936944e961d3643c6e85da41ebed6a0996e8bdad75a0d2ce3b7e10638b45018231380d4a174f63a451f75
languageName: node
linkType: hard
@ -20177,8 +20305,8 @@ __metadata:
"@types/recharts": ^1.8.16
"@types/serve-static": ^1.13.10
"@types/styled-components": ^5.1.24
"@vitejs/plugin-legacy": ^1.8.1
"@vitejs/plugin-react": ^1.3.1
"@vitejs/plugin-legacy": ^1.8.2
"@vitejs/plugin-react": ^1.3.2
algoliasearch: ^4.10.2
cypress: ^9.5.4
cypress-plugin-tab: ^1.0.5
@ -20218,7 +20346,7 @@ __metadata:
ts-node: ^10.5.0
typescript: ^4.3.2
vite: ^2.9.9
vite-plugin-shim-react-pdf: ^1.0.4
vite-plugin-shim-react-pdf: ^1.0.5
vitest: ^0.9.4
whatwg-fetch: ^3.0.0
xml2js: ^0.4.23
@ -22383,7 +22511,7 @@ __metadata:
languageName: node
linkType: hard
"vite-plugin-shim-react-pdf@npm:^1.0.4":
"vite-plugin-shim-react-pdf@npm:^1.0.5":
version: 1.0.5
resolution: "vite-plugin-shim-react-pdf@npm:1.0.5"
dependencies: