@witchcraft/nuxt-logger 0.0.5 → 0.0.7
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/module.json +2 -2
- package/dist/runtime/composables/useLogger.d.ts +1 -1
- package/dist/runtime/electron/createElectronLoggerApi.d.ts +1 -1
- package/dist/runtime/electron/index.d.ts +4 -4
- package/dist/runtime/electron/receiveFromRendererOnMain.d.ts +1 -1
- package/dist/runtime/electron/wrapLoggerForElectron.d.ts +1 -1
- package/dist/runtime/server/utils/useServerLogger.d.ts +1 -1
- package/dist/runtime/shared/createUseLogger.d.ts +1 -1
- package/package.json +22 -22
package/dist/module.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const useLogger: ({ redirectTo, redirectAll }?: {
|
|
2
2
|
redirectTo?: "electron";
|
|
3
3
|
redirectAll?: boolean | ((level: keyof import("pino").Logger, data: any) => boolean);
|
|
4
|
-
}) => import("../shared/createUseLogger.js
|
|
4
|
+
}) => import("../shared/createUseLogger.js").BaseLogger;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { createElectronLoggerApi, type ElectronLoggerApi } from "./createElectronLoggerApi
|
|
2
|
-
export { useElectronLogger } from "./useElectronLogger
|
|
3
|
-
export { wrapLoggerForElectron } from "./wrapLoggerForElectron
|
|
4
|
-
export * from "./types
|
|
1
|
+
export { createElectronLoggerApi, type ElectronLoggerApi } from "./createElectronLoggerApi";
|
|
2
|
+
export { useElectronLogger } from "./useElectronLogger";
|
|
3
|
+
export { wrapLoggerForElectron } from "./wrapLoggerForElectron";
|
|
4
|
+
export * from "./types";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { useElectronLogger } from "./useElectronLogger.js
|
|
1
|
+
import type { useElectronLogger } from "./useElectronLogger.js";
|
|
2
2
|
export declare function receiveFromRendererOnMain(logger: ReturnType<typeof useElectronLogger>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const useServerLogger: ({ redirectTo, redirectAll }?: {
|
|
2
2
|
redirectTo?: "electron";
|
|
3
3
|
redirectAll?: boolean | ((level: keyof import("pino").Logger, data: any) => boolean);
|
|
4
|
-
}) => import("../../shared/createUseLogger.js
|
|
4
|
+
}) => import("../../shared/createUseLogger.js").BaseLogger;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { RuntimeConfig } from "nuxt/schema";
|
|
2
2
|
import { type Logger } from "pino";
|
|
3
|
-
import type { Levels } from "../types.js
|
|
3
|
+
import type { Levels } from "../types.js";
|
|
4
4
|
export type BaseLogger = Record<Levels, ((data: any) => void)> & {
|
|
5
5
|
flush: Logger["flush"];
|
|
6
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/nuxt-logger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Nuxt module for logging.",
|
|
5
5
|
"repository": "witchcraftjs/nuxt-logger",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"src"
|
|
26
26
|
],
|
|
27
27
|
"scripts": {
|
|
28
|
-
"prepare": "husky && cd playground && pnpm i",
|
|
28
|
+
"prepare": "husky && cd playground && pnpm i --ignore-scripts",
|
|
29
29
|
"build": "nuxt-module-build prepare && nuxt-module-build build && nuxi build playground",
|
|
30
30
|
"build:only": "nuxt-module-build build",
|
|
31
31
|
"dev": "nuxi dev playground",
|
|
@@ -41,30 +41,30 @@
|
|
|
41
41
|
"pino-pretty": "^11.2.2"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@alanscodelog/tsconfigs": "
|
|
45
|
-
"@alanscodelog/utils": "
|
|
46
|
-
"@nuxt/kit": "
|
|
44
|
+
"@alanscodelog/tsconfigs": "catalog:",
|
|
45
|
+
"@alanscodelog/utils": "catalog:",
|
|
46
|
+
"@nuxt/kit": "catalog:",
|
|
47
47
|
"defu": "latest",
|
|
48
|
-
"pino": "
|
|
49
|
-
"pino-pretty": "
|
|
48
|
+
"pino": "catalog:",
|
|
49
|
+
"pino-pretty": "catalog:"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@alanscodelog/eslint-config": "
|
|
53
|
-
"@alanscodelog/semantic-release-config": "
|
|
54
|
-
"@nuxt/eslint-config": "
|
|
55
|
-
"@nuxt/module-builder": "
|
|
56
|
-
"@nuxt/schema": "
|
|
57
|
-
"@nuxt/test-utils": "
|
|
52
|
+
"@alanscodelog/eslint-config": "catalog:",
|
|
53
|
+
"@alanscodelog/semantic-release-config": "catalog:",
|
|
54
|
+
"@nuxt/eslint-config": "catalog:",
|
|
55
|
+
"@nuxt/module-builder": "catalog:",
|
|
56
|
+
"@nuxt/schema": "catalog:",
|
|
57
|
+
"@nuxt/test-utils": "catalog:",
|
|
58
58
|
"@types/node": "latest",
|
|
59
|
-
"changelogen": "
|
|
60
|
-
"electron": "
|
|
61
|
-
"eslint": "
|
|
62
|
-
"husky": "
|
|
63
|
-
"nuxt": "
|
|
64
|
-
"semantic-release": "
|
|
65
|
-
"typescript": "
|
|
66
|
-
"vitest": "
|
|
67
|
-
"vue-tsc": "
|
|
59
|
+
"changelogen": "catalog:",
|
|
60
|
+
"electron": "catalog:",
|
|
61
|
+
"eslint": "catalog:",
|
|
62
|
+
"husky": "catalog:",
|
|
63
|
+
"nuxt": "catalog:",
|
|
64
|
+
"semantic-release": "catalog:",
|
|
65
|
+
"typescript": "catalog:",
|
|
66
|
+
"vitest": "catalog:",
|
|
67
|
+
"vue-tsc": "catalog:"
|
|
68
68
|
},
|
|
69
69
|
"release": {
|
|
70
70
|
"extends": [
|