From 9a369c87b71eeb68b1af4a2ad108b37307f65eda Mon Sep 17 00:00:00 2001 From: Vishnu Reddy Date: Wed, 8 Feb 2023 12:40:36 -0500 Subject: [PATCH] fix(azure-iot-http-base): import AccessToken,TokenCredential core-http->core-auth devDependencies->dependencies --- common/transport/http/package.json | 10 +++++----- common/transport/http/src/rest_api_client.ts | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/transport/http/package.json b/common/transport/http/package.json index c7c8ed854..ab636e110 100644 --- a/common/transport/http/package.json +++ b/common/transport/http/package.json @@ -7,26 +7,26 @@ "main": "index.js", "typings": "index.d.ts", "dependencies": { + "@azure/core-auth": "^1.4.0", "async": "^3.2.3", - "es5-ext": "0.10.53", - "debug": "^4.3.1", "azure-iot-common": "1.13.1", + "debug": "^4.3.1", + "es5-ext": "0.10.53", "uuid": "^8.3.2" }, "devDependencies": { - "@azure/core-http": "^1.2.3", "@types/node": "^16.10.2", - "eslint": "^8.26.0", "@typescript-eslint/eslint-plugin": "^5.41.0", "@typescript-eslint/eslint-plugin-tslint": "^5.41.0", "@typescript-eslint/parser": "^5.41.0", + "chai": "^4.3.3", + "eslint": "^8.26.0", "eslint-plugin-jsdoc": "^39.3.25", "eslint-plugin-mocha": "^10.1.0", "eslint-plugin-no-null": "^1.0.2", "eslint-plugin-no-only-tests": "^3.1.0", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-security": "^1.5.0", - "chai": "^4.3.3", "mocha": "^9.2.1", "nyc": "^15.0.0", "sinon": "^11.1.2", diff --git a/common/transport/http/src/rest_api_client.ts b/common/transport/http/src/rest_api_client.ts index 03e0e6a2c..bc12a6fed 100644 --- a/common/transport/http/src/rest_api_client.ts +++ b/common/transport/http/src/rest_api_client.ts @@ -5,7 +5,7 @@ import { anHourFromNow, errors, SharedAccessSignature, X509 } from 'azure-iot-common'; import { Http as HttpBase, HttpRequestOptions } from './http'; -import { AccessToken, TokenCredential } from '@azure/core-http'; +import { AccessToken, TokenCredential } from '@azure/core-auth'; import * as uuid from 'uuid'; import { ClientRequest } from 'http'; import dbg = require('debug');