react-cron-generator
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -7,11 +7,11 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
var Yearly = /*#__PURE__*/function (_Component) { | ||
_inherits(Yearly, _Component); | ||
var YearlyCron = /*#__PURE__*/function (_Component) { | ||
_inherits(YearlyCron, _Component); | ||
var _super = _createSuper(Yearly); | ||
var _super = _createSuper(YearlyCron); | ||
function Yearly(props) { | ||
function YearlyCron(props) { | ||
var _this; | ||
_classCallCheck(this, Yearly); | ||
_classCallCheck(this, YearlyCron); | ||
@@ -23,3 +23,3 @@ _this = _super.call(this, props); | ||
_createClass(Yearly, [{ | ||
_createClass(YearlyCron, [{ | ||
key: "render", | ||
@@ -31,5 +31,5 @@ value: function render() { | ||
return Yearly; | ||
return YearlyCron; | ||
}(Component); | ||
export { Yearly as default }; | ||
export { YearlyCron as default }; |
@@ -134,3 +134,11 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck"; | ||
var CronComponent = metadata[index].component; | ||
var selectedMetaData = metadata.find(function (data) { | ||
return data.component.name === tab + 'Cron'; | ||
}); | ||
if (!selectedMetaData) { | ||
throw new Error('Value does not match any available headers.'); | ||
} | ||
var CronComponent = selectedMetaData.component; | ||
return /*#__PURE__*/React.createElement(CronComponent, { | ||
@@ -137,0 +145,0 @@ value: this.state.value, |
{ | ||
"name": "react-cron-generator", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Simple react component to generate cron expression", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"start": "react-scripts start", | ||
"build": "rm -rf dist && NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__", | ||
"build": " NODE_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__", | ||
"test": "react-scripts test", | ||
@@ -51,0 +51,0 @@ "eject": "react-scripts eject", |
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
38207
917