@permaweb/libs 0.0.79 → 0.0.80
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/index.cjs +14 -14
- package/dist/index.esm.js +53 -53
- package/dist/index.js +14 -14
- package/dist/types/helpers/types.d.ts +5 -1
- package/dist/types/helpers/utils.d.ts +13 -0
- package/package.json +1 -1
|
@@ -40,6 +40,10 @@ export type MessageSendType = {
|
|
|
40
40
|
tags?: TagType[] | null;
|
|
41
41
|
data?: any;
|
|
42
42
|
useRawData?: boolean;
|
|
43
|
+
returnResult?: boolean;
|
|
44
|
+
deepResult?: {
|
|
45
|
+
target: string;
|
|
46
|
+
};
|
|
43
47
|
};
|
|
44
48
|
export type MessageResultType = {
|
|
45
49
|
messageId: string;
|
|
@@ -180,7 +184,7 @@ export type BaseGQLArgsType = {
|
|
|
180
184
|
sort?: GQLSortType;
|
|
181
185
|
};
|
|
182
186
|
export type GQLArgsType = {
|
|
183
|
-
gateway
|
|
187
|
+
gateway?: string;
|
|
184
188
|
} & BaseGQLArgsType;
|
|
185
189
|
export type QueryBodyGQLArgsType = BaseGQLArgsType & {
|
|
186
190
|
gateway?: string;
|
|
@@ -39,3 +39,16 @@ export declare function getBootTag(key: string, value: string): {
|
|
|
39
39
|
};
|
|
40
40
|
export declare function isValidMediaData(data: any): any;
|
|
41
41
|
export declare function cleanTagValues(tags: TagType[]): TagType[];
|
|
42
|
+
export declare function withRetries<T>(fn: () => Promise<T>, options?: {
|
|
43
|
+
maxRetries?: number;
|
|
44
|
+
delayMs?: number;
|
|
45
|
+
backoff?: boolean;
|
|
46
|
+
validate?: (result: T) => boolean;
|
|
47
|
+
}): Promise<T>;
|
|
48
|
+
export declare function lowercaseTagKeys(tags: {
|
|
49
|
+
name: string;
|
|
50
|
+
values: string[];
|
|
51
|
+
}[]): {
|
|
52
|
+
name: string;
|
|
53
|
+
values: string[];
|
|
54
|
+
}[];
|