Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass the correct options to Debug #4

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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