Socket
Socket
Sign inDemoInstall

@slack/client

Package Overview
Dependencies
30
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.12.0 to 5.0.0

dist/index.d.ts.map

22

dist/index.d.ts

@@ -1,9 +0,13 @@

export { Logger, LoggingFunc, LogLevel, } from './logger';
export { CodedError, ErrorCode, } from './errors';
export { addAppMetadata, AgentOption, TLSOptions, } from './util';
export { default as retryPolicies, RetryOptions, } from './retry-policies';
export { WebClient, WebClientOptions, WebAPICallOptions, WebAPICallResult, WebAPIPlatformError, WebAPIRequestError, WebAPIReadError, // NOTE: this is no longer used, but might once again be used if a more specific means to detect it
WebAPIHTTPError, WebAPIRateLimitedError, WebAPIRefreshFailedError, WebAPICallError, WebAPIResultCallback, TokenRefreshedEvent, } from './WebClient';
export * from './methods';
export { RTMClient, RTMClientOptions, RTMCallResult, RTMPlatformError, RTMWebsocketError, RTMCallError, RTMCallResultCallback, } from './RTMClient';
export { IncomingWebhook, IncomingWebhookSendArguments, IncomingWebhookDefaultArguments, IncomingWebhookResult, IncomingWebhookResultCallback, } from './IncomingWebhook';
export { Logger, LogLevel, } from '@slack/logger';
export * from '@slack/web-api';
export { ErrorCode as WebAPIErrorCode } from '@slack/web-api';
export { RTMClient, RTMClientOptions, RTMStartOptions, RTMCallResult, RTMPlatformError, RTMWebsocketError, RTMCallError, RTMNoReplyReceivedError, RTMSendWhileDisconnectedError, RTMSendWhileNotReadyError, } from '@slack/rtm-api';
export { ErrorCode as RTMAPIErrorCode } from '@slack/rtm-api';
export { IncomingWebhook, IncomingWebhookSendArguments, IncomingWebhookDefaultArguments, IncomingWebhookResult, IncomingWebhookRequestError, IncomingWebhookHTTPError, IncomingWebhookSendError, } from '@slack/webhook';
export { ErrorCode as WebhookErrorCode } from '@slack/webhook';
export * from '@slack/types';
import { ErrorCode as WebAPIErrorCode } from '@slack/web-api';
import { ErrorCode as RTMAPIErrorCode } from '@slack/rtm-api';
import { ErrorCode as WebhookErrorCode } from '@slack/webhook';
export declare const ErrorCode: typeof WebAPIErrorCode & typeof RTMAPIErrorCode & typeof WebhookErrorCode;
//# sourceMappingURL=index.d.ts.map

@@ -6,17 +6,38 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var logger_1 = require("./logger");
var logger_1 = require("@slack/logger");
exports.LogLevel = logger_1.LogLevel;
var errors_1 = require("./errors");
exports.ErrorCode = errors_1.ErrorCode;
var util_1 = require("./util");
exports.addAppMetadata = util_1.addAppMetadata;
var retry_policies_1 = require("./retry-policies");
exports.retryPolicies = retry_policies_1.default;
var WebClient_1 = require("./WebClient");
exports.WebClient = WebClient_1.WebClient;
__export(require("./methods"));
var RTMClient_1 = require("./RTMClient");
exports.RTMClient = RTMClient_1.RTMClient;
var IncomingWebhook_1 = require("./IncomingWebhook");
exports.IncomingWebhook = IncomingWebhook_1.IncomingWebhook;
// Using a wildcard (*) export because listing each individual method is cumbersome and hard to keep up to date.
// The following export contains:
// addAppMetadata,
// TLSOptions,
// retryPolicies,
// RetryOptions,
// WebClient,
// WebClientOptions,
// WebAPICallOptions,
// WebAPICallResult,
// WebAPIPlatformError,
// WebAPIRequestError,
// WebAPIHTTPError,
// WebAPIRateLimitedError,
// WebAPICallError,
// WebClientEvent,
// and all method definitions
__export(require("@slack/web-api"));
var web_api_1 = require("@slack/web-api");
exports.WebAPIErrorCode = web_api_1.ErrorCode;
var rtm_api_1 = require("@slack/rtm-api");
exports.RTMClient = rtm_api_1.RTMClient;
var rtm_api_2 = require("@slack/rtm-api");
exports.RTMAPIErrorCode = rtm_api_2.ErrorCode;
var webhook_1 = require("@slack/webhook");
exports.IncomingWebhook = webhook_1.IncomingWebhook;
var webhook_2 = require("@slack/webhook");
exports.WebhookErrorCode = webhook_2.ErrorCode;
// Merge the two ErrorCode constants into one, to make this as similar to @slack/client@4 as possible
const web_api_2 = require("@slack/web-api");
const rtm_api_3 = require("@slack/rtm-api");
const webhook_3 = require("@slack/webhook");
// tslint:disable-next-line:variable-name
exports.ErrorCode = Object.assign({}, web_api_2.ErrorCode, rtm_api_3.ErrorCode, webhook_3.ErrorCode);
//# sourceMappingURL=index.js.map
{
"name": "@slack/client",
"version": "4.12.0",
"description": "Slack Developer Kit - official clients for the Web API, RTM API, and Incoming Webhooks",
"version": "5.0.0",
"description": "Legacy wrapper for official Slack Platform's Web API, RTM API, and Incoming Webhook libraries. Use @slack/web-api, @slack/rtm-api, or @slack/webhook instead.",
"author": "Slack Technologies, Inc.",

@@ -12,9 +12,14 @@ "license": "MIT",

"bot",
"chatbot",
"client",
"http",
"websockets",
"api"
"websocket",
"request",
"api",
"proxy",
"rate-limiting",
"pagination",
"state",
"connection"
],
"main": "./dist/index.js",
"main": "dist/index.js",
"types": "./dist/index.d.ts",

@@ -25,6 +30,10 @@ "files": [

"engines": {
"node": ">= 6.9.0",
"npm": ">= 3.10.8"
"node": ">= 8.9.0",
"npm": ">= 5.5.1"
},
"repository": "slackapi/node-slack-sdk",
"homepage": "https://slack.dev/node-slack-sdk/tutorials/migrating_to_v5/",
"publishConfig": {
"access": "public"
},
"bugs": {

@@ -34,67 +43,22 @@ "url": "https://github.com/slackapi/node-slack-sdk/issues"

"scripts": {
"prepublish": "npm run build",
"prepare": "npm run build",
"build": "npm run build:clean && tsc",
"build:clean": "shx rm -rf ./dist",
"lint": "tslint --project .",
"test": "npm run build && npm run test:spec && npm run test:integration",
"test:spec": "nyc mocha --config src/.mocharc.json src/*.spec.js src/**/*.spec.js",
"test:integration": "mocha --config test/.mocharc.json test/typescript/test.ts test/proxy/test.js",
"coverage": "codecov",
"build": "npm run build:clean && tsc",
"build:clean": "shx rm -rf ./dist ./coverage ./.nyc_output",
"docs": "node support/jsdoc-to-markdown.js",
"docs:jsdoc": "ts2jsdoc"
"test": "npm run build && echo \"Tests are not implemented.\" && exit 0"
},
"husky": {
"pre-push": "npm run build",
"pre-commit": "lint-staged"
},
"dependencies": {
"@types/form-data": "^2.2.1",
"@types/is-stream": "^1.1.0",
"@types/node": ">=6.0.0",
"@types/p-cancelable": "^1.0.0",
"@types/p-queue": "^2.3.2",
"@types/p-retry": "^3.0.0",
"@types/retry": "^0.12.0",
"@types/ws": "^5.1.1",
"axios": "^0.18.0",
"eventemitter3": "^3.1.0",
"finity": "^0.5.4",
"form-data": "^2.3.3",
"is-stream": "^1.1.0",
"object.entries": "^1.1.0",
"object.getownpropertydescriptors": "^2.0.3",
"object.values": "^1.1.0",
"p-cancelable": "~1.0.0",
"p-queue": "^2.4.2",
"p-retry": "^3.0.1",
"retry": "^0.12.0",
"ws": "^5.2.0"
"@slack/logger": "^1.0.0",
"@slack/rtm-api": "^5.0.0",
"@slack/types": "^1.0.0",
"@slack/web-api": "^5.0.0",
"@slack/webhook": "^5.0.0"
},
"devDependencies": {
"@aoberoi/capture-console": "^1.1.0",
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.6",
"busboy": "^0.3.0",
"chai": "^4.2.0",
"codecov": "^3.2.0",
"http-shutdown": "^1.2.0",
"https-proxy-agent": "^2.2.1",
"husky": "^1.3.1",
"jsdoc-to-markdown": "^4.0.1",
"lint-staged": "^7.3.0",
"mocha": "^6.0.2",
"nock": "^10.0.6",
"nyc": "^13.3.0",
"p-is-promise": "^2.0.0",
"proxy": "^0.2.4",
"shx": "^0.3.2",
"sinon": "^7.2.7",
"source-map-support": "^0.5.10",
"ts-jsdoc": "^3.0.1",
"ts-node": "^8.0.3",
"tslint": "^5.13.1",
"tslint-config-airbnb": "^5.11.1",
"typescript": "^2.7.1",
"typings-tester": "^0.3.2"
}
"typescript": "^3.3.3333"
},
"gitHead": "891307eb5f1625f68b72e4c242ba749a7d6cb996"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc