@accounts/database-manager
Advanced tools
Comparing version 0.25.1 to 0.26.0-alpha.0
@@ -34,2 +34,9 @@ import { DatabaseInterface } from '@accounts/types'; | ||
get setUserDeactivated(): DatabaseInterface['setUserDeactivated']; | ||
get findAuthenticatorById(): DatabaseInterface['findAuthenticatorById']; | ||
get findUserAuthenticators(): DatabaseInterface['findUserAuthenticators']; | ||
get createAuthenticator(): DatabaseInterface['createAuthenticator']; | ||
get activateAuthenticator(): DatabaseInterface['activateAuthenticator']; | ||
get createMfaChallenge(): DatabaseInterface['createMfaChallenge']; | ||
get findMfaChallengeByToken(): DatabaseInterface['findMfaChallengeByToken']; | ||
get deactivateMfaChallenge(): DatabaseInterface['deactivateMfaChallenge']; | ||
} |
@@ -228,2 +228,58 @@ "use strict"; | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "findAuthenticatorById", { | ||
// Return the findAuthenticatorById function from the userStorage | ||
get: function () { | ||
return this.userStorage.findAuthenticatorById.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "findUserAuthenticators", { | ||
// Return the findUserAuthenticators function from the userStorage | ||
get: function () { | ||
return this.userStorage.findUserAuthenticators.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "createAuthenticator", { | ||
// Return the createAuthenticator function from the userStorage | ||
get: function () { | ||
return this.userStorage.createAuthenticator.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "activateAuthenticator", { | ||
// Return the activateAuthenticator function from the userStorage | ||
get: function () { | ||
return this.userStorage.activateAuthenticator.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "createMfaChallenge", { | ||
// Return the createMfaChallenge function from the userStorage | ||
get: function () { | ||
return this.userStorage.createMfaChallenge.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "findMfaChallengeByToken", { | ||
// Return the findMfaChallengeByToken function from the userStorage | ||
get: function () { | ||
return this.userStorage.findMfaChallengeByToken.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(DatabaseManager.prototype, "deactivateMfaChallenge", { | ||
// Return the deactivateMfaChallenge function from the userStorage | ||
get: function () { | ||
return this.userStorage.deactivateMfaChallenge.bind(this.userStorage); | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
return DatabaseManager; | ||
@@ -230,0 +286,0 @@ }()); |
{ | ||
"name": "@accounts/database-manager", | ||
"version": "0.25.1", | ||
"version": "0.26.0-alpha.0", | ||
"description": "Accounts Database Manager, allow the use of separate databases for session and user", | ||
@@ -44,6 +44,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/types": "^0.25.1", | ||
"@accounts/types": "^0.26.0-alpha.0", | ||
"tslib": "1.10.0" | ||
}, | ||
"gitHead": "18c02edee2a382236923b4b6c221362dba3c7bb9" | ||
"gitHead": "0e9eb3bcdf3c5416555647d97c91b817b07850f7" | ||
} |
@@ -162,2 +162,37 @@ import { DatabaseInterface, DatabaseInterfaceSessions } from '@accounts/types'; | ||
} | ||
// Return the findAuthenticatorById function from the userStorage | ||
public get findAuthenticatorById(): DatabaseInterface['findAuthenticatorById'] { | ||
return this.userStorage.findAuthenticatorById.bind(this.userStorage); | ||
} | ||
// Return the findUserAuthenticators function from the userStorage | ||
public get findUserAuthenticators(): DatabaseInterface['findUserAuthenticators'] { | ||
return this.userStorage.findUserAuthenticators.bind(this.userStorage); | ||
} | ||
// Return the createAuthenticator function from the userStorage | ||
public get createAuthenticator(): DatabaseInterface['createAuthenticator'] { | ||
return this.userStorage.createAuthenticator.bind(this.userStorage); | ||
} | ||
// Return the activateAuthenticator function from the userStorage | ||
public get activateAuthenticator(): DatabaseInterface['activateAuthenticator'] { | ||
return this.userStorage.activateAuthenticator.bind(this.userStorage); | ||
} | ||
// Return the createMfaChallenge function from the userStorage | ||
public get createMfaChallenge(): DatabaseInterface['createMfaChallenge'] { | ||
return this.userStorage.createMfaChallenge.bind(this.userStorage); | ||
} | ||
// Return the findMfaChallengeByToken function from the userStorage | ||
public get findMfaChallengeByToken(): DatabaseInterface['findMfaChallengeByToken'] { | ||
return this.userStorage.findMfaChallengeByToken.bind(this.userStorage); | ||
} | ||
// Return the deactivateMfaChallenge function from the userStorage | ||
public get deactivateMfaChallenge(): DatabaseInterface['deactivateMfaChallenge'] { | ||
return this.userStorage.deactivateMfaChallenge.bind(this.userStorage); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
117951
1241
+ Added@accounts/types@0.26.0(transitive)
- Removed@accounts/types@0.25.4(transitive)