@fluidframework/runtime-utils 0.59.2001 → 0.59.3000-66610

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.
Files changed (42) hide show
  1. package/dist/dataStoreHelpers.d.ts.map +1 -1
  2. package/dist/dataStoreHelpers.js +5 -5
  3. package/dist/dataStoreHelpers.js.map +1 -1
  4. package/dist/objectstoragepartition.js +1 -1
  5. package/dist/objectstoragepartition.js.map +1 -1
  6. package/dist/packageVersion.d.ts +1 -1
  7. package/dist/packageVersion.d.ts.map +1 -1
  8. package/dist/packageVersion.js +1 -1
  9. package/dist/packageVersion.js.map +1 -1
  10. package/dist/requestParser.js.map +1 -1
  11. package/dist/summarizerNode/summarizerNode.d.ts.map +1 -1
  12. package/dist/summarizerNode/summarizerNode.js +27 -27
  13. package/dist/summarizerNode/summarizerNode.js.map +1 -1
  14. package/dist/summarizerNode/summarizerNodeUtils.js +3 -3
  15. package/dist/summarizerNode/summarizerNodeUtils.js.map +1 -1
  16. package/dist/summarizerNode/summarizerNodeWithGc.js +9 -9
  17. package/dist/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  18. package/dist/summaryUtils.d.ts.map +1 -1
  19. package/dist/summaryUtils.js +4 -4
  20. package/dist/summaryUtils.js.map +1 -1
  21. package/lib/dataStoreHelpers.d.ts.map +1 -1
  22. package/lib/dataStoreHelpers.js.map +1 -1
  23. package/lib/packageVersion.d.ts +1 -1
  24. package/lib/packageVersion.d.ts.map +1 -1
  25. package/lib/packageVersion.js +1 -1
  26. package/lib/packageVersion.js.map +1 -1
  27. package/lib/requestParser.js.map +1 -1
  28. package/lib/summarizerNode/summarizerNode.d.ts.map +1 -1
  29. package/lib/summarizerNode/summarizerNode.js.map +1 -1
  30. package/lib/summarizerNode/summarizerNodeUtils.js +1 -1
  31. package/lib/summarizerNode/summarizerNodeUtils.js.map +1 -1
  32. package/lib/summarizerNode/summarizerNodeWithGc.js.map +1 -1
  33. package/lib/summaryUtils.d.ts.map +1 -1
  34. package/lib/summaryUtils.js.map +1 -1
  35. package/package.json +13 -12
  36. package/src/dataStoreHelpers.ts +1 -2
  37. package/src/packageVersion.ts +1 -1
  38. package/src/requestParser.ts +1 -1
  39. package/src/summarizerNode/summarizerNode.ts +2 -2
  40. package/src/summarizerNode/summarizerNodeUtils.ts +13 -13
  41. package/src/summarizerNode/summarizerNodeWithGc.ts +4 -4
  42. package/src/summaryUtils.ts +2 -3
