@angular-helpers/security 21.5.1 → 21.6.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.
@@ -830,7 +830,7 @@ function sanitizeUrlString(input, allowedSchemes = ['http:', 'https:']) {
830
830
  function isUrlSafe(input, allowedSchemes = ['http:', 'https:']) {
831
831
  return sanitizeUrlString(input, allowedSchemes) !== null;
832
832
  }
833
- const SCRIPT_INJECTION_PATTERN = /<\s*script\b|javascript:|on\w+\s*=/i;
833
+ const SCRIPT_INJECTION_PATTERN = /<\s*script\b|javascript:|on\w{1,30}\s*=/i;
834
834
  /**
835
835
  * Lightweight check for common script-injection sentinels. Complements (does NOT replace)
836
836
  * a full HTML sanitizer or Content Security Policy.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-helpers/security",
3
- "version": "21.5.1",
3
+ "version": "21.6.1",
4
4
  "description": "Angular security helpers for preventing ReDoS and other security vulnerabilities",
5
5
  "keywords": [
6
6
  "angular",
@@ -40,7 +40,6 @@
40
40
  "@angular/common": "^21.0.0",
41
41
  "@angular/core": "^21.0.0",
42
42
  "@angular/forms": "^21.0.0",
43
- "@angular-helpers/core": "^1.0.0",
44
43
  "rxjs": "^7.0.0 || ^8.0.0"
45
44
  },
46
45
  "peerDependenciesMeta": {
@@ -49,6 +48,7 @@
49
48
  }
50
49
  },
51
50
  "dependencies": {
51
+ "@angular-helpers/core": "^21.14.0",
52
52
  "tslib": "^2.0.0"
53
53
  },
54
54
  "module": "fesm2022/angular-helpers-security.mjs",