Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cron-generator

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cron-generator - npm Package Compare versions

Comparing version 2.0.11 to 2.0.12

5

package.json
{
"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",

39

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc