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

pkgs-graph

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkgs-graph - npm Package Compare versions

Comparing version 7.0.2 to 8.0.0

2

lib/index.d.ts

@@ -22,3 +22,3 @@ export interface Manifest {

}
export default function <T>(pkgs: Array<Package & T>, opts?: {
export declare function createPkgGraph<T>(pkgs: Array<Package & T>, opts?: {
ignoreDevDeps?: boolean;

@@ -25,0 +25,0 @@ linkWorkspacePackages?: boolean;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.createPkgGraph = void 0;
const path_1 = __importDefault(require("path"));
const npm_package_arg_1 = __importDefault(require("@pnpm/npm-package-arg"));
const resolve_workspace_range_1 = __importDefault(require("@pnpm/resolve-workspace-range"));
function default_1(pkgs, opts) {
const resolve_workspace_range_1 = require("@pnpm/resolve-workspace-range");
function createPkgGraph(pkgs, opts) {
const pkgMap = createPkgMap(pkgs);

@@ -72,3 +73,3 @@ const unmatched = [];

}
const matched = (0, resolve_workspace_range_1.default)(rawSpec, versions);
const matched = (0, resolve_workspace_range_1.resolveWorkspaceRange)(rawSpec, versions);
if (!matched) {

@@ -84,3 +85,3 @@ unmatched.push({ pkgName: depName, range: rawSpec });

}
exports.default = default_1;
exports.createPkgGraph = createPkgGraph;
function createPkgMap(pkgs) {

@@ -87,0 +88,0 @@ const pkgMap = {};

{
"name": "pkgs-graph",
"version": "7.0.2",
"version": "8.0.0",
"description": "Create a graph from an array of packages",

@@ -21,9 +21,9 @@ "main": "lib/index.js",

"devDependencies": {
"@types/ramda": "0.28.14",
"@types/ramda": "0.28.15",
"better-path-resolve": "1.0.0",
"pkgs-graph": "7.0.2"
"pkgs-graph": "8.0.0"
},
"dependencies": {
"@pnpm/npm-package-arg": "^1.0.0",
"@pnpm/resolve-workspace-range": "3.0.0",
"@pnpm/resolve-workspace-range": "4.0.0",
"ramda": "npm:@pnpm/ramda@0.28.1"

@@ -30,0 +30,0 @@ },

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