From cdd1c9f8eecde16a022330672464236741b8395b Mon Sep 17 00:00:00 2001 From: Micah Godbolt Date: Tue, 27 Oct 2020 14:36:58 -0700 Subject: [PATCH] revert strict as assert for exported code (#4120) --- common/lib/common-utils/src/promises.ts | 2 +- common/lib/common-utils/src/rangeTracker.ts | 2 +- common/lib/common-utils/src/timer.ts | 2 +- .../data-objects/client-ui-lib/src/controls/overlayCanvas.ts | 2 +- examples/data-objects/key-value-cache/src/index.ts | 2 +- examples/data-objects/prosemirror/src/fluidBridge.ts | 2 +- examples/data-objects/prosemirror/src/fluidCollabManager.ts | 2 +- examples/data-objects/smde/src/smde.ts | 2 +- examples/data-objects/table-document/src/cellrange.ts | 2 +- .../table-document/src/interception/tableWithInterception.ts | 2 +- examples/data-objects/webflow/src/document/index.ts | 2 +- examples/data-objects/webflow/src/html/formatters.ts | 2 +- examples/data-objects/webflow/src/view/layout.ts | 2 +- packages/dds/cell/src/cell.ts | 2 +- packages/dds/map/src/directory.ts | 2 +- packages/dds/map/src/mapKernel.ts | 2 +- packages/dds/matrix/src/handlecache.ts | 2 +- packages/dds/matrix/src/matrix.ts | 2 +- packages/dds/matrix/src/permutationvector.ts | 2 +- packages/dds/matrix/src/undoprovider.ts | 2 +- packages/dds/merge-tree/src/client.ts | 2 +- packages/dds/merge-tree/src/mergeTree.ts | 2 +- packages/dds/merge-tree/src/partialLengths.ts | 2 +- packages/dds/merge-tree/src/segmentPropertiesManager.ts | 2 +- packages/dds/merge-tree/src/snapshotLoader.ts | 2 +- packages/dds/merge-tree/src/snapshotV1.ts | 2 +- .../dds/ordered-collection/src/consensusOrderedCollection.ts | 2 +- packages/dds/ordered-collection/src/snapshotableArray.ts | 2 +- .../dds/register-collection/src/consensusRegisterCollection.ts | 2 +- packages/dds/sequence/src/sequence.ts | 2 +- packages/dds/shared-object-base/src/sharedObject.ts | 2 +- packages/drivers/debugger/src/fluidDebuggerController.ts | 2 +- packages/drivers/debugger/src/fluidDebuggerUi.ts | 2 +- packages/drivers/driver-base/src/documentDeltaConnection.ts | 2 +- packages/drivers/file-driver/src/fileDeltaStorageService.ts | 2 +- packages/drivers/file-driver/src/fileDocumentStorageService.ts | 2 +- packages/drivers/fluidapp-odsp-urlResolver/src/urlResolver.ts | 2 +- packages/drivers/local-driver/src/localResolver.ts | 2 +- packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts | 2 +- packages/drivers/odsp-driver/src/odspDocumentStorageManager.ts | 2 +- packages/drivers/odsp-driver/src/odspDriverUrlResolver.ts | 2 +- packages/drivers/replay-driver/src/storageImplementations.ts | 2 +- .../drivers/routerlicious-driver/src/deltaStorageService.ts | 2 +- .../drivers/routerlicious-driver/src/documentServiceFactory.ts | 2 +- .../drivers/routerlicious-driver/src/documentStorageService.ts | 2 +- .../src/map/sharedDirectoryWithInterception.ts | 2 +- .../dds-interceptions/src/map/sharedMapWithInterception.ts | 2 +- .../src/sequence/sharedStringWithInterception.ts | 2 +- packages/framework/request-handler/src/requestHandlers.ts | 2 +- packages/loader/container-loader/src/container.ts | 2 +- packages/loader/container-loader/src/containerContext.ts | 2 +- packages/loader/container-loader/src/deltaManager.ts | 2 +- packages/loader/container-loader/src/deltaQueue.ts | 2 +- packages/loader/container-utils/src/error.ts | 2 +- packages/loader/driver-utils/src/buildSnapshotTree.ts | 2 +- packages/runtime/agent-scheduler/src/scheduler.ts | 2 +- packages/runtime/container-runtime/src/connectionTelemetry.ts | 2 +- .../runtime/container-runtime/src/containerHandleContext.ts | 2 +- packages/runtime/container-runtime/src/containerRuntime.ts | 2 +- packages/runtime/container-runtime/src/dataStoreContext.ts | 2 +- packages/runtime/container-runtime/src/pendingStateManager.ts | 2 +- packages/runtime/container-runtime/src/summaryCollection.ts | 2 +- packages/runtime/container-runtime/src/taskAnalyzer.ts | 2 +- packages/runtime/datastore/src/channelDeltaConnection.ts | 2 +- packages/runtime/datastore/src/dataStoreRuntime.ts | 2 +- packages/runtime/datastore/src/localChannelContext.ts | 2 +- packages/runtime/datastore/src/remoteChannelContext.ts | 2 +- packages/runtime/runtime-utils/src/dataStoreHelpers.ts | 2 +- packages/runtime/runtime-utils/src/objectstoragepartition.ts | 2 +- packages/runtime/runtime-utils/src/summarizerNode.ts | 2 +- packages/runtime/runtime-utils/src/summaryUtils.ts | 2 +- packages/tools/fetch-tool/src/fluidAnalyzeMessages.ts | 2 +- packages/tools/fetch-tool/src/fluidFetchMessages.ts | 2 +- packages/tools/fetch-tool/src/fluidFetchSnapshot.ts | 2 +- packages/tools/merge-tree-client-replay/src/clientReplayTool.ts | 2 +- packages/tools/replay-tool/src/replayMessages.ts | 2 +- .../lambdas-driver/src/document-router/contextManager.ts | 2 +- .../lambdas-driver/src/document-router/documentContext.ts | 2 +- .../lambdas-driver/src/kafka-service/checkpointManager.ts | 2 +- server/routerlicious/packages/lambdas/src/deli/lambda.ts | 2 +- server/routerlicious/packages/lambdas/src/scribe/lambda.ts | 2 +- server/routerlicious/packages/memory-orderer/src/localNode.ts | 2 +- .../packages/memory-orderer/src/localOrderManager.ts | 2 +- server/routerlicious/packages/memory-orderer/src/nodeManager.ts | 2 +- server/routerlicious/packages/memory-orderer/src/pubsub.ts | 2 +- server/routerlicious/packages/memory-orderer/src/remoteNode.ts | 2 +- server/routerlicious/packages/protocol-base/src/quorum.ts | 2 +- server/routerlicious/packages/services-client/src/gitManager.ts | 2 +- tools/build-tools/src/buildVersion/buildVersionTests.ts | 2 +- tools/build-tools/src/layerCheck/layerGraph.ts | 2 +- tools/bundle-size-tools/src/ADO/AdoArtifactFileProvider.ts | 2 +- tools/bundle-size-tools/src/ADO/getCommentForBundleDiff.ts | 2 +- 92 files changed, 92 insertions(+), 92 deletions(-) diff --git a/common/lib/common-utils/src/promises.ts b/common/lib/common-utils/src/promises.ts index 730702eee42f..ec140bd7b3c3 100644 --- a/common/lib/common-utils/src/promises.ts +++ b/common/lib/common-utils/src/promises.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; /** * A deferred creates a promise and the ability to resolve or reject it diff --git a/common/lib/common-utils/src/rangeTracker.ts b/common/lib/common-utils/src/rangeTracker.ts index abe76ef41588..86c3ba5833b3 100644 --- a/common/lib/common-utils/src/rangeTracker.ts +++ b/common/lib/common-utils/src/rangeTracker.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; // eslint-disable-next-line import/no-internal-modules import cloneDeep from "lodash/cloneDeep"; diff --git a/common/lib/common-utils/src/timer.ts b/common/lib/common-utils/src/timer.ts index 00d392384047..2a07a551ef26 100644 --- a/common/lib/common-utils/src/timer.ts +++ b/common/lib/common-utils/src/timer.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Deferred } from "./promises"; export interface ITimer { diff --git a/examples/data-objects/client-ui-lib/src/controls/overlayCanvas.ts b/examples/data-objects/client-ui-lib/src/controls/overlayCanvas.ts index 74a22b54811f..fc3a4e6e5e81 100644 --- a/examples/data-objects/client-ui-lib/src/controls/overlayCanvas.ts +++ b/examples/data-objects/client-ui-lib/src/controls/overlayCanvas.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import * as api from "@fluid-internal/client-api"; import * as ink from "@fluidframework/ink"; import * as ui from "../ui"; diff --git a/examples/data-objects/key-value-cache/src/index.ts b/examples/data-objects/key-value-cache/src/index.ts index b783bbf5f60e..da458c73c92f 100644 --- a/examples/data-objects/key-value-cache/src/index.ts +++ b/examples/data-objects/key-value-cache/src/index.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidObject, IFluidRouter, diff --git a/examples/data-objects/prosemirror/src/fluidBridge.ts b/examples/data-objects/prosemirror/src/fluidBridge.ts index 1f7497d82400..892a3cc979e9 100644 --- a/examples/data-objects/prosemirror/src/fluidBridge.ts +++ b/examples/data-objects/prosemirror/src/fluidBridge.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { createInsertSegmentOp, Marker, diff --git a/examples/data-objects/prosemirror/src/fluidCollabManager.ts b/examples/data-objects/prosemirror/src/fluidCollabManager.ts index b766b892cc80..28834b322af1 100644 --- a/examples/data-objects/prosemirror/src/fluidCollabManager.ts +++ b/examples/data-objects/prosemirror/src/fluidCollabManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { ILoader } from "@fluidframework/container-definitions"; import { diff --git a/examples/data-objects/smde/src/smde.ts b/examples/data-objects/smde/src/smde.ts index d950c7b386af..e9f888484df3 100644 --- a/examples/data-objects/smde/src/smde.ts +++ b/examples/data-objects/smde/src/smde.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { IFluidObject, diff --git a/examples/data-objects/table-document/src/cellrange.ts b/examples/data-objects/table-document/src/cellrange.ts index 468652a2ab60..29b372a57c00 100644 --- a/examples/data-objects/table-document/src/cellrange.ts +++ b/examples/data-objects/table-document/src/cellrange.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { LocalReference } from "@fluidframework/merge-tree"; import { SequenceInterval } from "@fluidframework/sequence"; diff --git a/examples/data-objects/table-document/src/interception/tableWithInterception.ts b/examples/data-objects/table-document/src/interception/tableWithInterception.ts index f2e43c5bcfa0..518bb5c882f1 100644 --- a/examples/data-objects/table-document/src/interception/tableWithInterception.ts +++ b/examples/data-objects/table-document/src/interception/tableWithInterception.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { PropertySet } from "@fluidframework/merge-tree"; import { IFluidDataStoreContext } from "@fluidframework/runtime-definitions"; import { ITable, TableDocumentItem } from "../table"; diff --git a/examples/data-objects/webflow/src/document/index.ts b/examples/data-objects/webflow/src/document/index.ts index 625f9890f048..5ff0a15c5340 100644 --- a/examples/data-objects/webflow/src/document/index.ts +++ b/examples/data-objects/webflow/src/document/index.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { randomId, TokenList, TagName } from "@fluid-example/flow-util-lib"; import { LazyLoadedDataObject, LazyLoadedDataObjectFactory } from "@fluidframework/data-object-base"; import { IFluidHandle } from "@fluidframework/core-interfaces"; diff --git a/examples/data-objects/webflow/src/html/formatters.ts b/examples/data-objects/webflow/src/html/formatters.ts index dfc6aa4fa998..4da5190468e6 100644 --- a/examples/data-objects/webflow/src/html/formatters.ts +++ b/examples/data-objects/webflow/src/html/formatters.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Caret as CaretUtil, Direction, Rect, TagName } from "@fluid-example/flow-util-lib"; import { IFluidObject } from "@fluidframework/core-interfaces"; import { Marker, TextSegment } from "@fluidframework/merge-tree"; diff --git a/examples/data-objects/webflow/src/view/layout.ts b/examples/data-objects/webflow/src/view/layout.ts index 31d057522627..9ae71bb0de86 100644 --- a/examples/data-objects/webflow/src/view/layout.ts +++ b/examples/data-objects/webflow/src/view/layout.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { Dom, hasTagName, isTextNode, Scheduler, TagName } from "@fluid-example/flow-util-lib"; import { IFluidObject } from "@fluidframework/core-interfaces"; diff --git a/packages/dds/cell/src/cell.ts b/packages/dds/cell/src/cell.ts index 2ae3f7cbbb7b..c5d967df9d86 100644 --- a/packages/dds/cell/src/cell.ts +++ b/packages/dds/cell/src/cell.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ISerializedHandle } from "@fluidframework/core-interfaces"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; import { diff --git a/packages/dds/map/src/directory.ts b/packages/dds/map/src/directory.ts index 132f07057325..1b73772a2452 100644 --- a/packages/dds/map/src/directory.ts +++ b/packages/dds/map/src/directory.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; import { addBlobToTree } from "@fluidframework/protocol-base"; import { diff --git a/packages/dds/map/src/mapKernel.ts b/packages/dds/map/src/mapKernel.ts index 4311b8c2646e..c8e5252f8a1a 100644 --- a/packages/dds/map/src/mapKernel.ts +++ b/packages/dds/map/src/mapKernel.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidHandle } from "@fluidframework/core-interfaces"; import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions"; import { IFluidDataStoreRuntime } from "@fluidframework/datastore-definitions"; diff --git a/packages/dds/matrix/src/handlecache.ts b/packages/dds/matrix/src/handlecache.ts index fd2981224c09..fd82be031fbc 100644 --- a/packages/dds/matrix/src/handlecache.ts +++ b/packages/dds/matrix/src/handlecache.ts @@ -5,7 +5,7 @@ /* eslint-disable no-bitwise */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IVectorConsumer } from "@tiny-calc/nano"; import { Handle, isHandleValid } from "./handletable"; import { PermutationVector, PermutationSegment } from "./permutationvector"; diff --git a/packages/dds/matrix/src/matrix.ts b/packages/dds/matrix/src/matrix.ts index bd828ebee46b..2fc25846100a 100644 --- a/packages/dds/matrix/src/matrix.ts +++ b/packages/dds/matrix/src/matrix.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { FileMode, ISequencedDocumentMessage, diff --git a/packages/dds/matrix/src/permutationvector.ts b/packages/dds/matrix/src/permutationvector.ts index 023f073e7d43..fe98267c1371 100644 --- a/packages/dds/matrix/src/permutationvector.ts +++ b/packages/dds/matrix/src/permutationvector.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ChildLogger } from "@fluidframework/telemetry-utils"; import { IFluidDataStoreRuntime, IChannelStorageService } from "@fluidframework/datastore-definitions"; import { ITelemetryBaseLogger } from "@fluidframework/common-definitions"; diff --git a/packages/dds/matrix/src/undoprovider.ts b/packages/dds/matrix/src/undoprovider.ts index a5e177e6347c..f75b386720c6 100644 --- a/packages/dds/matrix/src/undoprovider.ts +++ b/packages/dds/matrix/src/undoprovider.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Serializable } from "@fluidframework/datastore-definitions"; import { TrackingGroup, MergeTreeDeltaOperationType, MergeTreeDeltaType } from "@fluidframework/merge-tree"; import { SharedMatrix } from "./matrix"; diff --git a/packages/dds/merge-tree/src/client.ts b/packages/dds/merge-tree/src/client.ts index 55789a0c01a7..8d32cf550894 100644 --- a/packages/dds/merge-tree/src/client.ts +++ b/packages/dds/merge-tree/src/client.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidHandle } from "@fluidframework/core-interfaces"; import { ISequencedDocumentMessage, MessageType } from "@fluidframework/protocol-definitions"; import { IFluidDataStoreRuntime, IChannelStorageService } from "@fluidframework/datastore-definitions"; diff --git a/packages/dds/merge-tree/src/mergeTree.ts b/packages/dds/merge-tree/src/mergeTree.ts index 63f0eff08ece..dc175ce3755e 100644 --- a/packages/dds/merge-tree/src/mergeTree.ts +++ b/packages/dds/merge-tree/src/mergeTree.ts @@ -5,7 +5,7 @@ /* eslint-disable @typescript-eslint/consistent-type-assertions, max-len, no-bitwise, no-param-reassign, no-shadow */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Trace } from "@fluidframework/common-utils"; import * as Base from "./base"; import * as Collections from "./collections"; diff --git a/packages/dds/merge-tree/src/partialLengths.ts b/packages/dds/merge-tree/src/partialLengths.ts index 12bf7d8a1515..76a0bc133b6d 100644 --- a/packages/dds/merge-tree/src/partialLengths.ts +++ b/packages/dds/merge-tree/src/partialLengths.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Property } from "./base"; import { RedBlackTree } from "./collections"; import { UnassignedSequenceNumber } from "./constants"; diff --git a/packages/dds/merge-tree/src/segmentPropertiesManager.ts b/packages/dds/merge-tree/src/segmentPropertiesManager.ts index 532ae7d20a5f..2aa7c3df298d 100644 --- a/packages/dds/merge-tree/src/segmentPropertiesManager.ts +++ b/packages/dds/merge-tree/src/segmentPropertiesManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { UnassignedSequenceNumber } from "./constants"; import { CollaborationWindow, ISegment } from "./mergeTree"; import { ICombiningOp, IMergeTreeAnnotateMsg } from "./ops"; diff --git a/packages/dds/merge-tree/src/snapshotLoader.ts b/packages/dds/merge-tree/src/snapshotLoader.ts index 7d3975278a06..46497e0c84cd 100644 --- a/packages/dds/merge-tree/src/snapshotLoader.ts +++ b/packages/dds/merge-tree/src/snapshotLoader.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; import { ChildLogger } from "@fluidframework/telemetry-utils"; import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions"; diff --git a/packages/dds/merge-tree/src/snapshotV1.ts b/packages/dds/merge-tree/src/snapshotV1.ts index d934abe5c854..6911e40140e7 100644 --- a/packages/dds/merge-tree/src/snapshotV1.ts +++ b/packages/dds/merge-tree/src/snapshotV1.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { IFluidHandle, diff --git a/packages/dds/ordered-collection/src/consensusOrderedCollection.ts b/packages/dds/ordered-collection/src/consensusOrderedCollection.ts index 25fa3f167bcb..5fc413476a22 100644 --- a/packages/dds/ordered-collection/src/consensusOrderedCollection.ts +++ b/packages/dds/ordered-collection/src/consensusOrderedCollection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { fromBase64ToUtf8, unreachableCase } from "@fluidframework/common-utils"; import { FileMode, diff --git a/packages/dds/ordered-collection/src/snapshotableArray.ts b/packages/dds/ordered-collection/src/snapshotableArray.ts index 1cb40113bdb4..9f6d41a4f0d2 100644 --- a/packages/dds/ordered-collection/src/snapshotableArray.ts +++ b/packages/dds/ordered-collection/src/snapshotableArray.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; export class SnapshotableArray extends Array { protected data: T[] = []; diff --git a/packages/dds/register-collection/src/consensusRegisterCollection.ts b/packages/dds/register-collection/src/consensusRegisterCollection.ts index 867b7a5f7eeb..0e47494d365d 100644 --- a/packages/dds/register-collection/src/consensusRegisterCollection.ts +++ b/packages/dds/register-collection/src/consensusRegisterCollection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { fromBase64ToUtf8, unreachableCase } from "@fluidframework/common-utils"; import { FileMode, diff --git a/packages/dds/sequence/src/sequence.ts b/packages/dds/sequence/src/sequence.ts index 730f1eaa96f6..cdd8dca0f0c6 100644 --- a/packages/dds/sequence/src/sequence.ts +++ b/packages/dds/sequence/src/sequence.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; // eslint-disable-next-line import/no-internal-modules import cloneDeep from "lodash/cloneDeep"; diff --git a/packages/dds/shared-object-base/src/sharedObject.ts b/packages/dds/shared-object-base/src/sharedObject.ts index 5c927cda05a0..cf9b69cc1546 100644 --- a/packages/dds/shared-object-base/src/sharedObject.ts +++ b/packages/dds/shared-object-base/src/sharedObject.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryErrorEvent, ITelemetryLogger } from "@fluidframework/common-definitions"; import { IFluidHandle } from "@fluidframework/core-interfaces"; import { ChildLogger, EventEmitterWithErrorHandling } from "@fluidframework/telemetry-utils"; diff --git a/packages/drivers/debugger/src/fluidDebuggerController.ts b/packages/drivers/debugger/src/fluidDebuggerController.ts index 322e22153a1d..17352aff58e7 100644 --- a/packages/drivers/debugger/src/fluidDebuggerController.ts +++ b/packages/drivers/debugger/src/fluidDebuggerController.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Deferred } from "@fluidframework/common-utils"; import { IDocumentStorageService } from "@fluidframework/driver-definitions"; import { readAndParse } from "@fluidframework/driver-utils"; diff --git a/packages/drivers/debugger/src/fluidDebuggerUi.ts b/packages/drivers/debugger/src/fluidDebuggerUi.ts index 40b66b00cd80..9afd4b4d9496 100644 --- a/packages/drivers/debugger/src/fluidDebuggerUi.ts +++ b/packages/drivers/debugger/src/fluidDebuggerUi.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ISequencedDocumentMessage, IVersion } from "@fluidframework/protocol-definitions"; export interface IDebuggerUI { diff --git a/packages/drivers/driver-base/src/documentDeltaConnection.ts b/packages/drivers/driver-base/src/documentDeltaConnection.ts index 7a63ac3cddea..93e968a9869c 100644 --- a/packages/drivers/driver-base/src/documentDeltaConnection.ts +++ b/packages/drivers/driver-base/src/documentDeltaConnection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { BatchManager, TypedEventEmitter } from "@fluidframework/common-utils"; import { IDocumentDeltaConnection, IDocumentDeltaConnectionEvents } from "@fluidframework/driver-definitions"; import { createGenericNetworkError } from "@fluidframework/driver-utils"; diff --git a/packages/drivers/file-driver/src/fileDeltaStorageService.ts b/packages/drivers/file-driver/src/fileDeltaStorageService.ts index 31637cb42533..d9e5eaa0d055 100644 --- a/packages/drivers/file-driver/src/fileDeltaStorageService.ts +++ b/packages/drivers/file-driver/src/fileDeltaStorageService.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import fs from "fs"; import { IDocumentDeltaStorageService } from "@fluidframework/driver-definitions"; import * as api from "@fluidframework/protocol-definitions"; diff --git a/packages/drivers/file-driver/src/fileDocumentStorageService.ts b/packages/drivers/file-driver/src/fileDocumentStorageService.ts index 745d786f33a0..dea1a7034d6e 100644 --- a/packages/drivers/file-driver/src/fileDocumentStorageService.ts +++ b/packages/drivers/file-driver/src/fileDocumentStorageService.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import fs from "fs"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; import { IDocumentStorageService } from "@fluidframework/driver-definitions"; diff --git a/packages/drivers/fluidapp-odsp-urlResolver/src/urlResolver.ts b/packages/drivers/fluidapp-odsp-urlResolver/src/urlResolver.ts index bb12870f5391..dd67e87739ce 100644 --- a/packages/drivers/fluidapp-odsp-urlResolver/src/urlResolver.ts +++ b/packages/drivers/fluidapp-odsp-urlResolver/src/urlResolver.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IRequest } from "@fluidframework/core-interfaces"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; import { IResolvedUrl, IUrlResolver } from "@fluidframework/driver-definitions"; diff --git a/packages/drivers/local-driver/src/localResolver.ts b/packages/drivers/local-driver/src/localResolver.ts index 452e4ac2d025..e9c37c5ef03c 100644 --- a/packages/drivers/local-driver/src/localResolver.ts +++ b/packages/drivers/local-driver/src/localResolver.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { parse } from "url"; import { IRequest } from "@fluidframework/core-interfaces"; import { diff --git a/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts b/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts index 3b6747ea7e4e..f8f5e5b5c6bd 100644 --- a/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts +++ b/packages/drivers/odsp-driver/src/odspDocumentDeltaConnection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { TelemetryNullLogger } from "@fluidframework/common-utils"; import { DocumentDeltaConnection } from "@fluidframework/driver-base"; diff --git a/packages/drivers/odsp-driver/src/odspDocumentStorageManager.ts b/packages/drivers/odsp-driver/src/odspDocumentStorageManager.ts index 1340a6e329a7..3bd7c2a14f65 100644 --- a/packages/drivers/odsp-driver/src/odspDocumentStorageManager.ts +++ b/packages/drivers/odsp-driver/src/odspDocumentStorageManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { v4 as uuid } from "uuid"; import { diff --git a/packages/drivers/odsp-driver/src/odspDriverUrlResolver.ts b/packages/drivers/odsp-driver/src/odspDriverUrlResolver.ts index 1b290027b727..01cc0368ec26 100644 --- a/packages/drivers/odsp-driver/src/odspDriverUrlResolver.ts +++ b/packages/drivers/odsp-driver/src/odspDriverUrlResolver.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IRequest, DriverHeader, diff --git a/packages/drivers/replay-driver/src/storageImplementations.ts b/packages/drivers/replay-driver/src/storageImplementations.ts index b13fe317eb43..ee466dfa6894 100644 --- a/packages/drivers/replay-driver/src/storageImplementations.ts +++ b/packages/drivers/replay-driver/src/storageImplementations.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDocumentDeltaConnection, IDocumentDeltaStorageService, diff --git a/packages/drivers/routerlicious-driver/src/deltaStorageService.ts b/packages/drivers/routerlicious-driver/src/deltaStorageService.ts index 652bd474a1e8..9326ca19a4d2 100644 --- a/packages/drivers/routerlicious-driver/src/deltaStorageService.ts +++ b/packages/drivers/routerlicious-driver/src/deltaStorageService.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import querystring from "querystring"; import { fromUtf8ToBase64 } from "@fluidframework/common-utils"; import { IDeltaStorageService, IDocumentDeltaStorageService } from "@fluidframework/driver-definitions"; diff --git a/packages/drivers/routerlicious-driver/src/documentServiceFactory.ts b/packages/drivers/routerlicious-driver/src/documentServiceFactory.ts index 7fd3ddf6481c..37a37e56dc09 100644 --- a/packages/drivers/routerlicious-driver/src/documentServiceFactory.ts +++ b/packages/drivers/routerlicious-driver/src/documentServiceFactory.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { parse } from "url"; import { IDocumentService, diff --git a/packages/drivers/routerlicious-driver/src/documentStorageService.ts b/packages/drivers/routerlicious-driver/src/documentStorageService.ts index a2e885789ca6..e2f65b301e9e 100644 --- a/packages/drivers/routerlicious-driver/src/documentStorageService.ts +++ b/packages/drivers/routerlicious-driver/src/documentStorageService.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { gitHashFile, IsoBuffer, Uint8ArrayToString } from "@fluidframework/common-utils"; import { IDocumentStorageService, ISummaryContext } from "@fluidframework/driver-definitions"; import * as resources from "@fluidframework/gitresources"; diff --git a/packages/framework/dds-interceptions/src/map/sharedDirectoryWithInterception.ts b/packages/framework/dds-interceptions/src/map/sharedDirectoryWithInterception.ts index 1d79023861eb..21cce2922366 100644 --- a/packages/framework/dds-interceptions/src/map/sharedDirectoryWithInterception.ts +++ b/packages/framework/dds-interceptions/src/map/sharedDirectoryWithInterception.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDirectory } from "@fluidframework/map"; import { IFluidDataStoreContext } from "@fluidframework/runtime-definitions"; diff --git a/packages/framework/dds-interceptions/src/map/sharedMapWithInterception.ts b/packages/framework/dds-interceptions/src/map/sharedMapWithInterception.ts index 25162729a787..386f2cd35089 100644 --- a/packages/framework/dds-interceptions/src/map/sharedMapWithInterception.ts +++ b/packages/framework/dds-interceptions/src/map/sharedMapWithInterception.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ISharedMap, SharedMap } from "@fluidframework/map"; import { IFluidDataStoreContext } from "@fluidframework/runtime-definitions"; diff --git a/packages/framework/dds-interceptions/src/sequence/sharedStringWithInterception.ts b/packages/framework/dds-interceptions/src/sequence/sharedStringWithInterception.ts index 2736dea8ab47..e13677ed1082 100644 --- a/packages/framework/dds-interceptions/src/sequence/sharedStringWithInterception.ts +++ b/packages/framework/dds-interceptions/src/sequence/sharedStringWithInterception.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import * as MergeTree from "@fluidframework/merge-tree"; import { SharedString } from "@fluidframework/sequence"; import { IFluidDataStoreContext } from "@fluidframework/runtime-definitions"; diff --git a/packages/framework/request-handler/src/requestHandlers.ts b/packages/framework/request-handler/src/requestHandlers.ts index d91102725576..295d6ef518af 100644 --- a/packages/framework/request-handler/src/requestHandlers.ts +++ b/packages/framework/request-handler/src/requestHandlers.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidObject, IResponse, diff --git a/packages/loader/container-loader/src/container.ts b/packages/loader/container-loader/src/container.ts index c226c1447cbb..1379cd8c8d7a 100644 --- a/packages/loader/container-loader/src/container.ts +++ b/packages/loader/container-loader/src/container.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; // eslint-disable-next-line import/no-internal-modules import merge from "lodash/merge"; import uuid from "uuid"; diff --git a/packages/loader/container-loader/src/containerContext.ts b/packages/loader/container-loader/src/containerContext.ts index 02a8622d3094..27d7b5aac14f 100644 --- a/packages/loader/container-loader/src/containerContext.ts +++ b/packages/loader/container-loader/src/containerContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { IFluidObject, diff --git a/packages/loader/container-loader/src/deltaManager.ts b/packages/loader/container-loader/src/deltaManager.ts index f4b806896e17..b0bf7c840b0e 100644 --- a/packages/loader/container-loader/src/deltaManager.ts +++ b/packages/loader/container-loader/src/deltaManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger, IEventProvider } from "@fluidframework/common-definitions"; import { IConnectionDetails, diff --git a/packages/loader/container-loader/src/deltaQueue.ts b/packages/loader/container-loader/src/deltaQueue.ts index 0de935391015..f740877f0816 100644 --- a/packages/loader/container-loader/src/deltaQueue.ts +++ b/packages/loader/container-loader/src/deltaQueue.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDeltaQueue, IDeltaQueueEvents } from "@fluidframework/container-definitions"; import { Deferred, TypedEventEmitter } from "@fluidframework/common-utils"; import Deque from "double-ended-queue"; diff --git a/packages/loader/container-utils/src/error.ts b/packages/loader/container-utils/src/error.ts index caab34bbee4f..8afbedb61120 100644 --- a/packages/loader/container-utils/src/error.ts +++ b/packages/loader/container-utils/src/error.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ContainerErrorType, IGenericError, ICriticalContainerError } from "@fluidframework/container-definitions"; import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; diff --git a/packages/loader/driver-utils/src/buildSnapshotTree.ts b/packages/loader/driver-utils/src/buildSnapshotTree.ts index 3ee9eb7a0967..c36566428a5f 100644 --- a/packages/loader/driver-utils/src/buildSnapshotTree.ts +++ b/packages/loader/driver-utils/src/buildSnapshotTree.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { gitHashFile, IsoBuffer } from "@fluidframework/common-utils"; import * as git from "@fluidframework/gitresources"; import { diff --git a/packages/runtime/agent-scheduler/src/scheduler.ts b/packages/runtime/agent-scheduler/src/scheduler.ts index 263f51ba1e40..53e0c0c95459 100644 --- a/packages/runtime/agent-scheduler/src/scheduler.ts +++ b/packages/runtime/agent-scheduler/src/scheduler.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { IFluidObject, diff --git a/packages/runtime/container-runtime/src/connectionTelemetry.ts b/packages/runtime/container-runtime/src/connectionTelemetry.ts index 876a5314a826..aeedef6b4bec 100644 --- a/packages/runtime/container-runtime/src/connectionTelemetry.ts +++ b/packages/runtime/container-runtime/src/connectionTelemetry.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { ChildLogger, TelemetryLogger } from "@fluidframework/telemetry-utils"; import { IDeltaManager } from "@fluidframework/container-definitions"; diff --git a/packages/runtime/container-runtime/src/containerHandleContext.ts b/packages/runtime/container-runtime/src/containerHandleContext.ts index 01cd82156078..66a4517967b9 100644 --- a/packages/runtime/container-runtime/src/containerHandleContext.ts +++ b/packages/runtime/container-runtime/src/containerHandleContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidHandleContext, IRequest, diff --git a/packages/runtime/container-runtime/src/containerRuntime.ts b/packages/runtime/container-runtime/src/containerRuntime.ts index 8171e4703c58..86e2b3fd18a6 100644 --- a/packages/runtime/container-runtime/src/containerRuntime.ts +++ b/packages/runtime/container-runtime/src/containerRuntime.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { TaskManagerFactory } from "@fluidframework/agent-scheduler"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; diff --git a/packages/runtime/container-runtime/src/dataStoreContext.ts b/packages/runtime/container-runtime/src/dataStoreContext.ts index 16eac8e2aa93..06cb90f769a8 100644 --- a/packages/runtime/container-runtime/src/dataStoreContext.ts +++ b/packages/runtime/container-runtime/src/dataStoreContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import EventEmitter from "events"; import { IDisposable } from "@fluidframework/common-definitions"; import { diff --git a/packages/runtime/container-runtime/src/pendingStateManager.ts b/packages/runtime/container-runtime/src/pendingStateManager.ts index 9d740cc0efc4..97decd34cff0 100644 --- a/packages/runtime/container-runtime/src/pendingStateManager.ts +++ b/packages/runtime/container-runtime/src/pendingStateManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IErrorBase } from "@fluidframework/container-definitions"; import { CustomErrorWithProps } from "@fluidframework/telemetry-utils"; import { ITelemetryProperties } from "@fluidframework/common-definitions"; diff --git a/packages/runtime/container-runtime/src/summaryCollection.ts b/packages/runtime/container-runtime/src/summaryCollection.ts index c8d7f0d36b02..aa6805c25a7f 100644 --- a/packages/runtime/container-runtime/src/summaryCollection.ts +++ b/packages/runtime/container-runtime/src/summaryCollection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDisposable } from "@fluidframework/common-definitions"; import { Deferred } from "@fluidframework/common-utils"; import { diff --git a/packages/runtime/container-runtime/src/taskAnalyzer.ts b/packages/runtime/container-runtime/src/taskAnalyzer.ts index 219deb475764..a5e4367c1abc 100644 --- a/packages/runtime/container-runtime/src/taskAnalyzer.ts +++ b/packages/runtime/container-runtime/src/taskAnalyzer.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ISequencedClient } from "@fluidframework/protocol-definitions"; export interface IHelpTasks { diff --git a/packages/runtime/datastore/src/channelDeltaConnection.ts b/packages/runtime/datastore/src/channelDeltaConnection.ts index 6319920bc62c..3a169dc95a1b 100644 --- a/packages/runtime/datastore/src/channelDeltaConnection.ts +++ b/packages/runtime/datastore/src/channelDeltaConnection.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDocumentMessage, ISequencedDocumentMessage } from "@fluidframework/protocol-definitions"; import { IDeltaConnection, IDeltaHandler } from "@fluidframework/datastore-definitions"; diff --git a/packages/runtime/datastore/src/dataStoreRuntime.ts b/packages/runtime/datastore/src/dataStoreRuntime.ts index ae583bc98b87..90c45915984a 100644 --- a/packages/runtime/datastore/src/dataStoreRuntime.ts +++ b/packages/runtime/datastore/src/dataStoreRuntime.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { ITelemetryLogger } from "@fluidframework/common-definitions"; import { diff --git a/packages/runtime/datastore/src/localChannelContext.ts b/packages/runtime/datastore/src/localChannelContext.ts index dfc5ae3ba5bf..ae6ec4dbdd37 100644 --- a/packages/runtime/datastore/src/localChannelContext.ts +++ b/packages/runtime/datastore/src/localChannelContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; // eslint-disable-next-line import/no-internal-modules import cloneDeep from "lodash/cloneDeep"; import { IDocumentStorageService } from "@fluidframework/driver-definitions"; diff --git a/packages/runtime/datastore/src/remoteChannelContext.ts b/packages/runtime/datastore/src/remoteChannelContext.ts index 55631249e8ac..2ffaf766e7ff 100644 --- a/packages/runtime/datastore/src/remoteChannelContext.ts +++ b/packages/runtime/datastore/src/remoteChannelContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IDocumentStorageService } from "@fluidframework/driver-definitions"; import { CreateContainerError } from "@fluidframework/container-utils"; import { readAndParse } from "@fluidframework/driver-utils"; diff --git a/packages/runtime/runtime-utils/src/dataStoreHelpers.ts b/packages/runtime/runtime-utils/src/dataStoreHelpers.ts index 3e8352748400..dc4c258217dd 100644 --- a/packages/runtime/runtime-utils/src/dataStoreHelpers.ts +++ b/packages/runtime/runtime-utils/src/dataStoreHelpers.ts @@ -2,7 +2,7 @@ * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IFluidObject, IFluidRouter, diff --git a/packages/runtime/runtime-utils/src/objectstoragepartition.ts b/packages/runtime/runtime-utils/src/objectstoragepartition.ts index 4603ff261ec3..dc901e24b006 100644 --- a/packages/runtime/runtime-utils/src/objectstoragepartition.ts +++ b/packages/runtime/runtime-utils/src/objectstoragepartition.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IChannelStorageService } from "@fluidframework/datastore-definitions"; /** diff --git a/packages/runtime/runtime-utils/src/summarizerNode.ts b/packages/runtime/runtime-utils/src/summarizerNode.ts index 2856c92aeb8e..00a72da17ce8 100644 --- a/packages/runtime/runtime-utils/src/summarizerNode.ts +++ b/packages/runtime/runtime-utils/src/summarizerNode.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ISummarizerNode, ISummarizerNodeConfig, diff --git a/packages/runtime/runtime-utils/src/summaryUtils.ts b/packages/runtime/runtime-utils/src/summaryUtils.ts index 8add2a5c86cd..c118addc4de9 100644 --- a/packages/runtime/runtime-utils/src/summaryUtils.ts +++ b/packages/runtime/runtime-utils/src/summaryUtils.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IsoBuffer } from "@fluidframework/common-utils"; import { ITree, diff --git a/packages/tools/fetch-tool/src/fluidAnalyzeMessages.ts b/packages/tools/fetch-tool/src/fluidAnalyzeMessages.ts index 8c7731f481cf..44c4f3410dcb 100644 --- a/packages/tools/fetch-tool/src/fluidAnalyzeMessages.ts +++ b/packages/tools/fetch-tool/src/fluidAnalyzeMessages.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IBlob, ISequencedDocumentMessage, diff --git a/packages/tools/fetch-tool/src/fluidFetchMessages.ts b/packages/tools/fetch-tool/src/fluidFetchMessages.ts index 9cb51e6af3fe..1a02e23927e8 100644 --- a/packages/tools/fetch-tool/src/fluidFetchMessages.ts +++ b/packages/tools/fetch-tool/src/fluidFetchMessages.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import fs from "fs"; import { IDocumentDeltaStorageService, diff --git a/packages/tools/fetch-tool/src/fluidFetchSnapshot.ts b/packages/tools/fetch-tool/src/fluidFetchSnapshot.ts index 488f0271f0d6..a29ede3404ff 100644 --- a/packages/tools/fetch-tool/src/fluidFetchSnapshot.ts +++ b/packages/tools/fetch-tool/src/fluidFetchSnapshot.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import fs from "fs"; import util from "util"; import { fromBase64ToUtf8 } from "@fluidframework/common-utils"; diff --git a/packages/tools/merge-tree-client-replay/src/clientReplayTool.ts b/packages/tools/merge-tree-client-replay/src/clientReplayTool.ts index 913a3a6df55a..9c4f1059e664 100644 --- a/packages/tools/merge-tree-client-replay/src/clientReplayTool.ts +++ b/packages/tools/merge-tree-client-replay/src/clientReplayTool.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import fs from "fs"; import { FileDeltaStorageService } from "@fluidframework/file-driver"; import { diff --git a/packages/tools/replay-tool/src/replayMessages.ts b/packages/tools/replay-tool/src/replayMessages.ts index 7fa112b07597..401b90711c7b 100644 --- a/packages/tools/replay-tool/src/replayMessages.ts +++ b/packages/tools/replay-tool/src/replayMessages.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import child_process from "child_process"; import fs from "fs"; import * as API from "@fluid-internal/client-api"; diff --git a/server/routerlicious/packages/lambdas-driver/src/document-router/contextManager.ts b/server/routerlicious/packages/lambdas-driver/src/document-router/contextManager.ts index a9dd6b19026a..ee52296fa030 100644 --- a/server/routerlicious/packages/lambdas-driver/src/document-router/contextManager.ts +++ b/server/routerlicious/packages/lambdas-driver/src/document-router/contextManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { IContext, IQueuedMessage } from "@fluidframework/server-services-core"; import { DocumentContext } from "./documentContext"; diff --git a/server/routerlicious/packages/lambdas-driver/src/document-router/documentContext.ts b/server/routerlicious/packages/lambdas-driver/src/document-router/documentContext.ts index 88d41be4d835..0cf92c59881a 100644 --- a/server/routerlicious/packages/lambdas-driver/src/document-router/documentContext.ts +++ b/server/routerlicious/packages/lambdas-driver/src/document-router/documentContext.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { IContext, IQueuedMessage, ILogger } from "@fluidframework/server-services-core"; import * as winston from "winston"; diff --git a/server/routerlicious/packages/lambdas-driver/src/kafka-service/checkpointManager.ts b/server/routerlicious/packages/lambdas-driver/src/kafka-service/checkpointManager.ts index 2a92e0f5e1c5..b6743cc7bbfe 100644 --- a/server/routerlicious/packages/lambdas-driver/src/kafka-service/checkpointManager.ts +++ b/server/routerlicious/packages/lambdas-driver/src/kafka-service/checkpointManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { Deferred } from "@fluidframework/common-utils"; import { IConsumer, IQueuedMessage } from "@fluidframework/server-services-core"; diff --git a/server/routerlicious/packages/lambdas/src/deli/lambda.ts b/server/routerlicious/packages/lambdas/src/deli/lambda.ts index e750a8788a16..4063ef181a52 100644 --- a/server/routerlicious/packages/lambdas/src/deli/lambda.ts +++ b/server/routerlicious/packages/lambdas/src/deli/lambda.ts @@ -5,7 +5,7 @@ /* eslint-disable no-null/no-null */ -import { strict as assert } from "assert"; +import assert from "assert"; import { RangeTracker } from "@fluidframework/common-utils"; import { isSystemType } from "@fluidframework/protocol-base"; import { diff --git a/server/routerlicious/packages/lambdas/src/scribe/lambda.ts b/server/routerlicious/packages/lambdas/src/scribe/lambda.ts index 36eceeae116f..23126066c038 100644 --- a/server/routerlicious/packages/lambdas/src/scribe/lambda.ts +++ b/server/routerlicious/packages/lambdas/src/scribe/lambda.ts @@ -5,7 +5,7 @@ /* eslint-disable no-null/no-null */ -import { strict as assert } from "assert"; +import assert from "assert"; import { ProtocolOpHandler } from "@fluidframework/protocol-base"; import { IDocumentMessage, diff --git a/server/routerlicious/packages/memory-orderer/src/localNode.ts b/server/routerlicious/packages/memory-orderer/src/localNode.ts index a6489a1c6106..6943bfb85bd4 100644 --- a/server/routerlicious/packages/memory-orderer/src/localNode.ts +++ b/server/routerlicious/packages/memory-orderer/src/localNode.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { IDocumentMessage, IServiceConfiguration } from "@fluidframework/protocol-definitions"; import { diff --git a/server/routerlicious/packages/memory-orderer/src/localOrderManager.ts b/server/routerlicious/packages/memory-orderer/src/localOrderManager.ts index 5b15f7d0797b..c68bef67edd9 100644 --- a/server/routerlicious/packages/memory-orderer/src/localOrderManager.ts +++ b/server/routerlicious/packages/memory-orderer/src/localOrderManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IOrderer } from "@fluidframework/server-services-core"; import { IConcreteNode, IConcreteNodeFactory, IReservationManager } from "./interfaces"; diff --git a/server/routerlicious/packages/memory-orderer/src/nodeManager.ts b/server/routerlicious/packages/memory-orderer/src/nodeManager.ts index 8147ea64e7b0..d2f770d643b0 100644 --- a/server/routerlicious/packages/memory-orderer/src/nodeManager.ts +++ b/server/routerlicious/packages/memory-orderer/src/nodeManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { MongoManager } from "@fluidframework/server-services-core"; import { IConcreteNode } from "./interfaces"; diff --git a/server/routerlicious/packages/memory-orderer/src/pubsub.ts b/server/routerlicious/packages/memory-orderer/src/pubsub.ts index 9a429af08cb3..8e979f915372 100644 --- a/server/routerlicious/packages/memory-orderer/src/pubsub.ts +++ b/server/routerlicious/packages/memory-orderer/src/pubsub.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { IWebSocket } from "@fluidframework/server-services-core"; export interface ISubscriber { diff --git a/server/routerlicious/packages/memory-orderer/src/remoteNode.ts b/server/routerlicious/packages/memory-orderer/src/remoteNode.ts index d9dccb987b31..d6b3d0293515 100644 --- a/server/routerlicious/packages/memory-orderer/src/remoteNode.ts +++ b/server/routerlicious/packages/memory-orderer/src/remoteNode.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { EventEmitter } from "events"; import { Deferred } from "@fluidframework/common-utils"; import { IClient, IDocumentMessage, IServiceConfiguration } from "@fluidframework/protocol-definitions"; diff --git a/server/routerlicious/packages/protocol-base/src/quorum.ts b/server/routerlicious/packages/protocol-base/src/quorum.ts index 98d3fb6e78f1..1fe021a1f6ac 100644 --- a/server/routerlicious/packages/protocol-base/src/quorum.ts +++ b/server/routerlicious/packages/protocol-base/src/quorum.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; // eslint-disable-next-line import/no-internal-modules import cloneDeep from "lodash/cloneDeep"; diff --git a/server/routerlicious/packages/services-client/src/gitManager.ts b/server/routerlicious/packages/services-client/src/gitManager.ts index c25e32805552..814865dbeead 100644 --- a/server/routerlicious/packages/services-client/src/gitManager.ts +++ b/server/routerlicious/packages/services-client/src/gitManager.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import * as resources from "@fluidframework/gitresources"; import { buildHierarchy } from "@fluidframework/protocol-base"; import * as api from "@fluidframework/protocol-definitions"; diff --git a/tools/build-tools/src/buildVersion/buildVersionTests.ts b/tools/build-tools/src/buildVersion/buildVersionTests.ts index f3a617f6b1e7..e0b672bcd285 100644 --- a/tools/build-tools/src/buildVersion/buildVersionTests.ts +++ b/tools/build-tools/src/buildVersion/buildVersionTests.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { getSimpleVersion } from "./buildVersion"; export function test() { diff --git a/tools/build-tools/src/layerCheck/layerGraph.ts b/tools/build-tools/src/layerCheck/layerGraph.ts index d677653603e8..1043cf03f9c5 100644 --- a/tools/build-tools/src/layerCheck/layerGraph.ts +++ b/tools/build-tools/src/layerCheck/layerGraph.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from "assert"; +import assert from "assert"; import { logVerbose } from "../common/logging"; import { Package, Packages } from "../common/npmPackage"; import { EOL as newline } from "os"; diff --git a/tools/bundle-size-tools/src/ADO/AdoArtifactFileProvider.ts b/tools/bundle-size-tools/src/ADO/AdoArtifactFileProvider.ts index f2ede9b22c47..2999039e0c54 100644 --- a/tools/bundle-size-tools/src/ADO/AdoArtifactFileProvider.ts +++ b/tools/bundle-size-tools/src/ADO/AdoArtifactFileProvider.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from 'assert'; +import assert from 'assert'; import { WebApi } from 'azure-devops-node-api'; import { decompressStatsFile, unzipStream } from '../utilities'; import JSZip from 'jszip'; diff --git a/tools/bundle-size-tools/src/ADO/getCommentForBundleDiff.ts b/tools/bundle-size-tools/src/ADO/getCommentForBundleDiff.ts index 9a71697b1cb9..336ccb88cc49 100644 --- a/tools/bundle-size-tools/src/ADO/getCommentForBundleDiff.ts +++ b/tools/bundle-size-tools/src/ADO/getCommentForBundleDiff.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. */ -import { strict as assert } from 'assert'; +import assert from 'assert'; import { BundleComparison, BundleMetric } from '../BundleBuddyTypes'; import { totalSizeMetricName } from './Constants';