🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ddf-query-validator

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ddf-query-validator - npm Package Compare versions

Comparing version

to
1.1.0

test/features.spec.ts

6

lib/features.service.js

@@ -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