@getpara/core-sdk 1.14.1 → 1.15.0

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
  }
@@ -1838,13 +1836,6 @@ const _ParaCore = class _ParaCore {
1838
1836
  */
1839
1837
  getOAuthURL(_0) {
1840
1838
  return __async(this, arguments, function* ({ method, deeplinkUrl }) {
1841
- if (deeplinkUrl) {
1842
- try {
1843
- new URL(deeplinkUrl);
1844
- } catch (e) {
1845
- throw new Error("Invalid deeplink URL");
1846
- }
1847
- }
1848
1839
  yield this.logout();
1849
1840
  const res = yield this.touchSession(true);
1850
1841
  return (0, import_utils2.constructUrl)({
@@ -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.1";
40
+ const PARA_CORE_VERSION = "1.15.0";
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
  }
@@ -1788,13 +1786,6 @@ const _ParaCore = class _ParaCore {
1788
1786
  */
1789
1787
  getOAuthURL(_0) {
1790
1788
  return __async(this, arguments, function* ({ method, deeplinkUrl }) {
1791
- if (deeplinkUrl) {
1792
- try {
1793
- new URL(deeplinkUrl);
1794
- } catch (e) {
1795
- throw new Error("Invalid deeplink URL");
1796
- }
1797
- }
1798
1789
  yield this.logout();
1799
1790
  const res = yield this.touchSession(true);
1800
1791
  return constructUrl({
@@ -1,5 +1,5 @@
1
1
  import "./chunk-7B52C2XE.js";
2
- const PARA_CORE_VERSION = "1.14.1";
2
+ const PARA_CORE_VERSION = "1.15.0";
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.1",
3
+ "version": "1.15.0",
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.1",
13
+ "@getpara/user-management-client": "1.15.0",
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": "694c785ee8c0623379631d1514ca604ce5916326"
43
+ "gitHead": "6ac18641c816748275a35c5b40bfc734a48abe8f"
44
44
  }