@purescraps/purehtml 0.4.0 → 0.4.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/README.md +2 -6
- package/dist/examples/simple.js +3 -0
- package/dist/examples/simple.js.map +1 -1
- package/dist/src/index.js +3 -0
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -1
package/dist/src/index.js
CHANGED
|
@@ -7098,6 +7098,9 @@ var NumberTransformer = class extends Transformer {
|
|
|
7098
7098
|
if (typeof val === "string") {
|
|
7099
7099
|
return Number(val);
|
|
7100
7100
|
}
|
|
7101
|
+
if (val === null) {
|
|
7102
|
+
return null;
|
|
7103
|
+
}
|
|
7101
7104
|
throw new InvalidParseInputError(
|
|
7102
7105
|
property,
|
|
7103
7106
|
`NumberTransformer.transform: invalid value type: ${typeof val}. value=${JSON.stringify(
|