@ar.io/sdk 3.10.0 → 3.10.2
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/README.md +66 -125
- package/bundles/web.bundle.min.js +35 -35
- package/lib/cjs/common/io.js +4 -0
- package/lib/cjs/utils/arweave.js +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/esm/common/io.js +4 -0
- package/lib/esm/utils/arweave.js +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/types/common/io.d.ts +2 -6
- package/lib/types/version.d.ts +1 -1
- package/package.json +1 -1
package/lib/cjs/common/io.js
CHANGED
package/lib/cjs/utils/arweave.js
CHANGED
|
@@ -118,7 +118,7 @@ const getEpochDataFromGqlFallback = async ({ ao, epochIndex, processId = constan
|
|
|
118
118
|
if (!messageResult) {
|
|
119
119
|
continue;
|
|
120
120
|
}
|
|
121
|
-
for (const message of messageResult
|
|
121
|
+
for (const message of messageResult?.Messages ?? []) {
|
|
122
122
|
const data = JSON.parse(message.Data);
|
|
123
123
|
const tags = message.Tags;
|
|
124
124
|
// check if the message results include epoch-distribution-notice for the requested epoch index
|
package/lib/cjs/version.js
CHANGED
package/lib/esm/common/io.js
CHANGED
package/lib/esm/utils/arweave.js
CHANGED
|
@@ -107,7 +107,7 @@ export const getEpochDataFromGqlFallback = async ({ ao, epochIndex, processId =
|
|
|
107
107
|
if (!messageResult) {
|
|
108
108
|
continue;
|
|
109
109
|
}
|
|
110
|
-
for (const message of messageResult
|
|
110
|
+
for (const message of messageResult?.Messages ?? []) {
|
|
111
111
|
const data = JSON.parse(message.Data);
|
|
112
112
|
const tags = message.Tags;
|
|
113
113
|
// check if the message results include epoch-distribution-notice for the requested epoch index
|
package/lib/esm/version.js
CHANGED
package/lib/types/common/io.d.ts
CHANGED
|
@@ -8,12 +8,8 @@ export declare class ARIO {
|
|
|
8
8
|
static init(config: ARIOConfigWithSigner): AoARIOWrite;
|
|
9
9
|
static init(config: ARIOConfigNoSigner): AoARIORead;
|
|
10
10
|
static mainnet(): AoARIORead;
|
|
11
|
-
static mainnet(config: ARIOConfigNoSigner
|
|
12
|
-
|
|
13
|
-
}): AoARIORead;
|
|
14
|
-
static mainnet(config: ARIOConfigWithSigner & {
|
|
15
|
-
faucetUrl?: string;
|
|
16
|
-
}): AoARIOWrite;
|
|
11
|
+
static mainnet(config: ARIOConfigNoSigner): AoARIORead;
|
|
12
|
+
static mainnet(config: ARIOConfigWithSigner): AoARIOWrite;
|
|
17
13
|
static testnet(): ARIOWithFaucet<AoARIORead>;
|
|
18
14
|
static testnet(config: ARIOConfigNoSigner & {
|
|
19
15
|
faucetUrl?: string;
|
package/lib/types/version.d.ts
CHANGED