ddf-query-validator
Advanced tools
Comparing version 1.0.4 to 1.1.0
@@ -36,4 +36,6 @@ "use strict"; | ||
const keyConceptDescriptor = conceptsLookup.get(joinClausePart.key); | ||
if (keys(joinPartDetails).length === 1 && !!joinPartDetails.$in && | ||
(keyConceptDescriptor.concept_type === 'entity_set' || keyConceptDescriptor.concept_type === 'entity_domain')) { | ||
const containsInOrNinClause = !!joinPartDetails.$in || !!joinPartDetails.$nin; | ||
const isEntitySetOrDomain = keyConceptDescriptor.concept_type === 'entity_set' || | ||
keyConceptDescriptor.concept_type === 'entity_domain'; | ||
if (keys(joinPartDetails).length === 1 && containsInOrNinClause && isEntitySetOrDomain) { | ||
return interfaces_1.QueryFeature.ConjunctionPartFromWhereClauseCorrespondsToJoin; | ||
@@ -40,0 +42,0 @@ } |
{ | ||
"name": "ddf-query-validator", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "DDF query validator", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -50,5 +50,7 @@ import * as keys from 'lodash.keys'; | ||
const keyConceptDescriptor = conceptsLookup.get(joinClausePart.key); | ||
const containsInOrNinClause = !!joinPartDetails.$in || !!joinPartDetails.$nin; | ||
const isEntitySetOrDomain = keyConceptDescriptor.concept_type === 'entity_set' || | ||
keyConceptDescriptor.concept_type === 'entity_domain'; | ||
if (keys(joinPartDetails).length === 1 && !!joinPartDetails.$in && | ||
(keyConceptDescriptor.concept_type === 'entity_set' || keyConceptDescriptor.concept_type === 'entity_domain')) { | ||
if (keys(joinPartDetails).length === 1 && containsInOrNinClause && isEntitySetOrDomain) { | ||
// positive result is just HERE! | ||
@@ -55,0 +57,0 @@ return QueryFeature.ConjunctionPartFromWhereClauseCorrespondsToJoin; |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
169943
45
2884
1