@pnpm/pnpr.client 1.2.3 → 1.3.1

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,6 +1,5 @@
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>>;
4
3
  export interface PnprProject {
5
4
  /** Relative dir within the workspace (e.g. "." or "packages/foo") */
6
5
  dir: string;
@@ -26,16 +25,11 @@ export interface ResolveViaPnprServerOptions {
26
25
  registry?: string;
27
26
  /** The client's named-registry aliases (`namedRegistries`). */
28
27
  namedRegistries?: Record<string, string>;
29
- /**
30
- * The caller's forwarded upstream credentials, keyed by nerf-darted
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).
34
- */
35
- authHeaders?: AuthHeadersByScope;
36
28
  /**
37
29
  * `Authorization` for the pnpr server's own URL (`undefined` if none):
38
- * identifies the caller to pnpr's gate.
30
+ * identifies the caller to pnpr's gate. The client never forwards its
31
+ * own upstream registry credentials — pnpr selects upstream credentials
32
+ * from its route policy, so none are placed in the request body.
39
33
  */
40
34
  authorization?: string;
41
35
  /** Overrides */
@@ -25,7 +25,6 @@ export async function resolveViaPnprServer(opts) {
25
25
  projects,
26
26
  registry: opts.registry,
27
27
  namedRegistries: opts.namedRegistries,
28
- authHeaders: opts.authHeaders,
29
28
  overrides: opts.overrides,
30
29
  nodeVersion: opts.nodeVersion ?? process.version.slice(1),
31
30
  os: process.platform,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/pnpr.client",
3
- "version": "1.2.3",
3
+ "version": "1.3.1",
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,11 +27,11 @@
27
27
  "!*.map"
28
28
  ],
29
29
  "dependencies": {
30
- "@pnpm/lockfile.fs": "1100.1.7",
31
- "@pnpm/lockfile.types": "1100.0.12"
30
+ "@pnpm/lockfile.types": "1100.0.13",
31
+ "@pnpm/lockfile.fs": "1100.1.9"
32
32
  },
33
33
  "devDependencies": {
34
- "@pnpm/pnpr.client": "1.2.3",
34
+ "@pnpm/pnpr.client": "1.3.1",
35
35
  "@pnpm/types": "1101.3.2"
36
36
  },
37
37
  "engines": {