stash-rest-api
Advanced tools
Comparing version 2.1.1 to 2.1.2
32
index.js
exports.Client = require('./lib/client'); | ||
// Eg: | ||
/* | ||
var auth = require('./auth.json'); | ||
stash = new exports.Client( | ||
'http://stash.backbase.com:7990/rest/api/1.0/', | ||
auth.user, | ||
auth.password | ||
); | ||
stash.hooks.getPreReceive('LPM', 'module-accounts', {}).then(function(response) { | ||
response.values.forEach(function(hook) { | ||
console.log(hook.details); | ||
}); | ||
}); | ||
stash.hooks.get('LPM', 'module-accounts').then(function(response) { | ||
console.log(response.values); | ||
response.values.forEach(function(hook) { | ||
console.log(hook.details); | ||
}); | ||
}); | ||
stash.projects.get({}).then(function(response) { | ||
response.values.forEach(function(project) { | ||
stash.repos.get(project.key, {}).then(function(response) { | ||
console.log(response); | ||
}); | ||
}); | ||
}); | ||
*/ |
{ | ||
"name": "stash-rest-api", | ||
"version": "2.1.1", | ||
"description": "", | ||
"version": "2.1.2", | ||
"description": "Provides access to *some* of Stash's APIs.", | ||
"main": "index.js", | ||
@@ -9,4 +9,4 @@ "scripts": { | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"author": "Ben Sorohan <npm@sorohan.com.au>", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -16,3 +16,17 @@ "lodash": "^3.10.0", | ||
"query-string": "^2.3.0" | ||
} | ||
}, | ||
"devDependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/sorohan/stash-rest-api.git" | ||
}, | ||
"keywords": [ | ||
"stash", | ||
"rest", | ||
"api" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/sorohan/stash-rest-api/issues" | ||
}, | ||
"homepage": "https://github.com/sorohan/stash-rest-api" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
7492
10
1
1
1
92
0
136