@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
|
@@ -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
|
|