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

@architect/functions

Package Overview
Dependencies
Maintainers
6
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.0.4 to 1.0.5

2

package.json
{
"name": "@architect/functions",
"version": "1.0.4",
"version": "1.0.5",
"description": "architect run commands",

@@ -5,0 +5,0 @@ "main": "index",

@@ -7,3 +7,3 @@ var session = require('../session').client(process.env.SESSION_TABLE_NAME || 'arc-sessions')

// ensure only valid command keys
var allowed = ['location', 'session', 'json']
var allowed = ['location', 'session', 'json', 'status']
Object.keys(cmds).forEach(k=> {

@@ -15,3 +15,3 @@ if (!allowed.includes(k)) {

// ensure not both location and html
// ensure not both location and json
var hasLocationAndJson = cmds.hasOwnProperty('location') && cmds.hasOwnProperty('json')

@@ -48,2 +48,5 @@ if (hasLocationAndJson) {

}
else if (cmds.status) {
callback(JSON.stringify({statusCode:cmds.status, json:cmds.json || {} }))
}
else {

@@ -50,0 +53,0 @@ callback(null, cmds)

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