@vltpkg/registry-client 0.0.0-0.1730724342581 → 0.0.0-3

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 (59) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/add-header.d.ts +1 -1
  3. package/dist/esm/add-header.d.ts.map +1 -1
  4. package/dist/esm/add-header.js +4 -1
  5. package/dist/esm/add-header.js.map +1 -1
  6. package/dist/esm/auth.d.ts +9 -0
  7. package/dist/esm/auth.d.ts.map +1 -0
  8. package/dist/esm/auth.js +39 -0
  9. package/dist/esm/auth.js.map +1 -0
  10. package/dist/esm/cache-entry.d.ts +5 -5
  11. package/dist/esm/cache-entry.d.ts.map +1 -1
  12. package/dist/esm/cache-entry.js +3 -17
  13. package/dist/esm/cache-entry.js.map +1 -1
  14. package/dist/esm/delete-header.d.ts +2 -0
  15. package/dist/esm/delete-header.d.ts.map +1 -0
  16. package/dist/esm/delete-header.js +32 -0
  17. package/dist/esm/delete-header.js.map +1 -0
  18. package/dist/esm/env.d.ts +0 -4
  19. package/dist/esm/env.d.ts.map +1 -1
  20. package/dist/esm/env.js +0 -3
  21. package/dist/esm/env.js.map +1 -1
  22. package/dist/esm/handle-304-response.d.ts +2 -2
  23. package/dist/esm/handle-304-response.d.ts.map +1 -1
  24. package/dist/esm/handle-304-response.js.map +1 -1
  25. package/dist/esm/index.d.ts +67 -7
  26. package/dist/esm/index.d.ts.map +1 -1
  27. package/dist/esm/index.js +215 -57
  28. package/dist/esm/index.js.map +1 -1
  29. package/dist/esm/is-iterable.d.ts +2 -0
  30. package/dist/esm/is-iterable.d.ts.map +1 -0
  31. package/dist/esm/is-iterable.js +2 -0
  32. package/dist/esm/is-iterable.js.map +1 -0
  33. package/dist/esm/otplease.d.ts +4 -0
  34. package/dist/esm/otplease.d.ts.map +1 -0
  35. package/dist/esm/otplease.js +55 -0
  36. package/dist/esm/otplease.js.map +1 -0
  37. package/dist/esm/raw-header.d.ts +1 -1
  38. package/dist/esm/raw-header.d.ts.map +1 -1
  39. package/dist/esm/redirect.d.ts +2 -2
  40. package/dist/esm/redirect.d.ts.map +1 -1
  41. package/dist/esm/redirect.js +1 -0
  42. package/dist/esm/redirect.js.map +1 -1
  43. package/dist/esm/set-cache-headers.d.ts +2 -2
  44. package/dist/esm/set-cache-headers.d.ts.map +1 -1
  45. package/dist/esm/set-cache-headers.js +1 -1
  46. package/dist/esm/set-cache-headers.js.map +1 -1
  47. package/dist/esm/token-response.d.ts +5 -0
  48. package/dist/esm/token-response.d.ts.map +1 -0
  49. package/dist/esm/token-response.js +5 -0
  50. package/dist/esm/token-response.js.map +1 -0
  51. package/dist/esm/web-auth-challenge.d.ts +6 -0
  52. package/dist/esm/web-auth-challenge.d.ts.map +1 -0
  53. package/dist/esm/web-auth-challenge.js +7 -0
  54. package/dist/esm/web-auth-challenge.js.map +1 -0
  55. package/package.json +28 -17
  56. package/dist/esm/serdes.d.ts +0 -15
  57. package/dist/esm/serdes.d.ts.map +0 -1
  58. package/dist/esm/serdes.js +0 -19
  59. package/dist/esm/serdes.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-auth-challenge.d.ts","sourceRoot":"","sources":["../../src/web-auth-challenge.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,kBAAkB,MAC1B,OAAO,KACT,CAAC,IAAI,gBAM8C,CAAA"}
