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

dynamodb-localhost

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-localhost - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

CODE_OF_CONDUCT.md

11

dynamodb/starter.js

@@ -9,3 +9,4 @@ 'use strict';

/* Dynamodb local documentation http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html */
var additionalArgs = [],
var preArgs = [],
additionalArgs = [],
port = options.port || config.start.port,

@@ -15,2 +16,8 @@ db_dir = options.install_path || utils.absPath(config.setup.install_path),

if (options.heapInitial) {
preArgs.push(`-Xms${options.heapInitial}`);
}
if (options.heapMax) {
preArgs.push(`-Xmx${options.heapMax}`)
}
if (options.dbPath) {

@@ -38,3 +45,3 @@ additionalArgs.push('-dbPath', options.dbPath);

var args = ['-Djava.library.path=' + db_dir + '/DynamoDBLocal_lib', '-jar', jar, '-port', port];
args = args.concat(additionalArgs);
args = preArgs.concat(args.concat(additionalArgs));

@@ -41,0 +48,0 @@ var child = spawn('java', args, {

4

dynamodb/utils.js
'use strict';
var path = require('path'),
rmdir = require('rmdir'),
rimraf = require("rimraf"),
fs = require('fs');

@@ -17,3 +17,3 @@

var path = absPath(relPath);
rmdir(path, callback);
rimraf(path, callback);
};

@@ -20,0 +20,0 @@

{
"name": "dynamodb-localhost",
"version": "0.0.7",
"engines": {
"node": ">=4.0"
},
"description": "Dynamodb local plugin for devops",
"author": "99xtechnology.com",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/99xt/dynamodb-localhost"
},
"keywords": [
"name": "dynamodb-localhost",
"version": "0.0.8",
"engines": {
"node": ">=4.0"
},
"description": "Dynamodb local plugin for devops",
"author": "99xtechnology.com",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/99xt/dynamodb-localhost"
},
"keywords": [
"aws",

@@ -27,10 +27,10 @@ "dynamodb",

],
"main": "index.js",
"bin": {},
"dependencies": {
"mkdirp": "^0.5.0",
"progress": "^1.1.8",
"rmdir": "^1.2.0",
"tar": "^2.0.0"
}
"main": "index.js",
"bin": {},
"dependencies": {
"mkdirp": "^0.5.0",
"progress": "^1.1.8",
"rimraf": "^2.6.3",
"tar": "^4.4.8"
}
}

@@ -47,3 +47,3 @@ dynamodb-localhost

```
```js
{ port : 8000, /* Port to listen on. Default: 8000 */

@@ -55,3 +55,5 @@ cors : '*', /* Enable CORS support (cross-origin resource sharing) for JavaScript. You must provide a comma-separated "allow" list of specific domains. The default setting for cors is an asterisk (*), which allows public access. */

delayTransientStatuses : true, /* Causes DynamoDB to introduce delays for certain operations. DynamoDB can perform some tasks almost instantaneously, such as create/update/delete operations on tables and indexes; however, the actual DynamoDB service requires more time for these tasks. Setting this parameter helps DynamoDB simulate the behavior of the Amazon DynamoDB web service more closely. (Currently, this parameter introduces delays only for global secondary indexes that are in either CREATING or DELETING status.) */
optimizeDbBeforeStartup : true } /* Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter. */
optimizeDbBeforeStartup : true, /* Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter. */
heapInitial: undefined, /* A string which sets the initial heap size e.g., heapInitial: '2048m'. This is input to the java -Xms argument */
heapMax: undefined, /* A string which sets the maximum heap size e.g., heapMax: '1g'. This is input to the java -Xmx argument */
```

@@ -58,0 +60,0 @@

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