suidouble 0.0.27 → 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.
package/lib/SuiCommonMethods.js
CHANGED
|
@@ -32,9 +32,9 @@ class SuiCommonMethods extends EventTarget {
|
|
|
32
32
|
console.info.apply(null, args);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
emit(eventType, data) {
|
|
35
|
+
emit(eventType, data, forceCustom = false) {
|
|
36
36
|
try {
|
|
37
|
-
if (data && data.isSuiEvent) {
|
|
37
|
+
if (data && data.isSuiEvent && !forceCustom) {
|
|
38
38
|
this.dispatchEvent(data);
|
|
39
39
|
} else {
|
|
40
40
|
this.dispatchEvent(new CustomEvent(eventType, { detail: data }));
|
package/lib/SuiPackageModule.js
CHANGED
|
@@ -50,7 +50,7 @@ class SuiPackageModule extends SuiCommonMethods {
|
|
|
50
50
|
this.log('got event', eventTypeName);
|
|
51
51
|
|
|
52
52
|
this.emit(eventTypeName, suiEvent); // emit specific event name
|
|
53
|
-
this.emit('event', suiEvent);
|
|
53
|
+
this.emit('event', suiEvent, true); // emit to common events flow
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
this._unsubscribeFunction = await this._suiMaster._provider.subscribeEvent({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "suidouble",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.29",
|
|
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": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Jeka Kiselyov <jeka911@gmail.com> (https://github.com/jeka-kiselyov)",
|
|
22
22
|
"license": "Apache-2.0",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@mysten/sui.js": "^0.
|
|
24
|
+
"@mysten/sui.js": "^0.37.1",
|
|
25
25
|
"@wallet-standard/core": "^1.0.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|