Skip to content

Commit

Permalink
[event-hubs] fix IoT Connection string sample (Azure#16945)
Browse files Browse the repository at this point in the history
  • Loading branch information
chradek authored and ckairen committed Aug 24, 2021
1 parent c901fb0 commit 5787602
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions sdk/eventhub/event-hubs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@
]
},
"//sampleConfiguration": {
"dependencyOverrides": {
"@azure/identity": "^1.5.1"
},
"extraFiles": {
"./samples-browser": [
"browser"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as crypto from "crypto";
import { Buffer } from "buffer";
import { AmqpError, Connection, ReceiverEvents, parseConnectionString } from "rhea-promise";
import rheaPromise from "rhea-promise";
import * as rheaPromise from "rhea-promise";
import { EventHubConsumerClient, earliestEventPosition } from "@azure/event-hubs";

// Load the .env file if it exists
Expand Down
4 changes: 2 additions & 2 deletions sdk/eventhub/event-hubs/samples/v5/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"dependencies": {
"@azure/event-hubs": "latest",
"dotenv": "latest",
"rhea-promise": "^2.0.0",
"@azure/identity": "2.0.0-beta.5",
"rhea-promise": "^2.1.0",
"@azure/identity": "^1.5.1",
"ws": "^7.1.1",
"https-proxy-agent": "^5.0.0"
}
Expand Down
5 changes: 3 additions & 2 deletions sdk/eventhub/event-hubs/samples/v5/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@
"dependencies": {
"@azure/event-hubs": "latest",
"dotenv": "latest",
"rhea-promise": "^2.0.0",
"@azure/identity": "2.0.0-beta.5",
"rhea-promise": "^2.1.0",
"@azure/identity": "^1.5.1",
"ws": "^7.1.1",
"https-proxy-agent": "^5.0.0"
},
"devDependencies": {
"@types/ws": "^7.2.4",
"typescript": "~4.2.0",
"rimraf": "latest"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import * as crypto from "crypto";
import { Buffer } from "buffer";
import { AmqpError, Connection, ReceiverEvents, parseConnectionString } from "rhea-promise";
import rheaPromise from "rhea-promise";
import * as rheaPromise from "rhea-promise";
import { EventHubConsumerClient, earliestEventPosition } from "@azure/event-hubs";

// Load the .env file if it exists
Expand Down

0 comments on commit 5787602

Please sign in to comment.