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

eventstore

Package Overview
Dependencies
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eventstore - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

10

lib/databases/dynamodb.js

@@ -813,2 +813,6 @@ var util = require('util'),

function isTableAlreadyExistsError (err) {
return err.code === "ResourceInUseException" && err.message === "Cannot create preexisting table"
}
var createTableIfNotExists = function (client, params, callback) {

@@ -818,3 +822,3 @@ var exists = function (p, cbExists) {

if (err) {
if (err.code === "ResourceNotFoundException") {
if (err.code === "ResourceNotFoundException" && !isTableAlreadyExistsError(err)) {
debug("Table " + p.TableName + " doesn't exist yet: " + JSON.stringify(p, null, 2));

@@ -841,4 +845,4 @@ cbExists(null, { exists: false, definition: p });

} else {
debug(data.TableDescription.TableName + "created. Waiting for activiation.");
cbCreate(null, { Table: { TableName: data.TableDescription.TableName, TableStatus: data.TableDescription.TableStatus } });
debug(params.TableName + " created. Waiting for activiation.");
cbCreate(null, { Table: { TableName: data.TableDescription.TableName, TableStatus: data ? data.TableDescription.TableStatus : "UNKNOWN"} });
}

@@ -845,0 +849,0 @@ });

{
"author": "adrai",
"name": "eventstore",
"version": "1.13.0",
"version": "1.13.1",
"contributors": [

@@ -6,0 +6,0 @@ {

@@ -0,1 +1,4 @@

#### [v1.13.1](https://github.com/adrai/node-eventstore/compare/v1.13.0...v1.13.1)
- Fix concurrency issue in createTableIfNotExists (DynamoDB) [#118](https://github.com/adrai/node-eventstore/pull/118) thanks to [DannyRyman](https://github.com/DannyRyman)
#### [v1.13.0](https://github.com/adrai/node-eventstore/compare/v1.12.9...v1.13.0)

@@ -2,0 +5,0 @@ - compatibility with new mongodb version (3.x)

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