azure-iot-common
Advanced tools
Comparing version 1.4.1 to 1.5.0-modules-preview
@@ -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 @@ /** |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
158393
4184
1
1