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

azure-iot-common

Package Overview
Dependencies
Maintainers
6
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.9.6 to 1.9.7

2

lib/authentication_provider.d.ts

@@ -14,3 +14,3 @@ import { TransportConfig } from './authorization';

*/
Token = 1,
Token = 1
}

@@ -17,0 +17,0 @@ /**

@@ -0,7 +1,9 @@

"use strict";
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Designate the type of authentication used by an `AuthenticationProvider`.
*/
var AuthenticationType;
(function (AuthenticationType) {

@@ -16,4 +18,3 @@ /**

AuthenticationType[AuthenticationType["Token"] = 1] = "Token";
})(exports.AuthenticationType || (exports.AuthenticationType = {}));
var AuthenticationType = exports.AuthenticationType;
})(AuthenticationType = exports.AuthenticationType || (exports.AuthenticationType = {}));
//# sourceMappingURL=authentication_provider.js.map

@@ -1,5 +0,5 @@

/// <reference types="node" />
/*! Copyright (c) Microsoft. All rights reserved.
*! Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
/// <reference types="node" />
/**

@@ -6,0 +6,0 @@ * Returns the seconds elapsed since 1 January 1970 00:00:00 UTC until one

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

'use strict';
var crypto = require('crypto');
Object.defineProperty(exports, "__esModule", { value: true });
var crypto = require("crypto");
/**

@@ -8,0 +9,0 @@ * Returns the seconds elapsed since 1 January 1970 00:00:00 UTC until one

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

'use strict';
var dictionary_1 = require('./dictionary');
var errors_1 = require('./errors');
Object.defineProperty(exports, "__esModule", { value: true });
var dictionary_1 = require("./dictionary");
var errors_1 = require("./errors");
/**
* Describes the parameters that enable a device or cloud application to connect to an Azure IoT hub.
*/
var ConnectionString = (function () {
var ConnectionString = /** @class */ (function () {
function ConnectionString() {

@@ -13,0 +14,0 @@ }

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

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/*Codes_SRS_NODE_COMMON_DICTIONARY_05_001: [The function createDictionary shall accept as arguments the source string and a field separator string.]*/

@@ -7,0 +8,0 @@ function createDictionary(source, separator) {

/*! Copyright (c) Microsoft. All rights reserved.
*! Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
export declare const apiVersion: string;
export declare const apiVersion = "2019-03-30";
export declare function devicePath(deviceId: string): string;

@@ -6,0 +6,0 @@ export declare function deviceEventPath(deviceId: string): string;

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

'use strict';
exports.apiVersion = '2018-06-30';
Object.defineProperty(exports, "__esModule", { value: true });
exports.apiVersion = '2019-03-30';
function devicePath(deviceId) {

@@ -8,0 +9,0 @@ return '/devices/' + deviceId;

@@ -1,2 +0,1 @@

/// <reference types="node" />
/*! Copyright (c) Microsoft. All rights reserved.

@@ -3,0 +2,0 @@ *! Licensed under the MIT license. See LICENSE file in the project root for full license information.

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

'use strict';
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -16,9 +22,15 @@ * Error thrown when an argument is invalid.

*/
var ArgumentError = (function (_super) {
var ArgumentError = /** @class */ (function (_super) {
__extends(ArgumentError, _super);
function ArgumentError(message) {
_super.call(this, message);
this.name = 'ArgumentError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'ArgumentError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
// Set the prototype explicitly.
// https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
Object.setPrototypeOf(_this, ArgumentError.prototype);
return _this;
}

@@ -33,9 +45,13 @@ return ArgumentError;

*/
var ArgumentOutOfRangeError = (function (_super) {
var ArgumentOutOfRangeError = /** @class */ (function (_super) {
__extends(ArgumentOutOfRangeError, _super);
function ArgumentOutOfRangeError(message) {
_super.call(this, message);
this.name = 'ArgumentOutOfRangeError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'ArgumentOutOfRangeError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, ArgumentOutOfRangeError.prototype);
return _this;
}

@@ -50,9 +66,13 @@ return ArgumentOutOfRangeError;

*/
var DeviceMaximumQueueDepthExceededError = (function (_super) {
var DeviceMaximumQueueDepthExceededError = /** @class */ (function (_super) {
__extends(DeviceMaximumQueueDepthExceededError, _super);
function DeviceMaximumQueueDepthExceededError(message) {
_super.call(this, message);
this.name = 'DeviceMaximumQueueDepthExceededError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceMaximumQueueDepthExceededError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceMaximumQueueDepthExceededError.prototype);
return _this;
}

@@ -67,9 +87,13 @@ return DeviceMaximumQueueDepthExceededError;

*/
var DeviceNotFoundError = (function (_super) {
var DeviceNotFoundError = /** @class */ (function (_super) {
__extends(DeviceNotFoundError, _super);
function DeviceNotFoundError(message) {
_super.call(this, message);
this.name = 'DeviceNotFoundError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceNotFoundError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceNotFoundError.prototype);
return _this;
}

@@ -84,9 +108,13 @@ return DeviceNotFoundError;

*/
var FormatError = (function (_super) {
var FormatError = /** @class */ (function (_super) {
__extends(FormatError, _super);
function FormatError(message) {
_super.call(this, message);
this.name = 'FormatError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'FormatError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, FormatError.prototype);
return _this;
}

@@ -101,9 +129,13 @@ return FormatError;

*/
var UnauthorizedError = (function (_super) {
var UnauthorizedError = /** @class */ (function (_super) {
__extends(UnauthorizedError, _super);
function UnauthorizedError(message) {
_super.call(this, message);
this.name = 'UnauthorizedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'UnauthorizedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, UnauthorizedError.prototype);
return _this;
}

@@ -118,9 +150,13 @@ return UnauthorizedError;

*/
var NotImplementedError = (function (_super) {
var NotImplementedError = /** @class */ (function (_super) {
__extends(NotImplementedError, _super);
function NotImplementedError(message) {
_super.call(this, message);
this.name = 'NotImplementedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'NotImplementedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, NotImplementedError.prototype);
return _this;
}

@@ -135,9 +171,13 @@ return NotImplementedError;

*/
var NotConnectedError = (function (_super) {
var NotConnectedError = /** @class */ (function (_super) {
__extends(NotConnectedError, _super);
function NotConnectedError(message) {
_super.call(this, message);
this.name = 'NotConnectedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'NotConnectedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, NotConnectedError.prototype);
return _this;
}

@@ -153,9 +193,13 @@ return NotConnectedError;

*/
var IotHubQuotaExceededError = (function (_super) {
var IotHubQuotaExceededError = /** @class */ (function (_super) {
__extends(IotHubQuotaExceededError, _super);
function IotHubQuotaExceededError(message) {
_super.call(this, message);
this.name = 'IotHubQuotaExceededError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'IotHubQuotaExceededError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, IotHubQuotaExceededError.prototype);
return _this;
}

@@ -170,9 +214,13 @@ return IotHubQuotaExceededError;

*/
var MessageTooLargeError = (function (_super) {
var MessageTooLargeError = /** @class */ (function (_super) {
__extends(MessageTooLargeError, _super);
function MessageTooLargeError(message) {
_super.call(this, message);
this.name = 'MessageTooLargeError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'MessageTooLargeError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, MessageTooLargeError.prototype);
return _this;
}

@@ -187,9 +235,13 @@ return MessageTooLargeError;

*/
var InternalServerError = (function (_super) {
var InternalServerError = /** @class */ (function (_super) {
__extends(InternalServerError, _super);
function InternalServerError(message) {
_super.call(this, message);
this.name = 'InternalServerError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'InternalServerError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, InternalServerError.prototype);
return _this;
}

@@ -204,9 +256,13 @@ return InternalServerError;

*/
var ServiceUnavailableError = (function (_super) {
var ServiceUnavailableError = /** @class */ (function (_super) {
__extends(ServiceUnavailableError, _super);
function ServiceUnavailableError(message) {
_super.call(this, message);
this.name = 'ServiceUnavailableError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'ServiceUnavailableError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, ServiceUnavailableError.prototype);
return _this;
}

@@ -221,9 +277,13 @@ return ServiceUnavailableError;

*/
var IotHubNotFoundError = (function (_super) {
var IotHubNotFoundError = /** @class */ (function (_super) {
__extends(IotHubNotFoundError, _super);
function IotHubNotFoundError(message) {
_super.call(this, message);
this.name = 'IotHubNotFoundError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'IotHubNotFoundError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, IotHubNotFoundError.prototype);
return _this;
}

@@ -238,9 +298,13 @@ return IotHubNotFoundError;

*/
var IoTHubSuspendedError = (function (_super) {
var IoTHubSuspendedError = /** @class */ (function (_super) {
__extends(IoTHubSuspendedError, _super);
function IoTHubSuspendedError(message) {
_super.call(this, message);
this.name = 'IoTHubSuspendedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'IoTHubSuspendedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, IoTHubSuspendedError.prototype);
return _this;
}

@@ -255,9 +319,13 @@ return IoTHubSuspendedError;

*/
var JobNotFoundError = (function (_super) {
var JobNotFoundError = /** @class */ (function (_super) {
__extends(JobNotFoundError, _super);
function JobNotFoundError(message) {
_super.call(this, message);
this.name = 'JobNotFoundError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'JobNotFoundError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, JobNotFoundError.prototype);
return _this;
}

@@ -272,9 +340,13 @@ return JobNotFoundError;

*/
var TooManyDevicesError = (function (_super) {
var TooManyDevicesError = /** @class */ (function (_super) {
__extends(TooManyDevicesError, _super);
function TooManyDevicesError(message) {
_super.call(this, message);
this.name = 'TooManyDevicesError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'TooManyDevicesError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, TooManyDevicesError.prototype);
return _this;
}

@@ -290,9 +362,13 @@ return TooManyDevicesError;

*/
var ThrottlingError = (function (_super) {
var ThrottlingError = /** @class */ (function (_super) {
__extends(ThrottlingError, _super);
function ThrottlingError(message) {
_super.call(this, message);
this.name = 'ThrottlingError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'ThrottlingError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, ThrottlingError.prototype);
return _this;
}

@@ -307,9 +383,13 @@ return ThrottlingError;

*/
var DeviceAlreadyExistsError = (function (_super) {
var DeviceAlreadyExistsError = /** @class */ (function (_super) {
__extends(DeviceAlreadyExistsError, _super);
function DeviceAlreadyExistsError(message) {
_super.call(this, message);
this.name = 'DeviceAlreadyExistsError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceAlreadyExistsError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceAlreadyExistsError.prototype);
return _this;
}

@@ -324,9 +404,13 @@ return DeviceAlreadyExistsError;

*/
var DeviceMessageLockLostError = (function (_super) {
var DeviceMessageLockLostError = /** @class */ (function (_super) {
__extends(DeviceMessageLockLostError, _super);
function DeviceMessageLockLostError(message) {
_super.call(this, message);
this.name = 'DeviceMessageLockLostError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceMessageLockLostError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceMessageLockLostError.prototype);
return _this;
}

@@ -341,9 +425,13 @@ return DeviceMessageLockLostError;

*/
var InvalidEtagError = (function (_super) {
var InvalidEtagError = /** @class */ (function (_super) {
__extends(InvalidEtagError, _super);
function InvalidEtagError(message) {
_super.call(this, message);
this.name = 'InvalidEtagError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'InvalidEtagError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, InvalidEtagError.prototype);
return _this;
}

@@ -358,9 +446,13 @@ return InvalidEtagError;

*/
var InvalidOperationError = (function (_super) {
var InvalidOperationError = /** @class */ (function (_super) {
__extends(InvalidOperationError, _super);
function InvalidOperationError(message) {
_super.call(this, message);
this.name = 'InvalidOperationError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'InvalidOperationError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, InvalidOperationError.prototype);
return _this;
}

@@ -375,9 +467,13 @@ return InvalidOperationError;

*/
var PreconditionFailedError = (function (_super) {
var PreconditionFailedError = /** @class */ (function (_super) {
__extends(PreconditionFailedError, _super);
function PreconditionFailedError(message) {
_super.call(this, message);
this.name = 'PreconditionFailedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'PreconditionFailedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, PreconditionFailedError.prototype);
return _this;
}

@@ -392,9 +488,13 @@ return PreconditionFailedError;

*/
var TimeoutError = (function (_super) {
var TimeoutError = /** @class */ (function (_super) {
__extends(TimeoutError, _super);
function TimeoutError(message) {
_super.call(this, message);
this.name = 'TimeoutError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'TimeoutError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, TimeoutError.prototype);
return _this;
}

@@ -409,9 +509,13 @@ return TimeoutError;

*/
var BadDeviceResponseError = (function (_super) {
var BadDeviceResponseError = /** @class */ (function (_super) {
__extends(BadDeviceResponseError, _super);
function BadDeviceResponseError(message) {
_super.call(this, message);
this.name = 'BadDeviceResponseError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'BadDeviceResponseError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, BadDeviceResponseError.prototype);
return _this;
}

@@ -426,9 +530,13 @@ return BadDeviceResponseError;

*/
var GatewayTimeoutError = (function (_super) {
var GatewayTimeoutError = /** @class */ (function (_super) {
__extends(GatewayTimeoutError, _super);
function GatewayTimeoutError(message) {
_super.call(this, message);
this.name = 'GatewayTimeoutError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'GatewayTimeoutError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, GatewayTimeoutError.prototype);
return _this;
}

@@ -443,9 +551,13 @@ return GatewayTimeoutError;

*/
var DeviceTimeoutError = (function (_super) {
var DeviceTimeoutError = /** @class */ (function (_super) {
__extends(DeviceTimeoutError, _super);
function DeviceTimeoutError(message) {
_super.call(this, message);
this.name = 'DeviceTimeoutError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceTimeoutError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceTimeoutError.prototype);
return _this;
}

@@ -460,9 +572,13 @@ return DeviceTimeoutError;

*/
var CloudToDeviceDetachedError = (function (_super) {
var CloudToDeviceDetachedError = /** @class */ (function (_super) {
__extends(CloudToDeviceDetachedError, _super);
function CloudToDeviceDetachedError(message) {
_super.call(this, message);
this.name = 'CloudToDeviceDetachedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'CloudToDeviceDetachedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, CloudToDeviceDetachedError.prototype);
return _this;
}

@@ -477,9 +593,13 @@ return CloudToDeviceDetachedError;

*/
var DeviceMethodsDetachedError = (function (_super) {
var DeviceMethodsDetachedError = /** @class */ (function (_super) {
__extends(DeviceMethodsDetachedError, _super);
function DeviceMethodsDetachedError(message) {
_super.call(this, message);
this.name = 'DeviceMethodsDetachedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'DeviceMethodsDetachedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceMethodsDetachedError.prototype);
return _this;
}

@@ -494,9 +614,13 @@ return DeviceMethodsDetachedError;

*/
var TwinDetachedError = (function (_super) {
var TwinDetachedError = /** @class */ (function (_super) {
__extends(TwinDetachedError, _super);
function TwinDetachedError(message) {
_super.call(this, message);
this.name = 'TwinDetachedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'TwinDetachedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, TwinDetachedError.prototype);
return _this;
}

@@ -511,9 +635,13 @@ return TwinDetachedError;

*/
var TwinRequestError = (function (_super) {
var TwinRequestError = /** @class */ (function (_super) {
__extends(TwinRequestError, _super);
function TwinRequestError(message) {
_super.call(this, message);
this.name = 'TwinRequestError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'TwinRequestError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, TwinRequestError.prototype);
return _this;
}

@@ -528,9 +656,13 @@ return TwinRequestError;

*/
var OperationCancelledError = (function (_super) {
var OperationCancelledError = /** @class */ (function (_super) {
__extends(OperationCancelledError, _super);
function OperationCancelledError(message) {
_super.call(this, message);
this.name = 'OperationCancelledError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'OperationCancelledError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, OperationCancelledError.prototype);
return _this;
}

@@ -545,9 +677,13 @@ return OperationCancelledError;

*/
var DeviceRegistrationFailedError = (function (_super) {
var DeviceRegistrationFailedError = /** @class */ (function (_super) {
__extends(DeviceRegistrationFailedError, _super);
function DeviceRegistrationFailedError(message) {
_super.call(this, message);
this.name = 'ProvisioningRegistrationFailedError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'ProvisioningRegistrationFailedError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, DeviceRegistrationFailedError.prototype);
return _this;
}

@@ -562,9 +698,13 @@ return DeviceRegistrationFailedError;

*/
var SecurityDeviceError = (function (_super) {
var SecurityDeviceError = /** @class */ (function (_super) {
__extends(SecurityDeviceError, _super);
function SecurityDeviceError(message) {
_super.call(this, message);
this.name = 'SecurityDeviceError';
this.message = message;
Error.captureStackTrace(this, this.constructor);
var _this =
/* istanbul ignore next */
_super.call(this, message) || this;
_this.name = 'SecurityDeviceError';
_this.message = message;
Error.captureStackTrace(_this, _this.constructor);
Object.setPrototypeOf(_this, SecurityDeviceError.prototype);
return _this;
}

@@ -571,0 +711,0 @@ return SecurityDeviceError;

@@ -1,5 +0,5 @@

/// <reference types="node" />
/*! Copyright (c) Microsoft. All rights reserved.
*! Licensed under the MIT license. See LICENSE file in the project root for full license information.
*/
/// <reference types="node" />
import { Properties } from './properties';

@@ -6,0 +6,0 @@ /**

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

'use strict';
var properties_1 = require('./properties');
Object.defineProperty(exports, "__esModule", { value: true });
var properties_1 = require("./properties");
/**

@@ -11,3 +12,3 @@ * The {@link azure-iot-common.Message} object is used for telemetry (device-to-cloud) and commands (cloud-to-device) asynchronous

*/
var Message = (function () {
var Message = /** @class */ (function () {
/**

@@ -14,0 +15,0 @@ * Creates a new {@link azure-iot-common.Message} object

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { ResultWithHttpResponse } from './results';

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

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -5,0 +6,0 @@ * @private

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

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/**

@@ -11,3 +12,3 @@ * Collection of user defined properties of a {@link azure-iot-common.Message} object that are going to be sent alongside the body of the message

*/
var Properties = (function () {
var Properties = /** @class */ (function () {
function Properties() {

@@ -14,0 +15,0 @@ /**

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

'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Result returned when a message was successfully enqueued.
*/
var MessageEnqueued = (function () {
var MessageEnqueued = /** @class */ (function () {
/**

@@ -24,3 +25,3 @@ * @private

*/
var MessageCompleted = (function () {
var MessageCompleted = /** @class */ (function () {
/**

@@ -40,3 +41,3 @@ * @private

*/
var MessageRejected = (function () {
var MessageRejected = /** @class */ (function () {
/**

@@ -56,3 +57,3 @@ * @private

*/
var MessageAbandoned = (function () {
var MessageAbandoned = /** @class */ (function () {
/**

@@ -72,3 +73,3 @@ * @private

*/
var Connected = (function () {
var Connected = /** @class */ (function () {
/**

@@ -88,3 +89,3 @@ * @private

*/
var Disconnected = (function () {
var Disconnected = /** @class */ (function () {
/**

@@ -105,3 +106,3 @@ * @private

*/
var TransportConfigured = (function () {
var TransportConfigured = /** @class */ (function () {
/**

@@ -121,3 +122,3 @@ * @private

*/
var SharedAccessSignatureUpdated = (function () {
var SharedAccessSignatureUpdated = /** @class */ (function () {
/**

@@ -124,0 +125,0 @@ * @private

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable:variable-name */

@@ -8,3 +9,3 @@ /**

*/
var DefaultErrorFilter = (function () {
var DefaultErrorFilter = /** @class */ (function () {
function DefaultErrorFilter() {

@@ -42,3 +43,2 @@ this.ArgumentError = false;

exports.DefaultErrorFilter = DefaultErrorFilter;
/* tslint:enable:variable-name */
//# sourceMappingURL=retry_error_filter.js.map

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { RetryPolicy } from './retry_policy';

@@ -9,3 +8,2 @@ /**

private _retryCount;
private _currentTimeout;
private _totalRetryTime;

@@ -12,0 +10,0 @@ private _maxTimeout;

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var errors = require('./errors');
Object.defineProperty(exports, "__esModule", { value: true });
var errors = require("./errors");
/**
* Implements the necessary logic to retry operations such as connecting, receiving C2D messages, sending telemetry, twin updates, etc.
*/
var RetryOperation = (function () {
var RetryOperation = /** @class */ (function () {
/**

@@ -43,3 +44,3 @@ * Creates an instance of {@link azure-iot-common.RetryOperation.}

else {
_this._currentTimeout = setTimeout(retryOperation, nextRetryTimeout);
setTimeout(retryOperation, nextRetryTimeout);
}

@@ -46,0 +47,0 @@ }

@@ -1,2 +0,1 @@

/// <reference types="node" />
import { ErrorFilter } from './retry_error_filter';

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

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var retry_error_filter_1 = require('./retry_error_filter');
Object.defineProperty(exports, "__esModule", { value: true });
var retry_error_filter_1 = require("./retry_error_filter");
/**

@@ -16,3 +17,3 @@ * Parameters used with the {@link azure-iot-common.ExponentialBackOffWithJitter} policy to compute retry intervals.

```]*/
var ExponentialBackoffWithJitterParameters = (function () {
var ExponentialBackoffWithJitterParameters = /** @class */ (function () {
function ExponentialBackoffWithJitterParameters() {

@@ -50,3 +51,3 @@ /**

/*Codes_SRS_NODE_COMMON_RETRY_POLICY_16_005: [The `ExponentialBackoffWithJitter` class shall implement the `RetryPolicy` interface.]*/
var ExponentialBackOffWithJitter = (function () {
var ExponentialBackOffWithJitter = /** @class */ (function () {
/**

@@ -116,3 +117,3 @@ * Initializes a new instance of the {@link azure-iot-common.ExponentialBackOffWithJitter} class.

*/
var NoRetry = (function () {
var NoRetry = /** @class */ (function () {
function NoRetry() {

@@ -126,2 +127,3 @@ }

/*Codes_SRS_NODE_COMMON_RETRY_POLICY_16_004: [The `getNextTimeout` method shall always return `-1`.]*/
// @ts-ignore: parameter is not used
NoRetry.prototype.nextRetryTimeout = function (retryCount) {

@@ -137,2 +139,3 @@ return -1;

/*Codes_SRS_NODE_COMMON_RETRY_POLICY_16_03: [The `shouldRetry` method shall always return `false`.]*/
// @ts-ignore: parameter is not used
NoRetry.prototype.shouldRetry = function (err) {

@@ -139,0 +142,0 @@ return false;

@@ -1,2 +0,1 @@

/// <reference types="node" />
/*! Copyright (c) Microsoft. All rights reserved.

@@ -3,0 +2,0 @@ *! Licensed under the MIT license. See LICENSE file in the project root for full license information.

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

'use strict';
var authorization = require('./authorization');
var errors_1 = require('./errors');
var dictionary_1 = require('./dictionary');
Object.defineProperty(exports, "__esModule", { value: true });
var authorization = require("./authorization");
var errors_1 = require("./errors");
var dictionary_1 = require("./dictionary");
/**
* Shared access signature tokens are used to authenticate the connection when using symmetric keys (as opposed to x509 certificates) to secure the connection with the Azure IoT hub.
*/
var SharedAccessSignature = (function () {
var SharedAccessSignature = /** @class */ (function () {
function SharedAccessSignature() {

@@ -14,0 +15,0 @@ }

// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
'use strict';
var os = require('os');
var getos = require('getos');
Object.defineProperty(exports, "__esModule", { value: true });
var os = require("os");
var getos = require("getos");
/**

@@ -7,0 +8,0 @@ * @private

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

@@ -14,9 +14,9 @@ "author": "Microsoft Corporation",

"@types/getos": "^3.0.0",
"@types/node": "^7.0.5",
"chai": "^3.5.0",
"istanbul": "^0.4.4",
"@types/node": "^9.3.0",
"chai": "^4.2.0",
"istanbul": "^0.4.5",
"mocha": "^5.2.0",
"sinon": "^7.2.7",
"tslint": "^4.5.1",
"typescript": "2.0.6"
"tslint": "^5.9.1",
"typescript": "2.9.2"
},

@@ -26,9 +26,9 @@ "scripts": {

"build": "tsc",
"unittest-min": "istanbul cover --report none node_modules/mocha/bin/_mocha -- --reporter dot test/_*_test.js",
"alltest-min": "istanbul cover --report none node_modules/mocha/bin/_mocha -- --reporter dot test/_*_test*.js",
"unittest": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter spec test/_*_test.js",
"alltest": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter spec test/_*_test*.js",
"unittest-min": "istanbul cover --report none ../../node_modules/mocha/bin/_mocha -- --reporter dot test/_*_test.js",
"alltest-min": "istanbul cover ../../node_modules/mocha/bin/_mocha -- --reporter dot test/_*_test*.js",
"unittest": "istanbul cover ../../node_modules/mocha/bin/_mocha -- --reporter spec test/_*_test.js",
"alltest": "istanbul cover ../../node_modules/mocha/bin/_mocha -- --reporter spec test/_*_test*.js",
"ci": "npm -s run lint && npm -s run build && npm -s run alltest-min && npm -s run check-cover",
"test": "npm -s run lint && npm -s run build && npm -s run unittest",
"check-cover": "istanbul check-coverage --statements 99 --branches 96 --functions 99 --lines 99"
"check-cover": "istanbul check-coverage --statements 98 --branches 96 --functions 98 --lines 99"
},

@@ -35,0 +35,0 @@ "engines": {

@@ -7,2 +7,4 @@ {

"declaration": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"lib": [ "es6" ]

@@ -13,2 +15,2 @@ },

]
}
}
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