vitepress 1.3.2 → 1.3.4
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.
package/dist/node/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-CFRRJDfQ.js';
|
|
2
2
|
import { createLogger } from 'vite';
|
|
3
3
|
import 'path';
|
|
4
4
|
import 'shiki';
|
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { normalizePath } from 'vite';
|
|
2
2
|
export { loadEnv } from 'vite';
|
|
3
|
-
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-
|
|
4
|
-
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-
|
|
3
|
+
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-CFRRJDfQ.js';
|
|
4
|
+
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-CFRRJDfQ.js';
|
|
5
5
|
import path from 'path';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'module';
|
|
@@ -12042,6 +12042,8 @@ function requireBrowser () {
|
|
|
12042
12042
|
return false;
|
|
12043
12043
|
}
|
|
12044
12044
|
|
|
12045
|
+
let m;
|
|
12046
|
+
|
|
12045
12047
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
12046
12048
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
12047
12049
|
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
|
|
@@ -12049,7 +12051,7 @@ function requireBrowser () {
|
|
|
12049
12051
|
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
|
|
12050
12052
|
// Is firefox >= v31?
|
|
12051
12053
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
12052
|
-
(typeof navigator !== 'undefined' && undefined && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
12054
|
+
(typeof navigator !== 'undefined' && undefined && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
|
|
12053
12055
|
// Double check webkit in userAgent just in case we are in a worker
|
|
12054
12056
|
(typeof navigator !== 'undefined' && undefined && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
|
|
12055
12057
|
}
|
|
@@ -34573,7 +34575,7 @@ var patterns = options => {
|
|
|
34573
34575
|
const content = token.content;
|
|
34574
34576
|
const attrs = utils$1.getAttrs(content, content.lastIndexOf(options.leftDelimiter), options);
|
|
34575
34577
|
let ii = i + 1;
|
|
34576
|
-
|
|
34578
|
+
do if (tokens[ii] && tokens[ii].nesting === -1) { break; } while (ii++ < tokens.length);
|
|
34577
34579
|
const openingToken = utils$1.getMatchingOpeningToken(tokens, ii);
|
|
34578
34580
|
utils$1.addAttrs(attrs, openingToken);
|
|
34579
34581
|
const trimmed = content.slice(0, content.lastIndexOf(options.leftDelimiter));
|
|
@@ -42376,7 +42378,7 @@ const staticDataPlugin = {
|
|
|
42376
42378
|
}
|
|
42377
42379
|
},
|
|
42378
42380
|
transform(_code, id) {
|
|
42379
|
-
if (server && loaderMatch.test(id)) {
|
|
42381
|
+
if (server && loaderMatch.test(id) && "_importGlobMap" in server) {
|
|
42380
42382
|
const { watch } = idToLoaderModulesMap[id];
|
|
42381
42383
|
if (watch) {
|
|
42382
42384
|
server._importGlobMap.set(
|
|
@@ -46836,7 +46838,7 @@ async function generateSitemap(siteConfig) {
|
|
|
46836
46838
|
});
|
|
46837
46839
|
}
|
|
46838
46840
|
|
|
46839
|
-
var version = "1.3.
|
|
46841
|
+
var version = "1.3.4";
|
|
46840
46842
|
|
|
46841
46843
|
async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags) {
|
|
46842
46844
|
const routePath = `/${page.replace(/\.md$/, "")}`;
|
|
@@ -49504,7 +49506,7 @@ function compression ({ threshold = 1024, level = -1, brotli = false, gzip = tru
|
|
|
49504
49506
|
|
|
49505
49507
|
return (req, res, next = NOOP) => {
|
|
49506
49508
|
const accept = req.headers['accept-encoding'] + '';
|
|
49507
|
-
const encoding = ((brotli &&
|
|
49509
|
+
const encoding = ((brotli && /\bbr\b/.exec(accept)) || (gzip && /\bgzip\b/.exec(accept)) || [])[0];
|
|
49508
49510
|
|
|
49509
49511
|
// skip if no response body or no supported encoding:
|
|
49510
49512
|
if (req.method === 'HEAD' || !encoding) return next();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitepress",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "Vite & Vue powered static site generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vite",
|
|
@@ -60,22 +60,22 @@
|
|
|
60
60
|
"*": "prettier --write --ignore-unknown"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@docsearch/css": "^3.6.
|
|
64
|
-
"@docsearch/js": "^3.6.
|
|
65
|
-
"@shikijs/core": "^1.
|
|
66
|
-
"@shikijs/transformers": "^1.
|
|
67
|
-
"@types/markdown-it": "^14.1.
|
|
68
|
-
"@vitejs/plugin-vue": "^5.
|
|
69
|
-
"@vue/devtools-api": "^7.3.
|
|
70
|
-
"@vue/shared": "^3.4.
|
|
71
|
-
"@vueuse/core": "^
|
|
72
|
-
"@vueuse/integrations": "^
|
|
63
|
+
"@docsearch/css": "^3.6.1",
|
|
64
|
+
"@docsearch/js": "^3.6.1",
|
|
65
|
+
"@shikijs/core": "^1.13.0",
|
|
66
|
+
"@shikijs/transformers": "^1.13.0",
|
|
67
|
+
"@types/markdown-it": "^14.1.2",
|
|
68
|
+
"@vitejs/plugin-vue": "^5.1.2",
|
|
69
|
+
"@vue/devtools-api": "^7.3.8",
|
|
70
|
+
"@vue/shared": "^3.4.38",
|
|
71
|
+
"@vueuse/core": "^11.0.0",
|
|
72
|
+
"@vueuse/integrations": "^11.0.0",
|
|
73
73
|
"focus-trap": "^7.5.4",
|
|
74
74
|
"mark.js": "8.11.1",
|
|
75
|
-
"minisearch": "^7.
|
|
76
|
-
"shiki": "^1.
|
|
77
|
-
"vite": "^5.
|
|
78
|
-
"vue": "^3.4.
|
|
75
|
+
"minisearch": "^7.1.0",
|
|
76
|
+
"shiki": "^1.13.0",
|
|
77
|
+
"vite": "^5.4.1",
|
|
78
|
+
"vue": "^3.4.38"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
81
|
"@clack/prompts": "^0.7.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@mdit-vue/plugin-title": "^2.1.3",
|
|
87
87
|
"@mdit-vue/plugin-toc": "^2.1.3",
|
|
88
88
|
"@mdit-vue/shared": "^2.1.3",
|
|
89
|
-
"@polka/compression": "^1.0.0-next.
|
|
89
|
+
"@polka/compression": "^1.0.0-next.26",
|
|
90
90
|
"@rollup/plugin-alias": "^5.1.0",
|
|
91
91
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
92
92
|
"@rollup/plugin-json": "^6.1.0",
|
|
@@ -102,25 +102,25 @@
|
|
|
102
102
|
"@types/markdown-it-emoji": "^3.0.1",
|
|
103
103
|
"@types/micromatch": "^4.0.9",
|
|
104
104
|
"@types/minimist": "^1.2.5",
|
|
105
|
-
"@types/node": "^
|
|
105
|
+
"@types/node": "^22.4.0",
|
|
106
106
|
"@types/postcss-prefix-selector": "^1.16.3",
|
|
107
107
|
"@types/prompts": "^2.4.9",
|
|
108
108
|
"chokidar": "^3.6.0",
|
|
109
109
|
"conventional-changelog-cli": "^5.0.0",
|
|
110
110
|
"cross-spawn": "^7.0.3",
|
|
111
|
-
"debug": "^4.3.
|
|
112
|
-
"esbuild": "^0.23.
|
|
113
|
-
"execa": "^9.3.
|
|
111
|
+
"debug": "^4.3.6",
|
|
112
|
+
"esbuild": "^0.23.1",
|
|
113
|
+
"execa": "^9.3.1",
|
|
114
114
|
"fast-glob": "^3.3.2",
|
|
115
115
|
"fs-extra": "^11.2.0",
|
|
116
116
|
"get-port": "^7.1.0",
|
|
117
117
|
"gray-matter": "^4.0.3",
|
|
118
|
-
"lint-staged": "^15.2.
|
|
118
|
+
"lint-staged": "^15.2.9",
|
|
119
119
|
"lodash.template": "^4.5.0",
|
|
120
120
|
"lru-cache": "^11.0.0",
|
|
121
121
|
"markdown-it": "^14.1.0",
|
|
122
122
|
"markdown-it-anchor": "^9.0.1",
|
|
123
|
-
"markdown-it-attrs": "^4.
|
|
123
|
+
"markdown-it-attrs": "^4.2.0",
|
|
124
124
|
"markdown-it-container": "^4.0.0",
|
|
125
125
|
"markdown-it-emoji": "^3.0.0",
|
|
126
126
|
"markdown-it-mathjax3": "^4.3.2",
|
|
@@ -132,23 +132,23 @@
|
|
|
132
132
|
"path-to-regexp": "^6.2.2",
|
|
133
133
|
"picocolors": "^1.0.1",
|
|
134
134
|
"pkg-dir": "^8.0.0",
|
|
135
|
-
"playwright-chromium": "^1.
|
|
135
|
+
"playwright-chromium": "^1.46.1",
|
|
136
136
|
"polka": "^1.0.0-next.25",
|
|
137
137
|
"postcss-prefix-selector": "^1.16.1",
|
|
138
138
|
"prettier": "^3.3.3",
|
|
139
139
|
"prompts": "^2.4.2",
|
|
140
140
|
"punycode": "^2.3.1",
|
|
141
141
|
"rimraf": "^6.0.1",
|
|
142
|
-
"rollup": "^4.
|
|
142
|
+
"rollup": "^4.20.0",
|
|
143
143
|
"rollup-plugin-dts": "^6.1.1",
|
|
144
144
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
145
|
-
"semver": "^7.6.
|
|
145
|
+
"semver": "^7.6.3",
|
|
146
146
|
"simple-git-hooks": "^2.11.1",
|
|
147
147
|
"sirv": "^2.0.4",
|
|
148
148
|
"sitemap": "^8.0.0",
|
|
149
149
|
"supports-color": "^9.4.0",
|
|
150
|
-
"typescript": "^5.5.
|
|
151
|
-
"vitest": "^2.0.
|
|
150
|
+
"typescript": "^5.5.4",
|
|
151
|
+
"vitest": "^2.0.5",
|
|
152
152
|
"vue-tsc": "^2.0.29",
|
|
153
153
|
"wait-on": "^7.2.0"
|
|
154
154
|
},
|