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

sns-validator

Package Overview
Dependencies
Maintainers
9
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sns-validator - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

12

index.js

@@ -192,3 +192,11 @@ "use strict";

MessageValidator.prototype.validate = function (hash, cb) {
var hostPattern = this.hostPattern;
if (typeof hash === 'string') {
try {
hash = JSON.parse(hash);
} catch (err) {
cb(err);
return;
}
}
hash = convertLambdaMessage(hash);

@@ -201,3 +209,3 @@

if (!validateUrl(hash['SigningCertURL'], hostPattern)) {
if (!validateUrl(hash['SigningCertURL'], this.hostPattern)) {
cb(new Error('The certificate is located on an invalid domain.'));

@@ -204,0 +212,0 @@ return;

7

package.json
{
"name": "sns-validator",
"version": "0.3.3",
"version": "0.3.4",
"description": "A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.",

@@ -10,5 +10,2 @@ "repository": {

"main": "index.js",
"directories": {
"test": "test"
},
"devDependencies": {

@@ -23,3 +20,3 @@ "chai": "^3.3.0",

"scripts": {
"test": "node_modules/mocha/bin/mocha"
"test": "mocha"
},

@@ -26,0 +23,0 @@ "keywords": [

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