{"_id":"sns-validator","_rev":"53-e6c3f177cc7cb371d2a5266b559164b9","name":"sns-validator","dist-tags":{"latest":"0.3.5"},"versions":{"0.2.0":{"name":"sns-validator","version":"0.2.0","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.2.0","maintainers":[{"name":"aws","email":"aws-sdk-js@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"d4b6bb5ddb295623fa14dd4d0d427d0b87af90ba","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.2.0.tgz","integrity":"sha512-RV46LNLxQXeI/S6df3bste6SNOfY9VM+oQoxrdYG7NuULuD6WCJ0bGG68rxdQqK5VFZVpqOv6XR79Hez0JAupA==","signatures":[{"sig":"MEUCIQDSG4nVfLWVUr4MkWRxmbAv090kqnqTP+4guMb6HBxcWgIgHIoajH8bi1Gk66PtJvKhkg470AUO6iG65zYILlYhV4k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"d4b6bb5ddb295623fa14dd4d0d427d0b87af90ba","gitHead":"3ff5ed779f8eb7470f4e88cb4d435fab2c544375","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"aws","email":"aws-sdk-js@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"2.11.3","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"0.12.7","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","rewire":"^2.3.4","underscore":"^1.8.3"}},"0.2.1":{"name":"sns-validator","version":"0.2.1","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.2.1","maintainers":[{"name":"aws","email":"aws-sdk-js@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"759fadef5e2e72b23bf1cfa413a78056342d40fe","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.2.1.tgz","integrity":"sha512-pK1bEVJDWOVjWWI8sBJURs3balwAJYk6Rb6VSJ/hUGMqKhfbgNYs361YIMBtTIY2BkYCZNRMy7IJvrN88vThqw==","signatures":[{"sig":"MEUCIQCEyQYPYo4Y87KW/quCBw0GHt75Z2A2uI1QnYUaH8Ts7wIgaStaZV/Lo8WoTseBqereVEw0EEFM8KQEOsnmp/tOsdo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"759fadef5e2e72b23bf1cfa413a78056342d40fe","gitHead":"9648af7e74ab5541fd130c15a8d8529e39584610","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"aws","email":"aws-sdk-js@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"2.14.12","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"4.3.2","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.2.1.tgz_1460592129919_0.9877550357487053","host":"packages-16-east.internal.npmjs.com"}},"0.2.2":{"name":"sns-validator","version":"0.2.2","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.2.2","maintainers":[{"name":"aws","email":"aws-sdk-js@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"a1bad9209041b33eeea79cb9fbe651bb82ea169b","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.2.2.tgz","integrity":"sha512-bdrOVnWupZ9lKVkurFuE2M9bwEn7a3i8CEQNNopwlVsORxNqDWitJ47Yww360AVI9s6oycQcBVddw6pm638mYQ==","signatures":[{"sig":"MEQCIDamLe71VZkNk7K841K/TUx2AP70C72EINGkTXGsYFIzAiAJM9xH6/GDFAUO3dT3FisrD3Vzp3zhAFbvCWDPdBXkiQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"a1bad9209041b33eeea79cb9fbe651bb82ea169b","gitHead":"d0c0a1aef6a9ac04f7eddd792c028a4d3f9245f5","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"aws","email":"aws-sdk-js@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"2.15.1","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"0.12.17","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.2.2.tgz_1481158568295_0.1390043362043798","host":"packages-12-west.internal.npmjs.com"}},"0.3.0":{"name":"sns-validator","version":"0.3.0","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.0","maintainers":[{"name":"aws","email":"aws-sdk-js@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"bc69fa7d1ebec883b3bdede81a21b191c91c8e9f","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.0.tgz","integrity":"sha512-+5QxPLwPtvX4fRNGJz0gig0nXp5X7ZNnKcCKvssg4D9R0SFiDw8dj5aoLoAKwQpd6kQ8ollQ+b5+ZlfiBVDKvA==","signatures":[{"sig":"MEUCIGZWRrRVQU6VAD+g+OGLjGIuKDWGfd2RM9mPl/+aWPi4AiEA6wdsapaySRueN3wjbtBlFxwvtvScaoMSCDSUlR2MfYw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"bc69fa7d1ebec883b3bdede81a21b191c91c8e9f","gitHead":"981c1e47a852dfd071ae01a8a52ac1cba050002c","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"aws","email":"aws-sdk-js@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"4.2.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"7.8.0","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.3.0.tgz_1491337230075_0.2865946334786713","host":"packages-18-east.internal.npmjs.com"}},"0.3.1":{"name":"sns-validator","version":"0.3.1","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.1","maintainers":[{"name":"aws","email":"aws-sdk-js@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"eebb91f9bc9f1b5d7c586fa98130bc76e4904815","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.1.tgz","integrity":"sha512-rQxiNZKm+uxgQ1ZYAXGIoppX+N/bikXUTcc83dRf10j+qOmklgNle6Ip+IIBeeRr2Sm1tOrZ/g6B4Gnq30lDaw==","signatures":[{"sig":"MEYCIQCfF2zIW5QAeaadVGGL9Awk68Os5HbFqd81OetHlu87QwIhAPfbNFmVnvkT8odJ08s3nbChLphl6xxygiDr/12ODK5L","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"eebb91f9bc9f1b5d7c586fa98130bc76e4904815","gitHead":"8bbaac2ac561512b7c44fe498d57043ad42af491","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"aws","email":"aws-sdk-js@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"4.2.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"7.10.0","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.3.1.tgz_1498865011067_0.9007925293408334","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"sns-validator","version":"0.3.2","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.2","maintainers":[{"name":"aws-sdk-team","email":"aws-sdk-js@amazon.com"},{"name":"yogiraj07","email":"awati@amazon.com"},{"name":"aws-iot-sdk","email":"fengsong@amazon.com"},{"name":"awsxray","email":"aws-xray-sdk-node@amazon.com"},{"name":"awssandra","email":"mcmuls@amazon.com"},{"name":"cjradek","email":"cjradek@gmail.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"jsq","email":"jonathan@jeskew.net"},{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"jpeddicord","email":"jacob@peddicord.net"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"50bc1de5d393b3a593dc43ce038eb94ae830d017","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.2.tgz","integrity":"sha512-bk2VFf/FhhuA4+FtIOkzUs8mxa93wQpmUMVMWPwJo3y6DGxhfychfUNUdsOFT6wHAW+OYrdZKeO2mAGEckBmXg==","signatures":[{"sig":"MEYCIQCrevgj59OVKUH7Qolhj0gR0nFgAlvhPJLmNmQMBhCTyAIhAPgYazzfw338yS0+geRQ3cfAbuzd5EJR4begoUVrGO9x","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"e1911209673653ed0851302c86b3acceaca510fa","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"jsq","email":"jonathan@jeskew.net"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"5.3.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"8.4.0","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.3.2.tgz_1503533852171_0.730628902092576","host":"s3://npm-registry-packages"}},"0.3.3":{"name":"sns-validator","version":"0.3.3","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.3","maintainers":[{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"aws-sdk-team","email":"aws-sdk-js@amazon.com"},{"name":"awssandra","email":"mcmuls@amazon.com"},{"name":"awsxray","email":"aws-xray-sdk-node@amazon.com"},{"name":"cjradek","email":"cjradek@gmail.com"},{"name":"gkwicker.amazon","email":"gkwicker@amazon.com"},{"name":"haotianw465","email":"wht465@gmail.com"},{"name":"jsq","email":"jonathan@jeskew.net"},{"name":"yogiraj07","email":"awati@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"a663e5f5181aec94af5c92e9a9610fbf7b2ecf0b","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.3.tgz","integrity":"sha512-YIdPOGItjJGi36fGOZr0GztDE/KeDIsWRtwdCgtsSY1Jf7adYKkjkK+elAnqwlfo8sKZA1T09FRSt9B++ymH5w==","signatures":[{"sig":"MEUCIQDubiEhL4dXr8vtwo3gCKIx1nlpNnzxgTVpMcVE6r479AIgHxikYIoeUskh4vbDltaACM1WDBvCIVR3IEzfyAhUMgA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"d76ef0b1f8ba986807aa03448578689b341285ad","scripts":{"test":"node_modules/mocha/bin/mocha"},"_npmUser":{"name":"jsq","email":"jonathan@jeskew.net"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"5.6.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{"test":"test"},"_nodeVersion":"8.9.4","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.3.3.tgz_1517186069287_0.5768123690504581","host":"s3://npm-registry-packages"}},"0.3.4":{"name":"sns-validator","version":"0.3.4","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.4","maintainers":[{"name":"aws-sdk-bot","email":"aws-sdk-js@amazon.com"},{"name":"aws-sdk-team","email":"aws-sdk-js@amazon.com"},{"name":"awssandra","email":"mcmuls@amazon.com"},{"name":"awsxray","email":"aws-xray-sdk-node@amazon.com"},{"name":"cjradek","email":"cjradek@gmail.com"},{"name":"gkwicker.amazon","email":"gkwicker@amazon.com"},{"name":"haotianw465","email":"wht465@gmail.com"},{"name":"jsq","email":"jonathan@jeskew.net"},{"name":"yogiraj07","email":"awati@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"a858be7c0bcdf0d68d6d992a521026e2c9bcf947","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.4.tgz","integrity":"sha512-v2pDbfPW4qeUKssV9GbgbDf7XC3b9CG+0JTSATGYWKAo/2F7d0PBQJnSY5fpdryJyoquBkER647+7f/d+HR46A==","signatures":[{"sig":"MEQCIC+VZdhfws3BSpg+ezwBr2MUK9RvXiJy0eoUuBsP4v4BAiAa29HTXfKIc9ogT4wJGXU0qh6VvGgNV+EG5eiQ39d3DA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","gitHead":"8075d0791a6666587910cac005c6db19895a9000","scripts":{"test":"mocha"},"_npmUser":{"name":"jsq","email":"jonathan@jeskew.net"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"5.6.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{},"_nodeVersion":"8.9.4","devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator-0.3.4.tgz_1517186568799_0.9658345924690366","host":"s3://npm-registry-packages"}},"0.3.5":{"name":"sns-validator","version":"0.3.5","keywords":["AWS","SNS"],"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","_id":"sns-validator@0.3.5","maintainers":[{"name":"mattsb42-aws","email":"bullocm@amazon.com"},{"name":"kuhe","email":"george.jing.fu+npm@gmail.com"},{"name":"amzn-oss","email":"osa-3p@amazon.com"},{"name":"zheallan","email":"zheallan@amazon.com"},{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"},{"name":"trivikr-aws","email":"trivikr@amazon.com"}],"homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"dist":{"shasum":"4f6283734e65e493f0f32265c225c4dce87d53e3","tarball":"https://registry.npmjs.org/sns-validator/-/sns-validator-0.3.5.tgz","fileCount":8,"integrity":"sha512-lapYNmezLsltnt2fcQyhmYnC41mYZ7EjU7f2oR/hrhpbD/LemryclRpApwxO84gOyDIQ7MWe/h4HvkdunFzSKg==","signatures":[{"sig":"MEQCH09o6NyCLVvVeLEDqTj/mmIkbOiz944yCTNoOoE2nAsCIQD74mPe3YY3iXSNobnRBq78xo2tVday4H3BcM3x5QjLMA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/9ERACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEeA/8D1G34KefXNzwf7LTa8c/kV9oc7BLDqLHLdZi6DhMgd63jfsE\r\n+QK2F4QC0HzVcmPc0xEsKvQFKE7KzPfTArNtp9iGsIf5wTl8S1I4ZvHSgCle\r\n7DtCov34ERZepxVKOTtFJSr+xtE2mopWk9+77IVEfGa3XQ8Tb51Qa85SJuCe\r\nF/bboQIhWbNuUMXFCgfyflWZr/GopZfd7/+1CrKZFmnz7c4yoxDnthSrwFV6\r\nv/zxJM8pLCuyhUJopRndbHohLlXvOaMIAswX/2xB+/8DKwCL06hBMxevfCe4\r\nw4rIQab7lYdqIffNs2SKqA0YFVaSFTrmqAjnv6EHX5dW76feiltnt+GzORMD\r\nfwm+9UnXrlnN4kDP8wDTY7jA3mBpkvj0Yka/fNzzaWO3JITPiiLNU5xyQx0t\r\nY0bCmxrBj1ui1PLmDoHIsDzNZvQudNiEzGYklsndI70Rc30vytCXwjMURij1\r\nOxclxbvGJr8xc7of3apkFlN+WL8St2J8oa+D6JhiCZX2Q9EbjhbCnfR8WLNr\r\nIuiVus/VXmIlDGSSzbCsWNbqycBfkDOv6LKriiDt8MqwZ7OFJqOsRKUiTp0B\r\n9J8fhY1onzenuD1vtFRcqijU+RffYkVe42vD/vFR+yLtLKo6G4KbxtdDeE9G\r\nEEHDf9NSr/rrDp/QcqmiiJCMsvYbxSxK4mk=\r\n=VJZs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"a6ba4d646dc60912653357660301f3b25f94d686","scripts":{"test":"mocha"},"_npmUser":{"name":"aws-sdk-bot","email":"aws-sdk-js-automation@amazon.com"},"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"_npmVersion":"8.11.0","description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","directories":{},"_nodeVersion":"16.16.0","_hasShrinkwrap":false,"devDependencies":{"pem":"^1.8.1","chai":"^3.3.0","mocha":"^2.3.3","sinon":"^1.17.6","rewire":"^2.3.4","underscore":"^1.8.3"},"_npmOperationalInternal":{"tmp":"tmp/sns-validator_0.3.5_1660932369090_0.3198297933515655","host":"s3://npm-registry-packages"}}},"time":{"created":"2015-10-19T21:40:57.508Z","modified":"2025-03-27T18:49:48.712Z","0.0.1":"2015-10-19T21:40:57.508Z","0.1.1":"2015-10-19T21:42:41.900Z","0.1.2":"2015-10-19T22:52:17.641Z","0.1.0":"2015-10-19T22:59:31.187Z","0.2.0":"2015-10-22T03:24:56.708Z","0.2.1":"2016-04-14T00:02:12.925Z","0.2.2":"2016-12-08T00:56:08.516Z","0.3.0":"2017-04-04T20:20:31.961Z","0.3.1":"2017-06-30T23:23:31.150Z","0.3.2":"2017-08-24T00:17:32.268Z","0.3.3":"2018-01-29T00:34:31.161Z","0.3.4":"2018-01-29T00:42:48.918Z","0.1.0-preview.2":"2018-11-16T18:15:07.530Z","0.3.5":"2022-08-19T18:06:09.273Z"},"bugs":{"url":"https://github.com/aws/aws-js-sns-message-validator/issues"},"author":{"name":"Amazon Web Services"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-js-sns-message-validator#readme","keywords":["AWS","SNS"],"repository":{"url":"git+https://github.com/aws/aws-js-sns-message-validator.git","type":"git"},"description":"A standalone validator for inbound SNS HTTP messages. No dependency on the AWS SDK for JavaScript.","maintainers":[{"email":"osa-3p@amazon.com","name":"amzn-oss"},{"email":"aws-sdk-js-automation@amazon.com","name":"aws-sdk-bot"}],"readme":"# Amazon SNS Message Validator for JavaScript\n\n[![@awsforjs on Twitter](http://img.shields.io/badge/twitter-%40awsforjs-blue.svg?style=flat)](https://twitter.com/awsforjs)\n[![Build Status](https://img.shields.io/travis/aws/aws-js-sns-message-validator.svg?style=flat)](https://travis-ci.org/aws/aws-js-sns-message-validator)\n[![Apache 2 License](https://img.shields.io/github/license/aws/aws-js-sns-message-validator.svg?style=flat)](http://aws.amazon.com/apache-2-0/)\n\nThe **Amazon SNS Message Validator for Node.js** library allows you to validate\nthat incoming HTTP(S) POST messages are valid Amazon SNS notifications. This\nlibrary is standalone and does not depend on the AWS SDK for JavaScript.\n\n## Installation\n\nThe npm module's name is [`sns-validator`](https://www.npmjs.com/package/sns-validator). Install with npm or yarn:\n\n```\nnpm i sns-validator\n```\n\nor \n\n```\nyarn add sns-validator\n```\n\n## Basic Usage\n\nTo validate a message, you can instantiate a `MessageValidator` object and pass\nan SNS message and a callback to its `validate` method. The message should be\nthe result of calling `JSON.parse` on the body of the HTTP(S) message sent by\nSNS to your endpoint. The callback should take two arguments, the first being\nan error and the second being the successfully validated SNS message.\n\nThe message validator checks the `SigningCertURL`, `SignatureVersion`, and\n`Signature` to make sure they are valid and consistent with the message data.\n\n```javascript\nvar MessageValidator = require('sns-validator'),\n    validator = new MessageValidator();\n\nvalidator.validate(message, function (err, message) {\n    if (err) {\n        // Your message could not be validated.\n        return;\n    }\n\n    // message has been validated and its signature checked.\n});\n```\n\n## Installation\n\nThe SNS Message Validator relies on the Node crypto module and is only designed\nto work on a server, not in a browser. The validation performed is only\nnecessary when subscribing HTTP(S)\n\n## About Amazon SNS\n\n[Amazon Simple Notification Service (Amazon SNS)][sns] is a fast, fully-managed,\npush messaging service. Amazon SNS can deliver messages to email, mobile devices\n(i.e., SMS; iOS, Android and FireOS push notifications), Amazon SQS queues,and\n— of course — HTTP/HTTPS endpoints.\n\nWith Amazon SNS, you can setup topics to publish custom messages to subscribed\nendpoints. However, SNS messages are used by many of the other AWS services to\ncommunicate information asynchronously about your AWS resources. Some examples\ninclude:\n\n* Configuring Amazon Glacier to notify you when a retrieval job is complete.\n* Configuring AWS CloudTrail to notify you when a new log file has been written.\n* Configuring Amazon Elastic Transcoder to notify you when a transcoding job\n  changes status (e.g., from \"Progressing\" to \"Complete\")\n\nThough you can certainly subscribe your email address to receive SNS messages\nfrom service events like these, your inbox would fill up rather quickly. There\nis great power, however, in being able to subscribe an HTTP/HTTPS endpoint to\nreceive the messages. This allows you to program webhooks for your applications\nto easily respond to various events.\n\n## Handling Messages\n\n### Confirming a Subscription to a Topic\n\nIn order to handle a `SubscriptionConfirmation` message, you must use the\n`SubscribeURL` value in the incoming message:\n\n```javascript\nvar https = require('https'),\n    MessageValidator = require('sns-validator'),\n    validator = new MessageValidator();\n\nvalidator.validate(message, function (err, message) {\n    if (err) {\n        console.error(err);\n        return;\n    }\n\n    if (message['Type'] === 'SubscriptionConfirmation') {\n        https.get(message['SubscribeURL'], function (res) {\n          // You have confirmed your endpoint subscription\n        });\n    }\n});\n```\n\nIf an incoming message includes multibyte characters and its encoding is utf8,\nset the encoding to `validator`.\n\n```javascript\nvar MessageValidator = require('sns-validator'),\n    validator = new MessageValidator();\nvalidator.encoding = 'utf8';\n```\n\n### Receiving a Notification\n\nTo receive a notification, use the same code as the preceding example, but\ncheck for the `Notification` message type.\n\n```javascript\nif (message['Type'] === 'Notification') {\n    // Do whatever you want with the message body and data.\n    console.log(message['MessageId'] + ': ' + message['Message']);\n}\n```\n\nThe message body will be a string, and will hold whatever data was published\nto the SNS topic.\n\n### Unsubscribing\n\nUnsubscribing looks the same as subscribing, except the message type will be\n`UnsubscribeConfirmation`.\n\n```javascript\nif (message['Type'] === 'UnsubscribeConfirmation') {\n    // Unsubscribed in error? You can resubscribe by visiting the endpoint\n    // provided as the message's SubscribeURL field.\n    https.get(message['SubscribeURL'], function (res) {\n        // You have re-subscribed your endpoint.\n    });\n}\n```\n\n[sns]: http://aws.amazon.com/sns/\n[AWS SDK for JavaScript]: https://github.com/aws/aws-sdk-js\n","readmeFilename":"README.md","users":{"tjr":true,"benignradiance":true}}