jsreport-scheduling
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,0 +0,0 @@ var main = require('./lib/scheduling.js') |
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ var CronTime = require('cron').CronTime |
@@ -0,0 +0,0 @@ /*! |
{ | ||
"name": "jsreport-scheduling", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "jsreport extension for scheduling background rendering jobs", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -0,0 +0,0 @@ # jsreport-scheduling |
@@ -0,0 +0,0 @@ import React, { Component } from 'react' |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ import ScheduleEditor from './ScheduleEditor.js' |
@@ -0,0 +0,0 @@ { |
@@ -0,0 +0,0 @@ import React, { Component } from 'react' |
@@ -62,5 +62,11 @@ import React, { Component } from 'react' | ||
// if we couldn't parse the cron for the UI | ||
// reset values and enable the raw expression input | ||
cronInfo = this.onPeriodChange('', true) | ||
cronInfo.useExpression = true | ||
// reset values and enable the raw expression input. | ||
// false is returned when we want to still show the value in the UI editor | ||
if (cronInfo === false) { | ||
cronInfo = this.onPeriodChange('', true) | ||
cronInfo.useExpression = false | ||
} else { | ||
cronInfo = this.onPeriodChange('', true) | ||
cronInfo.useExpression = true | ||
} | ||
} | ||
@@ -72,2 +78,6 @@ | ||
getCronInformation (cron) { | ||
if (cron == null || cron === '') { | ||
return false | ||
} | ||
try { | ||
@@ -282,3 +292,3 @@ const cronExp = new CronBuilder(cron) | ||
let cron | ||
let cron = false | ||
@@ -329,3 +339,3 @@ if (stateToSet && stateToSet.selectedPeriod !== undefined) { | ||
if (cron == null) { | ||
if (cron === false) { | ||
cron = cronExp.build() | ||
@@ -332,0 +342,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4593
343770
2