Socket
Socket
Sign inDemoInstall

bitbucket-srv-rest

Package Overview
Dependencies
51
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0 to 1.3.0

13

index.js

@@ -105,3 +105,3 @@ var RSVP = require('rsvp');

request.put(self.baseUrl + '/rest/api/1.0/projects/' + projKey + '/repos/' + repoName + '/permissions/groups?permission=REPO_WRITE&name=' + group,function (err, res, data) {
console.log("set write permissions for", projKey, repoName, group);
console.log("set repo write permissions for", projKey, repoName, group);
if (!err) resolve();

@@ -113,3 +113,14 @@ else reject();

BitbucketRest.prototype.setProjectGroupPermissions = function (projKey, group) {
var self = this;
return new RSVP.Promise(function(resolve, reject) {
request.put(self.baseUrl + '/rest/api/1.0/projects/' + projKey + '/permissions/groups?permission=PROJECT_WRITE&name=' + group, function (err, res, data) {
console.log("set project write permissions for", projKey, group);
if (!err) resolve();
else reject();
}).auth('admin', 'admin', true);
});
};
BitbucketRest.prototype.createUser = function (user) {

@@ -116,0 +127,0 @@ var self = this;

2

package.json
{
"name": "bitbucket-srv-rest",
"version": "1.2.0",
"version": "1.3.0",
"description": "Bitbucket Server REST API Library",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc