@permaweb/libs 0.0.15 → 0.0.17
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/bundle.esm.js +1 -0
- package/dist/common/ao.d.ts +1 -1
- package/dist/common/ao.js +2 -0
- package/dist/common/arweave.d.ts +1 -1
- package/dist/common/arweave.js +1 -0
- package/dist/common/gql.d.ts +1 -1
- package/dist/index.cjs +28 -0
- package/dist/index.cjs.js +153 -0
- package/dist/index.cjs.js.map +7 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.esm.js +41 -0
- package/dist/index.esm.js.map +7 -0
- package/dist/index.js +28 -4
- package/dist/index.js.map +7 -1
- package/dist/services/assets.d.ts +1 -1
- package/dist/services/profiles.d.ts +1 -1
- package/dist/services/profiles.js +1 -0
- package/dist/services/zones.d.ts +1 -1
- package/dist/types/common/ao.d.ts +23 -0
- package/dist/types/common/arweave.d.ts +8 -0
- package/dist/types/common/gql.d.ts +3 -0
- package/dist/types/common/index.d.ts +3 -0
- package/dist/types/helpers/config.d.ts +81 -0
- package/dist/types/helpers/endpoints.d.ts +3 -0
- package/dist/types/helpers/index.d.ts +4 -0
- package/dist/types/helpers/types.d.ts +229 -0
- package/dist/types/helpers/utils.d.ts +38 -0
- package/dist/types/index.d.ts +56 -0
- package/dist/types/services/assets.d.ts +6 -0
- package/dist/types/services/collections.d.ts +18 -0
- package/dist/types/services/comments.d.ts +9 -0
- package/dist/types/services/index.d.ts +5 -0
- package/dist/types/services/profiles.d.ts +5 -0
- package/dist/types/services/zones.d.ts +10 -0
- package/package.json +36 -7
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
export type DependencyType = {
|
|
2
|
+
ao: any;
|
|
3
|
+
signer?: any;
|
|
4
|
+
arweave?: any;
|
|
5
|
+
};
|
|
6
|
+
export type ProcessSpawnType = {
|
|
7
|
+
module: string;
|
|
8
|
+
scheduler: string;
|
|
9
|
+
data: any;
|
|
10
|
+
tags: TagType[];
|
|
11
|
+
wallet: any;
|
|
12
|
+
};
|
|
13
|
+
export type ProcessCreateType = {
|
|
14
|
+
module?: string;
|
|
15
|
+
scheduler?: string;
|
|
16
|
+
spawnData?: any;
|
|
17
|
+
spawnTags?: TagType[];
|
|
18
|
+
evalTags?: TagType[];
|
|
19
|
+
evalTxId?: string;
|
|
20
|
+
evalSrc?: string;
|
|
21
|
+
};
|
|
22
|
+
export type MessageSendType = {
|
|
23
|
+
processId: string;
|
|
24
|
+
action: string;
|
|
25
|
+
tags?: TagType[] | null;
|
|
26
|
+
data?: any;
|
|
27
|
+
useRawData?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export type MessageResultType = {
|
|
30
|
+
messageId: string;
|
|
31
|
+
processId: string;
|
|
32
|
+
action: string;
|
|
33
|
+
};
|
|
34
|
+
export type MessageDryRunType = {
|
|
35
|
+
processId: string;
|
|
36
|
+
action: string;
|
|
37
|
+
tags?: TagType[] | null;
|
|
38
|
+
data?: string | object;
|
|
39
|
+
};
|
|
40
|
+
export type ZoneType = {
|
|
41
|
+
store: any;
|
|
42
|
+
assets: ZoneAssetType[];
|
|
43
|
+
};
|
|
44
|
+
export type ZoneAssetType = {
|
|
45
|
+
id: string;
|
|
46
|
+
balance: string;
|
|
47
|
+
dateCreated: number;
|
|
48
|
+
lastUpdate: number;
|
|
49
|
+
};
|
|
50
|
+
export type ProfileArgsType = {
|
|
51
|
+
username: string;
|
|
52
|
+
displayName: string;
|
|
53
|
+
description: string;
|
|
54
|
+
thumbnail?: any;
|
|
55
|
+
banner?: any;
|
|
56
|
+
};
|
|
57
|
+
export type ProfileType = {
|
|
58
|
+
id: string;
|
|
59
|
+
walletAddress: string;
|
|
60
|
+
username: string;
|
|
61
|
+
displayName: string;
|
|
62
|
+
description: string;
|
|
63
|
+
thumbnail?: any;
|
|
64
|
+
banner?: any;
|
|
65
|
+
assets: {
|
|
66
|
+
id: string;
|
|
67
|
+
quantity: string;
|
|
68
|
+
}[];
|
|
69
|
+
} & any;
|
|
70
|
+
export type AssetCreateArgsType = {
|
|
71
|
+
title: string;
|
|
72
|
+
description: string;
|
|
73
|
+
type: string;
|
|
74
|
+
topics: string[];
|
|
75
|
+
contentType: string;
|
|
76
|
+
data: any;
|
|
77
|
+
creator?: string;
|
|
78
|
+
collectionId?: string;
|
|
79
|
+
renderWith?: string;
|
|
80
|
+
thumbnail?: string;
|
|
81
|
+
supply?: number;
|
|
82
|
+
denomination?: number;
|
|
83
|
+
transferable?: boolean;
|
|
84
|
+
tags?: TagType[];
|
|
85
|
+
src?: string;
|
|
86
|
+
};
|
|
87
|
+
export type AssetHeaderType = {
|
|
88
|
+
id: string;
|
|
89
|
+
owner: string | null;
|
|
90
|
+
creator: string | null;
|
|
91
|
+
title: string | null;
|
|
92
|
+
description: string | null;
|
|
93
|
+
type: string | null;
|
|
94
|
+
topics: string[] | null;
|
|
95
|
+
implementation: string | null;
|
|
96
|
+
contentType: string | null;
|
|
97
|
+
renderWith: string | null;
|
|
98
|
+
thumbnail: string | null;
|
|
99
|
+
udl: UDLicenseType | null;
|
|
100
|
+
collectionId: string | null;
|
|
101
|
+
dateCreated: number | null;
|
|
102
|
+
blockHeight: number | null;
|
|
103
|
+
tags?: TagType[];
|
|
104
|
+
};
|
|
105
|
+
export type AssetStateType = {
|
|
106
|
+
ticker: string | null;
|
|
107
|
+
denomination: string | null;
|
|
108
|
+
balances: {
|
|
109
|
+
[key: string]: string;
|
|
110
|
+
} | null;
|
|
111
|
+
transferable: boolean | null;
|
|
112
|
+
};
|
|
113
|
+
export type AoAssetType = {
|
|
114
|
+
ticker: string;
|
|
115
|
+
denomination: string;
|
|
116
|
+
balances: {
|
|
117
|
+
[key: string]: string;
|
|
118
|
+
};
|
|
119
|
+
transferable: boolean;
|
|
120
|
+
name: string;
|
|
121
|
+
creator: string;
|
|
122
|
+
assetMetadata: {
|
|
123
|
+
[key: string]: any;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
export type AssetDetailType = AssetHeaderType & AssetStateType;
|
|
127
|
+
export type CommentHeaderType = AssetHeaderType & {
|
|
128
|
+
dataSource: string;
|
|
129
|
+
rootSource: string;
|
|
130
|
+
};
|
|
131
|
+
export type CommentStateType = AssetStateType;
|
|
132
|
+
export type CommentDetailType = CommentHeaderType & CommentStateType;
|
|
133
|
+
export type CommentCreateArgType = {
|
|
134
|
+
creator: string;
|
|
135
|
+
content: string;
|
|
136
|
+
parentId: string;
|
|
137
|
+
rootId?: string;
|
|
138
|
+
tags?: TagType[];
|
|
139
|
+
};
|
|
140
|
+
export type CollectionManifestType = {
|
|
141
|
+
type: string;
|
|
142
|
+
items: string[];
|
|
143
|
+
};
|
|
144
|
+
export type CollectionType = {
|
|
145
|
+
id: string;
|
|
146
|
+
title: string;
|
|
147
|
+
description: string | null;
|
|
148
|
+
creator: string;
|
|
149
|
+
dateCreated: string;
|
|
150
|
+
banner: string | null;
|
|
151
|
+
thumbnail: string | null;
|
|
152
|
+
};
|
|
153
|
+
export type CollectionDetailType = CollectionType & {
|
|
154
|
+
assetIds: string[];
|
|
155
|
+
};
|
|
156
|
+
export type UDLicenseType = {
|
|
157
|
+
access: UDLicenseValueType | null;
|
|
158
|
+
derivations: UDLicenseValueType | null;
|
|
159
|
+
commercialUse: UDLicenseValueType | null;
|
|
160
|
+
dataModelTraining: UDLicenseValueType | null;
|
|
161
|
+
paymentMode: string | null;
|
|
162
|
+
paymentAddress: string | null;
|
|
163
|
+
currency: string | null;
|
|
164
|
+
};
|
|
165
|
+
export type UDLicenseValueType = {
|
|
166
|
+
value: string | null;
|
|
167
|
+
icon?: string;
|
|
168
|
+
endText?: string;
|
|
169
|
+
};
|
|
170
|
+
export type BaseGQLArgsType = {
|
|
171
|
+
ids?: string[] | null;
|
|
172
|
+
tags?: TagFilterType[] | null;
|
|
173
|
+
owners?: string[] | null;
|
|
174
|
+
cursor?: string | null;
|
|
175
|
+
paginator?: number;
|
|
176
|
+
minBlock?: number;
|
|
177
|
+
maxBlock?: number;
|
|
178
|
+
};
|
|
179
|
+
export type GQLArgsType = {
|
|
180
|
+
gateway: string;
|
|
181
|
+
} & BaseGQLArgsType;
|
|
182
|
+
export type QueryBodyGQLArgsType = BaseGQLArgsType & {
|
|
183
|
+
gateway?: string;
|
|
184
|
+
queryKey?: string;
|
|
185
|
+
};
|
|
186
|
+
export type BatchGQLArgsType = {
|
|
187
|
+
gateway: string;
|
|
188
|
+
entries: {
|
|
189
|
+
[queryKey: string]: BaseGQLArgsType;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
export type GQLNodeResponseType = {
|
|
193
|
+
cursor: string | null;
|
|
194
|
+
node: {
|
|
195
|
+
id: string;
|
|
196
|
+
tags: TagType[];
|
|
197
|
+
data: {
|
|
198
|
+
size: string;
|
|
199
|
+
type: string;
|
|
200
|
+
};
|
|
201
|
+
owner: {
|
|
202
|
+
address: string;
|
|
203
|
+
};
|
|
204
|
+
block: {
|
|
205
|
+
height: number;
|
|
206
|
+
timestamp: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export type GQLResponseType = {
|
|
211
|
+
count: number;
|
|
212
|
+
nextCursor: string | null;
|
|
213
|
+
previousCursor: string | null;
|
|
214
|
+
};
|
|
215
|
+
export type DefaultGQLResponseType = {
|
|
216
|
+
data: GQLNodeResponseType[];
|
|
217
|
+
} & GQLResponseType;
|
|
218
|
+
export type BatchAGQLResponseType = {
|
|
219
|
+
[queryKey: string]: DefaultGQLResponseType;
|
|
220
|
+
};
|
|
221
|
+
export type TagType = {
|
|
222
|
+
name: string;
|
|
223
|
+
value: string;
|
|
224
|
+
};
|
|
225
|
+
export type TagFilterType = {
|
|
226
|
+
name: string;
|
|
227
|
+
values: string[];
|
|
228
|
+
match?: string;
|
|
229
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare function checkValidAddress(address: string | null): boolean;
|
|
2
|
+
export declare function formatAddress(address: string | null, wrap: boolean): string;
|
|
3
|
+
export declare function getTagValue(list: {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}[], name: string): string | null;
|
|
6
|
+
export declare function formatCount(count: string): string;
|
|
7
|
+
export declare function formatPercentage(percentage: any): string;
|
|
8
|
+
export declare function formatDate(dateArg: string | number | null, dateType: 'iso' | 'epoch', fullTime?: boolean): string | null;
|
|
9
|
+
export declare function getRelativeDate(timestamp: number): string;
|
|
10
|
+
export declare function formatRequiredField(field: string): string;
|
|
11
|
+
export declare function splitTagValue(tag: any): any;
|
|
12
|
+
export declare function getTagDisplay(value: string): string;
|
|
13
|
+
export declare function getDataURLContentType(dataURL: string): string | null;
|
|
14
|
+
export declare function getBase64Data(dataURL: string): string;
|
|
15
|
+
export declare function getByteSize(input: string | Buffer): number;
|
|
16
|
+
export declare function getTotalTokenBalance(tokenBalances: {
|
|
17
|
+
profileBalance: number;
|
|
18
|
+
walletBalance: number;
|
|
19
|
+
} | null): number | null;
|
|
20
|
+
export declare function isFirefox(): boolean;
|
|
21
|
+
export declare function reverseDenomination(number: number): number;
|
|
22
|
+
export declare function cleanProcessField(value: string): string;
|
|
23
|
+
export declare function cleanTagValue(value: string): string;
|
|
24
|
+
/**
|
|
25
|
+
* Extracts all values from a key-value store that match a given prefix
|
|
26
|
+
* @param store The key-value store object to search
|
|
27
|
+
* @param prefix The prefix to filter keys by (e.g., 'portal')
|
|
28
|
+
* @returns Array of values whose keys match the prefix
|
|
29
|
+
*/
|
|
30
|
+
export declare function getStoreNamespace<T = any>(prefix: string, store: Record<string, T>): T[];
|
|
31
|
+
export declare function buildStoreNamespace(prefix: string, value: string): string;
|
|
32
|
+
export declare const globalLog: (...args: any[]) => void;
|
|
33
|
+
export declare function mapToProcessCase(obj: any): any;
|
|
34
|
+
export declare function mapFromProcessCase(obj: any): any;
|
|
35
|
+
export declare function getBootTag(key: string, value: string): {
|
|
36
|
+
name: string;
|
|
37
|
+
value: string;
|
|
38
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as Helpers from 'helpers';
|
|
2
|
+
import * as Common from './common';
|
|
3
|
+
import * as Services from './services';
|
|
4
|
+
declare function init(deps: Helpers.DependencyType): {
|
|
5
|
+
createZone: (args: {
|
|
6
|
+
tags?: Helpers.TagType[];
|
|
7
|
+
}, callback?: (status: any) => void) => Promise<string | null>;
|
|
8
|
+
updateZone: (args: object, zoneId: string) => Promise<string | null>;
|
|
9
|
+
addToZone: (args: {
|
|
10
|
+
path: string;
|
|
11
|
+
data: object;
|
|
12
|
+
}, zoneId: string) => Promise<string | null>;
|
|
13
|
+
getZone: (zoneId: string) => Promise<any | null>;
|
|
14
|
+
createAtomicAsset: (args: Helpers.AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
|
|
15
|
+
getAtomicAsset: (id: string) => Promise<Helpers.AssetDetailType | null>;
|
|
16
|
+
getAtomicAssets: typeof Services.getAtomicAssets;
|
|
17
|
+
createProfile: (args: Helpers.ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
18
|
+
updateProfile: (args: Helpers.ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
19
|
+
getProfileById: (profileId: string) => Promise<Helpers.ProfileType | null>;
|
|
20
|
+
getProfileByWalletAddress: (walletAddress: string) => Promise<(Helpers.ProfileType & any) | null>;
|
|
21
|
+
createComment: (args: Helpers.CommentCreateArgType, callback?: (status: any) => void) => Promise<string>;
|
|
22
|
+
getComment: (args: {
|
|
23
|
+
parentId: string;
|
|
24
|
+
}) => Promise<Helpers.CommentDetailType>;
|
|
25
|
+
getComments: (args: {
|
|
26
|
+
parentId?: string;
|
|
27
|
+
rootId?: string;
|
|
28
|
+
}) => Promise<Helpers.CommentHeaderType[]>;
|
|
29
|
+
createCollection: (args: {
|
|
30
|
+
title: string;
|
|
31
|
+
description: string;
|
|
32
|
+
creator: string;
|
|
33
|
+
banner: any;
|
|
34
|
+
thumbnail: any;
|
|
35
|
+
}) => Promise<string | undefined>;
|
|
36
|
+
updateCollectionAssets: (args: {
|
|
37
|
+
collectionId: string;
|
|
38
|
+
assetIds: string[];
|
|
39
|
+
profileId: string;
|
|
40
|
+
updateType: "Add" | "Remove";
|
|
41
|
+
}) => Promise<string>;
|
|
42
|
+
getCollection: (collectionId: string) => Promise<Helpers.CollectionDetailType | null>;
|
|
43
|
+
getCollections: (args: {
|
|
44
|
+
creator?: string;
|
|
45
|
+
}) => Promise<Helpers.CollectionType[] | null>;
|
|
46
|
+
resolveTransaction: (data: any) => Promise<any>;
|
|
47
|
+
getGQLData: typeof Common.getGQLData;
|
|
48
|
+
createProcess: (args: Helpers.ProcessCreateType, statusCB?: (status: any) => void) => Promise<string>;
|
|
49
|
+
mapFromProcessCase: typeof Helpers.mapFromProcessCase;
|
|
50
|
+
mapToProcessCase: typeof Helpers.mapToProcessCase;
|
|
51
|
+
};
|
|
52
|
+
declare const _default: {
|
|
53
|
+
init: typeof init;
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|
|
56
|
+
export * from './helpers/types';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AoAssetType, AssetCreateArgsType, AssetDetailType, AssetHeaderType, DependencyType, GQLNodeResponseType } from 'helpers/types';
|
|
2
|
+
export declare function createAtomicAssetWith(deps: DependencyType): (args: AssetCreateArgsType, callback?: (status: any) => void) => Promise<string>;
|
|
3
|
+
export declare function getAtomicAssetWith(deps: DependencyType): (id: string) => Promise<AssetDetailType | null>;
|
|
4
|
+
export declare function getAoAtomicAssetWith(deps: DependencyType): (processId: string) => Promise<AoAssetType>;
|
|
5
|
+
export declare function getAtomicAssets(ids: string[]): Promise<AssetHeaderType[] | null>;
|
|
6
|
+
export declare function buildAsset(element: GQLNodeResponseType): AssetHeaderType;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CollectionDetailType, CollectionType, DependencyType } from 'helpers/types';
|
|
2
|
+
export declare function createCollectionWith(deps: DependencyType): (args: {
|
|
3
|
+
title: string;
|
|
4
|
+
description: string;
|
|
5
|
+
creator: string;
|
|
6
|
+
banner: any;
|
|
7
|
+
thumbnail: any;
|
|
8
|
+
}) => Promise<string | undefined>;
|
|
9
|
+
export declare function updateCollectionAssetsWith(deps: DependencyType): (args: {
|
|
10
|
+
collectionId: string;
|
|
11
|
+
assetIds: string[];
|
|
12
|
+
profileId: string;
|
|
13
|
+
updateType: "Add" | "Remove";
|
|
14
|
+
}) => Promise<string>;
|
|
15
|
+
export declare function getCollectionWith(deps: DependencyType): (collectionId: string) => Promise<CollectionDetailType | null>;
|
|
16
|
+
export declare function getCollectionsWith(deps: DependencyType): (args: {
|
|
17
|
+
creator?: string;
|
|
18
|
+
}) => Promise<CollectionType[] | null>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommentCreateArgType, CommentDetailType, CommentHeaderType, DependencyType } from 'helpers/types';
|
|
2
|
+
export declare function createCommentWith(deps: DependencyType): (args: CommentCreateArgType, callback?: (status: any) => void) => Promise<string>;
|
|
3
|
+
export declare function getCommentWith(deps: DependencyType): (args: {
|
|
4
|
+
parentId: string;
|
|
5
|
+
}) => Promise<CommentDetailType>;
|
|
6
|
+
export declare function getCommentsWith(_deps: DependencyType): (args: {
|
|
7
|
+
parentId?: string;
|
|
8
|
+
rootId?: string;
|
|
9
|
+
}) => Promise<CommentHeaderType[]>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DependencyType, ProfileArgsType, ProfileType } from 'helpers/types';
|
|
2
|
+
export declare function createProfileWith(deps: DependencyType): (args: ProfileArgsType, callback?: (status: any) => void) => Promise<string | null>;
|
|
3
|
+
export declare function updateProfileWith(deps: DependencyType): (args: ProfileArgsType, profileId: string, callback?: (status: any) => void) => Promise<string | null>;
|
|
4
|
+
export declare function getProfileByIdWith(deps: DependencyType): (profileId: string) => Promise<ProfileType | null>;
|
|
5
|
+
export declare function getProfileByWalletAddressWith(deps: DependencyType): (walletAddress: string) => Promise<(ProfileType & any) | null>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DependencyType, TagType } from 'helpers/types';
|
|
2
|
+
export declare function createZoneWith(deps: DependencyType): (args: {
|
|
3
|
+
tags?: TagType[];
|
|
4
|
+
}, callback?: (status: any) => void) => Promise<string | null>;
|
|
5
|
+
export declare function updateZoneWith(deps: DependencyType): (args: object, zoneId: string) => Promise<string | null>;
|
|
6
|
+
export declare function addToZoneWith(deps: DependencyType): (args: {
|
|
7
|
+
path: string;
|
|
8
|
+
data: object;
|
|
9
|
+
}, zoneId: string) => Promise<string | null>;
|
|
10
|
+
export declare function getZoneWith(deps: DependencyType): (zoneId: string) => Promise<any | null>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@permaweb/libs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"browser": "./dist/index.esm.js",
|
|
8
|
+
"types": "./dist/types/index.d.ts",
|
|
9
|
+
"typesVersions": {
|
|
10
|
+
"*": {
|
|
11
|
+
"browser": [
|
|
12
|
+
"./dist/types/index.d.ts"
|
|
13
|
+
],
|
|
14
|
+
".": [
|
|
15
|
+
"./dist/types/index.d.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
4
19
|
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
20
|
"files": [
|
|
8
21
|
"dist"
|
|
9
22
|
],
|
|
@@ -15,22 +28,38 @@
|
|
|
15
28
|
"url": "https://github.com/permaweb/permaweb-libs.git",
|
|
16
29
|
"directory": "sdk"
|
|
17
30
|
},
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": "./dist/index.esm.js",
|
|
34
|
+
"require": "./dist/index.cjs",
|
|
35
|
+
"default": "./dist/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./browser": "./dist/index.esm.js",
|
|
38
|
+
"./node": "./dist/index.js"
|
|
39
|
+
},
|
|
18
40
|
"scripts": {
|
|
19
41
|
"format": "eslint --fix . && npx prettier --write .",
|
|
20
|
-
"build": "
|
|
42
|
+
"build": "node build.js"
|
|
21
43
|
},
|
|
22
44
|
"dependencies": {
|
|
23
|
-
"
|
|
45
|
+
"arweave": "^1.15.5",
|
|
46
|
+
"buffer": "^6.0.3",
|
|
47
|
+
"process": "^0.11.10",
|
|
24
48
|
"tsc-alias": "^1.8.10"
|
|
25
49
|
},
|
|
26
50
|
"devDependencies": {
|
|
27
51
|
"@types/async-retry": "^1.4.9",
|
|
28
|
-
"@types/node": "^22.
|
|
52
|
+
"@types/node": "^22.10.4",
|
|
29
53
|
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
30
54
|
"@typescript-eslint/parser": "^5.57.1",
|
|
55
|
+
"esbuild": "^0.24.2",
|
|
56
|
+
"esbuild-plugin-d.ts": "^1.3.1",
|
|
31
57
|
"eslint": "^8.35.0",
|
|
32
58
|
"eslint-plugin-import": "^2.27.5",
|
|
33
59
|
"eslint-plugin-simple-import-sort": "^10.0.0",
|
|
34
|
-
"
|
|
60
|
+
"ts-loader": "^9.5.1",
|
|
61
|
+
"typescript": "^5.7.2",
|
|
62
|
+
"webpack": "^5.97.1",
|
|
63
|
+
"webpack-cli": "^6.0.1"
|
|
35
64
|
}
|
|
36
65
|
}
|