@shiftcoders/dynamo-easy
Advanced tools
Comparing version 5.2.2 to 5.2.3
@@ -78,14 +78,3 @@ import { kebabCase } from 'lodash'; | ||
} | ||
if (map.has(indexName)) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
if (map.size < 5) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
// a maximum of 5 global secondary indexes can be defined per table | ||
throw new Error('make sure to define no more than 5 global secondary indexes per model'); | ||
} | ||
} | ||
map.set(indexName, gsi); | ||
}); | ||
@@ -92,0 +81,0 @@ return map; |
@@ -80,14 +80,3 @@ import * as tslib_1 from "tslib"; | ||
} | ||
if (map.has(indexName)) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
if (map.size < 5) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
// a maximum of 5 global secondary indexes can be defined per table | ||
throw new Error('make sure to define no more than 5 global secondary indexes per model'); | ||
} | ||
} | ||
map.set(indexName, gsi); | ||
}); | ||
@@ -94,0 +83,0 @@ return map; |
@@ -81,14 +81,3 @@ "use strict"; | ||
} | ||
if (map.has(indexName)) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
if (map.size < 5) { | ||
map.set(indexName, gsi); | ||
} | ||
else { | ||
// a maximum of 5 global secondary indexes can be defined per table | ||
throw new Error('make sure to define no more than 5 global secondary indexes per model'); | ||
} | ||
} | ||
map.set(indexName, gsi); | ||
}); | ||
@@ -95,0 +84,0 @@ return map; |
{ | ||
"name": "@shiftcoders/dynamo-easy", | ||
"version": "5.2.2", | ||
"version": "5.2.3", | ||
"description": "DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1125885
17272