@pnpm/core-loggers 1100.2.4 → 1100.3.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/CHANGELOG.md +26 -0
- package/lib/all.d.ts +27 -0
- package/lib/all.js +28 -0
- package/lib/contextLogger.d.ts +10 -0
- package/lib/contextLogger.js +3 -0
- package/lib/deprecationLogger.d.ts +13 -0
- package/lib/deprecationLogger.js +3 -0
- package/lib/executionTimeLogger.d.ts +9 -0
- package/lib/executionTimeLogger.js +3 -0
- package/lib/fetchingProgressLogger.d.ts +22 -0
- package/lib/fetchingProgressLogger.js +3 -0
- package/lib/hookLogger.d.ts +11 -0
- package/lib/hookLogger.js +3 -0
- package/lib/ignoredScriptsLogger.d.ts +8 -0
- package/lib/ignoredScriptsLogger.js +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/installCheckLogger.d.ts +9 -0
- package/lib/installCheckLogger.js +3 -0
- package/lib/installingConfigDeps.d.ts +19 -0
- package/lib/installingConfigDeps.js +3 -0
- package/lib/lifecycleLogger.d.ts +28 -0
- package/lib/lifecycleLogger.js +3 -0
- package/lib/linkLogger.d.ts +9 -0
- package/lib/linkLogger.js +3 -0
- package/lib/lockfileVerificationLogger.d.ts +57 -0
- package/lib/lockfileVerificationLogger.js +3 -0
- package/lib/packageImportMethodLogger.d.ts +8 -0
- package/lib/packageImportMethodLogger.js +3 -0
- package/lib/packageManifestLogger.d.ts +18 -0
- package/lib/packageManifestLogger.js +3 -0
- package/lib/peerDependencyIssues.d.ts +9 -0
- package/lib/peerDependencyIssues.js +3 -0
- package/lib/progressLogger.d.ts +15 -0
- package/lib/progressLogger.js +3 -0
- package/lib/promptLogger.d.ts +13 -0
- package/lib/promptLogger.js +3 -0
- package/lib/registryLogger.d.ts +6 -0
- package/lib/registryLogger.js +2 -0
- package/lib/removalLogger.d.ts +1 -0
- package/lib/removalLogger.js +3 -0
- package/lib/reportPackageImported.d.ts +15 -0
- package/lib/reportPackageImported.js +27 -0
- package/lib/requestRetryLogger.d.ts +25 -0
- package/lib/requestRetryLogger.js +3 -0
- package/lib/rootLogger.d.ts +25 -0
- package/lib/rootLogger.js +3 -0
- package/lib/scopeLogger.d.ts +10 -0
- package/lib/scopeLogger.js +3 -0
- package/lib/skippedOptionalDependencyLogger.d.ts +29 -0
- package/lib/skippedOptionalDependencyLogger.js +3 -0
- package/lib/stageLogger.d.ts +9 -0
- package/lib/stageLogger.js +3 -0
- package/lib/statsLogger.d.ts +19 -0
- package/lib/statsLogger.js +3 -0
- package/lib/summaryLogger.d.ts +8 -0
- package/lib/summaryLogger.js +3 -0
- package/lib/updateCheckLogger.d.ts +9 -0
- package/lib/updateCheckLogger.js +3 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @pnpm/core-loggers
|
|
2
2
|
|
|
3
|
+
## 1100.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Restored the store block a first install prints, naming how packages were materialized and where the stores live [#13315](https://github.com/pnpm/pnpm/issues/13315):
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
Packages are hard linked from the content-addressable store to the virtual store.
|
|
11
|
+
Content-addressable store is at: ~/.local/share/pnpm/store/v11
|
|
12
|
+
Virtual store is at: node_modules/.pnpm
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies:
|
|
18
|
+
- @pnpm/types@1101.7.0
|
|
19
|
+
|
|
20
|
+
## 1100.2.5
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
|
|
25
|
+
|
|
26
|
+
- Updated dependencies:
|
|
27
|
+
- @pnpm/types@1101.6.0
|
|
28
|
+
|
|
3
29
|
## 1100.2.4
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
package/lib/all.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './contextLogger.js';
|
|
2
|
+
export * from './deprecationLogger.js';
|
|
3
|
+
export * from './executionTimeLogger.js';
|
|
4
|
+
export * from './fetchingProgressLogger.js';
|
|
5
|
+
export * from './hookLogger.js';
|
|
6
|
+
export * from './ignoredScriptsLogger.js';
|
|
7
|
+
export * from './installCheckLogger.js';
|
|
8
|
+
export * from './installingConfigDeps.js';
|
|
9
|
+
export * from './lifecycleLogger.js';
|
|
10
|
+
export * from './linkLogger.js';
|
|
11
|
+
export * from './lockfileVerificationLogger.js';
|
|
12
|
+
export * from './packageImportMethodLogger.js';
|
|
13
|
+
export * from './packageManifestLogger.js';
|
|
14
|
+
export * from './peerDependencyIssues.js';
|
|
15
|
+
export * from './progressLogger.js';
|
|
16
|
+
export * from './promptLogger.js';
|
|
17
|
+
export * from './registryLogger.js';
|
|
18
|
+
export * from './removalLogger.js';
|
|
19
|
+
export * from './reportPackageImported.js';
|
|
20
|
+
export * from './requestRetryLogger.js';
|
|
21
|
+
export * from './rootLogger.js';
|
|
22
|
+
export * from './scopeLogger.js';
|
|
23
|
+
export * from './skippedOptionalDependencyLogger.js';
|
|
24
|
+
export * from './stageLogger.js';
|
|
25
|
+
export * from './statsLogger.js';
|
|
26
|
+
export * from './summaryLogger.js';
|
|
27
|
+
export * from './updateCheckLogger.js';
|
package/lib/all.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './contextLogger.js';
|
|
2
|
+
export * from './deprecationLogger.js';
|
|
3
|
+
export * from './executionTimeLogger.js';
|
|
4
|
+
export * from './fetchingProgressLogger.js';
|
|
5
|
+
export * from './hookLogger.js';
|
|
6
|
+
export * from './ignoredScriptsLogger.js';
|
|
7
|
+
export * from './installCheckLogger.js';
|
|
8
|
+
export * from './installingConfigDeps.js';
|
|
9
|
+
export * from './lifecycleLogger.js';
|
|
10
|
+
export * from './linkLogger.js';
|
|
11
|
+
export * from './lockfileVerificationLogger.js';
|
|
12
|
+
export * from './packageImportMethodLogger.js';
|
|
13
|
+
export * from './packageManifestLogger.js';
|
|
14
|
+
export * from './peerDependencyIssues.js';
|
|
15
|
+
export * from './progressLogger.js';
|
|
16
|
+
export * from './promptLogger.js';
|
|
17
|
+
export * from './registryLogger.js';
|
|
18
|
+
export * from './removalLogger.js';
|
|
19
|
+
export * from './reportPackageImported.js';
|
|
20
|
+
export * from './requestRetryLogger.js';
|
|
21
|
+
export * from './rootLogger.js';
|
|
22
|
+
export * from './scopeLogger.js';
|
|
23
|
+
export * from './skippedOptionalDependencyLogger.js';
|
|
24
|
+
export * from './stageLogger.js';
|
|
25
|
+
export * from './statsLogger.js';
|
|
26
|
+
export * from './summaryLogger.js';
|
|
27
|
+
export * from './updateCheckLogger.js';
|
|
28
|
+
//# sourceMappingURL=all.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const contextLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface ContextMessage {
|
|
4
|
+
currentLockfileExists: boolean;
|
|
5
|
+
storeDir: string;
|
|
6
|
+
virtualStoreDir: string;
|
|
7
|
+
}
|
|
8
|
+
export type ContextLog = {
|
|
9
|
+
name: 'pnpm:context';
|
|
10
|
+
} & LogBase & ContextMessage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type LogBase, type Logger } from '@pnpm/logger';
|
|
2
|
+
export declare const deprecationLogger: Logger<DeprecationMessage>;
|
|
3
|
+
export interface DeprecationMessage {
|
|
4
|
+
pkgName: string;
|
|
5
|
+
pkgVersion: string;
|
|
6
|
+
pkgId: string;
|
|
7
|
+
prefix: string;
|
|
8
|
+
deprecated: string;
|
|
9
|
+
depth: number;
|
|
10
|
+
}
|
|
11
|
+
export type DeprecationLog = {
|
|
12
|
+
name: 'pnpm:deprecation';
|
|
13
|
+
} & LogBase & DeprecationMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const executionTimeLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface ExecutionTimeMessage {
|
|
4
|
+
startedAt: number;
|
|
5
|
+
endedAt: number;
|
|
6
|
+
}
|
|
7
|
+
export type ExecutionTimeLog = {
|
|
8
|
+
name: 'pnpm:execution-time';
|
|
9
|
+
} & LogBase & ExecutionTimeMessage;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type LogBase, type Logger } from '@pnpm/logger';
|
|
2
|
+
export declare const fetchingProgressLogger: Logger<FetchingProgressMessage>;
|
|
3
|
+
export interface FetchingProgressMessageBase {
|
|
4
|
+
attempt?: number;
|
|
5
|
+
downloaded?: number;
|
|
6
|
+
packageId: string;
|
|
7
|
+
size?: number | null;
|
|
8
|
+
status?: 'started' | 'in_progress';
|
|
9
|
+
}
|
|
10
|
+
export interface FetchingProgressMessageStarted extends FetchingProgressMessageBase {
|
|
11
|
+
attempt: number;
|
|
12
|
+
size: number | null;
|
|
13
|
+
status: 'started';
|
|
14
|
+
}
|
|
15
|
+
export interface FetchingProgressMessageInProgress extends FetchingProgressMessageBase {
|
|
16
|
+
downloaded: number;
|
|
17
|
+
status: 'in_progress';
|
|
18
|
+
}
|
|
19
|
+
export type FetchingProgressMessage = FetchingProgressMessageStarted | FetchingProgressMessageInProgress;
|
|
20
|
+
export type FetchingProgressLog = {
|
|
21
|
+
name: 'pnpm:fetching-progress';
|
|
22
|
+
} & LogBase & FetchingProgressMessage;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const hookLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface HookMessage {
|
|
4
|
+
from: string;
|
|
5
|
+
hook: string;
|
|
6
|
+
message: string;
|
|
7
|
+
prefix: string;
|
|
8
|
+
}
|
|
9
|
+
export type HookLog = {
|
|
10
|
+
name: 'pnpm:hook';
|
|
11
|
+
} & LogBase & HookMessage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const ignoredScriptsLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface IgnoredScriptsMessage {
|
|
4
|
+
packageNames: string[];
|
|
5
|
+
}
|
|
6
|
+
export type IgnoredScriptsLog = {
|
|
7
|
+
name: 'pnpm:ignored-scripts';
|
|
8
|
+
} & LogBase & IgnoredScriptsMessage;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ContextLog, DeprecationLog, ExecutionTimeLog, FetchingProgressLog, HookLog, IgnoredScriptsLog, InstallCheckLog, InstallingConfigDepsLog, LifecycleLog, LinkLog, LockfileVerificationLog, PackageImportMethodLog, PackageManifestLog, PeerDependencyIssuesLog, ProgressLog, PromptLog, RegistryLog, RequestRetryLog, RootLog, ScopeLog, SkippedOptionalDependencyLog, StageLog, StatsLog, SummaryLog, UpdateCheckLog } from './all.js';
|
|
2
|
+
export * from './all.js';
|
|
3
|
+
export type Log = ContextLog | DeprecationLog | FetchingProgressLog | ExecutionTimeLog | HookLog | InstallCheckLog | InstallingConfigDepsLog | IgnoredScriptsLog | LifecycleLog | LinkLog | LockfileVerificationLog | PackageManifestLog | PackageImportMethodLog | PeerDependencyIssuesLog | ProgressLog | PromptLog | RegistryLog | RequestRetryLog | RootLog | ScopeLog | SkippedOptionalDependencyLog | StageLog | StatsLog | SummaryLog | UpdateCheckLog;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const installCheckLogger: import("@pnpm/logger").Logger<InstallCheckMessage>;
|
|
3
|
+
export interface InstallCheckMessage {
|
|
4
|
+
code: string;
|
|
5
|
+
pkgId: string;
|
|
6
|
+
}
|
|
7
|
+
export type InstallCheckLog = {
|
|
8
|
+
name: 'pnpm:install-check';
|
|
9
|
+
} & LogBase & InstallCheckMessage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const installingConfigDepsLogger: import("@pnpm/logger").Logger<InstallingConfigDepsMessage>;
|
|
3
|
+
export interface InstallingConfigDepsMessageBase {
|
|
4
|
+
status?: 'started' | 'done';
|
|
5
|
+
}
|
|
6
|
+
export interface InstallingConfigDepsStartedMessage extends InstallingConfigDepsMessageBase {
|
|
7
|
+
status: 'started';
|
|
8
|
+
}
|
|
9
|
+
export interface InstallingConfigDepsDoneMessage extends InstallingConfigDepsMessageBase {
|
|
10
|
+
deps: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}>;
|
|
14
|
+
status: 'done';
|
|
15
|
+
}
|
|
16
|
+
export type InstallingConfigDepsMessage = InstallingConfigDepsStartedMessage | InstallingConfigDepsDoneMessage;
|
|
17
|
+
export type InstallingConfigDepsLog = {
|
|
18
|
+
name: 'pnpm:installing-config-deps';
|
|
19
|
+
} & LogBase & InstallingConfigDepsMessage;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const lifecycleLogger: import("@pnpm/logger").Logger<LifecycleMessage>;
|
|
3
|
+
export interface LifecycleMessageBase {
|
|
4
|
+
depPath: string;
|
|
5
|
+
stage: string;
|
|
6
|
+
wd: string;
|
|
7
|
+
exitCode?: number;
|
|
8
|
+
line?: string;
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
script?: string;
|
|
11
|
+
stdio?: 'stdout' | 'stderr';
|
|
12
|
+
}
|
|
13
|
+
export interface StdioLifecycleMessage extends LifecycleMessageBase {
|
|
14
|
+
line: string;
|
|
15
|
+
stdio: 'stdout' | 'stderr';
|
|
16
|
+
}
|
|
17
|
+
export interface ExitLifecycleMessage extends LifecycleMessageBase {
|
|
18
|
+
exitCode: number;
|
|
19
|
+
optional: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ScriptLifecycleMessage extends LifecycleMessageBase {
|
|
22
|
+
script: string;
|
|
23
|
+
optional: boolean;
|
|
24
|
+
}
|
|
25
|
+
export type LifecycleMessage = StdioLifecycleMessage | ExitLifecycleMessage | ScriptLifecycleMessage;
|
|
26
|
+
export type LifecycleLog = {
|
|
27
|
+
name: 'pnpm:lifecycle';
|
|
28
|
+
} & LogBase & LifecycleMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const linkLogger: import("@pnpm/logger").Logger<LinkMessage>;
|
|
3
|
+
export interface LinkMessage {
|
|
4
|
+
target: string;
|
|
5
|
+
link: string;
|
|
6
|
+
}
|
|
7
|
+
export type LinkLog = {
|
|
8
|
+
name: 'pnpm:link';
|
|
9
|
+
} & LogBase & LinkMessage;
|
|
@@ -0,0 +1,57 @@
|
|
|
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' | 'cached';
|
|
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
|
+
/**
|
|
40
|
+
* Emitted instead of a `started`/`done` pair when the verification
|
|
41
|
+
* cache already holds a passing verdict for this lockfile content
|
|
42
|
+
* under the same (or stricter) policy, so the gate short-circuited
|
|
43
|
+
* without contacting the registry. Carries no `entries` count — the
|
|
44
|
+
* short-circuit happens before candidates are collected.
|
|
45
|
+
*/
|
|
46
|
+
export interface LockfileVerificationCachedMessage extends LockfileVerificationMessageBase {
|
|
47
|
+
status: 'cached';
|
|
48
|
+
/**
|
|
49
|
+
* ISO-8601 timestamp of the verification run the cached verdict was
|
|
50
|
+
* recorded by. Omitted when the cache record predates the field.
|
|
51
|
+
*/
|
|
52
|
+
verifiedAt?: string;
|
|
53
|
+
}
|
|
54
|
+
export type LockfileVerificationMessage = LockfileVerificationStartedMessage | LockfileVerificationDoneMessage | LockfileVerificationFailedMessage | LockfileVerificationCachedMessage;
|
|
55
|
+
export type LockfileVerificationLog = {
|
|
56
|
+
name: 'pnpm:lockfile-verification';
|
|
57
|
+
} & LogBase & LockfileVerificationMessage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const packageImportMethodLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface PackageImportMethodMessage {
|
|
4
|
+
method: 'clone' | 'hardlink' | 'copy';
|
|
5
|
+
}
|
|
6
|
+
export type PackageImportMethodLog = {
|
|
7
|
+
name: 'pnpm:package-import-method';
|
|
8
|
+
} & LogBase & PackageImportMethodMessage;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
import type { ProjectManifest } from '@pnpm/types';
|
|
3
|
+
export declare const packageManifestLogger: import("@pnpm/logger").Logger<PackageManifestMessage>;
|
|
4
|
+
export interface PackageManifestMessageBase {
|
|
5
|
+
prefix: string;
|
|
6
|
+
initial?: ProjectManifest;
|
|
7
|
+
updated?: ProjectManifest;
|
|
8
|
+
}
|
|
9
|
+
export interface PackageManifestMessageInitial extends PackageManifestMessageBase {
|
|
10
|
+
initial: ProjectManifest;
|
|
11
|
+
}
|
|
12
|
+
export interface PackageManifestMessageUpdated extends PackageManifestMessageBase {
|
|
13
|
+
updated: ProjectManifest;
|
|
14
|
+
}
|
|
15
|
+
export type PackageManifestMessage = PackageManifestMessageInitial | PackageManifestMessageUpdated;
|
|
16
|
+
export type PackageManifestLog = {
|
|
17
|
+
name: 'pnpm:package-manifest';
|
|
18
|
+
} & LogBase & PackageManifestMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase, type Logger } from '@pnpm/logger';
|
|
2
|
+
import type { PeerDependencyIssuesByProjects } from '@pnpm/types';
|
|
3
|
+
export declare const peerDependencyIssuesLogger: Logger<PeerDependencyIssuesMessage>;
|
|
4
|
+
export interface PeerDependencyIssuesMessage {
|
|
5
|
+
issuesByProjects: PeerDependencyIssuesByProjects;
|
|
6
|
+
}
|
|
7
|
+
export type PeerDependencyIssuesLog = {
|
|
8
|
+
name: 'pnpm:peer-dependency-issues';
|
|
9
|
+
} & LogBase & PeerDependencyIssuesMessage;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type LogBase, type Logger } from '@pnpm/logger';
|
|
2
|
+
export declare const progressLogger: Logger<ProgressMessage>;
|
|
3
|
+
export type ProgressMessage = {
|
|
4
|
+
packageId: string;
|
|
5
|
+
requester: string;
|
|
6
|
+
status: 'fetched' | 'found_in_store' | 'resolved';
|
|
7
|
+
} | {
|
|
8
|
+
status: 'imported';
|
|
9
|
+
method: string;
|
|
10
|
+
requester: string;
|
|
11
|
+
to: string;
|
|
12
|
+
};
|
|
13
|
+
export type ProgressLog = {
|
|
14
|
+
name: 'pnpm:progress';
|
|
15
|
+
} & LogBase & ProgressMessage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const promptLogger: import("@pnpm/logger").Logger<PromptMessage>;
|
|
3
|
+
export interface PromptMessage {
|
|
4
|
+
/**
|
|
5
|
+
* Emitted around an interactive prompt so the default reporter can hold its
|
|
6
|
+
* progress redraws while the prompt owns the terminal — otherwise the next
|
|
7
|
+
* redraw erases the prompt rendered below the frame (pnpm/pnpm#13019).
|
|
8
|
+
*/
|
|
9
|
+
action: 'start' | 'end';
|
|
10
|
+
}
|
|
11
|
+
export type PromptLog = {
|
|
12
|
+
name: 'pnpm:prompt';
|
|
13
|
+
} & LogBase & PromptMessage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const removalLogger: import("@pnpm/logger").Logger<string>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Report one package materialized from the content-addressable store into
|
|
3
|
+
* the virtual store.
|
|
4
|
+
*
|
|
5
|
+
* The import itself runs in a `@pnpm/worker` thread, whose loggers are not
|
|
6
|
+
* connected to the reporter, so both channels are emitted here — in the main
|
|
7
|
+
* process — from the method the worker reported back. `pnpm:progress` drives
|
|
8
|
+
* the "imported" counter; `pnpm:package-import-method` tells the reporter
|
|
9
|
+
* which wording to use for the store block it prints on a first install.
|
|
10
|
+
*/
|
|
11
|
+
export declare function reportPackageImported(opts: {
|
|
12
|
+
method: string;
|
|
13
|
+
requester: string;
|
|
14
|
+
to: string;
|
|
15
|
+
}): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { packageImportMethodLogger } from './packageImportMethodLogger.js';
|
|
2
|
+
import { progressLogger } from './progressLogger.js';
|
|
3
|
+
/**
|
|
4
|
+
* Report one package materialized from the content-addressable store into
|
|
5
|
+
* the virtual store.
|
|
6
|
+
*
|
|
7
|
+
* The import itself runs in a `@pnpm/worker` thread, whose loggers are not
|
|
8
|
+
* connected to the reporter, so both channels are emitted here — in the main
|
|
9
|
+
* process — from the method the worker reported back. `pnpm:progress` drives
|
|
10
|
+
* the "imported" counter; `pnpm:package-import-method` tells the reporter
|
|
11
|
+
* which wording to use for the store block it prints on a first install.
|
|
12
|
+
*/
|
|
13
|
+
export function reportPackageImported(opts) {
|
|
14
|
+
progressLogger.debug({
|
|
15
|
+
method: opts.method,
|
|
16
|
+
requester: opts.requester,
|
|
17
|
+
status: 'imported',
|
|
18
|
+
to: opts.to,
|
|
19
|
+
});
|
|
20
|
+
if (isKnownImportMethod(opts.method)) {
|
|
21
|
+
packageImportMethodLogger.debug({ method: opts.method });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function isKnownImportMethod(method) {
|
|
25
|
+
return method === 'clone' || method === 'hardlink' || method === 'copy';
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=reportPackageImported.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const requestRetryLogger: import("@pnpm/logger").Logger<RequestRetryMessage>;
|
|
3
|
+
export interface RequestRetryError {
|
|
4
|
+
name?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
status?: number;
|
|
7
|
+
statusCode?: number;
|
|
8
|
+
errno?: number;
|
|
9
|
+
code?: string;
|
|
10
|
+
cause?: {
|
|
11
|
+
code?: string;
|
|
12
|
+
errno?: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export interface RequestRetryMessage {
|
|
16
|
+
attempt: number;
|
|
17
|
+
error: RequestRetryError;
|
|
18
|
+
maxRetries: number;
|
|
19
|
+
method: string;
|
|
20
|
+
timeout: number;
|
|
21
|
+
url: string;
|
|
22
|
+
}
|
|
23
|
+
export type RequestRetryLog = {
|
|
24
|
+
name: 'pnpm:request-retry';
|
|
25
|
+
} & LogBase & RequestRetryMessage;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const rootLogger: import("@pnpm/logger").Logger<RootMessage>;
|
|
3
|
+
export type DependencyType = 'prod' | 'dev' | 'optional';
|
|
4
|
+
export type RootMessage = {
|
|
5
|
+
prefix: string;
|
|
6
|
+
} & ({
|
|
7
|
+
added: {
|
|
8
|
+
id?: string;
|
|
9
|
+
name: string;
|
|
10
|
+
realName: string;
|
|
11
|
+
version?: string;
|
|
12
|
+
dependencyType?: DependencyType;
|
|
13
|
+
latest?: string;
|
|
14
|
+
linkedFrom?: string;
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
removed: {
|
|
18
|
+
name: string;
|
|
19
|
+
version?: string;
|
|
20
|
+
dependencyType?: DependencyType;
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
export type RootLog = {
|
|
24
|
+
name: 'pnpm:root';
|
|
25
|
+
} & LogBase & RootMessage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const scopeLogger: import("@pnpm/logger").Logger<ScopeMessage>;
|
|
3
|
+
export interface ScopeMessage {
|
|
4
|
+
selected: number;
|
|
5
|
+
total?: number;
|
|
6
|
+
workspacePrefix?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ScopeLog = {
|
|
9
|
+
name: 'pnpm:scope';
|
|
10
|
+
} & LogBase & ScopeMessage;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const skippedOptionalDependencyLogger: import("@pnpm/logger").Logger<SkippedOptionalDependencyMessage>;
|
|
3
|
+
export type SkippedOptionalDependencyLog = {
|
|
4
|
+
name: 'pnpm:skipped-optional-dependency';
|
|
5
|
+
} & LogBase & SkippedOptionalDependencyMessage;
|
|
6
|
+
export type SkippedOptionalDependencyMessage = {
|
|
7
|
+
details?: string;
|
|
8
|
+
parents?: Array<{
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
version: string;
|
|
12
|
+
}>;
|
|
13
|
+
prefix: string;
|
|
14
|
+
} & ({
|
|
15
|
+
package: {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
version: string;
|
|
19
|
+
};
|
|
20
|
+
reason: 'unsupported_engine' | 'unsupported_platform' | 'build_failure';
|
|
21
|
+
} | {
|
|
22
|
+
package: {
|
|
23
|
+
id?: never;
|
|
24
|
+
name: string | undefined;
|
|
25
|
+
version: string | undefined;
|
|
26
|
+
bareSpecifier: string;
|
|
27
|
+
};
|
|
28
|
+
reason: 'resolution_failure';
|
|
29
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const stageLogger: import("@pnpm/logger").Logger<StageMessage>;
|
|
3
|
+
export interface StageMessage {
|
|
4
|
+
prefix: string;
|
|
5
|
+
stage: 'resolution_started' | 'resolution_done' | 'importing_started' | 'importing_done';
|
|
6
|
+
}
|
|
7
|
+
export type StageLog = {
|
|
8
|
+
name: 'pnpm:stage';
|
|
9
|
+
} & LogBase & StageMessage;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const statsLogger: import("@pnpm/logger").Logger<StatsMessage>;
|
|
3
|
+
export interface StatsMessageBase {
|
|
4
|
+
prefix: string;
|
|
5
|
+
added?: number;
|
|
6
|
+
removed?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface StatsMessageAdded extends StatsMessageBase {
|
|
9
|
+
added: number;
|
|
10
|
+
removed?: never;
|
|
11
|
+
}
|
|
12
|
+
export interface StatsMessageRemoved extends StatsMessageBase {
|
|
13
|
+
added?: never;
|
|
14
|
+
removed: number;
|
|
15
|
+
}
|
|
16
|
+
export type StatsMessage = StatsMessageAdded | StatsMessageRemoved;
|
|
17
|
+
export type StatsLog = {
|
|
18
|
+
name: 'pnpm:stats';
|
|
19
|
+
} & LogBase & StatsMessage;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const summaryLogger: import("@pnpm/logger").Logger<SummaryMessage>;
|
|
3
|
+
export interface SummaryMessage {
|
|
4
|
+
prefix: string;
|
|
5
|
+
}
|
|
6
|
+
export type SummaryLog = {
|
|
7
|
+
name: 'pnpm:summary';
|
|
8
|
+
} & LogBase & SummaryMessage;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type LogBase } from '@pnpm/logger';
|
|
2
|
+
export declare const updateCheckLogger: import("@pnpm/logger").Logger<unknown>;
|
|
3
|
+
export interface UpdateCheckMessage {
|
|
4
|
+
currentVersion: string;
|
|
5
|
+
latestVersion: string;
|
|
6
|
+
}
|
|
7
|
+
export type UpdateCheckLog = {
|
|
8
|
+
name: 'pnpm:update-check';
|
|
9
|
+
} & LogBase & UpdateCheckMessage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/core-loggers",
|
|
3
|
-
"version": "1100.
|
|
3
|
+
"version": "1100.3.0",
|
|
4
4
|
"description": "Core loggers of pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"test": "test"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@pnpm/types": "1101.
|
|
33
|
+
"@pnpm/types": "1101.7.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@pnpm/logger": "^1100.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@pnpm/core-loggers": "1100.
|
|
39
|
+
"@pnpm/core-loggers": "1100.3.0",
|
|
40
40
|
"@pnpm/logger": "1100.0.0"
|
|
41
41
|
},
|
|
42
42
|
"engines": {
|