Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@accounts/database-manager

Package Overview
Dependencies
Maintainers
6
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/database-manager - npm Package Compare versions

Comparing version 0.30.0-alpha.1 to 0.30.0

10

lib/database-manager.d.ts

@@ -34,12 +34,2 @@ 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 deactivateAuthenticator(): DatabaseInterface['deactivateAuthenticator'];
get updateAuthenticator(): DatabaseInterface['updateAuthenticator'];
get createMfaChallenge(): DatabaseInterface['createMfaChallenge'];
get findMfaChallengeByToken(): DatabaseInterface['findMfaChallengeByToken'];
get deactivateMfaChallenge(): DatabaseInterface['deactivateMfaChallenge'];
get updateMfaChallenge(): DatabaseInterface['updateMfaChallenge'];
}

@@ -229,82 +229,2 @@ "use strict";

});
Object.defineProperty(DatabaseManager.prototype, "findAuthenticatorById", {
// Return the findAuthenticatorById function from the userStorage
get: function () {
return this.userStorage.findAuthenticatorById.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "findUserAuthenticators", {
// Return the findUserAuthenticators function from the userStorage
get: function () {
return this.userStorage.findUserAuthenticators.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "createAuthenticator", {
// Return the createAuthenticator function from the userStorage
get: function () {
return this.userStorage.createAuthenticator.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "activateAuthenticator", {
// Return the activateAuthenticator function from the userStorage
get: function () {
return this.userStorage.activateAuthenticator.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "deactivateAuthenticator", {
// Return the deactivateAuthenticator function from the userStorage
get: function () {
return this.userStorage.deactivateAuthenticator.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "updateAuthenticator", {
// Return the updateAuthenticator function from the userStorage
get: function () {
return this.userStorage.updateAuthenticator.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "createMfaChallenge", {
// Return the createMfaChallenge function from the userStorage
get: function () {
return this.userStorage.createMfaChallenge.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "findMfaChallengeByToken", {
// Return the findMfaChallengeByToken function from the userStorage
get: function () {
return this.userStorage.findMfaChallengeByToken.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "deactivateMfaChallenge", {
// Return the deactivateMfaChallenge function from the userStorage
get: function () {
return this.userStorage.deactivateMfaChallenge.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
Object.defineProperty(DatabaseManager.prototype, "updateMfaChallenge", {
// Return the updateMfaChallenge function from the userStorage
get: function () {
return this.userStorage.updateMfaChallenge.bind(this.userStorage);
},
enumerable: false,
configurable: true
});
return DatabaseManager;

@@ -311,0 +231,0 @@ }());

16

package.json
{
"name": "@accounts/database-manager",
"version": "0.30.0-alpha.1",
"version": "0.30.0",
"description": "Accounts Database Manager, allow the use of separate databases for session and user",

@@ -17,3 +17,3 @@ "main": "lib/index.js",

"test": "npm run test",
"testonly": "jest",
"testonly": "jest --coverage",
"coverage": "jest --coverage"

@@ -43,12 +43,12 @@ },

"devDependencies": {
"@types/jest": "26.0.9",
"@types/node": "14.0.27",
"jest": "26.3.0",
"@types/jest": "25.2.3",
"@types/node": "14.0.14",
"jest": "26.0.1",
"rimraf": "3.0.2"
},
"dependencies": {
"@accounts/types": "^0.30.0-alpha.1",
"tslib": "2.0.1"
"@accounts/types": "^0.30.0",
"tslib": "2.0.0"
},
"gitHead": "eb9750193707aecb771b63d29540a8b6c316ebe0"
"gitHead": "a883d3b90c481e9c73a7655ef2aadac092fc6b0e"
}

@@ -162,52 +162,2 @@ 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 deactivateAuthenticator function from the userStorage
public get deactivateAuthenticator(): DatabaseInterface['deactivateAuthenticator'] {
return this.userStorage.deactivateAuthenticator.bind(this.userStorage);
}
// Return the updateAuthenticator function from the userStorage
public get updateAuthenticator(): DatabaseInterface['updateAuthenticator'] {
return this.userStorage.updateAuthenticator.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);
}
// Return the updateMfaChallenge function from the userStorage
public get updateMfaChallenge(): DatabaseInterface['updateMfaChallenge'] {
return this.userStorage.updateMfaChallenge.bind(this.userStorage);
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc