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

primedia-search-input-parser

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primedia-search-input-parser - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

changelog.md

2

examples.js

@@ -8,3 +8,3 @@ var parse = require('./index');

'not:contactable direction:a-z',
'direction:z-a'
'direction:z-a is:deceased'
];

@@ -11,0 +11,0 @@

@@ -30,2 +30,3 @@ var merge = require('lodash.merge');

var contactable = null;
var deceased = null;

@@ -60,2 +61,10 @@ terms.forEach(function(term, index) {

if (parts[0] === 'is' && parts[1] === 'deceased') {
deceased = true;
}
if (parts[0] === 'not' && parts[1] === 'deceased') {
deceased = false;
}
if (parts[0] === 'topic' && parts[1].length > 0) {

@@ -84,2 +93,3 @@ if (parts[1].match(/\d+/)) {

if (contactable !== null ||
deceased !== null ||
topicId.length > 0 ||

@@ -96,2 +106,6 @@ topicName.length > 0 ||

if (deceased !== null) {
args.filter.deceased = deceased;
}
if (topicId.length > 0) {

@@ -98,0 +112,0 @@ args.filter.topic_id = topicId;

{
"name": "primedia-search-input-parser",
"version": "3.0.0",
"version": "3.1.0",
"description": "Opiniated search input parser, built for Primedia, not for you.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -101,3 +101,3 @@ [![Next](http://www.wearenext.co.za/assets/images/logos/logo-next-dark-57x22.png)](http://www.wearenext.co.za)

```javascript
parse('direction:z-a');
parse('direction:z-a is:deceased');
```

@@ -107,4 +107,7 @@

{
"direction": "desc"
"direction": "desc",
"filter": {
"deceased": true
}
}
```
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