@pnpm/pnpr.client 1.2.0 → 1.2.2

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,5 +1,6 @@
1
1
  import type { LockfileFile, LockfileObject } from '@pnpm/lockfile.types';
2
2
  import type { ResponseMetadata } from './protocol.js';
3
+ export type AuthHeadersByScope = Record<string, Record<string, string>>;
3
4
  export interface PnprProject {
4
5
  /** Relative dir within the workspace (e.g. "." or "packages/foo") */
5
6
  dir: string;
@@ -27,10 +28,11 @@ export interface ResolveViaPnprServerOptions {
27
28
  namedRegistries?: Record<string, string>;
28
29
  /**
29
30
  * The caller's forwarded upstream credentials, keyed by nerf-darted
30
- * registry URI, so the server resolves private content as the
31
- * caller. Distinct from `authorization` (pnpr identity).
31
+ * registry URI and package scope, so the server resolves private
32
+ * content as the caller. The `@` scope stores registry-wide auth.
33
+ * Distinct from `authorization` (pnpr identity).
32
34
  */
33
- authHeaders?: Record<string, string>;
35
+ authHeaders?: AuthHeadersByScope;
34
36
  /**
35
37
  * `Authorization` for the pnpr server's own URL (`undefined` if none):
36
38
  * identifies the caller to pnpr's gate.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/pnpr.client",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Client for the pnpr server — resolves a project server-side and receives the resolved lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -27,12 +27,12 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "@pnpm/lockfile.fs": "1100.1.4",
31
- "@pnpm/lockfile.types": "1100.0.10"
30
+ "@pnpm/lockfile.types": "1100.0.11",
31
+ "@pnpm/lockfile.fs": "1100.1.6"
32
32
  },
33
33
  "devDependencies": {
34
- "@pnpm/types": "1101.3.1",
35
- "@pnpm/pnpr.client": "1.2.0"
34
+ "@pnpm/pnpr.client": "1.2.2",
35
+ "@pnpm/types": "1101.3.2"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=22.13"