Socket
Socket
Sign inDemoInstall

azure-iot-common

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-iot-common - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

7

lib/endpoint.js

@@ -6,2 +6,4 @@ // Copyright (c) Microsoft. All rights reserved.

var apiVersion = '2016-11-14';
function devicePath(id) {

@@ -24,3 +26,3 @@ return '/devices/' + id;

function versionQueryString() {
return '?api-version=2016-11-14';
return '?api-version=' + apiVersion;
}

@@ -33,5 +35,6 @@

feedbackPath: feedbackPath,
versionQueryString: versionQueryString
versionQueryString: versionQueryString,
apiVersion: apiVersion
};
module.exports = endpoint;

@@ -57,2 +57,18 @@ // Copyright (c) Microsoft. All rights reserved.

/**
* Returns the value property of the element that has the given key.
* @returns {Object} corresponding value or undefined if the key doesn't exist.
*/
Properties.prototype.getValue = function (key) {
for (var i = 0; i < this.propertyList.length; i++) {
/*Codes_SRS_NODE_IOTHUB_PROPERTIES_16_002: [`Properties.getValue` should return the corresponding value of the `value` property of the element with the `key` property passed as argument.]*/
if (this.propertyList[i].key === key) {
return this.propertyList[i].value;
}
}
/*Codes_SRS_NODE_IOTHUB_PROPERTIES_16_001: [`Properties.getValue` should return `undefined` if no element within the `propertyList` array contains `key`.]*/
return undefined;
};
/**
* Returns the number of items in the collection.

@@ -59,0 +75,0 @@ */

{
"name": "azure-iot-common",
"version": "1.1.4",
"version": "1.1.5",
"description": "Common components shared by Azure IoT device and service SDKs",

@@ -5,0 +5,0 @@ "author": "Microsoft Corporation",

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