@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 CHANGED
@@ -1,7 +1,3 @@
1
- # PureHTML: Parsing specification for extracting JSON from HTML
1
+ # Typescript Implementation of the PureHTML
2
2
 
3
- This is the TypeScript/JavaScript implementation of the PureHTML specification.
4
-
5
- You need to install [NodeJS](https://nodejs.org) first, then follow the steps explained in the documentation.
6
-
7
- See [https://purescraps.github.io/purehtml/](https://purescraps.github.io/purehtml/) for documentation and playground.
3
+ Supported platforms: browser, node.js and -probably- any other platform that supports executing TypeScript.
@@ -7087,6 +7087,9 @@ var NumberTransformer = class extends Transformer {
7087
7087
  if (typeof val === "string") {
7088
7088
  return Number(val);
7089
7089
  }
7090
+ if (val === null) {
7091
+ return null;
7092
+ }
7090
7093
  throw new InvalidParseInputError(
7091
7094
  property,
7092
7095
  `NumberTransformer.transform: invalid value type: ${typeof val}. value=${JSON.stringify(