@@ -0,0 +1,7 @@
1
+ export const isWebAuthChallenge = (o) => !!o &&
2
+ typeof o === 'object' &&
3
+ !!o.doneUrl &&
4
+ !!o.loginUrl &&
5
+ typeof o.doneUrl === 'string' &&
6
+ typeof o.loginUrl === 'string';
7
+ //# sourceMappingURL=web-auth-challenge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-auth-challenge.js","sourceRoot":"","sources":["../../src/web-auth-challenge.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAChC,CAAU,EACa,EAAE,CACzB,CAAC,CAAC,CAAC;IACH,OAAO,CAAC,KAAK,QAAQ;IACrB,CAAC,CAAE,CAAsB,CAAC,OAAO;IACjC,CAAC,CAAE,CAAsB,CAAC,QAAQ;IAClC,OAAQ,CAAsB,CAAC,OAAO,KAAK,QAAQ;IACnD,OAAQ,CAAsB,CAAC,QAAQ,KAAK,QAAQ,CAAA","sourcesContent":["export type WebAuthChallenge = {\n doneUrl: string\n loginUrl: string\n}\n\nexport const isWebAuthChallenge = (\n o: unknown,\n): o is WebAuthChallenge =>\n !!o &&\n typeof o === 'object' &&\n !!(o as WebAuthChallenge).doneUrl &&\n !!(o as WebAuthChallenge).loginUrl &&\n typeof (o as WebAuthChallenge).doneUrl === 'string' &&\n typeof (o as WebAuthChallenge).loginUrl === 'string'\n"]}
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@vltpkg/registry-client",
3
3
  "description": "Fetch package artifacts and metadata from registries",
4
- "version": "0.0.0-0.1730724342581",
4
+ "version": "0.0.0-3",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/vltpkg/vltpkg.git",
8
+ "directory": "src/registry-client"
9
+ },
5
10
  "tshy": {
6
11
  "selfLink": false,
12
+ "liveDev": true,
7
13
  "dialects": [
8
14
  "esm"
9
15
  ],
@@ -17,26 +23,31 @@
17
23
  "cache-control-parser": "^2.0.5",
18
24
  "package-json-from-dist": "^1.0.0",
19
25
  "undici": "^6.20.0",
20
- "@vltpkg/cache": "0.0.0-0.1730724342581",
21
- "@vltpkg/cache-unzip": "0.0.0-0.1730724342581",
22
- "@vltpkg/xdg": "0.0.0-0.1730724342581",
23
- "@vltpkg/types": "0.0.0-0.1730724342581",
24
- "@vltpkg/error-cause": "0.0.0-0.1730724342581"
26
+ "@vltpkg/cache-unzip": "0.0.0-3",
27
+ "@vltpkg/cache": "0.0.0-3",
28
+ "@vltpkg/error-cause": "0.0.0-3",
29
+ "@vltpkg/output": "0.0.0-3",
30
+ "@vltpkg/keychain": "0.0.0-3",
31
+ "@vltpkg/url-open": "0.0.0-3",
32
+ "@vltpkg/promise-spawn": "0.0.0-3",
33
+ "@vltpkg/types": "0.0.0-3",
34
+ "@vltpkg/xdg": "0.0.0-3"
25
35
  },
26
36
  "devDependencies": {
27
- "@eslint/js": "^9.8.0",
37
+ "@eslint/js": "^9.20.0",
28
38
  "@types/eslint__js": "^8.42.3",
29
- "@types/node": "^22.4.1",
30
- "eslint": "^9.8.0",
31
- "prettier": "^3.3.2",
32
- "tap": "^21.0.1",
39
+ "@types/node": "^22.13.1",
40
+ "eslint": "^9.20.0",
41
+ "prettier": "^3.4.2",
42
+ "tap": "^21.1.0",
33
43
  "tshy": "^3.0.2",
34
- "typescript": "^5.5.4",
35
- "typescript-eslint": "^8.0.1"
44
+ "typedoc": "0.27.6",
45
+ "typescript": "5.7.3",
46
+ "typescript-eslint": "^8.23.0"
36
47
  },
