@nxtedition/shared 0.0.4 → 0.0.5

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
@@ -32,7 +32,7 @@ async function* _reader({ sharedState, sharedBuffer }, cb) {
32
32
  const raw = buffer.slice(readPos + 4, readPos + len)
33
33
  readPos += len
34
34
  if (cb) {
35
- cb()
35
+ cb(raw)
36
36
  } else {
37
37
  yield raw
38
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Ring Buffer for NodeJS cross Worker communication",
5
5
  "main": "index.js",
6
6
  "repository": {