@atlaspack/graph
Advanced tools
Comparing version 3.2.1-canary.3425 to 3.2.1-canary.3426
@@ -72,3 +72,3 @@ "use strict"; | ||
} | ||
removeNode(nodeId) { | ||
removeNode(nodeId, removeOrphans = true) { | ||
this._assertHasNodeId(nodeId); | ||
@@ -78,5 +78,5 @@ let contentKey = (0, _nullthrows().default)(this._nodeIdToContentKey.get(nodeId)); | ||
this._nodeIdToContentKey.delete(nodeId); | ||
super.removeNode(nodeId); | ||
super.removeNode(nodeId, removeOrphans); | ||
} | ||
} | ||
exports.default = ContentGraph; |
@@ -95,3 +95,3 @@ "use strict"; | ||
// Removes node and any edges coming from or to that node | ||
removeNode(nodeId) { | ||
removeNode(nodeId, removeOrphans = true) { | ||
if (!this.hasNode(nodeId)) { | ||
@@ -113,3 +113,3 @@ return; | ||
} of this.adjacencyList.getOutboundEdgesByType(nodeId)) { | ||
this._removeEdge(nodeId, to, type); | ||
this._removeEdge(nodeId, to, type, removeOrphans); | ||
} | ||
@@ -116,0 +116,0 @@ this.nodes[nodeId] = null; |
{ | ||
"name": "@atlaspack/graph", | ||
"version": "3.2.1-canary.3425+9f7376c6c", | ||
"version": "3.2.1-canary.3426+9ec24d923", | ||
"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.3425+9f7376c6c", | ||
"@atlaspack/feature-flags": "2.12.1-canary.3426+9ec24d923", | ||
"nullthrows": "^1.1.1" | ||
}, | ||
"gitHead": "9f7376c6cf799896a0789ab66f1cc253f2464991" | ||
"gitHead": "9ec24d923e4361f97bcc64c967c066fbebb7f4b4" | ||
} |
@@ -89,3 +89,3 @@ // @flow strict-local | ||
removeNode(nodeId: NodeId): void { | ||
removeNode(nodeId: NodeId, removeOrphans: boolean = true): void { | ||
this._assertHasNodeId(nodeId); | ||
@@ -95,4 +95,4 @@ let contentKey = nullthrows(this._nodeIdToContentKey.get(nodeId)); | ||
this._nodeIdToContentKey.delete(nodeId); | ||
super.removeNode(nodeId); | ||
super.removeNode(nodeId, removeOrphans); | ||
} | ||
} |
@@ -189,3 +189,3 @@ // @flow strict-local | ||
// Removes node and any edges coming from or to that node | ||
removeNode(nodeId: NodeId) { | ||
removeNode(nodeId: NodeId, removeOrphans: boolean = true) { | ||
if (!this.hasNode(nodeId)) { | ||
@@ -207,3 +207,3 @@ return; | ||
for (let {type, to} of this.adjacencyList.getOutboundEdgesByType(nodeId)) { | ||
this._removeEdge(nodeId, to, type); | ||
this._removeEdge(nodeId, to, type, removeOrphans); | ||
} | ||
@@ -210,0 +210,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
191277