@segment/actions-shared 1.153.0 → 1.153.2-async
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/dist/engage/utils/track.d.ts +14 -14
- package/package.json +6 -7
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ContextFromDecorator } from './operationTracking';
|
|
2
|
-
export declare const track: ((decoratorArgs?: ({
|
|
2
|
+
export declare const track: ((decoratorArgs?: (import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
3
|
+
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | ConstructorParameters<typeof import("@segment/actions-core/*").IntegrationError>) | undefined;
|
|
4
|
+
} & {
|
|
3
5
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
4
6
|
} & {
|
|
5
7
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
6
8
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
7
|
-
} & import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
8
|
-
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | ConstructorParameters<typeof import("@segment/actions-core/*").IntegrationError>) | undefined;
|
|
9
9
|
} & {
|
|
10
10
|
shouldStats?: (args: import("./operationTracking").OperationStatsEventArgs) => boolean | void;
|
|
11
11
|
}) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
|
|
@@ -15,8 +15,14 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
15
15
|
}) | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
_contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
logs: string[];
|
|
19
|
+
logMetadata?: Record<string, unknown>;
|
|
20
|
+
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs;
|
|
21
|
+
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
22
|
+
} & {
|
|
23
|
+
decoratorArgs?: {
|
|
24
|
+
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | ConstructorParameters<typeof import("@segment/actions-core/*").IntegrationError>) | undefined;
|
|
25
|
+
} | undefined;
|
|
20
26
|
} & {
|
|
21
27
|
decoratorArgs?: {
|
|
22
28
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
@@ -24,21 +30,15 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
24
30
|
} & {
|
|
25
31
|
parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
|
|
26
32
|
sharedContext: {};
|
|
33
|
+
} & {
|
|
34
|
+
start?: number;
|
|
35
|
+
duration?: number;
|
|
27
36
|
} & {
|
|
28
37
|
onFinally: (() => void)[];
|
|
29
38
|
decoratorArgs?: {
|
|
30
39
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
31
40
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
32
41
|
} | undefined;
|
|
33
|
-
} & {
|
|
34
|
-
logs: string[];
|
|
35
|
-
logMetadata?: Record<string, unknown>;
|
|
36
|
-
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs;
|
|
37
|
-
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
38
|
-
} & {
|
|
39
|
-
decoratorArgs?: {
|
|
40
|
-
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | ConstructorParameters<typeof import("@segment/actions-core/*").IntegrationError>) | undefined;
|
|
41
|
-
} | undefined;
|
|
42
42
|
} & {
|
|
43
43
|
tags: string[];
|
|
44
44
|
sharedContext: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/actions-shared",
|
|
3
3
|
"description": "Shared destination action methods and definitions.",
|
|
4
|
-
"version": "1.153.
|
|
4
|
+
"version": "1.153.2-async",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@amplitude/ua-parser-js": "^0.7.25",
|
|
40
|
-
"@segment/actions-core": "^3.168.
|
|
40
|
+
"@segment/actions-core": "^3.168.2-async",
|
|
41
41
|
"cheerio": "^1.0.0-rc.10",
|
|
42
42
|
"dayjs": "^1.10.7",
|
|
43
43
|
"escape-goat": "^3",
|
|
44
|
-
"liquidjs": "^10.
|
|
45
|
-
"lodash": "^4.
|
|
44
|
+
"liquidjs": "^10.25.7",
|
|
45
|
+
"lodash": "^4.18.1"
|
|
46
46
|
},
|
|
47
47
|
"jest": {
|
|
48
48
|
"preset": "ts-jest",
|
|
@@ -63,6 +63,5 @@
|
|
|
63
63
|
"setupFilesAfterEnv": [
|
|
64
64
|
"<rootDir>/test/setup-after-env.ts"
|
|
65
65
|
]
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
}
|
|
66
|
+
}
|
|
67
|
+
}
|