Comparing version 0.0.2 to 0.0.3
@@ -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 @@ |
{ | ||
"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, | ||
}) | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
3
0
3265
2
6
26
+ Addedalamode@1.8.6
+ Addedaws-sdk@2.431.0
+ Added@a-la/detect-jsx@1.0.1(transitive)
+ Added@a-la/export@1.3.1(transitive)
+ Added@a-la/import@1.7.0(transitive)
+ Added@a-la/jsx@1.4.5(transitive)
+ Added@a-la/markers@1.0.3(transitive)
+ Added@artdeco/clean-stack@1.0.1(transitive)
+ Added@wrote/clone@1.1.0(transitive)
+ Added@wrote/ensure-path@1.0.31.0.5(transitive)
+ Added@wrote/exists@1.0.1(transitive)
+ Added@wrote/read@1.0.2(transitive)
+ Added@wrote/read-dir-structure@1.0.11.0.2(transitive)
+ Added@wrote/rm@1.1.2(transitive)
+ Added@wrote/write@1.0.2(transitive)
+ Added@wrote/wrote@1.2.1(transitive)
+ Addedalamode@1.8.6(transitive)
+ Addedargufy@1.3.2(transitive)
+ Addedaws-sdk@2.431.0(transitive)
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@4.9.1(transitive)
+ Addedcatchment@3.0.13.2.13.2.2(transitive)
+ Addedclean-stack@1.3.0(transitive)
+ Addeddiff@4.0.1(transitive)
+ Addederotic@1.0.11.2.12.0.2(transitive)
+ Addederte@1.1.7(transitive)
+ Addedevents@1.1.1(transitive)
+ Addedieee754@1.1.8(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjmespath@0.15.0(transitive)
+ Addedmakepromise@2.0.03.0.13.0.2(transitive)
+ Addednode-modules-regexp@1.0.0(transitive)
+ Addedpirates@4.0.1(transitive)
+ Addedpunycode@1.3.2(transitive)
+ Addedquerystring@0.2.0(transitive)
+ Addedrestream@3.1.13.5.0(transitive)
+ Addedsax@1.2.1(transitive)
+ Addedsource-map@0.7.3(transitive)
+ Addedurl@0.10.3(transitive)
+ Addedusually@1.1.0(transitive)
+ Addeduuid@3.3.2(transitive)
+ Addedwhich-stream@1.0.1(transitive)
+ Addedxml2js@0.4.19(transitive)
+ Addedxmlbuilder@9.0.7(transitive)