functionalscript 0.0.540 → 0.0.541

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.540",
3
+ "version": "0.0.541",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
5
  "main": "module.f.cjs",
6
6
  "scripts": {
package/sha2/module.f.cjs CHANGED
@@ -129,7 +129,8 @@ const compress = ([a0, b0, c0, d0, e0, f0, g0, h0]) => data => {
129
129
  let g = g0
130
130
  let h = h0
131
131
 
132
- for (let i = 0; i < 4; ++i) {
132
+ let i = 0;
133
+ while (true) {
133
134
  const ki = k[i]
134
135
  for (let j = 0; j < 16; ++j) {
135
136
  const t1 = h + bigSigma1(e) + ch(e)(f)(g) + ki[j] + w[j]
@@ -143,6 +144,8 @@ const compress = ([a0, b0, c0, d0, e0, f0, g0, h0]) => data => {
143
144
  b = a
144
145
  a = (t1 + t2) | 0
145
146
  }
147
+ if (i === 3) { break }
148
+ ++i;
146
149
  w = nextW(w)
147
150
  }
148
151