New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

simple-query-parser

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-query-parser - npm Package Compare versions

Comparing version
1.1.0
to
1.1.1
+4
-0
CHANGELOG.md
# Simple query parse
## v1.1.1
- Fix bug to handle multiple points with number as string (eg: 1.0.0)
## v1.1.0

@@ -4,0 +8,0 @@

@@ -71,2 +71,8 @@ const comparatorObject = {

if (this.containsOnlyNumber(value)) {
const count = (value.match(/\./g) || []).length;
if (count >= 2) {
return value
}
if (value.includes('.')) {

@@ -73,0 +79,0 @@ return parseFloat(value)

+1
-1
{
"name": "simple-query-parser",
"version": "1.1.0",
"version": "1.1.1",
"description": "Simple query parser",

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

@@ -76,2 +76,13 @@ const assert = require('assert')

})
it('should parse a version number', () => {
let obj = { 'version': '1.0.0' }
let result = queryParser.parse(obj)
assert.deepStrictEqual(result, [{
key: 'version',
value: '1.0.0',
comparator: '='
}])
})
})

@@ -78,0 +89,0 @@