@nxtedition/lib 19.5.0 → 19.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/lib",
3
- "version": "19.5.0",
3
+ "version": "19.5.1",
4
4
  "license": "MIT",
5
5
  "author": "Robert Nagy <robert.nagy@boffins.se>",
6
6
  "type": "module",
@@ -558,7 +558,7 @@ export default function ({ ds, proxify, compiler }) {
558
558
  throw new Error(`invalid argument: path (${path})`)
559
559
  }
560
560
 
561
- if (state != null && typeof state !== 'string') {
561
+ if (state != null && typeof state !== 'string' && typeof state !== 'number') {
562
562
  throw new Error(`invalid argument: state (${state})`)
563
563
  }
564
564