azure-iot-common
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -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", | ||
"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
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
157974
4173