Socket
Socket
Sign inDemoInstall

@tsed/logger-slack

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsed/logger-slack - npm Package Compare versions

Comparing version 6.0.2 to 6.1.0

lib/cjs/index.js

26

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc