@tonconnect/sdk 0.0.33 → 0.0.35

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.
Files changed (2) hide show
  1. package/README.md +15 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,8 +8,21 @@ See the example of sdk usage [here](https://github.com/ton-connect/demo-dapp).
8
8
 
9
9
  [Latest API documentation](https://ton-connect.github.io/sdk/modules/_tonconnect_sdk.html)
10
10
 
11
- # Get started
12
- ## Install package
11
+ # Getting started
12
+ ## Installation with cdn
13
+ Add the script to your HTML file:
14
+ ```html
15
+ <script src="https://unpkg.com/@tonconnect/sdk@latest/dist/tonconnect-sdk.min.js"></script>
16
+ ```
17
+
18
+ You can find `TonConnect` in global variable `TonConnectSDK`, e.g.
19
+ ```html
20
+ <script>
21
+ const connector = new TonConnectSDK.TonConnect();
22
+ </script>
23
+ ```
24
+
25
+ ## Installation with npm
13
26
  `npm i @tonconnect/sdk`
14
27
 
15
28
  ## Init connector and call autoConnect. If user connected his wallet before, connector will restore the connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonconnect/sdk",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "scripts": {
5
5
  "build": "npx rimraf lib && ttsc && npx rimraf dist && webpack --mode development",
6
6
  "build:production": "npx rimraf lib && ttsc --sourceMap false && npx rimraf dist && webpack --mode production"
@@ -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.20"
31
+ "@tonconnect/protocol": "^0.0.21"
32
32
  },
33
33
  "files": [
34
34
  "lib",