sanitized 1.2.1 → 1.2.3

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +5 -9
package/index.js CHANGED
@@ -9,7 +9,7 @@ if (!dompurify.sanitize) {
9
9
  dompurify = dompurify(jsdomWindow);
10
10
  }
11
11
 
12
- function sanitized(dirty = "", dompurifyOption) {
12
+ function sanitized(dirty, dompurifyOption) {
13
13
  let clone = JSON.parse(JSON.stringify(dirty));
14
14
 
15
15
  if (clone instanceof Array) {
package/package.json CHANGED
@@ -1,11 +1,9 @@
1
1
  {
2
2
  "name": "sanitized",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Recursive function that'll sanitize a string or ALL strings in a json input.",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
6
+ "scripts": {},
9
7
  "repository": {
10
8
  "type": "git",
11
9
  "url": "git+https://github.com/nameer-rizvi/sanitized.git"
@@ -17,13 +15,11 @@
17
15
  ],
18
16
  "author": "Nameer Rizvi (https://github.com/nameer-rizvi)",
19
17
  "license": "ISC",
20
- "bugs": {
21
- "url": "https://github.com/nameer-rizvi/sanitized/issues"
22
- },
18
+ "bugs": "https://github.com/nameer-rizvi/sanitized/issues",
23
19
  "homepage": "https://github.com/nameer-rizvi/sanitized#readme",
24
20
  "dependencies": {
25
- "dompurify": "^3.0.6",
21
+ "dompurify": "^3.1.4",
26
22
  "he": "^1.2.0",
27
- "jsdom": "22"
23
+ "jsdom": "^24.0.0"
28
24
  }
29
25
  }