From 8146ad6d19e2998e02b1d75540bc741aadabd235 Mon Sep 17 00:00:00 2001 From: Nell Hardcastle Date: Thu, 24 Oct 2024 11:41:50 -0700 Subject: [PATCH] deps: Upgrade to TypeScript 5.6.3 Pre-req for getting @bids/validator working on the client --- .pnp.cjs | 588 ++++++++++++++------- .pnp.loader.mjs | 64 ++- .yarn/sdks/typescript/package.json | 2 +- docker-compose.yml | 43 +- package.json | 2 +- packages/openneuro-app/package.json | 2 +- packages/openneuro-cli/src/upload.js | 1 + packages/openneuro-components/package.json | 2 +- packages/openneuro-indexer/package.json | 4 +- packages/openneuro-server/package.json | 4 +- yarn.lock | 156 +++++- 11 files changed, 593 insertions(+), 275 deletions(-) diff --git a/.pnp.cjs b/.pnp.cjs index 0ee70d381..d61dff517 100644 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -89,7 +89,7 @@ const RAW_RUNTIME_STATE = ["react", "npm:18.2.0"],\ ["sass", "npm:1.56.1"],\ ["tsc-watch", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:6.0.4"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["typescript-eslint", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:8.11.0"],\ ["vite", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:5.4.8"],\ ["vitest", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:1.5.0"],\ @@ -3687,6 +3687,16 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@cspotcode/source-map-support", [\ + ["npm:0.8.1", {\ + "packageLocation": "./.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-b6e38a1712.zip/node_modules/@cspotcode/source-map-support/",\ + "packageDependencies": [\ + ["@cspotcode/source-map-support", "npm:0.8.1"],\ + ["@jridgewell/trace-mapping", "npm:0.3.9"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@elastic/apm-rum", [\ ["npm:5.16.0", {\ "packageLocation": "./.yarn/cache/@elastic-apm-rum-npm-5.16.0-f6f0edbc85-3dc954f866.zip/node_modules/@elastic/apm-rum/",\ @@ -5200,6 +5210,13 @@ const RAW_RUNTIME_STATE = ["@jridgewell/resolve-uri", "npm:3.1.1"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:3.1.2", {\ + "packageLocation": "./.yarn/cache/@jridgewell-resolve-uri-npm-3.1.2-5bc4245992-97106439d7.zip/node_modules/@jridgewell/resolve-uri/",\ + "packageDependencies": [\ + ["@jridgewell/resolve-uri", "npm:3.1.2"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@jridgewell/set-array", [\ @@ -5268,6 +5285,15 @@ const RAW_RUNTIME_STATE = ["@jridgewell/sourcemap-codec", "npm:1.4.15"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:0.3.9", {\ + "packageLocation": "./.yarn/cache/@jridgewell-trace-mapping-npm-0.3.9-91625cd7fb-83deafb8e7.zip/node_modules/@jridgewell/trace-mapping/",\ + "packageDependencies": [\ + ["@jridgewell/trace-mapping", "npm:0.3.9"],\ + ["@jridgewell/resolve-uri", "npm:3.1.2"],\ + ["@jridgewell/sourcemap-codec", "npm:1.4.15"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["@keyv/redis", [\ @@ -7239,7 +7265,7 @@ const RAW_RUNTIME_STATE = ["semver", "npm:5.7.2"],\ ["stream-browserify", "npm:3.0.0"],\ ["subscriptions-transport-ws", "virtual:86720daff6fa91ef488bb305b0b2c8253fb3fabde470b409f92b17f3b1d6203e3f6631585a5dc2cd5ccefab01339e6676f430f53e0206b9354f687fcc9c70489#npm:0.11.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["universal-cookie", "npm:4.0.4"],\ ["vite", "virtual:4112afb9dad10978c159910bf10db9840b981b1333117623c8a4a8cf77481344a0a24735a5506e2920c18e3cfa2cc179489824b6a56c988bb070f4f60da40974#npm:5.4.8"],\ ["vitest", "virtual:4112afb9dad10978c159910bf10db9840b981b1333117623c8a4a8cf77481344a0a24735a5506e2920c18e3cfa2cc179489824b6a56c988bb070f4f60da40974#npm:2.1.2"]\ @@ -7325,7 +7351,7 @@ const RAW_RUNTIME_STATE = ["react-router-dom", "virtual:bb4ed02b339ed801b02d2ec15b42a5aa7b1afdaf44119aefaab128a59d6e16cc6018880c169f24bf2107550e914562ee9e1780db01a12e1bc3c492ad0a049c36#npm:6.3.0"],\ ["react-usestateref", "virtual:bb4ed02b339ed801b02d2ec15b42a5aa7b1afdaf44119aefaab128a59d6e16cc6018880c169f24bf2107550e914562ee9e1780db01a12e1bc3c492ad0a049c36#npm:1.0.5"],\ ["sass", "npm:1.42.1"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["vitest", "virtual:86720daff6fa91ef488bb305b0b2c8253fb3fabde470b409f92b17f3b1d6203e3f6631585a5dc2cd5ccefab01339e6676f430f53e0206b9354f687fcc9c70489#npm:2.1.2"]\ ],\ "linkType": "SOFT"\ @@ -7345,8 +7371,8 @@ const RAW_RUNTIME_STATE = ["@types/tsc-watch", "npm:4.2.0"],\ ["core-js", "npm:3.18.0"],\ ["graphql", "npm:16.8.1"],\ - ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:9.1.1"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["ts-node", "virtual:91213f02ae820a190b230a7880bf0bf0c2c9838397b0cf7428815db9bfbf992c47df4585ca3b01cd14d7a39c5069db5fdbf809cb9db4dfc613f95e2e83ce1e0a#npm:10.9.2"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["vitest", "virtual:e74940e35978632a0c14fa5497dc52825a9c66f5b1078eb2e64acf3c410407bb81bc4632771c0031555903c2ed0410b5bd9f7005884e1b336a14c40f1d7762b1#npm:2.1.2"]\ ],\ "linkType": "SOFT"\ @@ -7429,10 +7455,10 @@ const RAW_RUNTIME_STATE = ["semver", "npm:5.7.2"],\ ["sitemap", "npm:2.2.0"],\ ["superagent", "npm:3.8.3"],\ - ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:9.1.1"],\ + ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:10.9.2"],\ ["ts-node-dev", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:1.1.6"],\ ["tsc-watch", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:4.5.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["underscore", "npm:1.13.1"],\ ["uuid", "npm:10.0.0"],\ ["vitest", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:2.1.2"],\ @@ -9584,6 +9610,42 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["@tsconfig/node10", [\ + ["npm:1.0.11", {\ + "packageLocation": "./.yarn/cache/@tsconfig-node10-npm-1.0.11-ab23db00e2-51fe47d55f.zip/node_modules/@tsconfig/node10/",\ + "packageDependencies": [\ + ["@tsconfig/node10", "npm:1.0.11"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@tsconfig/node12", [\ + ["npm:1.0.11", {\ + "packageLocation": "./.yarn/cache/@tsconfig-node12-npm-1.0.11-9710d1c61b-5ce29a41b1.zip/node_modules/@tsconfig/node12/",\ + "packageDependencies": [\ + ["@tsconfig/node12", "npm:1.0.11"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@tsconfig/node14", [\ + ["npm:1.0.3", {\ + "packageLocation": "./.yarn/cache/@tsconfig-node14-npm-1.0.3-15321421d2-19275fe80c.zip/node_modules/@tsconfig/node14/",\ + "packageDependencies": [\ + ["@tsconfig/node14", "npm:1.0.3"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ + ["@tsconfig/node16", [\ + ["npm:1.0.4", {\ + "packageLocation": "./.yarn/cache/@tsconfig-node16-npm-1.0.4-b7cb87d859-2023197859.zip/node_modules/@tsconfig/node16/",\ + "packageDependencies": [\ + ["@tsconfig/node16", "npm:1.0.4"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["@tufjs/canonical-json", [\ ["npm:2.0.0", {\ "packageLocation": "./.yarn/cache/@tufjs-canonical-json-npm-2.0.0-46a22aa444-cc719a1d0d.zip/node_modules/@tufjs/canonical-json/",\ @@ -10571,7 +10633,7 @@ const RAW_RUNTIME_STATE = ["ignore", "npm:5.3.1"],\ ["natural-compare", "npm:1.4.0"],\ ["ts-api-utils", "virtual:21f0eda927351d0d854685e6f8ce2c388ea97fd03b53f32925ef60c1bbe6901fa393627af856f09ec4a39105d6a8dc0925bcf00055c127f1eab4b5863d74d189#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/eslint",\ @@ -10604,7 +10666,7 @@ const RAW_RUNTIME_STATE = ["@typescript-eslint/visitor-keys", "npm:8.11.0"],\ ["debug", "virtual:58471071b1e0e7981e3318280660861b4dec874aaf0d60e144b70657cb5ce0af059ae16711a2af10f4d1ff0536527e350e6e47a8f79db2d8d37ff2ec84865bbc#npm:4.3.4"],\ ["eslint", null],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/eslint",\ @@ -10643,7 +10705,7 @@ const RAW_RUNTIME_STATE = ["@typescript-eslint/utils", "virtual:9a1df3d3b5d03ce4b617810d06b0ecbf1cc4073b45db4d035f088271ad7c642854fa03d1b125b55fe6cd55d49499f71cf4fb61d2f94cb11e68402066d7271da4#npm:8.11.0"],\ ["debug", "virtual:58471071b1e0e7981e3318280660861b4dec874aaf0d60e144b70657cb5ce0af059ae16711a2af10f4d1ff0536527e350e6e47a8f79db2d8d37ff2ec84865bbc#npm:4.3.4"],\ ["ts-api-utils", "virtual:21f0eda927351d0d854685e6f8ce2c388ea97fd03b53f32925ef60c1bbe6901fa393627af856f09ec4a39105d6a8dc0925bcf00055c127f1eab4b5863d74d189#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -10682,7 +10744,7 @@ const RAW_RUNTIME_STATE = ["minimatch", "npm:9.0.4"],\ ["semver", "npm:7.6.0"],\ ["ts-api-utils", "virtual:21f0eda927351d0d854685e6f8ce2c388ea97fd03b53f32925ef60c1bbe6901fa393627af856f09ec4a39105d6a8dc0925bcf00055c127f1eab4b5863d74d189#npm:1.3.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -11419,6 +11481,14 @@ const RAW_RUNTIME_STATE = ["acorn-walk", "npm:8.3.2"]\ ],\ "linkType": "HARD"\ + }],\ + ["npm:8.3.4", {\ + "packageLocation": "./.yarn/cache/acorn-walk-npm-8.3.4-a75fa85ead-871386764e.zip/node_modules/acorn-walk/",\ + "packageDependencies": [\ + ["acorn-walk", "npm:8.3.4"],\ + ["acorn", "npm:8.13.0"]\ + ],\ + "linkType": "HARD"\ }]\ ]],\ ["add-stream", [\ @@ -27945,7 +28015,7 @@ const RAW_RUNTIME_STATE = ["react", "npm:18.2.0"],\ ["sass", "npm:1.56.1"],\ ["tsc-watch", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:6.0.4"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ ["typescript-eslint", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:8.11.0"],\ ["vite", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:5.4.8"],\ ["vitest", "virtual:dc3fc578bfa5e06182a4d2be39ede0bc5b74940b1ffe0d70c26892ab140a4699787750fba175dc306292e80b4aa2c8c5f68c2a821e69b2c37e360c0dff36ff66#npm:1.5.0"],\ @@ -30252,7 +30322,7 @@ const RAW_RUNTIME_STATE = "packageDependencies": [\ ["ts-api-utils", "virtual:21f0eda927351d0d854685e6f8ce2c388ea97fd03b53f32925ef60c1bbe6901fa393627af856f09ec4a39105d6a8dc0925bcf00055c127f1eab4b5863d74d189#npm:1.3.0"],\ ["@types/typescript", null],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -30285,6 +30355,13 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["ts-node", [\ + ["npm:10.9.2", {\ + "packageLocation": "./.yarn/cache/ts-node-npm-10.9.2-3f3890b9ac-a91a15b3c9.zip/node_modules/ts-node/",\ + "packageDependencies": [\ + ["ts-node", "npm:10.9.2"]\ + ],\ + "linkType": "SOFT"\ + }],\ ["npm:9.1.1", {\ "packageLocation": "./.yarn/cache/ts-node-npm-9.1.1-4ad31da228-7fd8da71dd.zip/node_modules/ts-node/",\ "packageDependencies": [\ @@ -30292,20 +30369,92 @@ const RAW_RUNTIME_STATE = ],\ "linkType": "SOFT"\ }],\ - ["virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:9.1.1", {\ - "packageLocation": "./.yarn/__virtual__/ts-node-virtual-dc658adabd/0/cache/ts-node-npm-9.1.1-4ad31da228-7fd8da71dd.zip/node_modules/ts-node/",\ + ["virtual:13d68e69aa507cc68cd3d4f114e765f93a05ee807f61ca1806cdd92647c22e016f30a79ec4ff12529058e7d66d3b0df7b866ee2f8704a5e5a3bc61a70ddb3311#npm:9.1.1", {\ + "packageLocation": "./.yarn/__virtual__/ts-node-virtual-b59839b302/0/cache/ts-node-npm-9.1.1-4ad31da228-7fd8da71dd.zip/node_modules/ts-node/",\ "packageDependencies": [\ - ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:9.1.1"],\ + ["ts-node", "virtual:13d68e69aa507cc68cd3d4f114e765f93a05ee807f61ca1806cdd92647c22e016f30a79ec4ff12529058e7d66d3b0df7b866ee2f8704a5e5a3bc61a70ddb3311#npm:9.1.1"],\ ["@types/typescript", null],\ ["arg", "npm:4.1.3"],\ ["create-require", "npm:1.1.1"],\ ["diff", "npm:4.0.2"],\ ["make-error", "npm:1.3.6"],\ ["source-map-support", "npm:0.5.20"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ + ["yn", "npm:3.1.1"]\ + ],\ + "packagePeers": [\ + "@types/typescript",\ + "typescript"\ + ],\ + "linkType": "HARD"\ + }],\ + ["virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:10.9.2", {\ + "packageLocation": "./.yarn/__virtual__/ts-node-virtual-cd240f0ea8/0/cache/ts-node-npm-10.9.2-3f3890b9ac-a91a15b3c9.zip/node_modules/ts-node/",\ + "packageDependencies": [\ + ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:10.9.2"],\ + ["@cspotcode/source-map-support", "npm:0.8.1"],\ + ["@swc/core", null],\ + ["@swc/wasm", null],\ + ["@tsconfig/node10", "npm:1.0.11"],\ + ["@tsconfig/node12", "npm:1.0.11"],\ + ["@tsconfig/node14", "npm:1.0.3"],\ + ["@tsconfig/node16", "npm:1.0.4"],\ + ["@types/node", null],\ + ["@types/swc__core", null],\ + ["@types/swc__wasm", null],\ + ["@types/typescript", null],\ + ["acorn", "npm:8.13.0"],\ + ["acorn-walk", "npm:8.3.4"],\ + ["arg", "npm:4.1.3"],\ + ["create-require", "npm:1.1.1"],\ + ["diff", "npm:4.0.2"],\ + ["make-error", "npm:1.3.6"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ + ["v8-compile-cache-lib", "npm:3.0.1"],\ ["yn", "npm:3.1.1"]\ ],\ "packagePeers": [\ + "@swc/core",\ + "@swc/wasm",\ + "@types/node",\ + "@types/swc__core",\ + "@types/swc__wasm",\ + "@types/typescript",\ + "typescript"\ + ],\ + "linkType": "HARD"\ + }],\ + ["virtual:91213f02ae820a190b230a7880bf0bf0c2c9838397b0cf7428815db9bfbf992c47df4585ca3b01cd14d7a39c5069db5fdbf809cb9db4dfc613f95e2e83ce1e0a#npm:10.9.2", {\ + "packageLocation": "./.yarn/__virtual__/ts-node-virtual-0578fc3a60/0/cache/ts-node-npm-10.9.2-3f3890b9ac-a91a15b3c9.zip/node_modules/ts-node/",\ + "packageDependencies": [\ + ["ts-node", "virtual:91213f02ae820a190b230a7880bf0bf0c2c9838397b0cf7428815db9bfbf992c47df4585ca3b01cd14d7a39c5069db5fdbf809cb9db4dfc613f95e2e83ce1e0a#npm:10.9.2"],\ + ["@cspotcode/source-map-support", "npm:0.8.1"],\ + ["@swc/core", null],\ + ["@swc/wasm", null],\ + ["@tsconfig/node10", "npm:1.0.11"],\ + ["@tsconfig/node12", "npm:1.0.11"],\ + ["@tsconfig/node14", "npm:1.0.3"],\ + ["@tsconfig/node16", "npm:1.0.4"],\ + ["@types/node", "npm:20.12.7"],\ + ["@types/swc__core", null],\ + ["@types/swc__wasm", null],\ + ["@types/typescript", null],\ + ["acorn", "npm:8.13.0"],\ + ["acorn-walk", "npm:8.3.4"],\ + ["arg", "npm:4.1.3"],\ + ["create-require", "npm:1.1.1"],\ + ["diff", "npm:4.0.2"],\ + ["make-error", "npm:1.3.6"],\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"],\ + ["v8-compile-cache-lib", "npm:3.0.1"],\ + ["yn", "npm:3.1.1"]\ + ],\ + "packagePeers": [\ + "@swc/core",\ + "@swc/wasm",\ + "@types/node",\ + "@types/swc__core",\ + "@types/swc__wasm",\ "@types/typescript",\ "typescript"\ ],\ @@ -30336,9 +30485,9 @@ const RAW_RUNTIME_STATE = ["rimraf", "npm:2.7.1"],\ ["source-map-support", "npm:0.5.20"],\ ["tree-kill", "npm:1.2.2"],\ - ["ts-node", "virtual:6d9c0fee0b376eb0bb6824eb7a3246834ef21d870b31f75eebe59bb4d027e50f2607ba168fd29d446567f4e9c2a5cad2442c4741fa92c92e0b7e9145c3a3e3a7#npm:9.1.1"],\ + ["ts-node", "virtual:13d68e69aa507cc68cd3d4f114e765f93a05ee807f61ca1806cdd92647c22e016f30a79ec4ff12529058e7d66d3b0df7b866ee2f8704a5e5a3bc61a70ddb3311#npm:9.1.1"],\ ["tsconfig", "npm:7.0.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/node-notifier",\ @@ -30374,7 +30523,7 @@ const RAW_RUNTIME_STATE = ["ps-tree", "npm:1.2.0"],\ ["string-argv", "npm:0.1.2"],\ ["strip-ansi", "npm:6.0.1"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -30391,7 +30540,7 @@ const RAW_RUNTIME_STATE = ["node-cleanup", "npm:2.1.2"],\ ["ps-tree", "npm:1.2.0"],\ ["string-argv", "npm:0.3.2"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -30659,17 +30808,17 @@ const RAW_RUNTIME_STATE = }]\ ]],\ ["typescript", [\ - ["patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071", {\ - "packageLocation": "./.yarn/cache/typescript-patch-97a611e52a-f5481fa3ba.zip/node_modules/typescript/",\ + ["patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441", {\ + "packageLocation": "./.yarn/cache/typescript-patch-3914634c3a-f79cc2ba80.zip/node_modules/typescript/",\ "packageDependencies": [\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441"]\ ],\ "linkType": "HARD"\ }],\ - ["patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441", {\ - "packageLocation": "./.yarn/cache/typescript-patch-3914634c3a-f79cc2ba80.zip/node_modules/typescript/",\ + ["patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40", {\ + "packageLocation": "./.yarn/cache/typescript-patch-8964a48ba3-00504c01ee.zip/node_modules/typescript/",\ "packageDependencies": [\ - ["typescript", "patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "linkType": "HARD"\ }]\ @@ -30690,7 +30839,7 @@ const RAW_RUNTIME_STATE = ["@typescript-eslint/eslint-plugin", "virtual:9a1df3d3b5d03ce4b617810d06b0ecbf1cc4073b45db4d035f088271ad7c642854fa03d1b125b55fe6cd55d49499f71cf4fb61d2f94cb11e68402066d7271da4#npm:8.11.0"],\ ["@typescript-eslint/parser", "virtual:9a1df3d3b5d03ce4b617810d06b0ecbf1cc4073b45db4d035f088271ad7c642854fa03d1b125b55fe6cd55d49499f71cf4fb61d2f94cb11e68402066d7271da4#npm:8.11.0"],\ ["@typescript-eslint/utils", "virtual:9a1df3d3b5d03ce4b617810d06b0ecbf1cc4073b45db4d035f088271ad7c642854fa03d1b125b55fe6cd55d49499f71cf4fb61d2f94cb11e68402066d7271da4#npm:8.11.0"],\ - ["typescript", "patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071"]\ + ["typescript", "patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40"]\ ],\ "packagePeers": [\ "@types/typescript",\ @@ -31237,6 +31386,15 @@ const RAW_RUNTIME_STATE = "linkType": "HARD"\ }]\ ]],\ + ["v8-compile-cache-lib", [\ + ["npm:3.0.1", {\ + "packageLocation": "./.yarn/cache/v8-compile-cache-lib-npm-3.0.1-4886071ece-88d3423a52.zip/node_modules/v8-compile-cache-lib/",\ + "packageDependencies": [\ + ["v8-compile-cache-lib", "npm:3.0.1"]\ + ],\ + "linkType": "HARD"\ + }]\ + ]],\ ["v8-to-istanbul", [\ ["npm:9.1.0", {\ "packageLocation": "./.yarn/cache/v8-to-istanbul-npm-9.1.0-04cd324682-95811ff2f1.zip/node_modules/v8-to-istanbul/",\ @@ -32817,26 +32975,24 @@ function ERR_DIR_CLOSED() { const DEFAULT_MODE = S_IFREG | 420; class StatEntry { - constructor() { - this.uid = 0; - this.gid = 0; - this.size = 0; - this.blksize = 0; - this.atimeMs = 0; - this.mtimeMs = 0; - this.ctimeMs = 0; - this.birthtimeMs = 0; - this.atime = new Date(0); - this.mtime = new Date(0); - this.ctime = new Date(0); - this.birthtime = new Date(0); - this.dev = 0; - this.ino = 0; - this.mode = DEFAULT_MODE; - this.nlink = 1; - this.rdev = 0; - this.blocks = 1; - } + uid = 0; + gid = 0; + size = 0; + blksize = 0; + atimeMs = 0; + mtimeMs = 0; + ctimeMs = 0; + birthtimeMs = 0; + atime = /* @__PURE__ */ new Date(0); + mtime = /* @__PURE__ */ new Date(0); + ctime = /* @__PURE__ */ new Date(0); + birthtime = /* @__PURE__ */ new Date(0); + dev = 0; + ino = 0; + mode = DEFAULT_MODE; + nlink = 1; + rdev = 0; + blocks = 1; isBlockDevice() { return false; } @@ -32860,30 +33016,28 @@ class StatEntry { } } class BigIntStatsEntry { - constructor() { - this.uid = BigInt(0); - this.gid = BigInt(0); - this.size = BigInt(0); - this.blksize = BigInt(0); - this.atimeMs = BigInt(0); - this.mtimeMs = BigInt(0); - this.ctimeMs = BigInt(0); - this.birthtimeMs = BigInt(0); - this.atimeNs = BigInt(0); - this.mtimeNs = BigInt(0); - this.ctimeNs = BigInt(0); - this.birthtimeNs = BigInt(0); - this.atime = new Date(0); - this.mtime = new Date(0); - this.ctime = new Date(0); - this.birthtime = new Date(0); - this.dev = BigInt(0); - this.ino = BigInt(0); - this.mode = BigInt(DEFAULT_MODE); - this.nlink = BigInt(1); - this.rdev = BigInt(0); - this.blocks = BigInt(1); - } + uid = BigInt(0); + gid = BigInt(0); + size = BigInt(0); + blksize = BigInt(0); + atimeMs = BigInt(0); + mtimeMs = BigInt(0); + ctimeMs = BigInt(0); + birthtimeMs = BigInt(0); + atimeNs = BigInt(0); + mtimeNs = BigInt(0); + ctimeNs = BigInt(0); + birthtimeNs = BigInt(0); + atime = /* @__PURE__ */ new Date(0); + mtime = /* @__PURE__ */ new Date(0); + ctime = /* @__PURE__ */ new Date(0); + birthtime = /* @__PURE__ */ new Date(0); + dev = BigInt(0); + ino = BigInt(0); + mode = BigInt(DEFAULT_MODE); + nlink = BigInt(1); + rdev = BigInt(0); + blocks = BigInt(1); isBlockDevice() { return false; } @@ -32918,7 +33072,7 @@ function clearStats(stats) { } else if (typeof element === `bigint`) { stats[key] = BigInt(0); } else if (nodeUtils__namespace.types.isDate(element)) { - stats[key] = new Date(0); + stats[key] = /* @__PURE__ */ new Date(0); } } } @@ -33009,6 +33163,9 @@ const Filename = { manifest: `package.json`, lockfile: `yarn.lock`, virtual: `__virtual__`, + /** + * @deprecated + */ pnpJs: `.pnp.js`, pnpCjs: `.pnp.cjs`, pnpData: `.pnp.data.json`, @@ -33290,8 +33447,8 @@ class CustomDir { this.path = path; this.nextDirent = nextDirent; this.opts = opts; - this.closed = false; } + closed = false; throwIfClosed() { if (this.closed) { throw ERR_DIR_CLOSED(); @@ -33349,21 +33506,25 @@ function assertStatus(current, expected) { } } class CustomStatWatcher extends events.EventEmitter { + fakeFs; + path; + bigint; + status = "ready" /* Ready */; + changeListeners = /* @__PURE__ */ new Map(); + lastStats; + startTimeout = null; + static create(fakeFs, path, opts) { + const statWatcher = new CustomStatWatcher(fakeFs, path, opts); + statWatcher.start(); + return statWatcher; + } constructor(fakeFs, path, { bigint = false } = {}) { super(); - this.status = "ready" /* Ready */; - this.changeListeners = /* @__PURE__ */ new Map(); - this.startTimeout = null; this.fakeFs = fakeFs; this.path = path; this.bigint = bigint; this.lastStats = this.stat(); } - static create(fakeFs, path, opts) { - const statWatcher = new CustomStatWatcher(fakeFs, path, opts); - statWatcher.start(); - return statWatcher; - } start() { assertStatus(this.status, "ready" /* Ready */); this.status = "running" /* Running */; @@ -33391,6 +33552,11 @@ class CustomStatWatcher extends events.EventEmitter { return clearStats(statInstance); } } + /** + * Creates an interval whose callback compares the current stats with the previous stats and notifies all listeners in case of changes. + * + * @param opts.persistent Decides whether the interval should be immediately unref-ed. + */ makeInterval(opts) { const interval = setInterval(() => { const currentStats = this.stat(); @@ -33402,10 +33568,16 @@ class CustomStatWatcher extends events.EventEmitter { }, opts.interval); return opts.persistent ? interval : interval.unref(); } + /** + * Registers a listener and assigns it an interval. + */ registerChangeListener(listener, opts) { this.addListener("change" /* Change */, listener); this.changeListeners.set(listener, this.makeInterval(opts)); } + /** + * Unregisters the listener and clears the assigned interval. + */ unregisterChangeListener(listener) { this.removeListener("change" /* Change */, listener); const interval = this.changeListeners.get(listener); @@ -33413,6 +33585,9 @@ class CustomStatWatcher extends events.EventEmitter { clearInterval(interval); this.changeListeners.delete(listener); } + /** + * Unregisters all listeners and clears all assigned intervals. + */ unregisterAllChangeListeners() { for (const listener of this.changeListeners.keys()) { this.unregisterChangeListener(listener); @@ -33421,11 +33596,17 @@ class CustomStatWatcher extends events.EventEmitter { hasChangeListeners() { return this.changeListeners.size > 0; } + /** + * Refs all stored intervals. + */ ref() { for (const interval of this.changeListeners.values()) interval.ref(); return this; } + /** + * Unrefs all stored intervals. + */ unref() { for (const interval of this.changeListeners.values()) interval.unref(); @@ -33496,6 +33677,7 @@ function unwatchAllFiles(fakeFs) { } class FakeFS { + pathUtils; constructor(pathUtils) { this.pathUtils = pathUtils; } @@ -34104,6 +34286,7 @@ class ProxiedFS extends FakeFS { watch(p, a, b) { return this.baseFs.watch( this.mapToBase(p), + // @ts-expect-error a, b ); @@ -34111,6 +34294,7 @@ class ProxiedFS extends FakeFS { watchFile(p, a, b) { return this.baseFs.watchFile( this.mapToBase(p), + // @ts-expect-error a, b ); @@ -34134,6 +34318,7 @@ function direntToPortable(dirent) { return portableDirent; } class NodeFS extends BasePortableFakeFS { + realFs; constructor(realFs = fs__default.default) { super(); this.realFs = realFs; @@ -34529,6 +34714,7 @@ class NodeFS extends BasePortableFakeFS { watch(p, a, b) { return this.realFs.watch( npath.fromPortablePath(p), + // @ts-expect-error a, b ); @@ -34536,6 +34722,7 @@ class NodeFS extends BasePortableFakeFS { watchFile(p, a, b) { return this.realFs.watchFile( npath.fromPortablePath(p), + // @ts-expect-error a, b ); @@ -34556,16 +34743,25 @@ class NodeFS extends BasePortableFakeFS { const MOUNT_MASK = 4278190080; class MountFS extends BasePortableFakeFS { + baseFs; + mountInstances; + fdMap = /* @__PURE__ */ new Map(); + nextFd = 3; + factoryPromise; + factorySync; + filter; + getMountPoint; + magic; + maxAge; + maxOpenFiles; + typeCheck; + isMount = /* @__PURE__ */ new Set(); + notMount = /* @__PURE__ */ new Set(); + realPaths = /* @__PURE__ */ new Map(); constructor({ baseFs = new NodeFS(), filter = null, magicByte = 42, maxOpenFiles = Infinity, useCache = true, maxAge = 5e3, typeCheck = fs.constants.S_IFREG, getMountPoint, factoryPromise, factorySync }) { if (Math.floor(magicByte) !== magicByte || !(magicByte > 1 && magicByte <= 127)) throw new Error(`The magic byte must be set to a round value between 1 and 127 included`); super(); - this.fdMap = /* @__PURE__ */ new Map(); - this.nextFd = 3; - this.isMount = /* @__PURE__ */ new Set(); - this.notMount = /* @__PURE__ */ new Set(); - this.realPaths = /* @__PURE__ */ new Map(); - this.limitOpenFilesTimeout = null; this.baseFs = baseFs; this.mountInstances = useCache ? /* @__PURE__ */ new Map() : null; this.factoryPromise = factoryPromise; @@ -35221,12 +35417,14 @@ class MountFS extends BasePortableFakeFS { return this.makeCallSync(p, () => { return this.baseFs.watch( p, + // @ts-expect-error a, b ); }, (mountFs, { subPath }) => { return mountFs.watch( subPath, + // @ts-expect-error a, b ); @@ -35236,6 +35434,7 @@ class MountFS extends BasePortableFakeFS { return this.makeCallSync(p, () => { return this.baseFs.watchFile( p, + // @ts-expect-error a, b ); @@ -35301,6 +35500,7 @@ class MountFS extends BasePortableFakeFS { }; } } + limitOpenFilesTimeout = null; limitOpenFiles(max) { if (this.mountInstances === null) return; @@ -35390,6 +35590,7 @@ class MountFS extends BasePortableFakeFS { } class PosixFS extends ProxiedFS { + baseFs; constructor(baseFs) { super(npath); this.baseFs = baseFs; @@ -35406,10 +35607,7 @@ const NUMBER_REGEXP = /^[0-9]+$/; const VIRTUAL_REGEXP = /^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/; const VALID_COMPONENT = /^([^/]+-)?[a-f0-9]+$/; class VirtualFS extends ProxiedFS { - constructor({ baseFs = new NodeFS() } = {}) { - super(ppath); - this.baseFs = baseFs; - } + baseFs; static makeVirtualPath(base, component, to) { if (ppath.basename(base) !== `__virtual__`) throw new Error(`Assertion failed: Virtual folders must be named "__virtual__"`); @@ -35439,6 +35637,10 @@ class VirtualFS extends ProxiedFS { const subpath = match[5] || `.`; return VirtualFS.resolveVirtual(ppath.join(target, backstep, subpath)); } + constructor({ baseFs = new NodeFS() } = {}) { + super(ppath); + this.baseFs = baseFs; + } getExtractHint(hints) { return this.baseFs.getExtractHint(hints); } @@ -35480,6 +35682,7 @@ class VirtualFS extends ProxiedFS { const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? url.URL : globalThis.URL; class NodePathFS extends ProxiedFS { + baseFs; constructor(baseFs) { super(npath); this.baseFs = baseFs; @@ -35507,7 +35710,6 @@ function isUtf8(buf, str) { return Buffer.byteLength(str) === buf.byteLength; } -var _a, _b, _c, _d; const kBaseFs = Symbol(`kBaseFs`); const kFd = Symbol(`kFd`); const kClosePromise = Symbol(`kClosePromise`); @@ -35517,11 +35719,13 @@ const kRefs = Symbol(`kRefs`); const kRef = Symbol(`kRef`); const kUnref = Symbol(`kUnref`); class FileHandle { + [kBaseFs]; + [kFd]; + [kRefs] = 1; + [kClosePromise] = void 0; + [kCloseResolve] = void 0; + [kCloseReject] = void 0; constructor(fd, baseFs) { - this[_a] = 1; - this[_b] = void 0; - this[_c] = void 0; - this[_d] = void 0; this[kBaseFs] = baseFs; this[kFd] = fd; } @@ -35559,9 +35763,11 @@ class FileHandle { createWriteStream(options) { return this[kBaseFs].createWriteStream(null, { ...options, fd: this.fd }); } + // FIXME: Missing FakeFS version datasync() { throw new Error(`Method not implemented.`); } + // FIXME: Missing FakeFS version sync() { throw new Error(`Method not implemented.`); } @@ -35626,6 +35832,7 @@ class FileHandle { this[kUnref](); } } + // FIXME: Missing FakeFS version utimes(atime, mtime) { throw new Error(`Method not implemented.`); } @@ -35654,6 +35861,7 @@ class FileHandle { this[kUnref](); } } + // TODO: Use writev from FakeFS when that is implemented async writev(buffers, position) { try { this[kRef](this.writev); @@ -35678,14 +35886,13 @@ class FileHandle { this[kUnref](); } } + // FIXME: Missing FakeFS version readv(buffers, position) { throw new Error(`Method not implemented.`); } close() { - if (this[kFd] === -1) - return Promise.resolve(); - if (this[kClosePromise]) - return this[kClosePromise]; + if (this[kFd] === -1) return Promise.resolve(); + if (this[kClosePromise]) return this[kClosePromise]; this[kRefs]--; if (this[kRefs] === 0) { const fd = this[kFd]; @@ -35705,7 +35912,7 @@ class FileHandle { } return this[kClosePromise]; } - [(_a = kRefs, _b = kClosePromise, _c = kCloseResolve, _d = kCloseReject, kRef)](caller) { + [kRef](caller) { if (this[kFd] === -1) { const err = new Error(`file closed`); err.code = `EBADF`; @@ -35965,8 +36172,7 @@ var libzipSync = {exports: {}}; var frozenFs = Object.assign({}, fs__default.default); var createModule = function() { var _scriptDir = void 0; - if (typeof __filename !== "undefined") - _scriptDir = _scriptDir || __filename; + if (typeof __filename !== "undefined") _scriptDir = _scriptDir || __filename; return function(createModule2) { createModule2 = createModule2 || {}; var Module = typeof createModule2 !== "undefined" ? createModule2 : {}; @@ -36001,10 +36207,8 @@ var createModule = function() { if (ret) { return binary ? ret : ret.toString(); } - if (!nodeFS) - nodeFS = frozenFs; - if (!nodePath) - nodePath = path__default.default; + if (!nodeFS) nodeFS = frozenFs; + if (!nodePath) nodePath = path__default.default; filename = nodePath["normalize"](filename); return nodeFS["readFileSync"](filename, binary ? null : "utf8"); }; @@ -36032,23 +36236,18 @@ var createModule = function() { } } moduleOverrides = null; - if (Module["arguments"]) - ; - if (Module["thisProgram"]) - ; - if (Module["quit"]) - ; + if (Module["arguments"]) ; + if (Module["thisProgram"]) ; + if (Module["quit"]) ; var wasmBinary; - if (Module["wasmBinary"]) - wasmBinary = Module["wasmBinary"]; + if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"]; Module["noExitRuntime"] || true; if (typeof WebAssembly !== "object") { abort("no native wasm support detected"); } function getValue(ptr, type, noSafe) { type = type || "i8"; - if (type.charAt(type.length - 1) === "*") - type = "i32"; + if (type.charAt(type.length - 1) === "*") type = "i32"; switch (type) { case "i1": return HEAP8[ptr >> 0]; @@ -36102,10 +36301,8 @@ var createModule = function() { } }; function convertReturnValue(ret2) { - if (returnType === "string") - return UTF8ToString(ret2); - if (returnType === "boolean") - return Boolean(ret2); + if (returnType === "string") return UTF8ToString(ret2); + if (returnType === "boolean") return Boolean(ret2); return ret2; } var func = getCFunc(ident); @@ -36115,8 +36312,7 @@ var createModule = function() { for (var i = 0; i < args.length; i++) { var converter = toC[argTypes[i]]; if (converter) { - if (stack === 0) - stack = stackSave(); + if (stack === 0) stack = stackSave(); cArgs[i] = converter(args[i]); } else { cArgs[i] = args[i]; @@ -36125,8 +36321,7 @@ var createModule = function() { } var ret = func.apply(null, cArgs); ret = convertReturnValue(ret); - if (stack !== 0) - stackRestore(stack); + if (stack !== 0) stackRestore(stack); return ret; } function cwrap(ident, returnType, argTypes, opts) { @@ -36144,16 +36339,13 @@ var createModule = function() { } var UTF8Decoder = new TextDecoder("utf8"); function UTF8ToString(ptr, maxBytesToRead) { - if (!ptr) - return ""; + if (!ptr) return ""; var maxPtr = ptr + maxBytesToRead; - for (var end = ptr; !(end >= maxPtr) && HEAPU8[end]; ) - ++end; + for (var end = ptr; !(end >= maxPtr) && HEAPU8[end]; ) ++end; return UTF8Decoder.decode(HEAPU8.subarray(ptr, end)); } function stringToUTF8Array(str, heap, outIdx, maxBytesToWrite) { - if (!(maxBytesToWrite > 0)) - return 0; + if (!(maxBytesToWrite > 0)) return 0; var startIdx = outIdx; var endIdx = outIdx + maxBytesToWrite - 1; for (var i = 0; i < str.length; ++i) { @@ -36163,23 +36355,19 @@ var createModule = function() { u = 65536 + ((u & 1023) << 10) | u1 & 1023; } if (u <= 127) { - if (outIdx >= endIdx) - break; + if (outIdx >= endIdx) break; heap[outIdx++] = u; } else if (u <= 2047) { - if (outIdx + 1 >= endIdx) - break; + if (outIdx + 1 >= endIdx) break; heap[outIdx++] = 192 | u >> 6; heap[outIdx++] = 128 | u & 63; } else if (u <= 65535) { - if (outIdx + 2 >= endIdx) - break; + if (outIdx + 2 >= endIdx) break; heap[outIdx++] = 224 | u >> 12; heap[outIdx++] = 128 | u >> 6 & 63; heap[outIdx++] = 128 | u & 63; } else { - if (outIdx + 3 >= endIdx) - break; + if (outIdx + 3 >= endIdx) break; heap[outIdx++] = 240 | u >> 18; heap[outIdx++] = 128 | u >> 12 & 63; heap[outIdx++] = 128 | u >> 6 & 63; @@ -36198,22 +36386,17 @@ var createModule = function() { var u = str.charCodeAt(i); if (u >= 55296 && u <= 57343) u = 65536 + ((u & 1023) << 10) | str.charCodeAt(++i) & 1023; - if (u <= 127) - ++len; - else if (u <= 2047) - len += 2; - else if (u <= 65535) - len += 3; - else - len += 4; + if (u <= 127) ++len; + else if (u <= 2047) len += 2; + else if (u <= 65535) len += 3; + else len += 4; } return len; } function allocateUTF8(str) { var size = lengthBytesUTF8(str) + 1; var ret = _malloc(size); - if (ret) - stringToUTF8Array(str, HEAP8, ret, size); + if (ret) stringToUTF8Array(str, HEAP8, ret, size); return ret; } function writeArrayToMemory(array, buffer2) { @@ -36430,8 +36613,7 @@ var createModule = function() { var start = Date.UTC(date.getUTCFullYear(), 0, 1, 0, 0, 0, 0); var yday = (date.getTime() - start) / (1e3 * 60 * 60 * 24) | 0; LE_HEAP_STORE_I32((tmPtr + 28 >> 2) * 4, yday); - if (!_gmtime_r.GMTString) - _gmtime_r.GMTString = allocateUTF8("GMT"); + if (!_gmtime_r.GMTString) _gmtime_r.GMTString = allocateUTF8("GMT"); LE_HEAP_STORE_I32((tmPtr + 40 >> 2) * 4, _gmtime_r.GMTString); return tmPtr; } @@ -36483,10 +36665,9 @@ var createModule = function() { return ret; } function _tzset() { - if (_tzset.called) - return; + if (_tzset.called) return; _tzset.called = true; - var currentYear = new Date().getFullYear(); + var currentYear = (/* @__PURE__ */ new Date()).getFullYear(); var winter = new Date(currentYear, 0, 1); var summer = new Date(currentYear, 6, 1); var winterOffset = winter.getTimezoneOffset(); @@ -36614,10 +36795,8 @@ var createModule = function() { Module["getValue"] = getValue; var calledRun; dependenciesFulfilled = function runCaller() { - if (!calledRun) - run(); - if (!calledRun) - dependenciesFulfilled = runCaller; + if (!calledRun) run(); + if (!calledRun) dependenciesFulfilled = runCaller; }; function run(args) { if (runDependencies > 0) { @@ -36628,16 +36807,13 @@ var createModule = function() { return; } function doRun() { - if (calledRun) - return; + if (calledRun) return; calledRun = true; Module["calledRun"] = true; - if (ABORT) - return; + if (ABORT) return; initRuntime(); readyPromiseResolve(Module); - if (Module["onRuntimeInitialized"]) - Module["onRuntimeInitialized"](); + if (Module["onRuntimeInitialized"]) Module["onRuntimeInitialized"](); postRun(); } if (Module["setStatus"]) { @@ -36671,7 +36847,9 @@ const createModule = libzipSync.exports; const number64 = [ `number`, + // low `number` + // high ]; var Errors = /* @__PURE__ */ ((Errors2) => { Errors2[Errors2["ZIP_ER_OK"] = 0] = "ZIP_ER_OK"; @@ -36709,6 +36887,7 @@ var Errors = /* @__PURE__ */ ((Errors2) => { return Errors2; })(Errors || {}); const makeInterface = (emZip) => ({ + // Those are getters because they can change after memory growth get HEAPU8() { return emZip.HEAPU8; }, @@ -36911,6 +37090,7 @@ function makeEmptyArchive() { ]); } class LibzipError extends Error { + code; constructor(message, code) { super(message); this.name = `Libzip Error`; @@ -36918,15 +37098,28 @@ class LibzipError extends Error { } } class ZipFS extends BasePortableFakeFS { + libzip; + baseFs; + path; + stats; + zip; + lzSource; + level; + listings = /* @__PURE__ */ new Map(); + entries = /* @__PURE__ */ new Map(); + /** + * A cache of indices mapped to file sources. + * Populated by `setFileSource` calls. + * Required for supporting read after write. + */ + fileSources = /* @__PURE__ */ new Map(); + symlinkCount; + fds = /* @__PURE__ */ new Map(); + nextFd = 0; + ready = false; + readOnly = false; constructor(source, opts = {}) { super(); - this.listings = /* @__PURE__ */ new Map(); - this.entries = /* @__PURE__ */ new Map(); - this.fileSources = /* @__PURE__ */ new Map(); - this.fds = /* @__PURE__ */ new Map(); - this.nextFd = 0; - this.ready = false; - this.readOnly = false; const pathOptions = opts; this.level = typeof pathOptions.level !== `undefined` ? pathOptions.level : DEFAULT_COMPRESSION_LEVEL; source ??= makeEmptyArchive(); @@ -37175,6 +37368,7 @@ class ZipFS extends BasePortableFakeFS { }, bytesRead: 0, path: p, + // "This property is `true` if the underlying file has not been opened yet" pending: false } ); @@ -37221,6 +37415,7 @@ class ZipFS extends BasePortableFakeFS { }, bytesWritten: 0, path: p, + // "This property is `true` if the underlying file has not been opened yet" pending: false } ); @@ -38360,6 +38555,8 @@ function hydrateRuntimeState(data, { basePath }) { packagePeers: new Set(packageInformationData.packagePeers), linkType: packageInformationData.linkType, discardFromLookup, + // we only need this for packages that are used by the currently running script + // this is a lazy getter because `ppath.join` has some overhead get packageLocation() { return resolvedPackageLocation || (resolvedPackageLocation = ppath.join(absolutePortablePath, packageInformationData.packageLocation)); } @@ -38621,8 +38818,7 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base const packagePath = new URL(".", packageJSONUrl).pathname; if (!StringPrototypeStartsWith(resolvedPath, packagePath)) throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); - if (subpath === "") - return resolved; + if (subpath === "") return resolved; if (RegExpPrototypeExec(invalidSegmentRegEx, subpath) !== null) { const request = pattern ? StringPrototypeReplace(match, "*", () => subpath) : match + subpath; throwInvalidSubpath(request, packageJSONUrl, internal, base); @@ -38636,8 +38832,7 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base } function isArrayIndex(key) { const keyNum = +key; - if (`${keyNum}` !== key) - return false; + if (`${keyNum}` !== key) return false; return keyNum >= 0 && keyNum < 4294967295; } function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, base, pattern, internal, conditions) { @@ -38714,8 +38909,7 @@ function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, b internal, conditions ); - if (resolveResult === void 0) - continue; + if (resolveResult === void 0) continue; return resolveResult; } } @@ -38736,25 +38930,17 @@ function patternKeyCompare(a, b) { const bPatternIndex = StringPrototypeIndexOf(b, "*"); const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLenA > baseLenB) - return -1; - if (baseLenB > baseLenA) - return 1; - if (aPatternIndex === -1) - return 1; - if (bPatternIndex === -1) - return -1; - if (a.length > b.length) - return -1; - if (b.length > a.length) - return 1; + if (baseLenA > baseLenB) return -1; + if (baseLenB > baseLenA) return 1; + if (aPatternIndex === -1) return 1; + if (bPatternIndex === -1) return -1; + if (a.length > b.length) return -1; + if (b.length > a.length) return 1; return 0; } function isConditionalExportsMainSugar(exports, packageJSONUrl, base) { - if (typeof exports === "string" || ArrayIsArray(exports)) - return true; - if (typeof exports !== "object" || exports === null) - return false; + if (typeof exports === "string" || ArrayIsArray(exports)) return true; + if (typeof exports !== "object" || exports === null) return false; const keys = ObjectGetOwnPropertyNames(exports); let isConditionalSugar = false; let i = 0; @@ -38783,8 +38969,7 @@ function throwExportsNotFound(subpath, packageJSONUrl, base) { const emittedPackageWarnings = /* @__PURE__ */ new Set(); function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { const pjsonPath = url.fileURLToPath(pjsonUrl); - if (emittedPackageWarnings.has(pjsonPath + "|" + match)) - return; + if (emittedPackageWarnings.has(pjsonPath + "|" + match)) return; emittedPackageWarnings.add(pjsonPath + "|" + match); process.emitWarning( `Use of deprecated trailing slash pattern mapping "${match}" in the "exports" field module resolution of the package at ${pjsonPath}${base ? ` imported from ${url.fileURLToPath(base)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, @@ -40053,9 +40238,9 @@ const defaultFsLayer = new VirtualFS({ }) }); class DynamicFS extends ProxiedFS { + baseFs = defaultFsLayer; constructor() { super(ppath); - this.baseFs = defaultFsLayer; } mapToBase(p) { return p; @@ -40070,6 +40255,11 @@ const defaultApi = Object.assign(makeApi(defaultRuntimeState, { fakeFs: dynamicFsLayer, pnpapiResolution: defaultPnpapiResolution }), { + /** + * Can be used to generate a different API than the default one (for example + * to map it on `/` rather than the local directory path, or to use a + * different FS layer than the default one). + */ makeApi: ({ basePath = void 0, fakeFs = dynamicFsLayer, @@ -40083,6 +40273,10 @@ const defaultApi = Object.assign(makeApi(defaultRuntimeState, { ...rest }); }, + /** + * Will inject the specified API into the environment, monkey-patching FS. Is + * automatically called when the hook is loaded through `--require`. + */ setup: (api) => { applyPatch(api || defaultApi, { fakeFs: defaultFsLayer, diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 6815830b6..e5a542909 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -6,7 +6,7 @@ import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url'; import path from 'path'; import { createHash } from 'crypto'; import { EOL } from 'os'; -import moduleExports, { isBuiltin } from 'module'; +import esmModule, { createRequire, isBuiltin } from 'module'; import assert from 'assert'; const SAFE_TIME = 456789e3; @@ -286,6 +286,7 @@ async function copySymlink(prelayout, postlayout, destinationFs, destination, de } class FakeFS { + pathUtils; constructor(pathUtils) { this.pathUtils = pathUtils; } @@ -894,6 +895,7 @@ class ProxiedFS extends FakeFS { watch(p, a, b) { return this.baseFs.watch( this.mapToBase(p), + // @ts-expect-error a, b ); @@ -901,6 +903,7 @@ class ProxiedFS extends FakeFS { watchFile(p, a, b) { return this.baseFs.watchFile( this.mapToBase(p), + // @ts-expect-error a, b ); @@ -924,6 +927,7 @@ function direntToPortable(dirent) { return portableDirent; } class NodeFS extends BasePortableFakeFS { + realFs; constructor(realFs = fs) { super(); this.realFs = realFs; @@ -1319,6 +1323,7 @@ class NodeFS extends BasePortableFakeFS { watch(p, a, b) { return this.realFs.watch( npath.fromPortablePath(p), + // @ts-expect-error a, b ); @@ -1326,6 +1331,7 @@ class NodeFS extends BasePortableFakeFS { watchFile(p, a, b) { return this.realFs.watchFile( npath.fromPortablePath(p), + // @ts-expect-error a, b ); @@ -1348,10 +1354,7 @@ const NUMBER_REGEXP = /^[0-9]+$/; const VIRTUAL_REGEXP = /^(\/(?:[^/]+\/)*?(?:\$\$virtual|__virtual__))((?:\/((?:[^/]+-)?[a-f0-9]+)(?:\/([^/]+))?)?((?:\/.*)?))$/; const VALID_COMPONENT = /^([^/]+-)?[a-f0-9]+$/; class VirtualFS extends ProxiedFS { - constructor({ baseFs = new NodeFS() } = {}) { - super(ppath); - this.baseFs = baseFs; - } + baseFs; static makeVirtualPath(base, component, to) { if (ppath.basename(base) !== `__virtual__`) throw new Error(`Assertion failed: Virtual folders must be named "__virtual__"`); @@ -1381,6 +1384,10 @@ class VirtualFS extends ProxiedFS { const subpath = match[5] || `.`; return VirtualFS.resolveVirtual(ppath.join(target, backstep, subpath)); } + constructor({ baseFs = new NodeFS() } = {}) { + super(ppath); + this.baseFs = baseFs; + } getExtractHint(hints) { return this.baseFs.getExtractHint(hints); } @@ -1777,8 +1784,7 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base const packagePath = new URL(".", packageJSONUrl).pathname; if (!StringPrototypeStartsWith(resolvedPath, packagePath)) throwInvalidPackageTarget(match, target, packageJSONUrl, internal, base); - if (subpath === "") - return resolved; + if (subpath === "") return resolved; if (RegExpPrototypeExec(invalidSegmentRegEx, subpath) !== null) { const request = pattern ? StringPrototypeReplace(match, "*", () => subpath) : match + subpath; throwInvalidSubpath(request, packageJSONUrl, internal, base); @@ -1792,8 +1798,7 @@ function resolvePackageTargetString(target, subpath, match, packageJSONUrl, base } function isArrayIndex(key) { const keyNum = +key; - if (`${keyNum}` !== key) - return false; + if (`${keyNum}` !== key) return false; return keyNum >= 0 && keyNum < 4294967295; } function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, base, pattern, internal, conditions) { @@ -1870,8 +1875,7 @@ function resolvePackageTarget(packageJSONUrl, target, subpath, packageSubpath, b internal, conditions ); - if (resolveResult === void 0) - continue; + if (resolveResult === void 0) continue; return resolveResult; } } @@ -1892,18 +1896,12 @@ function patternKeyCompare(a, b) { const bPatternIndex = StringPrototypeIndexOf(b, "*"); const baseLenA = aPatternIndex === -1 ? a.length : aPatternIndex + 1; const baseLenB = bPatternIndex === -1 ? b.length : bPatternIndex + 1; - if (baseLenA > baseLenB) - return -1; - if (baseLenB > baseLenA) - return 1; - if (aPatternIndex === -1) - return 1; - if (bPatternIndex === -1) - return -1; - if (a.length > b.length) - return -1; - if (b.length > a.length) - return 1; + if (baseLenA > baseLenB) return -1; + if (baseLenB > baseLenA) return 1; + if (aPatternIndex === -1) return 1; + if (bPatternIndex === -1) return -1; + if (a.length > b.length) return -1; + if (b.length > a.length) return 1; return 0; } function packageImportsResolve({ name, base, conditions, readFileSyncFn }) { @@ -1975,6 +1973,13 @@ function packageImportsResolve({ name, base, conditions, readFileSyncFn }) { throwImportNotDefined(name, packageJSONUrl, base); } +let findPnpApi = esmModule.findPnpApi; +if (!findPnpApi) { + const require = createRequire(import.meta.url); + const pnpApi = require(`./.pnp.cjs`); + pnpApi.setup(); + findPnpApi = esmModule.findPnpApi; +} const pathRegExp = /^(?![a-zA-Z]:[\\/]|\\\\|\.{0,2}(?:\/|$))((?:node:)?(?:@[^/]+\/)?[^/]+)\/*(.*|)$/; const isRelativeRegexp = /^\.{0,2}\//; function tryReadFile(filePath) { @@ -2002,7 +2007,6 @@ async function resolvePrivateRequest(specifier, issuer, context, nextResolve) { } } async function resolve$1(originalSpecifier, context, nextResolve) { - const { findPnpApi } = moduleExports; if (!findPnpApi || isBuiltin(originalSpecifier)) return nextResolve(originalSpecifier, context, nextResolve); let specifier = originalSpecifier; @@ -2038,6 +2042,7 @@ async function resolve$1(originalSpecifier, context, nextResolve) { try { result = pnpapi.resolveRequest(specifier, issuer, { conditions: new Set(conditions), + // TODO: Handle --experimental-specifier-resolution=node extensions: allowLegacyResolve ? void 0 : [] }); } catch (err) { @@ -2068,6 +2073,9 @@ if (!HAS_LAZY_LOADED_TRANSLATORS) { try { return fs.readFileSync(args[0], { encoding: `utf8`, + // @ts-expect-error - The docs says it needs to be a string but + // links to https://nodejs.org/dist/latest-v20.x/docs/api/fs.html#file-system-flags + // which says it can be a number which matches the implementation. flag: args[1] }); } catch { @@ -2095,6 +2103,14 @@ if (!HAS_LAZY_LOADED_TRANSLATORS) { stats.ino, stats.size, stats.blocks + // atime sec + // atime ns + // mtime sec + // mtime ns + // ctime sec + // ctime ns + // birthtime sec + // birthtime ns ]); } catch { } diff --git a/.yarn/sdks/typescript/package.json b/.yarn/sdks/typescript/package.json index 76a119b9c..a9c9401bc 100644 --- a/.yarn/sdks/typescript/package.json +++ b/.yarn/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "typescript", - "version": "5.1.6-sdk", + "version": "5.6.3-sdk", "main": "./lib/typescript.js", "type": "commonjs", "bin": { diff --git a/docker-compose.yml b/docker-compose.yml index f75a2f958..89bcbb959 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ # docker compose versions -version: '2.3' +version: "2.3" services: # This dummy service provides shared configuration for all Node deps @@ -30,7 +30,7 @@ services: retries: 10 ports: # HMR port - - '9992:9992' + - "9992:9992" environment: - NODE_ENV=development depends_on: @@ -94,20 +94,20 @@ services: init: true command: [ - 'uvicorn', - '--host', - '0.0.0.0', - '--port', - '80', - '--reload', - '--factory', + "uvicorn", + "--host", + "0.0.0.0", + "--port", + "80", + "--reload", + "--factory", "datalad_service.app:create_app", - '--workers', - '8', - '--timeout-keep-alive', - '30', - '--log-level', - 'debug', + "--workers", + "8", + "--timeout-keep-alive", + "30", + "--log-level", + "debug", ] networks: default: @@ -121,8 +121,8 @@ services: volumes: - ./nginx/nginx.dev.conf:/etc/nginx/conf.d/default.conf:ro ports: - - '8110:8110' - - '9876:80' + - "8110:8110" + - "9876:80" depends_on: server: condition: service_healthy @@ -135,14 +135,13 @@ services: image: docker.elastic.co/elasticsearch/elasticsearch:8.13.4 environment: discovery.type: single-node - cluster.routing.allocation.disk.threshold_enabled: 'true' + cluster.routing.allocation.disk.threshold_enabled: "true" cluster.routing.allocation.disk.watermark.flood_stage: 1gb cluster.routing.allocation.disk.watermark.low: 10gb cluster.routing.allocation.disk.watermark.high: 5gb xpack.security.enabled: false xpack.security.enrollment.enabled: false - ES_JAVA_OPTS: '-Xms750m -Xmx750m' + ES_JAVA_OPTS: "-Xms750m -Xmx750m" ports: - - '9200:9200' - - '9300:9300' - + - "9200:9200" + - "9300:9300" diff --git a/package.json b/package.json index 2ebba0e01..81f7f8791 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "react": "18.2.0", "sass": "^1.56.1", "tsc-watch": "6.0.4", - "typescript": "5.1.6", + "typescript": "5.6.3", "typescript-eslint": "^8.11.0", "vite": "5.4.8", "vitest": "1.5.0", diff --git a/packages/openneuro-app/package.json b/packages/openneuro-app/package.json index f341e9ca6..62019ce3a 100644 --- a/packages/openneuro-app/package.json +++ b/packages/openneuro-app/package.json @@ -68,7 +68,7 @@ "rollup-plugin-polyfill-node": "0.12.0", "sass": "^1.32.8", "stream-browserify": "^3.0.0", - "typescript": "5.1.6", + "typescript": "5.6.3", "vite": "5.4.8", "vitest": "2.1.2" }, diff --git a/packages/openneuro-cli/src/upload.js b/packages/openneuro-cli/src/upload.js index 7beb0c7b5..d49c14cc8 100644 --- a/packages/openneuro-cli/src/upload.js +++ b/packages/openneuro-cli/src/upload.js @@ -186,6 +186,7 @@ export const uploadFiles = async ({ requests, uploads.uploadSize(filesChunk), uploadProgress, + // @ts-expect-error The fetch-h2 interface doesn't match exactly but well enough for use here fetch, ) } catch (err) { diff --git a/packages/openneuro-components/package.json b/packages/openneuro-components/package.json index 3768e7010..9da3cd69f 100644 --- a/packages/openneuro-components/package.json +++ b/packages/openneuro-components/package.json @@ -41,7 +41,7 @@ "@types/testing-library__jest-dom": "5.14.5", "core-js": "^3.14.0", "sass": "^1.32.8", - "typescript": "5.1.6", + "typescript": "5.6.3", "vitest": "2.1.2" }, "scripts": { diff --git a/packages/openneuro-indexer/package.json b/packages/openneuro-indexer/package.json index 12af9e87b..b02838e3a 100644 --- a/packages/openneuro-indexer/package.json +++ b/packages/openneuro-indexer/package.json @@ -14,8 +14,8 @@ "@openneuro/client": "^4.28.3", "@openneuro/search": "^4.28.3", "graphql": "16.8.1", - "ts-node": "^9.1.1", - "typescript": "5.1.6" + "ts-node": "10.9.2", + "typescript": "5.6.3" }, "scripts": { "build": "tsc -b", diff --git a/packages/openneuro-server/package.json b/packages/openneuro-server/package.json index d7f34bf6f..c57537033 100644 --- a/packages/openneuro-server/package.json +++ b/packages/openneuro-server/package.json @@ -59,8 +59,8 @@ "semver": "^5.5.0", "sitemap": "^2.1.0", "superagent": "^3.8.2", - "ts-node": "9.1.1", - "typescript": "5.1.6", + "ts-node": "10.9.2", + "typescript": "5.6.3", "underscore": "^1.8.3", "uuid": "10.0.0", "xmldoc": "^1.1.0" diff --git a/yarn.lock b/yarn.lock index 8e13794d6..715b62ef8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2738,6 +2738,15 @@ __metadata: languageName: node linkType: hard +"@cspotcode/source-map-support@npm:^0.8.0": + version: 0.8.1 + resolution: "@cspotcode/source-map-support@npm:0.8.1" + dependencies: + "@jridgewell/trace-mapping": "npm:0.3.9" + checksum: 10/b6e38a1712fab242c86a241c229cf562195aad985d0564bd352ac404be583029e89e93028ffd2c251d2c407ecac5fb0cbdca94a2d5c10f29ac806ede0508b3ff + languageName: node + linkType: hard + "@elastic/apm-rum-core@npm:^5.21.0": version: 5.21.0 resolution: "@elastic/apm-rum-core@npm:5.21.0" @@ -3937,6 +3946,13 @@ __metadata: languageName: node linkType: hard +"@jridgewell/resolve-uri@npm:^3.0.3": + version: 3.1.2 + resolution: "@jridgewell/resolve-uri@npm:3.1.2" + checksum: 10/97106439d750a409c22c8bff822d648f6a71f3aa9bc8e5129efdc36343cd3096ddc4eeb1c62d2fe48e9bdd4db37b05d4646a17114ecebd3bbcacfa2de51c3c1d + languageName: node + linkType: hard + "@jridgewell/resolve-uri@npm:^3.1.0": version: 3.1.1 resolution: "@jridgewell/resolve-uri@npm:3.1.1" @@ -3979,6 +3995,16 @@ __metadata: languageName: node linkType: hard +"@jridgewell/trace-mapping@npm:0.3.9": + version: 0.3.9 + resolution: "@jridgewell/trace-mapping@npm:0.3.9" + dependencies: + "@jridgewell/resolve-uri": "npm:^3.0.3" + "@jridgewell/sourcemap-codec": "npm:^1.4.10" + checksum: 10/83deafb8e7a5ca98993c2c6eeaa93c270f6f647a4c0dc00deb38c9cf9b2d3b7bf15e8839540155247ef034a052c0ec4466f980bf0c9e2ab63b97d16c0cedd3ff + languageName: node + linkType: hard + "@jridgewell/trace-mapping@npm:^0.3.12": version: 0.3.17 resolution: "@jridgewell/trace-mapping@npm:0.3.17" @@ -5760,7 +5786,7 @@ __metadata: semver: "npm:^5.5.0" stream-browserify: "npm:^3.0.0" subscriptions-transport-ws: "npm:0.11.0" - typescript: "npm:5.1.6" + typescript: "npm:5.6.3" universal-cookie: "npm:^4.0.4" vite: "npm:5.4.8" vitest: "npm:2.1.2" @@ -5844,7 +5870,7 @@ __metadata: react-router-dom: "npm:6.3.0" react-usestateref: "npm:^1.0.5" sass: "npm:^1.32.8" - typescript: "npm:5.1.6" + typescript: "npm:5.6.3" vitest: "npm:2.1.2" languageName: unknown linkType: soft @@ -5862,8 +5888,8 @@ __metadata: "@types/tsc-watch": "npm:^4" core-js: "npm:^3.10.1" graphql: "npm:16.8.1" - ts-node: "npm:^9.1.1" - typescript: "npm:5.1.6" + ts-node: "npm:10.9.2" + typescript: "npm:5.6.3" vitest: "npm:2.1.2" bin: indexer: ./src/index.ts @@ -5944,10 +5970,10 @@ __metadata: semver: "npm:^5.5.0" sitemap: "npm:^2.1.0" superagent: "npm:^3.8.2" - ts-node: "npm:9.1.1" + ts-node: "npm:10.9.2" ts-node-dev: "npm:1.1.6" tsc-watch: "npm:^4.2.9" - typescript: "npm:5.1.6" + typescript: "npm:5.6.3" underscore: "npm:^1.8.3" uuid: "npm:10.0.0" vitest: "npm:2.1.2" @@ -7561,6 +7587,34 @@ __metadata: languageName: node linkType: hard +"@tsconfig/node10@npm:^1.0.7": + version: 1.0.11 + resolution: "@tsconfig/node10@npm:1.0.11" + checksum: 10/51fe47d55fe1b80ec35e6e5ed30a13665fd3a531945350aa74a14a1e82875fb60b350c2f2a5e72a64831b1b6bc02acb6760c30b3738b54954ec2dea82db7a267 + languageName: node + linkType: hard + +"@tsconfig/node12@npm:^1.0.7": + version: 1.0.11 + resolution: "@tsconfig/node12@npm:1.0.11" + checksum: 10/5ce29a41b13e7897a58b8e2df11269c5395999e588b9a467386f99d1d26f6c77d1af2719e407621412520ea30517d718d5192a32403b8dfcc163bf33e40a338a + languageName: node + linkType: hard + +"@tsconfig/node14@npm:^1.0.0": + version: 1.0.3 + resolution: "@tsconfig/node14@npm:1.0.3" + checksum: 10/19275fe80c4c8d0ad0abed6a96dbf00642e88b220b090418609c4376e1cef81bf16237bf170ad1b341452feddb8115d8dd2e5acdfdea1b27422071163dc9ba9d + languageName: node + linkType: hard + +"@tsconfig/node16@npm:^1.0.2": + version: 1.0.4 + resolution: "@tsconfig/node16@npm:1.0.4" + checksum: 10/202319785901f942a6e1e476b872d421baec20cf09f4b266a1854060efbf78cde16a4d256e8bc949d31e6cd9a90f1e8ef8fb06af96a65e98338a2b6b0de0a0ff + languageName: node + linkType: hard + "@tufjs/canonical-json@npm:2.0.0": version: 2.0.0 resolution: "@tufjs/canonical-json@npm:2.0.0" @@ -9032,6 +9086,15 @@ __metadata: languageName: node linkType: hard +"acorn-walk@npm:^8.1.1": + version: 8.3.4 + resolution: "acorn-walk@npm:8.3.4" + dependencies: + acorn: "npm:^8.11.0" + checksum: 10/871386764e1451c637bb8ab9f76f4995d408057e9909be6fb5ad68537ae3375d85e6a6f170b98989f44ab3ff6c74ad120bc2779a3d577606e7a0cd2b4efcaf77 + languageName: node + linkType: hard + "acorn-walk@npm:^8.2.0": version: 8.2.0 resolution: "acorn-walk@npm:8.2.0" @@ -9046,21 +9109,21 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.11.3": - version: 8.11.3 - resolution: "acorn@npm:8.11.3" +"acorn@npm:^8.11.0, acorn@npm:^8.12.0, acorn@npm:^8.4.1": + version: 8.13.0 + resolution: "acorn@npm:8.13.0" bin: acorn: bin/acorn - checksum: 10/b688e7e3c64d9bfb17b596e1b35e4da9d50553713b3b3630cf5690f2b023a84eac90c56851e6912b483fe60e8b4ea28b254c07e92f17ef83d72d78745a8352dd + checksum: 10/33e3a03114b02b3bc5009463b3d9549b31a90ee38ebccd5e66515830a02acf62a90edcc12abfb6c9fb3837b6c17a3ec9b72b3bf52ac31d8ad8248a4af871e0f5 languageName: node linkType: hard -"acorn@npm:^8.12.0": - version: 8.13.0 - resolution: "acorn@npm:8.13.0" +"acorn@npm:^8.11.3": + version: 8.11.3 + resolution: "acorn@npm:8.11.3" bin: acorn: bin/acorn - checksum: 10/33e3a03114b02b3bc5009463b3d9549b31a90ee38ebccd5e66515830a02acf62a90edcc12abfb6c9fb3837b6c17a3ec9b72b3bf52ac31d8ad8248a4af871e0f5 + checksum: 10/b688e7e3c64d9bfb17b596e1b35e4da9d50553713b3b3630cf5690f2b023a84eac90c56851e6912b483fe60e8b4ea28b254c07e92f17ef83d72d78745a8352dd languageName: node linkType: hard @@ -23957,7 +24020,7 @@ __metadata: react: "npm:18.2.0" sass: "npm:^1.56.1" tsc-watch: "npm:6.0.4" - typescript: "npm:5.1.6" + typescript: "npm:5.6.3" typescript-eslint: "npm:^8.11.0" vite: "npm:5.4.8" vitest: "npm:1.5.0" @@ -26120,7 +26183,45 @@ __metadata: languageName: node linkType: hard -"ts-node@npm:9.1.1, ts-node@npm:^9.0.0, ts-node@npm:^9.1.1": +"ts-node@npm:10.9.2": + version: 10.9.2 + resolution: "ts-node@npm:10.9.2" + dependencies: + "@cspotcode/source-map-support": "npm:^0.8.0" + "@tsconfig/node10": "npm:^1.0.7" + "@tsconfig/node12": "npm:^1.0.7" + "@tsconfig/node14": "npm:^1.0.0" + "@tsconfig/node16": "npm:^1.0.2" + acorn: "npm:^8.4.1" + acorn-walk: "npm:^8.1.1" + arg: "npm:^4.1.0" + create-require: "npm:^1.1.0" + diff: "npm:^4.0.1" + make-error: "npm:^1.1.1" + v8-compile-cache-lib: "npm:^3.0.1" + yn: "npm:3.1.1" + 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 + bin: + ts-node: dist/bin.js + ts-node-cwd: dist/bin-cwd.js + ts-node-esm: dist/bin-esm.js + ts-node-script: dist/bin-script.js + ts-node-transpile-only: dist/bin-transpile.js + ts-script: dist/bin-script-deprecated.js + checksum: 10/a91a15b3c9f76ac462f006fa88b6bfa528130dcfb849dd7ef7f9d640832ab681e235b8a2bc58ecde42f72851cc1d5d4e22c901b0c11aa51001ea1d395074b794 + languageName: node + linkType: hard + +"ts-node@npm:^9.0.0": version: 9.1.1 resolution: "ts-node@npm:9.1.1" dependencies: @@ -26423,13 +26524,13 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.1.6": - version: 5.1.6 - resolution: "typescript@npm:5.1.6" +"typescript@npm:5.6.3": + version: 5.6.3 + resolution: "typescript@npm:5.6.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/f347cde665cf43dc4c1c7d9821c7d9bbec3c3914f4bdd82ee490e9fb9f6d99036ed8666463b6a192dd005eeef333c5087d5931bdd51ec853436ff9a670a7417e + checksum: 10/c328e418e124b500908781d9f7b9b93cf08b66bf5936d94332b463822eea2f4e62973bfb3b8a745fdc038785cb66cf59d1092bac3ec2ac6a3e5854687f7833f1 languageName: node linkType: hard @@ -26443,13 +26544,13 @@ __metadata: languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.1.6#optional!builtin": - version: 5.1.6 - resolution: "typescript@patch:typescript@npm%3A5.1.6#optional!builtin::version=5.1.6&hash=5da071" +"typescript@patch:typescript@npm%3A5.6.3#optional!builtin": + version: 5.6.3 + resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin::version=5.6.3&hash=8c6c40" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 10/f5481fa3ba0eee8970f46708d13c05650a865ad093b586fc9573f425c64c57ca97e3308e110bb528deb3ccebe83f6fd7b5a8ac90018038da96326a9ccdf8e77c + checksum: 10/00504c01ee42d470c23495426af07512e25e6546bce7e24572e72a9ca2e6b2e9bea63de4286c3cfea644874da1467dcfca23f4f98f7caf20f8b03c0213bb6837 languageName: node linkType: hard @@ -26941,6 +27042,13 @@ __metadata: languageName: node linkType: hard +"v8-compile-cache-lib@npm:^3.0.1": + version: 3.0.1 + resolution: "v8-compile-cache-lib@npm:3.0.1" + checksum: 10/88d3423a52b6aaf1836be779cab12f7016d47ad8430dffba6edf766695e6d90ad4adaa3d8eeb512cc05924f3e246c4a4ca51e089dccf4402caa536b5e5be8961 + languageName: node + linkType: hard + "v8-to-istanbul@npm:^9.0.1": version: 9.1.0 resolution: "v8-to-istanbul@npm:9.1.0"