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.3 to 1.0.4

2

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

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

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

// ensure only valid command keys
var allowed = ['location', 'session', 'html']
var allowed = ['location', 'session', 'html', 'status']
Object.keys(cmds).forEach(k=> {
if (!allowed.includes(k)) {
throw Error(k + ' unknown key. Only location, session and html allowed')
throw Error(k + ' unknown key. Only location, session, status and html allowed')
}

@@ -47,2 +47,5 @@ })

}
else if (cmds.status) {
callback(JSON.stringify({statusCode:cmds.status, html:cmds.html || 'not found'}))
}
else {

@@ -49,0 +52,0 @@ callback(null, cmds)

Sorry, the diff of this file is not supported yet

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