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 1.3.13 to 2.0.0

dist/index.js.map

46

package.json
{
"name": "react-cron-generator",
"version": "1.3.13",
"version": "2.0.0",
"description": "Simple react component to generate cron expression",

@@ -19,3 +19,3 @@ "keywords": [

"dependencies": {
"cronstrue": "^2.11.0"
"cronstrue": "^2.12.0"
},

@@ -32,22 +32,42 @@ "main": "dist/index.js",

},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/core": "^7.4.4",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.5.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "^3.0.0"
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^14.1.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.11.59",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"postcss": "^8.4.16",
"react-scripts": "5.0.1",
"rollup": "^2.79.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-typescript2": "^0.34.0",
"sass": "^1.54.9",
"typescript": "^4.8.3",
"web-vitals": "^2.1.4"
},
"homepage": "https://sojinantony01.github.io/react-cron-generator",
"scripts": {
"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": "rm -rf build && rollup -c",
"test": "react-scripts test",
"eject": "react-scripts eject",
"deploy": "gh-pages -d build",
"react-build": "CI=false && react-scripts build"
"react-build": "CI=false && react-scripts build",
"prepublishOnly": "npm run build"
},
"homepage": "https://sojinantony01.github.io/react-cron-generator",
"eslintConfig": {
"extends": "react-app"
"extends": [
"react-app",
"react-app/jest"
]
},

@@ -54,0 +74,0 @@ "license": "ISC",

@@ -9,7 +9,3 @@ # react-cron-generator

Make sure you have include bootstrap(4.x) in your project.
For old bootstrap(3.x) version support, please use cron generator version "1.2.12"
```

@@ -93,19 +89,8 @@ data = '* * * * * * *'

## Ref
Added `ref` to the component now you can access state and functions using ref.
## Release notes 2.x.x
1. Build Procedure updated
2. Updated to latest react(18)
3. Migrated to hooks and typescript
add the new prop ` onRef={ref => (this.cronGen = ref)} `
```
<Cron
onRef={ref => (this.cronGen = ref)}
onChange={(e)=> {this.setState({value:e}); console.log(e)}}
value={this.state.value}
showResultText={true}
showResultCron={true}
/>
```
[Sojin Antony](https://github.com/sojinantony01)

@@ -112,0 +97,0 @@

Sorry, the diff of this file is too big to display

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