@lousy-agents/cli 5.21.2 → 5.21.4

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/962.js CHANGED
@@ -5,7 +5,7 @@ export const __webpack_modules__ = {
5
5
 
6
6
  // EXPORTS
7
7
  __webpack_require__.d(__webpack_exports__, {
8
- digest: () => (/* reexport */ node_digest)
8
+ digest: () => (/* reexport */ digest)
9
9
  });
10
10
 
11
11
  // UNUSED EXPORTS: hash, isEqual, serialize
@@ -14,24 +14,25 @@ __webpack_require__.d(__webpack_exports__, {
14
14
  var external_node_crypto_ = __webpack_require__(7598);
15
15
  ;// CONCATENATED MODULE: ../../node_modules/ohash/dist/crypto/node/index.mjs
16
16
 
17
-
18
- const e=globalThis.process?.getBuiltinModule?.("crypto")?.hash,r="sha256",s="base64url";function node_digest(t){if(e)return e(r,t,s);const o=(0,external_node_crypto_.createHash)(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}
19
-
17
+ const fastHash = /*@__PURE__*/ (() => globalThis.process?.getBuiltinModule?.("crypto")?.hash)();
18
+ const algorithm = "sha256";
19
+ const encoding = "base64url";
20
+ function digest(data) {
21
+ if (fastHash) return fastHash(algorithm, data, encoding);
22
+ const h = (0,external_node_crypto_.createHash)(algorithm).update(data);
23
+ return globalThis.process?.versions?.webcontainer ? h.digest().toString(encoding) : h.digest(encoding);
24
+ }
20
25
 
21
26
 
22
27
  ;// CONCATENATED MODULE: ../../node_modules/ohash/dist/index.mjs
23
28
 
24
29
 
25
-
26
-
27
-
28
30
  function hash(input) {
29
- return digest(serialize(input));
31
+ return digest$1(serialize(input));
30
32
  }
31
33
 
32
34
 
33
35
 
34
-
35
36
  },
36
37
 
37
38
  };