@cj-tech-master/excelts 3.1.0-canary.20260102063840.4ffdd8b → 3.1.0-canary.20260102064732.ea53170

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @cj-tech-master/excelts v3.1.0-canary.20260102063840.4ffdd8b
2
+ * @cj-tech-master/excelts v3.1.0-canary.20260102064732.ea53170
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
@@ -4042,36 +4042,22 @@ var Transform = class Transform extends EventEmitter {
4042
4042
  try {
4043
4043
  setController(controller);
4044
4044
  if (hasSubclassTransform()) await new Promise((resolve, reject) => {
4045
- const transformFn = this._transform;
4046
- const callback = (err, data) => {
4045
+ this._transform(chunk, "utf8", (err, data) => {
4047
4046
  if (err) reject(err);
4048
4047
  else {
4049
4048
  if (data !== void 0) controller.enqueue(data);
4050
4049
  resolve();
4051
4050
  }
4052
- };
4053
- const args = transformFn.length >= 3 ? [
4054
- chunk,
4055
- "utf8",
4056
- callback
4057
- ] : [chunk, callback];
4058
- transformFn.apply(this, args);
4051
+ });
4059
4052
  });
4060
4053
  else if (userTransform) if (isNodeStyleTransform) await new Promise((resolve, reject) => {
4061
- const transformFn = userTransform;
4062
- const callback = (err, data) => {
4054
+ userTransform.call(getInstance(), chunk, "utf8", (err, data) => {
4063
4055
  if (err) reject(err);
4064
4056
  else {
4065
4057
  if (data !== void 0) controller.enqueue(data);
4066
4058
  resolve();
4067
4059
  }
4068
- };
4069
- const args = transformFn.length >= 3 ? [
4070
- chunk,
4071
- "utf8",
4072
- callback
4073
- ] : [chunk, callback];
4074
- transformFn.apply(getInstance(), args);
4060
+ });
4075
4061
  });
4076
4062
  else {
4077
4063
  const result = await userTransform(chunk);