New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 1.0.4 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc