@declaw/sdk 1.0.3 → 1.0.4
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/CHANGELOG.md +15 -0
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -404,7 +404,6 @@ var InjectionSensitivity = /* @__PURE__ */ ((InjectionSensitivity2) => {
|
|
|
404
404
|
})(InjectionSensitivity || {});
|
|
405
405
|
var InjectionAction = /* @__PURE__ */ ((InjectionAction2) => {
|
|
406
406
|
InjectionAction2["Block"] = "block";
|
|
407
|
-
InjectionAction2["Sanitize"] = "sanitize";
|
|
408
407
|
InjectionAction2["LogOnly"] = "log_only";
|
|
409
408
|
return InjectionAction2;
|
|
410
409
|
})(InjectionAction || {});
|
|
@@ -414,7 +413,7 @@ function createInjectionDefenseConfig(opts) {
|
|
|
414
413
|
const config = {
|
|
415
414
|
enabled: opts?.enabled ?? false,
|
|
416
415
|
sensitivity: opts?.sensitivity ?? "medium" /* Medium */,
|
|
417
|
-
action: opts?.action ?? "
|
|
416
|
+
action: opts?.action ?? "log_only" /* LogOnly */,
|
|
418
417
|
threshold: opts?.threshold ?? 0.8,
|
|
419
418
|
domains: opts?.domains
|
|
420
419
|
};
|
|
@@ -439,7 +438,7 @@ function parseInjectionDefenseConfig(data) {
|
|
|
439
438
|
return {
|
|
440
439
|
enabled: data.enabled ?? false,
|
|
441
440
|
sensitivity: data.sensitivity ?? "medium" /* Medium */,
|
|
442
|
-
action: data.action ?? "
|
|
441
|
+
action: data.action ?? "log_only" /* LogOnly */,
|
|
443
442
|
threshold: data.threshold ?? 0.8,
|
|
444
443
|
domains: data.domains
|
|
445
444
|
};
|