@rotorsoft/act 2.0.0 → 2.0.1

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
@@ -44,7 +44,7 @@ import {
44
44
  sleep,
45
45
  store,
46
46
  validate
47
- } from "./chunk-MWHTNPUY.js";
47
+ } from "./chunk-33D5NQNQ.js";
48
48
  import {
49
49
  ActorSchema,
50
50
  CausationEventSchema,
@@ -77,7 +77,7 @@ import {
77
77
  pii_fields,
78
78
  pii_schemas,
79
79
  sensitive
80
- } from "./chunk-SNPEQW6Z.js";
80
+ } from "./chunk-UO7HNLSH.js";
81
81
 
82
82
  // src/signals.ts
83
83
  process.once("SIGINT", async (arg) => {
@@ -4302,12 +4302,11 @@ var Act = class {
4302
4302
 
4303
4303
  // src/builders/merge.ts
4304
4304
  import { ZodObject } from "zod";
4305
- function base_type_name(zodType) {
4306
- let t = zodType;
4307
- while (typeof t.unwrap === "function") {
4308
- t = t.unwrap();
4309
- }
4310
- return t.constructor.name;
4305
+ function base_type_name(schema) {
4306
+ let def = def_of(schema);
4307
+ for (let inner = inner_of(def); inner; inner = inner_of(def))
4308
+ def = def_of(inner);
4309
+ return def.type === "array" ? `array of ${base_type_name(def.element)}` : def.type;
4311
4310
  }
4312
4311
  function merge_schemas(existing, incoming, state_name) {
4313
4312
  if (existing === incoming) return existing;