dash-platform-sdk 1.0.2 → 1.0.4

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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # dash-platform-sdk v1.0.2
1
+ # dash-platform-sdk v1.0.4
2
2
  [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/pshenmic/dash-platform-sdk/blob/master/LICENSE) ![npm version](https://img.shields.io/npm/v/react.svg?style=flat) ![a](https://github.com/pshenmic/platform-explorer/actions/workflows/build.yml/badge.svg)
3
3
 
4
4
 
@@ -25,7 +25,7 @@ $ npm install dash-platform-sdk
25
25
 
26
26
  Alternatively, you could simply include the library from the CDN:
27
27
 
28
- https://unpkg.com/dash-platform-sdk@1.0.2/dist/main.js
28
+ https://unpkg.com/dash-platform-sdk@1.0.4/dist/main.js
29
29
 
30
30
  ## Quickstart
31
31
  To use the SDK, simply import the library and instantiate an instance of DashPlatformSDK:
@@ -34,11 +34,21 @@ To use the SDK, simply import the library and instantiate an instance of DashPla
34
34
  import DashPlatformSDK from 'dash-platform-sdk'
35
35
 
36
36
  // CommonJS
37
- const { default: DashPlatformSDK } = require('dash-platform-sdk')
37
+ const DashPlatformSDK = require('dash-platform-sdk')
38
38
 
39
- const sdk = new DashPlatformSDK({network: 'testnet'})
39
+ const sdk = new DashPlatformSDK({network: 'testnet'})
40
40
  ```
41
41
 
42
+ Or load it straight from the web page:
43
+
44
+ ```html
45
+ <script src="https://unpkg.com/dash-platform-sdk@1.0.4/dist/main.js"></script>
46
+ <script>
47
+ const sdk = new DashPlatformSDK({network: 'testnet'})
48
+ </script>
49
+ ```
50
+
51
+
42
52
  ## API Documentation
43
53
 
44
54
  ### Data Contracts