@atlaspack/graph
Advanced tools
Comparing version 3.2.1-canary.3522 to 3.2.1-canary.3527
@@ -34,3 +34,6 @@ "use strict"; | ||
let adjacencyList = opts === null || opts === void 0 ? void 0 : opts.adjacencyList; | ||
this.adjacencyList = adjacencyList ? _AdjacencyList.default.deserialize(adjacencyList) : new _AdjacencyList.default(); | ||
let initialCapacity = opts === null || opts === void 0 ? void 0 : opts.initialCapacity; | ||
this.adjacencyList = adjacencyList ? _AdjacencyList.default.deserialize(adjacencyList) : new _AdjacencyList.default(typeof initialCapacity === 'number' ? { | ||
initialCapacity | ||
} : undefined); | ||
} | ||
@@ -37,0 +40,0 @@ setRootNodeId(id) { |
{ | ||
"name": "@atlaspack/graph", | ||
"version": "3.2.1-canary.3522+56e3e234a", | ||
"version": "3.2.1-canary.3527+3766d627c", | ||
"description": "Blazing fast, zero configuration web application bundler", | ||
@@ -19,6 +19,6 @@ "license": "(MIT OR Apache-2.0)", | ||
"dependencies": { | ||
"@atlaspack/feature-flags": "2.12.1-canary.3522+56e3e234a", | ||
"@atlaspack/feature-flags": "2.12.1-canary.3527+3766d627c", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "56e3e234a88ec4681a542477d38e3a7e1f300844" | ||
"gitHead": "3766d627cee17159b930f3117730d214c4774152" | ||
} |
@@ -20,2 +20,3 @@ // @flow strict-local | ||
rootNodeId?: ?NodeId, | ||
initialCapacity?: number, | ||
|}; | ||
@@ -88,5 +89,8 @@ | ||
let adjacencyList = opts?.adjacencyList; | ||
let initialCapacity = opts?.initialCapacity; | ||
this.adjacencyList = adjacencyList | ||
? AdjacencyList.deserialize(adjacencyList) | ||
: new AdjacencyList<TEdgeType>(); | ||
: new AdjacencyList<TEdgeType>( | ||
typeof initialCapacity === 'number' ? {initialCapacity} : undefined, | ||
); | ||
} | ||
@@ -93,0 +97,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
191546
5349