@wordpress/escape-html 3.36.1-next.8fd3f8831.0 → 3.37.1-next.06ee73755.0
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/LICENSE.md +1 -1
- package/build/index.cjs +1 -1
- package/build-module/{escape-greater.js → escape-greater.mjs} +1 -1
- package/build-module/{index.js → index.mjs} +2 -2
- package/package.json +4 -5
- /package/build-module/{escape-greater.js.map → escape-greater.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
package/LICENSE.md
CHANGED
package/build/index.cjs
CHANGED
|
@@ -39,7 +39,7 @@ __export(index_exports, {
|
|
|
39
39
|
isValidAttributeName: () => isValidAttributeName
|
|
40
40
|
});
|
|
41
41
|
module.exports = __toCommonJS(index_exports);
|
|
42
|
-
var import_escape_greater = __toESM(require("./escape-greater.cjs")
|
|
42
|
+
var import_escape_greater = __toESM(require("./escape-greater.cjs"));
|
|
43
43
|
var REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
|
|
44
44
|
function escapeAmpersand(value) {
|
|
45
45
|
return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, "&");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// packages/escape-html/src/index.ts
|
|
2
|
-
import __unstableEscapeGreaterThan from "./escape-greater.
|
|
2
|
+
import __unstableEscapeGreaterThan from "./escape-greater.mjs";
|
|
3
3
|
var REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/;
|
|
4
4
|
function escapeAmpersand(value) {
|
|
5
5
|
return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, "&");
|
|
@@ -33,4 +33,4 @@ export {
|
|
|
33
33
|
escapeQuotationMark,
|
|
34
34
|
isValidAttributeName
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=index.
|
|
36
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/escape-html",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.1-next.06ee73755.0",
|
|
4
4
|
"description": "Escape HTML utils.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -29,13 +29,12 @@
|
|
|
29
29
|
"build-types",
|
|
30
30
|
"*.md"
|
|
31
31
|
],
|
|
32
|
-
"type": "module",
|
|
33
32
|
"main": "build/index.cjs",
|
|
34
|
-
"module": "build-module/index.
|
|
33
|
+
"module": "build-module/index.mjs",
|
|
35
34
|
"exports": {
|
|
36
35
|
".": {
|
|
37
36
|
"types": "./build-types/index.d.ts",
|
|
38
|
-
"import": "./build-module/index.
|
|
37
|
+
"import": "./build-module/index.mjs",
|
|
39
38
|
"require": "./build/index.cjs"
|
|
40
39
|
},
|
|
41
40
|
"./package.json": "./package.json"
|
|
@@ -47,5 +46,5 @@
|
|
|
47
46
|
"publishConfig": {
|
|
48
47
|
"access": "public"
|
|
49
48
|
},
|
|
50
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "fd315436f44683a993d5f053789b5279d95b2872"
|
|
51
50
|
}
|
|
File without changes
|
|
File without changes
|