@getpara/core-sdk 1.14.2 → 1.15.1

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.
@@ -1790,12 +1790,10 @@ const _ParaCore = class _ParaCore {
1790
1790
  * @return {string} the Farcaster connect URI
1791
1791
  */
1792
1792
  getFarcasterConnectURL() {
1793
- return __async(this, null, function* () {
1793
+ return __async(this, arguments, function* ({ deeplinkUrl } = {}) {
1794
1794
  yield this.logout();
1795
1795
  yield this.touchSession(true);
1796
- const {
1797
- data: { connect_uri }
1798
- } = yield this.ctx.client.initializeFarcasterLogin();
1796
+ const { connect_uri } = yield this.ctx.client.initializeFarcasterLogin({ deeplinkUrl });
1799
1797
  return connect_uri;
1800
1798
  });
1801
1799
  }
@@ -37,7 +37,7 @@ __export(constants_exports, {
37
37
  SHORT_POLLING_INTERVAL_MS: () => SHORT_POLLING_INTERVAL_MS
38
38
  });
39
39
  module.exports = __toCommonJS(constants_exports);
40
- const PARA_CORE_VERSION = "1.14.2";
40
+ const PARA_CORE_VERSION = "1.15.1";
41
41
  const PREFIX = "@CAPSULE/";
42
42
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
43
43
  const LOCAL_STORAGE_PHONE = `${PREFIX}phone`;
@@ -1740,12 +1740,10 @@ const _ParaCore = class _ParaCore {
1740
1740
  * @return {string} the Farcaster connect URI
1741
1741
  */
1742
1742
  getFarcasterConnectURL() {
1743
- return __async(this, null, function* () {
1743
+ return __async(this, arguments, function* ({ deeplinkUrl } = {}) {
1744
1744
  yield this.logout();
1745
1745
  yield this.touchSession(true);
1746
- const {
1747
- data: { connect_uri }
1748
- } = yield this.ctx.client.initializeFarcasterLogin();
1746
+ const { connect_uri } = yield this.ctx.client.initializeFarcasterLogin({ deeplinkUrl });
1749
1747
  return connect_uri;
1750
1748
  });
1751
1749
  }
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "1.14.2";
2
+ const PARA_CORE_VERSION = "1.15.1";
3
3
  const PREFIX = "@CAPSULE/";
4
4
  const LOCAL_STORAGE_EMAIL = `${PREFIX}e-mail`;
5
5
  const LOCAL_STORAGE_PHONE = `${PREFIX}phone`;
@@ -582,7 +582,9 @@ export declare abstract class ParaCore {
582
582
  * You can create a QR code with this URI that works with Farcaster's mobile app.
583
583
  * @return {string} the Farcaster connect URI
584
584
  */
585
- getFarcasterConnectURL(): Promise<string>;
585
+ getFarcasterConnectURL({ deeplinkUrl }?: {
586
+ deeplinkUrl?: string;
587
+ }): Promise<string>;
586
588
  /**
587
589
  * Awaits the response from a user's attempt to log in with Farcaster.
588
590
  * If successful, this returns the user's Farcaster username and profile picture and indicates whether the user already exists.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/core-sdk",
3
- "version": "1.14.2",
3
+ "version": "1.15.1",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "@celo/utils": "^8.0.2",
11
11
  "@cosmjs/encoding": "^0.32.4",
12
12
  "@ethereumjs/util": "^9.1.0",
13
- "@getpara/user-management-client": "1.14.2",
13
+ "@getpara/user-management-client": "1.15.1",
14
14
  "@noble/hashes": "^1.5.0",
15
15
  "base64url": "^3.0.1",
16
16
  "libphonenumber-js": "1.11.2",
@@ -40,5 +40,5 @@
40
40
  "require": "./dist/cjs/index.js"
41
41
  }
42
42
  },
43
- "gitHead": "514fa08e3df97f2053676fb4ecf47f7e9df5497e"
43
+ "gitHead": "591a28303fdd9abd944d512e7dfdb73759a32ed8"
44
44
  }