@h3ravel/hashing 0.1.9 → 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
@@ -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 {
@@ -304,7 +301,7 @@ var ArgonHasher = class extends AbstractHasher {
304
301
  };
305
302
 
306
303
  //#endregion
307
- //#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
308
305
  /**
309
306
  * The random implementation to use as a fallback.
310
307
  * @type {?function(number):!Array.<number>}
@@ -533,12 +530,12 @@ function truncates(password) {
533
530
  return utf8Length(password) > 72;
534
531
  }
535
532
  /**
536
- * Continues with the callback on the next tick.
533
+ * Continues with the callback after yielding to the event loop.
537
534
  * @function
538
535
  * @param {function(...[*])} callback Callback to execute
539
536
  * @inner
540
537
  */
541
- 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;
542
539
  /** Calculates the byte length of a string encoded as UTF8. */
543
540
  function utf8Length(string) {
544
541
  var len = 0, c = 0;
@@ -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.9",
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/support": "^0.15.0",
52
- "@h3ravel/core": "^1.21.0"
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",
File without changes