@getpara/web-sdk 1.10.0 → 1.12.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/ParaWeb.js +1 -8
- package/dist/WebUtils.d.ts +2 -1
- package/dist/WebUtils.js +1 -0
- package/package.json +4 -6
package/dist/ParaWeb.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunk-M66XENHI.js";
|
|
3
|
-
import
|
|
4
|
-
import ParaCore, { Environment } from "@getpara/core-sdk";
|
|
3
|
+
import ParaCore from "@getpara/core-sdk";
|
|
5
4
|
import { WebUtils } from "./WebUtils.js";
|
|
6
5
|
class Para extends ParaCore {
|
|
7
6
|
constructor(env, apiKey, opts) {
|
|
8
7
|
super(env, apiKey, opts);
|
|
9
|
-
if (env !== Environment.PROD && env !== Environment.DEV) {
|
|
10
|
-
Sentry.init({
|
|
11
|
-
environment: env.toLowerCase(),
|
|
12
|
-
dsn: "https://38f27d4836da617ab9e95cf66b9611d9@o4504568036720640.ingest.us.sentry.io/4508850812944384"
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
8
|
}
|
|
16
9
|
getPlatformUtils() {
|
|
17
10
|
return new WebUtils();
|
package/dist/WebUtils.d.ts
CHANGED
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
import { Ctx, PlatformUtils, SignatureRes, PopupType } from '@getpara/core-sdk';
|
|
3
3
|
import { LocalStorage } from './LocalStorage.js';
|
|
4
4
|
import { SessionStorage } from './SessionStorage.js';
|
|
5
|
-
import { BackupKitEmailProps, WalletType } from '@getpara/user-management-client';
|
|
5
|
+
import { BackupKitEmailProps, WalletType, SDKType } from '@getpara/user-management-client';
|
|
6
6
|
import { TPregenIdentifierType } from '@getpara/core-sdk';
|
|
7
7
|
export declare class WebUtils implements PlatformUtils {
|
|
8
|
+
sdkType: SDKType;
|
|
8
9
|
getPrivateKey(ctx: Ctx, userId: string, walletId: string, share: string, sessionCookie: string): Promise<string>;
|
|
9
10
|
keygen(ctx: Ctx, userId: string, type: Exclude<WalletType, WalletType.SOLANA>, secretKey: string | null, // should be acceptable as null in RN as we don't pre-gen them
|
|
10
11
|
sessionCookie: string, emailProps?: BackupKitEmailProps): Promise<{
|
package/dist/WebUtils.js
CHANGED
|
@@ -8,6 +8,7 @@ import { signMessage, sendTransaction, signTransaction, ed25519Sign } from "./wa
|
|
|
8
8
|
import { getPrivateKey } from "./wallet/privateKey.js";
|
|
9
9
|
class WebUtils {
|
|
10
10
|
constructor() {
|
|
11
|
+
this.sdkType = "WEB";
|
|
11
12
|
this.localStorage = new LocalStorage();
|
|
12
13
|
this.sessionStorage = new SessionStorage();
|
|
13
14
|
this.secureStorage = null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/web-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,10 +8,8 @@
|
|
|
8
8
|
"wasm_exec.js"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@getpara/core-sdk": "1.
|
|
12
|
-
"@getpara/user-management-client": "1.
|
|
13
|
-
"@sentry/browser": "^9.1.0",
|
|
14
|
-
"assert": "^2.1.0",
|
|
11
|
+
"@getpara/core-sdk": "1.12.0",
|
|
12
|
+
"@getpara/user-management-client": "1.12.0",
|
|
15
13
|
"base64url": "3.0.1",
|
|
16
14
|
"buffer": "6.0.3",
|
|
17
15
|
"cbor-web": "8.1.0",
|
|
@@ -37,5 +35,5 @@
|
|
|
37
35
|
"dist",
|
|
38
36
|
"package.json"
|
|
39
37
|
],
|
|
40
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "748afcf08c9d307a2d3eaf0716f73132f3eb8529"
|
|
41
39
|
}
|