Socket
Socket
Sign inDemoInstall

saucelabs

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saucelabs - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

14

lib/SauceLabs.js

@@ -268,2 +268,16 @@ var crypto = require('crypto');

SauceLabs.prototype.getSubAccountList = function (callback) {
this.send({
method: 'GET',
path: 'users/:username/list-subaccounts'
}, callback);
};
SauceLabs.prototype.getSubAccounts = function (callback) {
this.send({
method: 'GET',
path: 'users/:username/subaccounts'
}, callback);
};
// Helpers

@@ -270,0 +284,0 @@

2

package.json

@@ -5,3 +5,3 @@ {

"description": "A wrapper around Sauce Labs REST API",
"version": "1.3.0",
"version": "1.4.0",
"homepage": "https://github.com/holidayextras/node-saucelabs",

@@ -8,0 +8,0 @@ "repository": {

@@ -290,2 +290,20 @@ # node-saucelabs [![Build Status](https://secure.travis-ci.org/danjenkins/node-saucelabs.png)](http://travis-ci.org/danjenkins/node-saucelabs)[![Build Status](https://www.codeship.io/projects/83c9b290-21de-0131-e459-3688c4e23c72/status)](https://www.codeship.io/projects/83c9b290-21de-0131-e459-3688c4e23c72/status)

</tr>
<tr>
<td>
GET /users/:username/list-subaccounts <br />
Access list of subaccounts
</td>
<td>
getSubAccountList(cb) -> cb(err, res)
</td>
</tr>
<tr>
<td>
GET /users/:username/subaccounts <br />
Get information about a sub accounts
</td>
<td>
getSubAccounts(cb) -> cb(err, res)
</td>
</tr>
</tbody>

@@ -292,0 +310,0 @@ </table>

@@ -276,2 +276,16 @@ describe('SauceLabs', function () {

});
describe('#getSubAccountList', function () {
it('GETs `/rest/v1/users/:username/list-subaccounts`', function (done) {
var mock = nockle.get('/rest/v1/users/:username/list-subaccounts');
sauce.getSubAccountList(verifySuccess(mock, done));
});
});
describe('#getSubAccounts', function () {
it('GETs `/rest/v1/users/:username/subaccounts`', function (done) {
var mock = nockle.get('/rest/v1/users/:username/subaccounts');
sauce.getSubAccounts(verifySuccess(mock, done));
});
});
});

@@ -278,0 +292,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc