diff --git a/.babelrc b/.babelrc index f468400..721573a 100644 --- a/.babelrc +++ b/.babelrc @@ -11,10 +11,12 @@ } ] ], - "env": { "production": { - "plugins": [["react-remove-properties", { "properties": ["data-test"] }]] + "plugins": [ + ["react-remove-properties", { "properties": ["data-test"] }], + "external-helpers" + ] }, "test": { "presets": ["es2015", "react"] diff --git a/dist/index.js b/dist/index.js index 589bec5..4bba2d2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1 @@ -"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var React=require("react"),React__default=_interopDefault(React),PropTypes=_interopDefault(require("prop-types")),format=_interopDefault(require("simple-format")),includes=_interopDefault(require("lodash.includes")),debounce=_interopDefault(require("lodash.debounce")),isEqual=_interopDefault(require("lodash.isequal")),_typeof="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},isDataObject=function(e,t,l){return"object"===(void 0===e?"undefined":_typeof(e))&&e.hasOwnProperty(t)&&e.hasOwnProperty(l)},generateGuid=function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},hasItem=function(e,t,l,r,n){if(!e||!t)return!1;if(Array.isArray(e)){if(isDataObject(t,l,r)){var o=e.findIndex(function(e){return e[l]===t[l]});return n?o:-1>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],n=0;n>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o