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

@pnpm/audit

Package Overview
Dependencies
Maintainers
2
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/audit - npm Package Compare versions

Comparing version 2.1.9 to 2.1.10

4

lib/index.js

@@ -21,6 +21,6 @@ "use strict";

async function audit(lockfile, opts) {
const auditTree = lockfileToAuditTree_1.default(lockfile, { include: opts.include });
const auditTree = (0, lockfileToAuditTree_1.default)(lockfile, { include: opts.include });
const registry = opts.registry.endsWith('/') ? opts.registry : `${opts.registry}/`;
const auditUrl = `${registry}-/npm/v1/security/audits`;
const res = await fetch_1.default(auditUrl, {
const res = await (0, fetch_1.default)(auditUrl, {
body: JSON.stringify(auditTree),

@@ -27,0 +27,0 @@ headers: { 'Content-Type': 'application/json' },

@@ -6,3 +6,3 @@ "use strict";

function lockfileToAuditTree(lockfile, opts) {
const importerWalkers = lockfile_walker_1.lockfileWalkerGroupImporterSteps(lockfile, Object.keys(lockfile.importers), { include: opts === null || opts === void 0 ? void 0 : opts.include });
const importerWalkers = (0, lockfile_walker_1.lockfileWalkerGroupImporterSteps)(lockfile, Object.keys(lockfile.importers), { include: opts === null || opts === void 0 ? void 0 : opts.include });
const dependencies = {};

@@ -37,3 +37,3 @@ importerWalkers.forEach((importerWalker) => {

for (const { depPath, pkgSnapshot, next } of step.dependencies) {
const { name, version } = lockfile_utils_1.nameVerFromPkgSnapshot(depPath, pkgSnapshot);
const { name, version } = (0, lockfile_utils_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
const subdeps = lockfileToAuditNode(next());

@@ -40,0 +40,0 @@ const dep = {

{
"name": "@pnpm/audit",
"version": "2.1.9",
"version": "2.1.10",
"description": "Audit a lockfile",

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

"keywords": [
"pnpm6",
"pnpm",

@@ -32,3 +33,3 @@ "audit"

"@pnpm/error": "2.0.0",
"@pnpm/fetch": "4.1.1",
"@pnpm/fetch": "4.1.2",
"@pnpm/lockfile-types": "3.0.0",

@@ -35,0 +36,0 @@ "@pnpm/lockfile-utils": "3.0.8",

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