Disable prototype poisoning option (#1414) (#1420)

* Introduce disablePrototypePoisoningProtection option

* Updated test

* Updated docs

* Fix bundler test

Co-authored-by: Tomas Della Vedova <delvedor@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2021-03-15 08:52:34 +01:00
committed by GitHub
parent 9fe088589c
commit 528b90d19a
9 changed files with 166 additions and 31 deletions

3
index.d.ts vendored
View File

@ -114,7 +114,8 @@ interface ClientOptions {
// TODO: remove username and password here in 8
username?: string;
password?: string;
}
};
disablePrototypePoisoningProtection?: boolean | 'proto' | 'constructor';
}
declare class Client {