@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 +2 -2
- package/lib/index.js +4 -4
- package/package.json +20 -20
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
|
|
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
|
-
|
|
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 {
|
|
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
|
-
|
|
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
|
|
24
|
+
const quickRes = await fetchWithDispatcher(quickAuditUrl, requestOptions);
|
|
25
25
|
if (quickRes.status === 200) {
|
|
26
26
|
return quickRes.json();
|
|
27
27
|
}
|
|
28
|
-
const res = await
|
|
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": "
|
|
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": "
|
|
30
|
-
"@pnpm/fetching.types": "
|
|
31
|
-
"@pnpm/lockfile.fs": "
|
|
32
|
-
"@pnpm/lockfile.
|
|
33
|
-
"@pnpm/lockfile.types": "
|
|
34
|
-
"@pnpm/lockfile.walker": "
|
|
35
|
-
"@pnpm/network.fetch": "
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/
|
|
38
|
-
"@pnpm/
|
|
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.
|
|
45
|
-
"
|
|
46
|
-
"@pnpm/logger": "
|
|
47
|
-
"@pnpm/test-fixtures": "
|
|
48
|
-
"@pnpm/
|
|
49
|
-
"@pnpm/
|
|
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
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
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
|
}
|