jsft-mongodb
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -304,3 +304,3 @@ 'use strict'; | ||
return _Collection2.default.insertOne('tests', _testSchema2.default, invalidPropsWithId); | ||
}).to.throw('Invalid Character'); | ||
}).to.throw('Character insertOne properties is invalid.'); | ||
}); | ||
@@ -344,3 +344,3 @@ | ||
return _Collection2.default.updateOne('tests', _testSchema2.default, invalidPropsWithId); | ||
}).to.throw('Invalid Character'); | ||
}).to.throw('Character updateOne properties is invalid.'); | ||
}); | ||
@@ -380,3 +380,3 @@ | ||
return _Collection2.default.replaceOne('tests', _testSchema2.default, invalidPropsWithId); | ||
}).to.throw('Invalid Character'); | ||
}).to.throw('Character replaceOne properties is invalid.'); | ||
}); | ||
@@ -383,0 +383,0 @@ |
@@ -150,3 +150,3 @@ 'use strict'; | ||
if (options) { | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { messagePrefix: 'Invalid options;' }); | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { message: 'Invalid options;' }); | ||
} | ||
@@ -177,3 +177,3 @@ | ||
if (options) { | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { messagePrefix: 'Invalid options;' }); | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { message: 'Invalid options;' }); | ||
} | ||
@@ -201,3 +201,3 @@ | ||
if (options) { | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { messagePrefix: 'Invalid options;' }); | ||
_jsft2.default.assertValid(makeOptionsSchema(schema), options, { message: 'Invalid options;' }); | ||
} | ||
@@ -251,3 +251,3 @@ | ||
}), { | ||
messagePrefix: (schema.title || collectionName) + ' insertOne properties is invalid;' | ||
message: (schema.title || collectionName) + ' insertOne properties is invalid.' | ||
}); | ||
@@ -305,3 +305,3 @@ | ||
_jsft2.default.assertValid(partialSchema(schema), props, { | ||
messagePrefix: (schema.title || collectionName) + ' updateOne properties is invalid;' | ||
message: (schema.title || collectionName) + ' updateOne properties is invalid.' | ||
}); | ||
@@ -338,3 +338,3 @@ | ||
_jsft2.default.assertValid(schema, props, { | ||
messagePrefix: (schema.title || collectionName) + ' replaceOne properties is invalid;' | ||
message: (schema.title || collectionName) + ' replaceOne properties is invalid.' | ||
}); | ||
@@ -341,0 +341,0 @@ |
{ | ||
"name": "jsft-mongodb", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Functional abstraction layer for mongodb-storage of objects with structures defined with json-schema", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
58280