@lntvow/vite-plugin 1.0.7 → 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 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
- vitePluginLogs: () => vitePluginLogs
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 vitePluginLogs(options = {}) {
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
- vitePluginLogs
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 vitePluginLogs(options?: VitePluginLogsOptions): Plugin;
4
- interface VitePluginLogsOptions {
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 VitePluginLogsOptions, vitePluginHtml, vitePluginLogs };
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 vitePluginLogs(options?: VitePluginLogsOptions): Plugin;
4
- interface VitePluginLogsOptions {
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 VitePluginLogsOptions, vitePluginHtml, vitePluginLogs };
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 vitePluginLogs(options = {}) {
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
- vitePluginLogs
64
+ vitePluginLog
65
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lntvow/vite-plugin",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "description": "vite插件",
6
6
  "license": "MIT",