@rotorsoft/act-pg 1.19.0 → 1.19.2

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
@@ -2,7 +2,6 @@
2
2
  import { randomUUID } from "crypto";
3
3
  import {
4
4
  ConcurrencyError,
5
- dateReviver,
6
5
  log,
7
6
  SNAP_EVENT,
8
7
  StoreError,
@@ -19,7 +18,7 @@ var logger = log();
19
18
  var { Pool, types } = pg;
20
19
  var JSONB_OID = types.builtins.JSONB;
21
20
  var scopedTypes = {
22
- getTypeParser: ((oid, format) => oid === JSONB_OID ? (val) => JSON.parse(val, dateReviver) : types.getTypeParser(
21
+ getTypeParser: ((oid, format) => oid === JSONB_OID ? (val) => JSON.parse(val) : types.getTypeParser(
23
22
  oid,
24
23
  format
25
24
  ))
@@ -535,11 +534,7 @@ var PostgresStore = class {
535
534
  const result = await this._pool.query(sql, values);
536
535
  for (const row of result.rows) {
537
536
  if (this._resolve_pii_key && typeof row.pii === "string") {
538
- const decrypted = await decrypt(
539
- row.pii,
540
- this._resolve_pii_key,
541
- dateReviver
542
- );
537
+ const decrypted = await decrypt(row.pii, this._resolve_pii_key);
543
538
  row.pii = decrypted;
544
539
  }
545
540
  await Promise.resolve(callback(row));
@@ -619,11 +614,7 @@ var PostgresStore = class {
619
614
  if (this._resolve_pii_key) {
620
615
  for (const row of rows) {
621
616
  if (typeof row.pii === "string") {
622
- const decrypted = await decrypt(
623
- row.pii,
624
- this._resolve_pii_key,
625
- dateReviver
626
- );
617
+ const decrypted = await decrypt(row.pii, this._resolve_pii_key);
627
618
  row.pii = decrypted;
628
619
  }
629
620
  }