From b67e5aeaf920c97c43db1d1c9fe82e1c4a9d1118 Mon Sep 17 00:00:00 2001 From: chradek Date: Tue, 26 May 2020 17:29:36 -0700 Subject: [PATCH] [eph] update uuid imports --- .../src/azureStorageCheckpointLeaseManager.ts | 2 +- sdk/eventhub/event-processor-host/src/eventProcessorHost.ts | 2 +- sdk/eventhub/event-processor-host/src/hostContext.ts | 2 +- sdk/eventhub/event-processor-host/test/eph.spec.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/eventhub/event-processor-host/src/azureStorageCheckpointLeaseManager.ts b/sdk/eventhub/event-processor-host/src/azureStorageCheckpointLeaseManager.ts index 1b6589218252..0506cd495bf8 100644 --- a/sdk/eventhub/event-processor-host/src/azureStorageCheckpointLeaseManager.ts +++ b/sdk/eventhub/event-processor-host/src/azureStorageCheckpointLeaseManager.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import uuid from "uuid/v4"; +import { v4 as uuid } from "uuid"; import { CheckpointInfo } from "./checkpointInfo"; import { CheckpointManager } from "./checkpointManager"; import { LeaseManager } from "./leaseManager"; diff --git a/sdk/eventhub/event-processor-host/src/eventProcessorHost.ts b/sdk/eventhub/event-processor-host/src/eventProcessorHost.ts index 64f59adb64a6..3af48bf2f339 100644 --- a/sdk/eventhub/event-processor-host/src/eventProcessorHost.ts +++ b/sdk/eventhub/event-processor-host/src/eventProcessorHost.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -import uuid from "uuid/v4"; +import { v4 as uuid } from "uuid"; import { TokenProvider, EventHubRuntimeInformation, diff --git a/sdk/eventhub/event-processor-host/src/hostContext.ts b/sdk/eventhub/event-processor-host/src/hostContext.ts index 799ffb0c523e..1e634054a3e1 100644 --- a/sdk/eventhub/event-processor-host/src/hostContext.ts +++ b/sdk/eventhub/event-processor-host/src/hostContext.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import os from "os"; -import uuid from "uuid/v4"; +import { v4 as uuid } from "uuid"; import { EventHubClient, EventPosition, diff --git a/sdk/eventhub/event-processor-host/test/eph.spec.ts b/sdk/eventhub/event-processor-host/test/eph.spec.ts index 25025fe6ec83..88eec21df207 100644 --- a/sdk/eventhub/event-processor-host/test/eph.spec.ts +++ b/sdk/eventhub/event-processor-host/test/eph.spec.ts @@ -3,7 +3,7 @@ import chai from "chai"; import os from "os"; -import uuid from "uuid/v4"; +import { v4 as uuid } from "uuid"; import chaiAsPromised from "chai-as-promised"; chai.use(chaiAsPromised); import chaiString from "chai-string";