@pushrocks/smarttime
Advanced tools
Comparing version 3.0.38 to 3.0.39
@@ -25,2 +25,3 @@ "use strict"; | ||
const smarttime_classes_cronjob_1 = require("./smarttime.classes.cronjob"); | ||
const smarttime_units_1 = require("./smarttime.units"); | ||
class CronManager { | ||
@@ -65,3 +66,3 @@ constructor() { | ||
this.executionTimeout = new plugins.smartdelay.Timeout(nextRunningCronjob.getTimeToNextExecution()); | ||
console.log(`Next CronJob scheduled in ${this.executionTimeout.getTimeLeft()} milliseconds`); | ||
console.log(`Next CronJob scheduled in ${smarttime_units_1.getMilliSecondsAsHumanReadableString(this.executionTimeout.getTimeLeft())}`); | ||
} | ||
@@ -95,2 +96,2 @@ else { | ||
exports.CronManager = CronManager; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLmNsYXNzZXMuY3Jvbm1hbmFnZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUuY2xhc3Nlcy5jcm9ubWFuYWdlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkRBQStDO0FBQy9DLDJFQUFzRDtBQUV0RCxNQUFhLFdBQVc7SUFNdEI7UUFITyxXQUFNLEdBQTBCLFNBQVMsQ0FBQztRQUMxQyxhQUFRLEdBQUcsSUFBSSxPQUFPLENBQUMsR0FBRyxDQUFDLFNBQVMsRUFBVyxDQUFDO0lBRXhDLENBQUM7SUFFVCxVQUFVLENBQUMsaUJBQXlCLEVBQUUsZUFBb0M7UUFDL0UsTUFBTSxVQUFVLEdBQUcsSUFBSSxtQ0FBTyxDQUFDLElBQUksRUFBRSxpQkFBaUIsRUFBRSxlQUFlLENBQUMsQ0FBQztRQUN6RSxJQUFJLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsQ0FBQztRQUM5QixJQUFJLElBQUks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sSUFBSSxPQUFPLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQzt3QkFDN0QsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtREFBbUQsQ0FBQyxDQUFDO3FCQUNsRTtvQkFFRCxNQUFNLElBQUksQ0FBQyxnQkFBZ0IsQ0FBQyxPQUFPLENBQUM7aUJBQ3JDLFFBQVEsSUFBSSxDQUFDLE1BQU0sS0FBSyxTQUFTLEVBQUU7WUFDdEMsQ0FBQyxDQUFDO1lBQ0YsWUFBWSxFQUFFLENBQUM7U0FDaEI7SUFDSCxDQUFDO0lBRUQ7O09BRUc7SUFDSSxJQUFJO1FBQ1QsSUFBSSxJQUFJLENBQUMsTUFBTSxLQUFLLFNBQVMsRUFBRTtZQUM3QixJQUFJLENBQUMsTUFBTSxHQUFHLFNBQVMsQ0FBQztZQUN4QixJQUFJLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxFQUFFLENBQUM7U0FDaEM7YUFBTTtZQUNMLE9BQU8sQ0FBQyxHQUFHLENBQUMsZ0VBQWdFLENBQUMsQ0FBQztTQUMvRTtRQUNELEtBQUssTUFBTSxJQUFJLElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyxRQUFRLEVBQUUsRUFBRTtZQUMzQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7U0FDYjtJQUNILENBQUM7Q0FDRjtBQWhGRCxrQ0FnRkMifQ== |
@@ -28,3 +28,3 @@ import * as units from './smarttime.units'; | ||
timezone: TAvailableZone; | ||
constructor(unixMilli: number); | ||
constructor(unixMilli?: number); | ||
exportToEuropeanDate(): string; | ||
@@ -31,0 +31,0 @@ /** |
@@ -26,3 +26,3 @@ "use strict"; | ||
class ExtendedDate extends Date { | ||
constructor(unixMilli) { | ||
constructor(unixMilli = Date.now()) { | ||
super(unixMilli); | ||
@@ -134,2 +134,2 @@ } | ||
exports.ExtendedDate = ExtendedDate; | ||
//# sourceMappingURL=data:application/json;base64,e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zVELE9BQU8sQ0FBQyxJQUFJLENBQUMsbUJBQW1CLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDN0MsQ0FBQztDQUNGO0FBaElELG9DQWdJQyJ9 |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
static fromMilliSeconds(milliSecondsArg: any): TimeStamp; | ||
static fromMilliSeconds(milliSecondsArg: number): TimeStamp; | ||
/** | ||
@@ -12,0 +12,0 @@ * returns new TimeStamp for now with change set |
@@ -71,2 +71,2 @@ "use strict"; | ||
exports.TimeStamp = TimeStamp; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLmNsYXNzZXMudGltZXN0YW1wLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLmNsYXNzZXMudGltZXN0YW1wLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUVBOzs7R0FHRztBQUNILE1BQWEsU0FBUztJQXVDcEIsWUFBWSxVQUFtQjtRQUwvQjs7V0FFRztRQUNJLFdBQU0sR0FBVyxJQUFJLENBQUM7UUFHM0IsSUFBSSxDQUFDLFVBQVUsRUFBRTtZQUNmLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUUsQ0FBQztTQUN4QjthQUFNLElBQUksT0FBTyxVQUFVLEtBQUssUUFBUSxFQUFFO1lBQ3pDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxJQUFJLENBQUMsVUFBVSxDQUFDLENBQUM7U0FDbEM7UUFDRCxJQUFJLENBQUMsWUFBWSxHQUFHLElBQUksQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7UUFDeEMsSUFBSSxDQUFDLFNBQVMsR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxZQUFZLEdBQUcsSUFBSSxDQUFDLENBQUM7SUFDeEQsQ0FBQztJQTlDRDs7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ocks/lik'; | ||
export { lik, smartdelay, smartpromise }; | ||
import croner from 'croner'; | ||
declare const croner: any; | ||
import dayjs from 'dayjs'; | ||
export { croner, dayjs }; | ||
import prettyMs from 'pretty-ms'; | ||
export { croner, dayjs, prettyMs }; |
@@ -25,3 +25,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.dayjs = exports.croner = exports.smartpromise = exports.smartdelay = exports.lik = void 0; | ||
exports.prettyMs = exports.dayjs = exports.croner = exports.smartpromise = exports.smartdelay = exports.lik = void 0; | ||
// @pushrocks scope | ||
@@ -34,9 +34,11 @@ const lik = __importStar(require("@pushrocks/lik")); | ||
exports.smartpromise = smartpromise; | ||
// third parties | ||
const croner_1 = __importDefault(require("croner")); | ||
exports.croner = croner_1.default; | ||
// third parties; | ||
const croner = require('croner'); | ||
exports.croner = croner; | ||
const dayjs_1 = __importDefault(require("dayjs")); | ||
exports.dayjs = dayjs_1.default; | ||
const isToday_1 = __importDefault(require("dayjs/plugin/isToday")); | ||
const pretty_ms_1 = __importDefault(require("pretty-ms")); | ||
exports.prettyMs = pretty_ms_1.default; | ||
dayjs_1.default.extend(isToday_1.default); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQW1CO0FBQ25CLG9EQUFzQztBQUk3QixrQkFBRztBQUhaLGtFQUFvRDtBQUd0QyxnQ0FBVTtBQUZ4QixzRUFBd0Q7QUFFOUIsb0NBQVk7QUFFdEMsZ0JBQWdCO0FBQ2hCLG9EQUE0QjtBQU1uQixpQkFORixnQkFBTSxDQU1FO0FBTGYsa0RBQTBCO0FBS1QsZ0JBTFYsZUFBSyxDQUtVO0FBSnRCLG1FQUEyQztBQUUzQyxlQUFLLENBQUMsTUFBTSxDQUFDLGlCQUFPLENBQUMsQ0FBQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnBsdWdpbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydHRpbWUucGx1Z2lucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsbUJBQW1CO0FBQ25CLG9EQUFzQztBQUk3QixrQkFBRztBQUhaLGtFQUFvRDtBQUd0QyxnQ0FBVTtBQUZ4QixzRUFBd0Q7QUFFOUIsb0NBQVk7QUFFdEMsaUJBQWlCO0FBQ2pCLE1BQU0sTUFBTSxHQUFRLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQU83Qix3QkFBTTtBQU5mLGtEQUEwQjtBQU1ULGdCQU5WLGVBQUssQ0FNVTtBQUx0QixtRUFBMkM7QUFDM0MsMERBQWlDO0FBSVQsbUJBSmpCLG1CQUFRLENBSWlCO0FBRmhDLGVBQUssQ0FBQyxNQUFNLENBQUMsaUJBQU8sQ0FBQyxDQUFDIn0= |
@@ -18,1 +18,2 @@ export declare let units: { | ||
export declare let getMilliSecondsFromUnits: (combinationArg: IUnitCombinationArg) => number; | ||
export declare const getMilliSecondsAsHumanReadableString: (milliSecondsArg: number) => string; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getMilliSecondsFromUnits = exports.units = void 0; | ||
exports.getMilliSecondsAsHumanReadableString = exports.getMilliSecondsFromUnits = exports.units = void 0; | ||
const plugins = __importStar(require("./smarttime.plugins")); | ||
exports.units = { | ||
@@ -49,2 +69,5 @@ years: (timesArg = 1) => { | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnVuaXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLnVuaXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFXLFFBQUEsS0FBSyxHQUFHO0lBQ2pCLEtBQUssRUFBRSxDQUFDLFFBQVEsR0FBRyxDQUFDLEVBQVUsRUFBRTtRQUM5QixPQUFPLFFBQVEsR0FBRyxRQUFRLENBQUM7SUFDN0IsQ0FBQztJQUNELE1BQU0sRUFBRSxDQUFDLFFBQVEsR0FBRyxDQUFDLEVBQVUsRUFBRTtRQUMvQixPQUFPLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFDNUIsQ0FBQztJQUNELEtBQUssRUFBRSxDQUFDLFFBQVEsR0FBRyxDQUFDLEVBQUUsRUFBRTtRQUN0QixPQUFPLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFDNUIsQ0FBQztJQUNELElBQUksRUFBRSxDQUFDLFFBQVEsR0FBRyxDQUFDLEVBQUUsRUFBRTtRQUNyQixPQUFPLFFBQVEsR0FBRyxNQUFNLENBQUM7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RQUN4QixlQUFlLENBQUMsYUFBSyxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztLQUNwRDtJQUNELElBQUksY0FBYyxDQUFDLE9BQU8sRUFBRTtRQUMxQixlQUFlLENBQUMsYUFBSyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztLQUN4RDtJQUVELE9BQU8sa0JBQWtCLENBQUM7QUFDNUIsQ0FBQyxDQUFDIn0= | ||
exports.getMilliSecondsAsHumanReadableString = (milliSecondsArg) => { | ||
return plugins.prettyMs(milliSecondsArg); | ||
}; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnR0aW1lLnVuaXRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnR0aW1lLnVuaXRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSw2REFBK0M7QUFFcEMsUUFBQSxLQUFLLEdBQUc7SUFDakIsS0FBSyxFQUFFLENBQUMsUUFBUSxHQUFHLENBQUMsRUFBVSxFQUFFO1FBQzlCLE9BQU8sUUFBUSxHQUFHLFFBQVEsQ0FBQztJQUM3QixDQUFDO0lBQ0QsTUFBTSxFQUFFLENBQUMsUUFBUSxHQUFHLENBQUMsRUFBVSxFQUFFO1FBQy9CLE9BQU8sUUFBUSxHQUFHLE9BQU8sQ0FBQztJQUM1QixDQUFDO0lBQ0QsS0FBSyxFQUFFLENBQUMsUUFBUSxHQUFHLENBQUMsRUFBRSxFQUFFO1FBQ3RCLE9BQU8sUUFBUSxHQUFHLE9BQU8sQ0FBQztJQUM1QixDQUFDO0lBQ0QsSUFBSSxFQUFFLENBQUMsUUFBUSxHQUFHLENBQUMsRUFBRSxFQUFFO1FBQ3JCLE9BQU8sUUFBUSxHQUF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ksY0FBYyxDQUFDLEtBQUssRUFBRTtRQUN4QixlQUFlLENBQUMsYUFBSyxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQztLQUNwRDtJQUNELElBQUksY0FBYyxDQUFDLE9BQU8sRUFBRTtRQUMxQixlQUFlLENBQUMsYUFBSyxDQUFDLE9BQU8sQ0FBQyxjQUFjLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQztLQUN4RDtJQUVELE9BQU8sa0JBQWtCLENBQUM7QUFDNUIsQ0FBQyxDQUFDO0FBRVcsUUFBQSxvQ0FBb0MsR0FBRyxDQUFDLGVBQXVCLEVBQVUsRUFBRTtJQUN0RixPQUFPLE9BQU8sQ0FBQyxRQUFRLENBQUMsZUFBZSxDQUFDLENBQUM7QUFDM0MsQ0FBQyxDQUFBIn0= |
{ | ||
"name": "@pushrocks/smarttime", | ||
"private": false, | ||
"version": "3.0.38", | ||
"version": "3.0.39", | ||
"description": "handle time in smart ways", | ||
@@ -30,3 +30,4 @@ "main": "dist_ts/index.js", | ||
"dayjs": "^1.9.1", | ||
"is-nan": "^1.3.0" | ||
"is-nan": "^1.3.0", | ||
"pretty-ms": "^7.0.1" | ||
}, | ||
@@ -33,0 +34,0 @@ "files": [ |
import * as plugins from './smarttime.plugins'; | ||
import { CronJob } from './smarttime.classes.cronjob'; | ||
import { getMilliSecondsAsHumanReadableString } from './smarttime.units'; | ||
@@ -50,5 +51,9 @@ export class CronManager { | ||
if (nextRunningCronjob) { | ||
this.executionTimeout = new plugins.smartdelay.Timeout(nextRunningCronjob.getTimeToNextExecution()); | ||
this.executionTimeout = new plugins.smartdelay.Timeout( | ||
nextRunningCronjob.getTimeToNextExecution() | ||
); | ||
console.log( | ||
`Next CronJob scheduled in ${this.executionTimeout.getTimeLeft()} milliseconds` | ||
`Next CronJob scheduled in ${getMilliSecondsAsHumanReadableString( | ||
this.executionTimeout.getTimeLeft() | ||
)}` | ||
); | ||
@@ -59,4 +64,3 @@ } else { | ||
} | ||
await this.executionTimeout.promise; | ||
@@ -63,0 +67,0 @@ } while (this.status === 'started'); |
@@ -76,3 +76,3 @@ import * as plugins from './smarttime.plugins'; | ||
constructor(unixMilli: number) { | ||
constructor(unixMilli: number = Date.now()) { | ||
super(unixMilli); | ||
@@ -79,0 +79,0 @@ } |
@@ -11,3 +11,3 @@ import * as plugins from './smarttime.plugins'; | ||
*/ | ||
public static fromMilliSeconds(milliSecondsArg) { | ||
public static fromMilliSeconds(milliSecondsArg: number) { | ||
return new TimeStamp(milliSecondsArg); | ||
@@ -14,0 +14,0 @@ } |
@@ -8,9 +8,10 @@ // @pushrocks scope | ||
// third parties | ||
import croner from 'croner'; | ||
// third parties; | ||
const croner: any = require('croner'); | ||
import dayjs from 'dayjs'; | ||
import isToday from 'dayjs/plugin/isToday'; | ||
import prettyMs from 'pretty-ms'; | ||
dayjs.extend(isToday); | ||
export { croner, dayjs }; | ||
export { croner, dayjs, prettyMs }; |
@@ -0,1 +1,3 @@ | ||
import * as plugins from './smarttime.plugins'; | ||
export let units = { | ||
@@ -33,3 +35,3 @@ years: (timesArg = 1): number => { | ||
let timeInMilliseconds = 0; | ||
let addMilliSeconds = (milliSecondsArg) => { | ||
let addMilliSeconds = (milliSecondsArg: number) => { | ||
timeInMilliseconds = timeInMilliseconds + milliSecondsArg; | ||
@@ -58,1 +60,5 @@ }; | ||
}; | ||
export const getMilliSecondsAsHumanReadableString = (milliSecondsArg: number): string => { | ||
return plugins.prettyMs(milliSecondsArg); | ||
} |
Sorry, the diff of this file is too big to display
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
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
1512093
13384
7
+ Addedpretty-ms@^7.0.1
+ Addedparse-ms@2.1.0(transitive)
+ Addedpretty-ms@7.0.1(transitive)