
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
odata-filter-parser
Advanced tools
Library for parsing and building and parsing OData filter strings. Only compatible with a subset of functions defined in OData specification
Full API documentation and examples is available on the Documentation page.
To include the library in your application, you can either reference the .js files under the dist folder or use the JSPM / Node
modular inclusion discussed on the Documentation page.
It is required to use a supported ES6 level of JavaScript (supported by all current browsers and NodeJS supported versions) with version 0.4.0 or higher.
The new Aurelia CLI will have difficulty resolving the dependencies from the require statements and try and resolve odata-filter under src vs the distribution folder. To resolve this, use the following configuration in the dependencies section of the aurelia.json file:
{
"name": "odata-filter-parser",
"path": "../node_modules/odata-filter-parser",
"main": "index"
}
Currently no types are available for Predicate, Operators and Parser so they may need to be declared locally. Here is the workaround to do so in your project.
@custom_types if it doesn't existodata-filter-parser.d.ts file with the following contents in this locationimport { Predicate, Operators, Parser } from 'odata-filter-parser'
export { Predicate, Operators }
export default Parser
tsconfig.app.json file) to add the following (only showing the sections modified):"compilerOptions": {
"paths": {
"*": ["src/@custom_types/*"]
}
},
"exclude": ["src/@custom_types/*"]
This library has no third-party dependencies (outside of testing and building tools used by source). No additional software is required.
This library should work on all modern browsers that support HTML-5 EcmaScript 5 standard as well as V8 (used by NodeJS).
To build the code, follow these steps.
npm install
npm install above should have installed a local copy):npm install -g gulp
gulp
dist folder.gulpfile.js for other tasks related to the generating of the library.To execute the tests with jest simply run
npm test
This will generate coverage information automatically.
Pull-Requests will be used for accepting bug fixes or feature requests, however please contact the owner prior to proposing
a pull-request for non-bug fixes to avoid unnecessary work and effort. All submissions should provide test coverage and
conform with the eslint standards defined in the .eslintrc file.
Ensure a proper version is designated in the package.json that matches the commit on github.
Step 1. Update version in package.json
Step 2. Commit changes to github
Step 3. Create Tag of the release locally with
git tag -a <newVersion> -m "created tag <newVersion>"
Push tag to github
git push origin --tags
Step 4. Pack the solution for publishing
npm pack
Step 5. To deploy the module to npmjs use the following command (user access will be required)
npm publish
Step 6. Optionally create a release in github using the tag and attach the .tgz used to publish to npmjs
FAQs
Library for parsing and building OData filter strings
The npm package odata-filter-parser receives a total of 305 weekly downloads. As such, odata-filter-parser popularity was classified as not popular.
We found that odata-filter-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.