New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

serverless-dynamodb-local

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-dynamodb-local - npm Package Compare versions

Comparing version 0.2.20 to 0.2.21

16

index.js

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

"dynamodb:migrate:migrateHandler": this.migrateHandler.bind(this),
"dynamodb:migrate:seedHandler": this.seedHandler.bind(this),
"dynamodb:seed:seedHandler": this.seedHandler.bind(this),
"dynamodb:remove:removeHandler": this.removeHandler.bind(this),

@@ -152,4 +152,4 @@ "dynamodb:install:installHandler": this.installHandler.bind(this),

},
this.options,
config && config.start
config && config.start,
this.options
);

@@ -187,7 +187,11 @@

const seed = this.options.seed;
if (!seed) {
this.serverlessLog("DynamoDB - No seed categories defined. Skipping data seeding.");
let categories;
if (typeof seed === "string") {
categories = seed.split(",");
} else if(seed) {
categories = Object.keys(seedConfig);
} else { // if (!seed)
this.serverlessLog("DynamoDB - No seeding defined. Skipping data seeding.");
return [];
}
const categories = seed.split(",");
const sourcesByCategory = categories.map((category) => seedConfig[category].sources);

@@ -194,0 +198,0 @@ return [].concat.apply([], sourcesByCategory);

{
"name": "serverless-dynamodb-local",
"version": "0.2.20",
"version": "0.2.21",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=4.0"

@@ -130,2 +130,13 @@ serverless-dynamodb-local

If seed config is set to true, your configuration will be seeded automatically on startup. You can also put the seed to false to prevent initial seeding to use manual seeding via cli.
```fake-test-users.json example
[
{
"id": "John",
"name": "Doe",
},
]
```
## Using DynamoDB Local in your code

@@ -132,0 +143,0 @@ You need to add the following parameters to the AWS NODE SDK dynamodb constructor

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