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

serverless-dynamodb

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-dynamodb - npm Package Compare versions

Comparing version 0.2.46 to 0.2.47

22

index.js

@@ -273,3 +273,3 @@ "use strict";

(options.noStart ? Promise.resolve() : dynamodbLocal.start(options))
return (options.noStart ? Promise.resolve() : dynamodbLocal.start(options))
.then(() => options.migrate && this.migrateHandler())

@@ -398,14 +398,12 @@ .then(() => options.seed && this.seedHandler());

await dynamodb.raw.send(new CreateTableCommand(migration)).catch(err => {
if (err) {
if (err.name === 'ResourceInUseException') {
this.serverlessLog(`DynamoDB - Warn - table ${migration.TableName} already exists`);
resolve();
} else {
this.serverlessLog("DynamoDB - Error - ", err);
reject(err);
}
await dynamodb.raw.send(new CreateTableCommand(migration)).then(() => {
this.serverlessLog("DynamoDB - created table " + migration.TableName);
return migration;
}).catch((err) => {
if (err.name === 'ResourceInUseException') {
this.serverlessLog(`DynamoDB - Warn - table ${migration.TableName} already exists`);
return;
} else {
this.serverlessLog("DynamoDB - created table " + migration.TableName);
resolve(migration);
this.serverlessLog("DynamoDB - Error - ", err);
throw err;
}

@@ -412,0 +410,0 @@ })

{
"name": "serverless-dynamodb",
"version": "0.2.46",
"version": "0.2.47",
"description": "Serverless plugin to run DynamoDB local",

@@ -5,0 +5,0 @@ "license": "MIT",

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