@office-open/xml 0.9.6 → 0.9.7

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/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -216,7 +216,7 @@ function unescapeXml(str) {
216
216
  function nativeTypeValue(value) {
217
217
  if (value === "") return value;
218
218
  const n = Number(value);
219
- if (!isNaN(n)) return n;
219
+ if (!isNaN(n) && String(n) === value) return n;
220
220
  const lower = value.toLowerCase();
221
221
  if (lower === "true") return true;
222
222
  if (lower === "false") return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-open/xml",
3
- "version": "0.9.6",
3
+ "version": "0.9.7",
4
4
  "description": "XML parsing and serialization for Office Open XML. Zero dependencies, drop-in replacement for xml + xml-js.",
5
5
  "keywords": [
6
6
  "office-open",