mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
Merge pull request #1438 from cosmos/upgrade-yarn
Upgrade yarn to 3.6.0
This commit is contained in:
commit
114d74a6a3
325
.pnp.cjs
generated
325
.pnp.cjs
generated
@ -2664,7 +2664,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
],\
|
||||
[\
|
||||
"typescript",\
|
||||
"patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"\
|
||||
"patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"\
|
||||
],\
|
||||
[\
|
||||
"ua-parser-js",\
|
||||
@ -2836,7 +2836,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["@cosmjs/stargate", "workspace:packages/stargate"],\
|
||||
["eslint", "npm:7.26.0"],\
|
||||
["prettier", "npm:2.8.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
}]\
|
||||
@ -3210,7 +3210,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:d9e325cc72640bcdd8c0595d77f162dd82bcc03bb06facad45b0fa8fc5bf522b30e1f0b4591f9923a0022943ddb750feb3eac78ddc29663f277c3567f21d9aba#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:d9e325cc72640bcdd8c0595d77f162dd82bcc03bb06facad45b0fa8fc5bf522b30e1f0b4591f9923a0022943ddb750feb3eac78ddc29663f277c3567f21d9aba#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3260,7 +3260,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["recast", "npm:0.20.4"],\
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["yargs", "npm:15.4.1"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
@ -3316,7 +3316,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:14e834828d065c83a62d939f78f867dca06a99ef32e4048b15b8f9e3433169eca01f5c29b8d8692cae8f8109cda402ac498149ee584b3d3b9e10e5ef4428aaa9#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:14e834828d065c83a62d939f78f867dca06a99ef32e4048b15b8f9e3433169eca01f5c29b8d8692cae8f8109cda402ac498149ee584b3d3b9e10e5ef4428aaa9#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3369,7 +3369,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:1a72a83ae6f92c6f3e756c713a9a31ccfa711e7e2f1243788a7cf7ade4d78c0c1ff62213d9b07eaa19d318c078695418641698a55516ba18eae8be3fd315083a#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:1a72a83ae6f92c6f3e756c713a9a31ccfa711e7e2f1243788a7cf7ade4d78c0c1ff62213d9b07eaa19d318c078695418641698a55516ba18eae8be3fd315083a#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3415,7 +3415,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3458,7 +3458,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["ses", "npm:0.11.1"],\
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:45dc8d177c5463b02ae2b62c45461f6704449bac45b0b4bf10ceca81013a617a6fa5aaf2547e43076d50ac57cad5c9979a6da6e8adf35b42d844e73e8c014613#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:45dc8d177c5463b02ae2b62c45461f6704449bac45b0b4bf10ceca81013a617a6fa5aaf2547e43076d50ac57cad5c9979a6da6e8adf35b42d844e73e8c014613#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3501,7 +3501,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:59dbf28df0b44553f74b7f3dd446a5bd2c11faf0a1518276fd6f945187079c5efd2da665c225efeaf92e186ce2ab9d524adc7b7b39eb091a0f2fb60aac3cbe9f#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:59dbf28df0b44553f74b7f3dd446a5bd2c11faf0a1518276fd6f945187079c5efd2da665c225efeaf92e186ce2ab9d524adc7b7b39eb091a0f2fb60aac3cbe9f#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3543,7 +3543,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:8b096e2a9a434b4277d6f02b903bdce7d29a5d4c50de89707a93f84c84c73759c4741dd158307f1c75ce3c1e2c05b0da1b938a114cc37854c89c2bd2552c9236#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:8b096e2a9a434b4277d6f02b903bdce7d29a5d4c50de89707a93f84c84c73759c4741dd158307f1c75ce3c1e2c05b0da1b938a114cc37854c89c2bd2552c9236#npm:4.7.0"],\
|
||||
["xstream", "npm:11.14.0"]\
|
||||
@ -3592,7 +3592,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:ccd7bdb71649037a1a0a4683a969c7a445e96784e6e17fdf2248fd29ab34e212b967e8a3bd2e3bd9d02ee048b1b3b3d74219a50fdbee85a0178c2c53fbd58c3c#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:ccd7bdb71649037a1a0a4683a969c7a445e96784e6e17fdf2248fd29ab34e212b967e8a3bd2e3bd9d02ee048b1b3b3d74219a50fdbee85a0178c2c53fbd58c3c#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3636,7 +3636,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:32bdce0525b6fd38c0ffab310007869ff277762ac809c2d2b6ac7a63bc1b80e6f56e6507ed75fd8459648eb5d0172adc064466a9729b1d8c49e093b697f760e1#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:32bdce0525b6fd38c0ffab310007869ff277762ac809c2d2b6ac7a63bc1b80e6f56e6507ed75fd8459648eb5d0172adc064466a9729b1d8c49e093b697f760e1#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3687,7 +3687,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:c246025b363fcdd286d19223b9e5c9d41d6b4e10c1ac203d049eef0026c6c6fd3d893f42665b20a1dc263af14f7698c498822f02ba3cc068bddabeaf6d4b98ea#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:c246025b363fcdd286d19223b9e5c9d41d6b4e10c1ac203d049eef0026c6c6fd3d893f42665b20a1dc263af14f7698c498822f02ba3cc068bddabeaf6d4b98ea#npm:4.7.0"]\
|
||||
],\
|
||||
@ -3731,7 +3731,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:992e8a49329af27dec1603ba7ec6f83173fb73e1d5752e95d78d0bec9ff8e148a218f65e20742125a49b958677fd4d6119ec35f9c56f9b4ea72f0e32f53b591b#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:992e8a49329af27dec1603ba7ec6f83173fb73e1d5752e95d78d0bec9ff8e148a218f65e20742125a49b958677fd4d6119ec35f9c56f9b4ea72f0e32f53b591b#npm:4.7.0"],\
|
||||
["ws", "virtual:992e8a49329af27dec1603ba7ec6f83173fb73e1d5752e95d78d0bec9ff8e148a218f65e20742125a49b958677fd4d6119ec35f9c56f9b4ea72f0e32f53b591b#npm:7.4.6"],\
|
||||
@ -3789,7 +3789,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:d5037fb6cb5ae0ea3e1abfa18c6b0b09006e3ee27af43c076bb3eab879c3679bba8a5c55c42f03ddd47ae58ceabbf7a06477ca582879ac7623c7c140cfd0449f#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:d5037fb6cb5ae0ea3e1abfa18c6b0b09006e3ee27af43c076bb3eab879c3679bba8a5c55c42f03ddd47ae58ceabbf7a06477ca582879ac7623c7c140cfd0449f#npm:4.7.0"],\
|
||||
["xstream", "npm:11.14.0"]\
|
||||
@ -3832,7 +3832,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:a31700cf86cea838c0f4917245e51b30d6c0a2e667770fb31e497ee0a2d898d5608fba085ac0c1f38177dd8e390865bebffdc50954bc24bc1fb6d5c42bbd51cc#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:a31700cf86cea838c0f4917245e51b30d6c0a2e667770fb31e497ee0a2d898d5608fba085ac0c1f38177dd8e390865bebffdc50954bc24bc1fb6d5c42bbd51cc#npm:4.7.0"],\
|
||||
["xstream", "npm:11.14.0"]\
|
||||
@ -3884,7 +3884,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:7bcfa345571c06768a3dbc91a42526f0822237866e2d9cb58705577be6cb39fb02f8c1251069bcf70d11a05dfde2de19f521968b6f5d0f6652f231deb4bdab09#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:7bcfa345571c06768a3dbc91a42526f0822237866e2d9cb58705577be6cb39fb02f8c1251069bcf70d11a05dfde2de19f521968b6f5d0f6652f231deb4bdab09#npm:4.7.0"],\
|
||||
["xstream", "npm:11.14.0"]\
|
||||
@ -3928,7 +3928,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["ts-node", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:8.10.2"],\
|
||||
["typedoc", "virtual:4f1584ad4aba8733a24be7c8aebbffafef25607f2d00f4b314cf96717145c692763628a31c2b85d4686fbb091ff21ebffa3cc337399c042c19a32b9bdb786464#npm:0.23.28"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["webpack", "virtual:a1fa79937af15b1c91e93bc5d3d31ca355b63338661e2fdb0dcf118caae9fc0800b2363f4e1f737165df645622f04072fe0e111167d7652cb3d8623eb7548b9c#npm:5.76.1"],\
|
||||
["webpack-cli", "virtual:a1fa79937af15b1c91e93bc5d3d31ca355b63338661e2fdb0dcf118caae9fc0800b2363f4e1f737165df645622f04072fe0e111167d7652cb3d8623eb7548b9c#npm:4.7.0"]\
|
||||
],\
|
||||
@ -4887,7 +4887,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["regexpp", "npm:3.2.0"],\
|
||||
["semver", "npm:7.3.8"],\
|
||||
["tsutils", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:3.21.0"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/eslint",\
|
||||
@ -4919,7 +4919,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["@typescript-eslint/typescript-estree", "virtual:dab3b79a49a5f47d0c99a5dd46dbdff2ada6c475788250c1f0fcb82df5cad8c19be5cd3a44974c1ab5534d7476c94dd95a1487a1327da6bbeb8b0f3aacf8423a#npm:5.54.0"],\
|
||||
["debug", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:4.3.4"],\
|
||||
["eslint", "npm:7.26.0"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/eslint",\
|
||||
@ -4960,7 +4960,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["debug", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:4.3.4"],\
|
||||
["eslint", "npm:7.26.0"],\
|
||||
["tsutils", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:3.21.0"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/eslint",\
|
||||
@ -5020,7 +5020,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["is-glob", "npm:4.0.3"],\
|
||||
["semver", "npm:7.3.8"],\
|
||||
["tsutils", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:3.21.0"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/typescript",\
|
||||
@ -7000,7 +7000,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["@cosmjs/stargate", "workspace:packages/stargate"],\
|
||||
["eslint", "npm:7.26.0"],\
|
||||
["prettier", "npm:2.8.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"linkType": "SOFT"\
|
||||
}]\
|
||||
@ -12290,7 +12290,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["diff", "npm:4.0.2"],\
|
||||
["make-error", "npm:1.3.6"],\
|
||||
["source-map-support", "npm:0.5.21"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["yn", "npm:3.1.1"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
@ -12352,7 +12352,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["tsutils", "virtual:2e8b63b9512ee302c1e69bb1e3512d620971815ee605065d20bed52f3459d2253d5150a129382f41fb46f2eed830a5b8af9f8e7a56e0fbdf246de03604209ab2#npm:3.21.0"],\
|
||||
["@types/typescript", null],\
|
||||
["tslib", "npm:1.14.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/typescript",\
|
||||
@ -12449,7 +12449,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
["marked", "npm:4.3.0"],\
|
||||
["minimatch", "npm:7.4.4"],\
|
||||
["shiki", "npm:0.14.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"packagePeers": [\
|
||||
"@types/typescript",\
|
||||
@ -12459,10 +12459,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
||||
}]\
|
||||
]],\
|
||||
["typescript", [\
|
||||
["patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76", {\
|
||||
"packageLocation": "./.yarn/cache/typescript-patch-72dc6f164f-ab417a2f39.zip/node_modules/typescript/",\
|
||||
["patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587", {\
|
||||
"packageLocation": "./.yarn/cache/typescript-patch-f8edcd7439-1f8f3b6aae.zip/node_modules/typescript/",\
|
||||
"packageDependencies": [\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"]\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
@ -23118,118 +23118,6 @@ function hydrateRuntimeState(data, { basePath }) {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} exports
|
||||
* @param {Set<string>} keys
|
||||
*/
|
||||
function loop(exports, keys) {
|
||||
if (typeof exports === 'string') {
|
||||
return exports;
|
||||
}
|
||||
|
||||
if (exports) {
|
||||
let idx, tmp;
|
||||
if (Array.isArray(exports)) {
|
||||
for (idx=0; idx < exports.length; idx++) {
|
||||
if (tmp = loop(exports[idx], keys)) return tmp;
|
||||
}
|
||||
} else {
|
||||
for (idx in exports) {
|
||||
if (keys.has(idx)) {
|
||||
return loop(exports[idx], keys);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} name The package name
|
||||
* @param {string} entry The target entry, eg "."
|
||||
* @param {number} [condition] Unmatched condition?
|
||||
*/
|
||||
function bail(name, entry, condition) {
|
||||
throw new Error(
|
||||
condition
|
||||
? `No known conditions for "${entry}" entry in "${name}" package`
|
||||
: `Missing "${entry}" export in "${name}" package`
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} name the package name
|
||||
* @param {string} entry the target path/import
|
||||
*/
|
||||
function toName(name, entry) {
|
||||
return entry === name ? '.'
|
||||
: entry[0] === '.' ? entry
|
||||
: entry.replace(new RegExp('^' + name + '\/'), './');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {object} pkg package.json contents
|
||||
* @param {string} [entry] entry name or import path
|
||||
* @param {object} [options]
|
||||
* @param {boolean} [options.browser]
|
||||
* @param {boolean} [options.require]
|
||||
* @param {string[]} [options.conditions]
|
||||
* @param {boolean} [options.unsafe]
|
||||
*/
|
||||
function resolve(pkg, entry='.', options={}) {
|
||||
let { name, exports } = pkg;
|
||||
|
||||
if (exports) {
|
||||
let { browser, require, unsafe, conditions=[] } = options;
|
||||
|
||||
let target = toName(name, entry);
|
||||
if (target[0] !== '.') target = './' + target;
|
||||
|
||||
if (typeof exports === 'string') {
|
||||
return target === '.' ? exports : bail(name, target);
|
||||
}
|
||||
|
||||
let allows = new Set(['default', ...conditions]);
|
||||
unsafe || allows.add(require ? 'require' : 'import');
|
||||
unsafe || allows.add(browser ? 'browser' : 'node');
|
||||
|
||||
let key, tmp, isSingle=false;
|
||||
|
||||
for (key in exports) {
|
||||
isSingle = key[0] !== '.';
|
||||
break;
|
||||
}
|
||||
|
||||
if (isSingle) {
|
||||
return target === '.'
|
||||
? loop(exports, allows) || bail(name, target, 1)
|
||||
: bail(name, target);
|
||||
}
|
||||
|
||||
if (tmp = exports[target]) {
|
||||
return loop(tmp, allows) || bail(name, target, 1);
|
||||
}
|
||||
|
||||
for (key in exports) {
|
||||
tmp = key[key.length - 1];
|
||||
if (tmp === '/' && target.startsWith(key)) {
|
||||
return (tmp = loop(exports[key], allows))
|
||||
? (tmp + target.substring(key.length))
|
||||
: bail(name, target, 1);
|
||||
}
|
||||
if (tmp === '*' && target.startsWith(key.slice(0, -1))) {
|
||||
// do not trigger if no *content* to inject
|
||||
if (target.substring(key.length - 1).length > 0) {
|
||||
return (tmp = loop(exports[key], allows))
|
||||
? tmp.replace('*', target.substring(key.length - 1))
|
||||
: bail(name, target, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return bail(name, target);
|
||||
}
|
||||
}
|
||||
|
||||
const ArrayIsArray = Array.isArray;
|
||||
const JSONStringify = JSON.stringify;
|
||||
const ObjectGetOwnPropertyNames = Object.getOwnPropertyNames;
|
||||
@ -23290,6 +23178,15 @@ const ERR_INVALID_PACKAGE_CONFIG = createErrorType(
|
||||
},
|
||||
Error
|
||||
);
|
||||
const ERR_PACKAGE_PATH_NOT_EXPORTED = createErrorType(
|
||||
"ERR_PACKAGE_PATH_NOT_EXPORTED",
|
||||
(pkgPath, subpath, base = void 0) => {
|
||||
if (subpath === ".")
|
||||
return `No "exports" main defined in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
||||
return `Package subpath '${subpath}' is not defined by "exports" in ${pkgPath}package.json${base ? ` imported from ${base}` : ""}`;
|
||||
},
|
||||
Error
|
||||
);
|
||||
|
||||
function filterOwnProperties(source, keys) {
|
||||
const filtered = /* @__PURE__ */ Object.create(null);
|
||||
@ -23609,12 +23506,121 @@ function patternKeyCompare(a, b) {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
function packageImportsResolve({
|
||||
name,
|
||||
function isConditionalExportsMainSugar(exports, packageJSONUrl, base) {
|
||||
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;
|
||||
for (let j = 0; j < keys.length; j++) {
|
||||
const key = keys[j];
|
||||
const curIsConditionalSugar = key === "" || key[0] !== ".";
|
||||
if (i++ === 0) {
|
||||
isConditionalSugar = curIsConditionalSugar;
|
||||
} else if (isConditionalSugar !== curIsConditionalSugar) {
|
||||
throw new ERR_INVALID_PACKAGE_CONFIG(
|
||||
url.fileURLToPath(packageJSONUrl),
|
||||
base,
|
||||
`"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`
|
||||
);
|
||||
}
|
||||
}
|
||||
return isConditionalSugar;
|
||||
}
|
||||
function throwExportsNotFound(subpath, packageJSONUrl, base) {
|
||||
throw new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
||||
url.fileURLToPath(new URL(".", packageJSONUrl)),
|
||||
subpath,
|
||||
base && url.fileURLToPath(base)
|
||||
);
|
||||
}
|
||||
const emittedPackageWarnings = /* @__PURE__ */ new Set();
|
||||
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
||||
const pjsonPath = url.fileURLToPath(pjsonUrl);
|
||||
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.`,
|
||||
"DeprecationWarning",
|
||||
"DEP0155"
|
||||
);
|
||||
}
|
||||
function packageExportsResolve({
|
||||
packageJSONUrl,
|
||||
packageSubpath,
|
||||
exports,
|
||||
base,
|
||||
conditions,
|
||||
readFileSyncFn
|
||||
conditions
|
||||
}) {
|
||||
if (isConditionalExportsMainSugar(exports, packageJSONUrl, base))
|
||||
exports = { ".": exports };
|
||||
if (ObjectPrototypeHasOwnProperty(exports, packageSubpath) && !StringPrototypeIncludes(packageSubpath, "*") && !StringPrototypeEndsWith(packageSubpath, "/")) {
|
||||
const target = exports[packageSubpath];
|
||||
const resolveResult = resolvePackageTarget(
|
||||
packageJSONUrl,
|
||||
target,
|
||||
"",
|
||||
packageSubpath,
|
||||
base,
|
||||
false,
|
||||
false,
|
||||
conditions
|
||||
);
|
||||
if (resolveResult == null) {
|
||||
throwExportsNotFound(packageSubpath, packageJSONUrl, base);
|
||||
}
|
||||
return resolveResult;
|
||||
}
|
||||
let bestMatch = "";
|
||||
let bestMatchSubpath;
|
||||
const keys = ObjectGetOwnPropertyNames(exports);
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
const key = keys[i];
|
||||
const patternIndex = StringPrototypeIndexOf(key, "*");
|
||||
if (patternIndex !== -1 && StringPrototypeStartsWith(
|
||||
packageSubpath,
|
||||
StringPrototypeSlice(key, 0, patternIndex)
|
||||
)) {
|
||||
if (StringPrototypeEndsWith(packageSubpath, "/"))
|
||||
emitTrailingSlashPatternDeprecation(
|
||||
packageSubpath,
|
||||
packageJSONUrl,
|
||||
base
|
||||
);
|
||||
const patternTrailer = StringPrototypeSlice(key, patternIndex + 1);
|
||||
if (packageSubpath.length >= key.length && StringPrototypeEndsWith(packageSubpath, patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && StringPrototypeLastIndexOf(key, "*") === patternIndex) {
|
||||
bestMatch = key;
|
||||
bestMatchSubpath = StringPrototypeSlice(
|
||||
packageSubpath,
|
||||
patternIndex,
|
||||
packageSubpath.length - patternTrailer.length
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (bestMatch) {
|
||||
const target = exports[bestMatch];
|
||||
const resolveResult = resolvePackageTarget(
|
||||
packageJSONUrl,
|
||||
target,
|
||||
bestMatchSubpath,
|
||||
bestMatch,
|
||||
base,
|
||||
true,
|
||||
false,
|
||||
conditions
|
||||
);
|
||||
if (resolveResult == null) {
|
||||
throwExportsNotFound(packageSubpath, packageJSONUrl, base);
|
||||
}
|
||||
return resolveResult;
|
||||
}
|
||||
throwExportsNotFound(packageSubpath, packageJSONUrl, base);
|
||||
}
|
||||
function packageImportsResolve({ name, base, conditions, readFileSyncFn }) {
|
||||
if (name === "#" || StringPrototypeStartsWith(name, "#/") || StringPrototypeEndsWith(name, "/")) {
|
||||
const reason = "is not a valid internal imports specifier name";
|
||||
throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, url.fileURLToPath(base));
|
||||
@ -24082,12 +24088,11 @@ function makeApi(runtimeState, opts) {
|
||||
return false;
|
||||
}
|
||||
const defaultExportsConditions = /* @__PURE__ */ new Set([
|
||||
`default`,
|
||||
`node`,
|
||||
`require`,
|
||||
...getOptionValue(`--conditions`)
|
||||
]);
|
||||
function applyNodeExportsResolution(unqualifiedPath, conditions = defaultExportsConditions) {
|
||||
function applyNodeExportsResolution(unqualifiedPath, conditions = defaultExportsConditions, issuer) {
|
||||
const locator = findPackageLocator(ppath.join(unqualifiedPath, `internal.js`), {
|
||||
resolveIgnored: true,
|
||||
includeDiscardFromLookup: true
|
||||
@ -24103,6 +24108,8 @@ function makeApi(runtimeState, opts) {
|
||||
if (!opts.fakeFs.existsSync(manifestPath))
|
||||
return null;
|
||||
const pkgJson = JSON.parse(opts.fakeFs.readFileSync(manifestPath, `utf8`));
|
||||
if (pkgJson.exports == null)
|
||||
return null;
|
||||
let subpath = ppath.contains(packageLocation, unqualifiedPath);
|
||||
if (subpath === null) {
|
||||
throw makeError(
|
||||
@ -24110,25 +24117,25 @@ function makeApi(runtimeState, opts) {
|
||||
`unqualifiedPath doesn't contain the packageLocation (this is probably an internal error)`
|
||||
);
|
||||
}
|
||||
if (!isRelativeRegexp.test(subpath))
|
||||
if (subpath !== `.` && !isRelativeRegexp.test(subpath))
|
||||
subpath = `./${subpath}`;
|
||||
let resolvedExport;
|
||||
try {
|
||||
resolvedExport = resolve(pkgJson, ppath.normalize(subpath), {
|
||||
conditions,
|
||||
unsafe: true
|
||||
const resolvedExport = packageExportsResolve({
|
||||
packageJSONUrl: url.pathToFileURL(npath.fromPortablePath(manifestPath)),
|
||||
packageSubpath: subpath,
|
||||
exports: pkgJson.exports,
|
||||
base: issuer ? url.pathToFileURL(npath.fromPortablePath(issuer)) : null,
|
||||
conditions
|
||||
});
|
||||
return npath.toPortablePath(url.fileURLToPath(resolvedExport));
|
||||
} catch (error) {
|
||||
throw makeError(
|
||||
ErrorCode.EXPORTS_RESOLUTION_FAILED,
|
||||
error.message,
|
||||
{ unqualifiedPath: getPathForDisplay(unqualifiedPath), locator, pkgJson, subpath: getPathForDisplay(subpath), conditions },
|
||||
`ERR_PACKAGE_PATH_NOT_EXPORTED`
|
||||
error.code
|
||||
);
|
||||
}
|
||||
if (typeof resolvedExport === `string`)
|
||||
return ppath.join(packageLocation, resolvedExport);
|
||||
return null;
|
||||
}
|
||||
function applyNodeExtensionResolution(unqualifiedPath, candidates, { extensions }) {
|
||||
let stat;
|
||||
@ -24505,10 +24512,10 @@ Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDi
|
||||
}
|
||||
return ppath.normalize(unqualifiedPath);
|
||||
}
|
||||
function resolveUnqualifiedExport(request, unqualifiedPath, conditions = defaultExportsConditions) {
|
||||
function resolveUnqualifiedExport(request, unqualifiedPath, conditions = defaultExportsConditions, issuer) {
|
||||
if (isStrictRegExp.test(request))
|
||||
return unqualifiedPath;
|
||||
const unqualifiedExportPath = applyNodeExportsResolution(unqualifiedPath, conditions);
|
||||
const unqualifiedExportPath = applyNodeExportsResolution(unqualifiedPath, conditions, issuer);
|
||||
if (unqualifiedExportPath) {
|
||||
return ppath.normalize(unqualifiedExportPath);
|
||||
} else {
|
||||
@ -24595,7 +24602,7 @@ ${candidates.map((candidate) => `Not found: ${getPathForDisplay(candidate)}
|
||||
if (unqualifiedPath === null)
|
||||
return null;
|
||||
const isIssuerIgnored = () => issuer !== null ? isPathIgnored(issuer) : false;
|
||||
const remappedPath = (!considerBuiltins || !isBuiltinModule(request)) && !isIssuerIgnored() ? resolveUnqualifiedExport(request, unqualifiedPath, conditions) : unqualifiedPath;
|
||||
const remappedPath = (!considerBuiltins || !isBuiltinModule(request)) && !isIssuerIgnored() ? resolveUnqualifiedExport(request, unqualifiedPath, conditions, issuer) : unqualifiedPath;
|
||||
return resolveUnqualified(remappedPath, { extensions });
|
||||
} catch (error) {
|
||||
if (Object.prototype.hasOwnProperty.call(error, `pnpCode`))
|
||||
|
81
.pnp.loader.mjs
generated
81
.pnp.loader.mjs
generated
@ -1333,6 +1333,7 @@ const HAS_CONSOLIDATED_HOOKS = major > 16 || major === 16 && minor >= 12;
|
||||
const HAS_UNFLAGGED_JSON_MODULES = major > 17 || major === 17 && minor >= 5 || major === 16 && minor >= 15;
|
||||
const HAS_JSON_IMPORT_ASSERTION_REQUIREMENT = major > 17 || major === 17 && minor >= 1 || major === 16 && minor > 14;
|
||||
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
|
||||
const HAS_LAZY_LOADED_TRANSLATORS = major > 19 || major === 19 && minor >= 3;
|
||||
|
||||
const builtinModules = new Set(Module.builtinModules || Object.keys(process.binding(`natives`)));
|
||||
const isBuiltinModule = (request) => request.startsWith(`node:`) || builtinModules.has(request);
|
||||
@ -1854,12 +1855,7 @@ function patternKeyCompare(a, b) {
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
function packageImportsResolve({
|
||||
name,
|
||||
base,
|
||||
conditions,
|
||||
readFileSyncFn
|
||||
}) {
|
||||
function packageImportsResolve({ name, base, conditions, readFileSyncFn }) {
|
||||
if (name === "#" || StringPrototypeStartsWith(name, "#/") || StringPrototypeEndsWith(name, "/")) {
|
||||
const reason = "is not a valid internal imports specifier name";
|
||||
throw new ERR_INVALID_MODULE_SPECIFIER(name, reason, fileURLToPath(base));
|
||||
@ -1955,7 +1951,7 @@ async function resolvePrivateRequest(specifier, issuer, context, nextResolve) {
|
||||
}
|
||||
}
|
||||
async function resolve$1(originalSpecifier, context, nextResolve) {
|
||||
var _a;
|
||||
var _a, _b;
|
||||
const { findPnpApi } = moduleExports;
|
||||
if (!findPnpApi || isBuiltinModule(originalSpecifier))
|
||||
return nextResolve(originalSpecifier, context, nextResolve);
|
||||
@ -1967,8 +1963,8 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
|
||||
specifier = fileURLToPath(url);
|
||||
}
|
||||
const { parentURL, conditions = [] } = context;
|
||||
const issuer = parentURL ? fileURLToPath(parentURL) : process.cwd();
|
||||
const pnpapi = (_a = findPnpApi(issuer)) != null ? _a : url ? findPnpApi(specifier) : null;
|
||||
const issuer = parentURL && ((_a = tryParseURL(parentURL)) == null ? void 0 : _a.protocol) === `file:` ? fileURLToPath(parentURL) : process.cwd();
|
||||
const pnpapi = (_b = findPnpApi(issuer)) != null ? _b : url ? findPnpApi(specifier) : null;
|
||||
if (!pnpapi)
|
||||
return nextResolve(originalSpecifier, context, nextResolve);
|
||||
if (specifier.startsWith(`#`))
|
||||
@ -1988,10 +1984,17 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
|
||||
}
|
||||
}
|
||||
}
|
||||
const result = pnpapi.resolveRequest(specifier, issuer, {
|
||||
conditions: new Set(conditions),
|
||||
extensions: allowLegacyResolve ? void 0 : []
|
||||
});
|
||||
let result;
|
||||
try {
|
||||
result = pnpapi.resolveRequest(specifier, issuer, {
|
||||
conditions: new Set(conditions),
|
||||
extensions: allowLegacyResolve ? void 0 : []
|
||||
});
|
||||
} catch (err) {
|
||||
if (err instanceof Error && `code` in err && err.code === `MODULE_NOT_FOUND`)
|
||||
err.code = `ERR_MODULE_NOT_FOUND`;
|
||||
throw err;
|
||||
}
|
||||
if (!result)
|
||||
throw new Error(`Resolving '${specifier}' from '${issuer}' failed`);
|
||||
const resultURL = pathToFileURL(result);
|
||||
@ -2007,32 +2010,34 @@ async function resolve$1(originalSpecifier, context, nextResolve) {
|
||||
};
|
||||
}
|
||||
|
||||
const binding = process.binding(`fs`);
|
||||
const originalfstat = binding.fstat;
|
||||
const ZIP_MASK = 4278190080;
|
||||
const ZIP_MAGIC = 704643072;
|
||||
binding.fstat = function(...args) {
|
||||
const [fd, useBigint, req] = args;
|
||||
if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
|
||||
try {
|
||||
const stats = fs.fstatSync(fd);
|
||||
return new Float64Array([
|
||||
stats.dev,
|
||||
stats.mode,
|
||||
stats.nlink,
|
||||
stats.uid,
|
||||
stats.gid,
|
||||
stats.rdev,
|
||||
stats.blksize,
|
||||
stats.ino,
|
||||
stats.size,
|
||||
stats.blocks
|
||||
]);
|
||||
} catch {
|
||||
if (!HAS_LAZY_LOADED_TRANSLATORS) {
|
||||
const binding = process.binding(`fs`);
|
||||
const originalfstat = binding.fstat;
|
||||
const ZIP_MASK = 4278190080;
|
||||
const ZIP_MAGIC = 704643072;
|
||||
binding.fstat = function(...args) {
|
||||
const [fd, useBigint, req] = args;
|
||||
if ((fd & ZIP_MASK) === ZIP_MAGIC && useBigint === false && req === void 0) {
|
||||
try {
|
||||
const stats = fs.fstatSync(fd);
|
||||
return new Float64Array([
|
||||
stats.dev,
|
||||
stats.mode,
|
||||
stats.nlink,
|
||||
stats.uid,
|
||||
stats.gid,
|
||||
stats.rdev,
|
||||
stats.blksize,
|
||||
stats.ino,
|
||||
stats.size,
|
||||
stats.blocks
|
||||
]);
|
||||
} catch {
|
||||
}
|
||||
}
|
||||
}
|
||||
return originalfstat.apply(this, args);
|
||||
};
|
||||
return originalfstat.apply(this, args);
|
||||
};
|
||||
}
|
||||
|
||||
const resolve = resolve$1;
|
||||
const getFormat = HAS_CONSOLIDATED_HOOKS ? void 0 : getFormat$1;
|
||||
|
BIN
.yarn/cache/typescript-patch-72dc6f164f-ab417a2f39.zip
(Stored with Git LFS)
vendored
BIN
.yarn/cache/typescript-patch-72dc6f164f-ab417a2f39.zip
(Stored with Git LFS)
vendored
Binary file not shown.
BIN
.yarn/cache/typescript-patch-f8edcd7439-1f8f3b6aae.zip
(Stored with Git LFS)
vendored
Normal file
BIN
.yarn/cache/typescript-patch-f8edcd7439-1f8f3b6aae.zip
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -13,4 +13,4 @@ plugins:
|
||||
|
||||
pnpMode: loose
|
||||
|
||||
yarnPath: .yarn/releases/yarn-3.5.0.cjs
|
||||
yarnPath: .yarn/releases/yarn-3.6.0.cjs
|
||||
|
@ -50,5 +50,5 @@
|
||||
"prettier": "^2.8.1",
|
||||
"typescript": "~4.9"
|
||||
},
|
||||
"packageManager": "yarn@3.5.0"
|
||||
"packageManager": "yarn@3.6.0"
|
||||
}
|
||||
|
@ -7298,11 +7298,11 @@ __metadata:
|
||||
|
||||
"typescript@patch:typescript@~4.9#~builtin<compat/typescript>":
|
||||
version: 4.9.5
|
||||
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76"
|
||||
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"
|
||||
bin:
|
||||
tsc: bin/tsc
|
||||
tsserver: bin/tsserver
|
||||
checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d
|
||||
checksum: 1f8f3b6aaea19f0f67cba79057674ba580438a7db55057eb89cc06950483c5d632115c14077f6663ea76fd09fce3c190e6414bb98582ec80aa5a4eaf345d5b68
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user