@lntvow/vite-plugin 1.0.6 → 1.0.8
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/index.cjs +3 -3
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/package.json +4 -8
package/dist/index.cjs
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
33
|
vitePluginHtml: () => vitePluginHtml,
|
|
34
|
-
|
|
34
|
+
vitePluginLog: () => vitePluginLog
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(src_exports);
|
|
37
37
|
|
|
@@ -44,7 +44,7 @@ var import_timezone = __toESM(require("dayjs/plugin/timezone"), 1);
|
|
|
44
44
|
var import_utils = require("@lntvow/utils");
|
|
45
45
|
import_dayjs.default.extend(import_utc.default);
|
|
46
46
|
import_dayjs.default.extend(import_timezone.default);
|
|
47
|
-
function
|
|
47
|
+
function vitePluginLog(options = {}) {
|
|
48
48
|
const { name = "LNTVOW_VERSION" } = options;
|
|
49
49
|
let { version } = options;
|
|
50
50
|
if (!version) {
|
|
@@ -99,5 +99,5 @@ function vitePluginHtml() {
|
|
|
99
99
|
// Annotate the CommonJS export names for ESM import in node:
|
|
100
100
|
0 && (module.exports = {
|
|
101
101
|
vitePluginHtml,
|
|
102
|
-
|
|
102
|
+
vitePluginLog
|
|
103
103
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
-
declare function
|
|
4
|
-
interface
|
|
3
|
+
declare function vitePluginLog(options?: VitePluginLogOptions): Plugin;
|
|
4
|
+
interface VitePluginLogOptions {
|
|
5
5
|
/**
|
|
6
6
|
* @description localStorage key
|
|
7
7
|
* @default LNTVOW_VERSION
|
|
@@ -16,4 +16,4 @@ interface VitePluginLogsOptions {
|
|
|
16
16
|
|
|
17
17
|
declare function vitePluginHtml(): Plugin;
|
|
18
18
|
|
|
19
|
-
export { type
|
|
19
|
+
export { type VitePluginLogOptions, vitePluginHtml, vitePluginLog };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Plugin } from 'vite';
|
|
2
2
|
|
|
3
|
-
declare function
|
|
4
|
-
interface
|
|
3
|
+
declare function vitePluginLog(options?: VitePluginLogOptions): Plugin;
|
|
4
|
+
interface VitePluginLogOptions {
|
|
5
5
|
/**
|
|
6
6
|
* @description localStorage key
|
|
7
7
|
* @default LNTVOW_VERSION
|
|
@@ -16,4 +16,4 @@ interface VitePluginLogsOptions {
|
|
|
16
16
|
|
|
17
17
|
declare function vitePluginHtml(): Plugin;
|
|
18
18
|
|
|
19
|
-
export { type
|
|
19
|
+
export { type VitePluginLogOptions, vitePluginHtml, vitePluginLog };
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import timezone from "dayjs/plugin/timezone";
|
|
|
7
7
|
import { throwError } from "@lntvow/utils";
|
|
8
8
|
dayjs.extend(utc);
|
|
9
9
|
dayjs.extend(timezone);
|
|
10
|
-
function
|
|
10
|
+
function vitePluginLog(options = {}) {
|
|
11
11
|
const { name = "LNTVOW_VERSION" } = options;
|
|
12
12
|
let { version } = options;
|
|
13
13
|
if (!version) {
|
|
@@ -61,5 +61,5 @@ function vitePluginHtml() {
|
|
|
61
61
|
}
|
|
62
62
|
export {
|
|
63
63
|
vitePluginHtml,
|
|
64
|
-
|
|
64
|
+
vitePluginLog
|
|
65
65
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/vite-plugin",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "vite插件",
|
|
3
|
+
"version": "1.0.8",
|
|
5
4
|
"type": "module",
|
|
5
|
+
"description": "vite插件",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "lntvow",
|
|
8
8
|
"files": [
|
|
@@ -11,16 +11,12 @@
|
|
|
11
11
|
"main": "dist/index.cjs",
|
|
12
12
|
"module": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
|
-
"engines": {
|
|
15
|
-
"node": ">=18.12.0",
|
|
16
|
-
"pnpm": ">=9.0.0"
|
|
17
|
-
},
|
|
18
14
|
"dependencies": {
|
|
19
|
-
"@lntvow/utils": "^3.1.
|
|
15
|
+
"@lntvow/utils": "^3.1.7",
|
|
20
16
|
"dayjs": "^1.11.11"
|
|
21
17
|
},
|
|
22
18
|
"devDependencies": {
|
|
23
|
-
"@lntvow/dev": "^1.1
|
|
19
|
+
"@lntvow/dev": "^2.1.1",
|
|
24
20
|
"tsup": "^8.1.0"
|
|
25
21
|
},
|
|
26
22
|
"peerDependencies": {
|