@h3ravel/hashing 2.2.0 → 2.2.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +2 -2
  2. package/package.json +9 -12
package/dist/index.d.ts CHANGED
@@ -183,7 +183,7 @@ declare abstract class Manager extends IBaseHashManager {
183
183
  * @return string
184
184
  */
185
185
  getDefaultDriver(): HashAlgorithm;
186
- protected createDriver(driver: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
186
+ protected createDriver(driver: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
187
187
  /**
188
188
  * Determine if a given string is already hashed.
189
189
  *
@@ -279,7 +279,7 @@ declare class HashManager extends HashManager_base {
279
279
  *
280
280
  * @throws InvalidArgumentException
281
281
  */
282
- driver(driver?: HashAlgorithm): Argon2idHasher | ArgonHasher | BcryptHasher;
282
+ driver(driver?: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
283
283
  }
284
284
  declare const defineConfig: (config: HashConfiguration) => HashConfiguration;
285
285
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/hashing",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
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": [
@@ -10,11 +10,8 @@
10
10
  "type": "module",
11
11
  "types": "./dist/index.d.ts",
12
12
  "exports": {
13
- ".": {
14
- "import": "./dist/index.js",
15
- "require": "./dist/index.cjs"
16
- },
17
- "./*": "./*"
13
+ ".": "./dist/index.js",
14
+ "./package.json": "./package.json"
18
15
  },
19
16
  "files": [
20
17
  "dist"
@@ -45,10 +42,10 @@
45
42
  "typescript": "^6.0.0"
46
43
  },
47
44
  "peerDependencies": {
48
- "@h3ravel/core": "^2.2.0",
49
- "@h3ravel/foundation": "^2.2.0",
50
- "@h3ravel/shared": "^2.2.0",
51
- "@h3ravel/support": "^2.2.0"
45
+ "@h3ravel/core": "^2.2.2",
46
+ "@h3ravel/foundation": "^2.2.2",
47
+ "@h3ravel/shared": "^2.2.2",
48
+ "@h3ravel/support": "^2.2.2"
52
49
  },
53
50
  "peerDependenciesMeta": {
54
51
  "@h3ravel/core": {
@@ -58,8 +55,8 @@
58
55
  "dependencies": {
59
56
  "argon2": "^0.44.0",
60
57
  "bcryptjs": "3.0.3",
61
- "@h3ravel/contracts": "^2.2.0",
62
- "@h3ravel/foundation": "^2.2.0"
58
+ "@h3ravel/contracts": "^2.2.2",
59
+ "@h3ravel/foundation": "^2.2.2"
63
60
  },
64
61
  "scripts": {
65
62
  "build": "tsdown --config-loader unrun",