Huge News!Announcing our $40M Series B led by Abstract Ventures.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.2 to 0.0.3

src/pompeii.js

6

CHANGELOG.md

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

## 29 March 2019
### [0.0.3](https://github.com/artdecocode/pompeii/compare/v0.0.2...v0.0.3)
- [package] Upgrade to _ÀLaMode_.
## 5 June 2018

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

39

package.json
{
"name": "pompeii",
"version": "0.0.2",
"version": "0.0.3",
"description": "A lambda function to notify of npm releases.",
"main": "build",
"main": "src/index.js",
"scripts": {
"t": "zoroaster --babel",
"t": "zoroaster -a",
"test": "yarn t test/spec",
"test-build": "BABEL_ENV=test-build yarn t test/spec",
"test-all": "yarn-s test test-build",
"test-watch": "yarn test --watch",
"test-build": "ALAMODE_ENV=test-build yarn test",
"lint": "eslint .",
"e": "node example",
"example/": "yarn e example/example.js",
"build": "babel src --out-dir build --source-maps"
"example/": "yarn e example/example"
},
"files": [
"build",
"src"
],
"repository": {

@@ -24,2 +25,9 @@ "type": "git",

],
"maintainers": [
{
"name": "Art Deco",
"email": "artdeco@adc.sh",
"url": "https://artd.eco"
}
],
"author": "Anton <anton@adc.sh>",

@@ -32,13 +40,10 @@ "license": "MIT",

"devDependencies": {
"@babel/cli": "7.0.0-beta.49",
"@babel/core": "7.0.0-beta.49",
"@babel/plugin-syntax-object-rest-spread": "7.0.0-beta.49",
"@babel/plugin-transform-modules-commonjs": "7.0.0-beta.49",
"@babel/register": "7.0.0-beta.49",
"babel-plugin-transform-rename-import": "2.2.0",
"eslint": "4.19.1",
"eslint-config-artdeco": "1.0.0",
"eslint-config-artdeco": "1.0.1",
"yarn-s": "1.1.0",
"zoroaster": "2.1.0"
"zoroaster": "3.11.2"
},
"dependencies": {
"alamode": "1.8.6",
"aws-sdk": "2.431.0"
}
}

@@ -1,25 +0,6 @@

import AWS from 'aws-sdk'
const sns = new AWS.SNS()
const { env: { TOPIC_ARN: TopicArn } } = process
const NPM_FROM = /support@npmjs\.com/
export const handler = async ({ Records }) => {
const [{ ses: { mail } }] = Records
const { commonHeaders: { from, subject } } = mail
if (!NPM_FROM.test(from)) {
console.log('not publishing')
return
}
console.log('publishing %s', subject)
await publish(subject)
/**
* This is the main package file.
*/
export default async function pompeii() {
console.log('pompeii called')
}
const publish = async (Message) => {
await sns.publish({
TopicArn,
Message,
})
}
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