@shikijs/core 1.1.5 → 1.1.7

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/dist/index.mjs +1 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -122,7 +122,7 @@ function splitTokens(tokens, breakpoints) {
122
122
  });
123
123
  }
124
124
  function applyColorReplacements(color, replacements) {
125
- return replacements?.[color.toLowerCase()] || color;
125
+ return replacements?.[color?.toLowerCase()] || color;
126
126
  }
127
127
  function getTokenStyleObject(token) {
128
128
  const styles = {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shikijs/core",
3
3
  "type": "module",
4
- "version": "1.1.5",
4
+ "version": "1.1.7",
5
5
  "description": "Core of Shiki",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",