Skip to content

Commit

Permalink
Fix debug calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansamines authored Sep 4, 2021
1 parent 752e77f commit 10c36c0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/access-token-parser.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
4 changes: 2 additions & 2 deletions lib/client/client.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
4 changes: 3 additions & 1 deletion lib/client/request-options.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 10c36c0

Please sign in to comment.