valaxy 0.22.16 → 0.22.17
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/client/setup/main.ts +1 -1
- package/dist/{chunk-UO3OS4ER.js → chunk-5DSTD5D3.js} +1 -1
- package/dist/{chunk-FRBF4PQK.js → chunk-AP7OY5ZQ.js} +24 -24
- package/dist/{chunk-HAPQ2BMO.js → chunk-J2BOKDJT.js} +11 -9
- package/dist/node/cli/index.js +3 -3
- package/dist/node/index.js +3 -3
- package/dist/node/worker_shikiResolveLang.js +2 -2
- package/dist/types/index.js +1 -1
- package/package.json +10 -10
package/client/setup/main.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { ViteSSGContext } from 'vite-ssg'
|
|
|
8
8
|
|
|
9
9
|
import type { ComputedRef } from 'vue'
|
|
10
10
|
|
|
11
|
-
import consola from 'consola'
|
|
11
|
+
import { consola } from 'consola'
|
|
12
12
|
import { install as installFloatingVue } from '../modules/floating-vue'
|
|
13
13
|
import { install as installNprogress } from '../modules/nprogress'
|
|
14
14
|
import { install as installPinia } from '../modules/pinia'
|
|
@@ -6,7 +6,7 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
6
6
|
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
7
7
|
});
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.
|
|
9
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.52.1_@types+node@22.13.13__jiti@2.4.2_postcss@8.5_8876073212605cc840ddb183696fdfcb/node_modules/tsup/assets/esm_shims.js
|
|
10
10
|
import { fileURLToPath } from "url";
|
|
11
11
|
import path from "path";
|
|
12
12
|
var getFilename = () => fileURLToPath(import.meta.url);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
createSyncFn
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J2BOKDJT.js";
|
|
5
5
|
import {
|
|
6
6
|
__require
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5DSTD5D3.js";
|
|
8
8
|
|
|
9
9
|
// node/cli/index.ts
|
|
10
10
|
import process14 from "node:process";
|
|
@@ -12,11 +12,11 @@ import yargs from "yargs";
|
|
|
12
12
|
import { hideBin } from "yargs/helpers";
|
|
13
13
|
|
|
14
14
|
// package.json
|
|
15
|
-
var version = "0.22.
|
|
15
|
+
var version = "0.22.17";
|
|
16
16
|
|
|
17
17
|
// node/modules/fuse.ts
|
|
18
18
|
import path4 from "node:path";
|
|
19
|
-
import consola9 from "consola";
|
|
19
|
+
import { consola as consola9 } from "consola";
|
|
20
20
|
import { colors as colors7 } from "consola/utils";
|
|
21
21
|
import fg2 from "fast-glob";
|
|
22
22
|
import fs7 from "fs-extra";
|
|
@@ -45,7 +45,7 @@ function commonOptions(args) {
|
|
|
45
45
|
import { dirname as dirname2 } from "node:path";
|
|
46
46
|
import process4 from "node:process";
|
|
47
47
|
import { ensureSuffix, uniq } from "@antfu/utils";
|
|
48
|
-
import consola7 from "consola";
|
|
48
|
+
import { consola as consola7 } from "consola";
|
|
49
49
|
import { colors as colors6 } from "consola/utils";
|
|
50
50
|
import _debug from "debug";
|
|
51
51
|
import fg from "fast-glob";
|
|
@@ -165,13 +165,13 @@ import fs2 from "fs-extra";
|
|
|
165
165
|
// node/config/valaxy.ts
|
|
166
166
|
import process2 from "node:process";
|
|
167
167
|
import { isFunction } from "@antfu/utils";
|
|
168
|
-
import consola4 from "consola";
|
|
168
|
+
import { consola as consola4 } from "consola";
|
|
169
169
|
import { colors as colors2 } from "consola/utils";
|
|
170
170
|
import { createDefu } from "defu";
|
|
171
171
|
import { mergeConfig as mergeViteConfig } from "vite";
|
|
172
172
|
|
|
173
173
|
// node/utils/performance.ts
|
|
174
|
-
import consola from "consola";
|
|
174
|
+
import { consola } from "consola";
|
|
175
175
|
function countPerformanceTime() {
|
|
176
176
|
const start = performance.now();
|
|
177
177
|
return () => {
|
|
@@ -185,13 +185,13 @@ function countPerformanceTime() {
|
|
|
185
185
|
|
|
186
186
|
// node/config/site.ts
|
|
187
187
|
import { webcrypto } from "node:crypto";
|
|
188
|
-
import consola3 from "consola";
|
|
188
|
+
import { consola as consola3 } from "consola";
|
|
189
189
|
import { colors } from "consola/utils";
|
|
190
190
|
import { options as floatingVueOptions } from "floating-vue";
|
|
191
191
|
|
|
192
192
|
// node/config/utils.ts
|
|
193
193
|
import process from "node:process";
|
|
194
|
-
import consola2 from "consola";
|
|
194
|
+
import { consola as consola2 } from "consola";
|
|
195
195
|
import fs from "fs-extra";
|
|
196
196
|
import { createJiti } from "jiti";
|
|
197
197
|
import { resolve } from "pathe";
|
|
@@ -443,7 +443,7 @@ import { colors as colors4 } from "consola/utils";
|
|
|
443
443
|
import defu from "defu";
|
|
444
444
|
|
|
445
445
|
// node/logger/index.ts
|
|
446
|
-
import consola5 from "consola";
|
|
446
|
+
import { consola as consola5 } from "consola";
|
|
447
447
|
import { colors as colors3 } from "consola/utils";
|
|
448
448
|
import ora from "ora";
|
|
449
449
|
var logger = consola5.create({});
|
|
@@ -578,7 +578,7 @@ function transformObject(obj) {
|
|
|
578
578
|
|
|
579
579
|
// node/utils/resolve.ts
|
|
580
580
|
import { ensurePrefix, slash } from "@antfu/utils";
|
|
581
|
-
import consola6 from "consola";
|
|
581
|
+
import { consola as consola6 } from "consola";
|
|
582
582
|
import { resolvePath } from "mlly";
|
|
583
583
|
import { resolveGlobal } from "resolve-global";
|
|
584
584
|
var isInstalledGlobally = {};
|
|
@@ -867,7 +867,7 @@ var matterOptions = {
|
|
|
867
867
|
// node/utils/env.ts
|
|
868
868
|
import path3 from "node:path";
|
|
869
869
|
import process5 from "node:process";
|
|
870
|
-
import consola8 from "consola";
|
|
870
|
+
import { consola as consola8 } from "consola";
|
|
871
871
|
import fs6 from "fs-extra";
|
|
872
872
|
function isProd() {
|
|
873
873
|
return process5.env.NODE_ENV === "production";
|
|
@@ -985,7 +985,7 @@ var fuseModule = defineValaxyModule({
|
|
|
985
985
|
import { readFile } from "node:fs/promises";
|
|
986
986
|
import { dirname as dirname3, join, resolve as resolve5 } from "node:path";
|
|
987
987
|
import { ensurePrefix as ensurePrefix2 } from "@antfu/utils";
|
|
988
|
-
import consola10 from "consola";
|
|
988
|
+
import { consola as consola10 } from "consola";
|
|
989
989
|
import { colors as colors8 } from "consola/utils";
|
|
990
990
|
import dayjs from "dayjs";
|
|
991
991
|
import fg3 from "fast-glob";
|
|
@@ -1204,13 +1204,13 @@ var rssModule = defineValaxyModule({
|
|
|
1204
1204
|
// node/cli/build.ts
|
|
1205
1205
|
import path13 from "node:path";
|
|
1206
1206
|
import process9 from "node:process";
|
|
1207
|
-
import consola16 from "consola";
|
|
1207
|
+
import { consola as consola16 } from "consola";
|
|
1208
1208
|
import { colors as colors15 } from "consola/utils";
|
|
1209
1209
|
import { mergeConfig as mergeConfig4 } from "vite";
|
|
1210
1210
|
|
|
1211
1211
|
// node/build.ts
|
|
1212
1212
|
import { join as join8, resolve as resolve13 } from "node:path";
|
|
1213
|
-
import consola14 from "consola";
|
|
1213
|
+
import { consola as consola14 } from "consola";
|
|
1214
1214
|
import { colors as colors12 } from "consola/utils";
|
|
1215
1215
|
import fs21 from "fs-extra";
|
|
1216
1216
|
import { mergeConfig as mergeViteConfig2, build as viteBuild } from "vite";
|
|
@@ -1221,7 +1221,7 @@ import { build as viteSsgBuild } from "vite-ssg/node";
|
|
|
1221
1221
|
import VueI18n from "@intlify/unplugin-vue-i18n/vite";
|
|
1222
1222
|
import UnheadVite from "@unhead/addons/vite";
|
|
1223
1223
|
import Vue from "@vitejs/plugin-vue";
|
|
1224
|
-
import consola13 from "consola";
|
|
1224
|
+
import { consola as consola13 } from "consola";
|
|
1225
1225
|
import { resolve as resolve12 } from "pathe";
|
|
1226
1226
|
import Components from "unplugin-vue-components/vite";
|
|
1227
1227
|
import Layouts from "vite-plugin-vue-layouts";
|
|
@@ -1472,13 +1472,13 @@ import {
|
|
|
1472
1472
|
} from "@shikijs/transformers";
|
|
1473
1473
|
import { colors as colors9 } from "consola/utils";
|
|
1474
1474
|
|
|
1475
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
1475
|
+
// ../../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.js
|
|
1476
1476
|
import { webcrypto as crypto } from "node:crypto";
|
|
1477
1477
|
|
|
1478
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
1478
|
+
// ../../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/url-alphabet/index.js
|
|
1479
1479
|
var urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
1480
1480
|
|
|
1481
|
-
// ../../node_modules/.pnpm/nanoid@5.1.
|
|
1481
|
+
// ../../node_modules/.pnpm/nanoid@5.1.5/node_modules/nanoid/index.js
|
|
1482
1482
|
var POOL_SIZE_MULTIPLIER = 128;
|
|
1483
1483
|
var pool;
|
|
1484
1484
|
var poolOffset;
|
|
@@ -3004,7 +3004,7 @@ async function createUnocssPlugin(options) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
|
|
3006
3006
|
// node/plugins/valaxy/index.ts
|
|
3007
|
-
import consola12 from "consola";
|
|
3007
|
+
import { consola as consola12 } from "consola";
|
|
3008
3008
|
import { colors as colors11 } from "consola/utils";
|
|
3009
3009
|
import fs19 from "fs-extra";
|
|
3010
3010
|
import { join as join7, relative, resolve as resolve10 } from "pathe";
|
|
@@ -3336,7 +3336,7 @@ function transformFootnoteTooltip(code) {
|
|
|
3336
3336
|
}
|
|
3337
3337
|
|
|
3338
3338
|
// node/plugins/markdown/transform/hexo.ts
|
|
3339
|
-
import consola11 from "consola";
|
|
3339
|
+
import { consola as consola11 } from "consola";
|
|
3340
3340
|
import { colors as colors10 } from "consola/utils";
|
|
3341
3341
|
function transformHexoTags(code, id) {
|
|
3342
3342
|
if (code.includes("{%") && code.includes("%}")) {
|
|
@@ -4168,7 +4168,7 @@ import os from "node:os";
|
|
|
4168
4168
|
import path12 from "node:path";
|
|
4169
4169
|
import process8 from "node:process";
|
|
4170
4170
|
import * as readline from "node:readline";
|
|
4171
|
-
import consola15 from "consola";
|
|
4171
|
+
import { consola as consola15 } from "consola";
|
|
4172
4172
|
import { colors as colors14 } from "consola/utils";
|
|
4173
4173
|
import ora4 from "ora";
|
|
4174
4174
|
import { mergeConfig as mergeConfig3 } from "vite";
|
|
@@ -4366,7 +4366,7 @@ function registerBuildCommand(cli2) {
|
|
|
4366
4366
|
// node/cli/clean.ts
|
|
4367
4367
|
import path14 from "node:path";
|
|
4368
4368
|
import process10 from "node:process";
|
|
4369
|
-
import consola17 from "consola";
|
|
4369
|
+
import { consola as consola17 } from "consola";
|
|
4370
4370
|
import fs22 from "fs-extra";
|
|
4371
4371
|
|
|
4372
4372
|
// node/cli/utils/fs.ts
|
|
@@ -4423,7 +4423,7 @@ function registerCleanCommand(cli2) {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
|
|
4425
4425
|
// node/cli/debug.ts
|
|
4426
|
-
import consola18 from "consola";
|
|
4426
|
+
import { consola as consola18 } from "consola";
|
|
4427
4427
|
function registerDebugCommand(cli2) {
|
|
4428
4428
|
cli2.command("debug", "Debug your blog", async () => {
|
|
4429
4429
|
consola18.info("\u63D0\u95EE\u524D\u8BF7\u643A\u5E26\u4EE5\u4E0B\u4FE1\u606F\uFF1A");
|
|
@@ -2,7 +2,7 @@ import {createRequire as __createRequire} from 'module';var require=__createRequ
|
|
|
2
2
|
import {
|
|
3
3
|
__dirname,
|
|
4
4
|
__require
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5DSTD5D3.js";
|
|
6
6
|
|
|
7
7
|
// ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
|
|
8
8
|
function __rest(s, e) {
|
|
@@ -52,13 +52,13 @@ import path2 from "node:path";
|
|
|
52
52
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
53
53
|
import { MessageChannel, Worker, parentPort, receiveMessageOnPort, workerData } from "node:worker_threads";
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/@pkgr+core@0.1.
|
|
55
|
+
// ../../node_modules/.pnpm/@pkgr+core@0.1.2/node_modules/@pkgr/core/lib/constants.js
|
|
56
56
|
import { createRequire } from "node:module";
|
|
57
57
|
var CWD = process.cwd();
|
|
58
58
|
var cjsRequire = typeof __require === "undefined" ? createRequire(import.meta.url) : __require;
|
|
59
59
|
var EXTENSIONS = [".ts", ".tsx", ...Object.keys(cjsRequire.extensions)];
|
|
60
60
|
|
|
61
|
-
// ../../node_modules/.pnpm/@pkgr+core@0.1.
|
|
61
|
+
// ../../node_modules/.pnpm/@pkgr+core@0.1.2/node_modules/@pkgr/core/lib/helpers.js
|
|
62
62
|
import fs from "node:fs";
|
|
63
63
|
import path from "node:path";
|
|
64
64
|
var tryPkg = (pkg) => {
|
|
@@ -68,13 +68,15 @@ var tryPkg = (pkg) => {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
var isPkgAvailable = (pkg) => !!tryPkg(pkg);
|
|
71
|
-
var tryFile = (
|
|
72
|
-
if (typeof
|
|
73
|
-
|
|
71
|
+
var tryFile = (filename, includeDir = false, base = CWD) => {
|
|
72
|
+
if (typeof filename === "string") {
|
|
73
|
+
const filepath = path.resolve(base, filename);
|
|
74
|
+
return fs.existsSync(filepath) && (includeDir || fs.statSync(filepath).isFile()) ? filepath : "";
|
|
74
75
|
}
|
|
75
|
-
for (const file of
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
for (const file of filename !== null && filename !== void 0 ? filename : []) {
|
|
77
|
+
const filepath = tryFile(file, includeDir, base);
|
|
78
|
+
if (filepath) {
|
|
79
|
+
return filepath;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
return "";
|
package/dist/node/cli/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
registerDevCommand,
|
|
5
5
|
run,
|
|
6
6
|
startValaxyDev
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-AP7OY5ZQ.js";
|
|
8
|
+
import "../../chunk-J2BOKDJT.js";
|
|
9
|
+
import "../../chunk-5DSTD5D3.js";
|
|
10
10
|
export {
|
|
11
11
|
cli,
|
|
12
12
|
registerDevCommand,
|
package/dist/node/index.js
CHANGED
|
@@ -51,9 +51,9 @@ import {
|
|
|
51
51
|
startValaxyDev,
|
|
52
52
|
toAtFS,
|
|
53
53
|
transformObject
|
|
54
|
-
} from "../chunk-
|
|
55
|
-
import "../chunk-
|
|
56
|
-
import "../chunk-
|
|
54
|
+
} from "../chunk-AP7OY5ZQ.js";
|
|
55
|
+
import "../chunk-J2BOKDJT.js";
|
|
56
|
+
import "../chunk-5DSTD5D3.js";
|
|
57
57
|
export {
|
|
58
58
|
ALL_ROUTE,
|
|
59
59
|
EXCERPT_SEPARATOR,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
runAsWorker
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-J2BOKDJT.js";
|
|
5
|
+
import "../chunk-5DSTD5D3.js";
|
|
6
6
|
|
|
7
7
|
// node/worker_shikiResolveLang.ts
|
|
8
8
|
import {
|
package/dist/types/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import {createRequire as __createRequire} from 'module';var require=__createRequire(import.meta.url);
|
|
2
|
-
import "../chunk-
|
|
2
|
+
import "../chunk-5DSTD5D3.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "valaxy",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.22.
|
|
4
|
+
"version": "0.22.17",
|
|
5
5
|
"description": "📄 Vite & Vue powered static blog generator.",
|
|
6
6
|
"author": {
|
|
7
7
|
"email": "me@yunyoujun.cn",
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
"@antfu/utils": "^9.1.0",
|
|
57
57
|
"@clack/prompts": "^0.10.0",
|
|
58
58
|
"@iconify-json/ri": "^1.2.5",
|
|
59
|
-
"@intlify/unplugin-vue-i18n": "^6.0.
|
|
59
|
+
"@intlify/unplugin-vue-i18n": "^6.0.5",
|
|
60
60
|
"@shikijs/transformers": "^3.2.1",
|
|
61
61
|
"@types/katex": "^0.16.7",
|
|
62
62
|
"@unhead/addons": "1",
|
|
63
63
|
"@unhead/schema-org": "1",
|
|
64
64
|
"@unhead/vue": "1",
|
|
65
|
-
"@vitejs/plugin-vue": "^5.2.
|
|
65
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
66
66
|
"@vue/devtools-api": "^7.7.2",
|
|
67
67
|
"@vueuse/core": "12.0.0-beta.1",
|
|
68
68
|
"@vueuse/integrations": "12.0.0-beta.1",
|
|
69
69
|
"beasties": "^0.2.0",
|
|
70
70
|
"birpc": "^2.2.0",
|
|
71
|
-
"consola": "^3.4.
|
|
71
|
+
"consola": "^3.4.2",
|
|
72
72
|
"cross-spawn": "^7.0.6",
|
|
73
73
|
"css-i18n": "^0.0.5",
|
|
74
74
|
"dayjs": "^1.11.13",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"js-base64": "^3.7.7",
|
|
89
89
|
"js-yaml": "^4.1.0",
|
|
90
90
|
"katex": "^0.16.21",
|
|
91
|
-
"lru-cache": "^11.0
|
|
91
|
+
"lru-cache": "^11.1.0",
|
|
92
92
|
"markdown-it": "^14.1.0",
|
|
93
93
|
"markdown-it-anchor": "^9.2.0",
|
|
94
94
|
"markdown-it-async": "^2.2.0",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"pinia": "^3.0.1",
|
|
111
111
|
"qrcode": "^1.5.4",
|
|
112
112
|
"resolve-global": "^2.0.0",
|
|
113
|
-
"sass": "^1.
|
|
113
|
+
"sass": "^1.86.0",
|
|
114
114
|
"shiki": "^3.2.1",
|
|
115
115
|
"star-markdown-css": "^0.5.3",
|
|
116
116
|
"table": "^6.9.0",
|
|
@@ -120,19 +120,19 @@
|
|
|
120
120
|
"unplugin-vue-markdown": "^28.3.1",
|
|
121
121
|
"unplugin-vue-router": "^0.12.0",
|
|
122
122
|
"vanilla-lazyload": "^19.1.3",
|
|
123
|
-
"vite": "^6.2.
|
|
123
|
+
"vite": "^6.2.3",
|
|
124
124
|
"vite-dev-rpc": "^1.0.7",
|
|
125
125
|
"vite-plugin-vue-devtools": "^7.7.2",
|
|
126
126
|
"vite-plugin-vue-layouts": "^0.11.0",
|
|
127
127
|
"vite-ssg": "^25.2.0",
|
|
128
128
|
"vite-ssg-sitemap": "^0.8.1",
|
|
129
|
-
"vitepress-plugin-group-icons": "^1.3.
|
|
129
|
+
"vitepress-plugin-group-icons": "^1.3.8",
|
|
130
130
|
"vue": "^3.5.13",
|
|
131
131
|
"vue-i18n": "^11.1.2",
|
|
132
132
|
"vue-router": "^4.5.0",
|
|
133
133
|
"yargs": "^17.7.2",
|
|
134
|
-
"@valaxyjs/devtools": "0.22.
|
|
135
|
-
"@valaxyjs/utils": "0.22.
|
|
134
|
+
"@valaxyjs/devtools": "0.22.17",
|
|
135
|
+
"@valaxyjs/utils": "0.22.17"
|
|
136
136
|
},
|
|
137
137
|
"devDependencies": {
|
|
138
138
|
"@mdit-vue/plugin-component": "^2.1.3",
|