react-cron-generator 1.3.2 → 1.3.3

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.
package/README.md CHANGED
@@ -62,7 +62,7 @@ export default App;
62
62
  | Prop | Description | Default | Mandatory
63
63
  | --- | --- | -- | -- |
64
64
  | value | cron expression | | No |
65
- | onChange | | | Yes
65
+ | onChange | have 2 arguments, 1st is cron value and 2nd is cron result text from cronstrue | | Yes
66
66
  | showResultText | show in readable text format | false | No
67
67
  | showResultCron | show cron expression | false | No
68
68
  | translateFn | translate function callback | method | No
package/dist/cron.js CHANGED
@@ -145,7 +145,7 @@ var Cron = /*#__PURE__*/function (_Component) {
145
145
  var newVal = '';
146
146
  newVal = val.toString().replace(/,/g, ' ');
147
147
  newVal = newVal.replace(/!/g, ',');
148
- this.props.onChange(newVal);
148
+ this.props.onChange(newVal, this.getVal());
149
149
  }
150
150
  }, {
151
151
  key: "getVal",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cron-generator",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "description": "Simple react component to generate cron expression",
5
5
  "keywords": [
6
6
  "React cron generator",
@@ -41,7 +41,7 @@
41
41
  "cronstrue": "^1.72.0",
42
42
  "react": "^16.8.6",
43
43
  "react-dom": "^16.8.6"
44
- },
44
+ },
45
45
  "homepage": "https://sojinantony01.github.io/react-cron-generator",
46
46
  "scripts": {
47
47
  "start": "react-scripts start",
@@ -49,7 +49,7 @@
49
49
  "test": "react-scripts test",
50
50
  "eject": "react-scripts eject",
51
51
  "deploy": "gh-pages -d build",
52
- "react-build": "react-scripts build"
52
+ "react-build": "CI=false && react-scripts build"
53
53
  },
54
54
  "eslintConfig": {
55
55
  "extends": "react-app"