Socket
Socket
Sign inDemoInstall

@ndustrial/contxt-sdk

Package Overview
Dependencies
82
Maintainers
18
Versions
123
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.6.1 to 2.6.2

16

CHANGELOG.md

@@ -0,1 +1,13 @@

## [v2.6.2](http://github.com/ndustrialio/contxt-sdk-js/tree/v2.6.2) (2020-01-23)
**Fixed**
- `Coordinator.roles#addApplication`, `Coordinator.roles#removeApplication`, `Coordinator.roles#addStack`, `Coordinator.roles#removeStack` now use the correct endpoints
## [v2.6.1](http://github.com/ndustrialio/contxt-sdk-js/tree/v2.6.1) (2020-01-16)
**Fixed**
- Fixed documentation examples
## [v2.6.0](http://github.com/ndustrialio/contxt-sdk-js/tree/v2.6.0) (2019-12-27)

@@ -9,3 +21,3 @@

## [v2.5.0](https://github.com/ndustrialio/contxt-sdk-js/pull/132) (2019-12-18)
## [v2.5.0](http://github.com/ndustrialio/contxt-sdk-js/pull/132) (2019-12-18)

@@ -19,3 +31,3 @@ **Added**

## [v2.4.0](https://github.com/ndustrialio/contxt-sdk-js/pull/131) (2019-10-07)
## [v2.4.0](http://github.com/ndustrialio/contxt-sdk-js/pull/131) (2019-10-07)

@@ -22,0 +34,0 @@ **Changed**

8

docs/Roles.md

@@ -34,3 +34,3 @@ <a name="Roles"></a>

API Endpoint: '/applications/:applications_id/roles/:roleId'
API Endpoint: '/roles/:roleId/applications/:applicationId'
Method: POST

@@ -59,3 +59,3 @@

API Endpoint: '/applications/:applications_id/stacks/:stackId'
API Endpoint: '/roles/:roleId/stacks/:stackId'
Method: POST

@@ -157,3 +157,3 @@

API Endpoint: '/applications/:applications_id/roles/:roleId'
API Endpoint: '/roles/:roleId/applications/:applicationId'
Method: DELETE

@@ -181,3 +181,3 @@

API Endpoint: '/stacks/:stacks_id/roles/:roleId'
API Endpoint: '/roles/:roleId/stacks/:stackId'
Method: DELETE

@@ -184,0 +184,0 @@

@@ -81,3 +81,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: POST

@@ -111,3 +111,3 @@ *

