@nxtedition/lib 23.16.1 → 23.16.2

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/package.json +1 -1
  2. package/yield.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "23.16.1",
3
+ "version": "23.16.2",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
package/yield.js CHANGED
@@ -27,7 +27,11 @@ export function maybeYield(callback) {
27
27
  throw new TypeError('callback must be a function')
28
28
  }
29
29
 
30
- return shouldYield() ? (doYield(callback) ?? true) : null
30
+ if (shouldYield()) {
31
+ doYield(callback)
32
+ } else if (callback != null) {
33
+ callback(null)
34
+ }
31
35
  }
32
36
 
33
37
  export function doYield(callback) {