Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nutes-uepb/query-strings-parser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.1.11
Choose a base ref
...
head repository: nutes-uepb/query-strings-parser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 11 commits
  • 3 files changed
  • 4 contributors

Commits on Sep 10, 2020

  1. Merge tag '2.1.7' into develop

    Bug Fix
    - Fixes bug that did not allow sorting on second level: level.sublevel
    douglasrafael committed Sep 10, 2020
    Copy the full SHA
    8054af8 View commit details

Commits on Aug 5, 2021

  1. Merge tag '2.1.8' into develop

    Improvements:
    
    - Adds $ne filter to the mapper's getCompareOperator(value) function;
    - Updates versions of the project dependencies.
    jeffsampaio committed Aug 5, 2021
    Copy the full SHA
    7659a4d View commit details

Commits on Nov 30, 2021

  1. Merge tag '2.1.9' into develop

    Hotfix:
       - Fixing int number better zero, starting with zero;
    lucas-barbosa-oliveira committed Nov 30, 2021
    Copy the full SHA
    88ff5f8 View commit details

Commits on Dec 3, 2021

  1. Merge tag '2.1.10' into develop

    Improvements:
    
    - Adds accents on uppercase vowels to the search filter;
    - Updates versions of the project dependencies.
    jeffsampaio committed Dec 3, 2021
    Copy the full SHA
    a849b07 View commit details

Commits on Jun 14, 2022

  1. Merge tag '2.1.11' into develop

    Adjustments and Improvements:
    
    - Adds handling for multiple $or in queries;
    - Updates versions of the project dependencies.
    jeffsampaio committed Jun 14, 2022
    Copy the full SHA
    26add6d View commit details
  2. Adjustments for hotfix of version 2.1.12

      - Updating Travis config file.
    jeffsampaio committed Jun 14, 2022
    Copy the full SHA
    0790cea View commit details
  3. Copy the full SHA
    46cfd32 View commit details
  4. Merge tag '2.1.12' into develop

    Adjustments and Improvements:
    
    - Updates Travis file.
    jeffsampaio committed Jun 14, 2022
    Copy the full SHA
    8f4dbd8 View commit details

Commits on Dec 13, 2023

  1. Adjustments for hotfix of version 2.1.13

      - Adding treatment of values: undefined and null.
    berrytern committed Dec 13, 2023
    Copy the full SHA
    dbc700e View commit details
  2. Adjustments for hotfix of version 2.1.13

      - Updating package.json.
    jeffsampaio committed Dec 13, 2023
    Copy the full SHA
    f4cad6b View commit details
  3. Copy the full SHA
    070c7c3 View commit details
Showing with 6 additions and 4 deletions.
  1. +2 −3 .travis.yml
  2. +2 −0 lib/mapper/filters.js
  3. +2 −1 package.json
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: node_js
node_js:
- "10"
- "11"
- "12"
- "13"
- "14"
- "15"
- "16"
sudo: false
before_script:
- npm install && npm install coveralls mocha-lcov-reporter --save-dev
2 changes: 2 additions & 0 deletions lib/mapper/filters.js
Original file line number Diff line number Diff line change
@@ -61,6 +61,8 @@ function treatValue(value) {
else if (value.includes(':')) return getCompareOperator(value)
else if (value === 'now') return normalizeDate(dateToString(new Date()), false)
else if (parseInt(value).toString() === value) return parseInt(value)
else if (value === 'null') return null
else if (value === 'undefined') return undefined
return value
}

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-strings-parser",
"version": "2.1.11",
"version": "2.1.13",
"description": "Middleware to transform query strings in a format that is recognized by the MongoDB, MySQL and other databases...",
"license": "MIT",
"main": "index.js",
@@ -23,6 +23,7 @@
"Adson Macêdo <agnsoft@hotmail.com>",
"Douglas Rafael <douglas.rafael@nutes.uepb.edu.br>",
"Jefferson Sampaio <jefferson.medeiros@nutes.uepb.edu.br>",
"João Pedro Miranda <berrytern@gmail.com>",
"Lucas Barbosa <lucas.barbosa@nutes.uepb.edu.br>"
],
"keywords": [