37
48
  "license": "BSD-2-Clause-Patent",
38
49
  "engines": {
39
- "node": "20 || >=22"
50
+ "node": ">=22"
40
51
  },
41
52
  "tap": {
42
53
  "extends": "../../tap-config.yaml"
@@ -67,9 +78,9 @@
67
78
  "format:check": "prettier --check . --ignore-path ../../.prettierignore --cache",
68
79
  "lint": "eslint . --fix",
69
80
  "lint:check": "eslint .",
70
- "presnap": "tshy",
71
81
  "snap": "tap",
72
- "pretest": "tshy",
73
- "test": "tap"
82
+ "test": "tap",
83
+ "posttest": "tsc --noEmit",
84
+ "typecheck": "tsc --noEmit"
74
85
  }
75
86
  }
@@ -1,15 +0,0 @@
1
- /**
2
- * This tiny module abstracts out the v8-specific serialization mechanism,
3
- * so that we can swap out based on platform.
4
- *
5
- * Bun, Deno, and Node all export serialize/deserialize from the `node:v8`
6
- * built-in module, but only Deno and Node are v8, Bun uses JSC's wire format.
7
- *
8
- * Any change to the serialization format is a semver-major change,
9
- * but not every major-version bump is a serialization change. So, this is
10
- * somewhat more conservative than necessary, but saves us having to track
11
- * which major versions changed the serialization wire format.
12
- */
13
- export declare const serializedHeader: string | undefined;
14
- export { deserialize, serialize } from 'node:v8';
15
- //# sourceMappingURL=serdes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serdes.d.ts","sourceRoot":"","sources":["../../src/serdes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,eAAO,MAAM,gBAAgB,oBAGhB,CAAA;AAEb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA"}
@@ -1,19 +0,0 @@
1
- /**
2
- * This tiny module abstracts out the v8-specific serialization mechanism,
3
- * so that we can swap out based on platform.
4
- *
5
- * Bun, Deno, and Node all export serialize/deserialize from the `node:v8`
6
- * built-in module, but only Deno and Node are v8, Bun uses JSC's wire format.
7
- *
8
- * Any change to the serialization format is a semver-major change,
9
- * but not every major-version bump is a serialization change. So, this is
10
- * somewhat more conservative than necessary, but saves us having to track
11
- * which major versions changed the serialization wire format.
12
- */
13
- import { engine } from './env.js';
14
- // these aren't used if we couldn't determine the engine type & version
15
- export const serializedHeader = engine ?
16
- `${engine.name}-serialize-${parseInt(engine.version.replace(/[^0-9]/g, ' ').trim(), 10)}`
17
- : undefined;
18
- export { deserialize, serialize } from 'node:v8';
19
- //# sourceMappingURL=serdes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serdes.js","sourceRoot":"","sources":["../../src/serdes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAC3B,MAAM,CAAC,CAAC;IACN,GAAG,MAAM,CAAC,IAAI,cAAc,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE;IAC3F,CAAC,CAAC,SAAS,CAAA;AAEb,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA","sourcesContent":["/**\n * This tiny module abstracts out the v8-specific serialization mechanism,\n * so that we can swap out based on platform.\n *\n * Bun, Deno, and Node all export serialize/deserialize from the `node:v8`\n * built-in module, but only Deno and Node are v8, Bun uses JSC's wire format.\n *\n * Any change to the serialization format is a semver-major change,\n * but not every major-version bump is a serialization change. So, this is\n * somewhat more conservative than necessary, but saves us having to track\n * which major versions changed the serialization wire format.\n */\n\nimport { engine } from './env.js'\n\n// these aren't used if we couldn't determine the engine type & version\nexport const serializedHeader =\n engine ?\n `${engine.name}-serialize-${parseInt(engine.version.replace(/[^0-9]/g, ' ').trim(), 10)}`\n : undefined\n\nexport { deserialize, serialize } from 'node:v8'\n"]}