New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

azure-iot-device-http

Package Overview
Dependencies
Maintainers
8
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-iot-device-http - npm Package Compare versions

Comparing version 1.11.2 to 1.12.0-pnp-refresh.0

13

lib/http.js

@@ -318,2 +318,15 @@ // Copyright (c) Microsoft. All rights reserved.

}
/* Codes_SRS_NODE_DEVICE_HTTP_06_001: [The `setOptions` method shall throw an `InvalidOperationError` if the method is called with token renewal options while using using cert or non renewal authentication.] */
if (options.tokenRenewal) {
if (this._authenticationProvider.type === azure_iot_common_1.AuthenticationType.X509) {
throw new azure_iot_common_1.errors.InvalidOperationError('cannot set token renewal options when using X509 authentication');
}
else if (!this._authenticationProvider.setTokenRenewalValues) {
throw new azure_iot_common_1.errors.InvalidOperationError('can only set token renewal options when using pre-shared key authentication');
}
else {
/* Codes_SRS_NODE_DEVICE_HTTP_06_002: [The authentication providers `setTokenRenewalValues` method shall be invoked with the values provided in the tokenRenewal option.] */
this._authenticationProvider.setTokenRenewalValues(options.tokenRenewal.tokenValidTimeInSeconds, options.tokenRenewal.tokenRenewalMarginInSeconds);
}
}
/*Codes_SRS_NODE_DEVICE_HTTP_16_010: [`setOptions` should not throw if `done` has not been specified.]*/

@@ -320,0 +333,0 @@ /*Codes_SRS_NODE_DEVICE_HTTP_16_005: [If `done` has been specified the `setOptions` method shall call the `done` callback with no arguments when successful.]*/

82

package.json
{
"name": "azure-iot-device-http",
"version": "1.11.2",
"version": "1.12.0-pnp-refresh.0",
"description": "HTTP transport for Azure IoT device SDK",

@@ -10,5 +10,5 @@ "author": "Microsoft Corporation",

"dependencies": {
"azure-iot-common": "1.11.2",
"azure-iot-device": "1.12.2",
"azure-iot-http-base": "1.10.2",
"azure-iot-common": "1.12.0-pnp-refresh.0",
"azure-iot-device": "1.12.0-pnp-refresh.0",
"azure-iot-http-base": "1.12.0-pnp-refresh.0",
"debug": "^4.1.1",

@@ -19,21 +19,56 @@ "node-crontab": "^0.0.8"

"@types/node": "^9.6.50",
"azure-iothub": "1.11.2",
"chai": "^4.2.0",
"mocha": "^6.1.4",
"nyc": "^14.1.1",
"mocha": "^7.1.1",
"nyc": "^15.0.0",
"sinon": "^7.4.1",
"source-map-support": "^0.5.13",
"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",
"test-min": "nyc mocha --reporter dot --require source-map-support/register test/_*_test.js",
"test": "nyc mocha --reporter spec --require source-map-support/register test/_*_test.js",
"ci": "npm -s run lint && npm -s run build && npm -s run test-min && npm -s run check-cover",
"check-cover": "nyc check-coverage --statements 93 --branches 88 --functions 100 --lines 93 "
"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 unittest"
},
"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": 94,
"functions": 100,
"branches": 88,
"statements": 94
},
"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"
},

@@ -47,20 +82,3 @@ "repository": {

},
"homepage": "https://github.com/Azure/azure-iot-sdk-node#readme",
"nyc": {
"extension": [
".ts",
".tsx"
],
"exclude": [
"**/*.d.ts",
"coverage/",
"index.js",
"test/"
],
"reporter": [
"html",
"text-summary"
],
"all": true
}
"homepage": "https://github.com/Azure/azure-iot-sdk-node#readme"
}
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