@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.
@@ -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: string;
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
+ }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@permaweb/libs",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",