node_modules updated, buefy add to lib folder

This commit is contained in:
roemmelter63329 committed 2019-06-04 14:29:48 +02:00
1 parent 0a3f6ff240
commit 5d28bc36e1
3957 files changed
+306575 -21738

No files matched your search

@@ -0,0 +1,12 @@
'use strict';
module.exports = function checkEmbeddedDiscriminatorKeyProjection(userProjection, path, schema, selected, addedPaths) {
const userProjectedInPath = Object.keys(userProjection).
reduce((cur, key) => cur || key.startsWith(path + '.'), false);
const _discriminatorKey = path + '.' + schema.options.discriminatorKey;
if (!userProjectedInPath &&
addedPaths.length === 1 &&
addedPaths[0] === _discriminatorKey) {
selected.splice(selected.indexOf(_discriminatorKey), 1);
}
};