@niicojs/excel 0.3.5 → 0.3.6

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/dist/index.cjs CHANGED
@@ -926,7 +926,10 @@ const parserOptions = {
926
926
  cdataPropName: '#cdata',
927
927
  trimValues: false,
928
928
  parseTagValue: false,
929
- parseAttributeValue: false
929
+ parseAttributeValue: false,
930
+ processEntities: {
931
+ maxTotalExpansions: 10_000
932
+ }
930
933
  };
931
934
  // Builder options matching parser for round-trip compatibility
932
935
  const builderOptions = {
package/dist/index.js CHANGED
@@ -924,7 +924,10 @@ const parserOptions = {
924
924
  cdataPropName: '#cdata',
925
925
  trimValues: false,
926
926
  parseTagValue: false,
927
- parseAttributeValue: false
927
+ parseAttributeValue: false,
928
+ processEntities: {
929
+ maxTotalExpansions: 10_000
930
+ }
928
931
  };
929
932
  // Builder options matching parser for round-trip compatibility
930
933
  const builderOptions = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@niicojs/excel",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "typescript library to manipulate excel files",
5
5
  "homepage": "https://github.com/niicojs/excel#readme",
6
6
  "bugs": {
package/src/utils/xml.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { XMLParser, XMLBuilder } from 'fast-xml-parser';
1
+ import { XMLParser, XMLBuilder, X2jOptions, XmlBuilderOptions } from 'fast-xml-parser';
2
2
 
3
3
  // Parser options that preserve structure and attributes
4
- const parserOptions = {
4
+ const parserOptions: X2jOptions = {
5
5
  ignoreAttributes: false,
6
6
  attributeNamePrefix: '@_',
7
7
  textNodeName: '#text',
@@ -11,10 +11,13 @@ const parserOptions = {
11
11
  trimValues: false,
12
12
  parseTagValue: false,
13
13
  parseAttributeValue: false,
14
+ processEntities: {
15
+ maxTotalExpansions: 10_000,
16
+ },
14
17
  };
15
18
 
16
19
  // Builder options matching parser for round-trip compatibility
17
- const builderOptions = {
20
+ const builderOptions: XmlBuilderOptions = {
18
21
  ignoreAttributes: false,
19
22
  attributeNamePrefix: '@_',
20
23
  textNodeName: '#text',