diff --git a/.pnp.cjs b/.pnp.cjs index 5a484bf89..662fd58b7 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -70,19 +70,19 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/eslint-plugin", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:5.62.0"],\ ["@typescript-eslint/parser", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:5.62.0"],\ ["@verdaccio-scope/verdaccio-auth-foo", "npm:0.0.2"],\ - ["@verdaccio/config", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/config", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["@verdaccio/local-storage", "npm:10.3.3"],\ - ["@verdaccio/logger-7", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/middleware", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/logger-7", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/middleware", "npm:7.0.0-next-7.10"],\ ["@verdaccio/search", "npm:7.0.0-next.2"],\ ["@verdaccio/signature", "npm:7.0.0-next.3"],\ ["@verdaccio/streams", "npm:10.2.1"],\ - ["@verdaccio/tarball", "npm:12.0.0-next-7.9"],\ + ["@verdaccio/tarball", "npm:12.0.0-next-7.10"],\ ["@verdaccio/types", "npm:12.0.0-next.2"],\ - ["@verdaccio/ui-theme", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/url", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/ui-theme", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/url", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ ["JSONStream", "npm:1.3.5"],\ ["async", "npm:3.2.5"],\ ["babel-jest", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:29.7.0"],\ @@ -136,9 +136,9 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["ts-node", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:10.9.2"],\ ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"],\ ["validator", "npm:13.11.0"],\ - ["verdaccio-audit", "npm:12.0.0-next-7.9"],\ + ["verdaccio-audit", "npm:12.0.0-next-7.10"],\ ["verdaccio-auth-memory", "npm:10.2.2"],\ - ["verdaccio-htpasswd", "npm:12.0.0-next-7.9"],\ + ["verdaccio-htpasswd", "npm:12.0.0-next-7.10"],\ ["verdaccio-memory", "npm:10.3.2"]\ ],\ "linkType": "SOFT"\ @@ -5266,12 +5266,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/config", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.9-4d6d90049c-efd3310d06.zip/node_modules/@verdaccio/config/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.10-90e89aed5f-2491dec338.zip/node_modules/@verdaccio/config/",\ "packageDependencies": [\ - ["@verdaccio/config", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/config", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ ["debug", "virtual:6251d782ea0db30c21f0f319066656716c470667e40e117968e3ee896b0149dbd84beab1c1d4067d27f9cefc387fad785c8016e1253c05537454f9884ad265e8#npm:4.3.4"],\ ["js-yaml", "npm:4.1.0"],\ ["lodash", "npm:4.17.21"],\ @@ -5282,10 +5282,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/core", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.9-f62714464f-ffb0b7ef23.zip/node_modules/@verdaccio/core/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.10-b2019903c8-b9620589a6.zip/node_modules/@verdaccio/core/",\ "packageDependencies": [\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["ajv", "npm:8.12.0"],\ ["core-js", "npm:3.35.0"],\ ["http-errors", "npm:2.0.0"],\ @@ -5332,22 +5332,22 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/logger-7", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.9-0ef50e41e1-1ef6fd1430.zip/node_modules/@verdaccio/logger-7/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.10-dc2c0984d9-e98348522e.zip/node_modules/@verdaccio/logger-7/",\ "packageDependencies": [\ - ["@verdaccio/logger-7", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/logger-commons", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/logger-7", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/logger-commons", "npm:7.0.0-next-7.10"],\ ["pino", "npm:7.11.0"]\ ],\ "linkType": "HARD"\ }]\ ]],\ ["@verdaccio/logger-commons", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.9-eb15a289e7-5669a7e156.zip/node_modules/@verdaccio/logger-commons/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.10-17a7e7fc50-1b4af41d36.zip/node_modules/@verdaccio/logger-commons/",\ "packageDependencies": [\ - ["@verdaccio/logger-commons", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/logger-commons", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["@verdaccio/logger-prettify", "npm:7.0.0-next.1"],\ ["colorette", "npm:2.0.20"],\ ["debug", "virtual:6251d782ea0db30c21f0f319066656716c470667e40e117968e3ee896b0149dbd84beab1c1d4067d27f9cefc387fad785c8016e1253c05537454f9884ad265e8#npm:4.3.4"]\ @@ -5370,14 +5370,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/middleware", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.9-d24310be5c-45e2f465cd.zip/node_modules/@verdaccio/middleware/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.10-743935d2da-ad616b8795.zip/node_modules/@verdaccio/middleware/",\ "packageDependencies": [\ - ["@verdaccio/middleware", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/config", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/url", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/middleware", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/config", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/url", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ ["debug", "virtual:6251d782ea0db30c21f0f319066656716c470667e40e117968e3ee896b0149dbd84beab1c1d4067d27f9cefc387fad785c8016e1253c05537454f9884ad265e8#npm:4.3.4"],\ ["express", "npm:4.18.2"],\ ["express-rate-limit", "npm:5.5.1"],\ @@ -5418,13 +5418,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/tarball", [\ - ["npm:12.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.9-28bd766171-c7e7a1e87e.zip/node_modules/@verdaccio/tarball/",\ + ["npm:12.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.10-584a0647bf-4b48f05578.zip/node_modules/@verdaccio/tarball/",\ "packageDependencies": [\ - ["@verdaccio/tarball", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/url", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/tarball", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/url", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ ["debug", "virtual:6251d782ea0db30c21f0f319066656716c470667e40e117968e3ee896b0149dbd84beab1c1d4067d27f9cefc387fad785c8016e1253c05537454f9884ad265e8#npm:4.3.4"],\ ["lodash", "npm:4.17.21"]\ ],\ @@ -5441,20 +5441,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/ui-theme", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.9-4f524287e3-84f0d5c3b6.zip/node_modules/@verdaccio/ui-theme/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.10-78039143fa-35e1e50472.zip/node_modules/@verdaccio/ui-theme/",\ "packageDependencies": [\ - ["@verdaccio/ui-theme", "npm:7.0.0-next-7.9"]\ + ["@verdaccio/ui-theme", "npm:7.0.0-next-7.10"]\ ],\ "linkType": "HARD"\ }]\ ]],\ ["@verdaccio/url", [\ - ["npm:12.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.9-e4f28505f3-e48d61673d.zip/node_modules/@verdaccio/url/",\ + ["npm:12.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.10-a164428658-ac180eb9f2.zip/node_modules/@verdaccio/url/",\ "packageDependencies": [\ - ["@verdaccio/url", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/url", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["debug", "virtual:6251d782ea0db30c21f0f319066656716c470667e40e117968e3ee896b0149dbd84beab1c1d4067d27f9cefc387fad785c8016e1253c05537454f9884ad265e8#npm:4.3.4"],\ ["lodash", "npm:4.17.21"],\ ["validator", "npm:13.11.0"]\ @@ -5463,11 +5463,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["@verdaccio/utils", [\ - ["npm:7.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.9-541f3f5b6e-7957e56bff.zip/node_modules/@verdaccio/utils/",\ + ["npm:7.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.10-b031ede96b-0a1d22f735.zip/node_modules/@verdaccio/utils/",\ "packageDependencies": [\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["lodash", "npm:4.17.21"],\ ["minimatch", "npm:7.4.6"],\ ["semver", "npm:7.5.4"]\ @@ -11673,10 +11673,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ],\ "linkType": "HARD"\ }],\ - ["virtual:bf8c15a2e95fdf21c8cf8a5f3a9ac9304acfd3ac42f9a21dd5293afa780b4b6c21cb5be286c65a3edeea74dc540ee504dca49b43e506917f60a145861e970222#npm:2.6.7", {\ - "packageLocation": "./.yarn/__virtual__/node-fetch-virtual-cfaee9f963/0/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip/node_modules/node-fetch/",\ + ["virtual:f47645c9fe1401ca10365ffd0ba08ccc9d734adabb4d00f530c9ed5135815c8a1932bd70e1acb15b54246d97fd2050d37f6ab9bb988c2415792eb9227448e3ae#npm:2.6.7", {\ + "packageLocation": "./.yarn/__virtual__/node-fetch-virtual-061fc063be/0/cache/node-fetch-npm-2.6.7-777aa2a6df-8d816ffd1e.zip/node_modules/node-fetch/",\ "packageDependencies": [\ - ["node-fetch", "virtual:bf8c15a2e95fdf21c8cf8a5f3a9ac9304acfd3ac42f9a21dd5293afa780b4b6c21cb5be286c65a3edeea74dc540ee504dca49b43e506917f60a145861e970222#npm:2.6.7"],\ + ["node-fetch", "virtual:f47645c9fe1401ca10365ffd0ba08ccc9d734adabb4d00f530c9ed5135815c8a1932bd70e1acb15b54246d97fd2050d37f6ab9bb988c2415792eb9227448e3ae#npm:2.6.7"],\ ["@types/encoding", null],\ ["encoding", null],\ ["whatwg-url", "npm:5.0.0"]\ @@ -14524,19 +14524,19 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/eslint-plugin", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:5.62.0"],\ ["@typescript-eslint/parser", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:5.62.0"],\ ["@verdaccio-scope/verdaccio-auth-foo", "npm:0.0.2"],\ - ["@verdaccio/config", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/config", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["@verdaccio/local-storage", "npm:10.3.3"],\ - ["@verdaccio/logger-7", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/middleware", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/logger-7", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/middleware", "npm:7.0.0-next-7.10"],\ ["@verdaccio/search", "npm:7.0.0-next.2"],\ ["@verdaccio/signature", "npm:7.0.0-next.3"],\ ["@verdaccio/streams", "npm:10.2.1"],\ - ["@verdaccio/tarball", "npm:12.0.0-next-7.9"],\ + ["@verdaccio/tarball", "npm:12.0.0-next-7.10"],\ ["@verdaccio/types", "npm:12.0.0-next.2"],\ - ["@verdaccio/ui-theme", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/url", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/utils", "npm:7.0.0-next-7.9"],\ + ["@verdaccio/ui-theme", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/url", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/utils", "npm:7.0.0-next-7.10"],\ ["JSONStream", "npm:1.3.5"],\ ["async", "npm:3.2.5"],\ ["babel-jest", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:29.7.0"],\ @@ -14590,24 +14590,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["ts-node", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:10.9.2"],\ ["typescript", "patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587"],\ ["validator", "npm:13.11.0"],\ - ["verdaccio-audit", "npm:12.0.0-next-7.9"],\ + ["verdaccio-audit", "npm:12.0.0-next-7.10"],\ ["verdaccio-auth-memory", "npm:10.2.2"],\ - ["verdaccio-htpasswd", "npm:12.0.0-next-7.9"],\ + ["verdaccio-htpasswd", "npm:12.0.0-next-7.10"],\ ["verdaccio-memory", "npm:10.3.2"]\ ],\ "linkType": "SOFT"\ }]\ ]],\ ["verdaccio-audit", [\ - ["npm:12.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.9-bf8c15a2e9-606b31704b.zip/node_modules/verdaccio-audit/",\ + ["npm:12.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.10-f47645c9fe-7c491f0425.zip/node_modules/verdaccio-audit/",\ "packageDependencies": [\ - ["verdaccio-audit", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/config", "npm:7.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["verdaccio-audit", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/config", "npm:7.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["express", "npm:4.18.2"],\ ["https-proxy-agent", "npm:5.0.1"],\ - ["node-fetch", "virtual:bf8c15a2e95fdf21c8cf8a5f3a9ac9304acfd3ac42f9a21dd5293afa780b4b6c21cb5be286c65a3edeea74dc540ee504dca49b43e506917f60a145861e970222#npm:2.6.7"]\ + ["node-fetch", "virtual:f47645c9fe1401ca10365ffd0ba08ccc9d734adabb4d00f530c9ed5135815c8a1932bd70e1acb15b54246d97fd2050d37f6ab9bb988c2415792eb9227448e3ae#npm:2.6.7"]\ ],\ "linkType": "HARD"\ }]\ @@ -14623,11 +14623,11 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }]\ ]],\ ["verdaccio-htpasswd", [\ - ["npm:12.0.0-next-7.9", {\ - "packageLocation": "./.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.9-e95b85425d-f235ebe0a6.zip/node_modules/verdaccio-htpasswd/",\ + ["npm:12.0.0-next-7.10", {\ + "packageLocation": "./.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.10-a4201b2b42-885d5e20e6.zip/node_modules/verdaccio-htpasswd/",\ "packageDependencies": [\ - ["verdaccio-htpasswd", "npm:12.0.0-next-7.9"],\ - ["@verdaccio/core", "npm:7.0.0-next-7.9"],\ + ["verdaccio-htpasswd", "npm:12.0.0-next-7.10"],\ + ["@verdaccio/core", "npm:7.0.0-next-7.10"],\ ["@verdaccio/file-locking", "npm:12.0.0-next.1"],\ ["apache-md5", "npm:1.1.8"],\ ["bcryptjs", "npm:2.4.3"],\ @@ -16717,7 +16717,8 @@ class ZipFS extends BasePortableFakeFS { stream$1.destroy(); }, bytesRead: 0, - path: p + path: p, + pending: false } ); const immediate = setImmediate(async () => { @@ -16758,11 +16759,12 @@ class ZipFS extends BasePortableFakeFS { } }), { - bytesWritten: 0, - path: p, close() { stream$1.destroy(); - } + }, + bytesWritten: 0, + path: p, + pending: false } ); stream$1.on(`data`, (chunk) => { @@ -17702,18 +17704,10 @@ class ProxiedFS extends FakeFS { return this.baseFs.symlinkSync(mappedTarget, mappedP, type); } async readFilePromise(p, encoding) { - if (encoding === `utf8`) { - return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); - } else { - return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); - } + return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); } readFileSync(p, encoding) { - if (encoding === `utf8`) { - return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); - } else { - return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); - } + return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); } async readdirPromise(p, opts) { return this.baseFs.readdirPromise(this.mapToBase(p), opts); @@ -18439,24 +18433,14 @@ class ZipOpenFS extends BasePortableFakeFS { } async readFilePromise(p, encoding) { return this.makeCallPromise(p, async () => { - switch (encoding) { - case `utf8`: - return await this.baseFs.readFilePromise(p, encoding); - default: - return await this.baseFs.readFilePromise(p, encoding); - } + return await this.baseFs.readFilePromise(p, encoding); }, async (zipFs, { subPath }) => { return await zipFs.readFilePromise(subPath, encoding); }); } readFileSync(p, encoding) { return this.makeCallSync(p, () => { - switch (encoding) { - case `utf8`: - return this.baseFs.readFileSync(p, encoding); - default: - return this.baseFs.readFileSync(p, encoding); - } + return this.baseFs.readFileSync(p, encoding); }, (zipFs, { subPath }) => { return zipFs.readFileSync(subPath, encoding); }); @@ -19148,38 +19132,28 @@ function patchFs(patchedFs, fakeFs) { patchedFs.realpathSync.native = patchedFs.realpathSync; } { - const origEmitWarning = process.emitWarning; - process.emitWarning = () => { - }; - let patchedFsPromises; - try { - patchedFsPromises = patchedFs.promises; - } finally { - process.emitWarning = origEmitWarning; - } - if (typeof patchedFsPromises !== `undefined`) { - for (const fnName of ASYNC_IMPLEMENTATIONS) { - const origName = fnName.replace(/Promise$/, ``); - if (typeof patchedFsPromises[origName] === `undefined`) - continue; - const fakeImpl = fakeFs[fnName]; - if (typeof fakeImpl === `undefined`) - continue; - if (fnName === `open`) - continue; - setupFn(patchedFsPromises, origName, (pathLike, ...args) => { - if (pathLike instanceof FileHandle) { - return pathLike[origName].apply(pathLike, args); - } else { - return fakeImpl.call(fakeFs, pathLike, ...args); - } - }); - } - setupFn(patchedFsPromises, `open`, async (...args) => { - const fd = await fakeFs.openPromise(...args); - return new FileHandle(fd, fakeFs); + const patchedFsPromises = patchedFs.promises; + for (const fnName of ASYNC_IMPLEMENTATIONS) { + const origName = fnName.replace(/Promise$/, ``); + if (typeof patchedFsPromises[origName] === `undefined`) + continue; + const fakeImpl = fakeFs[fnName]; + if (typeof fakeImpl === `undefined`) + continue; + if (fnName === `open`) + continue; + setupFn(patchedFsPromises, origName, (pathLike, ...args) => { + if (pathLike instanceof FileHandle) { + return pathLike[origName].apply(pathLike, args); + } else { + return fakeImpl.call(fakeFs, pathLike, ...args); + } }); } + setupFn(patchedFsPromises, `open`, async (...args) => { + const fd = await fakeFs.openPromise(...args); + return new FileHandle(fd, fakeFs); + }); } { patchedFs.read[nodeUtils.promisify.custom] = async (fd, buffer, ...args) => { diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 849d760f0..ba66000dc 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -1190,18 +1190,10 @@ class ProxiedFS extends FakeFS { return this.baseFs.symlinkSync(mappedTarget, mappedP, type); } async readFilePromise(p, encoding) { - if (encoding === `utf8`) { - return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); - } else { - return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); - } + return this.baseFs.readFilePromise(this.fsMapToBase(p), encoding); } readFileSync(p, encoding) { - if (encoding === `utf8`) { - return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); - } else { - return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); - } + return this.baseFs.readFileSync(this.fsMapToBase(p), encoding); } async readdirPromise(p, opts) { return this.baseFs.readdirPromise(this.mapToBase(p), opts); diff --git a/.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.9-4d6d90049c-efd3310d06.zip b/.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.10-90e89aed5f-2491dec338.zip similarity index 85% rename from .yarn/cache/@verdaccio-config-npm-7.0.0-next-7.9-4d6d90049c-efd3310d06.zip rename to .yarn/cache/@verdaccio-config-npm-7.0.0-next-7.10-90e89aed5f-2491dec338.zip index a4cc03b68..e9ed35d3e 100644 Binary files a/.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.9-4d6d90049c-efd3310d06.zip and b/.yarn/cache/@verdaccio-config-npm-7.0.0-next-7.10-90e89aed5f-2491dec338.zip differ diff --git a/.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.9-f62714464f-ffb0b7ef23.zip b/.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.10-b2019903c8-b9620589a6.zip similarity index 88% rename from .yarn/cache/@verdaccio-core-npm-7.0.0-next-7.9-f62714464f-ffb0b7ef23.zip rename to .yarn/cache/@verdaccio-core-npm-7.0.0-next-7.10-b2019903c8-b9620589a6.zip index 0a2e2c801..d04a0f09d 100644 Binary files a/.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.9-f62714464f-ffb0b7ef23.zip and b/.yarn/cache/@verdaccio-core-npm-7.0.0-next-7.10-b2019903c8-b9620589a6.zip differ diff --git a/.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.9-0ef50e41e1-1ef6fd1430.zip b/.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.10-dc2c0984d9-e98348522e.zip similarity index 59% rename from .yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.9-0ef50e41e1-1ef6fd1430.zip rename to .yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.10-dc2c0984d9-e98348522e.zip index cc33a6973..13641ed3d 100644 Binary files a/.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.9-0ef50e41e1-1ef6fd1430.zip and b/.yarn/cache/@verdaccio-logger-7-npm-7.0.0-next-7.10-dc2c0984d9-e98348522e.zip differ diff --git a/.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.9-eb15a289e7-5669a7e156.zip b/.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.10-17a7e7fc50-1b4af41d36.zip similarity index 79% rename from .yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.9-eb15a289e7-5669a7e156.zip rename to .yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.10-17a7e7fc50-1b4af41d36.zip index 0b864745e..6ade580eb 100644 Binary files a/.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.9-eb15a289e7-5669a7e156.zip and b/.yarn/cache/@verdaccio-logger-commons-npm-7.0.0-next-7.10-17a7e7fc50-1b4af41d36.zip differ diff --git a/.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.9-d24310be5c-45e2f465cd.zip b/.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.10-743935d2da-ad616b8795.zip similarity index 87% rename from .yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.9-d24310be5c-45e2f465cd.zip rename to .yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.10-743935d2da-ad616b8795.zip index daa33d30e..b8597c65c 100644 Binary files a/.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.9-d24310be5c-45e2f465cd.zip and b/.yarn/cache/@verdaccio-middleware-npm-7.0.0-next-7.10-743935d2da-ad616b8795.zip differ diff --git a/.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.9-28bd766171-c7e7a1e87e.zip b/.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.10-584a0647bf-4b48f05578.zip similarity index 63% rename from .yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.9-28bd766171-c7e7a1e87e.zip rename to .yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.10-584a0647bf-4b48f05578.zip index 60bd9c224..f05d52060 100644 Binary files a/.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.9-28bd766171-c7e7a1e87e.zip and b/.yarn/cache/@verdaccio-tarball-npm-12.0.0-next-7.10-584a0647bf-4b48f05578.zip differ diff --git a/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.10-78039143fa-35e1e50472.zip b/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.10-78039143fa-35e1e50472.zip new file mode 100644 index 000000000..38e9cacc1 Binary files /dev/null and b/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.10-78039143fa-35e1e50472.zip differ diff --git a/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.9-4f524287e3-84f0d5c3b6.zip b/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.9-4f524287e3-84f0d5c3b6.zip deleted file mode 100644 index e69b31975..000000000 Binary files a/.yarn/cache/@verdaccio-ui-theme-npm-7.0.0-next-7.9-4f524287e3-84f0d5c3b6.zip and /dev/null differ diff --git a/.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.9-e4f28505f3-e48d61673d.zip b/.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.10-a164428658-ac180eb9f2.zip similarity index 63% rename from .yarn/cache/@verdaccio-url-npm-12.0.0-next-7.9-e4f28505f3-e48d61673d.zip rename to .yarn/cache/@verdaccio-url-npm-12.0.0-next-7.10-a164428658-ac180eb9f2.zip index fcc6cd25c..c43ecce81 100644 Binary files a/.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.9-e4f28505f3-e48d61673d.zip and b/.yarn/cache/@verdaccio-url-npm-12.0.0-next-7.10-a164428658-ac180eb9f2.zip differ diff --git a/.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.9-541f3f5b6e-7957e56bff.zip b/.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.10-b031ede96b-0a1d22f735.zip similarity index 78% rename from .yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.9-541f3f5b6e-7957e56bff.zip rename to .yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.10-b031ede96b-0a1d22f735.zip index b2da5561d..d154b217d 100644 Binary files a/.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.9-541f3f5b6e-7957e56bff.zip and b/.yarn/cache/@verdaccio-utils-npm-7.0.0-next-7.10-b031ede96b-0a1d22f735.zip differ diff --git a/.yarn/cache/fsevents-patch-2882183fbf-8.zip b/.yarn/cache/fsevents-patch-2882183fbf-8.zip new file mode 100644 index 000000000..c4511f19b Binary files /dev/null and b/.yarn/cache/fsevents-patch-2882183fbf-8.zip differ diff --git a/.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.9-bf8c15a2e9-606b31704b.zip b/.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.10-f47645c9fe-7c491f0425.zip similarity index 61% rename from .yarn/cache/verdaccio-audit-npm-12.0.0-next-7.9-bf8c15a2e9-606b31704b.zip rename to .yarn/cache/verdaccio-audit-npm-12.0.0-next-7.10-f47645c9fe-7c491f0425.zip index 4bc4ea39e..08a4d2e5f 100644 Binary files a/.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.9-bf8c15a2e9-606b31704b.zip and b/.yarn/cache/verdaccio-audit-npm-12.0.0-next-7.10-f47645c9fe-7c491f0425.zip differ diff --git a/.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.9-e95b85425d-f235ebe0a6.zip b/.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.10-a4201b2b42-885d5e20e6.zip similarity index 90% rename from .yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.9-e95b85425d-f235ebe0a6.zip rename to .yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.10-a4201b2b42-885d5e20e6.zip index 85aac9878..e1c98f45c 100644 Binary files a/.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.9-e95b85425d-f235ebe0a6.zip and b/.yarn/cache/verdaccio-htpasswd-npm-12.0.0-next-7.10-a4201b2b42-885d5e20e6.zip differ diff --git a/package.json b/package.json index c7d8bffa4..80b9bfe44 100644 --- a/package.json +++ b/package.json @@ -20,18 +20,18 @@ }, "dependencies": { "@cypress/request": "3.0.1", - "@verdaccio/config": "7.0.0-next-7.9", - "@verdaccio/core": "7.0.0-next-7.9", + "@verdaccio/config": "7.0.0-next-7.10", + "@verdaccio/core": "7.0.0-next-7.10", "@verdaccio/local-storage": "10.3.3", - "@verdaccio/logger-7": "7.0.0-next-7.9", - "@verdaccio/middleware": "7.0.0-next-7.9", + "@verdaccio/logger-7": "7.0.0-next-7.10", + "@verdaccio/middleware": "7.0.0-next-7.10", "@verdaccio/search": "7.0.0-next.2", "@verdaccio/signature": "7.0.0-next.3", "@verdaccio/streams": "10.2.1", - "@verdaccio/tarball": "12.0.0-next-7.9", - "@verdaccio/ui-theme": "7.0.0-next-7.9", - "@verdaccio/url": "12.0.0-next-7.9", - "@verdaccio/utils": "7.0.0-next-7.9", + "@verdaccio/tarball": "12.0.0-next-7.10", + "@verdaccio/ui-theme": "7.0.0-next-7.10", + "@verdaccio/url": "12.0.0-next-7.10", + "@verdaccio/utils": "7.0.0-next-7.10", "JSONStream": "1.3.5", "async": "3.2.5", "clipanion": "3.2.1", @@ -55,8 +55,8 @@ "pkginfo": "0.4.1", "semver": "7.5.4", "validator": "13.11.0", - "verdaccio-audit": "12.0.0-next-7.9", - "verdaccio-htpasswd": "12.0.0-next-7.9" + "verdaccio-audit": "12.0.0-next-7.10", + "verdaccio-htpasswd": "12.0.0-next-7.10" }, "devDependencies": { "@babel/cli": "7.23.4", diff --git a/yarn.lock b/yarn.lock index a871cbf38..57ffd5d94 100644 Binary files a/yarn.lock and b/yarn.lock differ