@getpara/server-sdk 1.11.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/cjs/ParaServer.js
CHANGED
|
@@ -51,17 +51,10 @@ __export(ParaServer_exports, {
|
|
|
51
51
|
});
|
|
52
52
|
module.exports = __toCommonJS(ParaServer_exports);
|
|
53
53
|
var import_core_sdk = __toESM(require("@getpara/core-sdk"));
|
|
54
|
-
var Sentry = __toESM(require("@sentry/node"));
|
|
55
54
|
var import_ServerUtils = require("./ServerUtils.js");
|
|
56
55
|
class Para extends import_core_sdk.default {
|
|
57
56
|
constructor(env, apiKey, opts) {
|
|
58
57
|
super(env, apiKey, opts);
|
|
59
|
-
if (env !== import_core_sdk.Environment.PROD && env !== import_core_sdk.Environment.DEV) {
|
|
60
|
-
Sentry.init({
|
|
61
|
-
environment: env.toLowerCase(),
|
|
62
|
-
dsn: "https://2a26842d951255c2721fde5c1dd2b252@o4504568036720640.ingest.us.sentry.io/4508850906791936"
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
58
|
}
|
|
66
59
|
getPlatformUtils() {
|
|
67
60
|
return new import_ServerUtils.ServerUtils();
|
package/dist/cjs/ServerUtils.js
CHANGED
|
@@ -27,6 +27,7 @@ var import_signing = require("./wallet/signing.js");
|
|
|
27
27
|
var import_privateKey = require("./wallet/privateKey.js");
|
|
28
28
|
class ServerUtils {
|
|
29
29
|
constructor() {
|
|
30
|
+
this.sdkType = "SERVER";
|
|
30
31
|
this.localStorage = new import_ServerLocalStorage.ServerLocalStorage();
|
|
31
32
|
this.sessionStorage = new import_ServerSessionStorage.ServerSessionStorage();
|
|
32
33
|
this.secureStorage = void 0;
|
package/dist/esm/ParaServer.js
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import "./chunk-FTA5RKYX.js";
|
|
2
|
-
import ParaCore
|
|
3
|
-
import * as Sentry from "@sentry/node";
|
|
2
|
+
import ParaCore from "@getpara/core-sdk";
|
|
4
3
|
import { ServerUtils } from "./ServerUtils.js";
|
|
5
4
|
class Para extends ParaCore {
|
|
6
5
|
constructor(env, apiKey, opts) {
|
|
7
6
|
super(env, apiKey, opts);
|
|
8
|
-
if (env !== Environment.PROD && env !== Environment.DEV) {
|
|
9
|
-
Sentry.init({
|
|
10
|
-
environment: env.toLowerCase(),
|
|
11
|
-
dsn: "https://2a26842d951255c2721fde5c1dd2b252@o4504568036720640.ingest.us.sentry.io/4508850906791936"
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
7
|
}
|
|
15
8
|
getPlatformUtils() {
|
|
16
9
|
return new ServerUtils();
|
package/dist/esm/ServerUtils.js
CHANGED
|
@@ -6,6 +6,7 @@ import { signMessage, sendTransaction, signTransaction, ed25519Sign } from "./wa
|
|
|
6
6
|
import { getPrivateKey } from "./wallet/privateKey.js";
|
|
7
7
|
class ServerUtils {
|
|
8
8
|
constructor() {
|
|
9
|
+
this.sdkType = "SERVER";
|
|
9
10
|
this.localStorage = new ServerLocalStorage();
|
|
10
11
|
this.sessionStorage = new ServerSessionStorage();
|
|
11
12
|
this.secureStorage = void 0;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import type { Ctx, SignatureRes, PlatformUtils, TPregenIdentifierType, WalletType } from '@getpara/core-sdk';
|
|
4
|
-
import { BackupKitEmailProps } from '@getpara/user-management-client';
|
|
4
|
+
import { BackupKitEmailProps, SDKType } from '@getpara/user-management-client';
|
|
5
5
|
import { ServerLocalStorage } from './ServerLocalStorage.js';
|
|
6
6
|
import { ServerSessionStorage } from './ServerSessionStorage.js';
|
|
7
7
|
export declare class ServerUtils 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, sessionCookie: string, emailProps?: BackupKitEmailProps): Promise<{
|
|
10
11
|
signer: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/server-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
"wasm_exec.js"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@getpara/core-sdk": "1.
|
|
13
|
-
"@getpara/user-management-client": "1.
|
|
14
|
-
"
|
|
15
|
-
"uuid": "^9.0.1",
|
|
12
|
+
"@getpara/core-sdk": "1.12.0",
|
|
13
|
+
"@getpara/user-management-client": "1.12.0",
|
|
14
|
+
"uuid": "^11.1.0",
|
|
16
15
|
"ws": "^8.14.2"
|
|
17
16
|
},
|
|
18
17
|
"scripts": {
|
|
@@ -31,5 +30,5 @@
|
|
|
31
30
|
"dist",
|
|
32
31
|
"package.json"
|
|
33
32
|
],
|
|
34
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "748afcf08c9d307a2d3eaf0716f73132f3eb8529"
|
|
35
34
|
}
|