rynop / dynamodb-local

A wrapper for AWS DynamoDB Local, intended for use in testcases
MIT License
51 stars 30 forks source link

Update broken download URL (move to https), add installer configuration method #12

Closed ByteCommander closed 7 years ago

ByteCommander commented 7 years ago

Amazon seems to have disabled their http download links and moved to https exclusively. Therefore I replaced the http module with https and fixed the default download link.

Additionally I made the download URL configurable through an additional configureInstaller method. Now users of the module can possibly fix broken links in the future in their own projects or set a regional or custom server if they want to. They can also specify a custom installation path where the module will look for the DynamoDB-Local binaries or install them if needed, which allows e.g. installing them directly in the project directory instead of cluttering the system temp. Both options together would even give you the theoretical ability to use different DynamoDB-Local versions for different projects at the same time.

I also added a license field to the package.json, because according to https://docs.npmjs.com/files/package.json#license the licenses field you used is deprecated and no longer recognized by npm.

doapp-ryanp commented 7 years ago

Thanks!! Updating in npm repo now..