serverless-dynamodb-local
Advanced tools
Comparing version 0.2.25 to 0.2.26
@@ -0,0 +0,0 @@ ## How to contribute to serverless-dynamodb-local |
@@ -225,3 +225,3 @@ "use strict"; | ||
const seedConfig = _.get(config, "seed", {}); | ||
const seed = this.options.seed || config.start.seed; | ||
const seed = this.options.seed || config.start.seed || seedConfig; | ||
let categories; | ||
@@ -245,2 +245,5 @@ if (typeof seed === "string") { | ||
} | ||
if (migration.TimeToLiveSpecification) { | ||
delete migration.TimeToLiveSpecification; | ||
} | ||
dynamodb.raw.createTable(migration, (err) => { | ||
@@ -247,0 +250,0 @@ if (err) { |
{ | ||
"name": "serverless-dynamodb-local", | ||
"version": "0.2.25", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
"description": "Serverless dynamodb local plugin", | ||
"author": "99xtechnology.com", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/99xt/serverless-dynamodb-local" | ||
}, | ||
"keywords": [ | ||
"serverless framework plugin", | ||
"serverless applications", | ||
"serverless plugins", | ||
"api gateway", | ||
"lambda", | ||
"dynamodb", | ||
"dynamodb local", | ||
"aws", | ||
"aws lambda", | ||
"aws dynamodb", | ||
"amazon", | ||
"amazon web services", | ||
"serverless.com" | ||
], | ||
"main": "index.js", | ||
"bin": {}, | ||
"scripts": { | ||
"test": "mocha ./test" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "^2.7.0", | ||
"bluebird": "^3.4.6", | ||
"dynamodb-localhost": "^0.0.5", | ||
"lodash": "^4.17.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.1", | ||
"mocha": "^3.5.0", | ||
"should": "^11.2.1" | ||
} | ||
"name": "serverless-dynamodb-local", | ||
"version": "0.2.26", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
"description": "Serverless dynamodb local plugin", | ||
"author": "99xtechnology.com", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/99xt/serverless-dynamodb-local" | ||
}, | ||
"keywords": [ | ||
"serverless framework plugin", | ||
"serverless applications", | ||
"serverless plugins", | ||
"api gateway", | ||
"lambda", | ||
"dynamodb", | ||
"dynamodb local", | ||
"aws", | ||
"aws lambda", | ||
"aws dynamodb", | ||
"amazon", | ||
"amazon web services", | ||
"serverless.com" | ||
], | ||
"main": "index.js", | ||
"bin": {}, | ||
"scripts": { | ||
"test": "mocha ./test" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "^2.7.0", | ||
"bluebird": "^3.4.6", | ||
"dynamodb-localhost": "^0.0.5", | ||
"lodash": "^4.17.0" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.1", | ||
"mocha": "^3.5.0", | ||
"should": "^11.2.1" | ||
} | ||
} |
@@ -100,2 +100,5 @@ serverless-dynamodb-local | ||
**Note:** | ||
DynamoDB local doesn't support TTL specification, therefore plugin will simply ignore ttl configuration from Cloudformation template. | ||
## Seeding: sls dynamodb seed | ||
@@ -182,2 +185,13 @@ ### Configuration | ||
### Using with serverless-offline and serverless-webpack plugin | ||
Run `serverless offline start`. In comparison with `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for serverless-offline and serverless-dynamodb-local to switch off both ressources. | ||
Add plugins to your `serverless.yml` file: | ||
```yaml | ||
plugins: | ||
- serverless-webpack | ||
- serverless-dynamodb-local | ||
- serverless-offline #serverless-offline needs to be last in the list | ||
``` | ||
## Reference Project | ||
@@ -184,0 +198,0 @@ * [serverless-react-boilerplate](https://github.com/99xt/serverless-react-boilerplate) |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
40401
15
606
205