Socket
Socket
Sign inDemoInstall

@adonisjs/hash

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/hash - npm Package Compare versions

Comparing version 8.1.0-0 to 8.2.0-0

build/test_factories/hash_manager.d.ts

6

build/src/hash_manager.js

@@ -36,4 +36,3 @@ import { Hash } from './hash.js';

}
const config = this.#config.list[hasherToUse];
const cachedHasher = this.#hashersCache[config.driver];
const cachedHasher = this.#hashersCache[hasherToUse];
if (cachedHasher) {

@@ -43,5 +42,6 @@ debug('using hasher from cache. name: "%s"', hasherToUse);

}
const config = this.#config.list[hasherToUse];
debug('creating hash driver. name: "%s", config: %O', hasherToUse, config);
const hash = new Hash(this.#createDriver(config.driver, config));
this.#hashersCache[config.driver] = hash;
this.#hashersCache[hasherToUse] = hash;
return hash;

@@ -48,0 +48,0 @@ }

{
"name": "@adonisjs/hash",
"version": "8.1.0-0",
"version": "8.2.0-0",
"description": "Multi driver hash module with support for PHC string formats",

@@ -9,2 +9,3 @@ "main": "build/index.js",

"build/src",
"build/test_factories",
"build/index.d.ts",

@@ -15,3 +16,4 @@ "build/index.js"

".": "./build/index.js",
"./types": "./build/src/types.js"
"./types": "./build/src/types.js",
"./test_factories/*": "./build/test_factories/*.js"
},

@@ -40,4 +42,4 @@ "scripts": {

"devDependencies": {
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/cli": "^17.4.1",
"@commitlint/config-conventional": "^17.4.0",
"@japa/assert": "^1.3.6",

@@ -49,7 +51,7 @@ "@japa/expect-type": "^1.0.2",

"@poppinss/dev-utils": "^2.0.3",
"@swc/core": "^1.3.21",
"@swc/core": "^1.3.26",
"@types/bcrypt": "^5.0.0",
"@types/node": "^18.11.10",
"@types/node": "^18.11.18",
"@types/sinon": "^10.0.13",
"argon2": "^0.30.2",
"argon2": "^0.30.3",
"bcrypt": "^5.0.1",

@@ -59,20 +61,20 @@ "c8": "^7.12.0",

"del-cli": "^5.0.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-adonis": "^3.0.3",
"eslint-plugin-prettier": "^4.2.1",
"github-label-sync": "^2.2.0",
"husky": "^8.0.2",
"np": "^7.6.2",
"prettier": "^2.7.1",
"sinon": "^15.0.0",
"husky": "^8.0.3",
"np": "^7.6.3",
"prettier": "^2.8.2",
"sinon": "^15.0.1",
"ts-node": "^10.9.1",
"typescript": "^4.9.3"
"typescript": "^4.9.4"
},
"dependencies": {
"@phc/format": "^1.0.0",
"@poppinss/utils": "^6.1.0-0"
"@poppinss/utils": "^6.3.1-0"
},
"peerDependencies": {
"argon2": "^0.30.2",
"argon2": "^0.30.3",
"bcrypt": "^5.0.1"

@@ -79,0 +81,0 @@ },

@@ -24,3 +24,3 @@ # @adonisjs/events

[gh-workflow-image]: https://img.shields.io/github/workflow/status/adonisjs/hash/test?style=for-the-badge
[gh-workflow-image]: https://img.shields.io/github/actions/workflow/status/adonisjs/hash/test.yml?style=for-the-badge
[gh-workflow-url]: https://github.com/adonisjs/hash/actions/workflows/test.yml "Github action"

@@ -27,0 +27,0 @@

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