mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix(deps): update dependency validator to v13.11.0 (#3967)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
parent
63f8236bbe
commit
f61cfda1c3
4 changed files with 23 additions and 71 deletions
92
.pnp.cjs
generated
92
.pnp.cjs
generated
|
@ -135,7 +135,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["supertest", "npm:6.3.3"],\
|
||||
["ts-node", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:10.9.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["validator", "npm:13.9.0"],\
|
||||
["validator", "npm:13.11.0"],\
|
||||
["verdaccio-audit", "npm:11.0.0-6-next.37"],\
|
||||
["verdaccio-auth-memory", "npm:10.2.2"],\
|
||||
["verdaccio-htpasswd", "npm:11.0.0-6-next.44"],\
|
||||
|
@ -14620,6 +14620,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
}]\
|
||||
]],\
|
||||
["validator", [\
|
||||
["npm:13.11.0", {\
|
||||
"packageLocation": "./.yarn/cache/validator-npm-13.11.0-f0143e2784-d1e0c27022.zip/node_modules/validator/",\
|
||||
"packageDependencies": [\
|
||||
["validator", "npm:13.11.0"]\
|
||||
],\
|
||||
"linkType": "HARD"\
|
||||
}],\
|
||||
["npm:13.9.0", {\
|
||||
"packageLocation": "./.yarn/cache/validator-npm-13.9.0-54b07e9e81-e2c936f041.zip/node_modules/validator/",\
|
||||
"packageDependencies": [\
|
||||
|
@ -14749,7 +14756,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||
["supertest", "npm:6.3.3"],\
|
||||
["ts-node", "virtual:7f7b3df50ee4b7b1719ad19fad11505dc2788f3227a7e5cc9ca19f71d8cb309c9d33b532ea2b2b60ab65abf6cc12153df4643c5e6e17d01ea0ae0492723bb4b4#npm:10.9.1"],\
|
||||
["typescript", "patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=289587"],\
|
||||
["validator", "npm:13.9.0"],\
|
||||
["validator", "npm:13.11.0"],\
|
||||
["verdaccio-audit", "npm:11.0.0-6-next.37"],\
|
||||
["verdaccio-auth-memory", "npm:10.2.2"],\
|
||||
["verdaccio-htpasswd", "npm:11.0.0-6-next.44"],\
|
||||
|
@ -23764,7 +23771,6 @@ function reportRequiredFilesToWatchMode(files) {
|
|||
}
|
||||
|
||||
function applyPatch(pnpapi, opts) {
|
||||
const defaultCache = {};
|
||||
let enableNativeHooks = true;
|
||||
process.versions.pnp = String(pnpapi.VERSIONS.std);
|
||||
const moduleExports = require$$0__default.default;
|
||||
|
@ -23784,62 +23790,13 @@ function applyPatch(pnpapi, opts) {
|
|||
}
|
||||
const originalModuleLoad = require$$0.Module._load;
|
||||
require$$0.Module._load = function(request, parent, isMain) {
|
||||
if (!enableNativeHooks)
|
||||
return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
|
||||
if (isBuiltinModule(request)) {
|
||||
try {
|
||||
enableNativeHooks = false;
|
||||
return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
|
||||
} finally {
|
||||
enableNativeHooks = true;
|
||||
if (request === `pnpapi`) {
|
||||
const parentApiPath = opts.manager.getApiPathFromParent(parent);
|
||||
if (parentApiPath) {
|
||||
return opts.manager.getApiEntry(parentApiPath, true).instance;
|
||||
}
|
||||
}
|
||||
const parentApiPath = opts.manager.getApiPathFromParent(parent);
|
||||
const parentApi = parentApiPath !== null ? opts.manager.getApiEntry(parentApiPath, true).instance : null;
|
||||
if (parentApi === null)
|
||||
return originalModuleLoad(request, parent, isMain);
|
||||
if (request === `pnpapi`)
|
||||
return parentApi;
|
||||
const modulePath = require$$0.Module._resolveFilename(request, parent, isMain);
|
||||
const isOwnedByRuntime = parentApi !== null ? parentApi.findPackageLocator(modulePath) !== null : false;
|
||||
const moduleApiPath = isOwnedByRuntime ? parentApiPath : opts.manager.findApiPathFor(npath.dirname(modulePath));
|
||||
const entry = moduleApiPath !== null ? opts.manager.getApiEntry(moduleApiPath) : { instance: null, cache: defaultCache };
|
||||
const cacheEntry = entry.cache[modulePath];
|
||||
if (cacheEntry) {
|
||||
if (cacheEntry.loaded === false && cacheEntry.isLoading !== true) {
|
||||
try {
|
||||
cacheEntry.isLoading = true;
|
||||
if (isMain) {
|
||||
process.mainModule = cacheEntry;
|
||||
cacheEntry.id = `.`;
|
||||
}
|
||||
cacheEntry.load(modulePath);
|
||||
} finally {
|
||||
cacheEntry.isLoading = false;
|
||||
}
|
||||
}
|
||||
return cacheEntry.exports;
|
||||
}
|
||||
const module = new require$$0.Module(modulePath, parent != null ? parent : void 0);
|
||||
module.pnpApiPath = moduleApiPath;
|
||||
reportRequiredFilesToWatchMode([modulePath]);
|
||||
entry.cache[modulePath] = module;
|
||||
if (isMain) {
|
||||
process.mainModule = module;
|
||||
module.id = `.`;
|
||||
}
|
||||
let hasThrown = true;
|
||||
try {
|
||||
module.isLoading = true;
|
||||
module.load(modulePath);
|
||||
hasThrown = false;
|
||||
} finally {
|
||||
module.isLoading = false;
|
||||
if (hasThrown) {
|
||||
delete require$$0.Module._cache[modulePath];
|
||||
}
|
||||
}
|
||||
return module.exports;
|
||||
return originalModuleLoad.call(require$$0.Module, request, parent, isMain);
|
||||
};
|
||||
function getIssuerSpecsFromPaths(paths) {
|
||||
return paths.map((path) => ({
|
||||
|
@ -23907,7 +23864,7 @@ function applyPatch(pnpapi, opts) {
|
|||
const parentDirectory = (parent == null ? void 0 : parent.filename) != null ? npath.dirname(parent.filename) : null;
|
||||
const absoluteRequest = npath.isAbsolute(request) ? request : parentDirectory !== null ? npath.resolve(parentDirectory, request) : null;
|
||||
if (absoluteRequest !== null) {
|
||||
const apiPath = parentDirectory === npath.dirname(absoluteRequest) && (parent == null ? void 0 : parent.pnpApiPath) ? parent.pnpApiPath : opts.manager.findApiPathFor(absoluteRequest);
|
||||
const apiPath = parent && parentDirectory === npath.dirname(absoluteRequest) ? opts.manager.getApiPathFromParent(parent) : opts.manager.findApiPathFor(absoluteRequest);
|
||||
if (apiPath !== null) {
|
||||
issuerSpecs.unshift({
|
||||
apiPath,
|
||||
|
@ -25628,7 +25585,6 @@ function makeManager(pnpapi, opts) {
|
|||
const initialApiStats = opts.fakeFs.statSync(npath.toPortablePath(initialApiPath));
|
||||
const apiMetadata = /* @__PURE__ */ new Map([
|
||||
[initialApiPath, {
|
||||
cache: require$$0.Module._cache,
|
||||
instance: pnpapi,
|
||||
stats: initialApiStats,
|
||||
lastRefreshCheck: Date.now()
|
||||
|
@ -25660,7 +25616,6 @@ function makeManager(pnpapi, opts) {
|
|||
}
|
||||
} else {
|
||||
apiMetadata.set(pnpApiPath, apiEntry = {
|
||||
cache: {},
|
||||
instance: loadApiInstance(pnpApiPath),
|
||||
stats: opts.fakeFs.statSync(pnpApiPath),
|
||||
lastRefreshCheck: Date.now()
|
||||
|
@ -25730,19 +25685,16 @@ ${controlSegment}
|
|||
} while (curr !== PortablePath.root);
|
||||
return addToCacheAndReturn(start, curr, null);
|
||||
}
|
||||
const moduleToApiPathCache = /* @__PURE__ */ new WeakMap();
|
||||
function getApiPathFromParent(parent) {
|
||||
if (parent == null)
|
||||
return initialApiPath;
|
||||
if (typeof parent.pnpApiPath === `undefined`) {
|
||||
if (parent.filename !== null) {
|
||||
return parent.pnpApiPath = findApiPathFor(parent.filename);
|
||||
} else {
|
||||
return initialApiPath;
|
||||
}
|
||||
}
|
||||
if (parent.pnpApiPath !== null)
|
||||
return parent.pnpApiPath;
|
||||
return null;
|
||||
let apiPath = moduleToApiPathCache.get(parent);
|
||||
if (typeof apiPath !== `undefined`)
|
||||
return apiPath;
|
||||
apiPath = parent.filename ? findApiPathFor(parent.filename) : null;
|
||||
moduleToApiPathCache.set(parent, apiPath);
|
||||
return apiPath;
|
||||
}
|
||||
return {
|
||||
getApiPathFromParent,
|
||||
|
|
BIN
.yarn/cache/validator-npm-13.11.0-f0143e2784-d1e0c27022.zip
vendored
Normal file
BIN
.yarn/cache/validator-npm-13.11.0-f0143e2784-d1e0c27022.zip
vendored
Normal file
Binary file not shown.
|
@ -54,7 +54,7 @@
|
|||
"pkginfo": "0.4.1",
|
||||
"request": "2.88.2",
|
||||
"semver": "7.5.4",
|
||||
"validator": "13.9.0",
|
||||
"validator": "13.11.0",
|
||||
"verdaccio-audit": "11.0.0-6-next.37",
|
||||
"verdaccio-htpasswd": "11.0.0-6-next.44"
|
||||
},
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue