Socket
Socket
Sign inDemoInstall

azure-iot-common

Package Overview
Dependencies
Maintainers
3
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

9

lib/errors.d.ts

@@ -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 @@ */

2

lib/message.js

@@ -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;

2

package.json
{
"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",

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