@getpara/web-sdk 2.0.0-alpha.27 → 2.0.0-alpha.29

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.
@@ -7,9 +7,7 @@ export declare function ed25519PreKeygen(ctx: Ctx, pregenIdentifier: string, pre
7
7
  signer: string;
8
8
  walletId: string;
9
9
  }>;
10
- export declare function ed25519Sign(ctx: Ctx, share: string, userId: string, walletId: string, base64Bytes: string): Promise<{
11
- signature: string;
12
- }>;
10
+ export declare function ed25519Sign(ctx: Ctx, share: string, userId: string, walletId: string, base64Bytes: string): Promise<SignatureRes>;
13
11
  export declare function keygen(ctx: Ctx, userId: string, type: Exclude<TWalletType, 'SOLANA'>, secretKey: string | null): Promise<{
14
12
  signer: string;
15
13
  walletId: string;
@@ -106,7 +106,10 @@ function ed25519Sign(ctx, share, userId, walletId, base64Bytes) {
106
106
  }
107
107
  });
108
108
  }();
109
- yield preSignMessageRes;
109
+ const { pendingTransactionId } = yield preSignMessageRes;
110
+ if (pendingTransactionId) {
111
+ return { pendingTransactionId };
112
+ }
110
113
  return yield signRes;
111
114
  });
112
115
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@getpara/web-sdk",
3
- "version": "2.0.0-alpha.27",
3
+ "version": "2.0.0-alpha.29",
4
4
  "dependencies": {
5
- "@getpara/core-sdk": "2.0.0-alpha.27",
6
- "@getpara/user-management-client": "2.0.0-alpha.27",
5
+ "@getpara/core-sdk": "2.0.0-alpha.29",
6
+ "@getpara/user-management-client": "2.0.0-alpha.29",
7
7
  "@sentry/browser": "^9.1.0",
8
8
  "base64url": "^3.0.1",
9
9
  "buffer": "6.0.3",
@@ -21,7 +21,7 @@
21
21
  "dist",
22
22
  "package.json"
23
23
  ],
24
- "gitHead": "a54f63445995abd13220eda3d63809728e4b5f7e",
24
+ "gitHead": "7b90cb5a1a83f9bce9d61bd2baf190c47b58b705",
25
25
  "main": "dist/index.js",
26
26
  "scripts": {
27
27
  "build": "rm -rf dist && yarn typegen && node ./scripts/build.mjs && yarn post-build",