@h3ravel/hashing 0.1.11 → 0.1.12

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
@@ -2333,7 +2333,7 @@ var Manager = class {
2333
2333
  * @returns
2334
2334
  */
2335
2335
  async init(basePath = process.cwd()) {
2336
- const jsPath = node_path.default.resolve(basePath, "hashing.config.js");
2336
+ const jsPath = node_path.default.resolve(basePath, "hashing.config.mjs");
2337
2337
  const tsPath = node_path.default.resolve(basePath, "hashing.config.ts");
2338
2338
  if ((0, node_fs.existsSync)(jsPath)) {
2339
2339
  this.config = (await import(jsPath)).default ?? {};
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): ArgonHasher | Argon2idHasher | BcryptHasher;
242
+ protected createDriver(driver: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
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): ArgonHasher | Argon2idHasher | BcryptHasher;
337
+ driver(driver?: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
338
338
  }
339
339
  declare const defineConfig: (config: Configuration) => Configuration;
340
340
  //#endregion
package/dist/index.d.mts CHANGED
@@ -239,7 +239,7 @@ declare abstract class Manager {
239
239
  * @return string
240
240
  */
241
241
  getDefaultDriver(): HashAlgorithm;
242
- protected createDriver(driver: HashAlgorithm): ArgonHasher | Argon2idHasher | BcryptHasher;
242
+ protected createDriver(driver: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
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): ArgonHasher | Argon2idHasher | BcryptHasher;
337
+ driver(driver?: HashAlgorithm): BcryptHasher | ArgonHasher | Argon2idHasher;
338
338
  }
339
339
  declare const defineConfig: (config: Configuration) => Configuration;
340
340
  //#endregion
package/dist/index.mjs CHANGED
@@ -2307,7 +2307,7 @@ var Manager = class {
2307
2307
  * @returns
2308
2308
  */
2309
2309
  async init(basePath = process.cwd()) {
2310
- const jsPath = path.resolve(basePath, "hashing.config.js");
2310
+ const jsPath = path.resolve(basePath, "hashing.config.mjs");
2311
2311
  const tsPath = path.resolve(basePath, "hashing.config.ts");
2312
2312
  if (existsSync(jsPath)) {
2313
2313
  this.config = (await import(jsPath)).default ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/hashing",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
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": [
@@ -8,13 +8,13 @@
8
8
  ]
9
9
  },
10
10
  "type": "module",
11
- "main": "./dist/index.js",
12
- "types": "./dist/index.d.ts",
13
- "module": "./dist/index.js",
11
+ "main": "./dist/index.mjs",
12
+ "types": "./dist/index.d.mts",
13
+ "module": "./dist/index.mjs",
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./dist/index.d.ts",
17
- "import": "./dist/index.js",
16
+ "types": "./dist/index.d.mts",
17
+ "import": "./dist/index.mjs",
18
18
  "require": "./dist/index.cjs"
19
19
  }
20
20
  },
@@ -48,8 +48,8 @@
48
48
  "typescript": "^5.4.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@h3ravel/core": "^1.21.2",
52
- "@h3ravel/support": "^0.15.2"
51
+ "@h3ravel/core": "^1.21.3",
52
+ "@h3ravel/support": "^0.15.3"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@h3ravel/core": {
@@ -62,7 +62,7 @@
62
62
  "scripts": {
63
63
  "build": "tsdown --config-loader unconfig",
64
64
  "dev": "tsx watch src/index.ts",
65
- "start": "node dist/index.js",
65
+ "start": "node dist/index.mjs",
66
66
  "lint": "eslint . --ext .ts",
67
67
  "test": "jest --passWithNoTests",
68
68
  "version-patch": "pnpm version patch"