Skip to content

Commit

Permalink
remove stackdriver reference
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed Aug 30, 2021
1 parent c77166a commit eefd2cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ and reusable Slack code declaratively and ready for production.
- Used in many production workloads.
- Building blocks with [slack-block-builder].
- Supports sending messages directly to Slack Web API.
- Supports Google Stackdriver (Logger).
- Supports Google Logging.
- Zero dependencies (there are `peerDependencies`)

[slack-block-builder]: https://github.com/raycharius/slack-block-builder
Expand Down
9 changes: 2 additions & 7 deletions src/slack.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface SlackApiOptions {
clientOptions?: WebClientOptions;
}

export type SlackRequestType = 'api' | 'stdout' | 'stackdriver' | 'google';
export type SlackRequestType = 'api' | 'stdout' | 'google';

export interface SlackConfig {
/**
Expand Down Expand Up @@ -54,7 +54,7 @@ export interface SlackConfig {
/**
* Setting this changes which function is used to stdout.
*
* Only used for types `stdout` and `stackdriver`
* Only used for types `stdout`
*/
output?: (out: unknown) => void;

Expand All @@ -75,11 +75,6 @@ export class SlackModule {
...opts,
};

// Type `stackdriver` has changed to `google`
if (options.type === 'stackdriver') {
options.type = 'google';
}

const providers = [
{
provide: SLACK_MODULE_OPTIONS,
Expand Down

0 comments on commit eefd2cc

Please sign in to comment.