@fivenorth/loop-sdk 0.7.5 → 0.7.6

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/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2694,7 +2694,7 @@ class LoopWallet {
2694
2694
 
2695
2695
  // src/index.ts
2696
2696
  class LoopSDK {
2697
- version = "0.7.5";
2697
+ version = "0.7.6";
2698
2698
  appName = "Unknown";
2699
2699
  connection = null;
2700
2700
  session = null;
@@ -2859,6 +2859,12 @@ class LoopSDK {
2859
2859
  this.provider.handleResponse(message);
2860
2860
  }
2861
2861
  }
2862
+ getConnectUrl() {
2863
+ if (!this.session?.ticketId) {
2864
+ throw new Error("No ticket ID found. Please call connect() first.");
2865
+ }
2866
+ return this.buildConnectUrl(this.session.ticketId);
2867
+ }
2862
2868
  buildConnectUrl(ticketId) {
2863
2869
  const url = new URL("/.connect/", this.connection.walletUrl);
2864
2870
  url.searchParams.set("ticketId", ticketId);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fivenorth/loop-sdk",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "author": "support@fivenorth.io",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",