html-to-gutenberg 4.2.1 → 4.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 +2 -0
  2. package/package.json +12 -8
package/index.js CHANGED
@@ -1537,6 +1537,8 @@ const block = async (
1537
1537
  }
1538
1538
  return '';
1539
1539
  });
1540
+
1541
+ htmlContent = htmlContent.replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi, '');
1540
1542
 
1541
1543
  const fetchJsPromises = [];
1542
1544
 
package/package.json CHANGED
@@ -1,33 +1,37 @@
1
1
  {
2
2
  "dependencies": {
3
- "@babel/core": "^7.27.4",
4
- "@babel/preset-react": "^7.27.1",
3
+ "@babel/core": "^7.28.5",
4
+ "@babel/preset-react": "^7.28.5",
5
5
  "@svgr/core": "^8.1.0",
6
- "cheerio": "^1.1.0",
6
+ "cheerio": "^1.1.2",
7
7
  "css-scoping": "^1.0.0",
8
- "fetch-page-assets": "^1.2.0",
8
+ "fetch-page-assets": "^1.2.5",
9
9
  "fs": "^0.0.1-security",
10
10
  "html-screenshots": "^1.2.7",
11
11
  "image-to-base64": "^2.2.0",
12
- "node-html-to-jsx": "^1.3.2",
12
+ "node-html-to-jsx": "^1.3.7",
13
13
  "path": "^0.12.7"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/babel__core": "^7.20.5",
17
+ "@types/beautify": "^0.0.3",
17
18
  "@types/cheerio": "^1.0.0",
18
- "@types/image-to-base64": "^2.1.2"
19
+ "@types/image-to-base64": "^2.1.2",
20
+ "@types/prettier": "^3.0.0",
21
+ "@types/svgo": "^3.0.0"
19
22
  },
20
23
  "type": "module",
21
24
  "types": "index.ts",
22
25
  "name": "html-to-gutenberg",
23
- "version": "4.2.1",
26
+ "version": "4.2.3",
24
27
  "description": "Transform any valid HTML string into fully editable WP Gutenberg blocks in seconds rather than hours.",
25
28
  "main": "index.js",
26
29
  "directories": {
27
30
  "test": "test"
28
31
  },
29
32
  "scripts": {
30
- "test": "jest"
33
+ "test": "jest",
34
+ "build": "tsc"
31
35
  },
32
36
  "repository": {
33
37
  "type": "git",