@vltpkg/graph 1.0.0-rc.25 → 1.0.0-rc.26

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.
Files changed (2) hide show
  1. package/dist/graph.js +12 -0
  2. package/package.json +24 -23
package/dist/graph.js CHANGED
@@ -310,6 +310,18 @@ export class Graph {
310
310
  toFoundNode.detached = false;
311
311
  toFoundNode.dev &&= flags.dev;
312
312
  toFoundNode.optional &&= flags.optional;
313
+ // Hydrate manifest and integrity on existing nodes (e.g. loaded
314
+ // from a lockfile without manifest data). Without this, nodes
315
+ // that already have `resolved` set from the lockfile will never
316
+ // get their integrity populated because `setResolved()` is
317
+ // skipped when `resolved` is already present.
318
+ if (manifest) {
319
+ if (!toFoundNode.manifest) {
320
+ toFoundNode.manifest = manifest;
321
+ this.manifests.set(toFoundNode.id, manifest);
322
+ }
323
+ toFoundNode.integrity ??= manifest.dist?.integrity;
324
+ }
313
325
  return toFoundNode;
314
326
  }
315
327
  // creates a new node and edges to its parent
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/graph",
3
3
  "description": "A library that helps understanding & expressing what happens on an install",
4
- "version": "1.0.0-rc.25",
4
+ "version": "1.0.0-rc.26",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -9,36 +9,37 @@
9
9
  },
10
10
  "author": {
11
11
  "name": "vlt technology inc.",
12
- "email": "support@vlt.sh"
12
+ "email": "support@vlt.sh",
13
+ "url": "http://vlt.sh"
13
14
  },
14
15
  "dependencies": {
15
- "@vltpkg/cmd-shim": "1.0.0-rc.25",
16
- "@vltpkg/dep-id": "1.0.0-rc.25",
17
- "@vltpkg/dss-breadcrumb": "1.0.0-rc.25",
18
- "@vltpkg/error-cause": "1.0.0-rc.25",
19
- "@vltpkg/fast-split": "1.0.0-rc.25",
20
- "@vltpkg/graph-run": "1.0.0-rc.25",
21
- "@vltpkg/init": "1.0.0-rc.25",
22
- "@vltpkg/output": "1.0.0-rc.25",
23
- "@vltpkg/package-info": "1.0.0-rc.25",
24
- "@vltpkg/package-json": "1.0.0-rc.25",
25
- "@vltpkg/pick-manifest": "1.0.0-rc.25",
26
- "@vltpkg/query": "1.0.0-rc.25",
27
- "@vltpkg/rollback-remove": "1.0.0-rc.25",
28
- "@vltpkg/run": "1.0.0-rc.25",
29
- "@vltpkg/satisfies": "1.0.0-rc.25",
30
- "@vltpkg/security-archive": "1.0.0-rc.25",
31
- "@vltpkg/spec": "1.0.0-rc.25",
32
- "@vltpkg/types": "1.0.0-rc.25",
33
- "@vltpkg/vlt-json": "1.0.0-rc.25",
34
- "@vltpkg/workspaces": "1.0.0-rc.25",
16
+ "@vltpkg/cmd-shim": "1.0.0-rc.26",
17
+ "@vltpkg/dep-id": "1.0.0-rc.26",
18
+ "@vltpkg/dss-breadcrumb": "1.0.0-rc.26",
19
+ "@vltpkg/error-cause": "1.0.0-rc.26",
20
+ "@vltpkg/fast-split": "1.0.0-rc.26",
21
+ "@vltpkg/graph-run": "1.0.0-rc.26",
22
+ "@vltpkg/init": "1.0.0-rc.26",
23
+ "@vltpkg/output": "1.0.0-rc.26",
24
+ "@vltpkg/package-info": "1.0.0-rc.26",
25
+ "@vltpkg/package-json": "1.0.0-rc.26",
26
+ "@vltpkg/pick-manifest": "1.0.0-rc.26",
27
+ "@vltpkg/query": "1.0.0-rc.26",
28
+ "@vltpkg/rollback-remove": "1.0.0-rc.26",
29
+ "@vltpkg/run": "1.0.0-rc.26",
30
+ "@vltpkg/satisfies": "1.0.0-rc.26",
31
+ "@vltpkg/security-archive": "1.0.0-rc.26",
32
+ "@vltpkg/spec": "1.0.0-rc.26",
33
+ "@vltpkg/types": "1.0.0-rc.26",
34
+ "@vltpkg/vlt-json": "1.0.0-rc.26",
35
+ "@vltpkg/workspaces": "1.0.0-rc.26",
35
36
  "path-scurry": "^2.0.1",
36
37
  "promise-call-limit": "^3.0.2"
37
38
  },
38
39
  "devDependencies": {
39
40
  "@eslint/js": "^9.39.1",
40
41
  "@types/node": "^22.19.2",
41
- "@vltpkg/vlt-json": "1.0.0-rc.25",
42
+ "@vltpkg/vlt-json": "1.0.0-rc.26",
42
43
  "eslint": "^9.39.1",
43
44
  "prettier": "^3.7.4",
44
45
  "tap": "^21.5.0",