@h3ravel/hashing 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -22,7 +22,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
|
|
23
23
|
//#endregion
|
|
24
24
|
let __h3ravel_support = require("@h3ravel/support");
|
|
25
|
-
__h3ravel_support = __toESM(__h3ravel_support);
|
|
26
25
|
let argon2 = require("argon2");
|
|
27
26
|
argon2 = __toESM(argon2);
|
|
28
27
|
let crypto = require("crypto");
|
|
@@ -30,9 +29,7 @@ crypto = __toESM(crypto);
|
|
|
30
29
|
let node_path = require("node:path");
|
|
31
30
|
node_path = __toESM(node_path);
|
|
32
31
|
let node_fs = require("node:fs");
|
|
33
|
-
node_fs = __toESM(node_fs);
|
|
34
32
|
let __h3ravel_core = require("@h3ravel/core");
|
|
35
|
-
__h3ravel_core = __toESM(__h3ravel_core);
|
|
36
33
|
|
|
37
34
|
//#region src/Utils/ParseInfo.ts
|
|
38
35
|
var ParseInfo = class {
|
package/dist/index.d.cts
CHANGED
|
@@ -239,7 +239,7 @@ declare abstract class Manager {
|
|
|
239
239
|
* @return string
|
|
240
240
|
*/
|
|
241
241
|
getDefaultDriver(): HashAlgorithm;
|
|
242
|
-
protected createDriver(driver: HashAlgorithm):
|
|
242
|
+
protected createDriver(driver: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
|
|
243
243
|
/**
|
|
244
244
|
* Determine if a given string is already hashed.
|
|
245
245
|
*
|
|
@@ -334,7 +334,7 @@ declare class HashManager extends Manager {
|
|
|
334
334
|
*
|
|
335
335
|
* @throws InvalidArgumentException
|
|
336
336
|
*/
|
|
337
|
-
driver(driver?: HashAlgorithm):
|
|
337
|
+
driver(driver?: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
|
|
338
338
|
}
|
|
339
339
|
declare const defineConfig: (config: Configuration) => Configuration;
|
|
340
340
|
//#endregion
|
|
@@ -239,7 +239,7 @@ declare abstract class Manager {
|
|
|
239
239
|
* @return string
|
|
240
240
|
*/
|
|
241
241
|
getDefaultDriver(): HashAlgorithm;
|
|
242
|
-
protected createDriver(driver: HashAlgorithm):
|
|
242
|
+
protected createDriver(driver: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
|
|
243
243
|
/**
|
|
244
244
|
* Determine if a given string is already hashed.
|
|
245
245
|
*
|
|
@@ -334,7 +334,7 @@ declare class HashManager extends Manager {
|
|
|
334
334
|
*
|
|
335
335
|
* @throws InvalidArgumentException
|
|
336
336
|
*/
|
|
337
|
-
driver(driver?: HashAlgorithm):
|
|
337
|
+
driver(driver?: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
|
|
338
338
|
}
|
|
339
339
|
declare const defineConfig: (config: Configuration) => Configuration;
|
|
340
340
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/hashing",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Secure framework-agnostic Bcrypt and Argon2 hashing for storing user passwords in H3ravel and node Apps.",
|
|
5
5
|
"h3ravel": {
|
|
6
6
|
"providers": [
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"typescript": "^5.4.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@h3ravel/core": "^1.
|
|
52
|
-
"@h3ravel/support": "^0.
|
|
51
|
+
"@h3ravel/core": "^1.21.1",
|
|
52
|
+
"@h3ravel/support": "^0.15.1"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"@h3ravel/core": {
|
|
File without changes
|