@cube-drone/marquee-turbolink 0.9.2 → 0.10.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/dist/opengraph.js +2 -2
- package/package.json +2 -2
- package/src/opengraph.ts +2 -2
package/dist/opengraph.js
CHANGED
|
@@ -8,7 +8,7 @@ const UA = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Geck
|
|
|
8
8
|
* HTML5 table (2,000+ names); an unknown name is left as-is rather than
|
|
9
9
|
* guessed. Mirror of the Rust crate's NAMED_ENTITIES.
|
|
10
10
|
*/
|
|
11
|
-
const NAMED_ENTITIES = {
|
|
11
|
+
const NAMED_ENTITIES = Object.assign(Object.create(null), {
|
|
12
12
|
lt: "<",
|
|
13
13
|
gt: ">",
|
|
14
14
|
quot: '"',
|
|
@@ -29,7 +29,7 @@ const NAMED_ENTITIES = {
|
|
|
29
29
|
raquo: "\u00bb",
|
|
30
30
|
bull: "\u2022",
|
|
31
31
|
middot: "\u00b7",
|
|
32
|
-
};
|
|
32
|
+
});
|
|
33
33
|
const ENTITY_RE = /&(#[xX][0-9a-fA-F]{1,6}|#[0-9]{1,7}|[a-zA-Z][a-zA-Z0-9]{1,31});/g;
|
|
34
34
|
/**
|
|
35
35
|
* Decode the character references a meta content= can carry: decimal
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cube-drone/marquee-turbolink",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Pluggable turbolink rendering for Marquee: link expanders as plugins, plain link as the floor",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"prepack": "npm run build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@cube-drone/marquee-parser": "^0.
|
|
37
|
+
"@cube-drone/marquee-parser": "^0.10.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^24.0.0",
|
package/src/opengraph.ts
CHANGED
|
@@ -13,7 +13,7 @@ const UA =
|
|
|
13
13
|
* HTML5 table (2,000+ names); an unknown name is left as-is rather than
|
|
14
14
|
* guessed. Mirror of the Rust crate's NAMED_ENTITIES.
|
|
15
15
|
*/
|
|
16
|
-
const NAMED_ENTITIES: Record<string, string> = {
|
|
16
|
+
const NAMED_ENTITIES: Record<string, string> = Object.assign(Object.create(null), {
|
|
17
17
|
lt: "<",
|
|
18
18
|
gt: ">",
|
|
19
19
|
quot: '"',
|
|
@@ -34,7 +34,7 @@ const NAMED_ENTITIES: Record<string, string> = {
|
|
|
34
34
|
raquo: "\u00bb",
|
|
35
35
|
bull: "\u2022",
|
|
36
36
|
middot: "\u00b7",
|
|
37
|
-
};
|
|
37
|
+
});
|
|
38
38
|
|
|
39
39
|
const ENTITY_RE = /&(#[xX][0-9a-fA-F]{1,6}|#[0-9]{1,7}|[a-zA-Z][a-zA-Z0-9]{1,31});/g;
|
|
40
40
|
|