@pnpm/audit
Advanced tools
Comparing version 2.1.9 to 2.1.10
@@ -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
12345
+ Added@pnpm/fetch@4.1.2(transitive)
+ Added@pnpm/npm-registry-agent@5.0.1(transitive)
+ Added@tootallnate/once@2.0.0(transitive)
+ Addedhttp-proxy-agent@5.0.0(transitive)
+ Addedhttps-proxy-agent@5.0.1(transitive)
+ Addedsocks-proxy-agent@6.2.1(transitive)
- Removed@pnpm/fetch@4.1.1(transitive)
- Removed@pnpm/npm-registry-agent@5.0.0(transitive)
- Removed@tootallnate/once@1.1.2(transitive)
- Removedagent-base@4.3.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedes6-promise@4.2.8(transitive)
- Removedes6-promisify@5.0.0(transitive)
- Removedhttp-proxy-agent@4.0.1(transitive)
- Removedhttps-proxy-agent@3.0.1(transitive)
- Removedsocks-proxy-agent@5.0.1(transitive)
Updated@pnpm/fetch@4.1.2