From 4476b5298174a13d01104d1eaa9f8ca79c4ba5e7 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Wed, 10 Apr 2024 16:20:21 +0200 Subject: [PATCH] revert: refactor: rename emitReserved to _emitReserved to improve mangling This reverts commit 0852bda0b41e2e1c30ea2d2743674411ab25b8b8. The impact on the final bundle size is negligible. --- index.d.ts | 2 +- index.js | 2 +- index.mjs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 5aa6efa..49a74e1 100644 --- a/index.d.ts +++ b/index.d.ts @@ -130,7 +130,7 @@ export class Emitter< * @param ev Reserved event name * @param args Arguments to emit along with the event */ - protected _emitReserved>( + protected emitReserved>( ev: Ev, ...args: EventParams ): this; diff --git a/index.js b/index.js index f0794b8..e0d5497 100644 --- a/index.js +++ b/index.js @@ -148,7 +148,7 @@ Emitter.prototype.emit = function(event){ }; // alias used for reserved events (protected method) -Emitter.prototype._emitReserved = Emitter.prototype.emit; +Emitter.prototype.emitReserved = Emitter.prototype.emit; /** * Return array of callbacks for `event`. diff --git a/index.mjs b/index.mjs index d933e60..b2e5c3f 100644 --- a/index.mjs +++ b/index.mjs @@ -141,7 +141,7 @@ Emitter.prototype.emit = function(event){ }; // alias used for reserved events (protected method) -Emitter.prototype._emitReserved = Emitter.prototype.emit; +Emitter.prototype.emitReserved = Emitter.prototype.emit; /** * Return array of callbacks for `event`.