Socket
Socket
Sign inDemoInstall

shiki

Package Overview
Dependencies
Maintainers
1
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shiki - npm Package Compare versions

Comparing version 0.0.3-next.2 to 0.0.3-next.3

data/grammars/vue-html.json

10

data/grammars.json

@@ -250,2 +250,12 @@ [

{
"language": "vue",
"scopeName": "source.vue",
"path": "./grammars/vue.json"
},
{
"language": "vue-html",
"scopeName": "text.html.vue-html",
"path": "./grammars/vue-html.json"
},
{
"language": "xml",

@@ -252,0 +262,0 @@ "scopeName": "text.xml",

@@ -659,2 +659,24 @@ [

{
"id": "vue-html",
"extensions": [
".vue.html"
],
"aliases": [
"Vue HTML",
"Vue Html",
"Vue html"
],
"configuration": "./language-configuration.json"
},
{
"id": "vue",
"extensions": [
".vue"
],
"aliases": [
"Vue",
"vue"
]
},
{
"id": "xml",

@@ -661,0 +683,0 @@ "extensions": [

2

out/main.d.ts
import { IThemedToken } from './themedTokenizer';
export declare function getCodeTokenizer(themeName: string): Promise<(code: string, lang: string) => IThemedToken[][]>;
export declare function buildHTML(lines: IThemedToken[][], langId: string): string;
export declare function buildHTML(lines: IThemedToken[][], langId?: string): string;

@@ -59,3 +59,4 @@ "use strict";

new themes_1.ThemeInfo('solarized_light', 'Solarized-light.tmTheme'),
new themes_1.ThemeInfo('tomorrow_night_blue', 'Tomorrow-Night-Blue.tmTheme')
new themes_1.ThemeInfo('tomorrow_night_blue', 'Tomorrow-Night-Blue.tmTheme'),
new themes_1.ThemeInfo('material_palenight', 'Material-Theme-Palenight.json')
];

@@ -76,3 +77,5 @@ var LANGUAGES = [

'bat',
'ini'
'ini',
'vue',
'vue-html'
];

@@ -147,3 +150,7 @@ var _grammars = JSON.parse(fs.readFileSync(path.resolve(DATA_PATH, 'grammars.json')).toString('utf8'));

var html = '';
html += "<pre class=\"shiki\"><div class=\"language-id\">" + langId + "</div><code>";
html += "<pre class=\"shiki\">";
if (langId) {
html += "<div class=\"language-id\">" + langId + "</div>";
}
html += "<code>";
lines.forEach(function (l) {

@@ -150,0 +157,0 @@ if (l.length === 0) {

{
"name": "shiki",
"version": "0.0.3-next.2",
"version": "0.0.3-next.3",
"main": "./out/main.js",

@@ -5,0 +5,0 @@ "files": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc