Socket
Socket
Sign inDemoInstall

vitepress

Package Overview
Dependencies
Maintainers
5
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitepress - npm Package Compare versions

Comparing version 1.0.0-rc.40 to 1.0.0-rc.41

dist/node/serve-TjCp41j0.js

5

dist/client/app/devtools.js

@@ -1,5 +0,5 @@

import { setupDevtoolsPlugin } from '@vue/devtools-api';
import { setupDevToolsPlugin } from '@vue/devtools-api';
const COMPONENT_STATE_TYPE = 'VitePress';
export const setupDevtools = (app, router, data) => {
setupDevtoolsPlugin({
setupDevToolsPlugin({
// fix recursive reference

@@ -13,2 +13,3 @@ app: app,

}, (api) => {
// TODO: remove any
api.on.inspectComponent((payload) => {

@@ -15,0 +16,0 @@ payload.instanceData.state.push({

@@ -114,13 +114,18 @@ export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i;

}
const extraExts = (typeof process === 'object' && process.env.VITE_EXTRA_EXTENSIONS) ||
import.meta.env?.VITE_EXTRA_EXTENSIONS ||
'';
// md, html? are intentionally omitted, see treatAsHtml
const KNOWN_EXTENSIONS = new Set(('3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,' +
'eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,' +
'mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,' +
'p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,' +
'tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip' +
(extraExts && typeof extraExts === 'string' ? ',' + extraExts : '')).split(','));
const KNOWN_EXTENSIONS = new Set();
export function treatAsHtml(filename) {
if (KNOWN_EXTENSIONS.size === 0) {
const extraExts = (typeof process === 'object' && process.env.VITE_EXTRA_EXTENSIONS) ||
import.meta.env?.VITE_EXTRA_EXTENSIONS ||
'';
('3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,' +
'doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,' +
'man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,' +
'opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,' +
'tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,' +
'yaml,yml,zip' +
(extraExts && typeof extraExts === 'string' ? ',' + extraExts : ''))
.split(',')
.forEach((ext) => KNOWN_EXTENSIONS.add(ext));
}
const ext = filename.split('.').pop();

@@ -127,0 +132,0 @@ return ext == null || !KNOWN_EXTENSIONS.has(ext.toLowerCase());

6

dist/node/cli.js

@@ -1,2 +0,2 @@

import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-e9-zRdpq.js';
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-TjCp41j0.js';
import { createLogger } from 'vite';

@@ -32,4 +32,4 @@ import 'path';

import 'node:crypto';
import 'shikiji';
import 'shikiji-transformers';
import 'shiki';
import '@shikijs/transformers';
import 'minisearch';

@@ -36,0 +36,0 @@

import { normalizePath } from 'vite';
export { loadEnv } from 'vite';
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-e9-zRdpq.js';
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-e9-zRdpq.js';
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-TjCp41j0.js';
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-TjCp41j0.js';
import path from 'path';

@@ -34,4 +34,4 @@ import 'crypto';

import 'node:crypto';
import 'shikiji';
import 'shikiji-transformers';
import 'shiki';
import '@shikijs/transformers';
import 'minisearch';

@@ -38,0 +38,0 @@

{
"name": "vitepress",
"version": "1.0.0-rc.40",
"version": "1.0.0-rc.41",
"description": "Vite & Vue powered static site generator",
"type": "module",
"packageManager": "pnpm@8.14.2",
"packageManager": "pnpm@8.15.1",
"main": "dist/node/index.js",

@@ -61,3 +61,3 @@ "types": "types/index.d.ts",

"@vitejs/plugin-vue": "^5.0.3",
"@vue/devtools-api": "^6.5.1",
"@vue/devtools-api": "^7.0.14",
"@vueuse/core": "^10.7.2",

@@ -68,5 +68,5 @@ "@vueuse/integrations": "^10.7.2",

"minisearch": "^6.3.0",
"shikiji": "^0.10.0",
"shikiji-core": "^0.10.0",
"shikiji-transformers": "^0.10.0",
"shiki": "^1.0.0-beta.3",
"@shikijs/core": "^1.0.0-beta.3",
"@shikijs/transformers": "^1.0.0-beta.3",
"vite": "^5.0.12",

@@ -113,3 +113,3 @@ "vue": "^3.4.15"

"@types/minimist": "^1.2.5",
"@types/node": "^20.11.5",
"@types/node": "^20.11.16",
"@types/postcss-prefix-selector": "^1.16.3",

@@ -123,3 +123,3 @@ "@types/prompts": "^2.4.9",

"debug": "^4.3.4",
"esbuild": "^0.19.11",
"esbuild": "^0.20.0",
"escape-html": "^1.0.3",

@@ -131,5 +131,5 @@ "execa": "^8.0.1",

"gray-matter": "^4.0.3",
"lint-staged": "^15.2.0",
"lint-staged": "^15.2.1",
"lodash.template": "^4.5.0",
"lru-cache": "^10.1.0",
"lru-cache": "^10.2.0",
"markdown-it": "^14.0.0",

@@ -151,3 +151,3 @@ "markdown-it-anchor": "^8.6.7",

"playwright-chromium": "^1.41.1",
"polka": "1.0.0-next.23",
"polka": "1.0.0-next.24",
"postcss-prefix-selector": "^1.16.0",

@@ -160,3 +160,3 @@ "prettier": "^3.2.4",

"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.1",
"semver": "^7.5.4",

@@ -168,3 +168,3 @@ "simple-git-hooks": "^2.9.0",

"typescript": "^5.3.3",
"vitest": "^1.2.1",
"vitest": "^1.2.2",
"vue-tsc": "^1.8.27",

@@ -171,0 +171,0 @@ "wait-on": "^7.2.0"

@@ -7,3 +7,3 @@ # Markdown Extension Examples

VitePress provides Syntax Highlighting powered by [Shikiji](https://github.com/antfu/shikiji), with additional features like line-highlighting:
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting:

@@ -10,0 +10,0 @@ **Input**

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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