@permaweb/libs 0.0.79 → 0.0.81

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.
@@ -11,6 +11,7 @@ export type DependencyType = {
11
11
  export type ProcessReadType = {
12
12
  processId: string;
13
13
  path?: string;
14
+ appendPath?: string;
14
15
  hydrate?: boolean;
15
16
  fallbackAction?: string;
16
17
  tags?: TagType[];
@@ -40,6 +41,10 @@ export type MessageSendType = {
40
41
  tags?: TagType[] | null;
41
42
  data?: any;
42
43
  useRawData?: boolean;
44
+ returnResult?: boolean;
45
+ deepResult?: {
46
+ target: string;
47
+ };
43
48
  };
44
49
  export type MessageResultType = {
45
50
  messageId: string;
@@ -180,7 +185,7 @@ export type BaseGQLArgsType = {
180
185
  sort?: GQLSortType;
181
186
  };
182
187
  export type GQLArgsType = {
183
- gateway: string;
188
+ gateway?: string;
184
189
  } & BaseGQLArgsType;
185
190
  export type QueryBodyGQLArgsType = BaseGQLArgsType & {
186
191
  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.81",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",