Skip to content

Commit be7860d

Browse files
author
Egor Komarov
committed
chore: bump version to 2.3.0; improve nodejs support;
1 parent 10e7d58 commit be7860d

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules/
33
dist/
44
package-lock.json
5+
.DS_Store

package.json

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
{
22
"name": "everscale-standalone-client",
3-
"version": "2.2.1",
3+
"version": "2.3.0",
44
"repository": "https://github.com/broxus/everscale-standalone-client",
55
"scripts": {
66
"build": "tsc",
7-
"publish": "cp package.json dist/package.json && cp README.md dist/README.md && cp LICENSE dist/LICENSE && cd dist && npm publish",
8-
"preview": "npm run build && cp package.json dist/package.json && cp README.md dist/README.md && cp LICENSE dist/LICENSE",
97
"lint": "npx eslint ."
108
},
119
"author": "",
1210
"license": "GPL-3.0",
1311
"devDependencies": {
1412
"@types/events": "^3.0.3",
13+
"@types/node": "^22.15.29",
1514
"@typescript-eslint/eslint-plugin": "^8.32.0",
1615
"@typescript-eslint/parser": "^8.32.0",
1716
"eslint": "^9.26.0",
@@ -25,10 +24,21 @@
2524
"events": "^3.3.0",
2625
"everscale-inpage-provider": "^0.6.0",
2726
"fast-safe-stringify": "^2.1.1",
28-
"nekoton-wasm": "^1.5.0",
27+
"nekoton-wasm": "^1.5.2",
2928
"node-fetch": "^2.6.7"
3029
},
31-
"types": "index.d.ts",
32-
"main": "index_main.js",
33-
"browser": "index.js"
30+
"main": "./dist/index.js",
31+
"types": "./dist/index.d.ts",
32+
"exports": {
33+
".": {
34+
"default": "./dist/index.js",
35+
"types": "./dist/index.d.ts"
36+
},
37+
"./nodejs": {
38+
"require": "./dist/nodejs.js",
39+
"default": "./dist/nodejs.js",
40+
"types": "./dist/nodejs.d.ts"
41+
}
42+
},
43+
"files": ["./dist/*"]
3444
}

src/client/SubscriptionController/subscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class ContractSubscription {
9191
const timerHandle = setTimeout(() => {
9292
this._refreshTimer = undefined;
9393
resolve();
94-
}, pollingInterval);
94+
}, pollingInterval) as any;
9595
this._refreshTimer = [timerHandle, resolve];
9696
});
9797

src/nodejs.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
/* @ts-ignore */
2-
const nekoton = require('nekoton-wasm');
3-
/* @ts-ignore */
1+
const nekoton = require('nekoton-wasm/node');
42
const fetch = require('node-fetch');
5-
/* @ts-ignore */
63
const http = require('http');
7-
/* @ts-ignore */
84
const https = require('https');
95

106
const httpAgent = new http.Agent({ keepAlive: true });

0 commit comments

Comments
 (0)