eventstore
Advanced tools
Comparing version 1.13.0 to 1.13.1
@@ -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) |
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
190700
4630