@pnpm/core-loggers 10.0.4 → 10.0.6
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,22 @@
|
|
|
1
1
|
import { type LogBase, type Logger } from '@pnpm/logger';
|
|
2
2
|
export declare const fetchingProgressLogger: Logger<FetchingProgressMessage>;
|
|
3
|
-
export
|
|
4
|
-
attempt
|
|
3
|
+
export interface FetchingProgressMessageBase {
|
|
4
|
+
attempt?: number;
|
|
5
|
+
downloaded?: number;
|
|
5
6
|
packageId: string;
|
|
7
|
+
size?: number | null;
|
|
8
|
+
status?: 'started' | 'in_progress';
|
|
9
|
+
}
|
|
10
|
+
export interface FetchingProgressMessageStarted extends FetchingProgressMessageBase {
|
|
11
|
+
attempt: number;
|
|
6
12
|
size: number | null;
|
|
7
13
|
status: 'started';
|
|
8
|
-
}
|
|
14
|
+
}
|
|
15
|
+
export interface FetchingProgressMessageInProgress extends FetchingProgressMessageBase {
|
|
9
16
|
downloaded: number;
|
|
10
|
-
packageId: string;
|
|
11
17
|
status: 'in_progress';
|
|
12
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export type FetchingProgressMessage = FetchingProgressMessageStarted | FetchingProgressMessageInProgress;
|
|
13
20
|
export type FetchingProgressLog = {
|
|
14
21
|
name: 'pnpm:fetching-progress';
|
|
15
22
|
} & LogBase & FetchingProgressMessage;
|
package/lib/lifecycleLogger.d.ts
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import { type LogBase } from '@pnpm/logger';
|
|
2
2
|
export declare const lifecycleLogger: import("@pnpm/logger").Logger<LifecycleMessage>;
|
|
3
|
-
export
|
|
3
|
+
export interface LifecycleMessageBase {
|
|
4
4
|
depPath: string;
|
|
5
5
|
stage: string;
|
|
6
6
|
wd: string;
|
|
7
|
-
|
|
7
|
+
exitCode?: number;
|
|
8
|
+
line?: string;
|
|
9
|
+
optional?: boolean;
|
|
10
|
+
script?: string;
|
|
11
|
+
stdio?: 'stdout' | 'stderr';
|
|
12
|
+
}
|
|
13
|
+
export interface StdioLifecycleMessage extends LifecycleMessageBase {
|
|
8
14
|
line: string;
|
|
9
15
|
stdio: 'stdout' | 'stderr';
|
|
10
|
-
}
|
|
16
|
+
}
|
|
17
|
+
export interface ExitLifecycleMessage extends LifecycleMessageBase {
|
|
11
18
|
exitCode: number;
|
|
12
19
|
optional: boolean;
|
|
13
|
-
}
|
|
20
|
+
}
|
|
21
|
+
export interface ScriptLifecycleMessage extends LifecycleMessageBase {
|
|
14
22
|
script: string;
|
|
15
23
|
optional: boolean;
|
|
16
|
-
}
|
|
24
|
+
}
|
|
25
|
+
export type LifecycleMessage = StdioLifecycleMessage | ExitLifecycleMessage | ScriptLifecycleMessage;
|
|
17
26
|
export type LifecycleLog = {
|
|
18
27
|
name: 'pnpm:lifecycle';
|
|
19
28
|
} & LogBase & LifecycleMessage;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { type LogBase } from '@pnpm/logger';
|
|
2
2
|
import { type ProjectManifest } from '@pnpm/types';
|
|
3
3
|
export declare const packageManifestLogger: import("@pnpm/logger").Logger<PackageManifestMessage>;
|
|
4
|
-
export
|
|
4
|
+
export interface PackageManifestMessageBase {
|
|
5
5
|
prefix: string;
|
|
6
|
-
|
|
6
|
+
initial?: ProjectManifest;
|
|
7
|
+
updated?: ProjectManifest;
|
|
8
|
+
}
|
|
9
|
+
export interface PackageManifestMessageInitial extends PackageManifestMessageBase {
|
|
7
10
|
initial: ProjectManifest;
|
|
8
|
-
}
|
|
11
|
+
}
|
|
12
|
+
export interface PackageManifestMessageUpdated extends PackageManifestMessageBase {
|
|
9
13
|
updated: ProjectManifest;
|
|
10
|
-
}
|
|
14
|
+
}
|
|
15
|
+
export type PackageManifestMessage = PackageManifestMessageInitial | PackageManifestMessageUpdated;
|
|
11
16
|
export type PackageManifestLog = {
|
|
12
17
|
name: 'pnpm:package-manifest';
|
|
13
18
|
} & LogBase & PackageManifestMessage;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type LogBase } from '@pnpm/logger';
|
|
2
2
|
export declare const requestRetryLogger: import("@pnpm/logger").Logger<RequestRetryMessage>;
|
|
3
|
+
export interface RequestRetryError extends Error {
|
|
4
|
+
httpStatusCode?: string;
|
|
5
|
+
status?: string;
|
|
6
|
+
errno?: number;
|
|
7
|
+
code?: string;
|
|
8
|
+
}
|
|
3
9
|
export interface RequestRetryMessage {
|
|
4
10
|
attempt: number;
|
|
5
|
-
error:
|
|
11
|
+
error: RequestRetryError;
|
|
6
12
|
maxRetries: number;
|
|
7
13
|
method: string;
|
|
8
14
|
timeout: number;
|
package/lib/statsLogger.d.ts
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import { type LogBase } from '@pnpm/logger';
|
|
2
2
|
export declare const statsLogger: import("@pnpm/logger").Logger<StatsMessage>;
|
|
3
|
-
export
|
|
3
|
+
export interface StatsMessageBase {
|
|
4
4
|
prefix: string;
|
|
5
|
-
|
|
5
|
+
added?: number;
|
|
6
|
+
removed?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface StatsMessageAdded extends StatsMessageBase {
|
|
6
9
|
added: number;
|
|
7
|
-
|
|
10
|
+
removed?: never;
|
|
11
|
+
}
|
|
12
|
+
export interface StatsMessageRemoved extends StatsMessageBase {
|
|
13
|
+
added?: never;
|
|
8
14
|
removed: number;
|
|
9
|
-
}
|
|
15
|
+
}
|
|
16
|
+
export type StatsMessage = StatsMessageAdded | StatsMessageRemoved;
|
|
10
17
|
export type StatsLog = {
|
|
11
18
|
name: 'pnpm:stats';
|
|
12
19
|
} & LogBase & StatsMessage;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/core-loggers",
|
|
3
3
|
"description": "Core loggers of pnpm",
|
|
4
|
-
"version": "10.0.
|
|
4
|
+
"version": "10.0.6",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/pnpm/pnpm/issues"
|
|
7
7
|
},
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
"!*.map"
|
|
13
13
|
],
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@pnpm/logger": "^5.
|
|
15
|
+
"@pnpm/logger": "^5.1.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@pnpm/core-loggers": "10.0.
|
|
18
|
+
"@pnpm/core-loggers": "10.0.6",
|
|
19
|
+
"@pnpm/logger": "5.2.0"
|
|
19
20
|
},
|
|
20
21
|
"directories": {
|
|
21
22
|
"test": "test"
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
},
|
|
30
31
|
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/core-loggers",
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@pnpm/types": "
|
|
33
|
+
"@pnpm/types": "12.1.0"
|
|
33
34
|
},
|
|
34
35
|
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/core-loggers#readme",
|
|
35
36
|
"funding": "https://opencollective.com/pnpm",
|