From 3269fd9030f18b35e75c12007af3821de837c18e Mon Sep 17 00:00:00 2001 From: Jonathan Samines Date: Sat, 4 Sep 2021 02:49:18 +0000 Subject: [PATCH] Fix debug calls --- lib/access-token-parser.js | 4 ++-- lib/client/client.js | 4 ++-- lib/client/request-options.js | 4 +++- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/access-token-parser.js b/lib/access-token-parser.js index 617271c..c7aa60a 100644 --- a/lib/access-token-parser.js +++ b/lib/access-token-parser.js @@ -1,6 +1,6 @@ -import debugF from 'debug'; +import debugg from 'debug'; -const debug = debugF('simple-oauth2:access-token'); +const debug = debugg('simple-oauth2:access-token'); const EXPIRES_AT_PROPERTY_NAME = 'expires_at'; const EXPIRES_IN_PROPERTY_NAME = 'expires_in'; diff --git a/lib/client/client.js b/lib/client/client.js index 6f9f5ef..21999ee 100644 --- a/lib/client/client.js +++ b/lib/client/client.js @@ -1,9 +1,9 @@ import Hoek from '@hapi/hoek'; import Wreck from '@hapi/wreck'; -import debugF from 'debug'; +import debugg from 'debug'; import { RequestOptions } from './request-options.js'; -const debug = debugF('simple-oauth2:client'); +const debug = debugg('simple-oauth2:client'); const defaultHttpHeaders = { Accept: 'application/json', diff --git a/lib/client/request-options.js b/lib/client/request-options.js index 6393908..139565b 100644 --- a/lib/client/request-options.js +++ b/lib/client/request-options.js @@ -1,8 +1,10 @@ import Hoek from '@hapi/hoek'; import querystring from 'querystring'; -import debug from 'debug'; +import debugg from 'debug'; import { CredentialsEncoding } from './credentials-encoding.js'; +const debug = debugg('simple-oauth2:request-options'); + const JSON_CONTENT_TYPE = 'application/json'; const FORM_CONTENT_TYPE = 'application/x-www-form-urlencoded';