diff --git a/package-lock.json b/package-lock.json index 250c976..85e0831 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "xumm", - "version": "1.6.6", + "version": "1.7.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "xumm", - "version": "1.6.6", + "version": "1.7.1", "license": "MIT", "dependencies": { "buffer": "^6.0.3", @@ -15,7 +15,7 @@ "xumm-js-pkce": "^1.0.2", "xumm-oauth2-pkce": "^2.8.3", "xumm-sdk": "^1.9.2", - "xumm-xapp-sdk": "^1.6.5" + "xumm-xapp-sdk": "^1.7.1" }, "devDependencies": { "@types/jest": "^26.0.12", @@ -10208,9 +10208,9 @@ } }, "node_modules/xumm-xapp-sdk": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/xumm-xapp-sdk/-/xumm-xapp-sdk-1.6.5.tgz", - "integrity": "sha512-/dfXCjpCzDqPeMq/Sv0T77JMluGT2SKJjN3dY56mEM6dZPObvcvvtwk7/pNRDu3wAb8yHyVOTPUXo0X9Rl47oQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/xumm-xapp-sdk/-/xumm-xapp-sdk-1.7.1.tgz", + "integrity": "sha512-zUZ71Oxx+YP3g+EsgBhJoA7XKwGrwQgG9/utsKr9cH0Rjrj5cMg0grAZBt+794LMSIxFSYKFf8BTgqZ4RdsLCw==", "dependencies": { "debug": "^4.1.1", "events": "^3.3.0" @@ -18290,9 +18290,9 @@ } }, "xumm-xapp-sdk": { - "version": "1.6.5", - "resolved": "https://registry.npmjs.org/xumm-xapp-sdk/-/xumm-xapp-sdk-1.6.5.tgz", - "integrity": "sha512-/dfXCjpCzDqPeMq/Sv0T77JMluGT2SKJjN3dY56mEM6dZPObvcvvtwk7/pNRDu3wAb8yHyVOTPUXo0X9Rl47oQ==", + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/xumm-xapp-sdk/-/xumm-xapp-sdk-1.7.1.tgz", + "integrity": "sha512-zUZ71Oxx+YP3g+EsgBhJoA7XKwGrwQgG9/utsKr9cH0Rjrj5cMg0grAZBt+794LMSIxFSYKFf8BTgqZ4RdsLCw==", "requires": { "debug": "^4.1.1", "events": "^3.3.0" diff --git a/package.json b/package.json index 30864bb..5dde169 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xumm", - "version": "1.6.7", + "version": "1.7.1", "description": "One Xumm SDK to rule them all (browser, backend, xApp)", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -37,7 +37,7 @@ "xumm-js-pkce": "^1.0.2", "xumm-oauth2-pkce": "^2.8.3", "xumm-sdk": "^1.9.2", - "xumm-xapp-sdk": "^1.6.5" + "xumm-xapp-sdk": "^1.7.1" }, "devDependencies": { "@types/jest": "^26.0.12", diff --git a/src/index.ts b/src/index.ts index 5c9726e..3d6aca4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,6 +17,7 @@ import type { xApp, xAppEvent, qrEventData, + xAppNetworkSwitch, payloadEventData, destinationEventData, } from "xumm-xapp-sdk"; @@ -520,6 +521,9 @@ export class Xumm extends EventEmitter { _classes.xApp.on("payload", (data: payloadEventData) => { this.emit("payload", data, this.instance); }); + _classes.xApp.on("networkswitch", (data: xAppNetworkSwitch) => { + this.emit("networkswitch", data, this.instance); + }); _classes.xApp.on("destination", (data: destinationEventData) => { this.emit("destination", data, this.instance); });