@pnpm/deps.inspection.outdated 1001.1.1 → 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.
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { type ClientOptions, type ResolveFunction } from '@pnpm/installing.client';
|
|
2
|
-
import type { DependencyManifest, PackageVersionPolicy } from '@pnpm/types';
|
|
2
|
+
import type { DependencyManifest, PackageVersionPolicy, RegistryConfig } from '@pnpm/types';
|
|
3
3
|
interface GetManifestOpts {
|
|
4
4
|
dir: string;
|
|
5
5
|
lockfileDir: string;
|
|
6
|
-
|
|
6
|
+
configByUri: object;
|
|
7
7
|
minimumReleaseAge?: number;
|
|
8
8
|
minimumReleaseAgeExclude?: string[];
|
|
9
|
+
minimumReleaseAgeStrict?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export type ManifestGetterOptions = Omit<ClientOptions, '
|
|
11
|
+
export type ManifestGetterOptions = Omit<ClientOptions, 'configByUri' | 'minimumReleaseAgeExclude' | 'storeIndex'> & GetManifestOpts & {
|
|
11
12
|
fullMetadata: boolean;
|
|
12
|
-
|
|
13
|
+
configByUri: Record<string, RegistryConfig>;
|
|
13
14
|
};
|
|
14
15
|
export declare function createManifestGetter(opts: ManifestGetterOptions): (packageName: string, bareSpecifier: string) => Promise<DependencyManifest | null>;
|
|
15
16
|
export declare function getManifest(opts: GetManifestOpts & {
|
|
@@ -6,9 +6,9 @@ export function createManifestGetter(opts) {
|
|
|
6
6
|
: undefined;
|
|
7
7
|
const { resolve } = createResolver({
|
|
8
8
|
...opts,
|
|
9
|
-
|
|
9
|
+
configByUri: opts.configByUri,
|
|
10
10
|
filterMetadata: false, // We need all the data from metadata for "outdated --long" to work.
|
|
11
|
-
strictPublishedByCheck: Boolean(opts.minimumReleaseAge),
|
|
11
|
+
strictPublishedByCheck: Boolean(opts.minimumReleaseAge) && opts.minimumReleaseAgeStrict === true,
|
|
12
12
|
});
|
|
13
13
|
const publishedBy = opts.minimumReleaseAge
|
|
14
14
|
? new Date(Date.now() - opts.minimumReleaseAge * 60 * 1000)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/deps.inspection.outdated",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1100.0.0",
|
|
4
4
|
"description": "Check for outdated packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,33 +27,33 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
29
29
|
"semver": "^7.7.2",
|
|
30
|
-
"@pnpm/
|
|
31
|
-
"@pnpm/
|
|
32
|
-
"@pnpm/config.
|
|
33
|
-
"@pnpm/config.
|
|
34
|
-
"@pnpm/
|
|
35
|
-
"@pnpm/
|
|
36
|
-
"@pnpm/deps.path": "
|
|
37
|
-
"@pnpm/error": "
|
|
38
|
-
"@pnpm/
|
|
39
|
-
"@pnpm/
|
|
40
|
-
"@pnpm/
|
|
41
|
-
"@pnpm/lockfile.fs": "
|
|
42
|
-
"@pnpm/lockfile.utils": "
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/
|
|
45
|
-
"@pnpm/
|
|
30
|
+
"@pnpm/catalogs.resolver": "1100.0.0",
|
|
31
|
+
"@pnpm/config.matcher": "1100.0.0",
|
|
32
|
+
"@pnpm/config.parse-overrides": "1100.0.0",
|
|
33
|
+
"@pnpm/config.version-policy": "1100.0.0",
|
|
34
|
+
"@pnpm/constants": "1100.0.0",
|
|
35
|
+
"@pnpm/config.pick-registry-for-package": "1100.0.0",
|
|
36
|
+
"@pnpm/deps.path": "1100.0.0",
|
|
37
|
+
"@pnpm/error": "1100.0.0",
|
|
38
|
+
"@pnpm/hooks.read-package-hook": "1100.0.0",
|
|
39
|
+
"@pnpm/catalogs.types": "1100.0.0",
|
|
40
|
+
"@pnpm/installing.client": "1100.0.0",
|
|
41
|
+
"@pnpm/lockfile.fs": "1100.0.0",
|
|
42
|
+
"@pnpm/lockfile.utils": "1100.0.0",
|
|
43
|
+
"@pnpm/pkg-manifest.utils": "1100.0.0",
|
|
44
|
+
"@pnpm/resolving.npm-resolver": "1100.0.0",
|
|
45
|
+
"@pnpm/types": "1100.0.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@jest/globals": "30.0
|
|
52
|
-
"@types/ramda": "0.
|
|
51
|
+
"@jest/globals": "30.3.0",
|
|
52
|
+
"@types/ramda": "0.31.1",
|
|
53
53
|
"@types/semver": "7.7.1",
|
|
54
|
-
"@pnpm/
|
|
55
|
-
"@pnpm/
|
|
56
|
-
"@pnpm/
|
|
54
|
+
"@pnpm/deps.inspection.outdated": "1100.0.0",
|
|
55
|
+
"@pnpm/logger": "1100.0.0",
|
|
56
|
+
"@pnpm/resolving.resolver-base": "1100.0.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=22.13"
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"preset": "@pnpm/jest-config/with-registry"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
|
-
"test": "
|
|
65
|
+
"test": "pn compile && pn .test",
|
|
66
66
|
"lint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
67
|
-
"
|
|
68
|
-
"
|
|
67
|
+
"compile": "tsgo --build && pn lint --fix",
|
|
68
|
+
".test": "cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"
|
|
69
69
|
}
|
|
70
70
|
}
|