@cube-drone/marquee-markup 0.9.3 → 0.10.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.
- package/dist/src/build-site.js +1 -1
- package/dist/src/index.js +2 -1
- package/package.json +7 -7
- package/src/build-site.ts +1 -1
- package/src/index.ts +2 -1
package/dist/src/build-site.js
CHANGED
|
@@ -105,7 +105,7 @@ function buildSiteCore(siteDirArg, outDirArg, opts, plugins, resolved) {
|
|
|
105
105
|
return bareWebProfile.media(target);
|
|
106
106
|
},
|
|
107
107
|
turbolink: composeTurbolinks(plugins, resolved),
|
|
108
|
-
emoji: (slug) => emojiTable[slug]
|
|
108
|
+
emoji: (slug) => (Object.hasOwn(emojiTable, slug) ? emojiTable[slug] : null),
|
|
109
109
|
directive(name, attrs, _children) {
|
|
110
110
|
if (name !== "include" || depth > 0) {
|
|
111
111
|
return null; // deep include -> unknown vocabulary -> inert placeholder
|
package/dist/src/index.js
CHANGED
|
@@ -26,7 +26,8 @@ function assembleProfile(opts, plugins, resolved) {
|
|
|
26
26
|
return {
|
|
27
27
|
...bareWebProfile,
|
|
28
28
|
turbolink: composeTurbolinks(plugins, resolved),
|
|
29
|
-
|
|
29
|
+
// hasOwn: a spread table has a prototype again, and `:constructor:` is author text.
|
|
30
|
+
emoji: (slug) => (Object.hasOwn(emoji, slug) ? emoji[slug] : null),
|
|
30
31
|
...opts.profile,
|
|
31
32
|
};
|
|
32
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cube-drone/marquee-markup",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Marquee, batteries included: parse + render to HTML in one motion, fonts and styles along for the ride, plus the `marquee` CLI",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"prepack": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@cube-drone/marquee-css": "^0.
|
|
42
|
-
"@cube-drone/marquee-emoji": "^0.
|
|
43
|
-
"@cube-drone/marquee-fonts": "^0.
|
|
44
|
-
"@cube-drone/marquee-html-renderer": "^0.
|
|
45
|
-
"@cube-drone/marquee-parser": "^0.
|
|
46
|
-
"@cube-drone/marquee-turbolink": "^0.
|
|
41
|
+
"@cube-drone/marquee-css": "^0.10.1",
|
|
42
|
+
"@cube-drone/marquee-emoji": "^0.10.1",
|
|
43
|
+
"@cube-drone/marquee-fonts": "^0.10.1",
|
|
44
|
+
"@cube-drone/marquee-html-renderer": "^0.10.1",
|
|
45
|
+
"@cube-drone/marquee-parser": "^0.10.1",
|
|
46
|
+
"@cube-drone/marquee-turbolink": "^0.10.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^24.0.0",
|
package/src/build-site.ts
CHANGED
|
@@ -176,7 +176,7 @@ function buildSiteCore(
|
|
|
176
176
|
return bareWebProfile.media(target);
|
|
177
177
|
},
|
|
178
178
|
turbolink: composeTurbolinks(plugins, resolved),
|
|
179
|
-
emoji: (slug: string) => emojiTable[slug]
|
|
179
|
+
emoji: (slug: string) => (Object.hasOwn(emojiTable, slug) ? emojiTable[slug]! : null),
|
|
180
180
|
directive(name, attrs, _children) {
|
|
181
181
|
if (name !== "include" || depth > 0) {
|
|
182
182
|
return null; // deep include -> unknown vocabulary -> inert placeholder
|
package/src/index.ts
CHANGED
|
@@ -93,7 +93,8 @@ function assembleProfile(
|
|
|
93
93
|
return {
|
|
94
94
|
...bareWebProfile,
|
|
95
95
|
turbolink: composeTurbolinks(plugins, resolved),
|
|
96
|
-
|
|
96
|
+
// hasOwn: a spread table has a prototype again, and `:constructor:` is author text.
|
|
97
|
+
emoji: (slug: string) => (Object.hasOwn(emoji, slug) ? emoji[slug]! : null),
|
|
97
98
|
...opts.profile,
|
|
98
99
|
};
|
|
99
100
|
}
|