Socket
Socket
Sign inDemoInstall

dynamodb-localhost

Package Overview
Dependencies
Maintainers
1
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.3 to 0.0.4

19

index.js

@@ -10,4 +10,7 @@ 'use strict';

var dynamodb = {
install: function (callback) {
installer.install(config, function (msg) {
install: function(callback, path) {
if (path) {
config.setup.install_path = path;
}
installer.install(config, function(msg) {
console.log(msg);

@@ -17,3 +20,3 @@ callback();

},
start: function (options) {
start: function(options) {
var instance = starter.start(options, config);

@@ -24,3 +27,3 @@ dbInstances[instance.port] = {

};
instance.proc.on('close', function (code) {
instance.proc.on('close', function(code) {
if (code !== null && code !== 0) {

@@ -32,3 +35,3 @@ console.log('DynamoDB Local failed to start with code', code);

},
stop: function (port) {
stop: function(port) {
if (dbInstances[port]) {

@@ -39,3 +42,3 @@ dbInstances[port].process.kill('SIGKILL');

},
restart: function (port) {
restart: function(port) {
var options = dbInstances[port].options;

@@ -46,4 +49,4 @@ this.stop(port);

},
remove: function (callback) {
utils.removeDir(config.setup.install_path, function () {
remove: function(callback) {
utils.removeDir(config.setup.install_path, function() {
console.log("Successfully removed dynamodb local!");

@@ -50,0 +53,0 @@ callback();

{
"name": "dynamodb-localhost",
"version": "0.0.3",
"version": "0.0.4",
"engines": {

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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