Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dctrackclient

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dctrackclient - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "dctrackclient",
"version": "1.3.1",
"version": "1.3.2",
"description": "Sunbird dcTrack API client in JavaScript",

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

@@ -9,3 +9,3 @@ # dcTrackClient [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/nicfv/dcTrackClient/publish.yml?logo=github)](https://github.com/nicfv/dcTrackClient) [![PyPI](https://img.shields.io/pypi/v/dcTrackClient)](https://pypi.org/project/dcTrackClient/) [![PyPI - Downloads](https://img.shields.io/pypi/dm/dcTrackClient?logo=pypi)](https://pypi.org/project/dcTrackClient/) [![npm](https://img.shields.io/npm/v/dctrackclient)](https://www.npmjs.com/package/dctrackclient) [![npm](https://img.shields.io/npm/dt/dctrackclient?logo=npm)](https://www.npmjs.com/package/dctrackclient)

```shell
pip install dcTrackClient==1.3.1
pip install dcTrackClient==1.3.2
```

@@ -15,3 +15,3 @@

```shell
npm i dctrackclient@1.3.1
npm i dctrackclient@1.3.2
```

@@ -570,6 +570,6 @@

## updateBreaker(panelItemId, beakerPortId, payload)
## updateBreaker(panelItemId, breakerPortId, payload)
> Update a single Breaker for a given Panel Item. Returns JSON entity containing information for the updated Panel Item Breaker. Note: This API performs as a true PUT and not a PATCH. Unlike with a PATCH, you must specify all attributes even if you want to change only one. Attributes that are not included in the Request will be considered as removed.
```
PUT api/v2/dcimoperations/items/{panelItemId}/breakers/{beakerPortId} payload
PUT api/v2/dcimoperations/items/{panelItemId}/breakers/{breakerPortId} payload
```

@@ -579,3 +579,3 @@ |Parameter|Type|

|panelItemId|number|
|beakerPortId|number|
|breakerPortId|number|
|payload|object|

@@ -582,0 +582,0 @@

@@ -5,3 +5,3 @@ import fetch from 'node-fetch';

/**
* Sunbird dcTrack API client version 1.3.1 in JavaScript
* Sunbird dcTrack API client version 1.3.2 in JavaScript
*/

@@ -47,3 +47,3 @@ export class Client {

}
return (await fetch(this.#base_url + '/' + endpoint, { method: method, agent: this.#proxyAgent, headers: [['Authorization', 'Bearer ' + this.#apiToken], ['Content-Type', 'application/json']], body: JSON.stringify(body) })).json();
return (await fetch(this.#base_url + '/' + endpoint, { method: method, agent: this.#proxyAgent, headers: [['Authorization', 'Bearer ' + this.#apiToken], ['Content-Type', 'application/json']], body: JSON.stringify(body) })).json().catch(() => ({}));
}

@@ -374,7 +374,7 @@ }

* @param {number} panelItemId
* @param {number} beakerPortId
* @param {number} breakerPortId
* @param {object} payload
*/
Client.prototype.updateBreaker = function (panelItemId, beakerPortId, payload) {
return this.request('PUT', '/api/v2/dcimoperations/items/' + panelItemId + '/breakers/' + beakerPortId + '?', payload);
Client.prototype.updateBreaker = function (panelItemId, breakerPortId, payload) {
return this.request('PUT', '/api/v2/dcimoperations/items/' + panelItemId + '/breakers/' + breakerPortId + '?', payload);
}

@@ -381,0 +381,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