@getpara/core-sdk 1.14.2 → 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.
package/dist/cjs/ParaCore.js
CHANGED
|
@@ -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,
|
|
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
|
}
|
package/dist/cjs/constants.js
CHANGED
|
@@ -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.
|
|
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`;
|
package/dist/esm/ParaCore.js
CHANGED
|
@@ -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,
|
|
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
|
}
|
package/dist/esm/constants.js
CHANGED
package/dist/types/ParaCore.d.ts
CHANGED
|
@@ -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(
|
|
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.
|
|
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.
|
|
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": "
|
|
43
|
+
"gitHead": "6ac18641c816748275a35c5b40bfc734a48abe8f"
|
|
44
44
|
}
|