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

@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 1.0.11 to 1.0.12

3

build/adonis-typings/hash.d.ts

@@ -86,2 +86,3 @@ declare module '@ioc:Adonis/Core/Hash' {

export interface HashersList {
bcrypt: HashDrivers['bcrypt'];
}

@@ -104,3 +105,3 @@ /**

*/
export interface HashContract<DefaultDriver = HashersList[HashConfigContract['default']]['implementation']> extends ManagerContract<HashDriverContract, {
export interface HashContract<DefaultDriver = HashersList[HashConfigContract['default']]['implementation']> extends ManagerContract<HashDriverContract, HashDriverContract, {
[P in keyof HashersList]: HashersList[P]['implementation'];

@@ -107,0 +108,0 @@ }> {

@@ -8,3 +8,3 @@ /// <reference path="../adonis-typings/hash.d.ts" />

*/
export declare class Hash<Config extends HashConfigContract> extends Manager<HashDriverContract, {
export declare class Hash<Config extends HashConfigContract> extends Manager<HashDriverContract, HashDriverContract, {
[P in keyof HashersList]: HashersList[P]['implementation'];

@@ -44,7 +44,7 @@ }> implements HashContract<HashDriverContract> {

*/
verify(hashedValue: string, plainValue: string): never;
verify(hashedValue: string, plainValue: string): Promise<boolean>;
/**
* Find if value needs to be re-hashed as per the default driver.
*/
needsReHash(hashedValue: string): never;
needsReHash(hashedValue: string): boolean;
}
{
"name": "@adonisjs/hash",
"version": "1.0.11",
"version": "1.0.12",
"description": "Multi driver hash module with support for PHC string formats",

@@ -47,3 +47,3 @@ "main": "build/providers/HashProvider",

"@phc/bcrypt": "^1.0.2",
"@types/node": "^13.7.0",
"@types/node": "^13.9.3",
"commitizen": "^4.0.3",

@@ -55,12 +55,12 @@ "copyfiles": "^2.2.0",

"eslint": "^6.8.0",
"eslint-plugin-adonis": "^1.0.6",
"husky": "^4.2.1",
"eslint-plugin-adonis": "^1.0.8",
"husky": "^4.2.3",
"japa": "^3.0.1",
"mrm": "^2.0.4",
"mrm": "^2.1.1",
"np": "^5.2.1",
"ts-node": "^8.6.2",
"typedoc": "^0.16.9",
"ts-node": "^8.8.1",
"typedoc": "^0.17.3",
"typedoc-plugin-external-module-name": "^3.0.0",
"typedoc-plugin-markdown": "^2.2.16",
"typescript": "^3.7.5"
"typedoc-plugin-markdown": "^2.2.17",
"typescript": "^3.8.3"
},

@@ -67,0 +67,0 @@ "nyc": {

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