@tonconnect/sdk 0.0.26 → 0.0.29

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.
@@ -17,9 +17,8 @@ const url_1 = require("../../utils/url");
17
17
  const web_api_1 = require("../../utils/web-api");
18
18
  if ((0, web_api_1.isNode)()) {
19
19
  try {
20
- // noinspection JSConstantReassignment
21
- global.EventSource = require('eventsource');
22
- global.fetch = require('node-fetch');
20
+ eval("global.EventSource = require('eventsource')");
21
+ eval("global.fetch = require('node-fetch')");
23
22
  }
24
23
  catch (err) {
25
24
  console.error(err);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonconnect/sdk",
3
- "version": "0.0.26",
3
+ "version": "0.0.29",
4
4
  "scripts": {
5
5
  "build": "npx rimraf lib && ttsc",
6
6
  "build:production": "npx rimraf lib && ttsc --sourceMap false"
@@ -28,7 +28,7 @@
28
28
  "tweetnacl": "^1.0.3",
29
29
  "eventsource": "^2.0.2",
30
30
  "node-fetch": "^2.6.7",
31
- "@tonconnect/protocol": "^0.0.14"
31
+ "@tonconnect/protocol": "^0.0.16"
32
32
  },
33
33
  "files": [
34
34
  "lib"