@rotorsoft/act 1.23.34 → 1.23.36

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
@@ -21,7 +21,7 @@ import {
21
21
  sleep,
22
22
  store,
23
23
  validate
24
- } from "./chunk-TTOT5CRM.js";
24
+ } from "./chunk-UZAUEBN2.js";
25
25
  import {
26
26
  ActorSchema,
27
27
  CausationEventSchema,
@@ -47,7 +47,7 @@ import {
47
47
  pii_split,
48
48
  pii_strip,
49
49
  sensitive
50
- } from "./chunk-RLM4M5UV.js";
50
+ } from "./chunk-HXM27ZLL.js";
51
51
 
52
52
  // src/signals.ts
53
53
  process.once("SIGINT", async (arg) => {
@@ -209,7 +209,19 @@ var make_schema_pass = (deps) => {
209
209
  return;
210
210
  }
211
211
  const schema = state2.events[name];
212
- const parsed = schema.safeParse(event.data);
212
+ const sensitive2 = pii_fields(schema);
213
+ let parse_schema = schema;
214
+ if (sensitive2.length > 0) {
215
+ const omitter = schema.omit;
216
+ if (typeof omitter !== "function") {
217
+ return;
218
+ }
219
+ parse_schema = omitter.call(
220
+ schema,
221
+ Object.fromEntries(sensitive2.map((f) => [f, true]))
222
+ );
223
+ }
224
+ const parsed = parse_schema.safeParse(event.data);
213
225
  if (!parsed.success) {
214
226
  findings.push({
215
227
  category: "schema",