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

@ndustrial/contxt-sdk

Package Overview
Dependencies
Maintainers
16
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndustrial/contxt-sdk - npm Package Compare versions

Comparing version 2.11.2 to 2.12.0

docs/FeedTypes.md

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## [v2.12.0](http://github.com/ndustrialio/contxt-sdk-js/tree/v2.12.0) (2020-03-13)
**Added**
- Added `FeedTypes#getAll` to fetch all feed types
## [v2.11.2](http://github.com/ndustrialio/contxt-sdk-js/tree/v2.11.2) (2020-03-11)

@@ -2,0 +8,0 @@

@@ -83,2 +83,5 @@ ## Classes

</dd>
<dt><a href="./FeedTypes.md">FeedTypes</a></dt>
<dd><p>Module that provides access to feed type information</p>
</dd>
<dt><a href="./Feeds.md">Feeds</a></dt>

@@ -261,2 +264,4 @@ <dd><p>Module that provides access to feed information</p>

<dd></dd>
<dt><a href="./Typedefs.md#FeedType">FeedType</a> : <code>Object</code></dt>
<dd></dd>
<dt><a href="./Typedefs.md#FieldCategoriesFromServer">FieldCategoriesFromServer</a> : <code>Object</code></dt>

@@ -263,0 +268,0 @@ <dd></dd>

@@ -861,2 +861,17 @@ <a name="Asset"></a>

<a name="FeedType"></a>
## FeedType : <code>Object</code>
**Kind**: global typedef
**Properties**
| Name | Type | Description |
| --- | --- | --- |
| createdAt | <code>String</code> | |
| downAfter | <code>String</code> | Time (in seconds) threshold to receive data before a feed is considered down |
| id | <code>String</code> | UUID |
| troubleshootingUrl | <code>String</code> | |
| type | <code>String</code> | The name of the feed type |
| updatedAt | <code>String</code> | |
<a name="FieldCategoriesFromServer"></a>

@@ -863,0 +878,0 @@

2

esm/iot/index.js
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import Feeds from './feeds';
import FeedTypes from './feedTypes';
import FieldCategories from './fieldCategories';

@@ -32,2 +33,3 @@ import FieldGroupings from './fieldGroupings';

this.feeds = new Feeds(sdk, request, baseUrl);
this.feedTypes = new FeedTypes(sdk, request, baseUrl);
this.fields = new Fields(sdk, request, baseUrl);

@@ -34,0 +36,0 @@ this.outputs = new Outputs(sdk, request, baseUrl);

@@ -11,2 +11,6 @@ 'use strict';

var _feedTypes = require('./feedTypes');
var _feedTypes2 = _interopRequireDefault(_feedTypes);
var _fieldCategories = require('./fieldCategories');

@@ -54,2 +58,3 @@

this.feeds = new _feeds2.default(sdk, request, baseUrl);
this.feedTypes = new _feedTypes2.default(sdk, request, baseUrl);
this.fields = new _fields2.default(sdk, request, baseUrl);

@@ -56,0 +61,0 @@ this.outputs = new _outputs2.default(sdk, request, baseUrl);

2

package.json
{
"name": "@ndustrial/contxt-sdk",
"version": "2.11.2",
"version": "2.12.0",
"description": "",

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

import Feeds from './feeds';
import FeedTypes from './feedTypes';
import FieldCategories from './fieldCategories';

@@ -27,2 +28,3 @@ import FieldGroupings from './fieldGroupings';

this.feeds = new Feeds(sdk, request, baseUrl);
this.feedTypes = new FeedTypes(sdk, request, baseUrl);
this.fields = new Fields(sdk, request, baseUrl);

@@ -29,0 +31,0 @@ this.outputs = new Outputs(sdk, request, baseUrl);

import Fields from './fields';
import Iot from './index';
import Outputs from './outputs';
import FeedTypes from './feedTypes';

@@ -55,3 +56,7 @@ describe('Iot', function() {

});
it('appends the supplied FeedTypes module to the class instance', function() {
expect(iot.feedTypes).to.be.an.instanceOf(FeedTypes);
});
});
});

@@ -13,2 +13,3 @@ 'use strict';

downAfter: () => faker.random.number({ min: 1000, max: 9999 }),
troubleshootingUrl: () => faker.internet.url(),
type: () => faker.hacker.noun(),

@@ -27,2 +28,5 @@ updatedAt: () => faker.date.recent().toISOString()

feedType.troubleshooting_url = feedType.troubleshootingUrl;
delete feedType.troubleshootingUrl;
feedType.updated_at = feedType.updatedAt;

@@ -29,0 +33,0 @@ delete feedType.updatedAt;

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc