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

azure-iot-common

Package Overview
Dependencies
Maintainers
4
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.4.1 to 1.5.0-modules-preview

8

lib/authorization.d.ts

@@ -28,2 +28,6 @@ /// <reference types="node" />

/**
* Module unique identifier.
*/
moduleId?: string;
/**
* Shared access signature security token used to authenticate a device when token-based authentication is used.

@@ -44,2 +48,6 @@ */

x509?: X509;
/**
* IP address or internet name of the host machine working as a device or protocol gateway. Used when communicating with Azure Edge devices.
*/
gatewayHostName?: string;
}

@@ -46,0 +54,0 @@ /**

9

lib/connection_string.d.ts

@@ -19,2 +19,7 @@ /*! Copyright (c) Microsoft. All rights reserved.

/**
* Unique module identifier as it exists in the device identity registry. This is only used for device connection strings.
* @memberof {azure-iot-common.ConnectionString}
*/
ModuleId?: string;
/**
* Symmetric key used to create shared access signature tokens that are in turn used to authenticate the connection. Associated either with a specific device or a specific service policy.

@@ -30,6 +35,4 @@ * @memberof {azure-iot-common.ConnectionString}

/**
* This was used in public preview when MQTT support required the use of a protocol gateway.
* Now that MQTT is supported natively in Azure IoT Hub, this parameter is ignored and kept only for compatibility purposes.
* IP address or internet name of the host machine working as a device or protocol gateway. Used when communicating with Azure Edge devices.
* @memberof {azure-iot-common.ConnectionString}
* @deprecated
*/

@@ -36,0 +39,0 @@ GatewayHostName?: string;

@@ -5,3 +5,3 @@ /*! Copyright (c) Microsoft. All rights reserved.

'use strict';
exports.apiVersion = '2018-01-16';
exports.apiVersion = '2017-11-08-preview';
function devicePath(id) {

@@ -8,0 +8,0 @@ return '/devices/' + id;

@@ -243,2 +243,11 @@ /// <reference types="node" />

/**
* Generic error thrown when a twin request fails with an unknown error code.
*
* @augments {Error}
*/
export declare class TwinRequestError extends Error {
transportError: any;
constructor(message?: string);
}
/**
* Error thrown when any operation (local or remote) is cancelled

@@ -245,0 +254,0 @@ *

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

/**
* Generic error thrown when a twin request fails with an unknown error code.
*
* @augments {Error}
*/
var TwinRequestError = (function (_super) {
__extends(TwinRequestError, _super);
function TwinRequestError(message) {
_super.call(this, message);
this.name = 'TwinRequestError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
}
return TwinRequestError;
}(Error));
exports.TwinRequestError = TwinRequestError;
/**
* Error thrown when any operation (local or remote) is cancelled

@@ -479,0 +495,0 @@ *

@@ -45,2 +45,10 @@ /// <reference types="node" />

/**
* Content type property used to routes with the message body. Should be 'application/json'.
*/
contentType: undefined | 'application/json';
/**
* Content encoding of the message body. can be 'utf-8', 'utf-16' or 'utf-32'.
*/
contentEncoding: undefined | 'utf-8' | 'utf-16' | 'utf-32';
/**
* @private

@@ -47,0 +55,0 @@ */

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

this.userId = '';
this.contentEncoding = undefined;
this.contentType = undefined;
}

@@ -30,0 +32,0 @@ /**

@@ -32,2 +32,3 @@ /**

DeviceTimeoutError: boolean;
TwinRequestError?: boolean;
}

@@ -64,2 +65,3 @@ /**

DeviceTimeoutError: boolean;
TwinRequestError?: boolean;
}

@@ -36,2 +36,3 @@ // Copyright (c) Microsoft. All rights reserved.

this.DeviceTimeoutError = false; // ??
this.TwinRequestError = false;
}

@@ -38,0 +39,0 @@ return DefaultErrorFilter;

{
"name": "azure-iot-common",
"version": "1.4.1",
"version": "1.5.0-modules-preview",
"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