GithubHelp home page GithubHelp logo

chrisguttandin / dynamo-db-local Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 5.0 365.8 MB

A wrapper around Amazon's DynamoDB Local to start and stop it from Node.js.

License: MIT License

JavaScript 84.98% Shell 1.38% TypeScript 13.64%
aws dynamodb dynamodb-local

dynamo-db-local's People

Contributors

chrisguttandin avatar danballweg avatar fishcharlie avatar greenkeeper[bot] avatar greenkeeperio-bot avatar mxro avatar o-alexandrov avatar shadowblazen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dynamo-db-local's Issues

An in-range update of sinon is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.4.3 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.4.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 21 commits.

  • 6de1cbd Update docs/changelog.md and set new release id in docs/_config.yml
  • cecbc46 Add release documentation for v4.4.3
  • 17b052f 4.4.3
  • 5b01728 Update History.md and AUTHORS for new release
  • f01d847 Fix inconsistent newline usage %D
  • e9aa877 Fix missed switch from referee to @sinonjs/referee
  • a0e200e Add subdir eslintrc for mjs
  • 7af0579 remove unnecessary properties quoting
  • dc895fc debounce function call
  • d7fb7d5 Merge pull request #1715 from sinonjs/sinon-es6-module-detection
  • 51cdafe Add linting for ES Modules
  • 6959188 Add detection of ES Modules to spies and lots of tests
  • f6b89a1 Extract ES Module detection and improve error
  • 3ede6ee Throw meaningful error stubbing ECMAScript Module
  • b491a57 Replace referee dependency with @sinonjs/referee

There are 21 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-config-holy-grail is breaking the build 🚨

Version 29.0.1 of eslint-config-holy-grail was just published.

Branch Build failing 🚨
Dependency eslint-config-holy-grail
Current Version 29.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-config-holy-grail is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 2 commits.

  • c504944 29.0.1
  • 7ed67e2 fix(package): update eslint-plugin-node to version 7.0.1

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of eslint-config-holy-grail is breaking the build 🚨

Version 31.0.1 of eslint-config-holy-grail was just published.

Branch Build failing 🚨
Dependency eslint-config-holy-grail
Current Version 31.0.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

eslint-config-holy-grail is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 6 commits.

  • c433352 31.0.1
  • f67f73b fix(package): update eslint-plugin-unicorn to version 6.0.1
  • 41fa5fd fix(package): update eslint to version 5.5.0
  • 846490c fix(package): update lockfile
  • 3caa68c fix(package): update @commitlint/config-angular to version 7.1.1
  • 63dbcd5 fix(package): update @commitlint/cli to version 7.1.1

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml
  • The new Node.js version is in-range for the engines in 1 of your package.json files, so that was left alone

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Network DNS error

HI,

I'm using the package for my unit testing.

But when I start my tests it raises a DNS error :

Error: getaddrinfo ENOTFOUND dynamodb.test.amazonaws.com
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:71:26)

My teardown.ts

import { ChildProcess } from 'child_process';
import build from './index';

declare global {
    var dynamoProcess: ChildProcess | undefined;
}

export default async function() {
    const table = build().getTable();

    if (await table.exists()) {
        await table.deleteTable('DeleteTableForever');
    }

    if (global.dynamoProcess) {
        global.dynamoProcess.kill();
    }
};

My setup.ts:

import { ChildProcess } from 'child_process';
import build from './index';
// @ts-ignore
import local from 'dynamo-db-local';

export default async function () {
    global.dynamoProcess = local.spawn() as ChildProcess;
    await new Promise((resolve) => setTimeout(resolve, 1000));

    const table = build().getTable();

    if (!(await table.exists())) {
        await table.createTable();
    }
}

I don't understand why it trying to reach that dns 😅

An in-range update of @commitlint/cli is breaking the build 🚨

Version 7.1.1 of @commitlint/cli was just published.

Branch Build failing 🚨
Dependency @commitlint/cli
Current Version 7.1.0
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

@commitlint/cli is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

How to stop started Docker container

Thank you for this library!

When starting a new instance of the local DynamoDB instance using the command: 'docker', it launches without any problems:

    console.debug('Starting local DynamoDB with Docker');
    const pr = dynamoDBLocal.spawn({
      port: MAPPED_PORT,
      command: 'docker',
      path: null,
    });
    return {
      port: MAPPED_PORT,
      stop: async () => {
        pr.kill();
      },
    };

