@segment/action-destinations 3.259.0-staging-2b1cc53dc → 3.259.0-staging-65122a28d
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/destinations/engage/utils/EngageActionPerformer.js +2 -17
- package/dist/destinations/engage/utils/EngageActionPerformer.js.map +1 -1
- package/dist/destinations/engage/utils/ResponseError.d.ts +1 -0
- package/dist/destinations/engage/utils/ResponseError.js.map +1 -1
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.d.ts +0 -3
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js +0 -15
- package/dist/destinations/engage/utils/operationTracking/OperationFinallyHooks.js.map +1 -1
- package/dist/destinations/engage/utils/track.d.ts +17 -20
- package/package.json +1 -1
|
@@ -17,7 +17,6 @@ const isDestinationActionService_1 = require("./isDestinationActionService");
|
|
|
17
17
|
const ResponseError_1 = require("./ResponseError");
|
|
18
18
|
const IntegrationErrorWrapper_1 = require("./IntegrationErrorWrapper");
|
|
19
19
|
const truncate_1 = __importDefault(require("lodash/truncate"));
|
|
20
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
21
20
|
class EngageActionPerformer {
|
|
22
21
|
constructor(requestClient, executeInput) {
|
|
23
22
|
this.requestClient = requestClient;
|
|
@@ -50,6 +49,7 @@ class EngageActionPerformer {
|
|
|
50
49
|
const errorCode = errorDetails.code ?? respError.code ?? 'etimedout';
|
|
51
50
|
respError.code = errorCode;
|
|
52
51
|
errorDetails.code = errorCode;
|
|
52
|
+
respError.retry = true;
|
|
53
53
|
}
|
|
54
54
|
if (errorDetails.code)
|
|
55
55
|
op.tags.push(`response_code:${errorDetails.code}`);
|
|
@@ -76,20 +76,6 @@ class EngageActionPerformer {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
|
-
op?.onCatch.push(() => {
|
|
80
|
-
const respError = op?.error;
|
|
81
|
-
if (respError) {
|
|
82
|
-
const errorDetails = ResponseError_1.getErrorDetails(respError);
|
|
83
|
-
const msgLowercare = errorDetails?.message?.toLowerCase();
|
|
84
|
-
const isTimeoutErrorInOnCatch = msgLowercare?.includes('timeout') ||
|
|
85
|
-
msgLowercare?.includes('timedout') ||
|
|
86
|
-
msgLowercare?.includes('exceeded the deadline') ||
|
|
87
|
-
errorDetails.code?.toLowerCase().includes('etimedout');
|
|
88
|
-
if (isTimeoutErrorInOnCatch) {
|
|
89
|
-
op.error = new actions_core_1.RetryableError('Timeout error throwing Retryable, retrying...');
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
});
|
|
93
79
|
return await this.requestClient(url, options);
|
|
94
80
|
}
|
|
95
81
|
redactPii(pii) {
|
|
@@ -148,8 +134,7 @@ __decorate([
|
|
|
148
134
|
__decorate([
|
|
149
135
|
track_1.track({
|
|
150
136
|
onTry: addUrlToLog,
|
|
151
|
-
onFinally: addUrlToLog
|
|
152
|
-
onCatch: addUrlToLog
|
|
137
|
+
onFinally: addUrlToLog
|
|
153
138
|
})
|
|
154
139
|
], EngageActionPerformer.prototype, "request", null);
|
|
155
140
|
exports.EngageActionPerformer = EngageActionPerformer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EngageActionPerformer.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/EngageActionPerformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,iDAA6C;AAC7C,+CAA2C;AAC3C,mCAAiD;AACjD,6EAAyE;AACzE,mDAAgE;AAGhE,uEAAmE;AAEnE,+DAAsC;
|
|
1
|
+
{"version":3,"file":"EngageActionPerformer.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/EngageActionPerformer.ts"],"names":[],"mappings":";;;;;;;;;;;;AAIA,iDAA6C;AAC7C,+CAA2C;AAC3C,mCAAiD;AACjD,6EAAyE;AACzE,mDAAgE;AAGhE,uEAAmE;AAEnE,+DAAsC;AAKtC,MAAsB,qBAAqB;IASzC,YAAqB,aAA4B,EAAW,Y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CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAA;IAChC,IAAI,OAAO,CAAC,IAAI,IAAI,MAAM,EAAE;QAC1B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAQ,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;KACpD;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseError.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/ResponseError.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ResponseError.js","sourceRoot":"","sources":["../../../../src/destinations/engage/utils/ResponseError.ts"],"names":[],"mappings":";;;AA4BA,SAAgB,eAAe,CAAC,KAAU;IAGxC,MAAM,SAAS,GAAG,KAAsB,CAAA;IAGxC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAA;IAI7D,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAA;IAE7D,MAAM,OAAO,GAAG;QACd,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,WAAW,EAAE,IAAI;QAC7C,SAAS,CAAC,OAAO;QACjB,SAAS,CAAC,QAAQ,EAAE,UAAU,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU,CAAC;YAC3F,CAAC,CAAC,SAAS,CAAC,QAAQ,EAAE,UAAU;YAChC,CAAC,CAAC,SAAS;QAGb,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO;QAClC,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO;KAChD;SACE,MAAM,CAAC,OAAO,CAAC;SACf,IAAI,CAAC,IAAI,CAAC,CAAA;IACb,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAA;AACpD,CAAC;AA1BD,0CA0BC"}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { TryCatchFinallyContext, TryCatchFinallyHook } from './wrapTryCatchFinallyPromisable';
|
|
2
2
|
export declare type OperationFinallyHooksContext<TContext extends TryCatchFinallyContext = TryCatchFinallyContext> = TContext & {
|
|
3
3
|
onFinally: (() => void)[];
|
|
4
|
-
onCatch: (() => void)[];
|
|
5
4
|
decoratorArgs?: {
|
|
6
5
|
onTry?: (ctx: TContext) => void;
|
|
7
6
|
onFinally?: (ctx: TContext) => void;
|
|
8
|
-
onCatch?: (ctx: TContext) => void;
|
|
9
7
|
};
|
|
10
8
|
};
|
|
11
9
|
export declare class OperationFinallyHooks {
|
|
@@ -13,5 +11,4 @@ export declare class OperationFinallyHooks {
|
|
|
13
11
|
static getPriority(): number;
|
|
14
12
|
static onTry<TContext extends TryCatchFinallyContext>(ctx: OperationFinallyHooksContext<TContext>): void;
|
|
15
13
|
static onFinally<TContext extends TryCatchFinallyContext>(ctx: OperationFinallyHooksContext<TContext>): void;
|
|
16
|
-
static onCatch<TContext extends TryCatchFinallyContext>(ctx: OperationFinallyHooksContext<TContext>): void;
|
|
17
14
|
}
|
|
@@ -10,7 +10,6 @@ class OperationFinallyHooks {
|
|
|
10
10
|
}
|
|
11
11
|
static onTry(ctx) {
|
|
12
12
|
ctx.onFinally = [];
|
|
13
|
-
ctx.onCatch = [];
|
|
14
13
|
ctx.decoratorArgs?.onTry?.(ctx);
|
|
15
14
|
}
|
|
16
15
|
static onFinally(ctx) {
|
|
@@ -27,20 +26,6 @@ class OperationFinallyHooks {
|
|
|
27
26
|
}
|
|
28
27
|
ctx.decoratorArgs?.onFinally?.(ctx);
|
|
29
28
|
}
|
|
30
|
-
static onCatch(ctx) {
|
|
31
|
-
for (const hook of ctx.onCatch) {
|
|
32
|
-
try {
|
|
33
|
-
hook();
|
|
34
|
-
}
|
|
35
|
-
catch (e) {
|
|
36
|
-
const error = e;
|
|
37
|
-
const loggerCtx = ctx;
|
|
38
|
-
if (loggerCtx.logs)
|
|
39
|
-
loggerCtx.logs.push(`Error in onCatch hook: ${error?.message || error.toString()}`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
ctx.decoratorArgs?.onFinally?.(ctx);
|
|
43
|
-
}
|
|
44
29
|
}
|
|
45
30
|
exports.OperationFinallyHooks = OperationFinallyHooks;
|
|
46
31
|
//# sourceMappingURL=OperationFinallyHooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationFinallyHooks.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/utils/operationTracking/OperationFinallyHooks.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"OperationFinallyHooks.js","sourceRoot":"","sources":["../../../../../src/destinations/engage/utils/operationTracking/OperationFinallyHooks.ts"],"names":[],"mappings":";;;AAeA,MAAa,qBAAqB;IAChC,MAAM,CAAC,sBAAsB,CAAC,IAAkC;QAC9D,OAAO,IAAI,CAAA;IACb,CAAC;IACD,MAAM,CAAC,WAAW;QAChB,OAAO,GAAG,CAAA;IACZ,CAAC;IAED,MAAM,CAAC,KAAK,CAA0C,GAA2C;QAC/F,GAAG,CAAC,SAAS,GAAG,EAAE,CAAA;QAClB,GAAG,CAAC,aAAa,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAAA;IACjC,CAAC;IAED,MAAM,CAAC,SAAS,CAA0C,GAA2C;QACnG,KAAK,MAAM,IAAI,IAAI,GAAG,CAAC,SAAS,EAAE;YAChC,IAAI;gBACF,IAAI,EAAE,CAAA;aACP;YAAC,OAAO,CAAC,EAAE;gBACV,MAAM,KAAK,GAAG,CAAU,CAAA;gBAExB,MAAM,SAAS,GAAG,GAAsC,CAAA;gBACxD,IAAI,SAAS,CAAC,IAAI;oBAAE,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B,KAAK,EAAE,OAAO,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;aAC1G;SACF;QACD,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,CAAC,GAAG,CAAC,CAAA;IACrC,CAAC;CACF;AA1BD,sDA0BC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { ContextFromDecorator } from './operationTracking';
|
|
2
2
|
export declare const track: ((decoratorArgs?: ({
|
|
3
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | 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
|
-
|
|
8
|
-
} & {
|
|
9
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
10
|
-
} & {
|
|
9
|
+
} & import("./operationTracking").OperationLoggerDecoratorArgs & {
|
|
11
10
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
|
12
11
|
}) | undefined) => import("./operationTracking").GenericMethodDecorator<(this: any, ...args: any[]) => any>) & {
|
|
13
12
|
getCurrentOperation(classInstance: any): (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
@@ -16,8 +15,13 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
16
15
|
}) | undefined;
|
|
17
16
|
} & {
|
|
18
17
|
_contextType: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & {
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
tags: string[];
|
|
19
|
+
sharedContext: {
|
|
20
|
+
tags: string[];
|
|
21
|
+
};
|
|
22
|
+
decoratorArgs?: {
|
|
23
|
+
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
24
|
+
} | undefined;
|
|
21
25
|
} & {
|
|
22
26
|
decoratorArgs?: {
|
|
23
27
|
onError?: ((ctx: import("./operationTracking").OperationErrorHandlerContext<import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>>) => void) | undefined;
|
|
@@ -26,26 +30,19 @@ export declare const track: ((decoratorArgs?: ({
|
|
|
26
30
|
parent?: (import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any> & any) | undefined;
|
|
27
31
|
sharedContext: {};
|
|
28
32
|
} & {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
|
|
32
|
-
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
33
|
+
start?: number | undefined;
|
|
34
|
+
duration?: number | undefined;
|
|
33
35
|
} & {
|
|
34
36
|
onFinally: (() => void)[];
|
|
35
|
-
onCatch: (() => void)[];
|
|
36
37
|
decoratorArgs?: {
|
|
37
38
|
onTry?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
38
39
|
onFinally?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
39
|
-
onCatch?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => void) | undefined;
|
|
40
40
|
} | undefined;
|
|
41
41
|
} & {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
decoratorArgs?: {
|
|
47
|
-
shouldStats?: ((args: import("./operationTracking").OperationStatsEventArgs) => boolean | void) | undefined;
|
|
48
|
-
} | undefined;
|
|
42
|
+
logs: string[];
|
|
43
|
+
logMetadata?: Record<string, unknown> | undefined;
|
|
44
|
+
decoratorArgs?: import("./operationTracking").OperationLoggerDecoratorArgs | undefined;
|
|
45
|
+
sharedContext: import("./operationTracking").OperationLoggerSharedContext;
|
|
49
46
|
} & {
|
|
50
47
|
decoratorArgs?: {
|
|
51
48
|
wrapIntegrationError?: ((ctx: import("./operationTracking").TryCatchFinallyContext<(this: any, ...args: any[]) => any>) => import("@segment/actions-core/*").IntegrationError | [message: string, code: string, status: number]) | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segment/action-destinations",
|
|
3
3
|
"description": "Destination Actions engine and definitions.",
|
|
4
|
-
"version": "3.259.0-staging-
|
|
4
|
+
"version": "3.259.0-staging-65122a28d",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|