New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pompeii

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pompeii - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

build/index.js

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 11 December 2019
### [0.0.6](https://github.com/artdecocode/pompeii/compare/v0.0.5...v0.0.6)
- [package] Publish `build`.
## 29 March 2019

@@ -2,0 +8,0 @@

11

package.json
{
"name": "pompeii",
"version": "0.0.5",
"version": "0.0.6",
"description": "A lambda function to notify of npm releases.",

@@ -11,2 +11,3 @@ "main": "src/index.js",

"lint": "eslint .",
"b": "alamode src -o build -s",
"e": "node example",

@@ -37,9 +38,9 @@ "example/": "yarn e example/example"

"eslint-config-artdeco": "1.0.1",
"yarn-s": "1.1.0",
"zoroaster": "3.11.2"
"yarn-s": "1.2.1",
"zoroaster": "4.1.2"
},
"dependencies": {
"alamode": "1.8.6",
"aws-sdk": "2.431.0"
"alamode": "3.2.0",
"aws-sdk": "2.587.0"
}
}

@@ -0,5 +1,7 @@

import { request } from 'https'
import AWS from 'aws-sdk'
import { stringify } from 'querystring'
const sns = new AWS.SNS()
const { env: { TOPIC_ARN: TopicArn } } = process
const { env: { TOPIC_ARN: TopicArn, SERVER: server, KEY: key = 'super-secret-key' } } = process

@@ -15,7 +17,21 @@ const NPM_FROM = /support@npmjs\.com/

}
console.log('publishing %s', subject)
await publish(subject)
if (server) {
console.log('pinging server')
notify(server, subject)
}
if (TopicArn) {
console.log('publishing %s', subject)
await publish(subject)
}
}
const notify = (ser, Message) => {
const q = stringify({ 'secret-key': key, subject: Message })
const req = request(`${ser}?${q}`, (res) => {
console.log('Server responded with', res.statusCode)
})
req.end()
}
const publish = async (Message) => {

@@ -22,0 +38,0 @@ await sns.publish({

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