@nxtedition/shared 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -77,7 +77,7 @@ export function writer({ sharedState, sharedBuffer }) {
77
77
 
78
78
  readPos = Atomics.load(state, READ_INDEX)
79
79
 
80
- let len = 0
80
+ let len = 4
81
81
  for (const buf of raw) {
82
82
  len += buf.byteLength ?? Buffer.byteLength(buf)
83
83
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Ring Buffer for NodeJS cross Worker communication",
5
5
  "main": "index.js",
6
6
  "repository": {