Comparing version 0.2.0 to 0.2.1
@@ -1,2 +0,1 @@ | ||
var db = require('../db') | ||
@@ -3,0 +2,0 @@ module.exports = function createTable(store, data, cb) { |
{ | ||
"name": "dynalite", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "A mock implementation of Amazon's DynamoDB built on LevelDB", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,3 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
lengthGreaterThanOrEqual: 1, | ||
lengthLessThanOrEqual: 100, | ||
children: { | ||
@@ -57,2 +58,3 @@ type: 'Map', | ||
exports.custom = function(data) { | ||
var numReqs = 0 | ||
for (var table in data.RequestItems) { | ||
@@ -64,2 +66,5 @@ for (var i = 0; i < data.RequestItems[table].Keys.length; i++) { | ||
} | ||
numReqs++ | ||
if (numReqs > 100) | ||
return 'Too many items requested for the BatchGetItem call' | ||
} | ||
@@ -66,0 +71,0 @@ } |
@@ -87,2 +87,3 @@ var db = require('../db'), | ||
exports.custom = function(data) { | ||
var numReqs = 0 | ||
for (var table in data.RequestItems) { | ||
@@ -109,2 +110,5 @@ if (!data.RequestItems[table].length) | ||
} | ||
numReqs++ | ||
if (numReqs > 25) | ||
return 'Too many items requested for the BatchWriteItem call' | ||
} | ||
@@ -111,0 +115,0 @@ } |
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
2604
101854
77739
37