react-filter-search
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -9,4 +9,5 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
return Object.values(value).reduce(function (string, val) { | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : strOp(val)); | ||
}); | ||
var test = val !== null && val !== undefined; | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : test ? strOp(val) : ''); | ||
}, ''); | ||
} | ||
@@ -13,0 +14,0 @@ |
@@ -14,4 +14,5 @@ 'use strict'; | ||
return Object.values(value).reduce(function (string, val) { | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : strOp(val)); | ||
}); | ||
var test = val !== null && val !== undefined; | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : test ? strOp(val) : ''); | ||
}, ''); | ||
} | ||
@@ -18,0 +19,0 @@ |
{ | ||
"name": "react-filter-search", | ||
"version": "1.0.7", | ||
"description": | ||
"React Filter Search is a React component for filtering client-side data rendered to your UI.", | ||
"version": "1.0.8", | ||
"description": "React Filter Search is a React component for filtering client-side data rendered to your UI.", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"files": ["css", "es", "lib", "umd"], | ||
"files": [ | ||
"css", | ||
"es", | ||
"lib", | ||
"umd" | ||
], | ||
"scripts": { | ||
@@ -26,3 +30,4 @@ "build": "nwb build-react-component", | ||
"react": "^16.4.2", | ||
"react-dom": "^16.4.2" | ||
"react-dom": "^16.4.2", | ||
"whatwg-fetch": "^2.0.4" | ||
}, | ||
@@ -29,0 +34,0 @@ "author": "Joe Dodd", |
@@ -37,3 +37,3 @@ # React Filter Search 🔍 | ||
``` | ||
```javascript | ||
// | ||
@@ -40,0 +40,0 @@ /*-Other Imports-*/ |
/*! | ||
* react-filter-search v1.0.7 - https://github.com/joehdodd/react-filter-search | ||
* react-filter-search v1.0.8 - https://github.com/joehdodd/react-filter-search | ||
* MIT Licensed | ||
@@ -240,4 +240,5 @@ */ | ||
return Object.values(value).reduce(function (string, val) { | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : strOp(val)); | ||
}); | ||
var test = val !== null && val !== undefined; | ||
return string + ((typeof val === 'undefined' ? 'undefined' : _typeof(val)) === 'object' && val !== null ? strOp(objectValues(val)) : test ? strOp(val) : ''); | ||
}, ''); | ||
} | ||
@@ -244,0 +245,0 @@ |
/*! | ||
* react-filter-search v1.0.7 - https://github.com/joehdodd/react-filter-search | ||
* react-filter-search v1.0.8 - https://github.com/joehdodd/react-filter-search | ||
* MIT Licensed | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactSearchFilter=t(require("react")):e.ReactSearchFilter=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";n.r(t);var r=n(0),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function u(e){return e.toString().replace(/\s/g,"").toLowerCase()}function i(e,t){return t.filter(function(t){return!e.length||function e(t){return Object.values(t).reduce(function(t,n){return t+("object"===(void 0===n?"undefined":o(n))&&null!==n?u(e(n)):u(n))})}(t).includes(u(e))})}n.d(t,"default",function(){return c});var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.data;return this.props.renderResults(i(t,n))},t}(r.Component)}]).default}); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactSearchFilter=t(require("react")):e.ReactSearchFilter=t(e.React)}(window,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1)}([function(t,n){t.exports=e},function(e,t,n){e.exports=n(2)},function(e,t,n){"use strict";n.r(t);var r=n(0),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function u(e){return e.toString().replace(/\s/g,"").toLowerCase()}function i(e,t){return t.filter(function(t){return!e.length||function e(t){return Object.values(t).reduce(function(t,n){var r=null!==n&&void 0!==n;return t+("object"===(void 0===n?"undefined":o(n))&&null!==n?u(e(n)):r?u(n):"")},"")}(t).includes(u(e))})}n.d(t,"default",function(){return c});var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=e.value,n=e.data;return this.props.renderResults(i(t,n))},t}(r.Component)}]).default}); | ||
//# sourceMappingURL=react-filter-search.min.js.map |
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
31469
10
346
5