@cj-tech-master/excelts 3.1.0-canary.20260102061656.6ddacdd → 3.1.0-canary.20260102063840.4ffdd8b

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.20260102061656.6ddacdd
2
+ * @cj-tech-master/excelts v3.1.0-canary.20260102063840.4ffdd8b
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
@@ -4053,8 +4053,12 @@ var ExcelTS = (function(exports) {
4053
4053
  resolve();
4054
4054
  }
4055
4055
  };
4056
- if (transformFn.length >= 3) transformFn.call(this, chunk, "utf8", callback);
4057
- else transformFn.call(this, chunk, callback);
4056
+ const args = transformFn.length >= 3 ? [
4057
+ chunk,
4058
+ "utf8",
4059
+ callback
4060
+ ] : [chunk, callback];
4061
+ transformFn.apply(this, args);
4058
4062
  });
4059
4063
  else if (userTransform) if (isNodeStyleTransform) await new Promise((resolve, reject) => {
4060
4064
  const transformFn = userTransform;
@@ -4065,8 +4069,12 @@ var ExcelTS = (function(exports) {
4065
4069
  resolve();
4066
4070
  }
4067
4071
  };
4068
- if (transformFn.length >= 3) transformFn.call(getInstance(), chunk, "utf8", callback);
4069
- else transformFn.call(getInstance(), chunk, callback);
4072
+ const args = transformFn.length >= 3 ? [
4073
+ chunk,
4074
+ "utf8",
4075
+ callback
4076
+ ] : [chunk, callback];
4077
+ transformFn.apply(getInstance(), args);
4070
4078
  });
4071
4079
  else {
4072
4080
  const result = await userTransform(chunk);