@pnpm/deps.compliance.audit 1002.0.14 → 1100.0.0

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.
package/lib/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { PnpmError } from '@pnpm/error';
2
2
  import type { GetAuthHeader } from '@pnpm/fetching.types';
3
3
  import type { EnvLockfile, LockfileObject } from '@pnpm/lockfile.types';
4
- import { type AgentOptions, type RetryTimeoutOptions } from '@pnpm/network.fetch';
4
+ import { type DispatcherOptions, type RetryTimeoutOptions } from '@pnpm/network.fetch';
5
5
  import type { DependenciesField } from '@pnpm/types';
6
6
  import type { AuditReport } from './types.js';
7
7
  export * from './types.js';
8
8
  export declare function audit(lockfile: LockfileObject, getAuthHeader: GetAuthHeader, opts: {
9
- agentOptions?: AgentOptions;
9
+ dispatcherOptions?: DispatcherOptions;
10
10
  envLockfile?: EnvLockfile | null;
11
11
  include?: {
12
12
  [dependenciesField in DependenciesField]: boolean;
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { PnpmError } from '@pnpm/error';
2
- import { fetchWithAgent } from '@pnpm/network.fetch';
2
+ import { fetchWithDispatcher } from '@pnpm/network.fetch';
3
3
  import { lockfileToAuditTree } from './lockfileToAuditTree.js';
4
4
  export * from './types.js';
5
5
  export async function audit(lockfile, getAuthHeader, opts) {
@@ -14,18 +14,18 @@ export async function audit(lockfile, getAuthHeader, opts) {
14
14
  ...getAuthHeaders(authHeaderValue),
15
15
  };
16
16
  const requestOptions = {
17
- agentOptions: opts.agentOptions ?? {},
17
+ dispatcherOptions: opts.dispatcherOptions ?? {},
18
18
  body: requestBody,
19
19
  headers: requestHeaders,
20
20
  method: 'POST',
21
21
  retry: opts.retry,
22
22
  timeout: opts.timeout,
23
23
  };
24
- const quickRes = await fetchWithAgent(quickAuditUrl, requestOptions);
24
+ const quickRes = await fetchWithDispatcher(quickAuditUrl, requestOptions);
25
25
  if (quickRes.status === 200) {
26
26
  return quickRes.json();
27
27
  }
28
- const res = await fetchWithAgent(auditUrl, requestOptions);
28
+ const res = await fetchWithDispatcher(auditUrl, requestOptions);
29
29
  if (res.status === 200) {
30
30
  return res.json();
31
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/deps.compliance.audit",
3
- "version": "1002.0.14",
3
+ "version": "1100.0.0",
4
4
  "description": "Audit a lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -26,27 +26,27 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "ramda": "npm:@pnpm/ramda@0.28.1",
29
- "@pnpm/error": "1000.0.5",
30
- "@pnpm/fetching.types": "1000.2.0",
31
- "@pnpm/lockfile.fs": "1001.1.21",
32
- "@pnpm/lockfile.detect-dep-types": "1001.0.16",
33
- "@pnpm/lockfile.types": "1002.0.2",
34
- "@pnpm/lockfile.walker": "1001.0.16",
35
- "@pnpm/network.fetch": "1000.2.6",
36
- "@pnpm/types": "1000.9.0",
37
- "@pnpm/lockfile.utils": "1003.0.3",
38
- "@pnpm/workspace.project-manifest-reader": "1001.1.4"
29
+ "@pnpm/error": "1100.0.0",
30
+ "@pnpm/fetching.types": "1100.0.0",
31
+ "@pnpm/lockfile.fs": "1100.0.0",
32
+ "@pnpm/lockfile.types": "1100.0.0",
33
+ "@pnpm/lockfile.detect-dep-types": "1100.0.0",
34
+ "@pnpm/lockfile.walker": "1100.0.0",
35
+ "@pnpm/network.fetch": "1100.0.0",
36
+ "@pnpm/lockfile.utils": "1100.0.0",
37
+ "@pnpm/workspace.project-manifest-reader": "1100.0.0",
38
+ "@pnpm/types": "1100.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/ramda": "0.29.12",
45
- "nock": "13.3.4",
46
- "@pnpm/logger": "1001.0.1",
47
- "@pnpm/test-fixtures": "1000.0.0",
48
- "@pnpm/deps.compliance.audit": "1002.0.14",
49
- "@pnpm/constants": "1001.3.1"
44
+ "@types/ramda": "0.31.1",
45
+ "@pnpm/deps.compliance.audit": "1100.0.0",
46
+ "@pnpm/logger": "1100.0.0",
47
+ "@pnpm/test-fixtures": "1100.0.0",
48
+ "@pnpm/constants": "1100.0.0",
49
+ "@pnpm/testing.mock-agent": "1100.0.0"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22.13"
@@ -56,8 +56,8 @@
56
56
  },
57
57
  "scripts": {
58
58
  "lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
59
- "_test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest",
60
- "test": "pnpm run compile && pnpm run _test",
61
- "compile": "tsgo --build && pnpm run lint --fix"
59
+ "test": "pn compile && pn .test",
60
+ "compile": "tsgo --build && pn lint --fix",
61
+ ".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
62
62
  }
63
63
  }