@cdktn/commons 0.25.0-pre.53 → 0.25.0-pre.55
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/build/config.d.ts +5 -0
- package/build/config.d.ts.map +1 -1
- package/build/config.js +26 -1
- package/build/config.test.js +23 -1
- package/build/construct-maker-target.d.ts +2 -0
- package/build/construct-maker-target.d.ts.map +1 -1
- package/build/construct-maker-target.js +3 -1
- package/build/debug.js +11 -11
- package/build/debug.test.js +9 -2
- package/build/errors.d.ts +3 -0
- package/build/errors.d.ts.map +1 -1
- package/build/errors.js +31 -23
- package/build/errors.test.d.ts +2 -0
- package/build/errors.test.d.ts.map +1 -0
- package/build/errors.test.js +24 -0
- package/build/identity.d.ts +3 -0
- package/build/identity.d.ts.map +1 -0
- package/build/identity.js +88 -0
- package/build/index.d.ts +2 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -2
- package/build/process-state.d.ts +2 -0
- package/build/process-state.d.ts.map +1 -0
- package/build/process-state.js +15 -0
- package/build/telemetry.d.ts +24 -0
- package/build/telemetry.d.ts.map +1 -0
- package/build/telemetry.js +721 -0
- package/build/telemetry.test.d.ts +2 -0
- package/build/telemetry.test.d.ts.map +1 -0
- package/build/telemetry.test.js +1501 -0
- package/build/terraform.d.ts +10 -1
- package/build/terraform.d.ts.map +1 -1
- package/build/terraform.js +43 -8
- package/build/terraform.test.d.ts +2 -0
- package/build/terraform.test.d.ts.map +1 -0
- package/build/terraform.test.js +136 -0
- package/package.json +3 -3
- package/build/checkpoint.d.ts +0 -19
- package/build/checkpoint.d.ts.map +0 -1
- package/build/checkpoint.js +0 -185
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type AttributeValue = string | number | boolean;
|
|
2
|
+
type Attributes = Record<string, AttributeValue>;
|
|
3
|
+
export declare const COMMAND_ERROR_TYPES: readonly ["Usage", "External", "Internal", "unexpected"];
|
|
4
|
+
export type CommandErrorType = (typeof COMMAND_ERROR_TYPES)[number];
|
|
5
|
+
export declare function getUsageTelemetryConsent(projectPath?: string): boolean | undefined;
|
|
6
|
+
export declare const PACKAGE_MANAGERS: readonly ["npm", "pnpm", "yarn", "yarn-berry", "pip", "pipenv", "maven", "gradle", "nuget", "go"];
|
|
7
|
+
export type PackageManager = (typeof PACKAGE_MANAGERS)[number];
|
|
8
|
+
export declare function normalizePackageManager(value: unknown): PackageManager | undefined;
|
|
9
|
+
export declare function setUsageTelemetryEnabled(enabled: boolean | undefined): void;
|
|
10
|
+
export declare function hasCapturedUsageTelemetryDecision(): boolean;
|
|
11
|
+
export declare function isUsageTelemetryEnabled(projectPath?: string): boolean;
|
|
12
|
+
export declare function getProjectTargetAttributes(projectPath?: string): Attributes;
|
|
13
|
+
export declare function setProjectTargetAttributes(attributes: Attributes | undefined): void;
|
|
14
|
+
export declare function sendErrorTelemetry(type: string, command: string): void;
|
|
15
|
+
export declare function flushTelemetry(timeoutMs?: number): Promise<void>;
|
|
16
|
+
/** What triggered a synth other than the command itself. */
|
|
17
|
+
export declare const SYNTH_ORIGINS: readonly ["watch"];
|
|
18
|
+
export type SynthOrigin = (typeof SYNTH_ORIGINS)[number];
|
|
19
|
+
export declare function startCommandTelemetry(command: string, projectPath?: string): Promise<void>;
|
|
20
|
+
/** Forgets the started run; tests run many commands in one process. */
|
|
21
|
+
export declare function resetCommandTelemetry(): void;
|
|
22
|
+
export declare function sendTelemetry(command: string, payload: Record<string, any>): Promise<void>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/telemetry.ts"],"names":[],"mappings":"AAqBA,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAChD,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEjD,eAAO,MAAM,mBAAmB,0DAKtB,CAA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