aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-04-21 20:33:59 +0200
committerGitHub <[email protected]>2022-04-21 18:33:59 +0000
commita28b5deab9079c567b7eb8a1917c661cadd35849 (patch)
tree2a5c67c09186272a85fdbbefc1a889f4877794c9 /src
parentfe8eea46845959d9ad3e9d5f52eb2f35c14977c3 (diff)
downloadfaker-a28b5deab9079c567b7eb8a1917c661cadd35849.tar.xz
faker-a28b5deab9079c567b7eb8a1917c661cadd35849.zip
fix: dont log deprecations on startup (#857)
Diffstat (limited to 'src')
-rw-r--r--src/unique.ts7
1 files changed, 6 insertions, 1 deletions
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);