🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

bitbucket-auth-token

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-auth-token - npm Package Compare versions

Comparing version

to
0.0.2

11

index.js

@@ -34,3 +34,3 @@ var homeDir = require('home-dir');

refreshToken: res.body.refresh_token
});
}, {mode: 0600});
resolve(res.body.access_token);

@@ -53,4 +53,3 @@ } else {

return opts.credentialsResolver(function(username, password) {
return opts.credentialsResolver().then(function(credentials) {
return new RSVP.Promise(function (resolve, reject) {

@@ -64,4 +63,4 @@ request

grant_type: 'password',
username: username,
password: password
username: credentials.username,
password: credentials.password
})

@@ -72,3 +71,3 @@ .end(function (err, res) {

refreshToken: res.body.refresh_token
});
}, {mode: 0600});
resolve(res.body.access_token);

@@ -75,0 +74,0 @@ } else {

{
"name": "bitbucket-auth-token",
"version": "0.0.1",
"version": "0.0.2",
"description": "Maintain a local cache of Bitbucket OAuth tokens for use with the Bitbucket REST API.",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet