@pnpm/core-loggers 1100.0.2 → 1100.1.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.
- package/lib/all.d.ts +1 -0
- package/lib/all.js +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/lockfileVerificationLogger.d.ts +42 -0
- package/lib/lockfileVerificationLogger.js +3 -0
- package/package.json +4 -4
package/lib/all.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './installCheckLogger.js';
|
|
|
8
8
|
export * from './installingConfigDeps.js';
|
|
9
9
|
export * from './lifecycleLogger.js';
|
|
10
10
|
export * from './linkLogger.js';
|
|
11
|
+
export * from './lockfileVerificationLogger.js';
|
|
11
12
|
export * from './packageImportMethodLogger.js';
|
|
12
13
|
export * from './packageManifestLogger.js';
|
|
13
14
|
export * from './peerDependencyIssues.js';
|
package/lib/all.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from './installCheckLogger.js';
|
|
|
8
8
|
export * from './installingConfigDeps.js';
|
|
9
9
|
export * from './lifecycleLogger.js';
|
|
10
10
|
export * from './linkLogger.js';
|
|
11
|
+
export * from './lockfileVerificationLogger.js';
|
|
11
12
|
export * from './packageImportMethodLogger.js';
|
|
12
13
|
export * from './packageManifestLogger.js';
|
|
13
14
|
export * from './peerDependencyIssues.js';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ContextLog, DeprecationLog, ExecutionTimeLog, FetchingProgressLog, HookLog, IgnoredScriptsLog, InstallCheckLog, InstallingConfigDepsLog, LifecycleLog, LinkLog, PackageImportMethodLog, PackageManifestLog, PeerDependencyIssuesLog, ProgressLog, RegistryLog, RequestRetryLog, RootLog, ScopeLog, SkippedOptionalDependencyLog, StageLog, StatsLog, SummaryLog, UpdateCheckLog } from './all.js';
|
|
1
|
+
import type { ContextLog, DeprecationLog, ExecutionTimeLog, FetchingProgressLog, HookLog, IgnoredScriptsLog, InstallCheckLog, InstallingConfigDepsLog, LifecycleLog, LinkLog, LockfileVerificationLog, PackageImportMethodLog, PackageManifestLog, PeerDependencyIssuesLog, ProgressLog, RegistryLog, RequestRetryLog, RootLog, ScopeLog, SkippedOptionalDependencyLog, StageLog, StatsLog, SummaryLog, UpdateCheckLog } from './all.js';
|
|
2
2
|
export * from './all.js';
|
|
3
|
-
export type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | InstallingConfigDepsLog | IgnoredScriptsLog | LifecycleLog | LinkLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
|
|
3
|
+
export type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | InstallingConfigDepsLog | IgnoredScriptsLog | LifecycleLog | LinkLog | LockfileVerificationLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const lockfileVerificationLogger: import("@pnpm/logger").Logger<LockfileVerificationMessage>;
|
|
3
|
+
export interface LockfileVerificationMessageBase {
|
|
4
|
+
status: 'started' | 'done' | 'failed';
|
|
5
|
+
/**
|
|
6
|
+
* Absolute path of the lockfile being verified. Omitted only when
|
|
7
|
+
* the verifier is invoked without a path (today only in unit tests
|
|
8
|
+
* that skip the cache wiring); production code paths always pass it.
|
|
9
|
+
*/
|
|
10
|
+
lockfilePath?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface LockfileVerificationStartedMessage extends LockfileVerificationMessageBase {
|
|
13
|
+
status: 'started';
|
|
14
|
+
/** Number of distinct (name, version, resolution) entries about to be verified. */
|
|
15
|
+
entries: number;
|
|
16
|
+
}
|
|
17
|
+
export interface LockfileVerificationDoneMessage extends LockfileVerificationMessageBase {
|
|
18
|
+
status: 'done';
|
|
19
|
+
/** Number of distinct (name, version, resolution) entries that were verified. */
|
|
20
|
+
entries: number;
|
|
21
|
+
/** Milliseconds elapsed between the matching `started` event and `done`. */
|
|
22
|
+
elapsedMs: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Terminal event emitted on every exit path that emitted `started` but
|
|
26
|
+
* didn't succeed — both policy violations (a `PnpmError` is about to be
|
|
27
|
+
* thrown with the breakdown) and unexpected throws from the registry
|
|
28
|
+
* fan-out. Lets the reporter close out the transient `started` frame
|
|
29
|
+
* in ansi-diff mode so it isn't left looking like a hung spinner above
|
|
30
|
+
* the failure output.
|
|
31
|
+
*/
|
|
32
|
+
export interface LockfileVerificationFailedMessage extends LockfileVerificationMessageBase {
|
|
33
|
+
status: 'failed';
|
|
34
|
+
/** Number of distinct (name, version, resolution) entries that were checked before the failure. */
|
|
35
|
+
entries: number;
|
|
36
|
+
/** Milliseconds elapsed between the matching `started` event and `failed`. */
|
|
37
|
+
elapsedMs: number;
|
|
38
|
+
}
|
|
39
|
+
export type LockfileVerificationMessage = LockfileVerificationStartedMessage | LockfileVerificationDoneMessage | LockfileVerificationFailedMessage;
|
|
40
|
+
export type LockfileVerificationLog = {
|
|
41
|
+
name: 'pnpm:lockfile-verification';
|
|
42
|
+
} & LogBase & LockfileVerificationMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/core-loggers",
|
|
3
|
-
"version": "1100.
|
|
3
|
+
"version": "1100.1.1",
|
|
4
4
|
"description": "Core loggers of pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"test": "test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pnpm/types": "1101.1.
|
|
30
|
+
"@pnpm/types": "1101.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@pnpm/logger": ">=1001.0.0 <1002.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@pnpm/
|
|
37
|
-
"@pnpm/
|
|
36
|
+
"@pnpm/core-loggers": "1100.1.1",
|
|
37
|
+
"@pnpm/logger": "1100.0.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.13"
|