cronstrue 2.26.0 → 2.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cronstrue-i18n.js +213 -21
- package/dist/cronstrue-i18n.min.js +1 -1
- package/dist/cronstrue.js +22 -20
- package/dist/cronstrue.min.js +1 -1
- package/dist/i18n/allLocales.d.ts +1 -0
- package/dist/i18n/locales/vi.d.ts +56 -0
- package/locales/vi.js +287 -0
- package/locales/vi.min.js +1 -0
- package/package.json +3 -3
package/dist/cronstrue.js
CHANGED
|
@@ -409,31 +409,18 @@ var ExpressionDescriptor = (function () {
|
|
|
409
409
|
description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s, form) {
|
|
410
410
|
var exp = s;
|
|
411
411
|
if (s.indexOf("#") > -1) {
|
|
412
|
-
exp = s.
|
|
412
|
+
exp = s.substring(0, s.indexOf("#"));
|
|
413
413
|
}
|
|
414
414
|
else if (s.indexOf("L") > -1) {
|
|
415
415
|
exp = exp.replace("L", "");
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
var description = _this.i18n.daysOfTheWeekInCase
|
|
418
418
|
? _this.i18n.daysOfTheWeekInCase(form)[parseInt(exp)]
|
|
419
419
|
: daysOfWeekNames[parseInt(exp)];
|
|
420
|
-
}, function (s) {
|
|
421
|
-
if (parseInt(s) == 1) {
|
|
422
|
-
return "";
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
|
|
426
|
-
}
|
|
427
|
-
}, function (s) {
|
|
428
|
-
var beginFrom = s.substring(0, s.indexOf("-"));
|
|
429
|
-
var domSpecified = _this.expressionParts[3] != "*";
|
|
430
|
-
return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
|
|
431
|
-
}, function (s) {
|
|
432
|
-
var format = null;
|
|
433
420
|
if (s.indexOf("#") > -1) {
|
|
421
|
+
var dayOfWeekOfMonthDescription = null;
|
|
434
422
|
var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
|
|
435
423
|
var dayOfWeekNumber = s.substring(0, s.indexOf("#"));
|
|
436
|
-
var dayOfWeekOfMonthDescription = null;
|
|
437
424
|
switch (dayOfWeekOfMonthNumber) {
|
|
438
425
|
case "1":
|
|
439
426
|
dayOfWeekOfMonthDescription = _this.i18n.first(dayOfWeekNumber);
|
|
@@ -451,10 +438,25 @@ var ExpressionDescriptor = (function () {
|
|
|
451
438
|
dayOfWeekOfMonthDescription = _this.i18n.fifth(dayOfWeekNumber);
|
|
452
439
|
break;
|
|
453
440
|
}
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
441
|
+
description = dayOfWeekOfMonthDescription + " " + description;
|
|
442
|
+
}
|
|
443
|
+
return description;
|
|
444
|
+
}, function (s) {
|
|
445
|
+
if (parseInt(s) == 1) {
|
|
446
|
+
return "";
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(s), s);
|
|
450
|
+
}
|
|
451
|
+
}, function (s) {
|
|
452
|
+
var beginFrom = s.substring(0, s.indexOf("-"));
|
|
453
|
+
var domSpecified = _this.expressionParts[3] != "*";
|
|
454
|
+
return domSpecified ? _this.i18n.commaAndX0ThroughX1(beginFrom) : _this.i18n.commaX0ThroughX1(beginFrom);
|
|
455
|
+
}, function (s) {
|
|
456
|
+
var format = null;
|
|
457
|
+
if (s.indexOf("#") > -1) {
|
|
458
|
+
var dayOfWeekOfMonthNumber = s.substring(s.indexOf("#") + 1);
|
|
459
|
+
format = _this.i18n.commaOnThe(dayOfWeekOfMonthNumber).trim() + _this.i18n.spaceX0OfTheMonth();
|
|
458
460
|
}
|
|
459
461
|
else if (s.indexOf("L") > -1) {
|
|
460
462
|
format = _this.i18n.commaOnTheLastX0OfTheMonth(s.replace("L", ""));
|
package/dist/cronstrue.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(()=>(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=o},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),o=n(794),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,h=r.monthStartIndexZero,p=void 0!==h&&h,f=r.use24HourTimeFormat,l=r.locale;return new t(e,{throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:p,use24HourTimeFormat:f,locale:void 0===l?null:l}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+i+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(this.options.throwExceptionOnParseError)throw"".concat(e);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===h)return i;i&&h&&(i+=", "),i+=h}else{var p=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;n=n.substring(0,i)+":59"+n.substring(i+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;return n.indexOf("#")>-1?o=n.substr(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L","")),t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[parseInt(o)]:e[parseInt(o)]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1),o=e.substring(0,e.indexOf("#")),i=null;switch(r){case"1":i=t.i18n.first(o);break;case"2":i=t.i18n.second(o);break;case"3":i=t.i18n.third(o);break;case"4":i=t.i18n.fourth(o);break;case"5":i=t.i18n.fifth(o)}n=t.i18n.commaOnThe(r)+i+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L",""));else{n="*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e)}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||h)if(h){for(var p=t.split(","),f="",l=0;l<p.length;l++)if(l>0&&p.length>2&&(f+=",",l<p.length-1&&(f+=" ")),l>0&&p.length>1&&(l==p.length-1||2==p.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),p[l].indexOf("/")>-1||p[l].indexOf("-")>-1){var y=p[l].indexOf("-")>-1&&-1==p[l].indexOf("/"),m=this.getSegmentDescription(p[l],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(m=m.replace(", ","")),f+=m}else f+=u?this.getSegmentDescription(p[l],e,n,o,i,a):n(p[l]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){p=t.split("/");if(s=r.StringUtilities.format(o(p[1]),p[1]),p[0].indexOf("-")>-1){var d=this.generateRangeSegmentDescription(p[0],i,n);0!=d.indexOf(", ")&&(s+=", "),s+=d}else if(-1==p[0].indexOf("*")){var g=r.StringUtilities.format(a(p[0]),n(p[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t),o="",i=!1;this.options.use24HourTimeFormat||(o=(i=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(i?o:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(i?"":o)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),o=n(336);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("cronstrue",[],e):"object"==typeof exports?exports.cronstrue=e():t.cronstrue=e()}(globalThis,(()=>(()=>{"use strict";var t={794:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CronParser=void 0;var r=n(586),o=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=n}return t.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},t.prototype.extractParts=function(t){if(!this.expression)throw new Error("Expression is empty");var e=t.trim().split(/[ ]+/);if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(1==e.length?"":"s",". At least 5 parts are required."));if(5==e.length)e.unshift(""),e.push("");else if(6==e.length){/\d{4}$/.test(e[5])||"?"==e[4]||"?"==e[2]?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},t.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),0==t[0].indexOf("0/")&&(t[0]=t[0].replace("0/","*/")),0==t[1].indexOf("0/")&&(t[1]=t[1].replace("0/","*/")),0==t[2].indexOf("0/")&&(t[2]=t[2].replace("0/","*/")),0==t[3].indexOf("1/")&&(t[3]=t[3].replace("1/","*/")),0==t[4].indexOf("1/")&&(t[4]=t[4].replace("1/","*/")),0==t[6].indexOf("1/")&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.dayOfWeekStartIndexZero?"7"==n&&(r="0"):r=(parseInt(n)-1).toString(),t.replace(n,r)})),"L"==t[5]&&(t[5]="6"),"?"==t[3]&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)t[5]=t[5].replace(new RegExp(r,"gi"),n[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,(function(t){var n=t.replace(/\D/,""),r=n;return e.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),t.replace(n,r)}));var o={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var i in o)t[4]=t[4].replace(new RegExp(i,"gi"),o[i].toString());"0"==t[0]&&(t[0]=""),/\*|\-|\,|\//.test(t[2])||!/\*|\//.test(t[1])&&!/\*|\//.test(t[0])||(t[2]+="-".concat(t[2]));for(var a=0;a<t.length;a++)if(-1!=t[a].indexOf(",")&&(t[a]=t[a].split(",").filter((function(t){return""!==t})).join(",")||"*"),"*/1"==t[a]&&(t[a]="*"),t[a].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[a])){var s=null;switch(a){case 4:s="12";break;case 5:s="6";break;case 6:s="9999";break;default:s=null}if(null!==s){var u=t[a].split("/");t[a]="".concat(u[0],"-").concat(s,"/").concat(u[1])}}},t.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},t.prototype.validateRange=function(t){r.default.secondRange(t[0]),r.default.minuteRange(t[1]),r.default.hourRange(t[2]),r.default.dayOfMonthRange(t[3]),r.default.monthRange(t[4],this.monthStartIndexZero),r.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},t.prototype.assertNoInvalidCharacters=function(t,e){var n=e.match(/[A-KM-VX-Z]+/gi);if(n&&n.length)throw new Error("".concat(t," part contains invalid values: '").concat(n.toString(),"'"))},t}();e.CronParser=o},728:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExpressionDescriptor=void 0;var r=n(910),o=n(794),i=function(){function t(e,n){if(this.expression=e,this.options=n,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],void 0===n.use24HourTimeFormat&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,n){var r=void 0===n?{}:n,o=r.throwExceptionOnParseError,i=void 0===o||o,a=r.verbose,s=void 0!==a&&a,u=r.dayOfWeekStartIndexZero,c=void 0===u||u,h=r.monthStartIndexZero,p=void 0!==h&&h,f=r.use24HourTimeFormat,l=r.locale;return new t(e,{throwExceptionOnParseError:i,verbose:s,dayOfWeekStartIndexZero:c,monthStartIndexZero:p,use24HourTimeFormat:f,locale:void 0===l?null:l}).getFullDescription()},t.initialize=function(e,n){void 0===n&&(n="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=n,e.load(t.locales)},t.prototype.getFullDescription=function(){var t="";try{var e=new o.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=e.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),i=this.getMonthDescription();t+=n+r+this.getDayOfWeekDescription()+i+this.getYearDescription(),t=(t=this.transformVerbosity(t,!!this.options.verbose)).charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(this.options.throwExceptionOnParseError)throw"".concat(e);t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD()}return t},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],n=this.expressionParts[1],o=this.expressionParts[2],i="";if(r.StringUtilities.containsAny(n,t.specialCharacters)||r.StringUtilities.containsAny(o,t.specialCharacters)||r.StringUtilities.containsAny(e,t.specialCharacters))if(e||!(n.indexOf("-")>-1)||n.indexOf(",")>-1||n.indexOf("/")>-1||r.StringUtilities.containsAny(o,t.specialCharacters))if(!e&&o.indexOf(",")>-1&&-1==o.indexOf("-")&&-1==o.indexOf("/")&&!r.StringUtilities.containsAny(n,t.specialCharacters)){var a=o.split(",");i+=this.i18n.at();for(var s=0;s<a.length;s++)i+=" ",i+=this.formatTime(a[s],n,""),s<a.length-2&&(i+=","),s==a.length-2&&(i+=this.i18n.spaceAnd())}else{var u=this.getSecondsDescription(),c=this.getMinutesDescription(),h=this.getHoursDescription();if((i+=u)&&c&&(i+=", "),i+=c,c===h)return i;i&&h&&(i+=", "),i+=h}else{var p=n.split("-");i+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(o,p[0],""),this.formatTime(o,p[1],""))}else i+=this.i18n.atSpace()+this.formatTime(o,n,e);return i},t.prototype.getSecondsDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Seconds(e),e)}),(function(e){return t.i18n.secondsX0ThroughX1PastTheMinute()}),(function(e){return"0"==e?"":parseInt(e)<20?t.i18n.atX0SecondsPastTheMinute(e):t.i18n.atX0SecondsPastTheMinuteGt20()||t.i18n.atX0SecondsPastTheMinute(e)}))},t.prototype.getMinutesDescription=function(){var t=this,e=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),(function(t){return t}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Minutes(e),e)}),(function(e){return t.i18n.minutesX0ThroughX1PastTheHour()}),(function(r){try{return"0"==r&&-1==n.indexOf("/")&&""==e?t.i18n.everyHour():parseInt(r)<20?t.i18n.atX0MinutesPastTheHour(r):t.i18n.atX0MinutesPastTheHourGt20()||t.i18n.atX0MinutesPastTheHour(r)}catch(e){return t.i18n.atX0MinutesPastTheHour(r)}}))},t.prototype.getHoursDescription=function(){var t=this,e=this.expressionParts[2],n=this.getSegmentDescription(e,this.i18n.everyHour(),(function(e){return t.formatTime(e,"0","")}),(function(e){return r.StringUtilities.format(t.i18n.everyX0Hours(e),e)}),(function(e){return t.i18n.betweenX0AndX1()}),(function(e){return t.i18n.atX0()}));if(n&&e.includes("-")&&"0"!=this.expressionParts[1]){var o=Array.from(n.matchAll(/:00/g));if(o.length>1){var i=o[o.length-1].index;n=n.substring(0,i)+":59"+n.substring(i+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var t=this,e=this.i18n.daysOfTheWeek();return"*"==this.expressionParts[5]?"":this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),(function(n,r){var o=n;n.indexOf("#")>-1?o=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(o=o.replace("L",""));var i=t.i18n.daysOfTheWeekInCase?t.i18n.daysOfTheWeekInCase(r)[parseInt(o)]:e[parseInt(o)];if(n.indexOf("#")>-1){var a=null,s=n.substring(n.indexOf("#")+1),u=n.substring(0,n.indexOf("#"));switch(s){case"1":a=t.i18n.first(u);break;case"2":a=t.i18n.second(u);break;case"3":a=t.i18n.third(u);break;case"4":a=t.i18n.fourth(u);break;case"5":a=t.i18n.fifth(u)}i=a+" "+i}return i}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0DaysOfTheWeek(e),e)}),(function(e){var n=e.substring(0,e.indexOf("-"));return"*"!=t.expressionParts[3]?t.i18n.commaAndX0ThroughX1(n):t.i18n.commaX0ThroughX1(n)}),(function(e){var n=null;if(e.indexOf("#")>-1){var r=e.substring(e.indexOf("#")+1);n=t.i18n.commaOnThe(r).trim()+t.i18n.spaceX0OfTheMonth()}else if(e.indexOf("L")>-1)n=t.i18n.commaOnTheLastX0OfTheMonth(e.replace("L",""));else{n="*"!=t.expressionParts[3]?t.i18n.commaAndOnX0():t.i18n.commaOnlyOnX0(e)}return n}))},t.prototype.getMonthDescription=function(){var t=this,e=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],"",(function(n,r){return r&&t.i18n.monthsOfTheYearInCase?t.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:e[parseInt(n)-1]}),(function(e){return 1==parseInt(e)?"":r.StringUtilities.format(t.i18n.commaEveryX0Months(e),e)}),(function(e){return t.i18n.commaMonthX0ThroughMonthX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInMonthX0?t.i18n.commaOnlyInMonthX0():t.i18n.commaOnlyInX0()}))},t.prototype.getDayOfMonthDescription=function(){var t=this,e=null,n=this.expressionParts[3];switch(n){case"L":e=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":e=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var o=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(o){var i=parseInt(o[0].replace("W","")),a=1==i?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),i.toString());e=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),a);break}var s=n.match(/L-(\d{1,2})/);if(s){var u=s[1];e=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(u),u);break}if("*"==n&&"*"!=this.expressionParts[5])return"";e=this.getSegmentDescription(n,this.i18n.commaEveryDay(),(function(e){return"L"==e?t.i18n.lastDay():t.i18n.dayX0?r.StringUtilities.format(t.i18n.dayX0(),e):e}),(function(e){return"1"==e?t.i18n.commaEveryDay():t.i18n.commaEveryX0Days(e)}),(function(e){return t.i18n.commaBetweenDayX0AndX1OfTheMonth(e)}),(function(e){return t.i18n.commaOnDayX0OfTheMonth(e)}))}return e},t.prototype.getYearDescription=function(){var t=this;return this.getSegmentDescription(this.expressionParts[6],"",(function(t){return/^\d+$/.test(t)?new Date(parseInt(t),1).getFullYear().toString():t}),(function(e){return r.StringUtilities.format(t.i18n.commaEveryX0Years(e),e)}),(function(e){return t.i18n.commaYearX0ThroughYearX1()||t.i18n.commaX0ThroughX1()}),(function(e){return t.i18n.commaOnlyInYearX0?t.i18n.commaOnlyInYearX0():t.i18n.commaOnlyInX0()}))},t.prototype.getSegmentDescription=function(t,e,n,o,i,a){var s=null,u=t.indexOf("/")>-1,c=t.indexOf("-")>-1,h=t.indexOf(",")>-1;if(t)if("*"===t)s=e;else if(u||c||h)if(h){for(var p=t.split(","),f="",l=0;l<p.length;l++)if(l>0&&p.length>2&&(f+=",",l<p.length-1&&(f+=" ")),l>0&&p.length>1&&(l==p.length-1||2==p.length)&&(f+="".concat(this.i18n.spaceAnd()," ")),p[l].indexOf("/")>-1||p[l].indexOf("-")>-1){var y=p[l].indexOf("-")>-1&&-1==p[l].indexOf("/"),m=this.getSegmentDescription(p[l],e,n,o,y?this.i18n.commaX0ThroughX1:i,a);y&&(m=m.replace(", ","")),f+=m}else f+=u?this.getSegmentDescription(p[l],e,n,o,i,a):n(p[l]);s=u?f:r.StringUtilities.format(a(t),f)}else if(u){p=t.split("/");if(s=r.StringUtilities.format(o(p[1]),p[1]),p[0].indexOf("-")>-1){var d=this.generateRangeSegmentDescription(p[0],i,n);0!=d.indexOf(", ")&&(s+=", "),s+=d}else if(-1==p[0].indexOf("*")){var g=r.StringUtilities.format(a(p[0]),n(p[0]));g=g.replace(", ",""),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),g)}}else c&&(s=this.generateRangeSegmentDescription(t,i,n));else s=r.StringUtilities.format(a(t),n(t));else s="";return s},t.prototype.generateRangeSegmentDescription=function(t,e,n){var o="",i=t.split("-"),a=n(i[0],1),s=n(i[1],2),u=e(t);return o+=r.StringUtilities.format(u,a,s)},t.prototype.formatTime=function(t,e,n){var r=parseInt(t),o="",i=!1;this.options.use24HourTimeFormat||(o=(i=!(!this.i18n.setPeriodBeforeTime||!this.i18n.setPeriodBeforeTime()))?"".concat(this.getPeriod(r)," "):" ".concat(this.getPeriod(r)),r>12&&(r-=12),0===r&&(r=12));var a=e,s="";return n&&(s=":".concat(("00"+n).substring(n.length))),"".concat(i?o:"").concat(("00"+r.toString()).substring(r.toString().length),":").concat(("00"+a.toString()).substring(a.toString().length)).concat(s).concat(i?"":o)},t.prototype.transformVerbosity=function(t,e){return e||(t=(t=(t=(t=t.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),"")).replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),"")).replace(new RegExp(this.i18n.commaEveryDay(),"g"),"")).replace(/\, ?$/,"")),t},t.prototype.getPeriod=function(t){return t>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();e.ExpressionDescriptor=i},336:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enLocaleLoader=void 0;var r=n(751),o=function(){function t(){}return t.prototype.load=function(t){t.en=new r.en},t}();e.enLocaleLoader=o},751:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.en=void 0;var n=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},t.prototype.everyMinute=function(){return"every minute"},t.prototype.everyHour=function(){return"every hour"},t.prototype.atSpace=function(){return"At "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},t.prototype.at=function(){return"At"},t.prototype.spaceAnd=function(){return" and"},t.prototype.everySecond=function(){return"every second"},t.prototype.everyX0Seconds=function(){return"every %s seconds"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},t.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},t.prototype.everyX0Minutes=function(){return"every %s minutes"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},t.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},t.prototype.everyX0Hours=function(){return"every %s hours"},t.prototype.betweenX0AndX1=function(){return"between %s and %s"},t.prototype.atX0=function(){return"at %s"},t.prototype.commaEveryDay=function(){return", every day"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},t.prototype.commaX0ThroughX1=function(){return", %s through %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},t.prototype.first=function(){return"first"},t.prototype.second=function(){return"second"},t.prototype.third=function(){return"third"},t.prototype.fourth=function(){return"fourth"},t.prototype.fifth=function(){return"fifth"},t.prototype.commaOnThe=function(){return", on the "},t.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},t.prototype.lastDay=function(){return"the last day"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},t.prototype.commaOnlyOnX0=function(){return", only on %s"},t.prototype.commaAndOnX0=function(){return", and on %s"},t.prototype.commaEveryX0Months=function(){return", every %s months"},t.prototype.commaOnlyInX0=function(){return", only in %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},t.prototype.firstWeekday=function(){return"first weekday"},t.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},t.prototype.commaEveryX0Days=function(){return", every %s days"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},t.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},t.prototype.commaEveryHour=function(){return", every hour"},t.prototype.commaEveryX0Years=function(){return", every %s years"},t.prototype.commaStartingX0=function(){return", starting %s"},t.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},t}();e.en=n},586:(t,e)=>{function n(t,e){if(!t)throw new Error(e)}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.secondRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"seconds part must be >= 0 and <= 59")}},t.minuteRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=59,"minutes part must be >= 0 and <= 59")}},t.hourRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=0&&o<=23,"hours part must be >= 0 and <= 23")}},t.dayOfMonthRange=function(t){for(var e=t.split(","),r=0;r<e.length;r++)if(!isNaN(parseInt(e[r],10))){var o=parseInt(e[r],10);n(o>=1&&o<=31,"DOM part must be >= 1 and <= 31")}},t.monthRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=1&&i<=12,e?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},t.dayOfWeekRange=function(t,e){for(var r=t.split(","),o=0;o<r.length;o++)if(!isNaN(parseInt(r[o],10))){var i=parseInt(r[o],10);n(i>=0&&i<=6,e?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},t}();e.default=r},910:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StringUtilities=void 0;var n=function(){function t(){}return t.format=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.replace(/%s/g,(function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.shift()}))},t.containsAny=function(t,e){return e.some((function(e){return t.indexOf(e)>-1}))},t}();e.StringUtilities=n}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};return(()=>{var t=r;Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;var e=n(728),o=n(336);e.ExpressionDescriptor.initialize(new o.enLocaleLoader),t.default=e.ExpressionDescriptor;var i=e.ExpressionDescriptor.toString;t.toString=i})(),r})()));
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Locale } from "../locale";
|
|
2
|
+
export declare class vi implements Locale {
|
|
3
|
+
atX0SecondsPastTheMinuteGt20(): string | null;
|
|
4
|
+
atX0MinutesPastTheHourGt20(): string | null;
|
|
5
|
+
commaMonthX0ThroughMonthX1(): string | null;
|
|
6
|
+
commaYearX0ThroughYearX1(): string | null;
|
|
7
|
+
use24HourTimeFormatByDefault(): boolean;
|
|
8
|
+
anErrorOccuredWhenGeneratingTheExpressionD(): string;
|
|
9
|
+
everyMinute(): string;
|
|
10
|
+
everyHour(): string;
|
|
11
|
+
atSpace(): string;
|
|
12
|
+
everyMinuteBetweenX0AndX1(): string;
|
|
13
|
+
at(): string;
|
|
14
|
+
spaceAnd(): string;
|
|
15
|
+
everySecond(): string;
|
|
16
|
+
everyX0Seconds(): string;
|
|
17
|
+
secondsX0ThroughX1PastTheMinute(): string;
|
|
18
|
+
atX0SecondsPastTheMinute(): string;
|
|
19
|
+
everyX0Minutes(): string;
|
|
20
|
+
minutesX0ThroughX1PastTheHour(): string;
|
|
21
|
+
atX0MinutesPastTheHour(): string;
|
|
22
|
+
everyX0Hours(): string;
|
|
23
|
+
betweenX0AndX1(): string;
|
|
24
|
+
atX0(): string;
|
|
25
|
+
commaEveryDay(): string;
|
|
26
|
+
commaEveryX0DaysOfTheWeek(): string;
|
|
27
|
+
commaX0ThroughX1(): string;
|
|
28
|
+
commaAndX0ThroughX1(): string;
|
|
29
|
+
first(): string;
|
|
30
|
+
second(): string;
|
|
31
|
+
third(): string;
|
|
32
|
+
fourth(): string;
|
|
33
|
+
fifth(): string;
|
|
34
|
+
commaOnThe(): string;
|
|
35
|
+
spaceX0OfTheMonth(): string;
|
|
36
|
+
lastDay(): string;
|
|
37
|
+
commaOnTheLastX0OfTheMonth(): string;
|
|
38
|
+
commaOnlyOnX0(): string;
|
|
39
|
+
commaAndOnX0(): string;
|
|
40
|
+
commaEveryX0Months(): string;
|
|
41
|
+
commaOnlyInX0(): string;
|
|
42
|
+
commaOnTheLastDayOfTheMonth(): string;
|
|
43
|
+
commaOnTheLastWeekdayOfTheMonth(): string;
|
|
44
|
+
commaDaysBeforeTheLastDayOfTheMonth(): string;
|
|
45
|
+
firstWeekday(): string;
|
|
46
|
+
weekdayNearestDayX0(): string;
|
|
47
|
+
commaOnTheX0OfTheMonth(): string;
|
|
48
|
+
commaEveryX0Days(): string;
|
|
49
|
+
commaBetweenDayX0AndX1OfTheMonth(): string;
|
|
50
|
+
commaOnDayX0OfTheMonth(): string;
|
|
51
|
+
commaEveryHour(): string;
|
|
52
|
+
commaEveryX0Years(): string;
|
|
53
|
+
commaStartingX0(): string;
|
|
54
|
+
daysOfTheWeek(): string[];
|
|
55
|
+
monthsOfTheYear(): string[];
|
|
56
|
+
}
|
package/locales/vi.js
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("cronstrue"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define("locales/vi", ["cronstrue"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["locales/vi"] = factory(require("cronstrue"));
|
|
8
|
+
else
|
|
9
|
+
root["locales/vi"] = factory(root["cronstrue"]);
|
|
10
|
+
})(globalThis, (__WEBPACK_EXTERNAL_MODULE__34__) => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 34:
|
|
16
|
+
/***/ ((module) => {
|
|
17
|
+
|
|
18
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__34__;
|
|
19
|
+
|
|
20
|
+
/***/ })
|
|
21
|
+
|
|
22
|
+
/******/ });
|
|
23
|
+
/************************************************************************/
|
|
24
|
+
/******/ // The module cache
|
|
25
|
+
/******/ var __webpack_module_cache__ = {};
|
|
26
|
+
/******/
|
|
27
|
+
/******/ // The require function
|
|
28
|
+
/******/ function __webpack_require__(moduleId) {
|
|
29
|
+
/******/ // Check if module is in cache
|
|
30
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
31
|
+
/******/ if (cachedModule !== undefined) {
|
|
32
|
+
/******/ return cachedModule.exports;
|
|
33
|
+
/******/ }
|
|
34
|
+
/******/ // Create a new module (and put it into the cache)
|
|
35
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
36
|
+
/******/ // no module.id needed
|
|
37
|
+
/******/ // no module.loaded needed
|
|
38
|
+
/******/ exports: {}
|
|
39
|
+
/******/ };
|
|
40
|
+
/******/
|
|
41
|
+
/******/ // Execute the module function
|
|
42
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // Return the exports of the module
|
|
45
|
+
/******/ return module.exports;
|
|
46
|
+
/******/ }
|
|
47
|
+
/******/
|
|
48
|
+
/************************************************************************/
|
|
49
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
50
|
+
/******/ (() => {
|
|
51
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
52
|
+
/******/ __webpack_require__.n = (module) => {
|
|
53
|
+
/******/ var getter = module && module.__esModule ?
|
|
54
|
+
/******/ () => (module['default']) :
|
|
55
|
+
/******/ () => (module);
|
|
56
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
57
|
+
/******/ return getter;
|
|
58
|
+
/******/ };
|
|
59
|
+
/******/ })();
|
|
60
|
+
/******/
|
|
61
|
+
/******/ /* webpack/runtime/define property getters */
|
|
62
|
+
/******/ (() => {
|
|
63
|
+
/******/ // define getter functions for harmony exports
|
|
64
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
65
|
+
/******/ for(var key in definition) {
|
|
66
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
67
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
68
|
+
/******/ }
|
|
69
|
+
/******/ }
|
|
70
|
+
/******/ };
|
|
71
|
+
/******/ })();
|
|
72
|
+
/******/
|
|
73
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
74
|
+
/******/ (() => {
|
|
75
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
76
|
+
/******/ })();
|
|
77
|
+
/******/
|
|
78
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
79
|
+
/******/ (() => {
|
|
80
|
+
/******/ // define __esModule on exports
|
|
81
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
82
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
83
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
84
|
+
/******/ }
|
|
85
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
86
|
+
/******/ };
|
|
87
|
+
/******/ })();
|
|
88
|
+
/******/
|
|
89
|
+
/************************************************************************/
|
|
90
|
+
var __webpack_exports__ = {};
|
|
91
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
92
|
+
(() => {
|
|
93
|
+
__webpack_require__.r(__webpack_exports__);
|
|
94
|
+
/* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34);
|
|
95
|
+
/* harmony import */ var cronstrue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(cronstrue__WEBPACK_IMPORTED_MODULE_0__);
|
|
96
|
+
var exports = __webpack_exports__;
|
|
97
|
+
"use strict";
|
|
98
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
99
|
+
exports.vi = void 0;
|
|
100
|
+
var vi = (function () {
|
|
101
|
+
function vi() {
|
|
102
|
+
}
|
|
103
|
+
vi.prototype.atX0SecondsPastTheMinuteGt20 = function () {
|
|
104
|
+
return null;
|
|
105
|
+
};
|
|
106
|
+
vi.prototype.atX0MinutesPastTheHourGt20 = function () {
|
|
107
|
+
return null;
|
|
108
|
+
};
|
|
109
|
+
vi.prototype.commaMonthX0ThroughMonthX1 = function () {
|
|
110
|
+
return null;
|
|
111
|
+
};
|
|
112
|
+
vi.prototype.commaYearX0ThroughYearX1 = function () {
|
|
113
|
+
return null;
|
|
114
|
+
};
|
|
115
|
+
vi.prototype.use24HourTimeFormatByDefault = function () {
|
|
116
|
+
return false;
|
|
117
|
+
};
|
|
118
|
+
vi.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {
|
|
119
|
+
return "Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron.";
|
|
120
|
+
};
|
|
121
|
+
vi.prototype.everyMinute = function () {
|
|
122
|
+
return "mỗi phút";
|
|
123
|
+
};
|
|
124
|
+
vi.prototype.everyHour = function () {
|
|
125
|
+
return "mỗi giờ";
|
|
126
|
+
};
|
|
127
|
+
vi.prototype.atSpace = function () {
|
|
128
|
+
return "Vào ";
|
|
129
|
+
};
|
|
130
|
+
vi.prototype.everyMinuteBetweenX0AndX1 = function () {
|
|
131
|
+
return "Mỗi phút giữa %s and %s";
|
|
132
|
+
};
|
|
133
|
+
vi.prototype.at = function () {
|
|
134
|
+
return "Vào";
|
|
135
|
+
};
|
|
136
|
+
vi.prototype.spaceAnd = function () {
|
|
137
|
+
return " và";
|
|
138
|
+
};
|
|
139
|
+
vi.prototype.everySecond = function () {
|
|
140
|
+
return "mỗi giây";
|
|
141
|
+
};
|
|
142
|
+
vi.prototype.everyX0Seconds = function () {
|
|
143
|
+
return "mỗi %s giây";
|
|
144
|
+
};
|
|
145
|
+
vi.prototype.secondsX0ThroughX1PastTheMinute = function () {
|
|
146
|
+
return "giây thứ %s qua phút thứ %s";
|
|
147
|
+
};
|
|
148
|
+
vi.prototype.atX0SecondsPastTheMinute = function () {
|
|
149
|
+
return "tại giây thứ %s của mỗi phút";
|
|
150
|
+
};
|
|
151
|
+
vi.prototype.everyX0Minutes = function () {
|
|
152
|
+
return "mỗi %s phút";
|
|
153
|
+
};
|
|
154
|
+
vi.prototype.minutesX0ThroughX1PastTheHour = function () {
|
|
155
|
+
return "phút thứ %s qua %s tiếng";
|
|
156
|
+
};
|
|
157
|
+
vi.prototype.atX0MinutesPastTheHour = function () {
|
|
158
|
+
return "vào %s phút của mỗi tiếng";
|
|
159
|
+
};
|
|
160
|
+
vi.prototype.everyX0Hours = function () {
|
|
161
|
+
return "mỗi %s tiếng";
|
|
162
|
+
};
|
|
163
|
+
vi.prototype.betweenX0AndX1 = function () {
|
|
164
|
+
return "giữa %s và %s";
|
|
165
|
+
};
|
|
166
|
+
vi.prototype.atX0 = function () {
|
|
167
|
+
return "vào %s";
|
|
168
|
+
};
|
|
169
|
+
vi.prototype.commaEveryDay = function () {
|
|
170
|
+
return ", mỗi ngày";
|
|
171
|
+
};
|
|
172
|
+
vi.prototype.commaEveryX0DaysOfTheWeek = function () {
|
|
173
|
+
return ", mỗi %s ngày trong tuần";
|
|
174
|
+
};
|
|
175
|
+
vi.prototype.commaX0ThroughX1 = function () {
|
|
176
|
+
return ", %s đến %s";
|
|
177
|
+
};
|
|
178
|
+
vi.prototype.commaAndX0ThroughX1 = function () {
|
|
179
|
+
return ", %s đến %s";
|
|
180
|
+
};
|
|
181
|
+
vi.prototype.first = function () {
|
|
182
|
+
return "đầu tiên";
|
|
183
|
+
};
|
|
184
|
+
vi.prototype.second = function () {
|
|
185
|
+
return "thứ 2";
|
|
186
|
+
};
|
|
187
|
+
vi.prototype.third = function () {
|
|
188
|
+
return "thứ 3";
|
|
189
|
+
};
|
|
190
|
+
vi.prototype.fourth = function () {
|
|
191
|
+
return "thứ 4";
|
|
192
|
+
};
|
|
193
|
+
vi.prototype.fifth = function () {
|
|
194
|
+
return "thứ 5";
|
|
195
|
+
};
|
|
196
|
+
vi.prototype.commaOnThe = function () {
|
|
197
|
+
return ", trên ";
|
|
198
|
+
};
|
|
199
|
+
vi.prototype.spaceX0OfTheMonth = function () {
|
|
200
|
+
return " %s của tháng";
|
|
201
|
+
};
|
|
202
|
+
vi.prototype.lastDay = function () {
|
|
203
|
+
return "ngày cuối cùng";
|
|
204
|
+
};
|
|
205
|
+
vi.prototype.commaOnTheLastX0OfTheMonth = function () {
|
|
206
|
+
return ", vào ngày %s cuối cùng của tháng";
|
|
207
|
+
};
|
|
208
|
+
vi.prototype.commaOnlyOnX0 = function () {
|
|
209
|
+
return ", chỉ trên %s";
|
|
210
|
+
};
|
|
211
|
+
vi.prototype.commaAndOnX0 = function () {
|
|
212
|
+
return ", và hơn %s";
|
|
213
|
+
};
|
|
214
|
+
vi.prototype.commaEveryX0Months = function () {
|
|
215
|
+
return ", mỗi ngày %s tháng";
|
|
216
|
+
};
|
|
217
|
+
vi.prototype.commaOnlyInX0 = function () {
|
|
218
|
+
return ", chỉ trong %s";
|
|
219
|
+
};
|
|
220
|
+
vi.prototype.commaOnTheLastDayOfTheMonth = function () {
|
|
221
|
+
return ", vào ngày cuối cùng của tháng";
|
|
222
|
+
};
|
|
223
|
+
vi.prototype.commaOnTheLastWeekdayOfTheMonth = function () {
|
|
224
|
+
return ", vào ngày cuối tuần của tháng";
|
|
225
|
+
};
|
|
226
|
+
vi.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {
|
|
227
|
+
return ", %s ngày trước ngày cuối cùng của tháng";
|
|
228
|
+
};
|
|
229
|
+
vi.prototype.firstWeekday = function () {
|
|
230
|
+
return "ngày đầu tuần";
|
|
231
|
+
};
|
|
232
|
+
vi.prototype.weekdayNearestDayX0 = function () {
|
|
233
|
+
return "ngày trong tuần ngày gần nhất %s";
|
|
234
|
+
};
|
|
235
|
+
vi.prototype.commaOnTheX0OfTheMonth = function () {
|
|
236
|
+
return ", vào ngày %s của tháng";
|
|
237
|
+
};
|
|
238
|
+
vi.prototype.commaEveryX0Days = function () {
|
|
239
|
+
return ", mỗi %s ngày";
|
|
240
|
+
};
|
|
241
|
+
vi.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {
|
|
242
|
+
return ", giữa ngày %s và %s trong tháng";
|
|
243
|
+
};
|
|
244
|
+
vi.prototype.commaOnDayX0OfTheMonth = function () {
|
|
245
|
+
return ", vào %s ngày trong tháng";
|
|
246
|
+
};
|
|
247
|
+
vi.prototype.commaEveryHour = function () {
|
|
248
|
+
return ", mỗi tiếng";
|
|
249
|
+
};
|
|
250
|
+
vi.prototype.commaEveryX0Years = function () {
|
|
251
|
+
return ", mỗi %s năm";
|
|
252
|
+
};
|
|
253
|
+
vi.prototype.commaStartingX0 = function () {
|
|
254
|
+
return ", bắt đầu %s";
|
|
255
|
+
};
|
|
256
|
+
vi.prototype.daysOfTheWeek = function () {
|
|
257
|
+
return ["Chủ nhật", "Thứ 2", "Thứ 3", "Thứ 4", "Thứ 5", "Thứ 6", "Thứ 7"];
|
|
258
|
+
};
|
|
259
|
+
vi.prototype.monthsOfTheYear = function () {
|
|
260
|
+
return [
|
|
261
|
+
"Tháng 1",
|
|
262
|
+
"Tháng 2",
|
|
263
|
+
"Tháng 3",
|
|
264
|
+
"Tháng 4",
|
|
265
|
+
"Tháng 5",
|
|
266
|
+
"Tháng 6",
|
|
267
|
+
"Tháng 7",
|
|
268
|
+
"Tháng 8",
|
|
269
|
+
"Tháng 9",
|
|
270
|
+
"Tháng 10",
|
|
271
|
+
"Tháng 11",
|
|
272
|
+
"Tháng 12",
|
|
273
|
+
];
|
|
274
|
+
};
|
|
275
|
+
return vi;
|
|
276
|
+
}());
|
|
277
|
+
exports.vi = vi;
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
(cronstrue__WEBPACK_IMPORTED_MODULE_0___default().locales.vi) = new vi();
|
|
281
|
+
|
|
282
|
+
})();
|
|
283
|
+
|
|
284
|
+
/******/ return __webpack_exports__;
|
|
285
|
+
/******/ })()
|
|
286
|
+
;
|
|
287
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("cronstrue")):"function"==typeof define&&define.amd?define("locales/vi.min",["cronstrue"],n):"object"==typeof exports?exports["locales/vi.min"]=n(require("cronstrue")):t["locales/vi.min"]=n(t.cronstrue)}(globalThis,(t=>(()=>{"use strict";var n={34:n=>{n.exports=t}},o={};function e(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return n[t](u,u.exports,e),u.exports}e.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},e.d=(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{e.r(r);var t=e(34),n=e.n(t),o=r;Object.defineProperty(o,"__esModule",{value:!0}),o.vi=void 0;var u=function(){function t(){}return t.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},t.prototype.atX0MinutesPastTheHourGt20=function(){return null},t.prototype.commaMonthX0ThroughMonthX1=function(){return null},t.prototype.commaYearX0ThroughYearX1=function(){return null},t.prototype.use24HourTimeFormatByDefault=function(){return!1},t.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"Đã xảy ra lỗi khi tạo mô tả biểu thức. Vui lòng kiểm tra cú pháp biểu thức cron."},t.prototype.everyMinute=function(){return"mỗi phút"},t.prototype.everyHour=function(){return"mỗi giờ"},t.prototype.atSpace=function(){return"Vào "},t.prototype.everyMinuteBetweenX0AndX1=function(){return"Mỗi phút giữa %s and %s"},t.prototype.at=function(){return"Vào"},t.prototype.spaceAnd=function(){return" và"},t.prototype.everySecond=function(){return"mỗi giây"},t.prototype.everyX0Seconds=function(){return"mỗi %s giây"},t.prototype.secondsX0ThroughX1PastTheMinute=function(){return"giây thứ %s qua phút thứ %s"},t.prototype.atX0SecondsPastTheMinute=function(){return"tại giây thứ %s của mỗi phút"},t.prototype.everyX0Minutes=function(){return"mỗi %s phút"},t.prototype.minutesX0ThroughX1PastTheHour=function(){return"phút thứ %s qua %s tiếng"},t.prototype.atX0MinutesPastTheHour=function(){return"vào %s phút của mỗi tiếng"},t.prototype.everyX0Hours=function(){return"mỗi %s tiếng"},t.prototype.betweenX0AndX1=function(){return"giữa %s và %s"},t.prototype.atX0=function(){return"vào %s"},t.prototype.commaEveryDay=function(){return", mỗi ngày"},t.prototype.commaEveryX0DaysOfTheWeek=function(){return", mỗi %s ngày trong tuần"},t.prototype.commaX0ThroughX1=function(){return", %s đến %s"},t.prototype.commaAndX0ThroughX1=function(){return", %s đến %s"},t.prototype.first=function(){return"đầu tiên"},t.prototype.second=function(){return"thứ 2"},t.prototype.third=function(){return"thứ 3"},t.prototype.fourth=function(){return"thứ 4"},t.prototype.fifth=function(){return"thứ 5"},t.prototype.commaOnThe=function(){return", trên "},t.prototype.spaceX0OfTheMonth=function(){return" %s của tháng"},t.prototype.lastDay=function(){return"ngày cuối cùng"},t.prototype.commaOnTheLastX0OfTheMonth=function(){return", vào ngày %s cuối cùng của tháng"},t.prototype.commaOnlyOnX0=function(){return", chỉ trên %s"},t.prototype.commaAndOnX0=function(){return", và hơn %s"},t.prototype.commaEveryX0Months=function(){return", mỗi ngày %s tháng"},t.prototype.commaOnlyInX0=function(){return", chỉ trong %s"},t.prototype.commaOnTheLastDayOfTheMonth=function(){return", vào ngày cuối cùng của tháng"},t.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", vào ngày cuối tuần của tháng"},t.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s ngày trước ngày cuối cùng của tháng"},t.prototype.firstWeekday=function(){return"ngày đầu tuần"},t.prototype.weekdayNearestDayX0=function(){return"ngày trong tuần ngày gần nhất %s"},t.prototype.commaOnTheX0OfTheMonth=function(){return", vào ngày %s của tháng"},t.prototype.commaEveryX0Days=function(){return", mỗi %s ngày"},t.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", giữa ngày %s và %s trong tháng"},t.prototype.commaOnDayX0OfTheMonth=function(){return", vào %s ngày trong tháng"},t.prototype.commaEveryHour=function(){return", mỗi tiếng"},t.prototype.commaEveryX0Years=function(){return", mỗi %s năm"},t.prototype.commaStartingX0=function(){return", bắt đầu %s"},t.prototype.daysOfTheWeek=function(){return["Chủ nhật","Thứ 2","Thứ 3","Thứ 4","Thứ 5","Thứ 6","Thứ 7"]},t.prototype.monthsOfTheYear=function(){return["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"]},t}();o.vi=u,n().locales.vi=new u})(),r})()));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cronstrue",
|
|
3
3
|
"title": "cRonstrue",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.28.0",
|
|
5
5
|
"description": "Convert cron expressions into human readable descriptions",
|
|
6
6
|
"author": "Brady Holt",
|
|
7
7
|
"license": "MIT",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"typescript": "^4.6.2",
|
|
62
62
|
"webpack": "^5.69.1",
|
|
63
63
|
"webpack-cli": "^4.9.2",
|
|
64
|
-
"xml2js": "^0.
|
|
64
|
+
"xml2js": "^0.5.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"start": "npm run build",
|
|
68
68
|
"build": "npx tsc -p ./src --emitDeclarationOnly",
|
|
69
69
|
"test": "npx mocha --reporter spec --require ts-node/register \"./test/**/*.ts\"",
|
|
70
|
-
"
|
|
70
|
+
"prepublishOnly": "rm -rf ./dist && ./node_modules/webpack-cli/bin/cli.js && git add -A"
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {}
|
|
73
73
|
}
|