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.1 to 1.13.2

8

lib/databases/dynamodb.js

@@ -814,3 +814,3 @@ var util = require('util'),

function isTableAlreadyExistsError (err) {
return err.code === "ResourceInUseException" && err.message === "Cannot create preexisting table"
return err.code === "ResourceInUseException" && err.message === "Cannot create preexisting table";
}

@@ -822,3 +822,3 @@

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

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

client.createTable(r.definition, function (err, data) {
if (err) {
if (err && !isTableAlreadyExistsError(err)) {
error("Error while creating " + r.definition.TableName + ": " + JSON.stringify(err, null, 2));

@@ -847,3 +847,3 @@ cbCreate(err);

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

@@ -850,0 +850,0 @@ });

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

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

@@ -1,2 +0,2 @@

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

@@ -3,0 +3,0 @@

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