@erisa/logger
Advanced tools
Comparing version 0.0.2 to 0.0.3-0
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const turbocolor_1 = __importDefault(require("turbocolor")); | ||
const colorette_1 = require("colorette"); | ||
/** | ||
@@ -27,12 +24,12 @@ * Register's a logger under Erisa, and optionally makes default listeners. | ||
error: { | ||
tagText: turbocolor_1.default.bgRed('[ERROR]'), | ||
textFunc: str => turbocolor_1.default.red.bold(str) | ||
tagText: colorette_1.bgRed('[ERROR]'), | ||
textFunc: str => colorette_1.red(colorette_1.bold(str)) | ||
}, | ||
warn: { | ||
tagText: turbocolor_1.default.black.bgYellow('[WARN]'), | ||
textFunc: str => turbocolor_1.default.yellow.bold(str) | ||
tagText: colorette_1.black(colorette_1.bgYellow('[WARN]')), | ||
textFunc: str => colorette_1.yellow(colorette_1.bold(str)) | ||
}, | ||
info: { | ||
tagText: turbocolor_1.default.black.bgGreen('[INFO]'), | ||
textFunc: str => turbocolor_1.default.green.bold(str) | ||
tagText: colorette_1.black(colorette_1.bgGreen('[INFO]')), | ||
textFunc: str => colorette_1.green(colorette_1.bold(str)) | ||
} | ||
@@ -39,0 +36,0 @@ } |
14
index.ts
import {Erisa, MiddlewareHandler} from 'erisa'; | ||
import tc from 'turbocolor'; | ||
import {bgRed, red, bold, black, bgYellow, yellow, bgGreen, green} from 'colorette'; | ||
@@ -30,12 +30,12 @@ type DefaultListeners = 'ready' | 'error' | 'warn' | 'guildCreate' | 'guildDelete'; | ||
error: { | ||
tagText: tc.bgRed('[ERROR]'), | ||
textFunc: str => tc.red.bold(str) | ||
tagText: bgRed('[ERROR]'), | ||
textFunc: str => red(bold(str)) | ||
}, | ||
warn: { | ||
tagText: tc.black.bgYellow('[WARN]'), | ||
textFunc: str => tc.yellow.bold(str) | ||
tagText: black(bgYellow('[WARN]')), | ||
textFunc: str => yellow(bold(str)) | ||
}, | ||
info: { | ||
tagText: tc.black.bgGreen('[INFO]'), | ||
textFunc: str => tc.green.bold(str) | ||
tagText: black(bgGreen('[INFO]')), | ||
textFunc: str => green(bold(str)) | ||
} | ||
@@ -42,0 +42,0 @@ } as {[x: string]: LoggerLevel} |
{ | ||
"name": "@erisa/logger", | ||
"version": "0.0.2", | ||
"description": "The default logging module for Erisa.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/Ovyerus/erisa", | ||
"author": "Ovyerus <iamovyerus@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"lint": "tslint -p . -c ../../tslint.json", | ||
"compile": "tsc -p .", | ||
"clean": "rimraf dist", | ||
"build": "npm run clean && npm run compile", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"rimraf": "^2.6.2", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.0.1" | ||
}, | ||
"peerDependencies": { | ||
"erisa": "^0.0.2" | ||
}, | ||
"dependencies": { | ||
"turbocolor": "^2.4.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
"name": "@erisa/logger", | ||
"version": "0.0.3-0", | ||
"description": "The default logging module for Erisa.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/erisaaa/logger", | ||
"author": "Ovyerus <iamovyerus@gmail.com>", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "mocha", | ||
"coverage": "nyc mocha", | ||
"lint": "tslint -p . -c tslint.json", | ||
"compile": "tsc -p .", | ||
"clean": "rimraf dist", | ||
"build": "npm run clean && npm run compile", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.1.6", | ||
"@types/mocha": "^5.2.5", | ||
"@types/node": "^10.11.7", | ||
"chai": "^4.2.0", | ||
"erisa": "^0.0.3", | ||
"mocha": "^5.2.0", | ||
"nyc": "^13.0.1", | ||
"rimraf": "^2.6.2", | ||
"source-map-support": "^0.5.9", | ||
"test-console": "^1.1.0", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"typescript": "^3.1.3" | ||
}, | ||
"peerDependencies": { | ||
"erisa": "^0.0.3" | ||
}, | ||
"dependencies": { | ||
"colorette": "^1.0.5" | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"index.ts" | ||
], | ||
"exclude": [ | ||
"test/**/*.test.ts" | ||
], | ||
"extension": [ | ||
".ts" | ||
], | ||
"require": [ | ||
"ts-node/register" | ||
], | ||
"reporter": [ | ||
"text-summary", | ||
"html", | ||
"lcov" | ||
], | ||
"sourceMap": true, | ||
"instrument": true | ||
} | ||
} |
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es6", | ||
"lib": ["esnext"], | ||
"module": "commonjs", | ||
"allowSyntheticDefaultImports": true, | ||
"strictNullChecks": true, | ||
"esModuleInterop": true, | ||
"outDir": "dist/", | ||
"declaration": true | ||
}, | ||
"include": [ | ||
"index.ts", | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"dist" | ||
"files": [ | ||
"index.ts" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
36568
22
596
1
71
13
1
+ Addedcolorette@^1.0.5
+ Addedcolorette@1.4.0(transitive)
+ Addederisa@0.0.3(transitive)
- Removedturbocolor@^2.4.1
- Removederisa@0.0.2(transitive)
- Removedturbocolor@2.6.1(transitive)