@jaypie/logger 1.1.0

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.
@@ -0,0 +1,8 @@
1
+ interface Pipeline {
2
+ key: string;
3
+ filter: (value: unknown) => unknown;
4
+ }
5
+ export declare const axiosResponseVarPipeline: Pipeline;
6
+ export declare const errorVarPipeline: Pipeline;
7
+ export declare const pipelines: Pipeline[];
8
+ export {};
@@ -0,0 +1,11 @@
1
+ export declare function forceString(value: unknown, defaultValue?: string): string;
2
+ export declare function formatAsJsonString(subject: unknown): string;
3
+ export declare function stringify(...params: unknown[]): string;
4
+ export declare function out(line: string | unknown, { level }?: {
5
+ level?: string;
6
+ }): void;
7
+ export declare function parse(message: unknown): unknown;
8
+ export declare function parsesTo(message: unknown): {
9
+ parses: boolean;
10
+ message: unknown;
11
+ };
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@jaypie/logger",
3
+ "version": "1.1.0",
4
+ "description": "Logger utilities for Jaypie applications",
5
+ "license": "MIT",
6
+ "author": "Finlayson Studio",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/esm/index.d.ts",
11
+ "import": "./dist/esm/index.js",
12
+ "require": "./dist/cjs/index.cjs"
13
+ }
14
+ },
15
+ "main": "./dist/cjs/index.cjs",
16
+ "module": "./dist/esm/index.js",
17
+ "types": "./dist/esm/index.d.ts",
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "scripts": {
22
+ "build": "rollup --config",
23
+ "format": "eslint . --fix",
24
+ "lint": "eslint .",
25
+ "test": "vitest run .",
26
+ "test:watch": "vitest"
27
+ },
28
+ "devDependencies": {
29
+ "@rollup/plugin-typescript": "^12.1.2",
30
+ "@types/node": "^22.13.1",
31
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
32
+ "@typescript-eslint/parser": "^8.18.2",
33
+ "eslint-config-prettier": "^10.0.1",
34
+ "eslint-plugin-prettier": "^5.2.1",
35
+ "eslint-plugin-vitest": "^0.5.4",
36
+ "rollup": "^4.12.0",
37
+ "typescript": "^5.3.3",
38
+ "typescript-eslint": "^8.18.2",
39
+ "vitest": "^3.0.5"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ }
44
+ }