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

@sendgrid/eventwebhook

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sendgrid/eventwebhook - npm Package Compare versions

Comparing version 7.2.5 to 7.2.6

6

package.json
{
"name": "@sendgrid/eventwebhook",
"description": "Twilio SendGrid NodeJS Event Webhook",
"version": "7.2.5",
"version": "7.2.6",
"author": "Twilio SendGrid <help@twilio.com> (sendgrid.com)",

@@ -23,3 +23,3 @@ "contributors": [

"dependencies": {
"@starkbank/ecdsa": "^0.0.3"
"starkbank-ecdsa": "^1.1.1"
},

@@ -29,3 +29,3 @@ "tags": [

],
"gitHead": "63c18ce5492ed1c59d293be24de9fee9dadd1a9f"
"gitHead": "017fe1a56391cfe5d74c3d432881dbdc44287d41"
}

@@ -1,2 +0,2 @@

import {PublicKey} from "@starkbank/ecdsa";
import {PublicKey} from "starkbank-ecdsa";

@@ -3,0 +3,0 @@ declare class EventWebhook {

'use strict';
const ecdsa = require('@starkbank/ecdsa');
const ecdsa = require('starkbank-ecdsa');
const Ecdsa = ecdsa.Ecdsa;

@@ -5,0 +5,0 @@ const Signature = ecdsa.Signature;

const {EventWebhook, EventWebhookHeader} = require('./eventwebhook');
describe('EventWebhook', () => {
const PUBLIC_KEY = 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEEDr2LjtURuePQzplybdC+u4CwrqDqBaWjcMMsTbhdbcwHBcepxo7yAQGhHPTnlvFYPAZFceEu/1FwCM/QmGUhA==';
const SIGNATURE = 'MEUCIQCtIHJeH93Y+qpYeWrySphQgpNGNr/U+UyUlBkU6n7RAwIgJTz2C+8a8xonZGi6BpSzoQsbVRamr2nlxFDWYNH2j/0=';
const TIMESTAMP = '1588788367';
const PAYLOAD = JSON.stringify({
category: 'example_payload',
event: 'test_event',
message_id: 'message_id',
});
const PUBLIC_KEY = 'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE83T4O/n84iotIvIW4mdBgQ/7dAfSmpqIM8kF9mN1flpVKS3GRqe62gw+2fNNRaINXvVpiglSI8eNEc6wEA3F+g==';
const SIGNATURE = 'MEUCIGHQVtGj+Y3LkG9fLcxf3qfI10QysgDWmMOVmxG0u6ZUAiEAyBiXDWzM+uOe5W0JuG+luQAbPIqHh89M15TluLtEZtM=';
const TIMESTAMP = '1600112502';
const PAYLOAD = JSON.stringify(
[
{
email: 'hello@world.com',
event: 'dropped',
reason: 'Bounced Address',
sg_event_id: 'ZHJvcC0xMDk5NDkxOS1MUnpYbF9OSFN0T0doUTRrb2ZTbV9BLTA',
sg_message_id: 'LRzXl_NHStOGhQ4kofSm_A.filterdrecv-p3mdw1-756b745b58-kmzbl-18-5F5FC76C-9.0',
'smtp-id': '<LRzXl_NHStOGhQ4kofSm_A@ismtpd0039p1iad1.sendgrid.net>',
timestamp: 1600112492,
},
]
) + '\r\n'; // Be sure to include the trailing carriage return and newline!

@@ -13,0 +21,0 @@ describe('#verifySignature()', () => {

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