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.3.0-beta.29 to 0.3.0-beta.30

coverage/clover.xml

8

__tests__/database-manager.ts

@@ -109,2 +109,6 @@ import { DatabaseManager } from '../src';

}
public setUserDeactivated() {
return this.name;
}
}

@@ -240,2 +244,6 @@

});
it('setUserDeactivated should be called on sessionStorage', () => {
expect(databaseManager.setUserDeactivated('userId', true)).toBe('userStorage');
});
});

1

lib/database-manager.d.ts

@@ -33,2 +33,3 @@ import { DatabaseInterface } from '@accounts/types';

readonly setResetPassword: DatabaseInterface['setResetPassword'];
readonly setUserDeactivated: DatabaseInterface['setUserDeactivated'];
}

@@ -220,2 +220,10 @@ "use strict";

});
Object.defineProperty(DatabaseManager.prototype, "setUserDeactivated", {
// Return the setResetPassword function from the userStorage
get: function () {
return this.userStorage.setUserDeactivated.bind(this.userStorage);
},
enumerable: true,
configurable: true
});
return DatabaseManager;

@@ -222,0 +230,0 @@ }());

4

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

@@ -50,4 +50,4 @@ "main": "lib/index.js",

"dependencies": {
"@accounts/types": "^0.3.0-beta.29"
"@accounts/types": "^0.3.0-beta.30"
}
}

@@ -157,2 +157,7 @@ import { DatabaseInterface, DatabaseInterfaceSessions } from '@accounts/types';

}
// Return the setResetPassword function from the userStorage
public get setUserDeactivated(): DatabaseInterface['setUserDeactivated'] {
return this.userStorage.setUserDeactivated.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