@code-hike/highlighter
Advanced tools
Comparing version 0.3.0--canary.77.2616b6b.0 to 0.3.0--canary.77.3bbe788.0
@@ -131,7 +131,7 @@ 'use strict'; | ||
var FONT_STYLE_TO_CSS = (_a = {}, | ||
_a[-1 /* NotSet */] = {}, | ||
_a[0 /* None */] = {}, | ||
_a[1 /* Italic */] = { fontStyle: "italic" }, | ||
_a[2 /* Bold */] = { fontWeight: "bold" }, | ||
_a[4 /* Underline */] = { textDecoration: "underline" }, | ||
_a[shiki.FontStyle.NotSet] = {}, | ||
_a[shiki.FontStyle.None] = {}, | ||
_a[shiki.FontStyle.Italic] = { fontStyle: "italic" }, | ||
_a[shiki.FontStyle.Bold] = { fontWeight: "bold" }, | ||
_a[shiki.FontStyle.Underline] = { textDecoration: "underline" }, | ||
_a); | ||
@@ -138,0 +138,0 @@ function getStyle(token) { |
@@ -1,2 +0,2 @@ | ||
import { setCDN, getHighlighter } from 'shiki'; | ||
import { FontStyle, setCDN, getHighlighter } from 'shiki'; | ||
@@ -127,7 +127,7 @@ /*! ***************************************************************************** | ||
var FONT_STYLE_TO_CSS = (_a = {}, | ||
_a[-1 /* NotSet */] = {}, | ||
_a[0 /* None */] = {}, | ||
_a[1 /* Italic */] = { fontStyle: "italic" }, | ||
_a[2 /* Bold */] = { fontWeight: "bold" }, | ||
_a[4 /* Underline */] = { textDecoration: "underline" }, | ||
_a[FontStyle.NotSet] = {}, | ||
_a[FontStyle.None] = {}, | ||
_a[FontStyle.Italic] = { fontStyle: "italic" }, | ||
_a[FontStyle.Bold] = { fontWeight: "bold" }, | ||
_a[FontStyle.Underline] = { textDecoration: "underline" }, | ||
_a); | ||
@@ -134,0 +134,0 @@ function getStyle(token) { |
{ | ||
"name": "@code-hike/highlighter", | ||
"version": "0.3.0--canary.77.2616b6b.0", | ||
"version": "0.3.0--canary.77.3bbe788.0", | ||
"main": "dist/index.cjs.js", | ||
@@ -15,8 +15,8 @@ "typings": "dist/index.d.ts", | ||
"devDependencies": { | ||
"@code-hike/script": "0.3.0--canary.77.2616b6b.0", | ||
"@code-hike/script": "0.3.0--canary.77.3bbe788.0", | ||
"@types/react": "^16.9.38" | ||
}, | ||
"dependencies": { | ||
"@code-hike/utils": "0.3.0--canary.77.2616b6b.0", | ||
"shiki": "^0.9.5" | ||
"@code-hike/utils": "0.3.0--canary.77.3bbe788.0", | ||
"shiki": "^0.9.11" | ||
}, | ||
@@ -34,3 +34,3 @@ "homepage": "https://codehike.org", | ||
}, | ||
"gitHead": "2616b6b6722b561a7cee4c1de5389c3cf45bf74c" | ||
"gitHead": "3bbe788e78697bb538a44d4675b49bcdb3e5e0c7" | ||
} |
15356
+ Added@code-hike/utils@0.3.0--canary.77.3bbe788.0(transitive)
- Removed@code-hike/utils@0.3.0--canary.77.2616b6b.0(transitive)
Updatedshiki@^0.9.11