@taqueria/protocol 0.48.14 → 0.48.22
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/PersistentState.js +0 -1
- package/PersistentState.js.map +1 -1
- package/SHA256.d.ts.map +1 -1
- package/SHA256.js +1 -2
- package/SHA256.js.map +1 -1
- package/index.js +1 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/taqueria-protocol-types.js +1 -2
- package/taqueria-protocol-types.js.map +1 -1
package/package.json
CHANGED
|
@@ -1493,7 +1493,6 @@ __export(SHA256_exports, {
|
|
|
1493
1493
|
});
|
|
1494
1494
|
var import_fluture17 = require("fluture");
|
|
1495
1495
|
var import_rambda = require("rambda");
|
|
1496
|
-
var import_util = require("util");
|
|
1497
1496
|
var import_zod17 = require("zod");
|
|
1498
1497
|
var eager2 = (f) => (0, import_fluture17.promise)(
|
|
1499
1498
|
(0, import_fluture17.mapRej)((err) => new E_TaqError(err))(f)
|
|
@@ -1523,7 +1522,7 @@ var { schemas: generatedSchemas2, factory: factory2 } = Base_default({
|
|
|
1523
1522
|
unknownErrMsg: (value) => `Something went wrong trying to parse the following as a SHA256 value, ${value}`
|
|
1524
1523
|
});
|
|
1525
1524
|
var toSHA256 = async (value) => {
|
|
1526
|
-
const encoder = new
|
|
1525
|
+
const encoder = new TextEncoder();
|
|
1527
1526
|
const data = encoder.encode(value);
|
|
1528
1527
|
const hash = await (await getSubtleCrypto()).digest("SHA-256", data);
|
|
1529
1528
|
const hashArray = Array.from(new Uint8Array(hash));
|