react-cron-generator 1.3.3 → 1.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,8 +31,8 @@ var DailyCron = /*#__PURE__*/function (_Component) {
31
31
  }
32
32
 
33
33
  _createClass(DailyCron, [{
34
- key: "componentWillMount",
35
- value: function componentWillMount() {
34
+ key: "UNSAFE_componentWillMount",
35
+ value: function UNSAFE_componentWillMount() {
36
36
  this.state.value = this.props.value;
37
37
  this.state.every = this.props.value[3] !== '?';
38
38
  }
@@ -28,8 +28,8 @@ var HourlyCron = /*#__PURE__*/function (_Component) {
28
28
  }
29
29
 
30
30
  _createClass(HourlyCron, [{
31
- key: "componentWillMount",
32
- value: function componentWillMount() {
31
+ key: "UNSAFE_componentWillMount",
32
+ value: function UNSAFE_componentWillMount() {
33
33
  this.state.value = this.props.value;
34
34
 
35
35
  if (this.state.value[2].split('/')[1] || this.state.value[2] === '*') {
@@ -32,8 +32,8 @@ var MonthlyCron = /*#__PURE__*/function (_Component) {
32
32
  }
33
33
 
34
34
  _createClass(MonthlyCron, [{
35
- key: "componentWillMount",
36
- value: function componentWillMount() {
35
+ key: "UNSAFE_componentWillMount",
36
+ value: function UNSAFE_componentWillMount() {
37
37
  this.state.value = this.props.value;
38
38
 
39
39
  if (this.state.value[3] === 'L') {
package/dist/cron.js CHANGED
@@ -28,8 +28,8 @@ var Cron = /*#__PURE__*/function (_Component) {
28
28
  }
29
29
 
30
30
  _createClass(Cron, [{
31
- key: "componentWillMount",
32
- value: function componentWillMount() {
31
+ key: "UNSAFE_componentWillMount",
32
+ value: function UNSAFE_componentWillMount() {
33
33
  this.setValue(this.props.value);
34
34
 
35
35
  if (this.props.translateFn && !this.props.locale) {
@@ -41,8 +41,8 @@ var Cron = /*#__PURE__*/function (_Component) {
41
41
  }
42
42
  }
43
43
  }, {
44
- key: "componentWillReceiveProps",
45
- value: function componentWillReceiveProps(nextProps) {
44
+ key: "UNSAFE_componentWillReceiveProps",
45
+ value: function UNSAFE_componentWillReceiveProps(nextProps) {
46
46
  if (this.props.value !== nextProps.value && this.state.value) {
47
47
  var newVal = '';
48
48
  newVal = this.state.value.toString().replace(/,/g, ' ');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cron-generator",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Simple react component to generate cron expression",
5
5
  "keywords": [
6
6
  "React cron generator",