vona-module-a-user 5.0.31 → 5.0.32
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/index.js +5 -5
- package/dist/types/user.d.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -393,19 +393,19 @@ let BeanUser = (_dec$a = Bean(), _dec2$a = BeanInfo({
|
|
|
393
393
|
const user = await this.userAdapter.userOfProfile(profile);
|
|
394
394
|
return await this.register(user, profile.confirmed);
|
|
395
395
|
}
|
|
396
|
-
createAnonymous() {
|
|
396
|
+
async createAnonymous() {
|
|
397
397
|
return this.userAdapter.createAnonymous();
|
|
398
398
|
}
|
|
399
|
-
findOneByName(name) {
|
|
399
|
+
async findOneByName(name) {
|
|
400
400
|
return this.userAdapter.findOneByName(name);
|
|
401
401
|
}
|
|
402
|
-
findOne(user) {
|
|
402
|
+
async findOne(user) {
|
|
403
403
|
return this.userAdapter.findOne(user);
|
|
404
404
|
}
|
|
405
|
-
update(user) {
|
|
405
|
+
async update(user) {
|
|
406
406
|
return this.userAdapter.update(user);
|
|
407
407
|
}
|
|
408
|
-
remove(user) {
|
|
408
|
+
async remove(user) {
|
|
409
409
|
return this.userAdapter.remove(user);
|
|
410
410
|
}
|
|
411
411
|
}) || _class$a) || _class$a);
|
package/dist/types/user.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export interface IUserBase {
|
|
|
19
19
|
}
|
|
20
20
|
export interface IUserAdapter {
|
|
21
21
|
create(user: Partial<IUserBase>): Promise<IUserBase>;
|
|
22
|
-
userOfProfile(profile: IAuthUserProfile): Promise<IUserBase
|
|
23
|
-
createAnonymous(): Promise<IUserBase
|
|
22
|
+
userOfProfile(profile: IAuthUserProfile): Promise<Partial<IUserBase>>;
|
|
23
|
+
createAnonymous(): Promise<Partial<IUserBase>>;
|
|
24
24
|
findOneByName(name: string): Promise<IUserBase | undefined>;
|
|
25
25
|
findOne(user: Partial<IUserBase>): Promise<IUserBase | undefined>;
|
|
26
26
|
update(user: Partial<IUserBase>): Promise<void>;
|