@fluidframework/odsp-driver 2.1.0-276985 → 2.1.0-281041
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.
- package/api-extractor/{api-extractor-lint-beta.cjs.json → api-extractor.current.json} +2 -2
- package/api-extractor/api-extractor.legacy.json +1 -1
- package/api-extractor.json +1 -1
- package/api-report/odsp-driver.legacy.public.api.md +9 -0
- package/dist/ReadBufferUtils.d.ts.map +1 -1
- package/dist/ReadBufferUtils.js +1 -0
- package/dist/ReadBufferUtils.js.map +1 -1
- package/dist/WriteBufferUtils.d.ts.map +1 -1
- package/dist/WriteBufferUtils.js +2 -0
- package/dist/WriteBufferUtils.js.map +1 -1
- package/dist/compactSnapshotParser.d.ts.map +1 -1
- package/dist/compactSnapshotParser.js +28 -5
- package/dist/compactSnapshotParser.js.map +1 -1
- package/dist/compactSnapshotWriter.d.ts.map +1 -1
- package/dist/compactSnapshotWriter.js +3 -1
- package/dist/compactSnapshotWriter.js.map +1 -1
- package/dist/createFile.d.ts.map +1 -1
- package/dist/createFile.js +1 -1
- package/dist/createFile.js.map +1 -1
- package/dist/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/dist/createNewContainerOnExistingFile.js +2 -1
- package/dist/createNewContainerOnExistingFile.js.map +1 -1
- package/dist/createNewUtils.d.ts.map +1 -1
- package/dist/createNewUtils.js +2 -0
- package/dist/createNewUtils.js.map +1 -1
- package/dist/epochTracker.d.ts.map +1 -1
- package/dist/epochTracker.js +3 -3
- package/dist/epochTracker.js.map +1 -1
- package/dist/fetchSnapshot.d.ts +1 -1
- package/dist/fetchSnapshot.d.ts.map +1 -1
- package/dist/fetchSnapshot.js +8 -3
- package/dist/fetchSnapshot.js.map +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
- package/dist/localOdspDriver/localOdspDeltaStorageService.js +1 -0
- package/dist/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/dist/odspDelayLoadedDeltaStream.js +2 -0
- package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
- package/dist/odspDeltaStorageService.d.ts.map +1 -1
- package/dist/odspDeltaStorageService.js +4 -1
- package/dist/odspDeltaStorageService.js.map +1 -1
- package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/odspDocumentDeltaConnection.js +2 -0
- package/dist/odspDocumentDeltaConnection.js.map +1 -1
- package/dist/odspDocumentStorageManager.d.ts +1 -0
- package/dist/odspDocumentStorageManager.d.ts.map +1 -1
- package/dist/odspDocumentStorageManager.js +4 -3
- package/dist/odspDocumentStorageManager.js.map +1 -1
- package/dist/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/dist/odspDocumentStorageServiceBase.js +2 -0
- package/dist/odspDocumentStorageServiceBase.js.map +1 -1
- package/dist/odspDriverUrlResolver.d.ts.map +1 -1
- package/dist/odspDriverUrlResolver.js +2 -1
- package/dist/odspDriverUrlResolver.js.map +1 -1
- package/dist/odspSnapshotParser.d.ts.map +1 -1
- package/dist/odspSnapshotParser.js +5 -1
- package/dist/odspSnapshotParser.js.map +1 -1
- package/dist/odspSummaryUploadManager.d.ts.map +1 -1
- package/dist/odspSummaryUploadManager.js +1 -0
- package/dist/odspSummaryUploadManager.js.map +1 -1
- package/dist/odspUrlHelper.d.ts.map +1 -1
- package/dist/odspUrlHelper.js +5 -1
- package/dist/odspUrlHelper.js.map +1 -1
- package/dist/odspUtils.d.ts +3 -2
- package/dist/odspUtils.d.ts.map +1 -1
- package/dist/odspUtils.js +7 -3
- package/dist/odspUtils.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/prefetchLatestSnapshot.d.ts.map +1 -1
- package/dist/prefetchLatestSnapshot.js +2 -2
- package/dist/prefetchLatestSnapshot.js.map +1 -1
- package/dist/public.d.ts +1 -1
- package/dist/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/dist/zipItDataRepresentationUtils.js +9 -0
- package/dist/zipItDataRepresentationUtils.js.map +1 -1
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/ReadBufferUtils.d.ts.map +1 -1
- package/lib/ReadBufferUtils.js +1 -0
- package/lib/ReadBufferUtils.js.map +1 -1
- package/lib/WriteBufferUtils.d.ts.map +1 -1
- package/lib/WriteBufferUtils.js +2 -0
- package/lib/WriteBufferUtils.js.map +1 -1
- package/lib/compactSnapshotParser.d.ts.map +1 -1
- package/lib/compactSnapshotParser.js +28 -5
- package/lib/compactSnapshotParser.js.map +1 -1
- package/lib/compactSnapshotWriter.d.ts.map +1 -1
- package/lib/compactSnapshotWriter.js +3 -1
- package/lib/compactSnapshotWriter.js.map +1 -1
- package/lib/createFile.d.ts.map +1 -1
- package/lib/createFile.js +3 -3
- package/lib/createFile.js.map +1 -1
- package/lib/createNewContainerOnExistingFile.d.ts.map +1 -1
- package/lib/createNewContainerOnExistingFile.js +3 -2
- package/lib/createNewContainerOnExistingFile.js.map +1 -1
- package/lib/createNewUtils.d.ts.map +1 -1
- package/lib/createNewUtils.js +2 -0
- package/lib/createNewUtils.js.map +1 -1
- package/lib/epochTracker.d.ts.map +1 -1
- package/lib/epochTracker.js +4 -4
- package/lib/epochTracker.js.map +1 -1
- package/lib/fetchSnapshot.d.ts +1 -1
- package/lib/fetchSnapshot.d.ts.map +1 -1
- package/lib/fetchSnapshot.js +8 -3
- package/lib/fetchSnapshot.js.map +1 -1
- package/lib/legacy.d.ts +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.d.ts.map +1 -1
- package/lib/localOdspDriver/localOdspDeltaStorageService.js +1 -0
- package/lib/localOdspDriver/localOdspDeltaStorageService.js.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.d.ts.map +1 -1
- package/lib/odspDelayLoadedDeltaStream.js +2 -0
- package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
- package/lib/odspDeltaStorageService.d.ts.map +1 -1
- package/lib/odspDeltaStorageService.js +4 -1
- package/lib/odspDeltaStorageService.js.map +1 -1
- package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/odspDocumentDeltaConnection.js +2 -0
- package/lib/odspDocumentDeltaConnection.js.map +1 -1
- package/lib/odspDocumentStorageManager.d.ts +1 -0
- package/lib/odspDocumentStorageManager.d.ts.map +1 -1
- package/lib/odspDocumentStorageManager.js +5 -4
- package/lib/odspDocumentStorageManager.js.map +1 -1
- package/lib/odspDocumentStorageServiceBase.d.ts.map +1 -1
- package/lib/odspDocumentStorageServiceBase.js +2 -0
- package/lib/odspDocumentStorageServiceBase.js.map +1 -1
- package/lib/odspDriverUrlResolver.d.ts.map +1 -1
- package/lib/odspDriverUrlResolver.js +2 -1
- package/lib/odspDriverUrlResolver.js.map +1 -1
- package/lib/odspSnapshotParser.d.ts.map +1 -1
- package/lib/odspSnapshotParser.js +5 -1
- package/lib/odspSnapshotParser.js.map +1 -1
- package/lib/odspSummaryUploadManager.d.ts.map +1 -1
- package/lib/odspSummaryUploadManager.js +1 -0
- package/lib/odspSummaryUploadManager.js.map +1 -1
- package/lib/odspUrlHelper.d.ts.map +1 -1
- package/lib/odspUrlHelper.js +5 -1
- package/lib/odspUrlHelper.js.map +1 -1
- package/lib/odspUtils.d.ts +3 -2
- package/lib/odspUtils.d.ts.map +1 -1
- package/lib/odspUtils.js +6 -3
- package/lib/odspUtils.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/prefetchLatestSnapshot.d.ts.map +1 -1
- package/lib/prefetchLatestSnapshot.js +3 -3
- package/lib/prefetchLatestSnapshot.js.map +1 -1
- package/lib/public.d.ts +1 -1
- package/lib/zipItDataRepresentationUtils.d.ts.map +1 -1
- package/lib/zipItDataRepresentationUtils.js +9 -0
- package/lib/zipItDataRepresentationUtils.js.map +1 -1
- package/package.json +25 -35
- package/src/ReadBufferUtils.ts +2 -1
- package/src/WriteBufferUtils.ts +4 -2
- package/src/compactSnapshotParser.ts +41 -17
- package/src/compactSnapshotWriter.ts +4 -2
- package/src/createFile.ts +9 -1
- package/src/createNewContainerOnExistingFile.ts +16 -3
- package/src/createNewUtils.ts +4 -2
- package/src/epochTracker.ts +4 -3
- package/src/fetchSnapshot.ts +10 -3
- package/src/localOdspDriver/localOdspDeltaStorageService.ts +2 -1
- package/src/odspDelayLoadedDeltaStream.ts +4 -2
- package/src/odspDeltaStorageService.ts +4 -2
- package/src/odspDocumentDeltaConnection.ts +4 -2
- package/src/odspDocumentStorageManager.ts +18 -3
- package/src/odspDocumentStorageServiceBase.ts +4 -2
- package/src/odspDriverUrlResolver.ts +2 -1
- package/src/odspSnapshotParser.ts +8 -4
- package/src/odspSummaryUploadManager.ts +2 -1
- package/src/odspUrlHelper.ts +8 -4
- package/src/odspUtils.ts +13 -2
- package/src/packageVersion.ts +1 -1
- package/src/prefetchLatestSnapshot.ts +3 -4
- package/src/zipItDataRepresentationUtils.ts +18 -9
- package/tsconfig.json +0 -1
- package/api-extractor/api-extractor-lint-beta.esm.json +0 -5
- package/beta.d.ts +0 -11
- package/dist/beta.d.ts +0 -12
- package/lib/beta.d.ts +0 -12
|
@@ -198,7 +198,8 @@ export abstract class OdspDocumentStorageServiceBase implements IDocumentStorage
|
|
|
198
198
|
// eslint-disable-next-line unicorn/no-null
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
// Non null asserting here because of the length check above
|
|
202
|
+
id = versions[0]!.id;
|
|
202
203
|
}
|
|
203
204
|
|
|
204
205
|
const snapshotTree = await this.readTree(id, scenarioName);
|
|
@@ -257,7 +258,8 @@ export abstract class OdspDocumentStorageServiceBase implements IDocumentStorage
|
|
|
257
258
|
protected combineProtocolAndAppSnapshotTree(snapshotTree: ISnapshotTree): ISnapshotTree {
|
|
258
259
|
// When we upload the container snapshot, we upload appTree in ".app" and protocol tree in ".protocol"
|
|
259
260
|
// So when we request the snapshot we get ".app" as tree and not as commit node as in the case just above.
|
|
260
|
-
|
|
261
|
+
// TODO Why are we non null asserting here?
|
|
262
|
+
const hierarchicalAppTree = snapshotTree.trees[".app"]!;
|
|
261
263
|
const hierarchicalProtocolTree = snapshotTree.trees[".protocol"];
|
|
262
264
|
const summarySnapshotTree: ISnapshotTree = {
|
|
263
265
|
blobs: {
|
|
@@ -262,7 +262,8 @@ export function decodeOdspUrl(url: string): {
|
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
return {
|
|
265
|
-
|
|
265
|
+
// TODO Why are we non null asserting here?
|
|
266
|
+
siteUrl: siteUrl!,
|
|
266
267
|
driveId: decodeURIComponent(driveId),
|
|
267
268
|
itemId: decodeURIComponent(itemId),
|
|
268
269
|
path: decodeURIComponent(path),
|
|
@@ -28,7 +28,8 @@ function buildHierarchy(flatTree: IOdspSnapshotCommit): ISnapshotTree {
|
|
|
28
28
|
const entryPathBase = entry.path.slice(lastIndex + 1);
|
|
29
29
|
|
|
30
30
|
// ODSP snapshots are created breadth-first so we can assume we see tree nodes prior to their contents
|
|
31
|
-
|
|
31
|
+
// TODO Why are we non null asserting here?
|
|
32
|
+
const node = lookup[entryPathDir]!;
|
|
32
33
|
|
|
33
34
|
// Add in either the blob or tree
|
|
34
35
|
if (entry.type === "tree") {
|
|
@@ -69,16 +70,19 @@ export function convertOdspSnapshotToSnapshotTreeAndBlobs(
|
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
|
|
73
|
+
// TODO Why are we non null asserting here?
|
|
74
|
+
const sequenceNumber = odspSnapshot?.trees[0]!.sequenceNumber;
|
|
73
75
|
|
|
74
76
|
const val: ISnapshot = {
|
|
75
77
|
blobContents: blobsWithBufferContent,
|
|
76
78
|
ops: odspSnapshot.ops?.map((op) => op.op) ?? [],
|
|
77
79
|
sequenceNumber,
|
|
78
|
-
|
|
80
|
+
// TODO Why are we non null asserting here?
|
|
81
|
+
snapshotTree: buildHierarchy(odspSnapshot.trees[0]!),
|
|
79
82
|
latestSequenceNumber:
|
|
80
83
|
odspSnapshot.ops && odspSnapshot.ops.length > 0
|
|
81
|
-
?
|
|
84
|
+
? // Non null asserting here because of the length check above
|
|
85
|
+
odspSnapshot.ops[odspSnapshot.ops.length - 1]!.sequenceNumber
|
|
82
86
|
: sequenceNumber,
|
|
83
87
|
snapshotFormatV: 1,
|
|
84
88
|
};
|
|
@@ -180,7 +180,8 @@ export class OdspSummaryUploadManager {
|
|
|
180
180
|
const keys = Object.keys(tree.tree);
|
|
181
181
|
for (const key of keys) {
|
|
182
182
|
assert(!key.includes("/"), "id should not include slashes");
|
|
183
|
-
|
|
183
|
+
// Non null asserting for now, this should be changed to Object.entries
|
|
184
|
+
const summaryObject = tree.tree[key]!;
|
|
184
185
|
|
|
185
186
|
let id: string | undefined;
|
|
186
187
|
let value: OdspSummaryTreeValue | undefined;
|
package/src/odspUrlHelper.ts
CHANGED
|
@@ -110,8 +110,10 @@ export async function getOdspUrlParts(url: URL): Promise<IOdspUrlParts | undefin
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
const
|
|
113
|
+
// TODO Why are we non null asserting here?
|
|
114
|
+
const driveId = joinSessionMatch[3] ?? joinSessionMatch[5]!;
|
|
115
|
+
// TODO Why are we non null asserting here?
|
|
116
|
+
const itemId = joinSessionMatch[4]!;
|
|
115
117
|
|
|
116
118
|
return { siteUrl: `${url.origin}${url.pathname}`, driveId, itemId };
|
|
117
119
|
} else {
|
|
@@ -120,8 +122,10 @@ export async function getOdspUrlParts(url: URL): Promise<IOdspUrlParts | undefin
|
|
|
120
122
|
if (joinSessionMatch === null) {
|
|
121
123
|
return undefined;
|
|
122
124
|
}
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
+
// TODO Why are we non null asserting here?
|
|
126
|
+
const driveId = joinSessionMatch[2]!;
|
|
127
|
+
// TODO Why are we non null asserting here?
|
|
128
|
+
const itemId = joinSessionMatch[3]!;
|
|
125
129
|
|
|
126
130
|
return { siteUrl: `${url.origin}${url.pathname}`, driveId, itemId };
|
|
127
131
|
}
|
package/src/odspUtils.ts
CHANGED
|
@@ -38,8 +38,10 @@ import {
|
|
|
38
38
|
isTokenFromCache,
|
|
39
39
|
snapshotKey,
|
|
40
40
|
tokenFromResponse,
|
|
41
|
+
snapshotWithLoadingGroupIdKey,
|
|
41
42
|
} from "@fluidframework/odsp-driver-definitions/internal";
|
|
42
43
|
import {
|
|
44
|
+
type IConfigProvider,
|
|
43
45
|
type IFluidErrorBase,
|
|
44
46
|
ITelemetryLoggerExt,
|
|
45
47
|
PerformanceEvent,
|
|
@@ -453,9 +455,12 @@ export function toInstrumentedOdspTokenFetcher(
|
|
|
453
455
|
};
|
|
454
456
|
}
|
|
455
457
|
|
|
456
|
-
export function createCacheSnapshotKey(
|
|
458
|
+
export function createCacheSnapshotKey(
|
|
459
|
+
odspResolvedUrl: IOdspResolvedUrl,
|
|
460
|
+
snapshotWithLoadingGroupId: boolean | undefined,
|
|
461
|
+
): ICacheEntry {
|
|
457
462
|
const cacheEntry: ICacheEntry = {
|
|
458
|
-
type: snapshotKey,
|
|
463
|
+
type: snapshotWithLoadingGroupId ? snapshotWithLoadingGroupIdKey : snapshotKey,
|
|
459
464
|
key: odspResolvedUrl.fileVersion ?? "",
|
|
460
465
|
file: {
|
|
461
466
|
resolvedUrl: odspResolvedUrl,
|
|
@@ -465,6 +470,12 @@ export function createCacheSnapshotKey(odspResolvedUrl: IOdspResolvedUrl): ICach
|
|
|
465
470
|
return cacheEntry;
|
|
466
471
|
}
|
|
467
472
|
|
|
473
|
+
export function snapshotWithLoadingGroupIdSupported(
|
|
474
|
+
config: IConfigProvider,
|
|
475
|
+
): boolean | undefined {
|
|
476
|
+
return config.getBoolean("Fluid.Container.UseLoadingGroupIdForSnapshotFetch2");
|
|
477
|
+
}
|
|
478
|
+
|
|
468
479
|
// 80KB is the max body size that we can put in ump post body for server to be able to accept it.
|
|
469
480
|
// Keeping it 78KB to be a little cautious. As per the telemetry 99p is less than 78KB.
|
|
470
481
|
export const maxUmpPostBodySize = 79872;
|
package/src/packageVersion.ts
CHANGED
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
createCacheSnapshotKey,
|
|
36
36
|
createOdspLogger,
|
|
37
37
|
getOdspResolvedUrl,
|
|
38
|
+
snapshotWithLoadingGroupIdSupported,
|
|
38
39
|
toInstrumentedOdspStorageTokenFetcher,
|
|
39
40
|
type TokenFetchOptionsEx,
|
|
40
41
|
} from "./odspUtils.js";
|
|
@@ -76,9 +77,7 @@ export async function prefetchLatestSnapshot(
|
|
|
76
77
|
): Promise<boolean> {
|
|
77
78
|
const mc = createChildMonitoringContext({ logger, namespace: "PrefetchSnapshot" });
|
|
78
79
|
const odspLogger = createOdspLogger(mc.logger);
|
|
79
|
-
const useGroupIdsForSnapshotFetch = mc.config
|
|
80
|
-
"Fluid.Container.UseLoadingGroupIdForSnapshotFetch2",
|
|
81
|
-
);
|
|
80
|
+
const useGroupIdsForSnapshotFetch = snapshotWithLoadingGroupIdSupported(mc.config);
|
|
82
81
|
// For prefetch, we just want to fetch the ungrouped data and want to use the new API if the
|
|
83
82
|
// feature gate is set, so provide an empty array.
|
|
84
83
|
const loadingGroupIds = useGroupIdsForSnapshotFetch ? [] : undefined;
|
|
@@ -113,7 +112,7 @@ export async function prefetchLatestSnapshot(
|
|
|
113
112
|
controller,
|
|
114
113
|
);
|
|
115
114
|
};
|
|
116
|
-
const snapshotKey = createCacheSnapshotKey(odspResolvedUrl);
|
|
115
|
+
const snapshotKey = createCacheSnapshotKey(odspResolvedUrl, useGroupIdsForSnapshotFetch);
|
|
117
116
|
let cacheP: Promise<void> | undefined;
|
|
118
117
|
let snapshotEpoch: string | undefined;
|
|
119
118
|
const putInCache = async (valueWithEpoch: IVersionedValueWithEpoch): Promise<void> => {
|
|
@@ -301,39 +301,46 @@ export class NodeCore {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
public get(index: number): NodeTypes {
|
|
304
|
-
|
|
304
|
+
// TODO Why are we non null asserting here?
|
|
305
|
+
return this.children[index]!;
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
public getString(index: number): string {
|
|
308
|
-
|
|
309
|
+
// TODO Why are we non null asserting here?
|
|
310
|
+
const node = this.children[index]!;
|
|
309
311
|
return getStringInstance(node, "getString should return string");
|
|
310
312
|
}
|
|
311
313
|
|
|
312
314
|
public getMaybeString(index: number): string | undefined {
|
|
313
|
-
|
|
315
|
+
// TODO Why are we non null asserting here?
|
|
316
|
+
const node = this.children[index]!;
|
|
314
317
|
return getMaybeStringInstance(node);
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
public getBlob(index: number): BlobCore {
|
|
318
|
-
|
|
321
|
+
// TODO Why are we non null asserting here?
|
|
322
|
+
const node = this.children[index]!;
|
|
319
323
|
assertBlobCoreInstance(node, "getBlob should return a blob");
|
|
320
324
|
return node;
|
|
321
325
|
}
|
|
322
326
|
|
|
323
327
|
public getNode(index: number): NodeCore {
|
|
324
|
-
|
|
328
|
+
// TODO Why are we non null asserting here?
|
|
329
|
+
const node = this.children[index]!;
|
|
325
330
|
assertNodeCoreInstance(node, "getNode should return a node");
|
|
326
331
|
return node;
|
|
327
332
|
}
|
|
328
333
|
|
|
329
334
|
public getNumber(index: number): number {
|
|
330
|
-
|
|
335
|
+
// TODO Why are we non null asserting here?
|
|
336
|
+
const node = this.children[index]!;
|
|
331
337
|
assertNumberInstance(node, "getNumber should return a number");
|
|
332
338
|
return node;
|
|
333
339
|
}
|
|
334
340
|
|
|
335
341
|
public getBool(index: number): boolean {
|
|
336
|
-
|
|
342
|
+
// TODO Why are we non null asserting here?
|
|
343
|
+
const node = this.children[index]!;
|
|
337
344
|
assertBoolInstance(node, "getBool should return a boolean");
|
|
338
345
|
return node;
|
|
339
346
|
}
|
|
@@ -549,7 +556,8 @@ export class NodeCore {
|
|
|
549
556
|
|
|
550
557
|
for (const el of stringsToResolve) {
|
|
551
558
|
for (let it = el.startPos; it < el.endPos; it++) {
|
|
552
|
-
|
|
559
|
+
// Non null asserting here because we are iterating over startPos
|
|
560
|
+
stringBuffer[length] = input[it]!;
|
|
553
561
|
length++;
|
|
554
562
|
}
|
|
555
563
|
stringBuffer[length] = 0;
|
|
@@ -561,7 +569,8 @@ export class NodeCore {
|
|
|
561
569
|
if (result.length === stringsToResolve.length + 1) {
|
|
562
570
|
// All is good, we expect all the cases to get here
|
|
563
571
|
for (let i = 0; i < stringsToResolve.length; i++) {
|
|
564
|
-
|
|
572
|
+
// Non null asserting here because we are iterating over stringsToResolve
|
|
573
|
+
stringsToResolve[i]!.content = result[i];
|
|
565
574
|
}
|
|
566
575
|
} else {
|
|
567
576
|
// String content has \0 chars!
|
package/tsconfig.json
CHANGED
package/beta.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export * from "./lib/beta.js";
|
package/dist/beta.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {}
|
|
12
|
-
|
package/lib/beta.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluidframework/build-tools.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
export {}
|
|
12
|
-
|