@vltpkg/cli-sdk 1.0.3 → 1.0.4

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.
@@ -1,9 +1,9 @@
1
1
  import * as dotProp from '@vltpkg/dot-prop';
2
2
  import { error } from '@vltpkg/error-cause';
3
+ import { getId } from '@vltpkg/dep-id';
3
4
  import { PackageInfoClient } from '@vltpkg/package-info';
4
5
  import { SecurityArchive } from '@vltpkg/security-archive';
5
6
  import { Spec } from '@vltpkg/spec';
6
- import { joinDepIDTuple } from '@vltpkg/dep-id';
7
7
  import { commandUsage } from "../config/usage.js";
8
8
  export const needsRegistry = true;
9
9
  export const usage = () => commandUsage({
@@ -231,8 +231,8 @@ export const views = {
231
231
  * Create a minimal NodeLike for SecurityArchive lookup.
232
232
  * Only the fields used by SecurityArchive.start() are needed.
233
233
  */
234
- const createFakeNode = (name, version) => ({
235
- id: joinDepIDTuple(['registry', '', `${name}@${version}`]),
234
+ const createFakeNode = (spec, name, version, options) => ({
235
+ id: getId(spec, { name, version }),
236
236
  name,
237
237
  version,
238
238
  confused: false,
@@ -245,7 +245,7 @@ const createFakeNode = (name, version) => ({
245
245
  dev: false,
246
246
  optional: false,
247
247
  graph: {},
248
- options: {},
248
+ options,
249
249
  /* c8 ignore next 5 - stub methods for NodeLike interface */
250
250
  toJSON: () => ({}),
251
251
  toString: () => `${name}@${version}`,
@@ -311,7 +311,7 @@ export const command = async (conf) => {
311
311
  const version = manifest.version;
312
312
  if (name && version) {
313
313
  try {
314
- const node = createFakeNode(name, version);
314
+ const node = createFakeNode(spec, name, version, conf.options);
315
315
  const archive = await SecurityArchive.start({
316
316
  nodes: [node],
317
317
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/cli-sdk",
3
3
  "description": "The source for the vlt CLI",
4
- "version": "1.0.3",
4
+ "version": "1.0.4",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -14,30 +14,30 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@resvg/resvg-wasm": "^2.6.2",
17
- "@vltpkg/config": "1.0.3",
18
- "@vltpkg/dep-id": "1.0.3",
19
- "@vltpkg/dot-prop": "1.0.3",
20
- "@vltpkg/error-cause": "1.0.3",
21
- "@vltpkg/git": "1.0.3",
22
- "@vltpkg/graph": "1.0.3",
23
- "@vltpkg/graph-run": "1.0.3",
24
- "@vltpkg/init": "1.0.3",
25
- "@vltpkg/output": "1.0.3",
26
- "@vltpkg/package-info": "1.0.3",
27
- "@vltpkg/package-json": "1.0.3",
28
- "@vltpkg/promise-spawn": "1.0.3",
29
- "@vltpkg/query": "1.0.3",
30
- "@vltpkg/registry-client": "1.0.3",
31
- "@vltpkg/rollback-remove": "1.0.3",
32
- "@vltpkg/run": "1.0.3",
33
- "@vltpkg/security-archive": "1.0.3",
34
- "@vltpkg/spec": "1.0.3",
35
- "@vltpkg/types": "1.0.3",
36
- "@vltpkg/url-open": "1.0.3",
37
- "@vltpkg/vlt-json": "1.0.3",
38
- "@vltpkg/vlx": "1.0.3",
39
- "@vltpkg/workspaces": "1.0.3",
40
- "@vltpkg/xdg": "1.0.3",
17
+ "@vltpkg/config": "1.0.4",
18
+ "@vltpkg/dep-id": "1.0.4",
19
+ "@vltpkg/dot-prop": "1.0.4",
20
+ "@vltpkg/error-cause": "1.0.4",
21
+ "@vltpkg/git": "1.0.4",
22
+ "@vltpkg/graph": "1.0.4",
23
+ "@vltpkg/graph-run": "1.0.4",
24
+ "@vltpkg/init": "1.0.4",
25
+ "@vltpkg/output": "1.0.4",
26
+ "@vltpkg/package-info": "1.0.4",
27
+ "@vltpkg/package-json": "1.0.4",
28
+ "@vltpkg/promise-spawn": "1.0.4",
29
+ "@vltpkg/query": "1.0.4",
30
+ "@vltpkg/registry-client": "1.0.4",
31
+ "@vltpkg/rollback-remove": "1.0.4",
32
+ "@vltpkg/run": "1.0.4",
33
+ "@vltpkg/security-archive": "1.0.4",
34
+ "@vltpkg/spec": "1.0.4",
35
+ "@vltpkg/types": "1.0.4",
36
+ "@vltpkg/url-open": "1.0.4",
37
+ "@vltpkg/vlt-json": "1.0.4",
38
+ "@vltpkg/vlx": "1.0.4",
39
+ "@vltpkg/workspaces": "1.0.4",
40
+ "@vltpkg/xdg": "1.0.4",
41
41
  "ansi-to-pre": "^1.0.6",
42
42
  "beautiful-mermaid": "^1.1.3",
43
43
  "chalk": "^5.6.2",