dynamodb-localhost
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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, { |
'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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17617
10
197
76
+ Addedrimraf@^2.6.3
+ Addedchownr@1.1.4(transitive)
+ Addedfs-minipass@1.2.7(transitive)
+ Addedminipass@2.9.0(transitive)
+ Addedminizlib@1.3.3(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedtar@4.4.19(transitive)
+ Addedyallist@3.1.1(transitive)
- Removedrmdir@^1.2.0
- Removedblock-stream@0.0.9(transitive)
- Removedfstream@1.0.12(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedis@0.2.7(transitive)
- Removednode.extend@1.0.8(transitive)
- Removednode.flow@1.2.3(transitive)
- Removedobject-keys@0.4.0(transitive)
- Removedrmdir@1.2.0(transitive)
- Removedtar@2.2.2(transitive)
Updatedtar@^4.4.8