Skip to content

Commit

Permalink
Pass the correct options to Debug (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrc-benmorrow authored Mar 27, 2024
2 parents 4630c60 + 29fd2e5 commit 651ab45
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions lib/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import util from "util";
export class Debug {
constructor (opts) {
opts ??= {};
const verb = opts.verbose
?? opts.default
?? "";
const verb = opts.verbose ?? "";

this.levels = new Set();
this.suppress = new Set();
Expand Down
2 changes: 1 addition & 1 deletion lib/service-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class ServiceClient {
: opts;
delete this.opts.env;

this.debug = new Debug(opts);
this.debug = new Debug(this.opts);
}

async init () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amrc-factoryplus/service-client",
"version": "1.3.3",
"version": "1.3.4",
"description": "",
"main": "lib/index.js",
"type": "module",
Expand Down

0 comments on commit 651ab45

Please sign in to comment.