@rotorsoft/act 2.1.7 → 2.1.8

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.js CHANGED
@@ -5407,10 +5407,8 @@ var CsvFile = class {
5407
5407
  const event = {
5408
5408
  id: Number.parseInt(fields[0], 10),
5409
5409
  name: fields[1],
5410
- // Revive dates like every Store adapter does — a Date in an event
5411
- // payload must not depend on whether it came back through a store or
5412
- // through a CSV restore. The `created` column below has
5413
- // always been parsed explicitly; the JSON columns were missed.
5410
+ // Plain JSON, as every store returns it: a date in `data` stays its
5411
+ // ISO string here, and a load revives it from the event's schema.
5414
5412
  data: JSON.parse(fields[2]),
5415
5413
  stream: fields[3],
5416
5414
  version: Number.parseInt(fields[4], 10),