From db2440a8888f9e5e8196939ab1e64bf0b295e91f Mon Sep 17 00:00:00 2001 From: Cristiam Mercado Date: Tue, 20 Dec 2022 11:29:07 -0500 Subject: [PATCH] Updated RxJS dependency (#37) * Updated version. * Updated RxJS dependency to 7.8 * Updated some classes. * Recompiled code. --- dist/esm2020/lib/i-event-bus-message.mjs | 2 +- dist/esm2020/lib/meta-data.mjs | 4 +- dist/esm2020/lib/ng-event-bus.mjs | 4 +- dist/fesm2015/ng-event-bus.mjs | 5 +- dist/fesm2015/ng-event-bus.mjs.map | 2 +- dist/fesm2020/ng-event-bus.mjs | 5 +- dist/fesm2020/ng-event-bus.mjs.map | 2 +- dist/lib/i-event-bus-message.d.ts | 2 +- dist/lib/meta-data.d.ts | 2 +- dist/lib/ng-event-bus.d.ts | 2 +- dist/package.json | 4 +- package-lock.json | 861 ++++++++++++++++------- package.json | 26 +- src/lib/i-event-bus-message.ts | 2 +- src/lib/meta-data.ts | 2 +- src/lib/ng-event-bus.ts | 2 +- 16 files changed, 651 insertions(+), 276 deletions(-) diff --git a/dist/esm2020/lib/i-event-bus-message.mjs b/dist/esm2020/lib/i-event-bus-message.mjs index 5547a65..ebbf8c6 100644 --- a/dist/esm2020/lib/i-event-bus-message.mjs +++ b/dist/esm2020/lib/i-event-bus-message.mjs @@ -1,2 +1,2 @@ export {}; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1ldmVudC1idXMtbWVzc2FnZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvaS1ldmVudC1idXMtbWVzc2FnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTWV0YURhdGEgfSBmcm9tICcuL21ldGEtZGF0YSc7XG5cbi8qKlxuICogSW50ZXJmYWNlIG9mIHRoZSBtZXNzYWdlcyBzZW50IHRocm91Z2ggdGhl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gKiBEYXRhIGFzc29jaWF0ZWQgdG8gbWVzc2FnZS5cbiAgICovXG4gIGRhdGE/OiBhbnk7XG5cbiAgLyoqXG4gICAqIEZ1bGwgbWVzc2FnZSBtZXRhZGF0YS5cbiAgICovXG4gIG1ldGFkYXRhOiBNZXRhRGF0YTtcbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/esm2020/lib/meta-data.mjs b/dist/esm2020/lib/meta-data.mjs index 9de59b9..c517bd2 100644 --- a/dist/esm2020/lib/meta-data.mjs +++ b/dist/esm2020/lib/meta-data.mjs @@ -4,7 +4,7 @@ * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export class MetaData { /** @@ -57,4 +57,4 @@ export class MetaData { }); } } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YS1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9tZXRhLWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0NBQWtDO0FBRWxDOzs7Ozs7R0FNRztBQUNILE1BQU0sT0FBTyxRQUFRO0lBeUJuQjs7Ozs7T0FLRztJQUNILFlBQVksR0FBVyxFQUFFLElBQVU7UUFDakMsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7UUFDdkIsSUFBSSxDQUFDLElBQUksR0FBRyxHQUFHLENBQUM7UUFDaEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUM7UUFDbEIsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLElBQUksRUFBRSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ3pDLENBQUM7SUFFRDs7T0FFRztJQUNILElBQVcsRUFBRTtRQUNYLE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQztJQUNsQixDQUFDO0lBRUQ7O09BRUc7S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HJpbmcge1xuICAgIHJldHVybiAneHh4eHh4eHgteHh4eC00eHh4LXl4eHgteHh4eHh4eHh4eHh4Jy5yZXBsYWNlKC9beHldL2csIChjOiBzdHJpbmcpID0+IHtcbiAgICAgIGNvbnN0IHIgPSAoTWF0aC5yYW5kb20oKSAqIDE2KSB8IDA7XG4gICAgICBjb25zdCB2ID0gYyA9PT0gJ3gnID8gciA6IChyICYgMHgzKSB8IDB4ODtcbiAgICAgIHJldHVybiB2LnRvU3RyaW5nKDE2KTtcbiAgICB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWV0YS1kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9tZXRhLWRhdGEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsa0NBQWtDO0FBRWxDOzs7Ozs7R0FNRztBQUNILE1BQU0sT0FBTyxRQUFRO0lBeUJuQjs7Ozs7T0FLRztJQUNILFlBQVksR0FBVyxFQUFFLElBQVU7UUFDakMsSUFBSSxDQUFDLEdBQUcsR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7UUFDdkIsSUFBSSxDQUFDLElBQUksR0FBRyxHQUFHLENBQUM7UUFDaEIsSUFBSSxDQUFDLEtBQUssR0FBRyxJQUFJLENBQUM7UUFDbEIsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLElBQUksRUFBRSxDQUFDLE9BQU8sRUFBRSxDQUFDO0lBQ3pDLENBQUM7SUFFRDs7T0FFRztJQUNILElBQVcsRUFBRTtRQUNYLE9BQU8sSUFBSSxDQUFDLEdBQUcsQ0FBQztJQUNsQixDQUFDO0lBRUQ7O09BRUc7SUFDSCxJQUFXLEdBQUc7UUFDWixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUM7SUFDbkIsQ0FBQztJQUVEOztPQUVHO0lBQ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csIChjOiBzdHJpbmcpID0+IHtcbiAgICAgIGNvbnN0IHIgPSAoTWF0aC5yYW5kb20oKSAqIDE2KSB8IDA7XG4gICAgICBjb25zdCB2ID0gYyA9PT0gJ3gnID8gciA6IChyICYgMHgzKSB8IDB4ODtcbiAgICAgIHJldHVybiB2LnRvU3RyaW5nKDE2KTtcbiAgICB9KTtcbiAgfVxufVxuIl19 \ No newline at end of file diff --git a/dist/esm2020/lib/ng-event-bus.mjs b/dist/esm2020/lib/ng-event-bus.mjs index b39afb0..128fde4 100644 --- a/dist/esm2020/lib/ng-event-bus.mjs +++ b/dist/esm2020/lib/ng-event-bus.mjs @@ -6,7 +6,7 @@ import { MetaData } from './meta-data'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export class NgEventBus { /** @@ -76,4 +76,4 @@ export class NgEventBus { return this.eventBus.asObservable().pipe(filter((event) => this.keyMatch(event.key, key)), map((event) => event.metadata)); } } -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctZXZlbnQtYnVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2xpYi9uZy1ldmVudC1idXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFjLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUMzQyxPQUFPLEVBQUUsTUFBTSxFQUFFLEdBQUcsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRzdDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFFdkM7Ozs7OztHQU1HO0FBQ0gsTUFBTSxPQUFPLFVBQVU7SUFXckI7O09BRUc7SUFDSDtRQVJBOztXQUVHO1FBQ0ssY0FBUyxHQUFHLEdBQUcsQ0FBQztRQU10QixJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksT0FBTyxFQUFvQixDQUFDO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W5kIG11c3Qgbm90IGJlIGVtcHR5Jyk7XG4gICAgfVxuXG4gICAgY29uc3QgbWV0YWRhdGE6IE1ldGFEYXRhID0gbmV3IE1ldGFEYXRhKGtleSwgZGF0YSk7XG5cbiAgICB0aGlzLmV2ZW50QnVzLm5leHQoeyBrZXksIGRhdGEsIG1ldGFkYXRhIH0pO1xuICB9XG5cbiAgLyoqXG4gICAqIFJldHVybnMgYW4gb2JzZXJ2YWJsZSB5b3UgY2FuIHN1YnNjcmliZSB0byBsaXN0ZW4gbWVzc2FnZXMvZXZlbnRzLlxuICAgKlxuICAgKiBAcGFyYW0ga2V5IEtleSB0byBpZGVudGlmeSB0aGUgbWVzc2FnZS9ldmVudC5cbiAgICpcbiAgICogQHJldHVybiBPYnNlcnZhYmxlIHlvdSBjYW4gc3Vic2NyaWJlIHRvIGxpc3RlbiBtZXNzYWdlcy9ldmVudHMuXG4gICAqL1xuICBwdWJsaWMgb248VD4oa2V5OiBzdHJpbmcpOiBPYnNlcnZhYmxlPE1ldGFEYXRhPiB7XG4gICAgcmV0dXJuIHRoaXMuZXZlbnRCdXMuYXNPYnNlcnZhYmxlKCkucGlwZShcbiAgICAgIGZpbHRlcigoZXZlbnQ6IElFdmVudEJ1c01lc3NhZ2UpID0+IHRoaXMua2V5TWF0Y2goZXZlbnQua2V5LCBrZXkpKSxcbiAgICAgIG1hcCgoZXZlbnQ6IElFdmVudEJ1c01lc3NhZ2UpID0+IGV2ZW50Lm1ldGFkYXRhKVxuICAgICk7XG4gIH1cbn1cbiJdfQ== \ No newline at end of file diff --git a/dist/fesm2015/ng-event-bus.mjs b/dist/fesm2015/ng-event-bus.mjs index 942b98b..a04e471 100644 --- a/dist/fesm2015/ng-event-bus.mjs +++ b/dist/fesm2015/ng-event-bus.mjs @@ -7,7 +7,7 @@ import { filter, map } from 'rxjs/operators'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ class MetaData { /** @@ -66,7 +66,7 @@ class MetaData { * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ class NgEventBus { /** @@ -147,3 +147,4 @@ class NgEventBus { export { MetaData, NgEventBus }; //# sourceMappingURL=ng-event-bus.mjs.map +//# sourceMappingURL=ng-event-bus.mjs.map diff --git a/dist/fesm2015/ng-event-bus.mjs.map b/dist/fesm2015/ng-event-bus.mjs.map index 33785b6..dc6234c 100644 --- a/dist/fesm2015/ng-event-bus.mjs.map +++ b/dist/fesm2015/ng-event-bus.mjs.map @@ -1 +1 @@ -{"version":3,"file":"ng-event-bus.mjs","sources":["../../src/lib/meta-data.ts","../../src/lib/ng-event-bus.ts","../../src/index.ts","../../src/ng-event-bus.ts"],"sourcesContent":["/* tslint:disable:variable-name */\n\n/**\n * Metadata of the messages sent through the events bus.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.0.1\n */\nexport class MetaData {\n /**\n * A unique identifier of the message sent through the events bus.\n * @private\n */\n private readonly _id: string;\n\n /**\n * Original key associated to the message.\n * @private\n */\n private readonly _key: string;\n\n /**\n * Data associated to message. It's optional.\n * @private\n */\n private readonly _data: any;\n\n /**\n * Time in milliseconds in which the message was generated.\n * @private\n */\n private readonly _timestamp: number;\n\n /**\n * Constructor for this class.\n *\n * @param key Original key associated to the message sent through the events bus.\n * @param [data] Optional: Additional data sent with the message.\n */\n constructor(key: string, data?: any) {\n this._id = this.uuid();\n this._key = key;\n this._data = data;\n this._timestamp = new Date().getTime();\n }\n\n /**\n * Gets unique identifier of the message sent through the events bus.\n */\n public get id(): string {\n return this._id;\n }\n\n /**\n * Original key associated to the message.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Data associated to message. It's optional.\n */\n public get data(): any {\n return this._data;\n }\n\n /**\n * Gets the time in milliseconds in which the message was generated.\n */\n public get timestamp(): number {\n return this._timestamp;\n }\n\n /**\n * Generates UUID version 4. The solution above uses Math.random() for brevity, however Math.random() is not\n * guaranteed to be a high-quality RNG.\n *\n * @return UUID version 4.\n */\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c: string) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }\n}\n","import { Observable, Subject } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\n\nimport { IEventBusMessage } from './i-event-bus-message';\nimport { MetaData } from './meta-data';\n\n/**\n * Main library class.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.0.1\n */\nexport class NgEventBus {\n /**\n * Main observable to multicast to all observers.\n */\n private eventBus: Subject;\n\n /**\n * Key message separator.\n */\n private separator = ':';\n\n /**\n * Constructor for this class: Initializes event bus.\n */\n constructor() {\n this.eventBus = new Subject();\n }\n\n /**\n * Validates key matching.\n *\n * @param key Key to identify the message/event.\n * @param wildcard Wildcard received from on method.\n *\n * @return true if key matches, false otherwise.\n */\n public keyMatch(key: string, wildcard: string): boolean {\n const w = '*';\n const ww = '**';\n\n const partMatch = (wl: string, k: string): boolean => {\n return wl === w || wl === k;\n };\n\n const sep = this.separator;\n const kArr = key.split(sep);\n const wArr = wildcard.split(sep);\n\n const kLen = kArr.length;\n const wLen = wArr.length;\n const max = Math.max(kLen, wLen);\n\n for (let i = 0; i < max; i++) {\n const cK = kArr[i];\n const cW = wArr[i];\n\n if (cW === ww && typeof cK !== 'undefined') {\n return true;\n }\n\n if (!partMatch(cW, cK)) {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Publish a message/event to event bus.\n *\n * @param key Key to identify the message/event.\n * @param [data] Optional: Additional data sent with the message/event.\n * @throws {Error} key parameter must be a string and must not be empty.\n */\n public cast(key: string, data?: any): void {\n if (!key.trim().length) {\n throw new Error('key parameter must be a string and must not be empty');\n }\n\n const metadata: MetaData = new MetaData(key, data);\n\n this.eventBus.next({ key, data, metadata });\n }\n\n /**\n * Returns an observable you can subscribe to listen messages/events.\n *\n * @param key Key to identify the message/event.\n *\n * @return Observable you can subscribe to listen messages/events.\n */\n public on(key: string): Observable {\n return this.eventBus.asObservable().pipe(\n filter((event: IEventBusMessage) => this.keyMatch(event.key, key)),\n map((event: IEventBusMessage) => event.metadata)\n );\n }\n}\n","/*\n * Public API Surface of ng-event-bus\n */\nexport { NgEventBus } from './lib/ng-event-bus';\nexport { MetaData } from './lib/meta-data';\nexport { IEventBusMessage } from './lib/i-event-bus-message';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAEA;;;;;;AAMG;MACU,QAAQ,CAAA;AAyBnB;;;;;AAKG;IACH,WAAY,CAAA,GAAW,EAAE,IAAU,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;AAChB,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;KACxC;AAED;;AAEG;AACH,IAAA,IAAW,EAAE,GAAA;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;KACjB;AAED;;AAEG;AACH,IAAA,IAAW,GAAG,GAAA;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;AAED;;AAEG;AACH,IAAA,IAAW,IAAI,GAAA;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;AAED;;AAEG;AACH,IAAA,IAAW,SAAS,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;AAED;;;;;AAKG;IACK,IAAI,GAAA;QACV,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAS,KAAI;AAC3E,YAAA,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,CAAC;AACnC,YAAA,MAAM,CAAC,GAAG,CAAC,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AAC;YAEnB,IAAI,EAAE,KAAK,EAAE,IAAI,OAAO,EAAE,KAAK,WAAW,EAAE;AAC1C,gBAAA,OAAO,IAAI,CAAC;AACb,aAAA;AAED,YAAA,IAAI,CAAC,SAAS,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;AACtB,gBAAA,OAAO,KAAK,CAAC;AACd,aAAA;AACF,SAAA;AAED,QAAA,OAAO,IAAI,CAAC;KACb;AAED;;;;;;AAMG;IACI,IAAI,CAAC,GAAW,EAAE,IAAU,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE;AACtB,YAAA,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;AACzE,SAAA;QAED,MAAM,QAAQ,GAAa,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;AAEnD,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;KAC7C;AAED;;;;;;AAMG;AACI,IAAA,EAAE,CAAI,GAAW,EAAA;AACtB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CACtC,MAAM,CAAC,CAAC,KAAuB,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAClE,GAAG,CAAC,CAAC,KAAuB,KAAK,KAAK,CAAC,QAAQ,CAAC,CACjD,CAAC;KACH;AACF;;ACrGD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file +{"version":3,"file":"ng-event-bus.mjs","sources":["../../src/lib/meta-data.ts","../../src/lib/ng-event-bus.ts","../../src/index.ts","../../src/ng-event-bus.ts"],"sourcesContent":["/* tslint:disable:variable-name */\n\n/**\n * Metadata of the messages sent through the events bus.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.1.0\n */\nexport class MetaData {\n /**\n * A unique identifier of the message sent through the events bus.\n * @private\n */\n private readonly _id: string;\n\n /**\n * Original key associated to the message.\n * @private\n */\n private readonly _key: string;\n\n /**\n * Data associated to message. It's optional.\n * @private\n */\n private readonly _data: any;\n\n /**\n * Time in milliseconds in which the message was generated.\n * @private\n */\n private readonly _timestamp: number;\n\n /**\n * Constructor for this class.\n *\n * @param key Original key associated to the message sent through the events bus.\n * @param [data] Optional: Additional data sent with the message.\n */\n constructor(key: string, data?: any) {\n this._id = this.uuid();\n this._key = key;\n this._data = data;\n this._timestamp = new Date().getTime();\n }\n\n /**\n * Gets unique identifier of the message sent through the events bus.\n */\n public get id(): string {\n return this._id;\n }\n\n /**\n * Original key associated to the message.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Data associated to message. It's optional.\n */\n public get data(): any {\n return this._data;\n }\n\n /**\n * Gets the time in milliseconds in which the message was generated.\n */\n public get timestamp(): number {\n return this._timestamp;\n }\n\n /**\n * Generates UUID version 4. The solution above uses Math.random() for brevity, however Math.random() is not\n * guaranteed to be a high-quality RNG.\n *\n * @return UUID version 4.\n */\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c: string) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }\n}\n","import { Observable, Subject } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\n\nimport { IEventBusMessage } from './i-event-bus-message';\nimport { MetaData } from './meta-data';\n\n/**\n * Main library class.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.1.0\n */\nexport class NgEventBus {\n /**\n * Main observable to multicast to all observers.\n */\n private eventBus: Subject;\n\n /**\n * Key message separator.\n */\n private separator = ':';\n\n /**\n * Constructor for this class: Initializes event bus.\n */\n constructor() {\n this.eventBus = new Subject();\n }\n\n /**\n * Validates key matching.\n *\n * @param key Key to identify the message/event.\n * @param wildcard Wildcard received from on method.\n *\n * @return true if key matches, false otherwise.\n */\n public keyMatch(key: string, wildcard: string): boolean {\n const w = '*';\n const ww = '**';\n\n const partMatch = (wl: string, k: string): boolean => {\n return wl === w || wl === k;\n };\n\n const sep = this.separator;\n const kArr = key.split(sep);\n const wArr = wildcard.split(sep);\n\n const kLen = kArr.length;\n const wLen = wArr.length;\n const max = Math.max(kLen, wLen);\n\n for (let i = 0; i < max; i++) {\n const cK = kArr[i];\n const cW = wArr[i];\n\n if (cW === ww && typeof cK !== 'undefined') {\n return true;\n }\n\n if (!partMatch(cW, cK)) {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Publish a message/event to event bus.\n *\n * @param key Key to identify the message/event.\n * @param [data] Optional: Additional data sent with the message/event.\n * @throws {Error} key parameter must be a string and must not be empty.\n */\n public cast(key: string, data?: any): void {\n if (!key.trim().length) {\n throw new Error('key parameter must be a string and must not be empty');\n }\n\n const metadata: MetaData = new MetaData(key, data);\n\n this.eventBus.next({ key, data, metadata });\n }\n\n /**\n * Returns an observable you can subscribe to listen messages/events.\n *\n * @param key Key to identify the message/event.\n *\n * @return Observable you can subscribe to listen messages/events.\n */\n public on(key: string): Observable {\n return this.eventBus.asObservable().pipe(\n filter((event: IEventBusMessage) => this.keyMatch(event.key, key)),\n map((event: IEventBusMessage) => event.metadata)\n );\n }\n}\n","/*\n * Public API Surface of ng-event-bus\n */\nexport { NgEventBus } from './lib/ng-event-bus';\nexport { MetaData } from './lib/meta-data';\nexport { IEventBusMessage } from './lib/i-event-bus-message';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAEA;;;;;;AAMG;MACU,QAAQ,CAAA;AAyBnB;;;;;AAKG;IACH,WAAY,CAAA,GAAW,EAAE,IAAU,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;AAChB,QAAA,IAAI,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AAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;KAC7C;AAED;;;;;;AAMG;AACI,IAAA,EAAE,CAAI,GAAW,EAAA;AACtB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CACtC,MAAM,CAAC,CAAC,KAAuB,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAClE,GAAG,CAAC,CAAC,KAAuB,KAAK,KAAK,CAAC,QAAQ,CAAC,CACjD,CAAC;KACH;AACF;;ACrGD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file diff --git a/dist/fesm2020/ng-event-bus.mjs b/dist/fesm2020/ng-event-bus.mjs index 942b98b..a04e471 100644 --- a/dist/fesm2020/ng-event-bus.mjs +++ b/dist/fesm2020/ng-event-bus.mjs @@ -7,7 +7,7 @@ import { filter, map } from 'rxjs/operators'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ class MetaData { /** @@ -66,7 +66,7 @@ class MetaData { * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ class NgEventBus { /** @@ -147,3 +147,4 @@ class NgEventBus { export { MetaData, NgEventBus }; //# sourceMappingURL=ng-event-bus.mjs.map +//# sourceMappingURL=ng-event-bus.mjs.map diff --git a/dist/fesm2020/ng-event-bus.mjs.map b/dist/fesm2020/ng-event-bus.mjs.map index c274550..eccc93c 100644 --- a/dist/fesm2020/ng-event-bus.mjs.map +++ b/dist/fesm2020/ng-event-bus.mjs.map @@ -1 +1 @@ -{"version":3,"file":"ng-event-bus.mjs","sources":["../../src/lib/meta-data.ts","../../src/lib/ng-event-bus.ts","../../src/index.ts","../../src/ng-event-bus.ts"],"sourcesContent":["/* tslint:disable:variable-name */\n\n/**\n * Metadata of the messages sent through the events bus.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.0.1\n */\nexport class MetaData {\n /**\n * A unique identifier of the message sent through the events bus.\n * @private\n */\n private readonly _id: string;\n\n /**\n * Original key associated to the message.\n * @private\n */\n private readonly _key: string;\n\n /**\n * Data associated to message. It's optional.\n * @private\n */\n private readonly _data: any;\n\n /**\n * Time in milliseconds in which the message was generated.\n * @private\n */\n private readonly _timestamp: number;\n\n /**\n * Constructor for this class.\n *\n * @param key Original key associated to the message sent through the events bus.\n * @param [data] Optional: Additional data sent with the message.\n */\n constructor(key: string, data?: any) {\n this._id = this.uuid();\n this._key = key;\n this._data = data;\n this._timestamp = new Date().getTime();\n }\n\n /**\n * Gets unique identifier of the message sent through the events bus.\n */\n public get id(): string {\n return this._id;\n }\n\n /**\n * Original key associated to the message.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Data associated to message. It's optional.\n */\n public get data(): any {\n return this._data;\n }\n\n /**\n * Gets the time in milliseconds in which the message was generated.\n */\n public get timestamp(): number {\n return this._timestamp;\n }\n\n /**\n * Generates UUID version 4. The solution above uses Math.random() for brevity, however Math.random() is not\n * guaranteed to be a high-quality RNG.\n *\n * @return UUID version 4.\n */\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c: string) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }\n}\n","import { Observable, Subject } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\n\nimport { IEventBusMessage } from './i-event-bus-message';\nimport { MetaData } from './meta-data';\n\n/**\n * Main library class.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.0.1\n */\nexport class NgEventBus {\n /**\n * Main observable to multicast to all observers.\n */\n private eventBus: Subject;\n\n /**\n * Key message separator.\n */\n private separator = ':';\n\n /**\n * Constructor for this class: Initializes event bus.\n */\n constructor() {\n this.eventBus = new Subject();\n }\n\n /**\n * Validates key matching.\n *\n * @param key Key to identify the message/event.\n * @param wildcard Wildcard received from on method.\n *\n * @return true if key matches, false otherwise.\n */\n public keyMatch(key: string, wildcard: string): boolean {\n const w = '*';\n const ww = '**';\n\n const partMatch = (wl: string, k: string): boolean => {\n return wl === w || wl === k;\n };\n\n const sep = this.separator;\n const kArr = key.split(sep);\n const wArr = wildcard.split(sep);\n\n const kLen = kArr.length;\n const wLen = wArr.length;\n const max = Math.max(kLen, wLen);\n\n for (let i = 0; i < max; i++) {\n const cK = kArr[i];\n const cW = wArr[i];\n\n if (cW === ww && typeof cK !== 'undefined') {\n return true;\n }\n\n if (!partMatch(cW, cK)) {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Publish a message/event to event bus.\n *\n * @param key Key to identify the message/event.\n * @param [data] Optional: Additional data sent with the message/event.\n * @throws {Error} key parameter must be a string and must not be empty.\n */\n public cast(key: string, data?: any): void {\n if (!key.trim().length) {\n throw new Error('key parameter must be a string and must not be empty');\n }\n\n const metadata: MetaData = new MetaData(key, data);\n\n this.eventBus.next({ key, data, metadata });\n }\n\n /**\n * Returns an observable you can subscribe to listen messages/events.\n *\n * @param key Key to identify the message/event.\n *\n * @return Observable you can subscribe to listen messages/events.\n */\n public on(key: string): Observable {\n return this.eventBus.asObservable().pipe(\n filter((event: IEventBusMessage) => this.keyMatch(event.key, key)),\n map((event: IEventBusMessage) => event.metadata)\n );\n }\n}\n","/*\n * Public API Surface of ng-event-bus\n */\nexport { NgEventBus } from './lib/ng-event-bus';\nexport { MetaData } from './lib/meta-data';\nexport { IEventBusMessage } from './lib/i-event-bus-message';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAEA;;;;;;AAMG;MACU,QAAQ,CAAA;AAyBnB;;;;;AAKG;IACH,WAAY,CAAA,GAAW,EAAE,IAAU,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,G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D,QAAA,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;KAC7C;AAED;;;;;;AAMG;AACI,IAAA,EAAE,CAAI,GAAW,EAAA;AACtB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,CACtC,MAAM,CAAC,CAAC,KAAuB,KAAK,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAClE,GAAG,CAAC,CAAC,KAAuB,KAAK,KAAK,CAAC,QAAQ,CAAC,CACjD,CAAC;KACH;AACF;;ACrGD;;AAEG;;ACFH;;AAEG;;;;"} \ No newline at end of file +{"version":3,"file":"ng-event-bus.mjs","sources":["../../src/lib/meta-data.ts","../../src/lib/ng-event-bus.ts","../../src/index.ts","../../src/ng-event-bus.ts"],"sourcesContent":["/* tslint:disable:variable-name */\n\n/**\n * Metadata of the messages sent through the events bus.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.1.0\n */\nexport class MetaData {\n /**\n * A unique identifier of the message sent through the events bus.\n * @private\n */\n private readonly _id: string;\n\n /**\n * Original key associated to the message.\n * @private\n */\n private readonly _key: string;\n\n /**\n * Data associated to message. It's optional.\n * @private\n */\n private readonly _data: any;\n\n /**\n * Time in milliseconds in which the message was generated.\n * @private\n */\n private readonly _timestamp: number;\n\n /**\n * Constructor for this class.\n *\n * @param key Original key associated to the message sent through the events bus.\n * @param [data] Optional: Additional data sent with the message.\n */\n constructor(key: string, data?: any) {\n this._id = this.uuid();\n this._key = key;\n this._data = data;\n this._timestamp = new Date().getTime();\n }\n\n /**\n * Gets unique identifier of the message sent through the events bus.\n */\n public get id(): string {\n return this._id;\n }\n\n /**\n * Original key associated to the message.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Data associated to message. It's optional.\n */\n public get data(): any {\n return this._data;\n }\n\n /**\n * Gets the time in milliseconds in which the message was generated.\n */\n public get timestamp(): number {\n return this._timestamp;\n }\n\n /**\n * Generates UUID version 4. The solution above uses Math.random() for brevity, however Math.random() is not\n * guaranteed to be a high-quality RNG.\n *\n * @return UUID version 4.\n */\n private uuid(): string {\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c: string) => {\n const r = (Math.random() * 16) | 0;\n const v = c === 'x' ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n }\n}\n","import { Observable, Subject } from 'rxjs';\nimport { filter, map } from 'rxjs/operators';\n\nimport { IEventBusMessage } from './i-event-bus-message';\nimport { MetaData } from './meta-data';\n\n/**\n * Main library class.\n *\n * @author Cristiam Mercado\n * @since 2.0.0\n * @version 5.1.0\n */\nexport class NgEventBus {\n /**\n * Main observable to multicast to all observers.\n */\n private eventBus: Subject;\n\n /**\n * Key message separator.\n */\n private separator = ':';\n\n /**\n * Constructor for this class: Initializes event bus.\n */\n constructor() {\n this.eventBus = new Subject();\n }\n\n /**\n * Validates key matching.\n *\n * @param key Key to identify the message/event.\n * @param wildcard Wildcard received from on method.\n *\n * @return true if key matches, false otherwise.\n */\n public keyMatch(key: string, wildcard: string): boolean {\n const w = '*';\n const ww = '**';\n\n const partMatch = (wl: string, k: string): boolean => {\n return wl === w || wl === k;\n };\n\n const sep = this.separator;\n const kArr = key.split(sep);\n const wArr = wildcard.split(sep);\n\n const kLen = kArr.length;\n const wLen = wArr.length;\n const max = Math.max(kLen, wLen);\n\n for (let i = 0; i < max; i++) {\n const cK = kArr[i];\n const cW = wArr[i];\n\n if (cW === ww && typeof cK !== 'undefined') {\n return true;\n }\n\n if (!partMatch(cW, cK)) {\n return false;\n }\n }\n\n return true;\n }\n\n /**\n * Publish a message/event to event bus.\n *\n * @param key Key to identify the message/event.\n * @param [data] Optional: Additional data sent with the message/event.\n * @throws {Error} key parameter must be a string and must not be empty.\n */\n public cast(key: string, data?: any): void {\n if (!key.trim().length) {\n throw new Error('key parameter must be a string and must not be empty');\n }\n\n const metadata: MetaData = new MetaData(key, data);\n\n this.eventBus.next({ key, data, metadata });\n }\n\n /**\n * Returns an observable you can subscribe to listen messages/events.\n *\n * @param key Key to identify the message/event.\n *\n * @return Observable you can subscribe to listen messages/events.\n */\n public on(key: string): Observable {\n return this.eventBus.asObservable().pipe(\n filter((event: IEventBusMessage) => this.keyMatch(event.key, key)),\n map((event: IEventBusMessage) => event.metadata)\n );\n }\n}\n","/*\n * Public API Surface of ng-event-bus\n */\nexport { NgEventBus } from './lib/ng-event-bus';\nexport { MetaData } from './lib/meta-data';\nexport { IEventBusMessage } from './lib/i-event-bus-message';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAEA;;;;;;AAMG;MACU,QAAQ,CAAA;AAyBnB;;;;;AAKG;IACH,WAAY,CAAA,GAAW,EAAE,IAAU,EAAA;AACjC,QAAA,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;AACvB,QAAA,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;AAChB,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;KACxC;AAED;;AAEG;AACH,IAAA,IAAW,EAAE,GAAA;QACX,OAAO,IAAI,CAAC,GAAG,CAAC;KACjB;AAED;;AAEG;AACH,IAAA,IAAW,GAAG,GAAA;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;KAClB;AAED;;AAEG;AACH,IAAA,IAAW,IAAI,GAAA;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;KACnB;AAED;;AAEG;AACH,IAAA,IAAW,SAAS,GAAA;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;AAED;;;;;AAKG;IACK,IAAI,GAAA;QACV,OAAO,sCAAsC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAS,KAAI;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b/dist/lib/i-event-bus-message.d.ts @@ -4,7 +4,7 @@ import { MetaData } from './meta-data'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export interface IEventBusMessage { /** diff --git a/dist/lib/meta-data.d.ts b/dist/lib/meta-data.d.ts index c9ff4f1..4ba39c4 100644 --- a/dist/lib/meta-data.d.ts +++ b/dist/lib/meta-data.d.ts @@ -3,7 +3,7 @@ * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export declare class MetaData { /** diff --git a/dist/lib/ng-event-bus.d.ts b/dist/lib/ng-event-bus.d.ts index af622a1..599cda2 100644 --- a/dist/lib/ng-event-bus.d.ts +++ b/dist/lib/ng-event-bus.d.ts @@ -5,7 +5,7 @@ import { MetaData } from './meta-data'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export declare class NgEventBus { /** diff --git a/dist/package.json b/dist/package.json index c32765b..7354a6f 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "ng-event-bus", - "version": "5.0.1", + "version": "5.1.0", "description": "RxJS-based message/event bus service for Angular.", "homepage": "https://github.com/cristiammercado/ng-event-bus", "bugs": { @@ -26,7 +26,7 @@ }, "license": "MIT", "dependencies": { - "rxjs": "~7.6.0", + "rxjs": "~7.8.0", "tslib": "^2.3.0" }, "engines": { diff --git a/package-lock.json b/package-lock.json index 67ede9c..13e0145 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,27 +1,27 @@ { "name": "ng-event-bus", - "version": "5.0.1", + "version": "5.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ng-event-bus", - "version": "5.0.1", + "version": "5.1.0", "license": "MIT", "dependencies": { - "rxjs": "~7.6.0" + "rxjs": "~7.8.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~15.0.2", - "@angular/cli": "~15.0.2", - "@angular/common": "~15.0.2", - "@angular/compiler": "~15.0.2", - "@angular/compiler-cli": "~15.0.2", - "@angular/core": "~15.0.2", - "@angular/platform-browser": "~15.0.2", - "@angular/platform-browser-dynamic": "~15.0.2", + "@angular-devkit/build-angular": "~15.0.4", + "@angular/cli": "~15.0.4", + "@angular/common": "~15.0.4", + "@angular/compiler": "~15.0.4", + "@angular/compiler-cli": "~15.0.4", + "@angular/core": "~15.0.4", + "@angular/platform-browser": "~15.0.4", + "@angular/platform-browser-dynamic": "~15.0.4", "@types/jasmine": "~4.3.1", - "@types/node": "~18.11.10", + "@types/node": "~18.11.17", "jasmine-core": "~4.5.0", "jasmine-spec-reporter": "~7.0.0", "karma": "~6.4.1", @@ -30,8 +30,8 @@ "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.0.0", "karma-junit-reporter": "~2.0.1", - "ng-packagr": "~15.0.1", - "prettier": "~2.8.0", + "ng-packagr": "~15.0.3", + "prettier": "~2.8.1", "tslib": "~2.4.1", "typescript": "~4.8.4", "zone.js": "~0.12.0" @@ -54,12 +54,12 @@ } }, "node_modules/@angular-devkit/architect": { - "version": "0.1500.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1500.2.tgz", - "integrity": "sha512-gprTEy6vD57yJCd6JqRaFZ/pfmXuEDHlH7mOVBcBdTGuuE1VJkiNJ69E9gw552L7wwVEsF0D6lVYTFHVDkMDmA==", + "version": "0.1500.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1500.4.tgz", + "integrity": "sha512-U9RQueICmmNk9c2zQjUN8qi/+H6kO2VKqeyuh3Vwj6yj4lQEINf1SNX8Ba9UFH/rxNo64iFM0k5x5vX0VajvCw==", "dev": true, "dependencies": { - "@angular-devkit/core": "15.0.2", + "@angular-devkit/core": "15.0.4", "rxjs": "6.6.7" }, "engines": { @@ -87,15 +87,15 @@ "dev": true }, "node_modules/@angular-devkit/build-angular": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-15.0.2.tgz", - "integrity": "sha512-jB3iU8qbQkqDGXr/DLPuU3jB7eAyiTDyk7f7c5hS+E9j2FSrWIZPOucTJXWfukA+yFs1nIBRVxSNYp3yqwAXiA==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-15.0.4.tgz", + "integrity": "sha512-F1KyaZEIWcVP2xIIiu3ZnH+FzuEehR9rli1F566dPijbll8EnknnItEugFtVhyoaVTh8eJmm1SfsoQrneMbrsg==", "dev": true, "dependencies": { "@ampproject/remapping": "2.2.0", - "@angular-devkit/architect": "0.1500.2", - "@angular-devkit/build-webpack": "0.1500.2", - "@angular-devkit/core": "15.0.2", + "@angular-devkit/architect": "0.1500.4", + "@angular-devkit/build-webpack": "0.1500.4", + "@angular-devkit/core": "15.0.4", "@babel/core": "7.20.2", "@babel/generator": "7.20.4", "@babel/helper-annotate-as-pure": "7.18.6", @@ -106,7 +106,7 @@ "@babel/runtime": "7.20.1", "@babel/template": "7.18.10", "@discoveryjs/json-ext": "0.5.7", - "@ngtools/webpack": "15.0.2", + "@ngtools/webpack": "15.0.4", "ansi-colors": "4.1.3", "autoprefixer": "10.4.13", "babel-loader": "9.1.0", @@ -116,7 +116,7 @@ "chokidar": "3.5.3", "copy-webpack-plugin": "11.0.0", "critters": "0.0.16", - "css-loader": "6.7.1", + "css-loader": "6.7.3", "esbuild-wasm": "0.15.13", "glob": "8.0.3", "https-proxy-agent": "5.0.1", @@ -214,12 +214,12 @@ "dev": true }, "node_modules/@angular-devkit/build-webpack": { - "version": "0.1500.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1500.2.tgz", - "integrity": "sha512-T1spkWTKpYlB4xsEX1PqqwYWBNw/R62toalfgcGdGNXrizJeI46lJ0zMdIjpe8UHhy/i5iK5s5LQ5pz0Ow2TIg==", + "version": "0.1500.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1500.4.tgz", + "integrity": "sha512-ay2vHMfyhaPDkzEISlRV1ZiTD/VCUunW+uRfNIzo9/o83UjTKVcqYUOUOvbIbrsb6JbQoNY+DwkES5frG1UmnA==", "dev": true, "dependencies": { - "@angular-devkit/architect": "0.1500.2", + "@angular-devkit/architect": "0.1500.4", "rxjs": "6.6.7" }, "engines": { @@ -251,9 +251,9 @@ "dev": true }, "node_modules/@angular-devkit/core": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-15.0.2.tgz", - "integrity": "sha512-XkdNKyeYvnCq0zWuEda163muUV38ifNyK6EjrbhI5pQWNg7myxtDmLenjtpXLGLZwjxqsart2l/uoYsk1xQCmQ==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-15.0.4.tgz", + "integrity": "sha512-4ITpRAevd652SxB+qNesIQ9qfbm7wT5UBU5kJOPPwGL77I21g8CQpkmV1n5VSacPvC9Zbz90feOWexf7w7JzcA==", "dev": true, "dependencies": { "ajv": "8.11.0", @@ -295,12 +295,12 @@ "dev": true }, "node_modules/@angular-devkit/schematics": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-15.0.2.tgz", - "integrity": "sha512-FqimOzQCwRGmz/NPPiK6QpAxI+qpy8rYQRlWRWSOfQgjb+cl4rD2isllalYvzO+5mmb88fwJ7bj9cP2X5khpcg==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-15.0.4.tgz", + "integrity": "sha512-/gXiLFS0+xFdx6wPoBpe/c6/K9I5edMpaASqPf4XheKtrsSvL+qTlIi3nsbfItzOiDXbaBmlbxGfkMHz/yg0Ig==", "dev": true, "dependencies": { - "@angular-devkit/core": "15.0.2", + "@angular-devkit/core": "15.0.4", "jsonc-parser": "3.2.0", "magic-string": "0.26.7", "ora": "5.4.1", @@ -331,15 +331,15 @@ "dev": true }, "node_modules/@angular/cli": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-15.0.2.tgz", - "integrity": "sha512-SRPCYiK5A+U0V173EUZNYHtOvFtxefH9hfie2+XcJX9B/7VxqIkyRYXOUUyWtC7yzbxWNJ1+WG5X4S5C2LrTEw==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-15.0.4.tgz", + "integrity": "sha512-dQEus458EvBYZuM10UPO/1BYshV3cprY4os6uQj6YLdEwOogElkAedUILgtTYOo3jrwc+qjefHVJbz6R+xJCOg==", "dev": true, "dependencies": { - "@angular-devkit/architect": "0.1500.2", - "@angular-devkit/core": "15.0.2", - "@angular-devkit/schematics": "15.0.2", - "@schematics/angular": "15.0.2", + "@angular-devkit/architect": "0.1500.4", + "@angular-devkit/core": "15.0.4", + "@angular-devkit/schematics": "15.0.4", + "@schematics/angular": "15.0.4", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.3", "ini": "3.0.1", @@ -365,9 +365,9 @@ } }, "node_modules/@angular/common": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.0.2.tgz", - "integrity": "sha512-BZkaUdFv6A0a8m3R/HEYmwZrULMHwRWQh+ukSQEz9reVNUiH0/mNvj9I4iYYCfYXHPiyMIRfAeu/fqdl14DBFg==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-15.0.4.tgz", + "integrity": "sha512-0x/2IhaetJqfXMeQ4DlRnOTzGWD0OvOeKORyi0q7WXPxSoD9MUezQHGmzkc5lK9tDYE9cNYyQfkUBcbJT/k6MA==", "dev": true, "dependencies": { "tslib": "^2.3.0" @@ -376,14 +376,14 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/core": "15.0.2", + "@angular/core": "15.0.4", "rxjs": "^6.5.3 || ^7.4.0" } }, "node_modules/@angular/compiler": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.0.2.tgz", - "integrity": "sha512-dD1Vv2txp09V7RaJK2tvGRWpM2RsDARVAGL65hfJY2txeEFRyajcle6jOI11NfGpgsZvptN7o5oc8ozQI1hgTA==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/compiler/-/compiler-15.0.4.tgz", + "integrity": "sha512-KtxgRJUGZamOXpIILFG2FTUW+bbc2phi/o6955/Q4LR1HOICQrYEy8PrT1Gp+lVXFKgDG+6cb01lH14LoBQvyw==", "dev": true, "dependencies": { "tslib": "^2.3.0" @@ -392,7 +392,7 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/core": "15.0.2" + "@angular/core": "15.0.4" }, "peerDependenciesMeta": { "@angular/core": { @@ -401,19 +401,19 @@ } }, "node_modules/@angular/compiler-cli": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.0.2.tgz", - "integrity": "sha512-WZCULskbuoMA0iQ36H2nGgKj017JENR+wDnwuQ+/1ECtBN2PpjJiws/m5bntBzQe96w2fue6tOLh09WESQgRHw==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-15.0.4.tgz", + "integrity": "sha512-e6Jt4qkIiyqBg8ZlpcQaQtQ5OAnfl8gfkJnIwSvvCg0mPCJv+ZkQAL5s3SpzzM5jd7Nr0jBq3zd2Fv0eKW2ayw==", "dev": true, "dependencies": { "@babel/core": "^7.17.2", + "@jridgewell/sourcemap-codec": "^1.4.14", "chokidar": "^3.0.0", "convert-source-map": "^1.5.1", "dependency-graph": "^0.11.0", - "magic-string": "^0.26.0", + "magic-string": "^0.27.0", "reflect-metadata": "^0.1.2", "semver": "^7.0.0", - "sourcemap-codec": "^1.4.8", "tslib": "^2.3.0", "yargs": "^17.2.1" }, @@ -426,14 +426,26 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/compiler": "15.0.2", + "@angular/compiler": "15.0.4", "typescript": ">=4.8.2 <4.9" } }, + "node_modules/@angular/compiler-cli/node_modules/magic-string": { + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.27.0.tgz", + "integrity": "sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.4.13" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/@angular/core": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/core/-/core-15.0.2.tgz", - "integrity": "sha512-qM0T4r3Z3Qfk+5+M5JRB1qr3AUKgabbC0kARY+R+QvwbQBE6UoeWw5eRuUbTGDP70Ikeeg0xZebpkr7Oghp9/A==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-15.0.4.tgz", + "integrity": "sha512-Xf8Nuu0iM/VjQHPS4A0jufqTYZCfiGqc0iAD7j9zM3TD6caQ3OP4mxXVYYTpIG+APKel38+Gol8cpQB/8PVbqQ==", "dev": true, "dependencies": { "tslib": "^2.3.0" @@ -447,9 +459,9 @@ } }, "node_modules/@angular/platform-browser": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-15.0.2.tgz", - "integrity": "sha512-Dau9Ip5ub35lyJ+Bl2sUMQ4CoCgj8tdcNWDyQrfYynllKZfbQNaNY60To48P4u7pVGwN/Ib8Wb+jcloZJUXm4Q==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser/-/platform-browser-15.0.4.tgz", + "integrity": "sha512-SOLrzh9AsHzhfre95ShvHd0hBcyEcFftJuAaU+35L4GiOAY+CznFuJUq4LjITCMQDHGzdpUlRjoUyJRQFmlvXQ==", "dev": true, "dependencies": { "tslib": "^2.3.0" @@ -458,9 +470,9 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/animations": "15.0.2", - "@angular/common": "15.0.2", - "@angular/core": "15.0.2" + "@angular/animations": "15.0.4", + "@angular/common": "15.0.4", + "@angular/core": "15.0.4" }, "peerDependenciesMeta": { "@angular/animations": { @@ -469,9 +481,9 @@ } }, "node_modules/@angular/platform-browser-dynamic": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-15.0.2.tgz", - "integrity": "sha512-OJ3WevyoR/rEYs9zqY2NzYX+2OqcWrmATFnvdFNMztjl8HO/SVak1URz8phZeSRslWjILlJ4nxPORVwV8TlW+w==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@angular/platform-browser-dynamic/-/platform-browser-dynamic-15.0.4.tgz", + "integrity": "sha512-SCUxsfJAHXnAyo2ulmfqs3vGnB/tWNKe+G2KKshrSLyCYIJ3UgpsoPAo1mGih64qo8TWOQk9PJgrlVEB2DoWYg==", "dev": true, "dependencies": { "tslib": "^2.3.0" @@ -480,10 +492,10 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "peerDependencies": { - "@angular/common": "15.0.2", - "@angular/compiler": "15.0.2", - "@angular/core": "15.0.2", - "@angular/platform-browser": "15.0.2" + "@angular/common": "15.0.4", + "@angular/compiler": "15.0.4", + "@angular/core": "15.0.4", + "@angular/platform-browser": "15.0.4" } }, "node_modules/@assemblyscript/loader": { @@ -2202,6 +2214,150 @@ "node": ">=12" } }, + "node_modules/@esbuild/android-arm64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.16.10.tgz", + "integrity": "sha512-47Y+NwVKTldTlDhSgJHZ/RpvBQMUDG7eKihqaF/u6g7s0ZPz4J1vy8A3rwnnUOF2CuDn7w7Gj/QcMoWz3U3SJw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.16.10.tgz", + "integrity": "sha512-C4PfnrBMcuAcOurQzpF1tTtZz94IXO5JmICJJ3NFJRHbXXsQUg9RFG45KvydKqtFfBaFLCHpduUkUfXwIvGnRg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.16.10.tgz", + "integrity": "sha512-bH/bpFwldyOKdi9HSLCLhhKeVgRYr9KblchwXgY2NeUHBB/BzTUHtUSBgGBmpydB1/4E37m+ggXXfSrnD7/E7g==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.16.10.tgz", + "integrity": "sha512-OXt7ijoLuy+AjDSKQWu+KdDFMBbdeaL6wtgMKtDUXKWHiAMKHan5+R1QAG6HD4+K0nnOvEJXKHeA9QhXNAjOTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.16.10.tgz", + "integrity": "sha512-shSQX/3GHuspE3Uxtq5kcFG/zqC+VuMnJkqV7LczO41cIe6CQaXHD3QdMLA4ziRq/m0vZo7JdterlgbmgNIAlQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.16.10.tgz", + "integrity": "sha512-5YVc1zdeaJGASijZmTzSO4h6uKzsQGG3pkjI6fuXvolhm3hVRhZwnHJkforaZLmzvNv5Tb7a3QL2FAVmrgySIA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.16.10.tgz", + "integrity": "sha512-c360287ZWI2miBnvIj23bPyVctgzeMT2kQKR+x94pVqIN44h3GF8VMEs1SFPH1UgyDr3yBbx3vowDS1SVhyVhA==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.16.10.tgz", + "integrity": "sha512-2aqeNVxIaRfPcIaMZIFoblLh588sWyCbmj1HHCCs9WmeNWm+EIN0SmvsmPvTa/TsNZFKnxTcvkX2eszTcCqIrA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.16.10.tgz", + "integrity": "sha512-sqMIEWeyrLGU7J5RB5fTkLRIFwsgsQ7ieWXlDLEmC2HblPYGb3AucD7inw2OrKFpRPKsec1l+lssiM3+NV5aOw==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@esbuild/linux-loong64": { "version": "0.15.13", "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.15.13.tgz", @@ -2218,6 +2374,182 @@ "node": ">=12" } }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.16.10.tgz", + "integrity": "sha512-FN8mZOH7531iPHM0kaFhAOqqNHoAb6r/YHW2ZIxNi0a85UBi2DO4Vuyn7t1p4UN8a4LoAnLOT1PqNgHkgBJgbA==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.16.10.tgz", + "integrity": "sha512-Dg9RiqdvHOAWnOKIOTsIx8dFX9EDlY2IbPEY7YFzchrCiTZmMkD7jWA9UdZbNUygPjdmQBVPRCrLydReFlX9yg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.16.10.tgz", + "integrity": "sha512-XMqtpjwzbmlar0BJIxmzu/RZ7EWlfVfH68Vadrva0Wj5UKOdKvqskuev2jY2oPV3aoQUyXwnMbMrFmloO2GfAw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.16.10.tgz", + "integrity": "sha512-fu7XtnoeRNFMx8DjK3gPWpFBDM2u5ba+FYwg27SjMJwKvJr4bDyKz5c+FLXLUSSAkMAt/UL+cUbEbra+rYtUgw==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.16.10.tgz", + "integrity": "sha512-61lcjVC/RldNNMUzQQdyCWjCxp9YLEQgIxErxU9XluX7juBdGKb0pvddS0vPNuCvotRbzijZ1pzII+26haWzbA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.16.10.tgz", + "integrity": "sha512-JeZXCX3viSA9j4HqSoygjssdqYdfHd6yCFWyfSekLbz4Ef+D2EjvsN02ZQPwYl5a5gg/ehdHgegHhlfOFP0HCA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.16.10.tgz", + "integrity": "sha512-3qpxQKuEVIIg8SebpXsp82OBrqjPV/OwNWmG+TnZDr3VGyChNnGMHccC1xkbxCHDQNnnXjxhMQNyHmdFJbmbRA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.16.10.tgz", + "integrity": "sha512-z+q0xZ+et/7etz7WoMyXTHZ1rB8PMSNp/FOqURLJLOPb3GWJ2aj4oCqFCjPwEbW1rsT7JPpxeH/DwGAWk/I1Bg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.16.10.tgz", + "integrity": "sha512-+YYu5sbQ9npkNT9Dec+tn1F/kjg6SMgr6bfi/6FpXYZvCRfu2YFPZGb+3x8K30s8eRxFpoG4sGhiSUkr1xbHEw==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.16.10.tgz", + "integrity": "sha512-Aw7Fupk7XNehR1ftHGYwUteyJ2q+em/aE+fVU3YMTBN2V5A7Z4aVCSV+SvCp9HIIHZavPFBpbdP3VfjQpdf6Xg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.16.10.tgz", + "integrity": "sha512-qddWullt3sC1EIpfHvCRBq3H4g3L86DZpD6n8k2XFjFVyp01D++uNbN1hT/JRsHxTbyyemZcpwL5aRlJwc/zFw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, "node_modules/@gar/promisify": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", @@ -2327,9 +2659,9 @@ "dev": true }, "node_modules/@ngtools/webpack": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-15.0.2.tgz", - "integrity": "sha512-vSIrPjXNRdtkwdYY8x7SzsteZ7HlKfUe/OG7AoUboP6mgAevhp6M/kv2ZMCHLzFFLJ8GO6ZhvCPCmPGIm5C8aA==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-15.0.4.tgz", + "integrity": "sha512-+1riOTohRHhN2N8Y+usHFtNz+Rt6q/44puj9rwjlKwWIA+6qxAv3kQhVHivVaU3bCAB9B/3jAxSuZTNHk0wgTg==", "dev": true, "engines": { "node": "^14.20.0 || ^16.13.0 || >=18.10.0", @@ -2497,9 +2829,9 @@ } }, "node_modules/@npmcli/promise-spawn": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.1.tgz", - "integrity": "sha512-+hcUpxgx0vEpDJI9Cn+lkTdKLoqKBXFCVps5H7FujEU2vLOp6KwqjLlxbnz8Wzgm8oEqW/u5FeNAXSFjLdCD0A==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@npmcli/promise-spawn/-/promise-spawn-6.0.2.tgz", + "integrity": "sha512-gGq0NJkIGSwdbUt4yhdF8ZrmkGKVz9vAdVzpOfnom+V8PLSmSOVhZwbNvZZS1EYcJN5hzzKBxmmVVAInM6HQLg==", "dev": true, "dependencies": { "which": "^3.0.0" @@ -2622,13 +2954,13 @@ } }, "node_modules/@schematics/angular": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-15.0.2.tgz", - "integrity": "sha512-h5vTcOkJD0s+BMHRI87fVyKB+A/YqFolR7fhmhETTq2NwRg2oR0HTf7DbjVxPBwhvI5XzUV1MBPb30xXR2UG0w==", + "version": "15.0.4", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-15.0.4.tgz", + "integrity": "sha512-4l4WZlr9MnhXo2B7eLczttgkeq8Agm3zfiX0trYkOdYqLtzOKxPiI+RrZSsfIDmmLSE1EillZ3PtDImMzAgQPg==", "dev": true, "dependencies": { - "@angular-devkit/core": "15.0.2", - "@angular-devkit/schematics": "15.0.2", + "@angular-devkit/core": "15.0.4", + "@angular-devkit/schematics": "15.0.4", "jsonc-parser": "3.2.0" }, "engines": { @@ -2732,13 +3064,13 @@ "dev": true }, "node_modules/@types/express": { - "version": "4.17.14", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.14.tgz", - "integrity": "sha512-TEbt+vaPFQ+xpxFLFssxUDXj5cWCxZJjIcB7Yg0k0GMHGtgtQgpvx/MUQUeAkNbA9AAGrwkAsoeItdTgS7FMyg==", + "version": "4.17.15", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.15.tgz", + "integrity": "sha512-Yv0k4bXGOH+8a+7bELd2PqHQsuiANB+A8a4gnQrkRWzrkKlb6KHaVvyXhqs04sVW/OWlbPyYxRgYlIXLfrufMQ==", "dev": true, "dependencies": { "@types/body-parser": "*", - "@types/express-serve-static-core": "^4.17.18", + "@types/express-serve-static-core": "^4.17.31", "@types/qs": "*", "@types/serve-static": "*" } @@ -2782,9 +3114,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "18.11.10", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.10.tgz", - "integrity": "sha512-juG3RWMBOqcOuXC643OAdSA525V44cVgGV6dUDuiFtss+8Fk5x1hI93Rsld43VeJVIeqlP9I7Fn9/qaVqoEAuQ==", + "version": "18.11.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.17.tgz", + "integrity": "sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==", "dev": true }, "node_modules/@types/parse-json": { @@ -3288,18 +3620,6 @@ "integrity": "sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ==", "dev": true }, - "node_modules/atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true, - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" - } - }, "node_modules/autoprefixer": { "version": "10.4.13", "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.13.tgz", @@ -3706,9 +4026,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001436", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001436.tgz", - "integrity": "sha512-ZmWkKsnC2ifEPoWUvSAIGyOYwT+keAaaWPHiQ9DfMqS1t6tfuyFYoWR78TeZtznkEQ64+vGXH9cZrElwR2Mrxg==", + "version": "1.0.30001439", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz", + "integrity": "sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==", "dev": true, "funding": [ { @@ -4282,19 +4602,19 @@ } }, "node_modules/css-loader": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.1.tgz", - "integrity": "sha512-yB5CNFa14MbPJcomwNh3wLThtkZgcNyI2bNMRt8iE5Z8Vwl7f8vQXFAzn2HDOJvtDq2NTZBUGMSUNNyrv3/+cw==", + "version": "6.7.3", + "resolved": "https://registry.npmjs.org/css-loader/-/css-loader-6.7.3.tgz", + "integrity": "sha512-qhOH1KlBMnZP8FzRO6YCH9UHXQhVMcEGLyNdb7Hv2cpcmJbW0YrddO+tG1ab5nT41KpHIYGsbeHqxB9xPu1pKQ==", "dev": true, "dependencies": { "icss-utils": "^5.1.0", - "postcss": "^8.4.7", + "postcss": "^8.4.19", "postcss-modules-extract-imports": "^3.0.0", "postcss-modules-local-by-default": "^4.0.0", "postcss-modules-scope": "^3.0.0", "postcss-modules-values": "^4.0.0", "postcss-value-parser": "^4.2.0", - "semver": "^7.3.5" + "semver": "^7.3.8" }, "engines": { "node": ">= 12.13.0" @@ -4385,15 +4705,6 @@ } } }, - "node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", - "dev": true, - "engines": { - "node": ">=0.10" - } - }, "node_modules/deepmerge": { "version": "4.2.2", "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", @@ -5761,9 +6072,9 @@ } }, "node_modules/globby": { - "version": "13.1.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.2.tgz", - "integrity": "sha512-LKSDZXToac40u8Q1PQtZihbNdTYSNMuWe+K5l+oa6KgDzSvVrHXlJy40hUP522RjAIoNLJYBJi7ow+rbFpIhHQ==", + "version": "13.1.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", + "integrity": "sha512-8krCNHXvlCgHDpegPzleMq07yMYTO2sXKASmZmquEYWEmCx6J5UTRbp5RwMJkTJGtcQ44YpiUYUiN0b9mzy8Bw==", "dev": true, "dependencies": { "dir-glob": "^3.0.1", @@ -6084,9 +6395,9 @@ ] }, "node_modules/ignore": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", - "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "dev": true, "engines": { "node": ">= 4" @@ -6738,9 +7049,9 @@ "dev": true }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", + "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==", "dev": true, "bin": { "json5": "lib/cli.js" @@ -7583,9 +7894,9 @@ "dev": true }, "node_modules/minimatch": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.1.tgz", - "integrity": "sha512-362NP+zlprccbEt/SkxKfRMHnNY85V74mVnpUpNyr3F35covl09Kec7/sEFLt3RA4oXmewtoaanoIf67SE5Y5g==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-bNH9mmM9qsJ2X4r2Nat1B//1dJVcn3+iBLa3IgqJ7EbGaDNepL9QSHOxN4ng33s52VMMhhIfgCYDk3C4ZmlDAg==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -7809,9 +8120,9 @@ "dev": true }, "node_modules/ng-packagr": { - "version": "15.0.1", - "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-15.0.1.tgz", - "integrity": "sha512-O0e0mf88XVyWAt69YJivjzC5jJVurwLHHpNxdZNZDvqt05N7SfCJI1HAbRbGBvpWmSYTgAnmdjF3XEpPgAd0EA==", + "version": "15.0.3", + "resolved": "https://registry.npmjs.org/ng-packagr/-/ng-packagr-15.0.3.tgz", + "integrity": "sha512-QRP6X2cuO3AmukYOr+b84gamDWbE2R/cdAedhUSRRYaYD9IhQWVYr64pNiu5VwWNf43zaWWp8UGfKuDjoYYMvg==", "dev": true, "dependencies": { "@rollup/plugin-json": "^5.0.0", @@ -7823,8 +8134,9 @@ "cacache": "^17.0.0", "chokidar": "^3.5.3", "commander": "^9.4.0", + "convert-source-map": "^2.0.0", "dependency-graph": "^0.11.0", - "esbuild-wasm": "^0.15.9", + "esbuild-wasm": "^0.16.0", "find-cache-dir": "^3.3.2", "glob": "^8.0.3", "injection-js": "^2.4.0", @@ -7834,7 +8146,6 @@ "postcss": "^8.4.16", "postcss-url": "^10.1.3", "rollup": "^3.0.0", - "rollup-plugin-sourcemaps": "^0.6.3", "rxjs": "^7.5.6", "sass": "^1.55.0" }, @@ -7845,10 +8156,10 @@ "node": "^14.20.0 || ^16.13.0 || >=18.10.0" }, "optionalDependencies": { - "esbuild": "^0.15.9" + "esbuild": "^0.16.0" }, "peerDependencies": { - "@angular/compiler-cli": "^15.0.0-next", + "@angular/compiler-cli": "^15.0.0 || ^15.1.0-next.0 || ^15.2.0-next.0", "tailwindcss": "^2.0.0 || ^3.0.0", "tslib": "^2.3.0", "typescript": "~4.8.2" @@ -7859,6 +8170,94 @@ } } }, + "node_modules/ng-packagr/node_modules/@esbuild/android-arm": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.16.10.tgz", + "integrity": "sha512-RmJjQTRrO6VwUWDrzTBLmV4OJZTarYsiepLGlF2rYTVB701hSorPywPGvP6d8HCuuRibyXa5JX4s3jN2kHEtjQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/ng-packagr/node_modules/@esbuild/linux-loong64": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.16.10.tgz", + "integrity": "sha512-O7Pd5hLEtTg37NC73pfhUOGTjx/+aXu5YoSq3ahCxcN7Bcr2F47mv+kG5t840thnsEzrv0oB70+LJu3gUgchvg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/ng-packagr/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/ng-packagr/node_modules/esbuild": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.16.10.tgz", + "integrity": "sha512-z5dIViHoVnw2l+NCJ3zj5behdXjYvXne9gL18OOivCadXDUhyDkeSvEtLcGVAJW2fNmh33TDUpsi704XYlDodw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.16.10", + "@esbuild/android-arm64": "0.16.10", + "@esbuild/android-x64": "0.16.10", + "@esbuild/darwin-arm64": "0.16.10", + "@esbuild/darwin-x64": "0.16.10", + "@esbuild/freebsd-arm64": "0.16.10", + "@esbuild/freebsd-x64": "0.16.10", + "@esbuild/linux-arm": "0.16.10", + "@esbuild/linux-arm64": "0.16.10", + "@esbuild/linux-ia32": "0.16.10", + "@esbuild/linux-loong64": "0.16.10", + "@esbuild/linux-mips64el": "0.16.10", + "@esbuild/linux-ppc64": "0.16.10", + "@esbuild/linux-riscv64": "0.16.10", + "@esbuild/linux-s390x": "0.16.10", + "@esbuild/linux-x64": "0.16.10", + "@esbuild/netbsd-x64": "0.16.10", + "@esbuild/openbsd-x64": "0.16.10", + "@esbuild/sunos-x64": "0.16.10", + "@esbuild/win32-arm64": "0.16.10", + "@esbuild/win32-ia32": "0.16.10", + "@esbuild/win32-x64": "0.16.10" + } + }, + "node_modules/ng-packagr/node_modules/esbuild-wasm": { + "version": "0.16.10", + "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.16.10.tgz", + "integrity": "sha512-nCTG3pSRJFoL3k6cVCkDazjveYyvJaW2rDT5Y79jyWehS58pXzxSELnoda7PMGaRoo6yy+zmf48FrlDZ7PxEsA==", + "dev": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + } + }, "node_modules/nice-napi": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz", @@ -7891,9 +8290,9 @@ } }, "node_modules/node-gyp": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.0.tgz", - "integrity": "sha512-A6rJWfXFz7TQNjpldJ915WFb1LnhO4lIve3ANPbWreuEoLoKlFT3sxIepPBkLhM27crW8YmN+pjlgbasH6cH/Q==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.1.tgz", + "integrity": "sha512-4Q16ZCqq3g8awk6UplT7AuxQ35XN4R/yf/+wSAwcBUAjg7l58RTactWaP8fIDTi0FzI7YcVLujwExakZlfWkXg==", "dev": true, "dependencies": { "env-paths": "^2.2.0", @@ -7911,7 +8310,7 @@ "node-gyp": "bin/node-gyp.js" }, "engines": { - "node": "^12.22 || ^14.13 || >=16" + "node": "^12.13 || ^14.13 || >=16" } }, "node_modules/node-gyp-build": { @@ -7984,9 +8383,9 @@ } }, "node_modules/node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "version": "2.0.8", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz", + "integrity": "sha512-dFSmB8fFHEH/s81Xi+Y/15DQY6VHW81nXRj86EMSL3lmuTmK1e+aT4wrFCkTbm+gSwkw4KpX+rT/pMM2c1mF+A==", "dev": true }, "node_modules/nopt": { @@ -8098,9 +8497,9 @@ } }, "node_modules/npm-packlist": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.2.tgz", - "integrity": "sha512-d2+7RMySjVXssww23rV5NuIq1NzGvM04OlI5kwnvtYKfFTAPVs6Zxmxns2HRtJEA1oNj7D/BbFXeVAOLmW3N3Q==", + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-7.0.4.tgz", + "integrity": "sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==", "dev": true, "dependencies": { "ignore-walk": "^6.0.0" @@ -8173,13 +8572,13 @@ } }, "node_modules/npm-registry-fetch": { - "version": "14.0.2", - "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.2.tgz", - "integrity": "sha512-TMenrMagFA9KF81E2bkS5XRyzERK4KXu70vgXt5+i8FcrFeLNgNsc6e5hekTqjDwPDkL3HGn/holWcXDMfnFgw==", + "version": "14.0.3", + "resolved": "https://registry.npmjs.org/npm-registry-fetch/-/npm-registry-fetch-14.0.3.tgz", + "integrity": "sha512-YaeRbVNpnWvsGOjX2wk5s85XJ7l1qQBGAp724h8e2CZFFhMSuw9enom7K1mWVUtvXO1uUSFIAPofQK0pPN0ZcA==", "dev": true, "dependencies": { "make-fetch-happen": "^11.0.0", - "minipass": "^3.1.6", + "minipass": "^4.0.0", "minipass-fetch": "^3.0.0", "minipass-json-stream": "^1.0.1", "minizlib": "^2.1.2", @@ -8203,9 +8602,9 @@ } }, "node_modules/npm-registry-fetch/node_modules/make-fetch-happen": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.1.tgz", - "integrity": "sha512-clv3IblugXn2CDUmqFhNzii3rjKa46u5wNeivc+QlLXkGI5FjLX3rGboo+y2kwf1pd8W0iDiC384cemeDtw9kw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-11.0.2.tgz", + "integrity": "sha512-5n/Pq41w/uZghpdlXAY5kIM85RgJThtTH/NYBRAZ9VUOBWV90USaQjwGrw76fZP3Lj5hl/VZjpVvOaRBMoL/2w==", "dev": true, "dependencies": { "agentkeepalive": "^4.2.1", @@ -8215,7 +8614,7 @@ "https-proxy-agent": "^5.0.0", "is-lambda": "^1.0.1", "lru-cache": "^7.7.1", - "minipass": "^3.1.6", + "minipass": "^4.0.0", "minipass-collect": "^1.0.2", "minipass-fetch": "^3.0.0", "minipass-flush": "^1.0.5", @@ -8229,13 +8628,25 @@ "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/npm-registry-fetch/node_modules/minipass": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", + "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/npm-registry-fetch/node_modules/minipass-fetch": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.0.tgz", - "integrity": "sha512-NSx3k5gR4Q5Ts2poCM/19d45VwhVLBtJZ6ypYcthj2BwmDx/e7lW8Aadnyt3edd2W0ecb+b0o7FYLRYE2AGcQg==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-3.0.1.tgz", + "integrity": "sha512-t9/wowtf7DYkwz8cfMSt0rMwiyNIBXf5CKZ3S5ZMqRqMYT0oLTp0x1WorMI9WTwvaPg21r1JbFxJMum8JrLGfw==", "dev": true, "dependencies": { - "minipass": "^3.1.6", + "minipass": "^4.0.0", "minipass-sized": "^1.0.3", "minizlib": "^2.1.2" }, @@ -9028,9 +9439,9 @@ "dev": true }, "node_modules/prettier": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.0.tgz", - "integrity": "sha512-9Lmg8hTFZKG0Asr/kW9Bp8tJjRVluO8EJQVfY2T7FMw9T5jy4I/Uvx0Rca/XWf50QQ1/SS48+6IJWnrb+2yemA==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", + "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", "dev": true, "bin": { "prettier": "bin-prettier.js" @@ -9219,9 +9630,9 @@ } }, "node_modules/read-package-json-fast": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.1.tgz", - "integrity": "sha512-8+HW7Yo+cjfF+md8DqsZHgats2mxf7gGYow/+2JjxrftoHFZz9v4dzd0EubzYbkNaLxrTVcnllHwklXN2+7aTQ==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz", + "integrity": "sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw==", "dev": true, "dependencies": { "json-parse-even-better-errors": "^3.0.0", @@ -9549,9 +9960,9 @@ } }, "node_modules/rollup": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.6.0.tgz", - "integrity": "sha512-qCgiBeSu2/AIOKWGFMiRkjPlGlcVwxAjwpGKQZOQYng+83Hip4PjrWHm7EQX1wnrvRqfTytEihRRfLHdX+hR4g==", + "version": "3.7.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.7.5.tgz", + "integrity": "sha512-z0ZbqHBtS/et2EEUKMrAl2CoSdwN7ZPzL17UMiKN9RjjqHShTlv7F9J6ZJZJNREYjBh3TvBrdfjkFDIXFNeuiQ==", "dev": true, "bin": { "rollup": "dist/bin/rollup" @@ -9564,57 +9975,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/rollup-plugin-sourcemaps": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/rollup-plugin-sourcemaps/-/rollup-plugin-sourcemaps-0.6.3.tgz", - "integrity": "sha512-paFu+nT1xvuO1tPFYXGe+XnQvg4Hjqv/eIhG8i5EspfYYPBKL57X7iVbfv55aNVASg3dzWvES9dmWsL2KhfByw==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^3.0.9", - "source-map-resolve": "^0.6.0" - }, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "@types/node": ">=10.0.0", - "rollup": ">=0.31.2" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true - } - } - }, - "node_modules/rollup-plugin-sourcemaps/node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dev": true, - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/rollup-plugin-sourcemaps/node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true - }, - "node_modules/rollup-plugin-sourcemaps/node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, "node_modules/run-async": { "version": "2.4.1", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", @@ -9648,9 +10008,9 @@ } }, "node_modules/rxjs": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.6.0.tgz", - "integrity": "sha512-DDa7d8TFNUalGC9VqXvQ1euWNN7sc63TrUCuM9J998+ViviahMIjKSOU7rfcgFOF+FCD71BhDRv4hrFz+ImDLQ==", + "version": "7.8.0", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.0.tgz", + "integrity": "sha512-F2+gxDshqmIub1KdvZkaEfGDwLNpPvk9Fs6LD/MyQxNgMds/WH9OdDDXOmxUZpME+iSK3rQCctkL0DYyytUqMg==", "dependencies": { "tslib": "^2.1.0" } @@ -10179,17 +10539,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-resolve": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.6.0.tgz", - "integrity": "sha512-KXBr9d/fO/bWo97NXsPIAW1bFSBOuCnjbNTBMO7N59hsv5i9yzRDfcYwwt0l04+VqnKC+EwzvJZIP/qkuMgR/w==", - "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", - "dev": true, - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0" - } - }, "node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", @@ -10285,17 +10634,29 @@ "dev": true }, "node_modules/ssri": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.0.tgz", - "integrity": "sha512-64ghGOpqW0k+jh7m5jndBGdVEoPikWwGQmBNN5ks6jyUSMymzHDTlnNHOvzp+6MmHOljr2MokUzvRksnTwG0Iw==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.1.tgz", + "integrity": "sha512-WVy6di9DlPOeBWEjMScpNipeSX2jIZBGEn5Uuo8Q7aIuFEuDX0pw8RxcOjlD1TWP4obi24ki7m/13+nFpcbXrw==", "dev": true, "dependencies": { - "minipass": "^3.1.1" + "minipass": "^4.0.0" }, "engines": { "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, + "node_modules/ssri/node_modules/minipass": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", + "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/statuses": { "version": "1.5.0", "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", @@ -10406,14 +10767,14 @@ } }, "node_modules/tar": { - "version": "6.1.12", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.12.tgz", - "integrity": "sha512-jU4TdemS31uABHd+Lt5WEYJuzn+TJTCBLljvIAHZOz6M9Os5pJ4dD+vRFLxPa/n3T0iEFzpi+0x1UfuDZYbRMw==", + "version": "6.1.13", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz", + "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==", "dev": true, "dependencies": { "chownr": "^2.0.0", "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", + "minipass": "^4.0.0", "minizlib": "^2.1.1", "mkdirp": "^1.0.3", "yallist": "^4.0.0" @@ -10422,6 +10783,18 @@ "node": ">=10" } }, + "node_modules/tar/node_modules/minipass": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.0.tgz", + "integrity": "sha512-g2Uuh2jEKoht+zvO6vJqXmYpflPqzRBT+Th2h01DKh5z7wbY/AZ2gCQ78cP70YoHPyFdY30YBV5WxgLOEwOykw==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/tar/node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", diff --git a/package.json b/package.json index 68ef518..eb8faa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ng-event-bus", - "version": "5.0.1", + "version": "5.1.0", "description": "RxJS-based message/event bus service for Angular.", "homepage": "https://github.com/cristiammercado/ng-event-bus", "bugs": { @@ -34,19 +34,19 @@ "prettier:check": "prettier -l \"{src,projects}/**/*.{ts,tsx}\"" }, "dependencies": { - "rxjs": "~7.6.0" + "rxjs": "~7.8.0" }, "devDependencies": { - "@angular-devkit/build-angular": "~15.0.2", - "@angular/cli": "~15.0.2", - "@angular/common": "~15.0.2", - "@angular/compiler": "~15.0.2", - "@angular/compiler-cli": "~15.0.2", - "@angular/core": "~15.0.2", - "@angular/platform-browser": "~15.0.2", - "@angular/platform-browser-dynamic": "~15.0.2", + "@angular-devkit/build-angular": "~15.0.4", + "@angular/cli": "~15.0.4", + "@angular/common": "~15.0.4", + "@angular/compiler": "~15.0.4", + "@angular/compiler-cli": "~15.0.4", + "@angular/core": "~15.0.4", + "@angular/platform-browser": "~15.0.4", + "@angular/platform-browser-dynamic": "~15.0.4", "@types/jasmine": "~4.3.1", - "@types/node": "~18.11.10", + "@types/node": "~18.11.17", "jasmine-core": "~4.5.0", "jasmine-spec-reporter": "~7.0.0", "karma": "~6.4.1", @@ -55,8 +55,8 @@ "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.0.0", "karma-junit-reporter": "~2.0.1", - "ng-packagr": "~15.0.1", - "prettier": "~2.8.0", + "ng-packagr": "~15.0.3", + "prettier": "~2.8.1", "tslib": "~2.4.1", "typescript": "~4.8.4", "zone.js": "~0.12.0" diff --git a/src/lib/i-event-bus-message.ts b/src/lib/i-event-bus-message.ts index 0d13102..c3bca17 100644 --- a/src/lib/i-event-bus-message.ts +++ b/src/lib/i-event-bus-message.ts @@ -5,7 +5,7 @@ import { MetaData } from './meta-data'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export interface IEventBusMessage { /** diff --git a/src/lib/meta-data.ts b/src/lib/meta-data.ts index c577aea..cafaff0 100644 --- a/src/lib/meta-data.ts +++ b/src/lib/meta-data.ts @@ -5,7 +5,7 @@ * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export class MetaData { /** diff --git a/src/lib/ng-event-bus.ts b/src/lib/ng-event-bus.ts index 678ec56..11e7976 100644 --- a/src/lib/ng-event-bus.ts +++ b/src/lib/ng-event-bus.ts @@ -9,7 +9,7 @@ import { MetaData } from './meta-data'; * * @author Cristiam Mercado * @since 2.0.0 - * @version 5.0.1 + * @version 5.1.0 */ export class NgEventBus { /**