@cj-tech-master/excelts 6.1.2 → 6.1.3-canary.20260326022856.b804e9c

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.
@@ -49,7 +49,7 @@ export class WorkbookWriterBase {
49
49
  this._worksheets = [];
50
50
  this.views = [];
51
51
  this.zipOptions = options.zip;
52
- const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 1;
52
+ const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 6;
53
53
  this.compressionLevel = Math.max(0, Math.min(9, level));
54
54
  this.media = [];
55
55
  this.commentRefs = [];
@@ -132,7 +132,7 @@ class Worksheet {
132
132
  if (/(^')|('$)/.test(name)) {
133
133
  throw new WorksheetNameError(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
134
134
  }
135
- if (name && name.length > 31) {
135
+ if (name.length > 31) {
136
136
  if (process.env.NODE_ENV !== "production") {
137
137
  console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
138
138
  }
@@ -52,7 +52,7 @@ class WorkbookWriterBase {
52
52
  this._worksheets = [];
53
53
  this.views = [];
54
54
  this.zipOptions = options.zip;
55
- const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 1;
55
+ const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 6;
56
56
  this.compressionLevel = Math.max(0, Math.min(9, level));
57
57
  this.media = [];
58
58
  this.commentRefs = [];
@@ -135,7 +135,7 @@ class Worksheet {
135
135
  if (/(^')|('$)/.test(name)) {
136
136
  throw new errors_1.WorksheetNameError(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
137
137
  }
138
- if (name && name.length > 31) {
138
+ if (name.length > 31) {
139
139
  if (process.env.NODE_ENV !== "production") {
140
140
  console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
141
141
  }
@@ -49,7 +49,7 @@ export class WorkbookWriterBase {
49
49
  this._worksheets = [];
50
50
  this.views = [];
51
51
  this.zipOptions = options.zip;
52
- const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 1;
52
+ const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 6;
53
53
  this.compressionLevel = Math.max(0, Math.min(9, level));
54
54
  this.media = [];
55
55
  this.commentRefs = [];
@@ -132,7 +132,7 @@ class Worksheet {
132
132
  if (/(^')|('$)/.test(name)) {
133
133
  throw new WorksheetNameError(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
134
134
  }
135
- if (name && name.length > 31) {
135
+ if (name.length > 31) {
136
136
  if (process.env.NODE_ENV !== "production") {
137
137
  console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
138
138
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cj-tech-master/excelts v6.1.2
2
+ * @cj-tech-master/excelts v6.1.3-canary.20260326022856.b804e9c
3
3
  * TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
4
4
  * (c) 2026 cjnoname
5
5
  * Released under the MIT License
@@ -5000,7 +5000,7 @@ var ExcelTS = (function(exports) {
5000
5000
  if (name === "History") throw new WorksheetNameError("The name \"History\" is protected. Please use a different name.");
5001
5001
  if (/[*?:/\\[\]]/.test(name)) throw new WorksheetNameError(`Worksheet name ${name} cannot include any of the following characters: * ? : \\ / [ ]`);
5002
5002
  if (/(^')|('$)/.test(name)) throw new WorksheetNameError(`The first or last character of worksheet name cannot be a single quotation mark: ${name}`);
5003
- if (name && name.length > 31) {
5003
+ if (name.length > 31) {
5004
5004
  console.warn(`Worksheet name ${name} exceeds 31 chars. This will be truncated`);
5005
5005
  name = name.substring(0, 31);
5006
5006
  }
@@ -30718,7 +30718,7 @@ self.onmessage = async function(event) {
30718
30718
  this._worksheets = [];
30719
30719
  this.views = [];
30720
30720
  this.zipOptions = options.zip;
30721
- const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 1;
30721
+ const level = options.zip?.zlib?.level ?? options.zip?.compressionOptions?.level ?? 6;
30722
30722
  this.compressionLevel = Math.max(0, Math.min(9, level));
30723
30723
  this.media = [];
30724
30724
  this.commentRefs = [];