@ray-js/lock-sdk 1.1.2-beta.1 → 1.1.2

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/lib/user.d.ts CHANGED
@@ -25,6 +25,6 @@ export declare const openFamilyUserDetail: (userId: string) => Promise<undefined
25
25
  interface AddUserParams {
26
26
  name: string;
27
27
  }
28
- export declare const addUser: (params: AddUserParams) => Promise<void>;
28
+ export declare const addUser: (params: AddUserParams) => Promise<import("./api/user").AddNormalUserResponse>;
29
29
  export declare const removeUser: (userId: string) => Promise<void>;
30
30
  export {};
package/lib/user.js CHANGED
@@ -263,7 +263,7 @@ export const addUser = async (params) => {
263
263
  throw getError(1009, "name");
264
264
  }
265
265
  try {
266
- await addNormalUser({
266
+ return await addNormalUser({
267
267
  devId: config.devInfo.devId,
268
268
  name: params.name,
269
269
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lock-sdk",
3
- "version": "1.1.2-beta.1",
3
+ "version": "1.1.2",
4
4
  "files": [
5
5
  "lib",
6
6
  "LICENSE.md"