@ar.io/sdk 1.2.0-alpha.20 → 1.2.0-alpha.21

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,7 +1,4 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.ArNSEventEmitter = exports.getANTProcessesOwnedByWallet = void 0;
7
4
  /**
@@ -20,7 +17,7 @@ exports.ArNSEventEmitter = exports.getANTProcessesOwnedByWallet = void 0;
20
17
  * You should have received a copy of the GNU Affero General Public License
21
18
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
22
19
  */
23
- const eventemitter3_1 = __importDefault(require("eventemitter3"));
20
+ const eventemitter3_1 = require("eventemitter3");
24
21
  const plimit_lit_1 = require("plimit-lit");
25
22
  const ant_js_1 = require("../../common/ant.js");
26
23
  const io_js_1 = require("../../common/io.js");
@@ -69,7 +66,7 @@ function timeout(ms, promise) {
69
66
  });
70
67
  });
71
68
  }
72
- class ArNSEventEmitter extends eventemitter3_1.default {
69
+ class ArNSEventEmitter extends eventemitter3_1.EventEmitter {
73
70
  contract;
74
71
  timeoutMs; // timeout for each request to 3 seconds
75
72
  throttle;
@@ -18,4 +18,4 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.version = void 0;
20
20
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
21
- exports.version = '1.2.0-alpha.20';
21
+ exports.version = '1.2.0-alpha.21';
@@ -14,7 +14,7 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import EventEmitter from 'eventemitter3';
17
+ import { EventEmitter } from 'eventemitter3';
18
18
  import { pLimit } from 'plimit-lit';
19
19
  import { ANT } from '../../common/ant.js';
20
20
  import { IO } from '../../common/io.js';
@@ -15,4 +15,4 @@
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
18
- export const version = '1.2.0-alpha.20';
18
+ export const version = '1.2.0-alpha.21';
@@ -14,7 +14,7 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- import EventEmitter from 'eventemitter3';
17
+ import { EventEmitter } from 'eventemitter3';
18
18
  import { AoIORead, ProcessId, WalletAddress } from '../../types.js';
19
19
  export declare const getANTProcessesOwnedByWallet: ({ address, contract, }: {
20
20
  address: WalletAddress;
@@ -14,4 +14,4 @@
14
14
  * You should have received a copy of the GNU Affero General Public License
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
- export declare const version = "1.2.0-alpha.19";
17
+ export declare const version = "1.2.0-alpha.20";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ar.io/sdk",
3
- "version": "1.2.0-alpha.20",
3
+ "version": "1.2.0-alpha.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/ar-io/ar-io-sdk.git"
@@ -68,11 +68,12 @@
68
68
  "format": "prettier --check .",
69
69
  "format:fix": "prettier --write .",
70
70
  "test": "yarn test:unit && yarn test:integration",
71
- "test:cjs": "cd ./tests/e2e/cjs && yarn && yarn start",
72
- "test:esm": "cd ./tests/e2e/esm && yarn && yarn start",
71
+ "test:cjs": "cd ./tests/e2e/cjs && yarn && yarn test",
72
+ "test:esm": "cd ./tests/e2e/esm && yarn && yarn test",
73
+ "test:web": "cd ./tests/e2e/web && yarn && yarn test",
73
74
  "test:unit": "jest --config=jest.config.mjs",
74
75
  "test:link": "yarn build && yarn link",
75
- "test:e2e": "yarn test:link && yarn test:cjs && yarn test:esm",
76
+ "test:e2e": "yarn test:link && yarn test:cjs && yarn test:esm && yarn test:web",
76
77
  "test:integration": "jest --config=jest.integration.config.mjs --runInBand",
77
78
  "test:docker": "docker-compose up --exit-code-from test-runner --build",
78
79
  "prepare": "husky install",
@@ -127,6 +128,7 @@
127
128
  "axios": "1.7.2",
128
129
  "axios-retry": "^4.3.0",
129
130
  "bunyan": "^1.8.15",
131
+ "eventemitter3": "^5.0.1",
130
132
  "plimit-lit": "^3.0.1",
131
133
  "warp-contracts": "1.4.45"
132
134
  },