From e6ec2229d54fa5b10eb1c2c4c491554eab4f2030 Mon Sep 17 00:00:00 2001 From: Denys Shnurenko Date: Tue, 20 Oct 2020 15:05:05 +0300 Subject: [PATCH] Optional "params" in normalizeUrl --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index f3b9a3c..842b756 100644 --- a/src/index.ts +++ b/src/index.ts @@ -285,7 +285,7 @@ export default class NodeFacebook { return this.config.redirect_uri; } - private normalizeUrl(rawUrl: string, params?: ParsedUrlQueryInput) { + private normalizeUrl(rawUrl: string, params: ParsedUrlQueryInput = {}) { const query = params as { access_token: string; appsecret_proof: string;