valaxy 0.28.7 → 0.28.9
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/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'node:process';
|
|
2
2
|
import 'yargs';
|
|
3
3
|
import 'yargs/helpers';
|
|
4
|
-
export { c as cli, J as registerDevCommand, X as run, _ as startValaxyDev } from '../../shared/valaxy.
|
|
4
|
+
export { c as cli, J as registerDevCommand, X as run, _ as startValaxyDev } from '../../shared/valaxy.DwgWbAUE.mjs';
|
|
5
5
|
import 'node:os';
|
|
6
6
|
import 'node:path';
|
|
7
7
|
import 'consola';
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, a as createServer, d as createValaxyPlugin, e as customElements, f as defaultSiteConfig, g as defaultValaxyConfig, h as defaultViteConfig, i as defineAddon, j as defineConfig, k as defineSiteConfig, l as defineTheme, m as defineValaxyAddon, n as defineValaxyConfig, o as defineValaxyTheme, p as encryptContent, q as fixViteSsgHtml, r as generateClientRedirects, s as getGitTimestamp, t as getIndexHtml, u as getServerInfoText, v as isExternal, w as isInstalledGlobally, x as isKatexEnabled, y as isKatexPluginNeeded, z as isMathJaxEnabled, B as isPath, C as loadConfigFromFile, D as mergeValaxyConfig, F as mergeViteConfigs, H as postProcessForSSG, I as processValaxyOptions, J as registerDevCommand, K as resolveAddonsConfig, L as resolveImportPath, M as resolveImportUrl, N as resolveOptions, O as resolveSiteConfig, Q as resolveSiteConfigFromRoot, R as resolveThemeConfigFromRoot, S as resolveThemeValaxyConfig, T as resolveUserThemeConfig, U as resolveValaxyConfig, W as resolveValaxyConfigFromRoot, X as run, Y as ssgBuild, Z as ssgBuildLegacy, _ as startValaxyDev, $ as toAtFS, a0 as transformObject, a1 as version } from '../shared/valaxy.
|
|
1
|
+
export { A as ALL_ROUTE, E as EXCERPT_SEPARATOR, G as GLOBAL_STATE, P as PATHNAME_PROTOCOL_RE, V as ViteValaxyPlugins, b as build, c as cli, a as createServer, d as createValaxyPlugin, e as customElements, f as defaultSiteConfig, g as defaultValaxyConfig, h as defaultViteConfig, i as defineAddon, j as defineConfig, k as defineSiteConfig, l as defineTheme, m as defineValaxyAddon, n as defineValaxyConfig, o as defineValaxyTheme, p as encryptContent, q as fixViteSsgHtml, r as generateClientRedirects, s as getGitTimestamp, t as getIndexHtml, u as getServerInfoText, v as isExternal, w as isInstalledGlobally, x as isKatexEnabled, y as isKatexPluginNeeded, z as isMathJaxEnabled, B as isPath, C as loadConfigFromFile, D as mergeValaxyConfig, F as mergeViteConfigs, H as postProcessForSSG, I as processValaxyOptions, J as registerDevCommand, K as resolveAddonsConfig, L as resolveImportPath, M as resolveImportUrl, N as resolveOptions, O as resolveSiteConfig, Q as resolveSiteConfigFromRoot, R as resolveThemeConfigFromRoot, S as resolveThemeValaxyConfig, T as resolveUserThemeConfig, U as resolveValaxyConfig, W as resolveValaxyConfigFromRoot, X as run, Y as ssgBuild, Z as ssgBuildLegacy, _ as startValaxyDev, $ as toAtFS, a0 as transformObject, a1 as version } from '../shared/valaxy.DwgWbAUE.mjs';
|
|
2
2
|
import 'node:path';
|
|
3
3
|
import 'consola';
|
|
4
4
|
import 'fs-extra';
|
|
@@ -1751,7 +1751,7 @@ async function setupMarkdownPlugins(md, options, base = "/") {
|
|
|
1751
1751
|
return md;
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
|
-
const version = "0.28.
|
|
1754
|
+
const version = "0.28.9";
|
|
1755
1755
|
|
|
1756
1756
|
const GLOBAL_STATE = {
|
|
1757
1757
|
valaxyApp: void 0,
|
|
@@ -2183,6 +2183,13 @@ function getCryptoDeriveKey(keyMaterial, salt) {
|
|
|
2183
2183
|
["encrypt", "decrypt"]
|
|
2184
2184
|
);
|
|
2185
2185
|
}
|
|
2186
|
+
function bytesToBinaryString(bytes) {
|
|
2187
|
+
const CHUNK_SIZE = 32768;
|
|
2188
|
+
const chunks = [];
|
|
2189
|
+
for (let i = 0; i < bytes.length; i += CHUNK_SIZE)
|
|
2190
|
+
chunks.push(String.fromCharCode.apply(null, bytes.subarray(i, i + CHUNK_SIZE)));
|
|
2191
|
+
return chunks.join("");
|
|
2192
|
+
}
|
|
2186
2193
|
async function encryptContent(content, options) {
|
|
2187
2194
|
const { password, iv, salt } = options;
|
|
2188
2195
|
const keyMaterial = await getKeyMaterial(password);
|
|
@@ -2196,7 +2203,7 @@ async function encryptContent(content, options) {
|
|
|
2196
2203
|
key,
|
|
2197
2204
|
enc.encode(content)
|
|
2198
2205
|
);
|
|
2199
|
-
return
|
|
2206
|
+
return bytesToBinaryString(new Uint8Array(ciphertextData));
|
|
2200
2207
|
}
|
|
2201
2208
|
|
|
2202
2209
|
function getGitTimestamp(file, type = "updated") {
|
|
@@ -3999,7 +4006,18 @@ async function processValaxyOptions(valaxyOptions, valaxyConfig) {
|
|
|
3999
4006
|
const buildConfig = defaultValaxyConfig.vite.build ??= {};
|
|
4000
4007
|
buildConfig.rolldownOptions = {
|
|
4001
4008
|
...buildConfig.rolldownOptions,
|
|
4002
|
-
output: rolldownOutputOptions
|
|
4009
|
+
output: rolldownOutputOptions,
|
|
4010
|
+
// Silence IMPORT_IS_UNDEFINED warnings from the empty-addon fallback.
|
|
4011
|
+
// When a theme imports `valaxy-addon-*` that the user hasn't installed,
|
|
4012
|
+
// the alias points to client/addons/index.ts (an empty stub). Theme
|
|
4013
|
+
// components guard the access at runtime with isEmptyAddon(), so the
|
|
4014
|
+
// static "import will be undefined" warning is a false positive.
|
|
4015
|
+
onLog(level, log, defaultHandler) {
|
|
4016
|
+
if (log.code === "IMPORT_IS_UNDEFINED" && /[/\\]client[/\\]addons[/\\]index\.ts/.test(log.message ?? "")) {
|
|
4017
|
+
return;
|
|
4018
|
+
}
|
|
4019
|
+
defaultHandler(level, log);
|
|
4020
|
+
}
|
|
4003
4021
|
};
|
|
4004
4022
|
const config = replaceArrMerge(valaxyConfig, defaultValaxyConfig);
|
|
4005
4023
|
valaxyOptions.config = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.28.
|
|
4
|
+
"version": "0.28.9",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": "^18.0.0 || >=20.0.0"
|
|
61
61
|
},
|
|
62
|
+
"peerDependencies": {
|
|
63
|
+
"vue": "^3.5.0",
|
|
64
|
+
"vue-router": "^5.0.0"
|
|
65
|
+
},
|
|
62
66
|
"dependencies": {
|
|
63
67
|
"@antfu/install-pkg": "^1.1.0",
|
|
64
68
|
"@antfu/utils": "^9.3.0",
|
|
@@ -135,12 +139,10 @@
|
|
|
135
139
|
"vite-ssg": "^28.3.0",
|
|
136
140
|
"vite-ssg-sitemap": "^0.10.0",
|
|
137
141
|
"vitepress-plugin-group-icons": "^1.7.5",
|
|
138
|
-
"vue": "3.5.22",
|
|
139
142
|
"vue-i18n": "^11.4.2",
|
|
140
|
-
"vue-router": "^5.0.6",
|
|
141
143
|
"yargs": "^18.0.0",
|
|
142
|
-
"@valaxyjs/
|
|
143
|
-
"@valaxyjs/
|
|
144
|
+
"@valaxyjs/utils": "0.28.9",
|
|
145
|
+
"@valaxyjs/devtools": "0.28.9"
|
|
144
146
|
},
|
|
145
147
|
"devDependencies": {
|
|
146
148
|
"@mdit-vue/plugin-component": "^3.0.2",
|
|
@@ -165,7 +167,9 @@
|
|
|
165
167
|
"https-localhost": "^4.7.1",
|
|
166
168
|
"nanoid": "^5.1.11",
|
|
167
169
|
"rollup-plugin-visualizer": "^7.0.1",
|
|
168
|
-
"unbuild": "^3.6.1"
|
|
170
|
+
"unbuild": "^3.6.1",
|
|
171
|
+
"vue": "3.5.22",
|
|
172
|
+
"vue-router": "^5.0.6"
|
|
169
173
|
},
|
|
170
174
|
"scripts": {
|
|
171
175
|
"clean": "rimraf dist",
|