simple-odata-server
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -70,3 +70,14 @@ /*! | ||
if (this.type === 'eq' && this.right.type === 'literal') { | ||
this._prop(result, this.left, this.right.value) | ||
// odata parser returns ['null', ''] for a filter with "field eq null" | ||
// we handle the case by fixing the query in case this happens | ||
if ( | ||
Array.isArray(this.right.value) && | ||
this.right.value.length === 2 && | ||
this.right.value[0] === 'null' && | ||
this.right.value[1] === '' | ||
) { | ||
this._prop(result, this.left, null) | ||
} else { | ||
this._prop(result, this.left, this.right.value) | ||
} | ||
} | ||
@@ -73,0 +84,0 @@ |
{ | ||
"name": "simple-odata-server", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "OData server with adapter for mongodb and nedb", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
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
32287
821
1