@parcel/graph 3.2.1-canary.3185 → 3.2.1-canary.3186
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Graph.js +3 -3
- package/package.json +3 -3
package/lib/Graph.js
CHANGED
@@ -197,7 +197,7 @@ class Graph {
|
|
197
197
|
});
|
198
198
|
}
|
199
199
|
dfsFast(visit, startNodeId) {
|
200
|
-
let traversalStartNode = (0, _nullthrows().default)(startNodeId
|
200
|
+
let traversalStartNode = (0, _nullthrows().default)(startNodeId ?? this.rootNodeId, 'A start node is required to traverse');
|
201
201
|
this._assertHasNodeId(traversalStartNode);
|
202
202
|
let visited;
|
203
203
|
if (!this._visited || this._visited.capacity < this.nodes.length) {
|
@@ -259,7 +259,7 @@ class Graph {
|
|
259
259
|
|
260
260
|
// A post-order implementation of dfsFast
|
261
261
|
postOrderDfsFast(visit, startNodeId) {
|
262
|
-
let traversalStartNode = (0, _nullthrows().default)(startNodeId
|
262
|
+
let traversalStartNode = (0, _nullthrows().default)(startNodeId ?? this.rootNodeId, 'A start node is required to traverse');
|
263
263
|
this._assertHasNodeId(traversalStartNode);
|
264
264
|
let visited;
|
265
265
|
if (!this._visited || this._visited.capacity < this.nodes.length) {
|
@@ -306,7 +306,7 @@ class Graph {
|
|
306
306
|
startNodeId,
|
307
307
|
getChildren
|
308
308
|
}) {
|
309
|
-
let traversalStartNode = (0, _nullthrows().default)(startNodeId
|
309
|
+
let traversalStartNode = (0, _nullthrows().default)(startNodeId ?? this.rootNodeId, 'A start node is required to traverse');
|
310
310
|
this._assertHasNodeId(traversalStartNode);
|
311
311
|
let visited;
|
312
312
|
if (!this._visited || this._visited.capacity < this.nodes.length) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/graph",
|
3
|
-
"version": "3.2.1-canary.
|
3
|
+
"version": "3.2.1-canary.3186+46c2729c0",
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
5
5
|
"license": "MIT",
|
6
6
|
"publishConfig": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
"main": "lib/index.js",
|
18
18
|
"source": "src/index.js",
|
19
19
|
"engines": {
|
20
|
-
"node": ">=
|
20
|
+
"node": ">= 16.0.0"
|
21
21
|
},
|
22
22
|
"dependencies": {
|
23
23
|
"nullthrows": "^1.1.1"
|
24
24
|
},
|
25
|
-
"gitHead": "
|
25
|
+
"gitHead": "46c2729c053e9bdcd8a2962dbba6f78a4c343c7e"
|
26
26
|
}
|