@getpara/server-sdk 2.0.0-alpha.3 → 2.0.0-dev.1
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 +2 -2
- package/dist/cjs/index.js.br +0 -0
- package/dist/cjs/index.js.gz +0 -0
- package/dist/cjs/workers/worker.js.gz +0 -0
- package/dist/esm/index.js +2 -4
- package/dist/esm/index.js.br +0 -0
- package/dist/esm/index.js.gz +0 -0
- package/dist/esm/workers/chunk-ILICZWQV.js.gz +0 -0
- package/dist/esm/workers/wasm_exec-CFNSOXDO.js.gz +0 -0
- package/dist/esm/workers/worker.js.gz +0 -0
- package/dist/types/ParaServer.d.ts +5 -2
- package/package.json +4 -4
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,
|
|
537
|
+
claimPregenWallets() {
|
|
538
|
+
return __async(this, arguments, 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
|
);
|
package/dist/cjs/index.js.br
CHANGED
|
Binary file
|
package/dist/cjs/index.js.gz
CHANGED
|
Binary file
|
|
Binary file
|
package/dist/esm/index.js
CHANGED
|
@@ -2,9 +2,7 @@
|
|
|
2
2
|
export * from "@getpara/core-sdk";
|
|
3
3
|
|
|
4
4
|
// src/ParaServer.ts
|
|
5
|
-
import ParaCore, {
|
|
6
|
-
Environment
|
|
7
|
-
} from "@getpara/core-sdk";
|
|
5
|
+
import ParaCore, { Environment } from "@getpara/core-sdk";
|
|
8
6
|
import * as Sentry from "@sentry/node";
|
|
9
7
|
|
|
10
8
|
// src/ServerLocalStorage.ts
|
|
@@ -457,7 +455,7 @@ var Para = class extends ParaCore {
|
|
|
457
455
|
* @param {TPregenIdentifierType} opts.pregenIdentifierType - the type of the identifier.
|
|
458
456
|
* @returns {Promise<string | undefined>} A promise that rejects with an error.
|
|
459
457
|
*/
|
|
460
|
-
async claimPregenWallets(
|
|
458
|
+
async claimPregenWallets({} = {}) {
|
|
461
459
|
throw new Error(
|
|
462
460
|
"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."
|
|
463
461
|
);
|
package/dist/esm/index.js.br
CHANGED
|
Binary file
|
package/dist/esm/index.js.gz
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ParaCore, { PlatformUtils, ConstructorOpts, Environment,
|
|
1
|
+
import ParaCore, { PlatformUtils, ConstructorOpts, Environment, TPregenIdentifierType } 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,5 +13,8 @@ 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(
|
|
16
|
+
claimPregenWallets({}?: {
|
|
17
|
+
pregenIdentifier?: string;
|
|
18
|
+
pregenIdentifierType?: TPregenIdentifierType;
|
|
19
|
+
}): Promise<string | undefined>;
|
|
17
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/server-sdk",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-dev.1",
|
|
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": "2.0.0-
|
|
13
|
-
"@getpara/user-management-client": "2.0.0-
|
|
12
|
+
"@getpara/core-sdk": "2.0.0-dev.1",
|
|
13
|
+
"@getpara/user-management-client": "2.0.0-dev.1",
|
|
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": "
|
|
34
|
+
"gitHead": "426e843bd6084fb2e5f30ab87b02c79fc2f52832"
|
|
35
35
|
}
|