@nxtedition/shared 0.0.5 → 1.0.0

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/index.js CHANGED
@@ -111,14 +111,14 @@ export function writer({ sharedState, sharedBuffer }) {
111
111
  flushing = null
112
112
  }
113
113
 
114
- async function write(...raw) {
114
+ function write(...raw) {
115
115
  if (!queue.length && tryWrite(...raw)) {
116
116
  return
117
117
  }
118
118
 
119
119
  queue.push(Buffer.concat(raw))
120
120
 
121
- await (flushing ??= flush())
121
+ return (flushing ??= flush())
122
122
  }
123
123
 
124
124
  return write
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "0.0.5",
3
+ "version": "1.0.0",
4
4
  "description": "Ring Buffer for NodeJS cross Worker communication",
5
5
  "main": "index.js",
6
6
  "repository": {