@ray-js/lock-sdk 1.2.0-beta.29 → 1.2.0-beta.30

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.
@@ -4,7 +4,7 @@ let primaryRuntime = null;
4
4
  export function setPrimaryLockSDKInstance(instance) {
5
5
  const runtime = getRuntimeForLockSDKInstance(instance);
6
6
  if (!runtime) {
7
- throw new Error("setPrimaryLockSDKInstance: instance must be returned by createLockSDK or init");
7
+ throw new Error("setPrimaryLockSDKInstance: instance must be returned by createSDK or init");
8
8
  }
9
9
  primaryDevId = runtime.devId;
10
10
  primaryRuntime = runtime;
@@ -21,7 +21,7 @@ export function resolveRuntimeFromExportThis(thisArg) {
21
21
  }
22
22
  const rt = getRuntimeByDevId(devId);
23
23
  if (!rt) {
24
- throw new Error(`Lock SDK: no registered runtime for devId "${devId}"; use createLockSDK or init first`);
24
+ throw new Error(`Lock SDK: no registered runtime for devId "${devId}"; use createSDK or init first`);
25
25
  }
26
26
  return rt;
27
27
  }
@@ -3,6 +3,6 @@ import type { LockSDKInstance, FitSDKInstance } from "./build-instance";
3
3
  export * from "./exports";
4
4
  export type { LockSDKInstance, FitSDKInstance };
5
5
  export type { LockSdkBoundExportThis } from "./bootstrap/resolve-runtime-from-export-this";
6
- export declare const createLockSDK: (options?: Omit<LockSDKOption, "preFetch">) => Promise<LockSDKInstance>;
6
+ export declare const createSDK: (options?: Omit<LockSDKOption, "preFetch">) => Promise<LockSDKInstance>;
7
7
  export declare const init: (options?: LockSDKOption) => Promise<void>;
8
8
  export declare const destroy: () => void;
@@ -7,7 +7,7 @@ import { getLaunchOptionsSync } from "../../platform/device";
7
7
  import { stopFitSyncReportForRuntime } from "../../feature/fit/sync";
8
8
  import { getError } from "../../utils/errors";
9
9
  export * from "./exports";
10
- export const createLockSDK = async (options) => {
10
+ export const createSDK = async (options) => {
11
11
  const kind = options?.kind ?? "lock";
12
12
  const { instance } = await bootstrapRegisteredInstance(kind, {
13
13
  ...options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.2.0-beta.29",
3
+ "version": "1.2.0-beta.30",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"