Compare commits

..

4 Commits

Author SHA1 Message Date
c290a75f01 4.0.2 2023-07-12 11:28:52 +02:00
9a20f8f6a1 fix(core): update 2023-07-12 11:28:52 +02:00
f91fa33568 4.0.1 2023-01-06 20:05:03 +01:00
c234cb4caa fix(core): update 2023-01-06 20:05:02 +01:00
10 changed files with 1538 additions and 923 deletions

View File

@ -7,10 +7,10 @@
"projectType": "npm",
"module": {
"githost": "gitlab.com",
"gitscope": "pushrocks",
"gitscope": "push.rocks",
"gitrepo": "smarttime",
"description": "handle time in smart ways",
"npmPackagename": "@pushrocks/smarttime",
"npmPackagename": "@push.rocks/smarttime",
"license": "MIT"
}
}

View File

@ -1,7 +1,7 @@
{
"name": "@pushrocks/smarttime",
"name": "@push.rocks/smarttime",
"private": false,
"version": "4.0.0",
"version": "4.0.2",
"description": "handle time in smart ways",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
@ -13,19 +13,19 @@
"buildDocs": "tsdoc"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.1.29",
"@gitzone/tsbundle": "^2.0.7",
"@gitzone/tsrun": "^1.2.18",
"@gitzone/tsbuild": "^2.1.66",
"@gitzone/tsbundle": "^2.0.8",
"@gitzone/tsrun": "^1.2.42",
"@gitzone/tstest": "^1.0.60",
"@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^18.11.9"
"@push.rocks/tapbundle": "^5.0.4",
"@types/node": "^20.4.1"
},
"dependencies": {
"@pushrocks/lik": "^6.0.0",
"@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartpromise": "^3.1.6",
"@push.rocks/lik": "^6.0.3",
"@push.rocks/smartdelay": "^3.0.2",
"@push.rocks/smartpromise": "^4.0.3",
"croner": "^5.3.4",
"dayjs": "^1.10.7",
"dayjs": "^1.11.9",
"is-nan": "^1.3.2",
"pretty-ms": "^8.0.0"
},

2413
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
// tslint:disable-next-line:no-implicit-dependencies
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smarttime from '../ts/index.js';
// Test TimeStamp class

View File

@ -1,4 +1,4 @@
import { tap, expect } from '@pushrocks/tapbundle';
import { tap, expect } from '@push.rocks/tapbundle';
import * as smarttime from '../ts/index.js';

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smarttime from '../ts/index.js';

View File

@ -1,5 +1,5 @@
// tslint:disable-next-line:no-implicit-dependencies
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import { Timer } from '../ts/index.js';

View File

@ -2,7 +2,7 @@
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smarttime',
version: '4.0.0',
name: '@push.rocks/smarttime',
version: '4.0.2',
description: 'handle time in smart ways'
}

View File

@ -1,5 +1,5 @@
import * as plugins from './smarttime.plugins.js';
import { CronJob } from './smarttime.classes.cronjob.js';
import { CronJob, TJobFunction } from './smarttime.classes.cronjob.js';
import { getMilliSecondsAsHumanReadableString } from './smarttime.units.js';
export class CronManager {
@ -10,7 +10,7 @@ export class CronManager {
constructor() {}
public addCronjob(cronIdentifierArg: string, cronFunctionArg: () => Promise<void>) {
public addCronjob(cronIdentifierArg: string, cronFunctionArg: TJobFunction) {
const newCronJob = new CronJob(this, cronIdentifierArg, cronFunctionArg);
this.cronjobs.add(newCronJob);
if (this.status === 'started') {

View File

@ -1,7 +1,7 @@
// @pushrocks scope
import * as lik from '@pushrocks/lik';
import * as smartdelay from '@pushrocks/smartdelay';
import * as smartpromise from '@pushrocks/smartpromise';
import * as lik from '@push.rocks/lik';
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartpromise from '@push.rocks/smartpromise';
export { lik, smartdelay, smartpromise };