@nextgis/properties-filter
Advanced tools
Comparing version 0.28.3 to 0.29.0
@@ -6,2 +6,24 @@ # Change Log | ||
# [0.29.0](https://github.com/nextgis/nextgisweb_frontend/compare/v0.28.3...v0.29.0) (2020-03-22) | ||
### Bug Fixes | ||
* **properties-filte:** allow any chars for `like` and `ilike` search ([6b5b60d](https://github.com/nextgis/nextgisweb_frontend/commit/6b5b60d7985abb01093b649073c6e0a088f7fe0e)) | ||
* **properties-filter:** repair like and ilike operations ([ff208e0](https://github.com/nextgis/nextgisweb_frontend/commit/ff208e00f52fb592df32af95a6bd0cfdf04dfb65)) | ||
### chore | ||
* build; eslint ([97e3b07](https://github.com/nextgis/nextgisweb_frontend/commit/97e3b07da07b57373e6861ab6e2d6f9b60a6ec2c)) | ||
### BREAKING CHANGES | ||
* code formatting rules changed to prettier 2.0 compatibility | ||
## [0.28.3](https://github.com/nextgis/nextgisweb_frontend/compare/v0.28.2...v0.28.3) (2020-03-19) | ||
@@ -8,0 +30,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports.PropertiesFilter=r():e.PropertiesFilter=r()}("undefined"!=typeof self?self:this,(function(){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(r){return e[r]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=0)}([function(e,r,t){"use strict";t.r(r);var n=function(){return(n=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e}).apply(this,arguments)};function o(e,r,t){if((e=String(e))===(r=String(r)))return!0;if(t&&e.toUpperCase()===r.toUpperCase())return!0;var n=("^"+e+"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(n,t?"i":"").exec(r)}var u={gt:function(e,r){return e>r},lt:function(e,r){return e<r},ge:function(e,r){return e>=r},le:function(e,r){return e<=r},eq:function(e,r){return e===r},ne:function(e,r){return e!==r},in:function(e,r){return-1!==r.indexOf(e)},notin:function(e,r){return-1===r.indexOf(e)},like:function(e,r){return o(e,r)},ilike:function(e,r){return o(e,r,!0)}};function i(e){var r=e;return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function f(e,r){var t=n({},e.properties);return!!t&&(t.$id=e.id,c(t,r))}function c(e,r){var t="string"==typeof r[0]?r[0]:"all",n=function(r){if(i(r)){var t=r[0],n=r[1],o=r[2],f=u[n];return!f||f(e[t],o)}return c(e,r)},o=r.filter((function(e){return Array.isArray(e)}));return"any"===t?o.some(n):o.every(n)}t.d(r,"operationsAliases",(function(){return u})),t.d(r,"checkIfPropertyFilter",(function(){return i})),t.d(r,"featureFilter",(function(){return f})),t.d(r,"propertiesFilter",(function(){return c}))}])})); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("@nextgis/utils")):"function"==typeof define&&define.amd?define(["@nextgis/utils"],r):"object"==typeof exports?exports.PropertiesFilter=r(require("@nextgis/utils")):e.PropertiesFilter=r(e["@nextgis/utils"])}("undefined"!=typeof self?self:this,(function(e){return function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=1)}([function(r,t){r.exports=e},function(e,r,t){"use strict";t.r(r);var n=t(0),i=function(){return(i=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)};function u(e,r,t){if((r=String(r))===(e=String(e)))return!0;if(t&&r.toUpperCase()===e.toUpperCase())return!0;var i=("^"+Object(n.reEscape)(r)+"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(e)}var o={gt:function(e,r){return e>r},lt:function(e,r){return e<r},ge:function(e,r){return e>=r},le:function(e,r){return e<=r},eq:function(e,r){return e===r},ne:function(e,r){return e!==r},in:function(e,r){return-1!==r.indexOf(e)},notin:function(e,r){return-1===r.indexOf(e)},like:function(e,r){return u(e,r)},ilike:function(e,r){return u(e,r,!0)}};function f(e){var r=e;return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function c(e,r){var t=i({},e.properties);return!!t&&(t.$id=e.id,l(t,r))}function l(e,r){var t="string"==typeof r[0]?r[0]:"all",n=function(r){if(f(r)){var t=r[0],n=r[1],i=r[2],u=o[n];if(u){if("like"===n||"ilike"===n){var c="",p=t.replace(/^%?(\w+)%?$/,(function(r,n){return c=e[n],t.replace(n,i)}));return u(c,p)}return u(e[t],i)}return!1}return l(e,r)},i=r.filter((function(e){return Array.isArray(e)}));return"any"===t?i.some(n):i.every(n)}t.d(r,"operationsAliases",(function(){return o})),t.d(r,"checkIfPropertyFilter",(function(){return f})),t.d(r,"featureFilter",(function(){return c})),t.d(r,"propertiesFilter",(function(){return l}))}])})); | ||
//# sourceMappingURL=properties-filter.js.map |
{ | ||
"name": "@nextgis/properties-filter", | ||
"version": "0.28.3", | ||
"version": "0.29.0", | ||
"description": "Filtering objects by its properties using expressions", | ||
@@ -9,12 +9,3 @@ "main": "lib/properties-filter.js", | ||
"devDependencies": { | ||
"@nextgis/eslint-config": "^0.28.0", | ||
"@types/node": "^13.7.7", | ||
"eslint-loader": "^3.0.3", | ||
"rimraf": "^3.0.2", | ||
"style-loader": "^1.1.3", | ||
"svg-inline-loader": "^0.8.2", | ||
"ts-loader": "^6.2.1", | ||
"typescript": "^3.8.3", | ||
"webpack": "^4.41.6", | ||
"webpack-cli": "^3.3.11" | ||
"@nextgis/build-tools": "^0.29.0" | ||
}, | ||
@@ -51,5 +42,6 @@ "scripts": { | ||
"dependencies": { | ||
"@nextgis/utils": "^0.29.0", | ||
"geojson": "^0.5.0" | ||
}, | ||
"gitHead": "b72f6eb779baff8feb06e86b533f8d669c916025" | ||
"gitHead": "6f1416230bc088c8d0ad7e22887364889a8d2c44" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55099
1
24
2
3
1
+ Added@nextgis/utils@^0.29.0
+ Added@nextgis/utils@0.29.11(transitive)