Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@architect/functions

Package Overview
Dependencies
Maintainers
7
Versions
284
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/functions - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

5

package.json
{
"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",

13

src/events/_publish.js

@@ -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)

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