@architect/functions
Advanced tools
Comparing version 8.0.2 to 8.0.3
{ | ||
"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 @@ |
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
76863
2139