From a28b5deab9079c567b7eb8a1917c661cadd35849 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Thu, 21 Apr 2022 20:33:59 +0200 Subject: fix: dont log deprecations on startup (#857) --- src/unique.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/unique.ts b/src/unique.ts index ff8698e6..f59a8ef2 100644 --- a/src/unique.ts +++ b/src/unique.ts @@ -83,7 +83,12 @@ export class Unique { constructor() { // Bind `this` so namespaced is working correctly for (const name of Object.getOwnPropertyNames(Unique.prototype)) { - if (name === 'constructor' || typeof this[name] !== 'function') { + if ( + name === 'constructor' || + name === 'maxTime' || + name === 'maxRetries' || + typeof this[name] !== 'function' + ) { continue; } this[name] = this[name].bind(this); -- cgit v1.2.3