@permaweb/libs 0.0.37 → 0.0.39
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 +44 -11
- package/dist/index.cjs.map +4 -4
- package/dist/index.esm.js +110 -12
- package/dist/index.esm.js.map +4 -4
- package/dist/index.js +44 -11
- package/dist/index.js.map +4 -4
- package/dist/types/common/ao.d.ts +3 -7
- package/dist/types/common/arweave.d.ts +8 -1
- package/dist/types/helpers/config.d.ts +0 -2
- package/dist/types/helpers/types.d.ts +6 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +8 -1
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { DependencyType, MessageDryRunType, MessageResultType, MessageSendType, ProcessCreateType, ProcessSpawnType, TagType } from '../helpers/types.ts';
|
|
1
|
+
import { DependencyType, MessageDryRunType, MessageResultType, MessageSendType, ProcessCreateType, ProcessReadType, ProcessSpawnType, TagType } from '../helpers/types.ts';
|
|
2
2
|
export declare function aoSpawn(deps: DependencyType, args: ProcessSpawnType): Promise<string>;
|
|
3
3
|
export declare function aoSendWith(deps: DependencyType): (args: MessageSendType) => Promise<string>;
|
|
4
4
|
export declare function aoSend(deps: DependencyType, args: MessageSendType): Promise<string>;
|
|
5
|
-
export declare function
|
|
6
|
-
|
|
7
|
-
path: string;
|
|
8
|
-
node?: string;
|
|
9
|
-
fallbackAction?: string;
|
|
10
|
-
}): Promise<any>;
|
|
5
|
+
export declare function readProcessWith(deps: DependencyType): (args: ProcessReadType) => Promise<any>;
|
|
6
|
+
export declare function readProcess(deps: DependencyType, args: ProcessReadType): Promise<any>;
|
|
11
7
|
export declare function aoDryRunWith(deps: DependencyType): (args: MessageSendType) => Promise<any>;
|
|
12
8
|
export declare function aoDryRun(deps: DependencyType, args: MessageDryRunType): Promise<any>;
|
|
13
9
|
export declare function aoMessageResult(deps: DependencyType, args: MessageResultType): Promise<any>;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { DependencyType, TagType } from '../helpers/types.ts';
|
|
2
2
|
export declare function resolveTransactionWith(deps: DependencyType): (data: any) => Promise<any>;
|
|
3
|
-
export declare function resolveTransaction(deps: DependencyType, data: any): Promise<any>;
|
|
4
3
|
export declare function createTransaction(deps: DependencyType, args: {
|
|
5
4
|
data: File | string;
|
|
6
5
|
tags?: TagType[];
|
|
7
6
|
}): Promise<string>;
|
|
7
|
+
export declare function runUpload(fileBlob: Blob, txOpts: any & {
|
|
8
|
+
upload?: any;
|
|
9
|
+
}, uploadOpts: {
|
|
10
|
+
apiUrl: string;
|
|
11
|
+
token: string;
|
|
12
|
+
chunkSize: number;
|
|
13
|
+
batchSize?: number;
|
|
14
|
+
}): Promise<any>;
|
|
@@ -12,7 +12,6 @@ export declare const AO: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
collectionRegistry: string;
|
|
15
|
-
profileRegistry: string;
|
|
16
15
|
};
|
|
17
16
|
export declare const HB: {
|
|
18
17
|
defaultRouter: string;
|
|
@@ -85,7 +84,6 @@ export declare const TAGS: {
|
|
|
85
84
|
};
|
|
86
85
|
export declare const UPLOAD: {
|
|
87
86
|
node1: string;
|
|
88
|
-
node2: string;
|
|
89
87
|
batchSize: number;
|
|
90
88
|
chunkSize: number;
|
|
91
89
|
dispatchUploadSize: number;
|
|
@@ -3,6 +3,12 @@ export type DependencyType = {
|
|
|
3
3
|
signer?: any;
|
|
4
4
|
arweave?: any;
|
|
5
5
|
};
|
|
6
|
+
export type ProcessReadType = {
|
|
7
|
+
processId: string;
|
|
8
|
+
path: string;
|
|
9
|
+
fallbackAction: string;
|
|
10
|
+
node?: string;
|
|
11
|
+
};
|
|
6
12
|
export type ProcessSpawnType = {
|
|
7
13
|
module: string;
|
|
8
14
|
scheduler: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ declare function init(deps: Helpers.DependencyType): {
|
|
|
74
74
|
getAggregatedGQLData: typeof Common.getAggregatedGQLData;
|
|
75
75
|
createProcess: (args: Helpers.ProcessCreateType, statusCB?: (status: any) => void) => Promise<string>;
|
|
76
76
|
readProcess: (args: Helpers.MessageSendType) => Promise<any>;
|
|
77
|
+
readState: (args: Helpers.ProcessReadType) => Promise<any>;
|
|
77
78
|
sendMessage: (args: Helpers.MessageSendType) => Promise<string>;
|
|
78
79
|
mapFromProcessCase: typeof Helpers.mapFromProcessCase;
|
|
79
80
|
mapToProcessCase: typeof Helpers.mapToProcessCase;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@permaweb/libs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -41,15 +41,21 @@
|
|
|
41
41
|
"format": "eslint --fix . && npx prettier --write .",
|
|
42
42
|
"build": "node build.js"
|
|
43
43
|
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@dha-team/arbundles": "^1.0.3"
|
|
46
|
+
},
|
|
44
47
|
"devDependencies": {
|
|
48
|
+
"@types/async-retry": "^1.4.9",
|
|
45
49
|
"@types/node": "^22.10.4",
|
|
46
50
|
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
47
51
|
"@typescript-eslint/parser": "^5.57.1",
|
|
52
|
+
"buffer": "^6.0.3",
|
|
48
53
|
"crypto-browserify": "^3.12.1",
|
|
49
54
|
"esbuild": "^0.24.2",
|
|
50
55
|
"esbuild-plugin-alias": "^0.2.1",
|
|
51
56
|
"esbuild-plugin-d.ts": "^1.3.1",
|
|
52
57
|
"esbuild-plugin-polyfill-node": "^0.3.0",
|
|
58
|
+
"esbuild-plugins-node-modules-polyfill": "^1.7.0",
|
|
53
59
|
"eslint": "^8.35.0",
|
|
54
60
|
"eslint-plugin-import": "^2.27.5",
|
|
55
61
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
@@ -58,6 +64,7 @@
|
|
|
58
64
|
"stream-browserify": "^3.0.0",
|
|
59
65
|
"tsc-alias": "^1.8.10",
|
|
60
66
|
"typescript": "^5.7.2",
|
|
67
|
+
"util": "^0.12.5",
|
|
61
68
|
"web-streams-polyfill": "^4.1.0"
|
|
62
69
|
}
|
|
63
70
|
}
|