0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix(deps): update core verdaccio dependencies (5.x) (#4516)

* fix(deps): update core verdaccio dependencies

* lock file

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
This commit is contained in:
renovate[bot] 2024-02-21 19:37:46 +01:00 committed by GitHub
parent 2f74d7c1a5
commit 11f3309fd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 115 additions and 149 deletions

232
.pnp.cjs generated
View file

@ -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<compat/typescript>::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<compat/typescript>::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) => {

12
.pnp.loader.mjs generated
View file

@ -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);

Binary file not shown.

View file

@ -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",

BIN
yarn.lock

Binary file not shown.