@parcel/graph 3.2.1-dev.3171 → 3.2.1-dev.3238
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/ContentGraph.js +1 -1
- package/package.json +2 -2
- package/src/ContentGraph.js +3 -2
- package/src/Graph.js +1 -1
- package/src/types.js +1 -1
package/lib/ContentGraph.js
CHANGED
@@ -33,12 +33,12 @@ class ContentGraph extends _Graph.default {
|
|
33
33
|
|
34
34
|
// $FlowFixMe[prop-missing]
|
35
35
|
static deserialize(opts) {
|
36
|
+
// $FlowFixMe
|
36
37
|
return new ContentGraph(opts);
|
37
38
|
}
|
38
39
|
|
39
40
|
// $FlowFixMe[prop-missing]
|
40
41
|
serialize() {
|
41
|
-
// $FlowFixMe[prop-missing]
|
42
42
|
return {
|
43
43
|
...super.serialize(),
|
44
44
|
_contentKeyToNodeId: this._contentKeyToNodeId,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@parcel/graph",
|
3
|
-
"version": "3.2.1-dev.
|
3
|
+
"version": "3.2.1-dev.3238+7f6b4dbbc",
|
4
4
|
"description": "Blazing fast, zero configuration web application bundler",
|
5
5
|
"license": "MIT",
|
6
6
|
"publishConfig": {
|
@@ -22,5 +22,5 @@
|
|
22
22
|
"dependencies": {
|
23
23
|
"nullthrows": "^1.1.1"
|
24
24
|
},
|
25
|
-
"gitHead": "
|
25
|
+
"gitHead": "7f6b4dbbc56a203e0fce8794856c03598c4f6708"
|
26
26
|
}
|
package/src/ContentGraph.js
CHANGED
@@ -12,6 +12,7 @@ export type ContentGraphOpts<TNode, TEdgeType: number = 1> = {|
|
|
12
12
|
export type SerializedContentGraph<TNode, TEdgeType: number = 1> = {|
|
13
13
|
...SerializedGraph<TNode, TEdgeType>,
|
14
14
|
_contentKeyToNodeId: Map<ContentKey, NodeId>,
|
15
|
+
_nodeIdToContentKey: Map<NodeId, ContentKey>,
|
15
16
|
|};
|
16
17
|
|
17
18
|
export default class ContentGraph<TNode, TEdgeType: number = 1> extends Graph<
|
@@ -36,14 +37,14 @@ export default class ContentGraph<TNode, TEdgeType: number = 1> extends Graph<
|
|
36
37
|
|
37
38
|
// $FlowFixMe[prop-missing]
|
38
39
|
static deserialize(
|
39
|
-
opts:
|
40
|
+
opts: SerializedContentGraph<TNode, TEdgeType>,
|
40
41
|
): ContentGraph<TNode, TEdgeType> {
|
42
|
+
// $FlowFixMe
|
41
43
|
return new ContentGraph(opts);
|
42
44
|
}
|
43
45
|
|
44
46
|
// $FlowFixMe[prop-missing]
|
45
47
|
serialize(): SerializedContentGraph<TNode, TEdgeType> {
|
46
|
-
// $FlowFixMe[prop-missing]
|
47
48
|
return {
|
48
49
|
...super.serialize(),
|
49
50
|
_contentKeyToNodeId: this._contentKeyToNodeId,
|
package/src/Graph.js
CHANGED