You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP →

serverless-dynamodb

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-dynamodb - npm Package Compare versions

Comparing version

to
0.2.51

@@ -18,13 +18,6 @@ import { DynamoDBClient } from '@aws-sdk/client-dynamodb';

get host(): string;
/**
* Get the stage
*
* @return {String} the current stage
*/
get stage(): string;
/**
* To check if the handler needs to be executed based on stage
*
* @return {Boolean} if the handler can run for the provided stage
*/
* Check if the handler needs to be executed based on stage
*/
shouldExecute(): boolean;

@@ -31,0 +24,0 @@ dynamodbOptions(): {

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

usage: 'After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.',
// NB: no `type` intentionally to allow both boolean and string values
type: 'string',
},

@@ -193,7 +193,2 @@ },

}
/**
* Get the stage
*
* @return {String} the current stage
*/
get stage() {

@@ -203,6 +198,4 @@ return (this.options && this.options.stage) || (this.serverless.service.provider && this.serverless.service.provider.stage);

/**
* To check if the handler needs to be executed based on stage
*
* @return {Boolean} if the handler can run for the provided stage
*/
* Check if the handler needs to be executed based on stage
*/
shouldExecute() {

@@ -209,0 +202,0 @@ if (!this.config.stages || this.config.stages.includes(this.stage)) {

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

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

@@ -45,4 +45,5 @@ # serverless-dynamodb

serverless-dynamodb:
port: 8000
docker: false
start:
port: 8000
docker: false
```

@@ -60,4 +61,6 @@

'serverless-dynamodb': {
port: 8000,
docker: false,
start: {
port: 8000,
docker: false,
}
}

@@ -303,3 +306,3 @@ }

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.
The JSON files for sources should look like:

@@ -306,0 +309,0 @@ ```json