@murky-web/simplelog 0.1.0 → 1.0.1
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/README.md +78 -34
- package/dist/bun_logger.d.ts.map +1 -1
- package/dist/deno_logger.d.ts.map +1 -1
- package/dist/hono_middleware.d.ts.map +1 -1
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger_factory.d.ts +1 -0
- package/dist/logger_factory.d.ts.map +1 -1
- package/dist/logger_factory.js +7 -3
- package/dist/logger_factory.js.map +1 -1
- package/dist/web_logger.d.ts.map +1 -1
- package/oxlint/index.mjs +26 -0
- package/oxlint/no-ad-hoc-console-fallback.mjs +65 -0
- package/oxlint/no-console-alias.mjs +69 -0
- package/oxlint/prefer-child-logger.mjs +77 -0
- package/oxlint/prefer-hono-context-logger.mjs +113 -0
- package/oxlint/prefer-runtime-entry.mjs +50 -0
- package/oxlint/prefer-simplelog.mjs +64 -0
- package/oxlint/require-logger-name.mjs +85 -0
- package/oxlint/utils.mjs +211 -0
- package/package.json +74 -68
package/package.json
CHANGED
|
@@ -1,76 +1,82 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./dist/logger.js",
|
|
11
|
-
"types": "./dist/logger.d.ts"
|
|
2
|
+
"name": "@murky-web/simplelog",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "A simple wrapper around console to make logging enjoyable again",
|
|
6
|
+
"homepage": "https://github.com/MurkyTheMurloc/web_dev_tools/tree/main/packages/simplelog",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/MurkyTheMurloc/web_dev_tools/issues"
|
|
12
9
|
},
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/MurkyTheMurloc/web_dev_tools.git",
|
|
14
|
+
"directory": "packages/simplelog"
|
|
16
15
|
},
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"oxlint"
|
|
19
|
+
],
|
|
20
|
+
"type": "module",
|
|
21
|
+
"sideEffects": false,
|
|
22
|
+
"main": "./dist/logger.js",
|
|
23
|
+
"module": "./dist/logger.js",
|
|
24
|
+
"types": "./dist/logger.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./dist/logger.js",
|
|
28
|
+
"types": "./dist/logger.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./oxlint": {
|
|
31
|
+
"import": "./oxlint/index.mjs",
|
|
32
|
+
"default": "./oxlint/index.mjs"
|
|
33
|
+
},
|
|
34
|
+
"./bun": {
|
|
35
|
+
"import": "./dist/bun_logger.js",
|
|
36
|
+
"types": "./dist/bun_logger.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./deno": {
|
|
39
|
+
"import": "./dist/deno_logger.js",
|
|
40
|
+
"types": "./dist/deno_logger.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./hono": {
|
|
43
|
+
"import": "./dist/hono_middleware.js",
|
|
44
|
+
"types": "./dist/hono_middleware.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./node": {
|
|
47
|
+
"import": "./dist/logger.js",
|
|
48
|
+
"types": "./dist/logger.d.ts"
|
|
49
|
+
},
|
|
50
|
+
"./web": {
|
|
51
|
+
"import": "./dist/web_logger.js",
|
|
52
|
+
"types": "./dist/web_logger.d.ts"
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
20
55
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"access": "public",
|
|
58
|
+
"provenance": true
|
|
24
59
|
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "bun run clean && tsdown",
|
|
62
|
+
"clean": "rm -rf dist",
|
|
63
|
+
"lint": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.json --type-aware src tsdown.config.ts",
|
|
64
|
+
"lint:fix": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.json --type-aware --fix src tsdown.config.ts",
|
|
65
|
+
"format": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc src oxlint smoke tsdown.config.ts",
|
|
66
|
+
"format:check": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc --check src oxlint smoke tsdown.config.ts",
|
|
67
|
+
"smoke:oxlint": "bun ./smoke/oxlint/run-smoke.ts",
|
|
68
|
+
"test": "vitest run",
|
|
69
|
+
"typecheck": "tsgo --project ./tsconfig.json --noEmit"
|
|
28
70
|
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
"types": "./dist/web_logger.d.ts"
|
|
71
|
+
"dependencies": {
|
|
72
|
+
"@opentelemetry/api": "^1.9.0"
|
|
32
73
|
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"lint": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.json --type-aware src tsdown.config.ts",
|
|
42
|
-
"lint:fix": "oxlint -c ./.oxlintrc.jsonc --tsconfig ./tsconfig.json --type-aware --fix src tsdown.config.ts",
|
|
43
|
-
"format": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc src tsdown.config.ts",
|
|
44
|
-
"format:check": "oxfmt -c ../config/oxc/.oxfmtrc.jsonc --check src tsdown.config.ts",
|
|
45
|
-
"test": "vitest run",
|
|
46
|
-
"typecheck": "tsgo --project ./tsconfig.json --noEmit"
|
|
47
|
-
},
|
|
48
|
-
"license": "MIT",
|
|
49
|
-
"description": "A simple wrapper around console to make logging enjoyable again",
|
|
50
|
-
"type": "module",
|
|
51
|
-
"sideEffects": false,
|
|
52
|
-
"repository": {
|
|
53
|
-
"type": "git",
|
|
54
|
-
"url": "git+https://github.com/MurkyTheMurloc/web_dev_tools.git",
|
|
55
|
-
"directory": "packages/simplelog"
|
|
56
|
-
},
|
|
57
|
-
"homepage": "https://github.com/MurkyTheMurloc/web_dev_tools/tree/main/packages/simplelog",
|
|
58
|
-
"bugs": {
|
|
59
|
-
"url": "https://github.com/MurkyTheMurloc/web_dev_tools/issues"
|
|
60
|
-
},
|
|
61
|
-
"publishConfig": {
|
|
62
|
-
"access": "public",
|
|
63
|
-
"provenance": true
|
|
64
|
-
},
|
|
65
|
-
"dependencies": {
|
|
66
|
-
"@opentelemetry/api": "^1.9.0"
|
|
67
|
-
},
|
|
68
|
-
"devDependencies": {
|
|
69
|
-
"@murky-web/config": "workspace:*",
|
|
70
|
-
"@types/node": "^25.5.0",
|
|
71
|
-
"hono": "^4.12.8"
|
|
72
|
-
},
|
|
73
|
-
"peerDependencies": {
|
|
74
|
-
"hono": "^4.12.8"
|
|
75
|
-
}
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@murky-web/config": "workspace:*",
|
|
76
|
+
"@types/node": "^25.5.0",
|
|
77
|
+
"hono": "^4.12.8"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"hono": "^4.12.8"
|
|
81
|
+
}
|
|
76
82
|
}
|