New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

odata-query

Package Overview
Dependencies
Maintainers
1
Versions
64
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 3.0.0 to 3.1.0

14

dist/index.js

@@ -17,2 +17,3 @@ 'use strict';

skip = _ref.skip,
key = _ref.key,
count = _ref.count,

@@ -51,2 +52,13 @@ expand = _ref.expand;

if (key) {
if ((typeof key === 'undefined' ? 'undefined' : _typeof(key)) === 'object') {
var keys = Object.keys(key).map(function (k) {
return k + '=' + key[k];
}).join(',');
path += '(' + keys + ')';
} else {
path += '(' + key + ')';
}
}
if (count) {

@@ -56,3 +68,3 @@ if (typeof count === 'boolean') {

} else {
path = '/$count';
path += '/$count';
}

@@ -59,0 +71,0 @@ }

2

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

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

@@ -266,2 +266,17 @@ # odata-query

### Single-item (key)
Simple value
```js
const key = 1;
buildQuery({ key })
=> '(1)'
```
As object (explicit key property
```js
const key = { Id: 1 };
buildQuery({ key })
=> '(Id=1)'
```
### Counting

@@ -268,0 +283,0 @@ Include count inline with result

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