xploitscan-shared-rules 2.4.27 → 2.4.28
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -230,7 +230,7 @@ __export(index_exports, {
|
|
|
230
230
|
module.exports = __toCommonJS(index_exports);
|
|
231
231
|
|
|
232
232
|
// src/version.ts
|
|
233
|
-
var SCANNER_VERSION = "2.4.
|
|
233
|
+
var SCANNER_VERSION = "2.4.28";
|
|
234
234
|
|
|
235
235
|
// src/snippet.ts
|
|
236
236
|
var cacheContent = null;
|
|
@@ -10186,7 +10186,7 @@ function billingWebhookUnmatchedProps(input) {
|
|
|
10186
10186
|
}
|
|
10187
10187
|
|
|
10188
10188
|
// src/prompt-hardening.ts
|
|
10189
|
-
var INVISIBLE = /[\u200B-\u200F\u2060-\u2064\
|
|
10189
|
+
var INVISIBLE = /[\u00AD\u034F\u061C\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u2069\uFE00-\uFE0F\uFEFF\u{E0000}-\u{E007F}\u{E0100}-\u{E01EF}]/gu;
|
|
10190
10190
|
var BARE_FENCE_MIN = 16;
|
|
10191
10191
|
function hardenUntrustedPromptText(text) {
|
|
10192
10192
|
return text.replace(INVISIBLE, "");
|