return this._request.post(this._baseUrl + '/applications/' + applicationId + '/roles/' + roleId).then(function (response) {
return this._request.post(this._baseUrl + '/roles/' + roleId + '/applications/' + applicationId).then(function (response) {
return toCamelCase(response);

@@ -120,3 +120,3 @@ });

*
* API Endpoint: '/applications/:applications_id/stacks/:stackId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: POST

@@ -154,3 +154,3 @@ *

return this._request.post(this._baseUrl + '/stacks/' + stackId + '/roles/' + roleId, {
return this._request.post(this._baseUrl + '/roles/' + roleId + '/stacks/' + stackId, {
access_type: accessType

@@ -301,3 +301,3 @@ }).then(function (response) {

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: DELETE

@@ -329,3 +329,3 @@ *

return this._request.delete(this._baseUrl + '/applications/' + applicationId + '/roles/' + roleId);
return this._request.delete(this._baseUrl + '/roles/' + roleId + '/applications/' + applicationId);
}

@@ -336,3 +336,3 @@

*
* API Endpoint: '/stacks/:stacks_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: DELETE

@@ -364,3 +364,3 @@ *

return this._request.delete(this._baseUrl + '/stacks/' + stackId + '/roles/' + roleId);
return this._request.delete(this._baseUrl + '/roles/' + roleId + '/stacks/' + stackId);
}

@@ -367,0 +367,0 @@ }]);

@@ -86,3 +86,3 @@ 'use strict';

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: POST

@@ -116,3 +116,3 @@ *

return this._request.post(this._baseUrl + '/applications/' + applicationId + '/roles/' + roleId).then(function (response) {
return this._request.post(this._baseUrl + '/roles/' + roleId + '/applications/' + applicationId).then(function (response) {
return (0, _objects.toCamelCase)(response);

@@ -125,3 +125,3 @@ });

*
* API Endpoint: '/applications/:applications_id/stacks/:stackId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: POST

@@ -159,3 +159,3 @@ *

return this._request.post(this._baseUrl + '/stacks/' + stackId + '/roles/' + roleId, {
return this._request.post(this._baseUrl + '/roles/' + roleId + '/stacks/' + stackId, {
access_type: accessType

@@ -306,3 +306,3 @@ }).then(function (response) {

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: DELETE

@@ -334,3 +334,3 @@ *

return this._request.delete(this._baseUrl + '/applications/' + applicationId + '/roles/' + roleId);
return this._request.delete(this._baseUrl + '/roles/' + roleId + '/applications/' + applicationId);
}

@@ -341,3 +341,3 @@

*
* API Endpoint: '/stacks/:stacks_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: DELETE

@@ -369,3 +369,3 @@ *

return this._request.delete(this._baseUrl + '/stacks/' + stackId + '/roles/' + roleId);
return this._request.delete(this._baseUrl + '/roles/' + roleId + '/stacks/' + stackId);
}

@@ -372,0 +372,0 @@ }]);

{
"name": "@ndustrial/contxt-sdk",
"version": "2.6.1",
"version": "2.6.2",
"description": "",

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

@@ -72,3 +72,3 @@ import { toSnakeCase, toCamelCase } from '../utils/objects';

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: POST

@@ -105,3 +105,3 @@ *

return this._request
.post(`${this._baseUrl}/applications/${applicationId}/roles/${roleId}`)
.post(`${this._baseUrl}/roles/${roleId}/applications/${applicationId}`)
.then((response) => toCamelCase(response));

@@ -113,3 +113,3 @@ }

*
* API Endpoint: '/applications/:applications_id/stacks/:stackId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: POST

@@ -153,3 +153,3 @@ *

return this._request
.post(`${this._baseUrl}/stacks/${stackId}/roles/${roleId}`, {
.post(`${this._baseUrl}/roles/${roleId}/stacks/${stackId}`, {
access_type: accessType

@@ -315,3 +315,3 @@ })

*
* API Endpoint: '/applications/:applications_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/applications/:applicationId'
* Method: DELETE

@@ -349,3 +349,3 @@ *

return this._request.delete(
`${this._baseUrl}/applications/${applicationId}/roles/${roleId}`
`${this._baseUrl}/roles/${roleId}/applications/${applicationId}`
);

@@ -357,3 +357,3 @@ }

*
* API Endpoint: '/stacks/:stacks_id/roles/:roleId'
* API Endpoint: '/roles/:roleId/stacks/:stackId'
* Method: DELETE

@@ -387,3 +387,3 @@ *

return this._request.delete(
`${this._baseUrl}/stacks/${stackId}/roles/${roleId}`
`${this._baseUrl}/roles/${roleId}/stacks/${stackId}`
);

@@ -390,0 +390,0 @@ }

@@ -120,3 +120,3 @@ import Roles from './roles';

expect(request.post).to.be.calledWith(
`${expectedHost}/applications/${application.id}/roles/${role.id}`
`${expectedHost}/roles/${role.id}/applications/${application.id}`
);

@@ -208,3 +208,3 @@ });

expect(request.post).to.be.calledWith(
`${expectedHost}/stacks/${stack.id}/roles/${role.id}`,
`${expectedHost}/roles/${role.id}/stacks/${stack.id}`,
{

@@ -833,3 +833,3 @@ access_type: expectedRoleStack.accessType

expect(baseRequest.delete).to.be.calledWith(
`${expectedHost}/applications/${application.id}/roles/${role.id}`
`${expectedHost}/roles/${role.id}/applications/${application.id}`
);

@@ -884,3 +884,3 @@ });

expect(baseRequest.delete).to.be.calledWith(
`${expectedHost}/stacks/${stack.id}/roles/${role.id}`
`${expectedHost}/roles/${role.id}/stacks/${stack.id}`
);

@@ -887,0 +887,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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