react-cron-generator
Advanced tools
Comparing version
{ | ||
"name": "react-cron-generator", | ||
"version": "2.0.11", | ||
"version": "2.0.12", | ||
"description": "Simple react component to generate cron expression", | ||
@@ -46,2 +46,3 @@ "keywords": [ | ||
"@types/react-dom": "^18.0.6", | ||
"cypress": "^13.8.1", | ||
"postcss": "^8.4.16", | ||
@@ -61,2 +62,4 @@ "react-scripts": "5.0.1", | ||
"test": "react-scripts test", | ||
"cy:open": "cypress open", | ||
"cy:run": "cypress run --browser chrome", | ||
"eject": "react-scripts eject", | ||
@@ -63,0 +66,0 @@ "deploy": "gh-pages -d build", |
@@ -12,4 +12,6 @@ # react-cron-generator | ||
<img src="https://img.shields.io/npm/l/react-cron-generator.svg" alt="license"> | ||
</a> | ||
</a> <span>E2E tests passing.</span> | ||
``` | ||
@@ -31,3 +33,3 @@ data = '* * * * * * *' | ||
``` | ||
import React, { Component } from 'react' | ||
import React, { useState } from 'react' | ||
import Cron from 'react-cron-generator' | ||
@@ -37,24 +39,17 @@ import 'react-cron-generator/dist/cron-builder.css' | ||
class App extends Component { | ||
const App = () => { | ||
const [state, setState] = useState<State>({}); | ||
constructor(props) { | ||
super(props); | ||
this.state = { | ||
}; | ||
} | ||
return ( | ||
<Cron | ||
onChange={(e, text) => { | ||
setState({ value: e }); | ||
}} | ||
value={state.value} | ||
showResultText={true} | ||
showResultCron={true} | ||
/> | ||
); | ||
}; | ||
render() { | ||
return (<div> | ||
<Cron | ||
onChange={(e)=> {this.setState({value:e});}} | ||
value={this.state.value} | ||
showResultText={true} | ||
showResultCron={true} | ||
/> | ||
</div>) | ||
} | ||
} | ||
export default App; | ||
@@ -61,0 +56,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
888894
0.29%8349
0.3%20
5.26%104
-4.59%