@nextgis/properties-filter
Advanced tools
Comparing version 1.13.3 to 1.15.0
@@ -1,2 +0,2 @@ | ||
/** Bundle of @nextgis/properties-filter; version: 1.13.3; author: NextGIS */ | ||
/** Bundle of @nextgis/properties-filter; version: 1.15.0; author: NextGIS */ | ||
'use strict'; | ||
@@ -6,3 +6,3 @@ | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -9,0 +9,0 @@ |
@@ -1,17 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}); | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var r=function(){return(r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};function e(r,e,t){if((e=String(e))===(r=String(r)))return!0;if(t&&e.toUpperCase()===r.toUpperCase())return!0;var n,i="^".concat((n=e,n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(r)}var t={gt:function(r,e){return r>e},lt:function(r,e){return r<e},ge:function(r,e){return r>=e},le:function(r,e){return r<=e},eq:function(r,e){return r===e},ne:function(r,e){return r!==e},in:function(r,e){return-1!==e.indexOf(r)},notin:function(r,e){return-1===e.indexOf(r)},like:function(r,t){return e(r,t)},ilike:function(r,t){return e(r,t,!0)}};function n(r){return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function i(r,e){var u="string"==typeof e[0]?e[0]:"all",o=function(e){if(n(e)){var u=e[0],o=e[1],f=e[2],c=t[o];if(c){if(("like"===o||"ilike"===o)&&"string"==typeof u){var p="",a=u.replace(/^%?(\w+)%?$/,(function(e,t){return p=r[t],u.replace(t,f)}));return c(p,a)}return c(r[u],f)}return!1}return i(r,e)},f=e.filter((function(r){return Array.isArray(r)}));return"any"===u?f.some(o):f.every(o)}exports.checkIfPropertyFilter=function(r){return n(r)},exports.featureFilter=function(e,t){var n=r({},e.properties);return!!n&&(n.$id=e.id,i(n,t))},exports.isPropertyFilter=n,exports.propertiesFilter=i; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var i in e=arguments[t])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},r.apply(this,arguments)};function e(r,e,t){if((e=String(e))===(r=String(r)))return!0;if(t&&e.toUpperCase()===r.toUpperCase())return!0;var n,i="^".concat((n=e,n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(r)}var t={gt:function(r,e){return r>e},lt:function(r,e){return r<e},ge:function(r,e){return r>=e},le:function(r,e){return r<=e},eq:function(r,e){return r===e},ne:function(r,e){return r!==e},in:function(r,e){return-1!==e.indexOf(r)},notin:function(r,e){return-1===e.indexOf(r)},like:function(r,t){return e(r,t)},ilike:function(r,t){return e(r,t,!0)}};function n(r){return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function i(r,e){var u="string"==typeof e[0]?e[0]:"all",o=function(e){if(n(e)){var u=e[0],o=e[1],f=e[2],c=t[o];if(c){if(("like"===o||"ilike"===o)&&"string"==typeof u){var p="",a=u.replace(/^%?(\w+)%?$/,(function(e,t){return p=r[t],u.replace(t,f)}));return c(p,a)}return c(r[u],f)}return!1}return i(r,e)},f=e.filter((function(r){return Array.isArray(r)}));return"any"===u?f.some(o):f.every(o)}exports.checkIfPropertyFilter=function(r){return n(r)},exports.featureFilter=function(e,t){var n=r({},e.properties);return!!n&&(n.$id=e.id,i(n,t))},exports.isPropertyFilter=n,exports.propertiesFilter=i; | ||
//# sourceMappingURL=properties-filter.cjs.prod.js.map |
@@ -1,3 +0,3 @@ | ||
/** Bundle of @nextgis/properties-filter; version: 1.13.3; author: NextGIS */ | ||
/*! ***************************************************************************** | ||
/** Bundle of @nextgis/properties-filter; version: 1.15.0; author: NextGIS */ | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -4,0 +4,0 @@ |
@@ -1,16 +0,2 @@ | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var n=function(){return(n=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)};function r(n,r,t){if((r=String(r))===(n=String(n)))return!0;if(t&&r.toUpperCase()===n.toUpperCase())return!0;var e,i="^".concat((e=r,e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(n)}var t={gt:function(n,r){return n>r},lt:function(n,r){return n<r},ge:function(n,r){return n>=r},le:function(n,r){return n<=r},eq:function(n,r){return n===r},ne:function(n,r){return n!==r},in:function(n,r){return-1!==r.indexOf(n)},notin:function(n,r){return-1===r.indexOf(n)},like:function(n,t){return r(n,t)},ilike:function(n,t){return r(n,t,!0)}};function e(n){return 3===n.length&&"string"==typeof n[0]&&"string"==typeof n[1]}function i(n){return e(n)}function u(r,t){var e=n({},r.properties);return!!e&&(e.$id=r.id,o(e,t))}function o(n,r){var i="string"==typeof r[0]?r[0]:"all",u=function(r){if(e(r)){var i=r[0],u=r[1],f=r[2],c=t[u];if(c){if(("like"===u||"ilike"===u)&&"string"==typeof i){var a="",p=i.replace(/^%?(\w+)%?$/,(function(r,t){return a=n[t],i.replace(t,f)}));return c(a,p)}return c(n[i],f)}return!1}return o(n,r)},f=r.filter((function(n){return Array.isArray(n)}));return"any"===i?f.some(u):f.every(u)}export{i as checkIfPropertyFilter,u as featureFilter,e as isPropertyFilter,o as propertiesFilter}; | ||
var n=function(){return n=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},n.apply(this,arguments)};function r(n,r,t){if((r=String(r))===(n=String(n)))return!0;if(t&&r.toUpperCase()===n.toUpperCase())return!0;var e,i="^".concat((e=r,e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(n)}var t={gt:function(n,r){return n>r},lt:function(n,r){return n<r},ge:function(n,r){return n>=r},le:function(n,r){return n<=r},eq:function(n,r){return n===r},ne:function(n,r){return n!==r},in:function(n,r){return-1!==r.indexOf(n)},notin:function(n,r){return-1===r.indexOf(n)},like:function(n,t){return r(n,t)},ilike:function(n,t){return r(n,t,!0)}};function e(n){return 3===n.length&&"string"==typeof n[0]&&"string"==typeof n[1]}function i(n){return e(n)}function u(r,t){var e=n({},r.properties);return!!e&&(e.$id=r.id,o(e,t))}function o(n,r){var i="string"==typeof r[0]?r[0]:"all",u=function(r){if(e(r)){var i=r[0],u=r[1],f=r[2],c=t[u];if(c){if(("like"===u||"ilike"===u)&&"string"==typeof i){var a="",p=i.replace(/^%?(\w+)%?$/,(function(r,t){return a=n[t],i.replace(t,f)}));return c(a,p)}return c(n[i],f)}return!1}return o(n,r)},f=r.filter((function(n){return Array.isArray(n)}));return"any"===i?f.some(u):f.every(u)}export{i as checkIfPropertyFilter,u as featureFilter,e as isPropertyFilter,o as propertiesFilter}; | ||
//# sourceMappingURL=properties-filter.esm-browser.prod.js.map |
@@ -1,3 +0,3 @@ | ||
/** Bundle of @nextgis/properties-filter; version: 1.13.3; author: NextGIS */ | ||
/*! ***************************************************************************** | ||
/** Bundle of @nextgis/properties-filter; version: 1.15.0; author: NextGIS */ | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -4,0 +4,0 @@ |
@@ -1,16 +0,2 @@ | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */ | ||
var n=function(){return(n=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n}).apply(this,arguments)};function r(n,r,t){if((r=String(r))===(n=String(n)))return!0;if(t&&r.toUpperCase()===n.toUpperCase())return!0;var e,i="^".concat((e=r,e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(n)}var t={gt:function(n,r){return n>r},lt:function(n,r){return n<r},ge:function(n,r){return n>=r},le:function(n,r){return n<=r},eq:function(n,r){return n===r},ne:function(n,r){return n!==r},in:function(n,r){return-1!==r.indexOf(n)},notin:function(n,r){return-1===r.indexOf(n)},like:function(n,t){return r(n,t)},ilike:function(n,t){return r(n,t,!0)}};function e(n){return 3===n.length&&"string"==typeof n[0]&&"string"==typeof n[1]}function i(n){return e(n)}function u(r,t){var e=n({},r.properties);return!!e&&(e.$id=r.id,o(e,t))}function o(n,r){var i="string"==typeof r[0]?r[0]:"all",u=function(r){if(e(r)){var i=r[0],u=r[1],f=r[2],c=t[u];if(c){if(("like"===u||"ilike"===u)&&"string"==typeof i){var a="",p=i.replace(/^%?(\w+)%?$/,(function(r,t){return a=n[t],i.replace(t,f)}));return c(a,p)}return c(n[i],f)}return!1}return o(n,r)},f=r.filter((function(n){return Array.isArray(n)}));return"any"===i?f.some(u):f.every(u)}export{i as checkIfPropertyFilter,u as featureFilter,e as isPropertyFilter,o as propertiesFilter}; | ||
var n=function(){return n=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var i in r=arguments[t])Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);return n},n.apply(this,arguments)};function r(n,r,t){if((r=String(r))===(n=String(n)))return!0;if(t&&r.toUpperCase()===n.toUpperCase())return!0;var e,i="^".concat((e=r,e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,t?"i":"").exec(n)}var t={gt:function(n,r){return n>r},lt:function(n,r){return n<r},ge:function(n,r){return n>=r},le:function(n,r){return n<=r},eq:function(n,r){return n===r},ne:function(n,r){return n!==r},in:function(n,r){return-1!==r.indexOf(n)},notin:function(n,r){return-1===r.indexOf(n)},like:function(n,t){return r(n,t)},ilike:function(n,t){return r(n,t,!0)}};function e(n){return 3===n.length&&"string"==typeof n[0]&&"string"==typeof n[1]}function i(n){return e(n)}function u(r,t){var e=n({},r.properties);return!!e&&(e.$id=r.id,o(e,t))}function o(n,r){var i="string"==typeof r[0]?r[0]:"all",u=function(r){if(e(r)){var i=r[0],u=r[1],f=r[2],c=t[u];if(c){if(("like"===u||"ilike"===u)&&"string"==typeof i){var a="",p=i.replace(/^%?(\w+)%?$/,(function(r,t){return a=n[t],i.replace(t,f)}));return c(a,p)}return c(n[i],f)}return!1}return o(n,r)},f=r.filter((function(n){return Array.isArray(n)}));return"any"===i?f.some(u):f.every(u)}export{i as checkIfPropertyFilter,u as featureFilter,e as isPropertyFilter,o as propertiesFilter}; | ||
//# sourceMappingURL=properties-filter.esm-bundler.prod.js.map |
@@ -1,6 +0,6 @@ | ||
/** Bundle of @nextgis/properties-filter; version: 1.13.3; author: NextGIS */ | ||
/** Bundle of @nextgis/properties-filter; version: 1.15.0; author: NextGIS */ | ||
var PropertiesFilter = (function (exports) { | ||
'use strict'; | ||
/*! ***************************************************************************** | ||
/****************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
@@ -7,0 +7,0 @@ |
@@ -1,16 +0,2 @@ | ||
var PropertiesFilter=function(r){"use strict"; | ||
/*! ***************************************************************************** | ||
Copyright (c) Microsoft Corporation. | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH | ||
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY | ||
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, | ||
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM | ||
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR | ||
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR | ||
PERFORMANCE OF THIS SOFTWARE. | ||
***************************************************************************** */var e=function(){return(e=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r}).apply(this,arguments)};function n(r,e,n){if((e=String(e))===(r=String(r)))return!0;if(n&&e.toUpperCase()===r.toUpperCase())return!0;var t,i="^".concat((t=e,t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,n?"i":"").exec(r)}var t={gt:function(r,e){return r>e},lt:function(r,e){return r<e},ge:function(r,e){return r>=e},le:function(r,e){return r<=e},eq:function(r,e){return r===e},ne:function(r,e){return r!==e},in:function(r,e){return-1!==e.indexOf(r)},notin:function(r,e){return-1===e.indexOf(r)},like:function(r,e){return n(r,e)},ilike:function(r,e){return n(r,e,!0)}};function i(r){return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function u(r,e){var n="string"==typeof e[0]?e[0]:"all",o=function(e){if(i(e)){var n=e[0],o=e[1],f=e[2],c=t[o];if(c){if(("like"===o||"ilike"===o)&&"string"==typeof n){var a="",l=n.replace(/^%?(\w+)%?$/,(function(e,t){return a=r[t],n.replace(t,f)}));return c(a,l)}return c(r[n],f)}return!1}return u(r,e)},f=e.filter((function(r){return Array.isArray(r)}));return"any"===n?f.some(o):f.every(o)}return r.checkIfPropertyFilter=function(r){return i(r)},r.featureFilter=function(r,n){var t=e({},r.properties);return!!t&&(t.$id=r.id,u(t,n))},r.isPropertyFilter=i,r.propertiesFilter=u,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); | ||
var PropertiesFilter=function(r){"use strict";var e=function(){return e=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i]);return r},e.apply(this,arguments)};function n(r,e,n){if((e=String(e))===(r=String(r)))return!0;if(n&&e.toUpperCase()===r.toUpperCase())return!0;var t,i="^".concat((t=e,t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")),"$").replace(/%/g,".*").replace("_",".");return null!==new RegExp(i,n?"i":"").exec(r)}var t={gt:function(r,e){return r>e},lt:function(r,e){return r<e},ge:function(r,e){return r>=e},le:function(r,e){return r<=e},eq:function(r,e){return r===e},ne:function(r,e){return r!==e},in:function(r,e){return-1!==e.indexOf(r)},notin:function(r,e){return-1===e.indexOf(r)},like:function(r,e){return n(r,e)},ilike:function(r,e){return n(r,e,!0)}};function i(r){return 3===r.length&&"string"==typeof r[0]&&"string"==typeof r[1]}function u(r,e){var n="string"==typeof e[0]?e[0]:"all",o=function(e){if(i(e)){var n=e[0],o=e[1],f=e[2],c=t[o];if(c){if(("like"===o||"ilike"===o)&&"string"==typeof n){var a="",l=n.replace(/^%?(\w+)%?$/,(function(e,t){return a=r[t],n.replace(t,f)}));return c(a,l)}return c(r[n],f)}return!1}return u(r,e)},f=e.filter((function(r){return Array.isArray(r)}));return"any"===n?f.some(o):f.every(o)}return r.checkIfPropertyFilter=function(r){return i(r)},r.featureFilter=function(r,n){var t=e({},r.properties);return!!t&&(t.$id=r.id,u(t,n))},r.isPropertyFilter=i,r.propertiesFilter=u,Object.defineProperty(r,"__esModule",{value:!0}),r}({}); | ||
//# sourceMappingURL=properties-filter.global.prod.js.map |
{ | ||
"name": "@nextgis/properties-filter", | ||
"version": "1.13.3", | ||
"version": "1.15.0", | ||
"description": "Filtering objects by its properties using expressions", | ||
@@ -11,7 +11,7 @@ "main": "index.js", | ||
"dependencies": { | ||
"@nextgis/utils": "^1.13.3", | ||
"@nextgis/utils": "^1.15.0", | ||
"geojson": "^0.5.0" | ||
}, | ||
"devDependencies": { | ||
"@nextgis/build-tools": "^1.12.0" | ||
"@nextgis/build-tools": "^1.15.0" | ||
}, | ||
@@ -52,3 +52,3 @@ "buildOptions": { | ||
}, | ||
"gitHead": "2eef655c333f9a9505f5b475c893dee1c126a740" | ||
"gitHead": "1f2b68836c1e3e367bdb1a8c2ff3652e704aae99" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
82950
536
Updated@nextgis/utils@^1.15.0