@tsed/logger-slack
Advanced tools
Comparing version 6.0.2 to 6.1.0
{ | ||
"name": "@tsed/logger-slack", | ||
"version": "6.0.2", | ||
"version": "6.1.0", | ||
"description": "Slack appender module for @tsed/logger", | ||
"source": "./src/index.ts", | ||
"main": "./lib/index.js", | ||
"typings": "./lib/index.d.ts", | ||
"main": "./lib/cjs/index.js", | ||
"module": "./lib/esm/index.js", | ||
"typings": "./lib/types/index.d.ts", | ||
"exports": { | ||
"require": "./lib/index.js", | ||
"default": "./lib/index.modern.js" | ||
"types": "./lib/types/index.d.ts", | ||
"import": "./lib/esm/index.js", | ||
"require": "./lib/cjs/index.js", | ||
"default": "./lib/esm/index.js" | ||
}, | ||
"scripts": { | ||
"build": "yarn barrels && yarn run build:esm && yarn run build:cjs", | ||
"build:cjs": "tsc --build tsconfig.compile.json", | ||
"build:esm": "tsc --build tsconfig.compile.esm.json", | ||
"barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\" -e \"__mock__\" -e \".benchmark.ts\"" | ||
}, | ||
"private": false, | ||
@@ -27,6 +36,3 @@ "author": "Romain Lenzotti", | ||
}, | ||
"homepage": "https://github.com/tsedio/logger/tree/production//packages/slack", | ||
"scripts": { | ||
"build": "microbundle --target node --no-compress --format modern,cjs --tsconfig ./tsconfig.compile.json" | ||
}, | ||
"homepage": "https://github.com/tsedio/logger/tree/production/packages/slack", | ||
"dependencies": { | ||
@@ -37,3 +43,3 @@ "@slack/web-api": "^6.2.3", | ||
"devDependencies": { | ||
"@tsed/logger": "6.0.2" | ||
"@tsed/logger": "6.1.0" | ||
}, | ||
@@ -40,0 +46,0 @@ "peerDependencies": { |
@@ -20,3 +20,3 @@ # @tsed/logger-slack | ||
Sends log events to a [slack](https://slack.com) channel. | ||
Sends log events to a [slack](https://slack.com) channel. | ||
@@ -31,7 +31,7 @@ ## Installation | ||
* `type` - `slack` | ||
* `options.token` - `string` - your Slack API token (see the slack and slack-node docs) | ||
* `options.channel_id` - `string` - the channel to send log messages | ||
* `options.icon_url` - `string` (optional) - the icon to use for the message | ||
* `options.username` - `string` - the username to display with the message | ||
- `type` - `slack` | ||
- `options.token` - `string` - your Slack API token (see the slack and slack-node docs) | ||
- `options.channel_id` - `string` - the channel to send log messages | ||
- `options.icon_url` - `string` (optional) - the icon to use for the message | ||
- `options.username` - `string` - the username to display with the message | ||
@@ -47,3 +47,3 @@ ## Example | ||
logger.appenders.set("stdout", { | ||
type: "slack", | ||
type: "slack", | ||
level: ["error"], | ||
@@ -64,3 +64,2 @@ options: { | ||
## Sponsors | ||
@@ -67,0 +66,0 @@ |
@@ -0,1 +1,5 @@ | ||
/** | ||
* @file Automatically generated by barrelsby. | ||
*/ | ||
export * from "./SlackAppender"; |
@@ -22,4 +22,3 @@ import {Appender, BaseAppender, LogEvent} from "@tsed/logger"; | ||
} | ||
} | ||
catch (err) { | ||
} catch (err) { | ||
console.error("Ts.ED Logger:slack - Error sending log to slack: ", err); | ||
@@ -26,0 +25,0 @@ } |
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
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
13106
17
121
76
1