@getpara/server-sdk 2.0.0-alpha.44 → 2.0.0-alpha.45

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.
@@ -53,8 +53,8 @@ module.exports = __toCommonJS(ParaServer_exports);
53
53
  var import_core_sdk = __toESM(require("@getpara/core-sdk"));
54
54
  var import_ServerUtils = require("./ServerUtils.js");
55
55
  class Para extends import_core_sdk.default {
56
- constructor(env, apiKey, opts) {
57
- super(env, apiKey, opts);
56
+ constructor(envOrApiKey, apiKeyOrOpts, opts) {
57
+ super(envOrApiKey, apiKeyOrOpts, opts);
58
58
  }
59
59
  ready() {
60
60
  return __async(this, null, function* () {
@@ -2,8 +2,8 @@ import "./chunk-FTA5RKYX.js";
2
2
  import ParaCore from "@getpara/core-sdk";
3
3
  import { ServerUtils } from "./ServerUtils.js";
4
4
  class Para extends ParaCore {
5
- constructor(env, apiKey, opts) {
6
- super(env, apiKey, opts);
5
+ constructor(envOrApiKey, apiKeyOrOpts, opts) {
6
+ super(envOrApiKey, apiKeyOrOpts, opts);
7
7
  }
8
8
  async ready() {
9
9
  this.isReady = true;
@@ -1,6 +1,7 @@
1
1
  import ParaCore, { PlatformUtils, ConstructorOpts, Environment, CoreMethodParams, CoreMethodResponse } from '@getpara/core-sdk';
2
2
  export declare class Para extends ParaCore {
3
- constructor(env: Environment, apiKey?: string, opts?: ConstructorOpts);
3
+ constructor(env: Environment | undefined, apiKey: string, opts?: ConstructorOpts);
4
+ constructor(apiKey: string, opts?: ConstructorOpts);
4
5
  ready(): Promise<void>;
5
6
  protected getPlatformUtils(): PlatformUtils;
6
7
  isPasskeySupported(): Promise<boolean>;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@getpara/server-sdk",
3
- "version": "2.0.0-alpha.44",
3
+ "version": "2.0.0-alpha.45",
4
4
  "dependencies": {
5
- "@getpara/core-sdk": "2.0.0-alpha.44",
6
- "@getpara/user-management-client": "2.0.0-alpha.44",
5
+ "@getpara/core-sdk": "2.0.0-alpha.45",
6
+ "@getpara/user-management-client": "2.0.0-alpha.45",
7
7
  "uuid": "^11.1.0",
8
8
  "ws": "^8.14.2"
9
9
  },
@@ -15,7 +15,7 @@
15
15
  "dist",
16
16
  "package.json"
17
17
  ],
18
- "gitHead": "b4b97e2443de5eef177eba429426e4e41d9a3d9a",
18
+ "gitHead": "0a049e7d4e48caae1347619fd8c0518793fbc53c",
19
19
  "main": "dist/cjs/index.js",
20
20
  "module": "dist/esm/index.js",
21
21
  "scripts": {