Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

odata-query

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

odata-query - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

10

dist/index.js

@@ -201,4 +201,12 @@ 'use strict';

} else if (op === 'in') {
var resultingValues = Array.isArray(value[op])
// Convert `{ Prop: { in: [1,2,3] } }` to `(Prop eq 1 or Prop eq 2 or Prop eq 3)`
result.push('(' + value[op].map(function (v) {
? value[op]
// Convert `{ Prop: { in: [{type: type, value: 1},{type: type, value: 2},{type: type, value: 3}] } }`
// to `(Prop eq 1 or Prop eq 2 or Prop eq 3)`
: value[op].value.map(function (typedValue) {
return { 'type': value[op].type, 'value': typedValue };
});
result.push('(' + resultingValues.map(function (v) {
return propName + ' eq ' + handleValue(v);

@@ -205,0 +213,0 @@ }).join(' or ') + ')');

2

package.json
{
"name": "odata-query",
"version": "5.4.1",
"version": "5.4.2",
"author": "Sean Lynch <techniq35@gmail.com>",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -209,3 +209,3 @@ # odata-query

```js
const filter = { "someProp": { eq: { cast: 'guid', value: 'cd5977c2-4a64-42de-b2fc-7fe4707c65cd' } };
const filter = { "someProp": { eq: { type: 'guid', value: 'cd5977c2-4a64-42de-b2fc-7fe4707c65cd' } } };
buildQuery({ filter })

@@ -212,0 +212,0 @@ => "?$filter=someProp eq cd5977c2-4a64-42de-b2fc-7fe4707c65cd"

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