From 97f8327fe985c19373c473a11fb6d3bd43f59fa8 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Tue, 4 Apr 2023 20:35:54 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/index.ts | 2 +- ...romise.ts => smartpromise.classes.cumulativedeferred.ts} | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) rename ts/{smartpromise.classes.commulativepromise.ts => smartpromise.classes.cumulativedeferred.ts} (82%) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 3254a3b..c754ec9 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartpromise', - version: '3.1.8', + version: '3.1.9', description: 'simple promises and Deferred constructs' } diff --git a/ts/index.ts b/ts/index.ts index 2e0f30b..e193b45 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,6 +1,6 @@ import { defer } from './smartpromise.classes.deferred.js'; -export * from './smartpromise.classes.commulativepromise.js'; +export * from './smartpromise.classes.cumulativedeferred.js'; export * from './smartpromise.classes.deferred.js'; diff --git a/ts/smartpromise.classes.commulativepromise.ts b/ts/smartpromise.classes.cumulativedeferred.ts similarity index 82% rename from ts/smartpromise.classes.commulativepromise.ts rename to ts/smartpromise.classes.cumulativedeferred.ts index 238f2ab..07d7747 100644 --- a/ts/smartpromise.classes.commulativepromise.ts +++ b/ts/smartpromise.classes.cumulativedeferred.ts @@ -1,6 +1,6 @@ import { defer } from "./smartpromise.classes.deferred.js"; -export class ComulativeDeferred { +export class CumulativeDeferred { private accumulatedPromises: Promise[] = []; private deferred = defer(); public promise = this.deferred.promise; @@ -21,6 +21,6 @@ export class ComulativeDeferred { } -export const commulativeDefer = () => { - return new ComulativeDeferred(); +export const cumulativeDefer = () => { + return new CumulativeDeferred(); } \ No newline at end of file