@stackone/logger 0.1.6 → 0.1.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 ADDED
@@ -0,0 +1 @@
1
+ let e=function(e){return e[e.Trace=0]=`Trace`,e[e.Debug=1]=`Debug`,e[e.Info=2]=`Info`,e[e.Warning=3]=`Warning`,e[e.Error=4]=`Error`,e}({});exports.LogLevel=e;
@@ -77,4 +77,4 @@ type Log = {
77
77
  context?: Record<string, unknown>;
78
78
  };
79
79
  //#endregion
80
- export { ILogger, Log, LogError, LogLevel };
80
+ export { type ILogger, type Log, type LogError, LogLevel };
package/dist/index.d.mts CHANGED
@@ -77,4 +77,4 @@ type Log = {
77
77
  context?: Record<string, unknown>;
78
78
  };
79
79
  //#endregion
80
- export { ILogger, Log, LogError, LogLevel };
80
+ export { type ILogger, type Log, type LogError, LogLevel };
package/dist/index.mjs CHANGED
@@ -1,12 +1 @@
1
- //#region src/types.ts
2
- let LogLevel = /* @__PURE__ */ function(LogLevel$1) {
3
- LogLevel$1[LogLevel$1["Trace"] = 0] = "Trace";
4
- LogLevel$1[LogLevel$1["Debug"] = 1] = "Debug";
5
- LogLevel$1[LogLevel$1["Info"] = 2] = "Info";
6
- LogLevel$1[LogLevel$1["Warning"] = 3] = "Warning";
7
- LogLevel$1[LogLevel$1["Error"] = 4] = "Error";
8
- return LogLevel$1;
9
- }({});
10
-
11
- //#endregion
12
- export { LogLevel };
1
+ let e=function(e){return e[e.Trace=0]=`Trace`,e[e.Debug=1]=`Debug`,e[e.Info=2]=`Info`,e[e.Warning=3]=`Warning`,e[e.Error=4]=`Error`,e}({});export{e as LogLevel};
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@stackone/logger",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
- "types": "dist/index.d.ts",
7
+ "types": "dist/index.d.cts",
8
8
  "files": [
9
9
  "dist",
10
10
  "package.json",
@@ -12,16 +12,16 @@
12
12
  ],
13
13
  "exports": {
14
14
  ".": {
15
- "types": "./dist/index.d.ts",
15
+ "types": "./dist/index.d.cts",
16
16
  "import": "./dist/index.mjs",
17
- "require": "./dist/index.js"
17
+ "require": "./dist/index.cjs"
18
18
  },
19
19
  "./package.json": "./package.json"
20
20
  },
21
21
  "scripts": {
22
22
  "clean": "rimraf dist",
23
23
  "prebuild": "npm run clean",
24
- "build": "tsdown --env.NODE_ENV=production",
24
+ "build": "tsdown --env.NODE_ENV=production --minify",
25
25
  "prebuild:dev": "npm run clean",
26
26
  "build:dev": "tsdown --env.NODE_ENV=development",
27
27
  "code:format": "biome format ./src ./*.mjs",
@@ -34,15 +34,13 @@
34
34
  "lint:fix": "npm run code:check:fix",
35
35
  "test": "FORCE_COLOR=1 vitest run",
36
36
  "test:watch": "FORCE_COLOR=1 vitest watch --silent",
37
+ "test:typecheck": "tsc --noEmit --project tsconfig.tests.json",
37
38
  "publish-release": "npm publish --access=public"
38
39
  },
39
40
  "keywords": [],
40
41
  "author": "StackOne",
41
42
  "license": "ISC",
42
43
  "dependencies": {},
43
- "devDependencies": {
44
- "tsdown": "^0.12.9"
45
- },
46
44
  "tsdown": {
47
45
  "dts": true,
48
46
  "format": [
@@ -50,4 +48,4 @@
50
48
  "cjs"
51
49
  ]
52
50
  }
53
- }
51
+ }
package/dist/index.js DELETED
@@ -1,13 +0,0 @@
1
-
2
- //#region src/types.ts
3
- let LogLevel = /* @__PURE__ */ function(LogLevel$1) {
4
- LogLevel$1[LogLevel$1["Trace"] = 0] = "Trace";
5
- LogLevel$1[LogLevel$1["Debug"] = 1] = "Debug";
6
- LogLevel$1[LogLevel$1["Info"] = 2] = "Info";
7
- LogLevel$1[LogLevel$1["Warning"] = 3] = "Warning";
8
- LogLevel$1[LogLevel$1["Error"] = 4] = "Error";
9
- return LogLevel$1;
10
- }({});
11
-
12
- //#endregion
13
- exports.LogLevel = LogLevel;