@nxtedition/shared 1.0.11 → 1.0.12

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/lib/index.js +1 -1
  2. package/package.json +2 -2
package/lib/index.js CHANGED
@@ -318,7 +318,7 @@ export function writer(
318
318
  // NOTE: This is unsafe as the user function can write beyond the reserved length.
319
319
  const dataLen = fn(data) - dataPos
320
320
 
321
- if (typeof dataLen !== 'number') {
321
+ if (!Number.isFinite(dataLen)) {
322
322
  throw new TypeError('"fn" must return the number of bytes written')
323
323
  }
324
324
  if (dataLen < 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/shared",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -27,5 +27,5 @@
27
27
  "rimraf": "^6.1.2",
28
28
  "typescript": "^5.9.3"
29
29
  },
30
- "gitHead": "8d4e78508c35ce7b42e5bed4750add7d548aa86b"
30
+ "gitHead": "80ace3245dc851f38a288b0c3b167ca0024f0469"
31
31
  }