suidouble 0.0.18 → 0.0.20

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
@@ -18,7 +18,12 @@ Set of provider, package and object classes for javascript representation of Sui
18
18
  - [Connecting web3 dapps to Sui](#sui-move-connect-in-browser)
19
19
  - [Todo](#todo)
20
20
 
21
- Also take a look at sample Vue dapp application [source code](https://github.com/suidouble/suidouble-sample-app) or [check it online](https://suidouble-sample-app.herokuapp.com/).
21
+ ### Sample applications
22
+
23
+ | Name | Stack | Online | Github |
24
+ |----------|---------------|---------|--------|
25
+ | suidouble-sample-app | Vue + suidouble | [suidouble-sample-app](https://suidouble-sample-app.herokuapp.com/) | [source code](https://github.com/suidouble/suidouble-sample-app) |
26
+ | suidouble-color | Vue + suidouble | [suidouble-color](https://suidouble-color.herokuapp.com/) | [source code](https://github.com/suidouble/suidouble-sample-color) |
22
27
 
23
28
  ### installation
24
29
 
@@ -34,7 +34,7 @@ class SuiCommonMethods extends EventTarget {
34
34
 
35
35
  emit(eventType, data) {
36
36
  try {
37
- if (data.isSuiEvent) {
37
+ if (data && data.isSuiEvent) {
38
38
  this.dispatchEvent(data);
39
39
  } else {
40
40
  this.dispatchEvent(new CustomEvent(eventType, { detail: data }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "suidouble",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "Set of provider, package and object classes for javascript representation of Sui Move smart contracts. Use same code for publishing, upgrading, integration testing, interaction with smart contracts and integration in browser web3 dapps",
5
5
  "main": "index.js",
6
6
  "scripts": {