mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-04-01 02:42:23 -05:00
fix: pushed wrong types library and broken build
This commit is contained in:
parent
7439c8d120
commit
45d7c95a08
31 changed files with 148 additions and 233 deletions
164
.pnp.cjs
generated
164
.pnp.cjs
generated
|
@ -58,7 +58,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["@types/express-rate-limit", "npm:5.1.3"],\
|
||||
["@types/express-serve-static-core", "npm:4.17.28"],\
|
||||
["@types/http-errors", "npm:2.0.1"],\
|
||||
["@types/jest", "npm:29.2.6"],\
|
||||
["@types/jest", "npm:26.0.24"],\
|
||||
["@types/lodash", "npm:4.14.191"],\
|
||||
["@types/mime", "npm:2.0.3"],\
|
||||
["@types/minimatch", "npm:3.0.5"],\
|
||||
|
@ -74,7 +74,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["@verdaccio/local-storage", "npm:10.3.1"],\
|
||||
["@verdaccio/streams", "npm:10.2.0"],\
|
||||
["@verdaccio/tarball", "npm:11.0.0-6-next.24"],\
|
||||
["@verdaccio/types", "npm:11.0.0-6-next.19"],\
|
||||
["@verdaccio/types", "npm:10.7.0"],\
|
||||
["@verdaccio/ui-theme", "npm:6.0.0-6-next.55"],\
|
||||
["@verdaccio/url", "npm:11.0.0-6-next.21"],\
|
||||
["@verdaccio/utils", "npm:6.0.0-6-next.23"],\
|
||||
|
@ -3523,14 +3523,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@jest/expect-utils", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-expect-utils-npm-29.3.1-97cd2f0a06-7f3b853eb1.zip/node_modules/@jest/expect-utils/",\
|
||||
"packageDependencies": [\
|
||||
["@jest/expect-utils", "npm:29.3.1"],\
|
||||
["jest-get-type", "npm:29.2.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.1", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-expect-utils-npm-29.4.1-0f3d7bdf3c-865b4ee79d.zip/node_modules/@jest/expect-utils/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -3615,14 +3607,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@jest/schemas", [\
|
||||
["npm:29.0.0", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-schemas-npm-29.0.0-5d6c90262d-41355c78f0.zip/node_modules/@jest/schemas/",\
|
||||
"packageDependencies": [\
|
||||
["@jest/schemas", "npm:29.0.0"],\
|
||||
["@sinclair/typebox", "npm:0.24.51"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.0", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-schemas-npm-29.4.0-8bccf324f8-005c90b7b6.zip/node_modules/@jest/schemas/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -3695,15 +3679,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@jest/types", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-types-npm-29.3.1-6b45218613-6f9faf2750.zip/node_modules/@jest/types/",\
|
||||
["npm:26.6.2", {\
|
||||
"packageLocation": "./.yarn/cache/@jest-types-npm-26.6.2-fca9877d98-a0bd3d2f22.zip/node_modules/@jest/types/",\
|
||||
"packageDependencies": [\
|
||||
["@jest/types", "npm:29.3.1"],\
|
||||
["@jest/schemas", "npm:29.0.0"],\
|
||||
["@jest/types", "npm:26.6.2"],\
|
||||
["@types/istanbul-lib-coverage", "npm:2.0.4"],\
|
||||
["@types/istanbul-reports", "npm:3.0.1"],\
|
||||
["@types/node", "npm:18.11.9"],\
|
||||
["@types/yargs", "npm:17.0.20"],\
|
||||
["@types/yargs", "npm:15.0.15"],\
|
||||
["chalk", "npm:4.1.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
|
@ -4046,13 +4029,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@sinclair/typebox", [\
|
||||
["npm:0.24.51", {\
|
||||
"packageLocation": "./.yarn/cache/@sinclair-typebox-npm-0.24.51-cdde4a266f-fd0d855e74.zip/node_modules/@sinclair/typebox/",\
|
||||
"packageDependencies": [\
|
||||
["@sinclair/typebox", "npm:0.24.51"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:0.25.21", {\
|
||||
"packageLocation": "./.yarn/cache/@sinclair-typebox-npm-0.25.21-83efa5a294-763af1163f.zip/node_modules/@sinclair/typebox/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -4337,12 +4313,12 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@types/jest", [\
|
||||
["npm:29.2.6", {\
|
||||
"packageLocation": "./.yarn/cache/@types-jest-npm-29.2.6-6feedd29f5-90190ac830.zip/node_modules/@types/jest/",\
|
||||
["npm:26.0.24", {\
|
||||
"packageLocation": "./.yarn/cache/@types-jest-npm-26.0.24-47c570294f-ae39675412.zip/node_modules/@types/jest/",\
|
||||
"packageDependencies": [\
|
||||
["@types/jest", "npm:29.2.6"],\
|
||||
["expect", "npm:29.3.1"],\
|
||||
["pretty-format", "npm:29.3.1"]\
|
||||
["@types/jest", "npm:26.0.24"],\
|
||||
["jest-diff", "npm:26.6.2"],\
|
||||
["pretty-format", "npm:26.6.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
|
@ -4555,6 +4531,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@types/yargs", [\
|
||||
["npm:15.0.15", {\
|
||||
"packageLocation": "./.yarn/cache/@types-yargs-npm-15.0.15-b73a9d1c59-3420f6bcc5.zip/node_modules/@types/yargs/",\
|
||||
"packageDependencies": [\
|
||||
["@types/yargs", "npm:15.0.15"],\
|
||||
["@types/yargs-parser", "npm:21.0.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:17.0.20", {\
|
||||
"packageLocation": "./.yarn/cache/@types-yargs-npm-17.0.20-a48364a46f-dc2edbb0e4.zip/node_modules/@types/yargs/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -4965,10 +4949,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["@verdaccio/types", [\
|
||||
["npm:11.0.0-6-next.19", {\
|
||||
"packageLocation": "./.yarn/cache/@verdaccio-types-npm-11.0.0-6-next.19-6dbcb99e5b-bf792d43be.zip/node_modules/@verdaccio/types/",\
|
||||
["npm:10.7.0", {\
|
||||
"packageLocation": "./.yarn/cache/@verdaccio-types-npm-10.7.0-28c6045ab8-1439a0f6df.zip/node_modules/@verdaccio/types/",\
|
||||
"packageDependencies": [\
|
||||
["@verdaccio/types", "npm:11.0.0-6-next.19"]\
|
||||
["@verdaccio/types", "npm:10.7.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}]\
|
||||
|
@ -6970,6 +6954,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["diff-sequences", [\
|
||||
["npm:26.6.2", {\
|
||||
"packageLocation": "./.yarn/cache/diff-sequences-npm-26.6.2-fbf1967570-79af871776.zip/node_modules/diff-sequences/",\
|
||||
"packageDependencies": [\
|
||||
["diff-sequences", "npm:26.6.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/diff-sequences-npm-29.3.1-817e98637b-8edab8c383.zip/node_modules/diff-sequences/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -7537,7 +7528,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
"packageDependencies": [\
|
||||
["eslint-plugin-jest", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:27.2.1"],\
|
||||
["@types/eslint", null],\
|
||||
["@types/jest", "npm:29.2.6"],\
|
||||
["@types/jest", "npm:26.0.24"],\
|
||||
["@types/typescript-eslint__eslint-plugin", null],\
|
||||
["@typescript-eslint/eslint-plugin", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:5.49.0"],\
|
||||
["@typescript-eslint/utils", "virtual:0a766834289230a418539a54ad4e7718f4db1cac0b31635f6785ff71041a210390154ae1dfd5a76a1c18ed197b2944894509c6d2ef66f93950aa1c49678903ec#npm:5.48.2"],\
|
||||
|
@ -7796,18 +7787,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["expect", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/expect-npm-29.3.1-2892df60b8-e9588c2a43.zip/node_modules/expect/",\
|
||||
"packageDependencies": [\
|
||||
["expect", "npm:29.3.1"],\
|
||||
["@jest/expect-utils", "npm:29.3.1"],\
|
||||
["jest-get-type", "npm:29.2.0"],\
|
||||
["jest-matcher-utils", "npm:29.3.1"],\
|
||||
["jest-message-util", "npm:29.3.1"],\
|
||||
["jest-util", "npm:29.3.1"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.1", {\
|
||||
"packageLocation": "./.yarn/cache/expect-npm-29.4.1-4afdb10380-5918f69371.zip/node_modules/expect/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -9639,14 +9618,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["jest-diff", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-diff-npm-29.3.1-267b436f67-ac5c09745f.zip/node_modules/jest-diff/",\
|
||||
["npm:26.6.2", {\
|
||||
"packageLocation": "./.yarn/cache/jest-diff-npm-26.6.2-06ca2a96ca-d00d297f31.zip/node_modules/jest-diff/",\
|
||||
"packageDependencies": [\
|
||||
["jest-diff", "npm:29.3.1"],\
|
||||
["jest-diff", "npm:26.6.2"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["diff-sequences", "npm:29.3.1"],\
|
||||
["jest-get-type", "npm:29.2.0"],\
|
||||
["pretty-format", "npm:29.3.1"]\
|
||||
["diff-sequences", "npm:26.6.2"],\
|
||||
["jest-get-type", "npm:26.3.0"],\
|
||||
["pretty-format", "npm:26.6.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
|
@ -9702,6 +9681,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["jest-get-type", [\
|
||||
["npm:26.3.0", {\
|
||||
"packageLocation": "./.yarn/cache/jest-get-type-npm-26.3.0-a481f14d96-1cc6465ae4.zip/node_modules/jest-get-type/",\
|
||||
"packageDependencies": [\
|
||||
["jest-get-type", "npm:26.3.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.2.0", {\
|
||||
"packageLocation": "./.yarn/cache/jest-get-type-npm-29.2.0-47b45861f7-e396fd880a.zip/node_modules/jest-get-type/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -9756,17 +9742,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["jest-matcher-utils", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-matcher-utils-npm-29.3.1-5d9d00434d-311e8d9f1e.zip/node_modules/jest-matcher-utils/",\
|
||||
"packageDependencies": [\
|
||||
["jest-matcher-utils", "npm:29.3.1"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["jest-diff", "npm:29.3.1"],\
|
||||
["jest-get-type", "npm:29.2.0"],\
|
||||
["pretty-format", "npm:29.3.1"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-matcher-utils-npm-29.4.1-899c67c6b1-ea84dbcae8.zip/node_modules/jest-matcher-utils/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -9780,22 +9755,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["jest-message-util", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-message-util-npm-29.3.1-66a108a242-15d0a2fca3.zip/node_modules/jest-message-util/",\
|
||||
"packageDependencies": [\
|
||||
["jest-message-util", "npm:29.3.1"],\
|
||||
["@babel/code-frame", "npm:7.18.6"],\
|
||||
["@jest/types", "npm:29.3.1"],\
|
||||
["@types/stack-utils", "npm:2.0.1"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["graceful-fs", "npm:4.2.10"],\
|
||||
["micromatch", "npm:4.0.5"],\
|
||||
["pretty-format", "npm:29.3.1"],\
|
||||
["slash", "npm:3.0.0"],\
|
||||
["stack-utils", "npm:2.0.6"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-message-util-npm-29.4.1-38634d4808-7d49823401.zip/node_modules/jest-message-util/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -9981,19 +9940,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["jest-util", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-util-npm-29.3.1-0394c5b084-f67c60f062.zip/node_modules/jest-util/",\
|
||||
"packageDependencies": [\
|
||||
["jest-util", "npm:29.3.1"],\
|
||||
["@jest/types", "npm:29.3.1"],\
|
||||
["@types/node", "npm:18.11.9"],\
|
||||
["chalk", "npm:4.1.2"],\
|
||||
["ci-info", "npm:3.7.1"],\
|
||||
["graceful-fs", "npm:4.2.10"],\
|
||||
["picomatch", "npm:2.3.1"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:29.4.1", {\
|
||||
"packageLocation": "./.yarn/cache/jest-util-npm-29.4.1-6da5a6c05c-10a0e6c448.zip/node_modules/jest-util/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -11781,13 +11727,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["pretty-format", [\
|
||||
["npm:29.3.1", {\
|
||||
"packageLocation": "./.yarn/cache/pretty-format-npm-29.3.1-cf42cb4acb-9917a0bb85.zip/node_modules/pretty-format/",\
|
||||
["npm:26.6.2", {\
|
||||
"packageLocation": "./.yarn/cache/pretty-format-npm-26.6.2-6edfcf7149-e3b808404d.zip/node_modules/pretty-format/",\
|
||||
"packageDependencies": [\
|
||||
["pretty-format", "npm:29.3.1"],\
|
||||
["@jest/schemas", "npm:29.0.0"],\
|
||||
["ansi-styles", "npm:5.2.0"],\
|
||||
["react-is", "npm:18.2.0"]\
|
||||
["pretty-format", "npm:26.6.2"],\
|
||||
["@jest/types", "npm:26.6.2"],\
|
||||
["ansi-regex", "npm:5.0.1"],\
|
||||
["ansi-styles", "npm:4.3.0"],\
|
||||
["react-is", "npm:17.0.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
|
@ -12013,6 +11960,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["react-is", [\
|
||||
["npm:17.0.2", {\
|
||||
"packageLocation": "./.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip/node_modules/react-is/",\
|
||||
"packageDependencies": [\
|
||||
["react-is", "npm:17.0.2"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:18.2.0", {\
|
||||
"packageLocation": "./.yarn/cache/react-is-npm-18.2.0-0cc5edb910-e72d0ba81b.zip/node_modules/react-is/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -13761,7 +13715,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["@types/express-rate-limit", "npm:5.1.3"],\
|
||||
["@types/express-serve-static-core", "npm:4.17.28"],\
|
||||
["@types/http-errors", "npm:2.0.1"],\
|
||||
["@types/jest", "npm:29.2.6"],\
|
||||
["@types/jest", "npm:26.0.24"],\
|
||||
["@types/lodash", "npm:4.14.191"],\
|
||||
["@types/mime", "npm:2.0.3"],\
|
||||
["@types/minimatch", "npm:3.0.5"],\
|
||||
|
@ -13777,7 +13731,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["@verdaccio/local-storage", "npm:10.3.1"],\
|
||||
["@verdaccio/streams", "npm:10.2.0"],\
|
||||
["@verdaccio/tarball", "npm:11.0.0-6-next.24"],\
|
||||
["@verdaccio/types", "npm:11.0.0-6-next.19"],\
|
||||
["@verdaccio/types", "npm:10.7.0"],\
|
||||
["@verdaccio/ui-theme", "npm:6.0.0-6-next.55"],\
|
||||
["@verdaccio/url", "npm:11.0.0-6-next.21"],\
|
||||
["@verdaccio/utils", "npm:6.0.0-6-next.23"],\
|
||||
|
|
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jest-types-npm-26.6.2-fca9877d98-a0bd3d2f22.zip
vendored
Normal file
BIN
.yarn/cache/@jest-types-npm-26.6.2-fca9877d98-a0bd3d2f22.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-jest-npm-26.0.24-47c570294f-ae39675412.zip
vendored
Normal file
BIN
.yarn/cache/@types-jest-npm-26.0.24-47c570294f-ae39675412.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-yargs-npm-15.0.15-b73a9d1c59-3420f6bcc5.zip
vendored
Normal file
BIN
.yarn/cache/@types-yargs-npm-15.0.15-b73a9d1c59-3420f6bcc5.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@verdaccio-types-npm-10.7.0-28c6045ab8-1439a0f6df.zip
vendored
Normal file
BIN
.yarn/cache/@verdaccio-types-npm-10.7.0-28c6045ab8-1439a0f6df.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/diff-sequences-npm-26.6.2-fbf1967570-79af871776.zip
vendored
Normal file
BIN
.yarn/cache/diff-sequences-npm-26.6.2-fbf1967570-79af871776.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/jest-diff-npm-26.6.2-06ca2a96ca-d00d297f31.zip
vendored
Normal file
BIN
.yarn/cache/jest-diff-npm-26.6.2-06ca2a96ca-d00d297f31.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/jest-get-type-npm-26.3.0-a481f14d96-1cc6465ae4.zip
vendored
Normal file
BIN
.yarn/cache/jest-get-type-npm-26.3.0-a481f14d96-1cc6465ae4.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/pretty-format-npm-26.6.2-6edfcf7149-e3b808404d.zip
vendored
Normal file
BIN
.yarn/cache/pretty-format-npm-26.6.2-6edfcf7149-e3b808404d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip
vendored
Normal file
BIN
.yarn/cache/react-is-npm-17.0.2-091bbb8db6-9d6d111d89.zip
vendored
Normal file
Binary file not shown.
|
@ -92,7 +92,7 @@
|
|||
"@types/express-rate-limit": "5.1.3",
|
||||
"@types/express-serve-static-core": "4.17.28",
|
||||
"@types/http-errors": "2.0.1",
|
||||
"@types/jest": "29.2.6",
|
||||
"@types/jest": "26.0.24",
|
||||
"@types/lodash": "4.14.191",
|
||||
"@types/mime": "2.0.3",
|
||||
"@types/minimatch": "3.0.5",
|
||||
|
@ -103,7 +103,7 @@
|
|||
"@typescript-eslint/eslint-plugin": "5.49.0",
|
||||
"@typescript-eslint/parser": "5.49.0",
|
||||
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
|
||||
"@verdaccio/types": "11.0.0-6-next.19",
|
||||
"@verdaccio/types": "10.7.0",
|
||||
"babel-eslint": "10.1.0",
|
||||
"babel-jest": "29.4.1",
|
||||
"babel-plugin-dynamic-import-node": "2.3.3",
|
||||
|
|
|
@ -11,6 +11,7 @@ export default (app: Application, selfPath: string): void => {
|
|||
const doGarbabeCollector = _.isNil(global.gc) === false;
|
||||
|
||||
if (doGarbabeCollector) {
|
||||
// @ts-ignore
|
||||
global.gc();
|
||||
}
|
||||
|
||||
|
|
|
@ -83,7 +83,16 @@ export default function (
|
|||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
metadata = convertDistRemoteToLocalTarballUrls(metadata, req, config.url_prefix);
|
||||
metadata = convertDistRemoteToLocalTarballUrls(
|
||||
metadata,
|
||||
{
|
||||
protocol: req.protocol,
|
||||
headers: req.headers as any,
|
||||
host: req.host,
|
||||
remoteAddress: req.socket.remoteAddress,
|
||||
},
|
||||
config.url_prefix
|
||||
);
|
||||
|
||||
let queryVersion = req.params.version;
|
||||
if (_.isNil(queryVersion)) {
|
||||
|
|
|
@ -11,13 +11,7 @@ import { API_ERROR, API_MESSAGE, DIST_TAGS, HEADERS, HTTP_STATUS } from '../../.
|
|||
import { logger } from '../../../lib/logger';
|
||||
import { notify } from '../../../lib/notify';
|
||||
import { isPublishablePackage } from '../../../lib/storage-utils';
|
||||
import {
|
||||
ErrorCode,
|
||||
hasDiffOneKey,
|
||||
isObject,
|
||||
isRelatedToDeprecation,
|
||||
validateMetadata,
|
||||
} from '../../../lib/utils';
|
||||
import { ErrorCode, hasDiffOneKey, isObject, isRelatedToDeprecation } from '../../../lib/utils';
|
||||
import {
|
||||
$NextFunctionVer,
|
||||
$RequestExtend,
|
||||
|
|
|
@ -409,6 +409,7 @@ export function log(config: Config) {
|
|||
});
|
||||
|
||||
const _end = res.end;
|
||||
// @ts-ignore
|
||||
res.end = function (buf): void {
|
||||
if (buf) {
|
||||
bytesout += buf.length;
|
||||
|
|
|
@ -81,7 +81,7 @@ function addPackageWebApi(storage: IStorageHandler, auth: IAuth, config: Config)
|
|||
pkgCopy.dist.tarball = getLocalRegistryTarballUri(
|
||||
pkgCopy.dist.tarball,
|
||||
pkg.name,
|
||||
req,
|
||||
{ protocol: req.protocol, headers: req.headers as any, host: req.hostname },
|
||||
config.url_prefix
|
||||
);
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ function addPackageWebApi(storage: IStorageHandler, auth: IAuth, config: Config)
|
|||
let sideBarInfo: any = _.clone(info);
|
||||
sideBarInfo.versions = convertDistRemoteToLocalTarballUrls(
|
||||
info,
|
||||
req,
|
||||
{ protocol: req.protocol, headers: req.headers as any, host: req.hostname },
|
||||
config.url_prefix
|
||||
).versions;
|
||||
if (isVersionValid(info, v)) {
|
||||
|
|
|
@ -343,6 +343,7 @@ class Auth implements IAuth {
|
|||
};
|
||||
|
||||
if (this._isRemoteUserValid(req.remote_user)) {
|
||||
// @ts-ignore
|
||||
return next();
|
||||
}
|
||||
|
||||
|
@ -351,6 +352,7 @@ class Auth implements IAuth {
|
|||
|
||||
const { authorization } = req.headers;
|
||||
if (_.isNil(authorization)) {
|
||||
// @ts-ignore
|
||||
return next();
|
||||
}
|
||||
|
||||
|
@ -458,6 +460,7 @@ class Auth implements IAuth {
|
|||
|
||||
const { authorization } = req.headers;
|
||||
if (_.isNil(authorization)) {
|
||||
// @ts-ignore
|
||||
return next();
|
||||
}
|
||||
|
||||
|
@ -467,6 +470,7 @@ class Auth implements IAuth {
|
|||
|
||||
const token = (authorization || '').replace(`${TOKEN_BEARER} `, '');
|
||||
if (!token) {
|
||||
// @ts-ignore
|
||||
return next();
|
||||
}
|
||||
|
||||
|
@ -483,7 +487,7 @@ class Auth implements IAuth {
|
|||
} else {
|
||||
req.remote_user = createAnonymousRemoteUser();
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
next();
|
||||
};
|
||||
}
|
||||
|
|
|
@ -201,7 +201,7 @@ export function mergeUplinkTimeIntoLocal(cacheManifest: Manifest, remoteManifest
|
|||
return cacheManifest;
|
||||
}
|
||||
|
||||
export function prepareSearchPackage(data: Manifest): any {
|
||||
export function prepareSearchPackage(data: Manifest, time: unknown): any {
|
||||
const latest = pkgUtils.getLatest(data);
|
||||
|
||||
if (latest && data.versions[latest]) {
|
||||
|
@ -217,6 +217,9 @@ export function prepareSearchPackage(data: Manifest): any {
|
|||
readmeFilename: version.readmeFilename || '',
|
||||
homepage: version.homepage,
|
||||
keywords: version.keywords,
|
||||
time: {
|
||||
modified: time,
|
||||
},
|
||||
bugs: version.bugs,
|
||||
license: version.license,
|
||||
versions,
|
||||
|
|
177
yarn.lock
177
yarn.lock
|
@ -2014,15 +2014,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/expect-utils@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "@jest/expect-utils@npm:29.3.1"
|
||||
dependencies:
|
||||
jest-get-type: ^29.2.0
|
||||
checksum: 7f3b853eb1e4299988f66b9aa49c1aacb7b8da1cf5518dca4ccd966e865947eed8f1bde6c8f5207d8400e9af870112a44b57aa83515ad6ea5e4a04a971863adb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/expect-utils@npm:^29.4.1":
|
||||
version: 29.4.1
|
||||
resolution: "@jest/expect-utils@npm:29.4.1"
|
||||
|
@ -2105,15 +2096,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/schemas@npm:^29.0.0":
|
||||
version: 29.0.0
|
||||
resolution: "@jest/schemas@npm:29.0.0"
|
||||
dependencies:
|
||||
"@sinclair/typebox": ^0.24.1
|
||||
checksum: 41355c78f09eb1097e57a3c5d0ca11c9099e235e01ea5fa4e3953562a79a6a9296c1d300f1ba50ca75236048829e056b00685cd2f1ff8285e56fd2ce01249acb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/schemas@npm:^29.4.0":
|
||||
version: 29.4.0
|
||||
resolution: "@jest/schemas@npm:29.4.0"
|
||||
|
@ -2181,17 +2163,16 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@jest/types@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "@jest/types@npm:29.3.1"
|
||||
"@jest/types@npm:^26.6.2":
|
||||
version: 26.6.2
|
||||
resolution: "@jest/types@npm:26.6.2"
|
||||
dependencies:
|
||||
"@jest/schemas": ^29.0.0
|
||||
"@types/istanbul-lib-coverage": ^2.0.0
|
||||
"@types/istanbul-reports": ^3.0.0
|
||||
"@types/node": "*"
|
||||
"@types/yargs": ^17.0.8
|
||||
"@types/yargs": ^15.0.0
|
||||
chalk: ^4.0.0
|
||||
checksum: 6f9faf27507b845ff3839c1adc6dbd038d7046d03d37e84c9fc956f60718711a801a5094c7eeee6b39ccf42c0ab61347fdc0fa49ab493ae5a8efd2fd41228ee8
|
||||
checksum: a0bd3d2f22f26ddb23f41fddf6e6a30bf4fab2ce79ec1cb6ce6fdfaf90a72e00f4c71da91ec61e13db3b10c41de22cf49d07c57ff2b59171d64b29f909c1d8d6
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -2472,13 +2453,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@sinclair/typebox@npm:^0.24.1":
|
||||
version: 0.24.51
|
||||
resolution: "@sinclair/typebox@npm:0.24.51"
|
||||
checksum: fd0d855e748ef767eb19da1a60ed0ab928e91e0f358c1dd198d600762c0015440b15755e96d1176e2a0db7e09c6a64ed487828ee10dd0c3e22f61eb09c478cd0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@sinclair/typebox@npm:^0.25.16":
|
||||
version: 0.25.21
|
||||
resolution: "@sinclair/typebox@npm:0.25.21"
|
||||
|
@ -2715,13 +2689,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/jest@npm:29.2.6":
|
||||
version: 29.2.6
|
||||
resolution: "@types/jest@npm:29.2.6"
|
||||
"@types/jest@npm:26.0.24":
|
||||
version: 26.0.24
|
||||
resolution: "@types/jest@npm:26.0.24"
|
||||
dependencies:
|
||||
expect: ^29.0.0
|
||||
pretty-format: ^29.0.0
|
||||
checksum: 90190ac830334af1470d255853f9621fe657e5030b4d96773fc1f884833cd303c76580b00c1b86dc38a8db94f1c7141d462190437a10af31852b8845a57c48ba
|
||||
jest-diff: ^26.0.0
|
||||
pretty-format: ^26.0.0
|
||||
checksum: ae39675412f08d884926254e9b12bfd2b5a4e4d204c94d3148cb942174a474930d0c60540133c968f22241d4712b7940c96cbc883096eb326a4d5b206fb78bd0
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -2904,6 +2878,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/yargs@npm:^15.0.0":
|
||||
version: 15.0.15
|
||||
resolution: "@types/yargs@npm:15.0.15"
|
||||
dependencies:
|
||||
"@types/yargs-parser": "*"
|
||||
checksum: 3420f6bcc508a895ef91858f8e6de975c710e4498cf6ed293f1174d3f1ad56edb4ab8481219bf6190f64a3d4115fab1d13ab3edc90acd54fba7983144040e446
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@types/yargs@npm:^17.0.8":
|
||||
version: 17.0.20
|
||||
resolution: "@types/yargs@npm:17.0.20"
|
||||
|
@ -3189,10 +3172,10 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@verdaccio/types@npm:11.0.0-6-next.19":
|
||||
version: 11.0.0-6-next.19
|
||||
resolution: "@verdaccio/types@npm:11.0.0-6-next.19"
|
||||
checksum: bf792d43be723b8255214a46add025149fdabb9c2e8a0e9e622ad144888726fd74a822ceb7ddd9922211b028782e61c1b864ca8d1588dc7e65762fa3b4f12e4e
|
||||
"@verdaccio/types@npm:10.7.0":
|
||||
version: 10.7.0
|
||||
resolution: "@verdaccio/types@npm:10.7.0"
|
||||
checksum: 1439a0f6df4c7194375926ee132dcac41a65b0a37d28268a4dc7db2263fe7d6419f690ae7ef109c5fd194b7c5477e75587e6770ffcae6e0ea23c195082a09ceb
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -3368,7 +3351,7 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"ansi-regex@npm:^5.0.1":
|
||||
"ansi-regex@npm:^5.0.0, ansi-regex@npm:^5.0.1":
|
||||
version: 5.0.1
|
||||
resolution: "ansi-regex@npm:5.0.1"
|
||||
checksum: 2aa4bb54caf2d622f1afdad09441695af2a83aa3fe8b8afa581d205e57ed4261c183c4d3877cee25794443fde5876417d859c108078ab788d6af7e4fe52eb66b
|
||||
|
@ -4832,6 +4815,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"diff-sequences@npm:^26.6.2":
|
||||
version: 26.6.2
|
||||
resolution: "diff-sequences@npm:26.6.2"
|
||||
checksum: 79af871776ef149a7ff3345d6b1bf37fe6e81f68632aa5542787851f6f60fba19b0be22fdd1e06046f56ae7382763ccfe94a982c39ee72bd107aef435ecbc0cf
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"diff-sequences@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "diff-sequences@npm:29.3.1"
|
||||
|
@ -5481,19 +5471,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"expect@npm:^29.0.0":
|
||||
version: 29.3.1
|
||||
resolution: "expect@npm:29.3.1"
|
||||
dependencies:
|
||||
"@jest/expect-utils": ^29.3.1
|
||||
jest-get-type: ^29.2.0
|
||||
jest-matcher-utils: ^29.3.1
|
||||
jest-message-util: ^29.3.1
|
||||
jest-util: ^29.3.1
|
||||
checksum: e9588c2a430b558b9a3dc72d4ad05f36b047cb477bc6a7bb9cfeef7614fe7e5edbab424c2c0ce82739ee21ecbbbd24596259528209f84cd72500cc612d910d30
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"expect@npm:^29.4.1":
|
||||
version: 29.4.1
|
||||
resolution: "expect@npm:29.4.1"
|
||||
|
@ -7033,15 +7010,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-diff@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "jest-diff@npm:29.3.1"
|
||||
"jest-diff@npm:^26.0.0":
|
||||
version: 26.6.2
|
||||
resolution: "jest-diff@npm:26.6.2"
|
||||
dependencies:
|
||||
chalk: ^4.0.0
|
||||
diff-sequences: ^29.3.1
|
||||
jest-get-type: ^29.2.0
|
||||
pretty-format: ^29.3.1
|
||||
checksum: ac5c09745f2b1897e6f53216acaf6ed44fc4faed8e8df053ff4ac3db5d2a1d06a17b876e49faaa15c8a7a26f5671bcbed0a93781dcc2835f781c79a716a591a9
|
||||
diff-sequences: ^26.6.2
|
||||
jest-get-type: ^26.3.0
|
||||
pretty-format: ^26.6.2
|
||||
checksum: d00d297f31e1ac0252127089892432caa7a11c69bde29cf3bb6c7a839c8afdb95cf1fd401f9df16a4422745da2e6a5d94b428b30666a2540c38e1c5699915c2d
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -7093,6 +7070,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-get-type@npm:^26.3.0":
|
||||
version: 26.3.0
|
||||
resolution: "jest-get-type@npm:26.3.0"
|
||||
checksum: 1cc6465ae4f5e880be22ba52fd270fa64c21994915f81b41f8f7553a7957dd8e077cc8d03035de9412e2d739f8bad6a032ebb5dab5805692a5fb9e20dd4ea666
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-get-type@npm:^29.2.0":
|
||||
version: 29.2.0
|
||||
resolution: "jest-get-type@npm:29.2.0"
|
||||
|
@ -7145,18 +7129,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-matcher-utils@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "jest-matcher-utils@npm:29.3.1"
|
||||
dependencies:
|
||||
chalk: ^4.0.0
|
||||
jest-diff: ^29.3.1
|
||||
jest-get-type: ^29.2.0
|
||||
pretty-format: ^29.3.1
|
||||
checksum: 311e8d9f1e935216afc7dd8c6acf1fbda67a7415e1afb1bf72757213dfb025c1f2dc5e2c185c08064a35cdc1f2d8e40c57616666774ed1b03e57eb311c20ec77
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-matcher-utils@npm:^29.4.1":
|
||||
version: 29.4.1
|
||||
resolution: "jest-matcher-utils@npm:29.4.1"
|
||||
|
@ -7169,23 +7141,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-message-util@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "jest-message-util@npm:29.3.1"
|
||||
dependencies:
|
||||
"@babel/code-frame": ^7.12.13
|
||||
"@jest/types": ^29.3.1
|
||||
"@types/stack-utils": ^2.0.0
|
||||
chalk: ^4.0.0
|
||||
graceful-fs: ^4.2.9
|
||||
micromatch: ^4.0.4
|
||||
pretty-format: ^29.3.1
|
||||
slash: ^3.0.0
|
||||
stack-utils: ^2.0.3
|
||||
checksum: 15d0a2fca3919eb4570bbf575734780c4b9e22de6aae903c4531b346699f7deba834c6c86fe6e9a83ad17fac0f7935511cf16dce4d71a93a71ebb25f18a6e07b
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-message-util@npm:^29.4.1":
|
||||
version: 29.4.1
|
||||
resolution: "jest-message-util@npm:29.4.1"
|
||||
|
@ -7352,20 +7307,6 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-util@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "jest-util@npm:29.3.1"
|
||||
dependencies:
|
||||
"@jest/types": ^29.3.1
|
||||
"@types/node": "*"
|
||||
chalk: ^4.0.0
|
||||
ci-info: ^3.2.0
|
||||
graceful-fs: ^4.2.9
|
||||
picomatch: ^2.2.3
|
||||
checksum: f67c60f062b94d21cb60e84b3b812d64b7bfa81fe980151de5c17a74eb666042d0134e2e756d099b7606a1fcf1d633824d2e58197d01d76dde1e2dc00dfcd413
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"jest-util@npm:^29.4.1":
|
||||
version: 29.4.1
|
||||
resolution: "jest-util@npm:29.4.1"
|
||||
|
@ -8999,14 +8940,15 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"pretty-format@npm:^29.0.0, pretty-format@npm:^29.3.1":
|
||||
version: 29.3.1
|
||||
resolution: "pretty-format@npm:29.3.1"
|
||||
"pretty-format@npm:^26.0.0, pretty-format@npm:^26.6.2":
|
||||
version: 26.6.2
|
||||
resolution: "pretty-format@npm:26.6.2"
|
||||
dependencies:
|
||||
"@jest/schemas": ^29.0.0
|
||||
ansi-styles: ^5.0.0
|
||||
react-is: ^18.0.0
|
||||
checksum: 9917a0bb859cd7a24a343363f70d5222402c86d10eb45bcc2f77b23a4e67586257390e959061aec22762a782fe6bafb59bf34eb94527bc2e5d211afdb287eb4e
|
||||
"@jest/types": ^26.6.2
|
||||
ansi-regex: ^5.0.0
|
||||
ansi-styles: ^4.0.0
|
||||
react-is: ^17.0.1
|
||||
checksum: e3b808404d7e1519f0df1aa1f25cee0054ab475775c6b2b8c5568ff23194a92d54bf93274139b6f584ca70fd773be4eaa754b0e03f12bb0a8d1426b07f079976
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
|
@ -9186,6 +9128,13 @@ __metadata:
|
|||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-is@npm:^17.0.1":
|
||||
version: 17.0.2
|
||||
resolution: "react-is@npm:17.0.2"
|
||||
checksum: 9d6d111d8990dc98bc5402c1266a808b0459b5d54830bbea24c12d908b536df7883f268a7868cfaedde3dd9d4e0d574db456f84d2e6df9c4526f99bb4b5344d8
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-is@npm:^18.0.0":
|
||||
version: 18.2.0
|
||||
resolution: "react-is@npm:18.2.0"
|
||||
|
@ -10805,7 +10754,7 @@ __metadata:
|
|||
"@types/express-rate-limit": 5.1.3
|
||||
"@types/express-serve-static-core": 4.17.28
|
||||
"@types/http-errors": 2.0.1
|
||||
"@types/jest": 29.2.6
|
||||
"@types/jest": 26.0.24
|
||||
"@types/lodash": 4.14.191
|
||||
"@types/mime": 2.0.3
|
||||
"@types/minimatch": 3.0.5
|
||||
|
@ -10821,7 +10770,7 @@ __metadata:
|
|||
"@verdaccio/local-storage": 10.3.1
|
||||
"@verdaccio/streams": 10.2.0
|
||||
"@verdaccio/tarball": 11.0.0-6-next.24
|
||||
"@verdaccio/types": 11.0.0-6-next.19
|
||||
"@verdaccio/types": 10.7.0
|
||||
"@verdaccio/ui-theme": 6.0.0-6-next.55
|
||||
"@verdaccio/url": 11.0.0-6-next.21
|
||||
"@verdaccio/utils": 6.0.0-6-next.23
|
||||
|
|
Loading…
Add table
Reference in a new issue