@rotorsoft/act 1.23.35 → 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/.tsbuildinfo +1 -1
- package/dist/@types/internal/audit.d.ts.map +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -209,7 +209,19 @@ var make_schema_pass = (deps) => {
|
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
211
|
const schema = state2.events[name];
|
|
212
|
-
const
|
|
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",
|