@adonisjs/hash
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -66,2 +66,5 @@ declare module '@ioc:Adonis/Core/Hash' { | ||
} | ||
export interface FakeContract extends HashDriverContract { | ||
ids: ['fake']; | ||
} | ||
/** | ||
@@ -83,2 +86,5 @@ * Default list of available drivers. One can you reference this type | ||
}; | ||
fake: { | ||
implementation: FakeContract; | ||
}; | ||
}; | ||
@@ -108,2 +114,3 @@ /** | ||
}> { | ||
readonly isFaked: boolean; | ||
/** | ||
@@ -115,2 +122,7 @@ * Hash plain text value using the default mapping | ||
/** | ||
* Fake/restore hash implementations | ||
*/ | ||
fake(): void; | ||
restore(): void; | ||
/** | ||
* Verify plain value against the hashed value to find if it's | ||
@@ -117,0 +129,0 @@ * valid or not |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Argon = void 0; | ||
/// <reference path="../../adonis-typings/hash.ts" /> | ||
@@ -16,0 +17,0 @@ const format_1 = __importDefault(require("@phc/format")); |
@@ -14,2 +14,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bcrypt = void 0; | ||
/// <reference path="../../adonis-typings/hash.ts" /> | ||
@@ -16,0 +17,0 @@ const format_1 = __importDefault(require("@phc/format")); |
@@ -12,2 +12,2 @@ "use strict"; | ||
var Hash_1 = require("./src/Hash"); | ||
exports.Hash = Hash_1.Hash; | ||
Object.defineProperty(exports, "Hash", { enumerable: true, get: function () { return Hash_1.Hash; } }); |
{ | ||
"name": "@adonisjs/hash", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "Multi driver hash module with support for PHC string formats", | ||
@@ -43,3 +43,3 @@ "main": "build/providers/HashProvider", | ||
"@adonisjs/mrm-preset": "^2.3.0", | ||
"@types/node": "^13.13.5", | ||
"@types/node": "^14.0.1", | ||
"argon2": "^0.26.2", | ||
@@ -52,3 +52,3 @@ "bcrypt": "^4.0.1", | ||
"eslint": "^7.0.0", | ||
"eslint-plugin-adonis": "^1.0.9", | ||
"eslint-plugin-adonis": "^1.0.10", | ||
"husky": "^4.2.5", | ||
@@ -61,3 +61,3 @@ "japa": "^3.0.1", | ||
"ts-node": "^8.10.1", | ||
"typescript": "^3.8.3" | ||
"typescript": "^3.9.2" | ||
}, | ||
@@ -89,3 +89,3 @@ "nyc": { | ||
"@phc/format": "^0.5.0", | ||
"@poppinss/manager": "^2.1.7", | ||
"@poppinss/manager": "^2.1.8", | ||
"@poppinss/utils": "^2.2.6" | ||
@@ -92,0 +92,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27836
17
737
Updated@poppinss/manager@^2.1.8