@nxtedition/shared 2.0.14 → 2.0.17

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 +3 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -104,7 +104,9 @@ export function writer({ sharedState, sharedBuffer }) {
104
104
  readPos = Atomics.load(state, READ_INDEX)
105
105
 
106
106
  if (size - writePos < len) {
107
- buffer.subarray(writePos).fill(-1)
107
+ buffer.writeInt32LE(-1, writePos)
108
+ writePos += 4
109
+ buffer.subarray(writePos).fill(-4)
108
110
  writePos = 0
109
111
  }
110
112
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "2.0.14",
3
+ "version": "2.0.17",
4
4
  "description": "Ring Buffer for NodeJS cross Worker communication",
5
5
  "main": "index.js",
6
6
  "repository": {