Socket
Socket
Sign inDemoInstall

@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 8.0.2 to 8.0.3

2

package.json
{
"name": "@architect/functions",
"version": "8.0.2",
"version": "8.0.3",
"description": "Runtime utility library for Functional Web Apps (FWAs) built with Architect (https://arc.codes)",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/architect/functions",

@@ -104,3 +104,11 @@ let { getAwsClient, getPorts, useAWS } = require('../lib')

put (Item, callback) {
return go(aws.dynamodb.PutItem, { TableName, Item }, callback)
if (callback) aws.dynamodb.PutItem({ TableName, Item })
.then(() => callback(null, Item))
.catch(err => callback(err))
else return new Promise((res, rej) => {
aws.dynamodb.PutItem({ TableName, Item })
.then(() => res(Item))
.catch(rej)
})
},

@@ -107,0 +115,0 @@

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