sitemap-b-framework
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -15,4 +15,4 @@ const fs = require('fs'); | ||
this.config = config; | ||
if (this.config.build.cron && !cron.validate(this.config.build.cron)) console.error('Invalid Build Cron Expression , Auto Build Will Not Trigger'); | ||
if (this.config.backup.cron && !cron.validate(this.config.backup.cron)) console.error('Invalid Backup Cron Expression , Auto Bakcup Will Not Trigger'); | ||
if (this.config.build && this.config.build.cron && !cron.validate(this.config.build.cron)) console.error('Invalid Build Cron Expression , Auto Build Will Not Trigger'); | ||
if (this.config.backup && this.config.backup.cron && !cron.validate(this.config.backup.cron)) console.error('Invalid Backup Cron Expression , Auto Bakcup Will Not Trigger'); | ||
if (!this.config.maxLinksPerSitemap || parseInt(this.config.maxLinksPerSitemap) < 1 || parseInt(this.config.maxLinksPerSitemap) > 50000) this.config.maxLinksPerSitemap = 50000; | ||
@@ -288,3 +288,3 @@ if (!this.config.path) this.config.path = './'; | ||
async DeployToBucket() { | ||
if (this.config.build.deployToBucket) { | ||
if (this.config.build && this.config.build.deployToBucket) { | ||
let modeArr = Object.keys(this.config.build.deployToBucket); | ||
@@ -348,3 +348,3 @@ if (modeArr.length < 1) return true; | ||
async BackupToBucket() { | ||
if (this.config.backup.bakcupToBucket) { | ||
if (this.config.backup && this.config.backup.bakcupToBucket) { | ||
let modeArr = Object.keys(this.config.backup.bakcupToBucket); | ||
@@ -351,0 +351,0 @@ if (modeArr.length < 1) return true; |
{ | ||
"name": "sitemap-b-framework", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Advanced Sitemap Management, Building, Deployment Framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
29491