@layerzerolabs/common-error-utils 0.2.90 → 0.2.91
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/package.json +6 -6
- package/dist/4HBD5QMD.cjs +0 -200
- package/dist/4HBD5QMD.cjs.map +0 -1
- package/dist/CSP5OI2I.cjs +0 -38
- package/dist/CSP5OI2I.cjs.map +0 -1
- package/dist/YJF4D23A.cjs +0 -8
- package/dist/YJF4D23A.cjs.map +0 -1
- package/dist/errors.cjs +0 -57
- package/dist/errors.cjs.map +0 -1
- package/dist/index.cjs +0 -62
- package/dist/index.cjs.map +0 -1
- package/dist/retry.cjs +0 -13
- package/dist/retry.cjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/common-error-utils",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.91",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
|
-
"require": "./dist/index.cjs",
|
|
10
9
|
"import": "./dist/index.js",
|
|
11
|
-
"default": "./dist/index.
|
|
10
|
+
"default": "./dist/index.js"
|
|
12
11
|
},
|
|
13
|
-
"main": "./dist/index.
|
|
12
|
+
"main": "./dist/index.js",
|
|
14
13
|
"module": "./dist/index.js",
|
|
15
14
|
"types": "./dist/index.d.ts",
|
|
16
15
|
"files": [
|
|
@@ -24,8 +23,8 @@
|
|
|
24
23
|
"@types/ms": "^2.1.0",
|
|
25
24
|
"tsup": "^8.4.0",
|
|
26
25
|
"vitest": "^3.2.3",
|
|
27
|
-
"@layerzerolabs/tsup-configuration": "0.2.
|
|
28
|
-
"@layerzerolabs/typescript-configuration": "0.2.
|
|
26
|
+
"@layerzerolabs/tsup-configuration": "0.2.91",
|
|
27
|
+
"@layerzerolabs/typescript-configuration": "0.2.91"
|
|
29
28
|
},
|
|
30
29
|
"publishConfig": {
|
|
31
30
|
"access": "public",
|
|
@@ -34,6 +33,7 @@
|
|
|
34
33
|
"externalRepoConfig": {
|
|
35
34
|
"targets": [
|
|
36
35
|
"audit-external",
|
|
36
|
+
"console-pen-test",
|
|
37
37
|
"onesig-client"
|
|
38
38
|
]
|
|
39
39
|
},
|
package/dist/4HBD5QMD.cjs
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var YJF4D23A_cjs = require('./YJF4D23A.cjs');
|
|
4
|
-
|
|
5
|
-
// src/errors.ts
|
|
6
|
-
var extractMessageFromJsonRpcError = /* @__PURE__ */ YJF4D23A_cjs.__name((err) => {
|
|
7
|
-
try {
|
|
8
|
-
if (typeof err.body === "object" && err.body.message) {
|
|
9
|
-
return err.body.message;
|
|
10
|
-
}
|
|
11
|
-
const parsedBody = JSON.parse(err.body);
|
|
12
|
-
return parsedBody?.error?.message;
|
|
13
|
-
} catch {
|
|
14
|
-
return "unknown";
|
|
15
|
-
}
|
|
16
|
-
}, "extractMessageFromJsonRpcError");
|
|
17
|
-
function convertErrorToObject(err) {
|
|
18
|
-
return JSON.parse(JSON.stringify(err, Object.getOwnPropertyNames(err)));
|
|
19
|
-
}
|
|
20
|
-
YJF4D23A_cjs.__name(convertErrorToObject, "convertErrorToObject");
|
|
21
|
-
function normalizeError(err) {
|
|
22
|
-
const error = convertErrorToObject(err);
|
|
23
|
-
return {
|
|
24
|
-
// Normal Error properties
|
|
25
|
-
...error.name ? {
|
|
26
|
-
name: error.name
|
|
27
|
-
} : {},
|
|
28
|
-
...error.message ? {
|
|
29
|
-
message: error.message
|
|
30
|
-
} : {},
|
|
31
|
-
...error.stack ? {
|
|
32
|
-
stack: error.stack
|
|
33
|
-
} : {},
|
|
34
|
-
// Rpc properties
|
|
35
|
-
...error.reason ? {
|
|
36
|
-
reason: error.reason
|
|
37
|
-
} : {},
|
|
38
|
-
...error.code ? {
|
|
39
|
-
code: error.code
|
|
40
|
-
} : {},
|
|
41
|
-
...error.event ? {
|
|
42
|
-
event: error.event
|
|
43
|
-
} : {},
|
|
44
|
-
...error.body ? {
|
|
45
|
-
body: extractMessageFromJsonRpcError(error)
|
|
46
|
-
} : {}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
YJF4D23A_cjs.__name(normalizeError, "normalizeError");
|
|
50
|
-
var SerializableError = class _SerializableError extends Error {
|
|
51
|
-
static {
|
|
52
|
-
YJF4D23A_cjs.__name(this, "SerializableError");
|
|
53
|
-
}
|
|
54
|
-
details;
|
|
55
|
-
/*
|
|
56
|
-
* The instance of the error that was wrapped, if any.
|
|
57
|
-
* Creates a linked list of error objects.
|
|
58
|
-
* Only exists if the error hasn't been serialized and deserialized.
|
|
59
|
-
*/
|
|
60
|
-
cause;
|
|
61
|
-
constructor(message, options) {
|
|
62
|
-
super(message, options);
|
|
63
|
-
this.cause = options?.cause;
|
|
64
|
-
this.name = this.constructor.name;
|
|
65
|
-
this.details = _SerializableError.computeClassChain(this);
|
|
66
|
-
}
|
|
67
|
-
static computeClassChain(instance) {
|
|
68
|
-
const chain = [];
|
|
69
|
-
let proto = Object.getPrototypeOf(instance);
|
|
70
|
-
while (proto && proto !== Error.prototype && proto !== Object.prototype) {
|
|
71
|
-
const name = proto.constructor?.name;
|
|
72
|
-
if (name) {
|
|
73
|
-
chain.push(name);
|
|
74
|
-
}
|
|
75
|
-
if (name === _SerializableError.name) {
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
proto = Object.getPrototypeOf(proto);
|
|
79
|
-
}
|
|
80
|
-
return chain;
|
|
81
|
-
}
|
|
82
|
-
/*
|
|
83
|
-
* Checks if the error is an instance of the current class or a subclass. Returns the error if it is.
|
|
84
|
-
* We can't type the error as more than SerializableError because it could have been serialized and deserialized,
|
|
85
|
-
* which could make it lose extra fields.
|
|
86
|
-
*/
|
|
87
|
-
static inStackOf(error) {
|
|
88
|
-
if (error?.details?.includes(this.name)) {
|
|
89
|
-
return error;
|
|
90
|
-
} else if (error?.cause?.details?.includes(this.name)) {
|
|
91
|
-
return error.cause;
|
|
92
|
-
}
|
|
93
|
-
return void 0;
|
|
94
|
-
}
|
|
95
|
-
// We could limit this to only wrap serializable errors, but that could limit the flexibility of the error system.
|
|
96
|
-
static wrap(error, ...args) {
|
|
97
|
-
const wrappedError = new this(...args, {
|
|
98
|
-
cause: error
|
|
99
|
-
});
|
|
100
|
-
const combinedDetails = error?.details ? [
|
|
101
|
-
...wrappedError.details,
|
|
102
|
-
...error.details
|
|
103
|
-
] : [
|
|
104
|
-
...wrappedError.details,
|
|
105
|
-
error?.name ?? "UnknownError"
|
|
106
|
-
];
|
|
107
|
-
wrappedError.details = [
|
|
108
|
-
...new Set(combinedDetails)
|
|
109
|
-
];
|
|
110
|
-
wrappedError.message = `${wrappedError.message} > ${error?.message ?? String(error)}`;
|
|
111
|
-
return wrappedError;
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
var NonRetryableError = class extends SerializableError {
|
|
115
|
-
static {
|
|
116
|
-
YJF4D23A_cjs.__name(this, "NonRetryableError");
|
|
117
|
-
}
|
|
118
|
-
constructor(message, options) {
|
|
119
|
-
super(message, options);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
var ActivityNotAvailableError = class extends NonRetryableError {
|
|
123
|
-
static {
|
|
124
|
-
YJF4D23A_cjs.__name(this, "ActivityNotAvailableError");
|
|
125
|
-
}
|
|
126
|
-
constructor(message, options) {
|
|
127
|
-
super(message, options);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var NotFoundError = class extends SerializableError {
|
|
131
|
-
static {
|
|
132
|
-
YJF4D23A_cjs.__name(this, "NotFoundError");
|
|
133
|
-
}
|
|
134
|
-
constructor(message, options) {
|
|
135
|
-
super(message ? `Not found: ${message}` : "Not found", options);
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var ProviderError = class _ProviderError extends SerializableError {
|
|
139
|
-
static {
|
|
140
|
-
YJF4D23A_cjs.__name(this, "ProviderError");
|
|
141
|
-
}
|
|
142
|
-
constructor(providerUri, options) {
|
|
143
|
-
super(`Provider error at host '${_ProviderError.parseHost(providerUri)}'`, options);
|
|
144
|
-
}
|
|
145
|
-
static parseHost(providerUri) {
|
|
146
|
-
try {
|
|
147
|
-
const url = new URL(providerUri);
|
|
148
|
-
return url.host;
|
|
149
|
-
} catch {
|
|
150
|
-
return "UNKNOWN_HOST";
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
var NonEmittableError = class extends SerializableError {
|
|
155
|
-
static {
|
|
156
|
-
YJF4D23A_cjs.__name(this, "NonEmittableError");
|
|
157
|
-
}
|
|
158
|
-
constructor(message, options) {
|
|
159
|
-
super(message, options);
|
|
160
|
-
this.name = "NonEmittableError";
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
var QuorumNotAchievedYet = class extends SerializableError {
|
|
164
|
-
static {
|
|
165
|
-
YJF4D23A_cjs.__name(this, "QuorumNotAchievedYet");
|
|
166
|
-
}
|
|
167
|
-
constructor(options) {
|
|
168
|
-
super("The quorum was not achieved yet", options);
|
|
169
|
-
}
|
|
170
|
-
};
|
|
171
|
-
var MultiError = class extends Error {
|
|
172
|
-
static {
|
|
173
|
-
YJF4D23A_cjs.__name(this, "MultiError");
|
|
174
|
-
}
|
|
175
|
-
errs;
|
|
176
|
-
constructor(errs) {
|
|
177
|
-
super(errs.map((err) => err.message).join(", ")), this.errs = errs;
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
var throwError = /* @__PURE__ */ YJF4D23A_cjs.__name((message, error) => {
|
|
181
|
-
throw error?.(message) ?? new Error(message);
|
|
182
|
-
}, "throwError");
|
|
183
|
-
var assertUnreachable = /* @__PURE__ */ YJF4D23A_cjs.__name((value) => {
|
|
184
|
-
throw new NonRetryableError(`Unreachable value: ${value}`);
|
|
185
|
-
}, "assertUnreachable");
|
|
186
|
-
|
|
187
|
-
exports.ActivityNotAvailableError = ActivityNotAvailableError;
|
|
188
|
-
exports.MultiError = MultiError;
|
|
189
|
-
exports.NonEmittableError = NonEmittableError;
|
|
190
|
-
exports.NonRetryableError = NonRetryableError;
|
|
191
|
-
exports.NotFoundError = NotFoundError;
|
|
192
|
-
exports.ProviderError = ProviderError;
|
|
193
|
-
exports.QuorumNotAchievedYet = QuorumNotAchievedYet;
|
|
194
|
-
exports.SerializableError = SerializableError;
|
|
195
|
-
exports.assertUnreachable = assertUnreachable;
|
|
196
|
-
exports.convertErrorToObject = convertErrorToObject;
|
|
197
|
-
exports.normalizeError = normalizeError;
|
|
198
|
-
exports.throwError = throwError;
|
|
199
|
-
//# sourceMappingURL=4HBD5QMD.cjs.map
|
|
200
|
-
//# sourceMappingURL=4HBD5QMD.cjs.map
|
package/dist/4HBD5QMD.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/errors.ts"],"names":["extractMessageFromJsonRpcError","err","body","message","parsedBody","JSON","parse","error","convertErrorToObject","stringify","Object","getOwnPropertyNames","normalizeError","name","stack","reason","code","event","SerializableError","Error","details","cause","options","computeClassChain","instance","chain","proto","getPrototypeOf","prototype","push","inStackOf","includes","undefined","wrap","args","wrappedError","combinedDetails","Set","String","NonRetryableError","ActivityNotAvailableError","NotFoundError","ProviderError","providerUri","parseHost","url","URL","host","NonEmittableError","QuorumNotAchievedYet","MultiError","errs","map","join","throwError","__name","assertUnreachable","value"],"mappings":";;;;;AAAA,IAAMA,8BAAAA,wCAAkCC,GAAAA,KAAAA;AACpC,EAAA,IAAI;AACA,IAAA,IAAI,OAAOA,GAAAA,CAAIC,IAAAA,KAAS,QAAA,IAAYD,GAAAA,CAAIC,KAAKC,OAAAA,EAAS;AAClD,MAAA,OAAOF,IAAIC,IAAAA,CAAKC,OAAAA;AACpB,IAAA;AACA,IAAA,MAAMC,UAAAA,GAAaC,IAAAA,CAAKC,KAAAA,CAAML,G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A,CAAAA;EA5JhC;;;;AA6JI,EAAA,WAAA,CAA4BgC,IAAAA,EAAa;AACrC,IAAA,KAAA,CAAMA,IAAAA,CAAKC,GAAAA,CAAI,CAACnD,GAAAA,KAAQA,GAAAA,CAAIE,OAAO,CAAA,CAAEkD,IAAAA,CAAK,IAAA,CAAA,CAAA,EAAA,IAAA,CADlBF,IAAAA,GAAAA,IAAAA;AAE5B,EAAA;AACJ;AAEO,IAAMG,UAAAA,mBAAaC,mBAAA,CAAA,CACtBpD,OAAAA,EACAI,KAAAA,KAAAA;AAEA,EAAA,MAAMA,KAAAA,GAAQJ,OAAAA,CAAAA,IAAY,IAAIgB,MAAMhB,OAAAA,CAAAA;AACxC,CAAA,EAL0B,YAAA;AAWnB,IAAMqD,iBAAAA,wCAAqBC,KAAAA,KAAAA;AAC9B,EAAA,MAAM,IAAIlB,iBAAAA,CAAkB,CAAA,mBAAA,EAAsBkB,KAAAA,CAAAA,CAAO,CAAA;AAC7D,CAAA,EAFiC,mBAAA","file":"4HBD5QMD.cjs","sourcesContent":["const extractMessageFromJsonRpcError = (err: any): string => {\n try {\n if (typeof err.body === 'object' && err.body.message) {\n return err.body.message;\n }\n const parsedBody = JSON.parse(err.body);\n return parsedBody?.error?.message;\n } catch {\n return 'unknown';\n }\n};\n\nexport function convertErrorToObject(err: any): any {\n return JSON.parse(JSON.stringify(err, Object.getOwnPropertyNames(err)));\n}\n\nexport function normalizeError(err: any) {\n const error = convertErrorToObject(err);\n return {\n // Normal Error properties\n ...(error.name ? { name: error.name } : {}),\n ...(error.message ? { message: error.message } : {}),\n ...(error.stack ? { stack: error.stack } : {}),\n // Rpc properties\n ...(error.reason ? { reason: error.reason } : {}),\n ...(error.code ? { code: error.code } : {}),\n ...(error.event ? { event: error.event } : {}),\n ...(error.body ? { body: extractMessageFromJsonRpcError(error) } : {}),\n };\n}\n\n// Removes the last argument if it is an ErrorOptions\ntype RemoveErrorOptions<T extends any[]> = T extends [...infer U, ErrorOptions?] ? U : never;\n\n/**\n * Base class for all serializable errors.\n * This class is designed to be extended by other error classes.\n * It provides a way to wrap errors and a way to check if an error is in the stack of a specific error class.\n * All errors that extend this class *must* have error options as the last argument in their constructor.\n */\nexport abstract class SerializableError extends Error {\n details: string[];\n /*\n * The instance of the error that was wrapped, if any.\n * Creates a linked list of error objects.\n * Only exists if the error hasn't been serialized and deserialized.\n */\n cause: unknown;\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n // for some reason, we need to set the cause directly on the instance, even after calling super\n this.cause = options?.cause;\n this.name = this.constructor.name;\n this.details = SerializableError.computeClassChain(this);\n }\n\n private static computeClassChain(instance: SerializableError): string[] {\n const chain: string[] = [];\n let proto: object | null = Object.getPrototypeOf(instance);\n while (proto && proto !== Error.prototype && proto !== Object.prototype) {\n const name = proto.constructor?.name;\n if (name) {\n chain.push(name);\n }\n if (name === SerializableError.name) {\n break;\n }\n proto = Object.getPrototypeOf(proto);\n }\n return chain;\n }\n\n /*\n * Checks if the error is an instance of the current class or a subclass. Returns the error if it is.\n * We can't type the error as more than SerializableError because it could have been serialized and deserialized,\n * which could make it lose extra fields.\n */\n static inStackOf<T extends abstract new (...args: any) => any>(\n this: T,\n error: any,\n ): SerializableError | undefined {\n if (error?.details?.includes(this.name)) {\n return error as SerializableError;\n } else if (error?.cause?.details?.includes(this.name)) {\n return error.cause as SerializableError;\n }\n return undefined;\n }\n\n // We could limit this to only wrap serializable errors, but that could limit the flexibility of the error system.\n static wrap<T extends new (...args: any) => SerializableError>(\n this: T,\n error: any,\n // Remove the optional error arguments\n ...args: RemoveErrorOptions<ConstructorParameters<T>>\n ): InstanceType<T> {\n const wrappedError = new this(...args, { cause: error });\n\n const combinedDetails = error?.details\n ? [...wrappedError.details, ...error.details]\n : [...wrappedError.details, error?.name ?? 'UnknownError'];\n wrappedError.details = [...new Set(combinedDetails)];\n\n wrappedError.message = `${wrappedError.message} > ${error?.message ?? String(error)}`;\n\n return wrappedError as InstanceType<T>;\n }\n}\n\nexport class NonRetryableError extends SerializableError {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n }\n}\n\nexport class ActivityNotAvailableError extends NonRetryableError {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n }\n}\n\nexport class NotFoundError extends SerializableError {\n constructor(message?: string, options?: ErrorOptions) {\n super(message ? `Not found: ${message}` : 'Not found', options);\n }\n}\n\n// TODO: extend this for chain specific providers\nexport class ProviderError extends SerializableError {\n constructor(providerUri: string, options?: ErrorOptions) {\n super(`Provider error at host '${ProviderError.parseHost(providerUri)}'`, options);\n }\n\n private static parseHost(providerUri: string): string {\n try {\n const url = new URL(providerUri);\n return url.host;\n } catch {\n return 'UNKNOWN_HOST';\n }\n }\n}\n\nexport class NonEmittableError extends SerializableError {\n constructor(message: string, options?: ErrorOptions) {\n super(message, options);\n this.name = 'NonEmittableError';\n }\n}\n\nexport class QuorumNotAchievedYet extends SerializableError {\n constructor(options?: ErrorOptions) {\n super('The quorum was not achieved yet', options);\n }\n}\n\nexport class MultiError extends Error {\n constructor(public readonly errs: any[]) {\n super(errs.map((err) => err.message).join(', '));\n }\n}\n\nexport const throwError = <Err extends Error>(\n message: string,\n error?: (message: string) => Err,\n): never => {\n throw error?.(message) ?? new Error(message);\n};\n\n/**\n * Assert that a value is never.\n * Most useful for enforcing exhaustive switch statements.\n */\nexport const assertUnreachable = (value: never): never => {\n throw new NonRetryableError(`Unreachable value: ${value}`);\n};\n"]}
|
package/dist/CSP5OI2I.cjs
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var YJF4D23A_cjs = require('./YJF4D23A.cjs');
|
|
4
|
-
var exponentialBackoff = require('exponential-backoff');
|
|
5
|
-
var ms = require('ms');
|
|
6
|
-
|
|
7
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var ms__default = /*#__PURE__*/_interopDefault(ms);
|
|
10
|
-
|
|
11
|
-
var runWithRetryPolicy = /* @__PURE__ */ YJF4D23A_cjs.__name((fn, policy, shouldRetry) => {
|
|
12
|
-
const perTryTimeout = ms__default.default(policy?.startToCloseTimeout ?? "10 minutes");
|
|
13
|
-
const numOfAttempts = policy?.maximumAttempts ?? Infinity;
|
|
14
|
-
const startingDelay = ms__default.default(policy?.initialInterval ?? "1s");
|
|
15
|
-
const maxDelay = policy?.maximumInterval ? ms__default.default(policy.maximumInterval) : startingDelay * 100;
|
|
16
|
-
const timeMultiple = Math.max(policy?.backoffCoefficient ?? 2, 1);
|
|
17
|
-
const nonRetryableErrorTypes = policy?.nonRetryableErrorTypes ?? [];
|
|
18
|
-
return exponentialBackoff.backOff(() => new Promise((resolve, reject) => {
|
|
19
|
-
fn().then(resolve).catch(reject);
|
|
20
|
-
setTimeout(() => {
|
|
21
|
-
reject(new Error(`Execution timed out after ${perTryTimeout}ms`));
|
|
22
|
-
}, perTryTimeout);
|
|
23
|
-
}), {
|
|
24
|
-
maxDelay,
|
|
25
|
-
startingDelay,
|
|
26
|
-
jitter: "full",
|
|
27
|
-
timeMultiple,
|
|
28
|
-
numOfAttempts,
|
|
29
|
-
retry: /* @__PURE__ */ YJF4D23A_cjs.__name(async (error) => {
|
|
30
|
-
const errorType = error?.constructor?.name ?? error?.name;
|
|
31
|
-
return !nonRetryableErrorTypes.includes(errorType) && (shouldRetry ? shouldRetry(error) : true);
|
|
32
|
-
}, "retry")
|
|
33
|
-
});
|
|
34
|
-
}, "runWithRetryPolicy");
|
|
35
|
-
|
|
36
|
-
exports.runWithRetryPolicy = runWithRetryPolicy;
|
|
37
|
-
//# sourceMappingURL=CSP5OI2I.cjs.map
|
|
38
|
-
//# sourceMappingURL=CSP5OI2I.cjs.map
|
package/dist/CSP5OI2I.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/retry.ts"],"names":["runWithRetryPolicy","__name","fn","policy","shouldRetry","perTryTimeout","ms","startToCloseTimeout","numOfAttempts","maximumAttempts","Infinity","startingDelay","initialInterval","maxDelay","maximumInterval","timeMultiple","Math","max","backoffCoefficient","nonRetryableErrorTypes","backOff","Promise","resolve","reject","then","catch","setTimeout","Error","jitter","retry","error","errorType","name","includes"],"mappings":";;;;;;;;;;AA6DO,IAAMA,kBAAAA,mBAAqBC,mBAAA,CAAA,CAC9BC,EAAAA,EACAC,MAAAA,EACAC,WAAAA,KAAAA;AAEA,EAAA,MAAMC,aAAAA,GAAgBC,mBAAAA,CAAGH,MAAAA,EAAQI,mBAAAA,IAAuB,YAAA,CAAA;AACxD,EAAA,MAAMC,aAAAA,GAAgBL,QAAQM,eAAAA,IAAmBC,QAAAA;AACjD,EAAA,MAAMC,aAAAA,GAAgBL,mBAAAA,CAAGH,MAAAA,EAAQS,eAAAA,IAAmB,IAAA,CAAA;AACpD,EAAA,MAAMC,WAAWV,MAAAA,EAAQW,eAAAA,GAAkBR,oBAAGH,MAAAA,CAAOW,eAAe,IAAIH,aAAAA,GAAgB,GAAA;AACxF,EAAA,MAAMI,eAAeC,IAAAA,CAAKC,GAAAA,CAAId,MAAAA,EAAQe,kBAAAA,IAAsB,GAAG,CAAA,CAAA;AAC/D,EAAA,MAAMC,sBAAAA,GAAyBhB,MAAAA,EAAQgB,sBAAAA,IAA0B,EAAA;AAEjE,EAAA,OAAOC,2BACH,MACI,IAAIC,OAAAA,CAAQ,CAACC,SAASC,MAAAA,KAAAA;AAClBrB,IAAAA,EAAAA,EAAAA,CAAKsB,IAAAA,CAAKF,OAAAA,CAAAA,CAASG,MAAMF,MAAAA,CAAAA;AACzBG,IAAAA,UAAAA,CAAW,MAAA;AACPH,MAAAA,MAAAA,CAAO,IAAII,KAAAA,CAAM,CAAA,0BAAA,EAA6BtB,aAAAA,IAAiB,CAAA,CAAA;AACnE,IAAA,CAAA,EAAGA,aAAAA,CAAAA;AACP,EAAA,CAAA,CAAA,EACJ;AACIQ,IAAAA,QAAAA;AACAF,IAAAA,aAAAA;IACAiB,MAAAA,EAAQ,MAAA;AACRb,IAAAA,YAAAA;AACAP,IAAAA,aAAAA;AACAqB,IAAAA,KAAAA,6CAAcC,KAAAA,KAAAA;AACV,MAAA,MAAMC,SAAAA,GAAYD,KAAAA,EAAO,WAAA,EAAaE,IAAAA,IAAQF,KAAAA,EAAOE,IAAAA;AACrD,MAAA,OACI,CAACb,uBAAuBc,QAAAA,CAASF,SAAAA,MAChC3B,WAAAA,GAAcA,WAAAA,CAAY0B,KAAAA,CAAAA,GAAS,IAAA,CAAA;IAE5C,CAAA,EANO,OAAA;GAOX,CAAA;AAER,CAAA,EAnCkC,oBAAA","file":"CSP5OI2I.cjs","sourcesContent":["import { backOff } from 'exponential-backoff';\nimport type { StringValue } from 'ms';\nimport ms from 'ms';\n\nexport interface RetryPolicy {\n /**\n * Maximum time of a single execution attempt.\n * This timeout should be as short as the longest possible execution of the Activity body.\n *\n * @default 10 minutes\n * @format {@link https://www.npmjs.com/package/ms | ms-formatted string}\n */\n startToCloseTimeout?: StringValue;\n\n /**\n * Coefficient used to calculate the next retry interval.\n * The next retry interval is previous interval multiplied by this coefficient.\n * @minimum 1\n * @default 2\n */\n backoffCoefficient?: number;\n\n /**\n * Interval of the first retry.\n * If coefficient is 1 then it is used for all retries\n * @format {@link https://www.npmjs.com/package/ms | ms-formatted string}\n * @default 1 second\n */\n initialInterval?: StringValue;\n\n /**\n * Maximum number of attempts. When exceeded, retries stop.\n *\n * @default Infinity\n */\n maximumAttempts?: number;\n\n /**\n * Maximum interval between retries.\n * Exponential backoff leads to interval increase.\n * This value is the cap of the increase.\n *\n * @default 100x of {@link initialInterval}\n * @format {@link https://www.npmjs.com/package/ms | ms-formatted string}\n */\n maximumInterval?: StringValue;\n\n /**\n * List of application failures types to not retry.\n */\n nonRetryableErrorTypes?: string[];\n}\n\n/**\n * Executes a function with a retry policy.\n * @param fn - The function to execute.\n * @param policy - The retry policy to apply.\n * @param shouldRetry - A callback that determines if the error is retryable besides the nonRetryableErrorTypes.\n * @return A promise that resolves to the result of the function or rejects with an error.\n * @throws Error if the function fails after all retries.\n */\nexport const runWithRetryPolicy = <T = unknown>(\n fn: () => Promise<T>,\n policy?: RetryPolicy,\n shouldRetry?: (err: any) => boolean,\n): Promise<T> => {\n const perTryTimeout = ms(policy?.startToCloseTimeout ?? '10 minutes');\n const numOfAttempts = policy?.maximumAttempts ?? Infinity;\n const startingDelay = ms(policy?.initialInterval ?? '1s');\n const maxDelay = policy?.maximumInterval ? ms(policy.maximumInterval) : startingDelay * 100;\n const timeMultiple = Math.max(policy?.backoffCoefficient ?? 2, 1);\n const nonRetryableErrorTypes = policy?.nonRetryableErrorTypes ?? [];\n\n return backOff(\n () =>\n new Promise((resolve, reject) => {\n fn().then(resolve).catch(reject);\n setTimeout(() => {\n reject(new Error(`Execution timed out after ${perTryTimeout}ms`));\n }, perTryTimeout);\n }),\n {\n maxDelay,\n startingDelay,\n jitter: 'full',\n timeMultiple,\n numOfAttempts,\n retry: async (error: any) => {\n const errorType = error?.constructor?.name ?? error?.name;\n return (\n !nonRetryableErrorTypes.includes(errorType) &&\n (shouldRetry ? shouldRetry(error) : true)\n );\n },\n },\n );\n};\n"]}
|
package/dist/YJF4D23A.cjs
DELETED
package/dist/YJF4D23A.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"YJF4D23A.cjs"}
|
package/dist/errors.cjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _4HBD5QMD_cjs = require('./4HBD5QMD.cjs');
|
|
4
|
-
require('./YJF4D23A.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "ActivityNotAvailableError", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return _4HBD5QMD_cjs.ActivityNotAvailableError; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "MultiError", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return _4HBD5QMD_cjs.MultiError; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "NonEmittableError", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return _4HBD5QMD_cjs.NonEmittableError; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "NonRetryableError", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return _4HBD5QMD_cjs.NonRetryableError; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "NotFoundError", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return _4HBD5QMD_cjs.NotFoundError; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "ProviderError", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return _4HBD5QMD_cjs.ProviderError; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "QuorumNotAchievedYet", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return _4HBD5QMD_cjs.QuorumNotAchievedYet; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "SerializableError", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return _4HBD5QMD_cjs.SerializableError; }
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "assertUnreachable", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return _4HBD5QMD_cjs.assertUnreachable; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "convertErrorToObject", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return _4HBD5QMD_cjs.convertErrorToObject; }
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "normalizeError", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () { return _4HBD5QMD_cjs.normalizeError; }
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "throwError", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return _4HBD5QMD_cjs.throwError; }
|
|
55
|
-
});
|
|
56
|
-
//# sourceMappingURL=errors.cjs.map
|
|
57
|
-
//# sourceMappingURL=errors.cjs.map
|
package/dist/errors.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"errors.cjs"}
|
package/dist/index.cjs
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var _4HBD5QMD_cjs = require('./4HBD5QMD.cjs');
|
|
4
|
-
var CSP5OI2I_cjs = require('./CSP5OI2I.cjs');
|
|
5
|
-
require('./YJF4D23A.cjs');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Object.defineProperty(exports, "ActivityNotAvailableError", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () { return _4HBD5QMD_cjs.ActivityNotAvailableError; }
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "MultiError", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () { return _4HBD5QMD_cjs.MultiError; }
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "NonEmittableError", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return _4HBD5QMD_cjs.NonEmittableError; }
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports, "NonRetryableError", {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () { return _4HBD5QMD_cjs.NonRetryableError; }
|
|
24
|
-
});
|
|
25
|
-
Object.defineProperty(exports, "NotFoundError", {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () { return _4HBD5QMD_cjs.NotFoundError; }
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(exports, "ProviderError", {
|
|
30
|
-
enumerable: true,
|
|
31
|
-
get: function () { return _4HBD5QMD_cjs.ProviderError; }
|
|
32
|
-
});
|
|
33
|
-
Object.defineProperty(exports, "QuorumNotAchievedYet", {
|
|
34
|
-
enumerable: true,
|
|
35
|
-
get: function () { return _4HBD5QMD_cjs.QuorumNotAchievedYet; }
|
|
36
|
-
});
|
|
37
|
-
Object.defineProperty(exports, "SerializableError", {
|
|
38
|
-
enumerable: true,
|
|
39
|
-
get: function () { return _4HBD5QMD_cjs.SerializableError; }
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "assertUnreachable", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function () { return _4HBD5QMD_cjs.assertUnreachable; }
|
|
44
|
-
});
|
|
45
|
-
Object.defineProperty(exports, "convertErrorToObject", {
|
|
46
|
-
enumerable: true,
|
|
47
|
-
get: function () { return _4HBD5QMD_cjs.convertErrorToObject; }
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(exports, "normalizeError", {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function () { return _4HBD5QMD_cjs.normalizeError; }
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, "throwError", {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () { return _4HBD5QMD_cjs.throwError; }
|
|
56
|
-
});
|
|
57
|
-
Object.defineProperty(exports, "runWithRetryPolicy", {
|
|
58
|
-
enumerable: true,
|
|
59
|
-
get: function () { return CSP5OI2I_cjs.runWithRetryPolicy; }
|
|
60
|
-
});
|
|
61
|
-
//# sourceMappingURL=index.cjs.map
|
|
62
|
-
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
package/dist/retry.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var CSP5OI2I_cjs = require('./CSP5OI2I.cjs');
|
|
4
|
-
require('./YJF4D23A.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "runWithRetryPolicy", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return CSP5OI2I_cjs.runWithRetryPolicy; }
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=retry.cjs.map
|
|
13
|
-
//# sourceMappingURL=retry.cjs.map
|
package/dist/retry.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"retry.cjs"}
|