@cube-drone/marquee-markup 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.
@@ -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] ?? null,
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
- emoji: (slug) => emoji[slug] ?? null,
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.9.2",
3
+ "version": "0.10.0",
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.9.2",
42
- "@cube-drone/marquee-emoji": "^0.9.2",
43
- "@cube-drone/marquee-fonts": "^0.9.2",
44
- "@cube-drone/marquee-html-renderer": "^0.9.2",
45
- "@cube-drone/marquee-parser": "^0.9.2",
46
- "@cube-drone/marquee-turbolink": "^0.9.2"
41
+ "@cube-drone/marquee-css": "^0.10.0",
42
+ "@cube-drone/marquee-emoji": "^0.10.0",
43
+ "@cube-drone/marquee-fonts": "^0.10.0",
44
+ "@cube-drone/marquee-html-renderer": "^0.10.0",
45
+ "@cube-drone/marquee-parser": "^0.10.0",
46
+ "@cube-drone/marquee-turbolink": "^0.10.0"
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] ?? null,
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
- emoji: (slug: string) => emoji[slug] ?? null,
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
  }