Comparing version 0.0.12 to 0.0.13
{ | ||
"name": "dynalite", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "A mock implementation of Amazon's DynamoDB", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -11,3 +11,3 @@ dynalite | ||
Not much to see here yet - the whole thing's one ugly hacked up mess at the moment. | ||
All basic actions have now been implemented. Will create a TODO list soon for the remaining issues. | ||
exports.types = { | ||
ReturnConsumedCapacity: { | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'], | ||
enum: ['INDEXES', 'TOTAL', 'NONE'], | ||
}, | ||
RequestItems: { | ||
type: 'Map', | ||
requiredMap: true, | ||
tableMap: true, | ||
notNull: true, | ||
lengthGreaterThanOrEqual: 1, | ||
children: { | ||
@@ -16,2 +16,3 @@ type: 'Structure', | ||
notNull: true, | ||
lengthGreaterThanOrEqual: 1, | ||
children: { | ||
@@ -18,0 +19,0 @@ type: 'Map', |
exports.types = { | ||
ReturnConsumedCapacity: { | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'] | ||
enum: ['INDEXES', 'TOTAL', 'NONE'] | ||
}, | ||
@@ -12,4 +12,4 @@ ReturnItemCollectionMetrics: { | ||
type: 'Map', | ||
requiredMap: true, | ||
tableMap: true, | ||
notNull: true, | ||
lengthGreaterThanOrEqual: 1, | ||
children: { | ||
@@ -16,0 +16,0 @@ type: 'List', |
@@ -154,6 +154,7 @@ exports.types = { | ||
if (!data.LocalSecondaryIndexes.length) | ||
return 'One or more parameter values were invalid: List of indexes is empty' | ||
return 'One or more parameter values were invalid: List of LocalSecondaryIndexes is empty' | ||
if (data.KeySchema.length != 2) | ||
return 'One or more parameter values were invalid: Table KeySchema does not have a range key' | ||
return 'One or more parameter values were invalid: Table KeySchema does not have a range key, ' + | ||
'which is required when specifying a LocalSecondaryIndex' | ||
@@ -160,0 +161,0 @@ for (var i = 0; i < data.LocalSecondaryIndexes.length; i++) { |
@@ -6,9 +6,10 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'], | ||
enum: ['INDEXES', 'TOTAL', 'NONE'], | ||
}, | ||
TableName: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -15,0 +16,0 @@ ReturnValues: { |
@@ -6,3 +6,3 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'], | ||
enum: ['INDEXES', 'TOTAL', 'NONE'], | ||
}, | ||
@@ -17,5 +17,6 @@ AttributesToGet: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -22,0 +23,0 @@ Key: { |
@@ -6,9 +6,10 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'] | ||
enum: ['INDEXES', 'TOTAL', 'NONE'] | ||
}, | ||
TableName: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -15,0 +16,0 @@ Item: { |
@@ -70,3 +70,3 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'] | ||
enum: ['INDEXES', 'TOTAL', 'NONE'] | ||
}, | ||
@@ -81,5 +81,6 @@ AttributesToGet: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -93,4 +94,5 @@ Select: { | ||
type: 'String', | ||
tableName: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -148,3 +150,3 @@ ScanIndexForward: 'Boolean', | ||
if (~['NULL', 'NOT_NULL', 'CONTAINS', 'NOT_CONTAINS', 'IN'].indexOf(comparisonOperator)) | ||
return 'Query can be performed only on a table with a HASH,RANGE key schema' | ||
return 'Attempted conditional constraint is not an indexable operation' | ||
} | ||
@@ -155,4 +157,4 @@ | ||
if (~['LE', 'LT', 'GE', 'GT', 'BEGINS_WITH', 'BETWEEN'].indexOf(comparisonOperator)) | ||
return 'Query can be performed only on a table with a HASH,RANGE key schema' | ||
return 'Query key condition not supported' | ||
} | ||
@@ -15,3 +15,3 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'] | ||
enum: ['INDEXES', 'TOTAL', 'NONE'] | ||
}, | ||
@@ -30,5 +30,6 @@ AttributesToGet: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -35,0 +36,0 @@ ExclusiveStartKey: { |
@@ -6,9 +6,10 @@ var validateAttributeValue = require('./index').validateAttributeValue | ||
type: 'String', | ||
enum: ['TOTAL', 'NONE'] | ||
enum: ['INDEXES', 'TOTAL', 'NONE'] | ||
}, | ||
TableName: { | ||
type: 'String', | ||
required: true, | ||
tableName: true, | ||
notNull: true, | ||
regex: '[a-zA-Z0-9_.-]+', | ||
lengthGreaterThanOrEqual: 3, | ||
lengthLessThanOrEqual: 255, | ||
}, | ||
@@ -15,0 +16,0 @@ ReturnItemCollectionMetrics: { |
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
77004
34
2093