@medialane/sdk 0.164.0 → 0.166.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/{chunk-HYHQH5SP.cjs → chunk-TPONHUAU.cjs} +2 -11
- package/dist/{chunk-HYHQH5SP.cjs.map → chunk-TPONHUAU.cjs.map} +1 -1
- package/dist/{chunk-RLBOUTCQ.js → chunk-USFXQO4T.js} +2 -11
- package/dist/{chunk-RLBOUTCQ.js.map → chunk-USFXQO4T.js.map} +1 -1
- package/dist/{errors-D_dnks1i.d.ts → errors-DRiTDrwm.d.ts} +0 -2
- package/dist/{errors-nZw63PCE.d.cts → errors-GcSzVvZL.d.cts} +0 -2
- package/dist/index.cjs +73 -73
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/starknet/index.cjs +68 -74
- package/dist/starknet/index.cjs.map +1 -1
- package/dist/starknet/index.d.cts +3 -4
- package/dist/starknet/index.d.ts +3 -4
- package/dist/starknet/index.js +3 -8
- package/dist/starknet/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -682,7 +682,6 @@ var ApiClient = class {
|
|
|
682
682
|
};
|
|
683
683
|
if (options.chain) body.chain = options.chain;
|
|
684
684
|
if (options.email) body.email = options.email;
|
|
685
|
-
if (options.accountToken) body.accountToken = options.accountToken;
|
|
686
685
|
return this.request("/v1/users/me", {
|
|
687
686
|
method: "POST",
|
|
688
687
|
body: JSON.stringify(body),
|
|
@@ -713,14 +712,6 @@ var ApiClient = class {
|
|
|
713
712
|
const body = await this.post("/v1/users/me/wallet", {});
|
|
714
713
|
return body.walletAddress ? { walletAddress: body.walletAddress, needsKeySetup: body.needsKeySetup === true } : null;
|
|
715
714
|
}
|
|
716
|
-
async getSession() {
|
|
717
|
-
try {
|
|
718
|
-
return await this.request("/v1/users/me", { method: "GET" });
|
|
719
|
-
} catch (err) {
|
|
720
|
-
if (err instanceof MedialaneApiError && (err.status === 401 || err.status === 403)) return null;
|
|
721
|
-
throw err;
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
715
|
getMyWallet(siwsToken) {
|
|
725
716
|
return this.request(
|
|
726
717
|
"/v1/users/me",
|
|
@@ -1907,5 +1898,5 @@ exports.starkKeyPairFromPrivateKey = starkKeyPairFromPrivateKey;
|
|
|
1907
1898
|
exports.stringifyBigInts = stringifyBigInts;
|
|
1908
1899
|
exports.u256ToBigInt = u256ToBigInt;
|
|
1909
1900
|
exports.unsealPrivateKey = unsealPrivateKey;
|
|
1910
|
-
//# sourceMappingURL=chunk-
|
|
1911
|
-
//# sourceMappingURL=chunk-
|
|
1901
|
+
//# sourceMappingURL=chunk-TPONHUAU.cjs.map
|
|
1902
|
+
//# sourceMappingURL=chunk-TPONHUAU.cjs.map
|