@ar.io/sdk 2.4.0-alpha.9 → 2.4.0

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.
@@ -1,3 +1,27 @@
1
- import { BlockHeight } from '../types/common.js';
1
+ /**
2
+ * Copyright (C) 2022-2024 Permanent Data Solutions, Inc.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import Arweave from 'arweave';
17
+ import { BlockHeight, Timestamp } from '../types/common.js';
2
18
  export declare const validateArweaveId: (id: string) => boolean;
3
19
  export declare function isBlockHeight(height: string | number): height is BlockHeight;
20
+ export declare const pruneTags: (tags: {
21
+ name: string;
22
+ value: string | undefined;
23
+ }[]) => {
24
+ name: string;
25
+ value: string;
26
+ }[];
27
+ export declare const getCurrentBlockUnixTimestampMs: (arweave: Arweave) => Promise<Timestamp>;
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export * from './arweave.js';
17
- export * from './http-client.js';
18
16
  export * from './ao.js';
17
+ export * from './arweave.js';
18
+ export * from './base64.js';
19
19
  export * from './json.js';
20
20
  export * from './processes.js';
21
21
  export * from './schema.js';
@@ -29,11 +29,13 @@ export declare class ArNSEventEmitter extends EventEmitter {
29
29
  private timeoutMs;
30
30
  private throttle;
31
31
  private logger;
32
- constructor({ contract, timeoutMs, concurrency, logger, }?: {
32
+ private strict;
33
+ constructor({ contract, timeoutMs, concurrency, logger, strict, }?: {
33
34
  contract?: AoIORead;
34
35
  timeoutMs?: number;
35
36
  concurrency?: number;
36
37
  logger?: ILogger;
38
+ strict?: boolean;
37
39
  });
38
40
  fetchProcessesOwnedByWallet({ address, pageSize, antRegistry, }: {
39
41
  address: WalletAddress;
@@ -13,4 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const version = "2.4.0-alpha.8";
16
+ export declare const version = "2.4.0-alpha.16";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "2.4.0-alpha.9",
3
+ "version": "2.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -109,6 +109,7 @@
109
109
  "husky": "^8.0.3",
110
110
  "lint-staged": "^15.2.2",
111
111
  "markdown-toc-gen": "^1.0.1",
112
+ "nock": "^13.5.5",
112
113
  "prettier": "^3.0.2",
113
114
  "rimraf": "^5.0.1",
114
115
  "semantic-release": "^21.0.7",