Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/reviewing.dependencies-hierarchy

Package Overview
Dependencies
Maintainers
0
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/reviewing.dependencies-hierarchy - npm Package Compare versions

Comparing version 3.1.7 to 3.1.8

8

lib/buildDependenciesHierarchy.js

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

const path_1 = __importDefault(require("path"));
const lockfile_file_1 = require("@pnpm/lockfile-file");
const lockfile_fs_1 = require("@pnpm/lockfile.fs");
const lockfile_detect_dep_types_1 = require("@pnpm/lockfile.detect-dep-types");

@@ -32,4 +32,4 @@ const modules_yaml_1 = require("@pnpm/modules-yaml");

});
const currentLockfile = (modules?.virtualStoreDir && await (0, lockfile_file_1.readCurrentLockfile)(modules.virtualStoreDir, { ignoreIncompatible: false })) ?? null;
const wantedLockfile = await (0, lockfile_file_1.readWantedLockfile)(maybeOpts.lockfileDir, { ignoreIncompatible: false });
const currentLockfile = (modules?.virtualStoreDir && await (0, lockfile_fs_1.readCurrentLockfile)(modules.virtualStoreDir, { ignoreIncompatible: false })) ?? null;
const wantedLockfile = await (0, lockfile_fs_1.readWantedLockfile)(maybeOpts.lockfileDir, { ignoreIncompatible: false });
if (projectPaths == null) {

@@ -74,3 +74,3 @@ projectPaths = Object.keys(wantedLockfile?.importers ?? {})

async function dependenciesHierarchyForPackage(projectPath, currentLockfile, wantedLockfile, opts) {
const importerId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, projectPath);
const importerId = (0, lockfile_fs_1.getLockfileImporterId)(opts.lockfileDir, projectPath);
if (!currentLockfile.importers[importerId])

@@ -77,0 +77,0 @@ return {};

@@ -1,2 +0,2 @@

import { type PackageSnapshots } from '@pnpm/lockfile-file';
import { type PackageSnapshots } from '@pnpm/lockfile.fs';
import { type DepTypes } from '@pnpm/lockfile.detect-dep-types';

@@ -3,0 +3,0 @@ import { type Registries } from '@pnpm/types';

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

const path_1 = __importDefault(require("path"));
const lockfile_utils_1 = require("@pnpm/lockfile-utils");
const lockfile_utils_1 = require("@pnpm/lockfile.utils");
const lockfile_detect_dep_types_1 = require("@pnpm/lockfile.detect-dep-types");

@@ -11,0 +11,0 @@ const dependency_path_1 = require("@pnpm/dependency-path");

@@ -1,2 +0,2 @@

import { type PackageSnapshots, type ProjectSnapshot } from '@pnpm/lockfile-file';
import { type PackageSnapshots, type ProjectSnapshot } from '@pnpm/lockfile.fs';
import { type DepTypes } from '@pnpm/lockfile.detect-dep-types';

@@ -3,0 +3,0 @@ import { type Registries } from '@pnpm/types';

@@ -1,2 +0,2 @@

import { type ProjectSnapshot } from '@pnpm/lockfile-file';
import { type ProjectSnapshot } from '@pnpm/lockfile.fs';
import { type TreeNodeId } from './TreeNodeId';

@@ -3,0 +3,0 @@ export interface getTreeNodeChildIdOpts {

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

const path_1 = __importDefault(require("path"));
const lockfile_file_1 = require("@pnpm/lockfile-file");
const lockfile_fs_1 = require("@pnpm/lockfile.fs");
function getTreeNodeChildId(opts) {

@@ -27,3 +27,3 @@ const depPath = (0, dependency_path_1.refToRelative)(opts.dep.ref, opts.dep.alias);

const absoluteLinkedPath = path_1.default.join(opts.lockfileDir, opts.parentId.importerId, linkValue);
const childImporterId = (0, lockfile_file_1.getLockfileImporterId)(opts.lockfileDir, absoluteLinkedPath);
const childImporterId = (0, lockfile_fs_1.getLockfileImporterId)(opts.lockfileDir, absoluteLinkedPath);
// A 'link:' reference may refer to a package outside of the pnpm workspace.

@@ -30,0 +30,0 @@ // Return undefined in that case since it would be difficult to list/traverse

{
"name": "@pnpm/reviewing.dependencies-hierarchy",
"version": "3.1.7",
"version": "3.1.8",
"description": "Creates a dependencies hierarchy for a symlinked `node_modules`",

@@ -33,12 +33,12 @@ "main": "lib/index.js",

"semver": "^7.6.2",
"@pnpm/lockfile.fs": "1.0.0",
"@pnpm/lockfile.utils": "1.0.0",
"@pnpm/dependency-path": "5.1.3",
"@pnpm/matcher": "6.0.0",
"@pnpm/lockfile-file": "9.1.3",
"@pnpm/lockfile.detect-dep-types": "2.0.4",
"@pnpm/lockfile.detect-dep-types": "2.0.5",
"@pnpm/modules-yaml": "13.1.4",
"@pnpm/lockfile-utils": "11.0.4",
"@pnpm/normalize-registries": "6.0.4",
"@pnpm/read-modules-dir": "7.0.0",
"@pnpm/read-package-json": "9.0.5",
"@pnpm/normalize-registries": "6.0.4",
"@pnpm/types": "11.1.0"
"@pnpm/types": "11.1.0",
"@pnpm/read-package-json": "9.0.5"
},

@@ -48,5 +48,5 @@ "devDependencies": {

"@types/semver": "7.5.3",
"@pnpm/reviewing.dependencies-hierarchy": "3.1.7",
"@pnpm/constants": "8.0.0",
"@pnpm/test-fixtures": "0.1.28"
"@pnpm/reviewing.dependencies-hierarchy": "3.1.8",
"@pnpm/test-fixtures": "0.1.29"
},

@@ -53,0 +53,0 @@ "funding": "https://opencollective.com/pnpm",

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