However, it seems that when calling kill on the spawned process, the Docker container continues to run.

Maybe adding the --init argument to the command for running Docker could resolve this issue?

Not working on the new macbook 16 inch m1 pro

The following code used to work on my older intel MacBook.

const AWS = require('aws-sdk');
const dynamoDbLocal = require('dynamo-db-local');

async function init() {
	var process = await dynamoDbLocal.spawn({
		port: 8888
	});

	const service = new AWS.DynamoDB({
		apiVersion: 		'2016-11-23',
		endpoint: 		"http://localhost:8888",
		region: 		'eu-west-1',
		sslEnabled:		false,
		accessKeyId:		'fake',
		secretAccessKey:	'fake',
	});

	const client = new AWS.DynamoDB.DocumentClient({
		service
	});

	result = await service.listTables().promise()
	console.log(result);
}

init();

But now I get the following error:

UnknownEndpoint: Inaccessible host: `localhost'. This service may not be available in the `eu-west-1' region.

So I'm wondering what the issue is here.

An in-range update of eslint-config-holy-grail is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency eslint-config-holy-grail was updated from 46.0.13 to 46.0.14.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-config-holy-grail is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Release Notes for v46.0.14

all commits

Commits

The new version differs by 3 commits.

  • db5abeb 46.0.14
  • cc89dd4 fix(package): update lockfile
  • c040318 fix: replace no-sync with node/no-sync rule

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

v9 doesn't work

Hi there and thanks for this lib! The recent v9 doesn't seem to be working:

Error: Unable to access jarfile ../lib/dynamodb_local_2024-04-16/DynamoDBLocal.jar

As far as I could see from the source code, it is referencing the jarfile from ../lib/, but the build code is creating build/node and build/es2019.

The createSpawn command is not considering now that there is a new subfolder inside build/, resulting in java trying to access build/lib/dynamodb_local_2024-04-16 instead of lib/dynamodb_local_2024-04-16

As a workaround, I'm using v8 here

An in-range update of commitlint is breaking the build 🚨

There have been updates to the commitlint monorepo:

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the commitlint group definition.

commitlint is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build could not complete due to an error (Details).

Commits

The new version differs by 39 commits.

  • c17420d v8.1.0
  • ca19d70 chore: update dependency lodash to v4.17.14 (#724)
  • 5757ef2 build(deps): bump lodash.template from 4.4.0 to 4.5.0 (#721)
  • 5b5f855 build(deps): bump lodash.merge from 4.6.0 to 4.6.2 (#722)
  • 4cb979d build(deps): bump lodash from 4.17.11 to 4.17.13 (#723)
  • a89c1ba chore: add devcontainer setup
  • 9aa5709 chore: pin dependencies (#714)
  • c9ef5e2 chore: centralize typescript and jest setups (#710)
  • c9dcf1a chore: pin dependencies (#708)
  • 6a6a8b0 refactor: rewrite top level to typescript (#679)
  • 0fedbc0 chore: update dependency @types/jest to v24.0.15 (#694)
  • 0b9c7ed chore: update dependency typescript to v3.5.2 (#695)
  • 4efb34b chore: update dependency globby to v10 (#705)
  • 804af8b chore: update dependency lint-staged to v8.2.1 (#696)
  • 9075844 fix: add explicit dependency on chalk (#687)

There are 39 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

[Feature Request] Allow for not in memory option

There should be an option for this library to store the database data on disk instead of in memory. This would probably require changing up how options are passed into the spawn function (maybe allow passing in an object as well?)

An in-range update of sinon is breaking the build 🚨

☝️ Greenkeeper’s updated Terms of Service will come into effect on April 6th, 2018.

Version 4.4.7 of sinon was just published.

Branch Build failing 🚨
Dependency sinon
Current Version 4.4.6
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • continuous-integration/travis-ci/push The Travis CI build could not complete due to an error Details

Commits

The new version differs by 7 commits.

  • e060fe9 Update docs/changelog.md and set new release id in docs/_config.yml
  • e9fce06 Add release documentation for v4.4.7
  • f047838 4.4.7
  • cc91fe6 Update History.md and AUTHORS for new release
  • 9fb8577 Emojify the support message :heart:
  • a87ef85 Use existing mini-lib for coloring
  • 1f33fe5 Reduce noisy NPM output from postinstall script

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.