@getpara/server-sdk 1.7.1 → 2.0.0-alpha.3

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/index.js CHANGED
@@ -534,8 +534,8 @@ var Para = class extends import_core_sdk3.default {
534
534
  * @param {TPregenIdentifierType} opts.pregenIdentifierType - the type of the identifier.
535
535
  * @returns {Promise<string | undefined>} A promise that rejects with an error.
536
536
  */
537
- claimPregenWallets() {
538
- return __async(this, arguments, function* ({} = {}) {
537
+ claimPregenWallets(_) {
538
+ return __async(this, null, function* () {
539
539
  throw new Error(
540
540
  "claimPregenWallets is not available in the server SDK. This function is only supported on the client side. Please ensure you are using the client SDK to call this method."
541
541
  );
Binary file
Binary file
Binary file
package/dist/esm/index.js CHANGED
@@ -2,7 +2,9 @@
2
2
  export * from "@getpara/core-sdk";
3
3
 
4
4
  // src/ParaServer.ts
5
- import ParaCore, { Environment } from "@getpara/core-sdk";
5
+ import ParaCore, {
6
+ Environment
7
+ } from "@getpara/core-sdk";
6
8
  import * as Sentry from "@sentry/node";
7
9
 
8
10
  // src/ServerLocalStorage.ts
@@ -455,7 +457,7 @@ var Para = class extends ParaCore {
455
457
  * @param {TPregenIdentifierType} opts.pregenIdentifierType - the type of the identifier.
456
458
  * @returns {Promise<string | undefined>} A promise that rejects with an error.
457
459
  */
458
- async claimPregenWallets({} = {}) {
460
+ async claimPregenWallets(_) {
459
461
  throw new Error(
460
462
  "claimPregenWallets is not available in the server SDK. This function is only supported on the client side. Please ensure you are using the client SDK to call this method."
461
463
  );
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- import ParaCore, { PlatformUtils, ConstructorOpts, Environment, TPregenIdentifierType } from '@getpara/core-sdk';
1
+ import ParaCore, { PlatformUtils, ConstructorOpts, Environment, CoreMethodParams, CoreMethodResponse } from '@getpara/core-sdk';
2
2
  export declare class Para extends ParaCore {
3
3
  constructor(env: Environment, apiKey?: string, opts?: ConstructorOpts);
4
4
  protected getPlatformUtils(): PlatformUtils;
@@ -13,8 +13,5 @@ export declare class Para extends ParaCore {
13
13
  * @param {TPregenIdentifierType} opts.pregenIdentifierType - the type of the identifier.
14
14
  * @returns {Promise<string | undefined>} A promise that rejects with an error.
15
15
  */
16
- claimPregenWallets({}?: {
17
- pregenIdentifier?: string;
18
- pregenIdentifierType?: TPregenIdentifierType;
19
- }): Promise<string | undefined>;
16
+ claimPregenWallets(_: CoreMethodParams<'claimPregenWallets'>): CoreMethodResponse<'claimPregenWallets'>;
20
17
  }
@@ -1,7 +1,7 @@
1
1
  import { Environment } from '@getpara/core-sdk';
2
2
  interface Message {
3
3
  env: Environment;
4
- apiKey?: string;
4
+ apiKey: string;
5
5
  cosmosPrefix?: string;
6
6
  offloadMPCComputationURL?: string;
7
7
  disableWorkers?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/server-sdk",
3
- "version": "1.7.1",
3
+ "version": "2.0.0-alpha.3",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/types/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "wasm_exec.js"
10
10
  ],
11
11
  "dependencies": {
12
- "@getpara/core-sdk": "1.7.1",
13
- "@getpara/user-management-client": "1.7.1",
12
+ "@getpara/core-sdk": "2.0.0-alpha.3",
13
+ "@getpara/user-management-client": "2.0.0-alpha.3",
14
14
  "@sentry/node": "^9.1.0",
15
15
  "uuid": "^9.0.1",
16
16
  "ws": "^8.14.2"
@@ -31,5 +31,5 @@
31
31
  "dist",
32
32
  "package.json"
33
33
  ],
34
- "gitHead": "767395af96d4a724946a092de760e9137a73369a"
34
+ "gitHead": "77a1e04b06258842ca9c81e3db2a2b0092517659"
35
35
  }
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,4 +0,0 @@
1
- {
2
- "type": "module",
3
- "sideEffects": false
4
- }