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

@accounts/password

Package Overview
Dependencies
Maintainers
6
Versions
139
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@accounts/password - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

4

lib/accounts-password.js

@@ -541,3 +541,5 @@ "use strict";

if (!isPasswordValid) {
throw new Error(this.options.errors.incorrectPassword);
throw new Error(this.server.options.ambiguousErrorMessages
? this.options.errors.invalidCredentials
: this.options.errors.incorrectPassword);
}

@@ -544,0 +546,0 @@ return [2 /*return*/, foundUser];

{
"name": "@accounts/password",
"version": "0.6.0",
"version": "0.6.1",
"license": "MIT",

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

"dependencies": {
"@accounts/two-factor": "^0.6.0",
"@accounts/two-factor": "^0.6.1",
"bcryptjs": "^2.4.3",

@@ -33,7 +33,7 @@ "lodash": "^4.17.11"

"devDependencies": {
"@accounts/server": "^0.6.0",
"@accounts/types": "^0.6.0",
"@accounts/server": "^0.6.1",
"@accounts/types": "^0.6.1",
"@types/bcryptjs": "2.4.2",
"@types/jest": "23.3.7",
"@types/lodash": "4.14.117",
"@types/jest": "23.3.9",
"@types/lodash": "4.14.118",
"@types/node": "10.12.0",

@@ -40,0 +40,0 @@ "jest": "23.6.0",

@@ -455,3 +455,7 @@ import { trim, isEmpty, pick, isString, isPlainObject, find, includes, defer } from 'lodash';

if (!isPasswordValid) {
throw new Error(this.options.errors.incorrectPassword);
throw new Error(
this.server.options.ambiguousErrorMessages
? this.options.errors.invalidCredentials
: this.options.errors.incorrectPassword
);
}

@@ -458,0 +462,0 @@

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