@@ -97,8 +97,7 @@ export type Factory = IFluidDataStoreFactory & Partial<IProvideFluidDataStoreReg
97
97
  export function createDataStoreFactory(
98
98
  type: string,
99
99
  factory: Factory | Promise<Factory>,
100
- ): IFluidDataStoreFactory & IFluidDataStoreRegistry
101
- {
100
+ ): IFluidDataStoreFactory & IFluidDataStoreRegistry {
102
101
  return {
103
102
  type,
104
103
  get IFluidDataStoreFactory() { return this; },
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/runtime-utils";
9
- export const pkgVersion = "0.59.2001";
9
+ export const pkgVersion = "0.59.3000-66610";
@@ -92,7 +92,7 @@ export class RequestParser implements IRequest {
92
92
  }
93
93
  if (startingPathIndex === pathLen && this.url.includes("?")) {
94
94
  return {
95
- url:`/${this.query}`,
95
+ url: `/${this.query}`,
96
96
  headers: this.headers,
97
97
  };
98
98
  }
@@ -64,7 +64,7 @@ export class SummarizerNode implements IRootSummarizerNode {
64
64
  protected readonly pendingSummaries = new Map<string, SummaryNode>();
65
65
  private readonly outstandingOps: ISequencedDocumentMessage[] = [];
66
66
  private wipReferenceSequenceNumber: number | undefined;
67
- private wipLocalPaths: { localPath: EscapedPath, additionalPath?: EscapedPath } | undefined;
67
+ private wipLocalPaths: { localPath: EscapedPath; additionalPath?: EscapedPath; } | undefined;
68
68
  private wipSkipRecursion = false;
69
69
 
70
70
  public startSummary(referenceSequenceNumber: number, summaryLogger: ITelemetryLogger) {
@@ -394,7 +394,7 @@ export class SummarizerNode implements IRootSummarizerNode {
394
394
  public async loadBaseSummary(
395
395
  snapshot: ISnapshotTree,
396
396
  readAndParseBlob: ReadAndParseBlob,
397
- ): Promise<{ baseSummary: ISnapshotTree, outstandingOps: ISequencedDocumentMessage[] }> {
397
+ ): Promise<{ baseSummary: ISnapshotTree; outstandingOps: ISequencedDocumentMessage[]; }> {
398
398
  const decodedSummary = decodeSummary(snapshot, this.defaultLogger);
399
399
  const outstandingOps = await decodedSummary.getOutstandingOps(readAndParseBlob);
400
400
 
@@ -28,14 +28,14 @@ const maxDecodeDepth = 100;
28
28
  * latest summary is updated based on the downloaded snapshot which is also returned.
29
29
  */
30
30
  export type RefreshSummaryResult = {
31
- latestSummaryUpdated: false,
31
+ latestSummaryUpdated: false;
32
32
  } | {
33
- latestSummaryUpdated: true,
34
- wasSummaryTracked: true,
33
+ latestSummaryUpdated: true;
34
+ wasSummaryTracked: true;
35
35
  } | {
36
- latestSummaryUpdated: true,
37
- wasSummaryTracked: false,
38
- snapshot: ISnapshotTree,
36
+ latestSummaryUpdated: true;
37
+ wasSummaryTracked: false;
38
+ snapshot: ISnapshotTree;
39
39
  };
40
40
 
41
41
  export interface ISummarizerNodeRootContract {
@@ -103,10 +103,10 @@ export class SummaryNode {
103
103
  this.summary.additionalPath = additionalPath;
104
104
  }
105
105
  constructor(private readonly summary: {
106
- readonly referenceSequenceNumber: number,
107
- readonly basePath: EscapedPath | undefined,
108
- readonly localPath: EscapedPath,
109
- additionalPath?: EscapedPath,
106
+ readonly referenceSequenceNumber: number;
107
+ readonly basePath: EscapedPath | undefined;
108
+ readonly localPath: EscapedPath;
109
+ additionalPath?: EscapedPath;
110
110
  }) { }
111
111
 
112
112
  /** Gets the full path to this node, to be used when sending a handle */
@@ -186,7 +186,7 @@ export function decodeSummary(
186
186
  const newEarliestSeq = newOutstandingOps[0].sequenceNumber;
187
187
  if (newEarliestSeq <= latestSeq) {
188
188
  logger.sendTelemetryEvent({
189
- eventName:"DuplicateOutstandingOps",
189
+ eventName: "DuplicateOutstandingOps",
190
190
  // eslint-disable-next-line max-len
191
191
  message: `newEarliestSeq <= latestSeq in decodeSummary: ${newEarliestSeq} <= ${latestSeq}`,
192
192
  });
@@ -293,9 +293,9 @@ export interface ICreateChildDetails {
293
293
 
294
294
  export interface ISubtreeInfo<T extends ISnapshotTree | SummaryObject> {
295
295
  /** Tree to use to find children subtrees */
296
- childrenTree: T,
296
+ childrenTree: T;
297
297
  /** Additional path part where children are isolated */
298
- childrenPathPart: string | undefined,
298
+ childrenPathPart: string | undefined;
299
299
  }
300
300
 
301
301
  /**
@@ -35,10 +35,10 @@ class SummaryNodeWithGC extends SummaryNode {
35
35
  constructor(
36
36
  public readonly serializedUsedRoutes: string,
37
37
  summary: {
38
- readonly referenceSequenceNumber: number,
39
- readonly basePath: EscapedPath | undefined,
40
- readonly localPath: EscapedPath,
41
- additionalPath?: EscapedPath,
38
+ readonly referenceSequenceNumber: number;
39
+ readonly basePath: EscapedPath | undefined;
40
+ readonly localPath: EscapedPath;
41
+ additionalPath?: EscapedPath;
42
42
  },
43
43
  ) {
44
44
  super(summary);
@@ -133,7 +133,7 @@ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
133
133
  this.summaryStats.treeNodeCount++;
134
134
  }
135
135
 
136
- private readonly summaryTree: { [path: string]: SummaryObject } = {};
136
+ private readonly summaryTree: { [path: string]: SummaryObject; } = {};
137
137
  private summaryStats: ISummaryStats;
138
138
 
139
139
  public addBlob(key: string, content: string | Uint8Array): void {
@@ -150,8 +150,7 @@ export class SummaryTreeBuilder implements ISummaryTreeWithStats {
150
150
  public addHandle(
151
151
  key: string,
152
152
  handleType: SummaryType.Tree | SummaryType.Blob | SummaryType.Attachment,
153
- handle: string): void
154
- {
153
+ handle: string): void {
155
154
  this.summaryTree[key] = {
156
155
  type: SummaryType.Handle,
157
156
  handleType,