MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 27 forks source link

Remove console logging (2.4.2, 2.5.1, 2.6.1) #92

Closed tovbinm closed 3 years ago

tovbinm commented 3 years ago
console.log:
     BITBUCKET CLOUD API LATEST UPDATES:  https://developer.atlassian.com/cloud/bitbucket

I tried passing notice: false into clientOptions but no luck:

import {Bitbucket} from 'bitbucket';

const clientOptions = {
  notice: false,
  auth: {
    username: cfg.bitbucketUsername,
    password: cfg.bitbucketPassword,
  },
};
const bitbucket = new Bitbucket(clientOptions);
MunifTanjim commented 3 years ago

Can not reproduce this one. 🤔

Passing notice: false is working as expected for me. It should turn off the notice console.log.

tovbinm commented 3 years ago

Do I need to import & apply the plugins somehow? It might be something on my end.

MunifTanjim commented 3 years ago

No, your example code looks alright. It shouldn't print that notice.

Can you try putting that example code in a separate file and run only that single file with node? Does it still print the notice?

tovbinm commented 3 years ago

My bad! Works as expected. Thanks.