Socket
Socket
Sign inDemoInstall

azure-iot-common

Package Overview
Dependencies
Maintainers
8
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.11.2 to 1.12.0-pnp-refresh.0

.nyc_output/858422b9-5f93-4cf0-9324-883a82bf8d08.json

1

lib/authentication_provider.d.ts

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

getDeviceCredentials(): Promise<TransportConfig>;
setTokenRenewalValues?(tokenValidTimeInSeconds: number, tokenRenewalMarginInSeconds: number): void;
}

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

/**
* Unique repository identifier as it exists in the model repository.
* @memberof {azure-iot-common.ConnectionString}
*/
RepositoryId?: 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.

@@ -26,0 +31,0 @@ * @memberof {azure-iot-common.ConnectionString}

4

lib/endpoint.d.ts
/*! 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 = "2019-03-30";
export declare const apiVersion = "2020-05-31-preview";
export declare const apiVersionLimitedAvail = "2020-03-13";
export declare function devicePath(deviceId: string): string;

@@ -20,1 +21,2 @@ export declare function deviceEventPath(deviceId: string): string;

export declare function versionQueryString(): string;
export declare function versionQueryStringLimitedAvailability(): string;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.apiVersion = '2019-03-30';
exports.apiVersion = '2020-05-31-preview';
exports.apiVersionLimitedAvail = '2020-03-13';
function devicePath(deviceId) {

@@ -68,2 +69,13 @@ return '/devices/' + deviceId;

exports.versionQueryString = versionQueryString;
function versionQueryStringLimitedAvailability() {
// This addition is for the limited Availability of certain service
// regions
if (process.env.EnableStorageIdentity === '1') {
return '?api-version=' + exports.apiVersionLimitedAvail;
}
else {
return '?api-version=' + exports.apiVersion;
}
}
exports.versionQueryStringLimitedAvailability = versionQueryStringLimitedAvailability;
//# sourceMappingURL=endpoint.js.map
{
"name": "azure-iot-common",
"version": "1.11.2",
"version": "1.12.0-pnp-refresh.0",
"description": "Common components shared by Azure IoT device and service SDKs",

@@ -14,24 +14,59 @@ "author": "Microsoft Corporation",

"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/getos": "^3.0.0",
"@types/node": "^9.6.50",
"chai": "^4.2.0",
"istanbul": "^0.4.5",
"mocha": "^6.1.4",
"mocha": "^7.1.1",
"nyc": "^15.0.0",
"sinon": "^7.4.1",
"tslint": "^5.18.0",
"source-map-support": "^0.5.16",
"ts-node": "^8.6.2",
"tslint": "^6.1.0",
"typescript": "2.9.2"
},
"scripts": {
"npmlockrefresh": "npm i --package-lock-only",
"lint": "tslint --project . -c ../../tslint.json",
"build": "tsc",
"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 98 --branches 96 --functions 98 --lines 99"
"unittest-min": "tsc && nyc --reporter lcov ../../node_modules/mocha/bin/_mocha --reporter dot",
"alltest-min": "tsc && nyc --reporter lcov ../../node_modules/mocha/bin/_mocha --reporter dot test/_*_test*.js",
"unittest": "tsc && nyc --reporter lcov --reporter text ../../node_modules/mocha/bin/_mocha",
"alltest": "tsc && nyc --reporter lcov --reporter text ../../node_modules/mocha/bin/_mocha test/_*_test*.js",
"ci": "npm -s run lint && npm -s run build && npm -s run alltest-min",
"test": "npm -s run lint && npm -s run build && npm -s run alltest"
},
"nyc": {
"exclude": [
"coverage/**",
"**/*.d.ts",
"test{,s}/**",
"test{,-*}.{js,cjs,mjs,ts}",
"**/*{.,-}test.{js,cjs,mjs,ts}",
"**/__tests__/**",
"**/{ava,nyc}.config.{js,cjs,mjs}",
"**/jest.config.{js,cjs,mjs,ts}",
"**/{karma,rollup,webpack}.config.js",
"**/{babel.config,.eslintrc,.mocharc}.{js,cjs}"
],
"extension": [
".ts",
".tsx"
],
"check-coverage": true,
"lines": 99,
"functions": 99,
"branches": 80,
"statements": 99
},
"mocha": {
"require": [
"ts-node/register",
"source-map-support/register"
],
"full-trace": true,
"bail": true,
"spec": "test/**/_*_test.js"
},
"engines": {
"node": ">= 8.0.0"
"node": ">= 10.0.0"
},

@@ -38,0 +73,0 @@ "repository": {

@@ -9,2 +9,3 @@ {

"noUnusedParameters": true,
"removeComments": false,
"lib": [ "es6" ]

@@ -11,0 +12,0 @@ },

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