@andrewscwei/mongodb-odm
Advanced tools
Comparing version 0.24.0 to 0.25.0
@@ -753,3 +753,3 @@ "use strict"; | ||
if (fieldSpecs.encrypted === true) { | ||
formattedDoc[key] = yield bcrypt_1.default.hash(`${formattedDoc[key]}`, 10); | ||
formattedDoc[key] = (yield bcrypt_1.default.hash(`${formattedDoc[key]}`, 10)); | ||
} | ||
@@ -756,0 +756,0 @@ } |
@@ -17,3 +17,3 @@ "use strict"; | ||
const o = sanitizeDocument_1.default(Baz_1.default.schema, t); | ||
assert_1.default(!o.extraneous); | ||
assert_1.default(!o.hasOwnProperty('extraneous')); | ||
}); | ||
@@ -20,0 +20,0 @@ mocha_1.it('can remove undefined fields in a document fragment', () => { |
@@ -9,4 +9,2 @@ import { CollectionAggregationOptions, CollectionInsertManyOptions, CollectionInsertOneOptions, CommonOptions, FilterQuery, FindOneAndReplaceOption, IndexOptions, ObjectID, ReplaceOneOptions, UpdateQuery } from 'mongodb'; | ||
updatedAt?: Date; | ||
} & { | ||
[field: string]: FieldValue; | ||
}; | ||
@@ -24,5 +22,5 @@ /** | ||
*/ | ||
export declare type Update<T = {}> = UpdateQuery<DocumentFragment<T>> | { | ||
[K in keyof DocumentFragment<T>]: DocumentFragment<T>[K] | null; | ||
}; | ||
export declare type Update<T = {}> = UpdateQuery<DocumentFragment<T>> | Partial<{ | ||
[K in keyof Document<T>]: Document<T>[K] | null; | ||
}>; | ||
/** | ||
@@ -29,0 +27,0 @@ * Data type for all field types. |
{ | ||
"name": "@andrewscwei/mongodb-odm", | ||
"version": "0.24.0", | ||
"version": "0.25.0", | ||
"description": "ODM for MongoDB", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
260659
4002