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

@snyk/dep-graph

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@snyk/dep-graph - npm Package Compare versions

Comparing version 1.28.0 to 1.28.1

1

dist/core/builder.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DepGraphBuilder = void 0;
const graphlib = require("../graphlib");

@@ -4,0 +5,0 @@ const dep_graph_1 = require("./dep-graph");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createFromJSON = exports.SUPPORTED_SCHEMA_RANGE = void 0;
const semver = require("semver");

@@ -4,0 +5,0 @@ const graphlib = require("../graphlib");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DepGraphImpl = void 0;
const _isEqual = require("lodash.isequal");

@@ -4,0 +5,0 @@ const graphlib = require("../graphlib");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomError = void 0;
class CustomError extends Error {

@@ -4,0 +5,0 @@ constructor(message) {

3

dist/core/errors/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidationError = void 0;
const validation_error_1 = require("./validation-error");
exports.ValidationError = validation_error_1.ValidationError;
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.ValidationError; } });
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ValidationError = void 0;
const custom_error_1 = require("./custom-error");

@@ -4,0 +5,0 @@ class ValidationError extends custom_error_1.CustomError {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateGraph = void 0;
const graphlib = require("../graphlib");

@@ -4,0 +5,0 @@ const errors_1 = require("./errors");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dfs = void 0;
const each = require("lodash.foreach");

@@ -4,0 +5,0 @@ /*

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isAcyclic = void 0;
const topsort_1 = require("./topsort");

@@ -4,0 +5,0 @@ function isAcyclic(g) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.postorder = void 0;
const dfs_1 = require("./dfs");

@@ -4,0 +5,0 @@ function postorder(g, vs) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CycleException = exports.topsort = void 0;
const each = require("lodash.foreach");

@@ -4,0 +5,0 @@ const size = require("lodash.size");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Graph = void 0;
/* eslint-disable prefer-rest-params */

@@ -4,0 +5,0 @@ /* eslint-disable @typescript-eslint/no-this-alias */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.alg = exports.Graph = void 0;
var graph_1 = require("./graph");
exports.Graph = graph_1.Graph;
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return graph_1.Graph; } });
const is_acyclic_1 = require("./alg/is-acyclic");

@@ -6,0 +7,0 @@ const postorder_1 = require("./alg/postorder");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.legacy = exports.Errors = exports.DepGraphBuilder = exports.createFromJSON = void 0;
var create_from_json_1 = require("./core/create-from-json");
exports.createFromJSON = create_from_json_1.createFromJSON;
Object.defineProperty(exports, "createFromJSON", { enumerable: true, get: function () { return create_from_json_1.createFromJSON; } });
var builder_1 = require("./core/builder");
exports.DepGraphBuilder = builder_1.DepGraphBuilder;
Object.defineProperty(exports, "DepGraphBuilder", { enumerable: true, get: function () { return builder_1.DepGraphBuilder; } });
const Errors = require("./core/errors");

@@ -8,0 +9,0 @@ exports.Errors = Errors;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.partitionCycles = exports.getCycle = void 0;
function getCycle(ancestors, nodeId) {

@@ -4,0 +5,0 @@ if (!ancestors.includes(nodeId)) {

@@ -16,2 +16,6 @@ import * as types from '../core/types';

}
/**
* @deprecated Use {@link DepGraph} instead of DepTree. You can construct a
* graph with {@link DepGraphBuilder}
*/
interface DepTree extends DepTreeDep {

@@ -25,2 +29,8 @@ type?: string;

}
/**
* @deprecated Don't use dep trees as an intermediate step, because they are
* large structures, resulting in high memory usage and high CPU costs from
* serializing / deserializing. Instead, create a graph directly with
* {@link DepGraphBuilder}
*/
declare function depTreeToGraph(depTree: DepTree, pkgManagerName: string): Promise<types.DepGraph>;

@@ -30,2 +40,7 @@ export interface GraphToTreeOptions {

}
/**
* @deprecated Don't use dep trees. You should adapt your code to use graphs,
* and enhance the dep-graph library if there is missing functionality from
* the graph structure
*/
declare function graphToDepTree(depGraphInterface: types.DepGraph, pkgType: string, opts?: GraphToTreeOptions): Promise<DepTree>;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.graphToDepTree = exports.depTreeToGraph = void 0;
const crypto = require("crypto");

@@ -15,2 +16,8 @@ const event_loop_spinner_1 = require("event-loop-spinner");

}
/**
* @deprecated Don't use dep trees as an intermediate step, because they are
* large structures, resulting in high memory usage and high CPU costs from
* serializing / deserializing. Instead, create a graph directly with
* {@link DepGraphBuilder}
*/
async function depTreeToGraph(depTree, pkgManagerName) {

@@ -144,2 +151,7 @@ const rootPkg = {

}
/**
* @deprecated Don't use dep trees. You should adapt your code to use graphs,
* and enhance the dep-graph library if there is missing functionality from
* the graph structure
*/
async function graphToDepTree(depGraphInterface, pkgType, opts = { deduplicateWithinTopLevelDeps: false }) {

@@ -146,0 +158,0 @@ const depGraph = depGraphInterface;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMemoizedDepTree = exports.memoize = void 0;
function memoize(nodeId, memoizationMap, depTree, partitionedCycles) {

@@ -4,0 +5,0 @@ const { cyclesStartWithThisNode, cyclesWithThisNode } = partitionedCycles;

@@ -34,17 +34,17 @@ {

"devDependencies": {
"@types/graphlib": "^2.1.6",
"@types/jest": "^25",
"@types/graphlib": "^2.1.7",
"@types/jest": "^26.0.23",
"@types/node": "^8",
"@types/object-hash": "^1.3.1",
"@types/semver": "^7",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"@types/object-hash": "^2.1.0",
"@types/semver": "^7.3.6",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"benny": "^3.6.15",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.11.0",
"jest": "^26",
"prettier": "^2.0.5",
"ts-jest": "^26",
"ts-node": "^8",
"typescript": "~3.8.3"
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"jest": "^27.0.5",
"prettier": "^2.3.1",
"ts-jest": "^27.0.3",
"ts-node": "^10.0.0",
"typescript": "~4.3.4"
},

@@ -72,3 +72,3 @@ "dependencies": {

},
"version": "1.28.0"
"version": "1.28.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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