@fluid-tools/fetch-tool 2.0.0-rc.4.0.6 → 2.0.0-rc.5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,13 +6,13 @@
6
6
  import fs from "fs";
7
7
 
8
8
  import { assert } from "@fluidframework/core-utils/internal";
9
- import { IDocumentService } from "@fluidframework/driver-definitions/internal";
9
+ import { IClient } from "@fluidframework/driver-definitions";
10
10
  import {
11
- IClient,
12
- ISequencedDocumentMessage,
11
+ IDocumentService,
13
12
  MessageType,
14
13
  ScopeType,
15
- } from "@fluidframework/protocol-definitions";
14
+ ISequencedDocumentMessage,
15
+ } from "@fluidframework/driver-definitions/internal";
16
16
 
17
17
  import { printMessageStats } from "./fluidAnalyzeMessages.js";
18
18
  import {
@@ -268,7 +268,10 @@ async function* saveOps(
268
268
  }
269
269
  }
270
270
 
271
- export async function fluidFetchMessages(documentService?: IDocumentService, saveDir?: string) {
271
+ export async function fluidFetchMessages(
272
+ documentService?: IDocumentService,
273
+ saveDir?: string,
274
+ ) {
272
275
  const messageStats = dumpMessageStats || dumpMessages;
273
276
  if (!messageStats && (saveDir === undefined || documentService === undefined)) {
274
277
  return;
@@ -10,8 +10,9 @@ import { bufferToString, stringToBuffer } from "@fluid-internal/client-utils";
10
10
  import {
11
11
  IDocumentService,
12
12
  IDocumentStorageService,
13
+ ISnapshotTree,
14
+ IVersion,
13
15
  } from "@fluidframework/driver-definitions/internal";
14
- import { ISnapshotTree, IVersion } from "@fluidframework/protocol-definitions";
15
16
 
16
17
  import { formatNumber } from "./fluidAnalyzeMessages.js";
17
18
  import {
@@ -184,11 +185,16 @@ async function dumpSnapshotTreeVerbose(name: string, fetchedData: IFetchedData[]
184
185
 
185
186
  console.log("-".repeat(nameLength + 26));
186
187
  console.log(
187
- `${"Total snapshot size".padEnd(nameLength)} | | ${formatNumber(size).padStart(10)}`,
188
+ `${"Total snapshot size".padEnd(nameLength)} | | ${formatNumber(size).padStart(
189
+ 10,
190
+ )}`,
188
191
  );
189
192
  }
190
193
 
191
- async function dumpSnapshotTree(name: string, fetchedData: IFetchedData[]): Promise<ISnapshotInfo> {
194
+ async function dumpSnapshotTree(
195
+ name: string,
196
+ fetchedData: IFetchedData[],
197
+ ): Promise<ISnapshotInfo> {
192
198
  let size = 0;
193
199
  let sizeNew = 0;
194
200
  let blobCountNew = 0;
@@ -271,7 +277,10 @@ async function reportErrors<T>(message: string, res: Promise<T>) {
271
277
  }
272
278
  }
273
279
 
274
- export async function fluidFetchSnapshot(documentService?: IDocumentService, saveDir?: string) {
280
+ export async function fluidFetchSnapshot(
281
+ documentService?: IDocumentService,
282
+ saveDir?: string,
283
+ ) {
275
284
  if (
276
285
  !dumpSnapshotStats &&
277
286
  !dumpSnapshotTrees &&
package/tsconfig.json CHANGED
@@ -6,5 +6,7 @@
6
6
  "rootDir": "./src",
7
7
  "outDir": "./lib",
8
8
  "types": ["node"],
9
+ "noUncheckedIndexedAccess": false,
10
+ "exactOptionalPropertyTypes": false,
9
11
  },
10
12
  }