From 0852bda0b41e2e1c30ea2d2743674411ab25b8b8 Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Tue, 22 Nov 2022 14:03:24 +0100 Subject: [PATCH] refactor: rename emitReserved to _emitReserved to improve mangling Related: https://github.com/socketio/socket.io/discussions/4529 --- 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 49a74e1..5aa6efa 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 e0d5497..f0794b8 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 b2e5c3f..d933e60 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`.