New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/npm-resolver

Package Overview
Dependencies
Maintainers
2
Versions
211
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/npm-resolver - npm Package Compare versions

Comparing version 0.3.7 to 0.3.9

1

lib/index.js

@@ -64,2 +64,3 @@ "use strict";

auth,
dryRun: opts.dryRun === true,
offline: ctx.offline,

@@ -66,0 +67,0 @@ registry: opts.registry,

@@ -25,2 +25,3 @@ import { PackageManifest } from '@pnpm/types';

registry: string;
dryRun: boolean;
}): Promise<PackageMeta>;

8

lib/loadPackageMeta.js

@@ -55,11 +55,13 @@ "use strict";

metaCache.set(spec.name, meta);
limit(() => saveMeta(pkgMirror, meta));
if (!opts.dryRun) {
limit(() => saveMeta(pkgMirror, meta));
}
return meta;
}
catch (err) {
const meta = yield loadMeta(opts.storePath);
const meta = yield loadMeta(pkgMirror); // TODO: add test for this usecase
if (!meta)
throw err;
logger_1.default.error(err);
logger_1.default.info(`Using cached meta from ${opts.storePath}`);
logger_1.default.info(`Using cached meta from ${pkgMirror}`);
return meta;

@@ -66,0 +68,0 @@ }

{
"name": "@pnpm/npm-resolver",
"version": "0.3.7",
"version": "0.3.9",
"description": "Resolver for npm-hosted packages",

@@ -68,2 +68,3 @@ "main": "lib/index.js",

"package-preview": "^1.0.1",
"path-exists": "^3.0.0",
"pnpm-registry-mock": "^1.18.0",

@@ -70,0 +71,0 @@ "rimraf": "^2.6.2",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc