Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@slack/webhook

Package Overview
Dependencies
Maintainers
10
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slack/webhook - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

6

dist/errors.d.ts
/// <reference types="node" />
import { AxiosError } from 'axios';
import { AxiosError, AxiosResponse } from 'axios';
/**

@@ -34,3 +34,5 @@ * All errors produced by this package adhere to this interface

*/
export declare function httpErrorWithOriginal(original: AxiosError): IncomingWebhookHTTPError;
export declare function httpErrorWithOriginal(original: AxiosError & {
response: AxiosResponse;
}): IncomingWebhookHTTPError;
//# sourceMappingURL=errors.d.ts.map

@@ -35,3 +35,3 @@ "use strict";

function httpErrorWithOriginal(original) {
const error = errorWithCode(new Error(`An HTTP protocol error occurred: statusCode = ${original.code}`), ErrorCode.HTTPError);
const error = errorWithCode(new Error(`An HTTP protocol error occurred: statusCode = ${original.response.status}`), ErrorCode.HTTPError);
error.original = original;

@@ -38,0 +38,0 @@ return error;

{
"name": "@slack/webhook",
"version": "5.0.1",
"version": "5.0.2",
"description": "Official library for using the Slack Platform's Incoming Webhooks",

@@ -61,3 +61,3 @@ "author": "Slack Technologies, Inc.",

},
"gitHead": "35b40af1dc28ef40cb00eb9a47f902e73c27b03f"
"gitHead": "8a3f777519718ffb87cbde712f75b8d594255f84"
}

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc