@h3ravel/hashing 0.1.10 → 0.1.11

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
@@ -301,7 +301,7 @@ var ArgonHasher = class extends AbstractHasher {
301
301
  };
302
302
 
303
303
  //#endregion
304
- //#region ../../node_modules/.pnpm/bcryptjs@3.0.2/node_modules/bcryptjs/index.js
304
+ //#region ../../node_modules/.pnpm/bcryptjs@3.0.3/node_modules/bcryptjs/index.js
305
305
  /**
306
306
  * The random implementation to use as a fallback.
307
307
  * @type {?function(number):!Array.<number>}
@@ -530,12 +530,12 @@ function truncates(password) {
530
530
  return utf8Length(password) > 72;
531
531
  }
532
532
  /**
533
- * Continues with the callback on the next tick.
533
+ * Continues with the callback after yielding to the event loop.
534
534
  * @function
535
535
  * @param {function(...[*])} callback Callback to execute
536
536
  * @inner
537
537
  */
538
- var nextTick = typeof process !== "undefined" && process && typeof process.nextTick === "function" ? typeof setImmediate === "function" ? setImmediate : process.nextTick : setTimeout;
538
+ var nextTick = typeof setImmediate === "function" ? setImmediate : typeof scheduler === "object" && typeof scheduler.postTask === "function" ? scheduler.postTask.bind(scheduler) : setTimeout;
539
539
  /** Calculates the byte length of a string encoded as UTF8. */
540
540
  function utf8Length(string) {
541
541
  var len = 0, c = 0;
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): Argon2idHasher | ArgonHasher | BcryptHasher;
242
+ protected createDriver(driver: HashAlgorithm): ArgonHasher | Argon2idHasher | 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): Argon2idHasher | ArgonHasher | BcryptHasher;
337
+ driver(driver?: HashAlgorithm): ArgonHasher | Argon2idHasher | BcryptHasher;
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): Argon2idHasher | ArgonHasher | BcryptHasher;
242
+ protected createDriver(driver: HashAlgorithm): ArgonHasher | Argon2idHasher | 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): Argon2idHasher | ArgonHasher | BcryptHasher;
337
+ driver(driver?: HashAlgorithm): ArgonHasher | Argon2idHasher | BcryptHasher;
338
338
  }
339
339
  declare const defineConfig: (config: Configuration) => Configuration;
340
340
  //#endregion
package/dist/index.mjs CHANGED
@@ -275,7 +275,7 @@ var ArgonHasher = class extends AbstractHasher {
275
275
  };
276
276
 
277
277
  //#endregion
278
- //#region ../../node_modules/.pnpm/bcryptjs@3.0.2/node_modules/bcryptjs/index.js
278
+ //#region ../../node_modules/.pnpm/bcryptjs@3.0.3/node_modules/bcryptjs/index.js
279
279
  /**
280
280
  * The random implementation to use as a fallback.
281
281
  * @type {?function(number):!Array.<number>}
@@ -504,12 +504,12 @@ function truncates(password) {
504
504
  return utf8Length(password) > 72;
505
505
  }
506
506
  /**
507
- * Continues with the callback on the next tick.
507
+ * Continues with the callback after yielding to the event loop.
508
508
  * @function
509
509
  * @param {function(...[*])} callback Callback to execute
510
510
  * @inner
511
511
  */
512
- var nextTick = typeof process !== "undefined" && process && typeof process.nextTick === "function" ? typeof setImmediate === "function" ? setImmediate : process.nextTick : setTimeout;
512
+ var nextTick = typeof setImmediate === "function" ? setImmediate : typeof scheduler === "object" && typeof scheduler.postTask === "function" ? scheduler.postTask.bind(scheduler) : setTimeout;
513
513
  /** Calculates the byte length of a string encoded as UTF8. */
514
514
  function utf8Length(string) {
515
515
  var len = 0, c = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/hashing",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
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.21.1",
52
- "@h3ravel/support": "^0.15.1"
51
+ "@h3ravel/core": "^1.21.2",
52
+ "@h3ravel/support": "^0.15.2"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
55
  "@h3ravel/core": {
@@ -60,7 +60,6 @@
60
60
  "argon2": "^0.44.0"
61
61
  },
62
62
  "scripts": {
63
- "barrel": "barrelsby --directory src --delete --singleQuotes",
64
63
  "build": "tsdown --config-loader unconfig",
65
64
  "dev": "tsx watch src/index.ts",
66
65
  "start": "node dist/index.js",