This commit is contained in:
2024-09-09 04:04:04 +02:00
parent a07df70d8d
commit 8c8c69f4db
2 changed files with 13 additions and 13 deletions
+12 -9
View File
@@ -2,16 +2,11 @@
"name": "libcrypto",
"description": "Various crypto utils for encryption, signature, ...",
"version": "1.0.0",
"author": "Pascal Perrenoud <pascal@pband.ch>",
"module": "index.ts",
"type": "module",
"files": ["index.ts", "src"],
"scripts": {
"test": "bun test"
"fmt": "prettier --config .prettierrc '**/*.ts' --write",
"test": "bun test",
"fmt": "prettier --config .prettierrc '**/*.ts' --write"
},
"dependencies": {
@@ -23,6 +18,14 @@
"devDependencies": {
"@happy-dom/global-registrator": "^14.10.2",
"@types/bun": "^1.1.2",
"logger-console": "git+https://git.pband.ch/typescript/logger-console.git"
}
"logger-console": "git+https://git.pband.ch/typescript/logger-console.git",
"prettier": "^3.3.3"
},
"module": "index.ts",
"type": "module",
"files": [
"index.ts",
"src"
]
}
+1 -4
View File
@@ -1,8 +1,5 @@
import {GlobalRegistrator} from '@happy-dom/global-registrator'
import {Console} from 'logger-console'
import {writers, Level} from 'log'
GlobalRegistrator.register()
const logger = new Console({ minLevel: Level.DEBUG, with_color: true })
const logger = new Console({minLevel: Level.TRACE, with_color: true})
writers.set('console', logger)