Gathering detailed insights and metrics for @balena/odata-parser
Gathering detailed insights and metrics for @balena/odata-parser
Gathering detailed insights and metrics for @balena/odata-parser
Gathering detailed insights and metrics for @balena/odata-parser
npm install @balena/odata-parser
Typescript
Module System
Min. Node Version
Node Version
NPM Version
TypeScript (82.37%)
PEG.js (17.63%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
6 Stars
422 Commits
1 Forks
22 Watchers
14 Branches
12 Contributors
Updated on Apr 10, 2025
Latest Version
4.2.6
Package Id
@balena/odata-parser@4.2.6
Unpacked Size
260.52 kB
Size
41.33 kB
File Count
24
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 10, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
An OData parser written in OMeta.
OData is a protocol build on top of REST and HTTP, it's goal is to provide a uniform and reliable way to access and navigate resources.
For a full specification of the protocol refer to this link
This module is a part of the odata-compiler
The parser takes an input string representing the odata request and returns an object {tree, binds}
if the parse is successful.
Imagine wanting the access a resource which is stored at as a depth two child of some other resource, the corresponding odata query would be something like /parent/child/granchild
This string is parsed into a tree where every intermediate resource is a node, each node contains the following properties
$links
option$count
option was specified for the resourceThe binds array contains all the reference to primitive values contained in the odata request, example of such primitive values are: Reals, Booleans, Dates, Text, ecc.
These binds are stored in the binds array and are referenced in the tree by the integer index where the bind resides in this array.
input: /model
output:
{ tree:
{ resource: 'model',
key: undefined,
link: undefined,
property: undefined,
count: undefined,
options: undefined }
input: /model(1)/child
output:
{ tree:
{ resource: 'model',
key: { bind: 0 },
link: undefined,
property:
{ resource: 'child',
key: undefined,
link: undefined,
property: undefined,
count: undefined,
options: undefined },
count: undefined,
options: undefined },
binds: [ [ 'Real', 1 ] ] }
input: /model/$count?$filter=id gt 5
output:
{ tree:
{ resource: 'model',
key: undefined,
link: undefined,
property: undefined,
count: true,
options: { '$filter': [ 'gt', { name: 'id', property: undefined }, { bind: 0 } ] } },
binds: [ [ 'Real', 5 ] ] }
Tests can be found under the test/
folder, to run the whole suite use
npm test
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
SAST tool is run on all commits
Details
Reason
Found 8/18 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
Project has not signed or included provenance with any releases.
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More