azure-iot-common
Advanced tools
Comparing version 1.12.0-preview.2 to 1.12.0
@@ -24,2 +24,3 @@ import { TransportConfig } from './authorization'; | ||
getDeviceCredentials(): Promise<TransportConfig>; | ||
setTokenRenewalValues?(tokenValidTimeInSeconds: number, tokenRenewalMarginInSeconds: number): void; | ||
} |
@@ -24,7 +24,2 @@ /*! 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. | ||
@@ -31,0 +26,0 @@ * @memberof {azure-iot-common.ConnectionString} |
/*! 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-07-01-preview"; | ||
export declare const apiVersion = "2019-03-30"; | ||
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-07-01-preview'; | ||
exports.apiVersion = '2019-03-30'; | ||
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.12.0-preview.2", | ||
"version": "1.12.0", | ||
"description": "Common components shared by Azure IoT device and service SDKs", | ||
@@ -14,8 +14,11 @@ "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": "^5.2.0", | ||
"mocha": "^6.1.4", | ||
"nyc": "^15.0.0", | ||
"sinon": "^7.4.1", | ||
"source-map-support": "^0.5.16", | ||
"ts-node": "^8.6.2", | ||
"tslint": "^5.18.0", | ||
@@ -25,14 +28,46 @@ "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" | ||
}, | ||
@@ -39,0 +74,0 @@ "repository": { |
@@ -9,2 +9,3 @@ { | ||
"noUnusedParameters": true, | ||
"removeComments": false, | ||
"lib": [ "es6" ] | ||
@@ -11,0 +12,0 @@ }, |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
283962
39
3072
0
11