@rotorsoft/act 1.23.29 → 1.23.30

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
@@ -4905,11 +4905,15 @@ var CsvFile = class {
4905
4905
  const event = {
4906
4906
  id: Number.parseInt(fields[0], 10),
4907
4907
  name: fields[1],
4908
- data: JSON.parse(fields[2]),
4908
+ // Revive dates like every Store adapter does — a Date in an event
4909
+ // payload must not depend on whether it came back through a store or
4910
+ // through a CSV restore (#1399). The `created` column below has
4911
+ // always been parsed explicitly; the JSON columns were missed.
4912
+ data: JSON.parse(fields[2], dateReviver),
4909
4913
  stream: fields[3],
4910
4914
  version: Number.parseInt(fields[4], 10),
4911
4915
  created: new Date(fields[5]),
4912
- meta: JSON.parse(fields[6])
4916
+ meta: JSON.parse(fields[6], dateReviver)
4913
4917
  };
4914
4918
  await Promise.resolve(callback(event));
4915
4919
  count++;