@architect/functions
Advanced tools
Comparing version 1.7.0 to 1.8.0
{ | ||
"name": "@architect/functions", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "architect run commands", | ||
@@ -20,5 +20,4 @@ "main": "index", | ||
"dependencies": { | ||
"@architect/parser": "^1.0.0", | ||
"@architect/parser": "^1.1.0", | ||
"@smallwins/err": "^1.0.0", | ||
"@smallwins/validate": "^4.3.0", | ||
"cookie": "^0.3.1", | ||
@@ -25,0 +24,0 @@ "cookie-signature": "^1.0.6", |
@@ -1,2 +0,1 @@ | ||
var assert = require('@smallwins/validate/assert') | ||
var aws = require('aws-sdk') | ||
@@ -44,7 +43,11 @@ var sns = new aws.SNS | ||
module.exports = function _publish(params, callback) { | ||
assert(params, { | ||
name: String, | ||
payload: Object | ||
}) | ||
if (!params.name) | ||
throw ReferenceError('missing params.name') | ||
if (!params.payload) | ||
throw ReferenceError('missing params.payload') | ||
if (params.payload.toString() === '[object Object]') | ||
throw TypeError('params.payload not a plain Object') | ||
var {name, payload} = params | ||
@@ -51,0 +54,0 @@ var arn = ledger.hasOwnProperty(name) |
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
51136
10
1340
- Removed@smallwins/validate@^4.3.0
- Removed@smallwins/nodash@1.0.1(transitive)
- Removed@smallwins/validate@4.3.1(transitive)
Updated@architect/parser@^1.1.0