@fluidframework/odsp-driver 0.48.5 → 0.49.1
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/dist/fetchSnapshot.d.ts.map +1 -1
- package/dist/fetchSnapshot.js +3 -2
- package/dist/fetchSnapshot.js.map +1 -1
- package/dist/odspDeltaStorageService.d.ts +7 -0
- package/dist/odspDeltaStorageService.d.ts.map +1 -1
- package/dist/odspDeltaStorageService.js +7 -0
- package/dist/odspDeltaStorageService.js.map +1 -1
- package/dist/odspDocumentDeltaConnection.d.ts +6 -0
- package/dist/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/odspDocumentDeltaConnection.js +18 -5
- package/dist/odspDocumentDeltaConnection.js.map +1 -1
- package/dist/odspDocumentStorageManager.d.ts.map +1 -1
- package/dist/odspDocumentStorageManager.js +19 -6
- package/dist/odspDocumentStorageManager.js.map +1 -1
- package/dist/opsCaching.d.ts +12 -0
- package/dist/opsCaching.d.ts.map +1 -1
- package/dist/opsCaching.js +12 -0
- package/dist/opsCaching.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/lib/fetchSnapshot.d.ts.map +1 -1
- package/lib/fetchSnapshot.js +3 -2
- package/lib/fetchSnapshot.js.map +1 -1
- package/lib/odspDeltaStorageService.d.ts +7 -0
- package/lib/odspDeltaStorageService.d.ts.map +1 -1
- package/lib/odspDeltaStorageService.js +7 -0
- package/lib/odspDeltaStorageService.js.map +1 -1
- package/lib/odspDocumentDeltaConnection.d.ts +6 -0
- package/lib/odspDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/odspDocumentDeltaConnection.js +18 -5
- package/lib/odspDocumentDeltaConnection.js.map +1 -1
- package/lib/odspDocumentStorageManager.d.ts.map +1 -1
- package/lib/odspDocumentStorageManager.js +19 -6
- package/lib/odspDocumentStorageManager.js.map +1 -1
- package/lib/opsCaching.d.ts +12 -0
- package/lib/opsCaching.d.ts.map +1 -1
- package/lib/opsCaching.js +12 -0
- package/lib/opsCaching.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/package.json +11 -11
- package/src/fetchSnapshot.ts +3 -2
- package/src/odspDeltaStorageService.ts +8 -1
- package/src/odspDocumentDeltaConnection.ts +20 -6
- package/src/odspDocumentStorageManager.ts +19 -7
- package/src/opsCaching.ts +13 -1
- package/src/packageVersion.ts +1 -1
package/src/opsCaching.ts
CHANGED
|
@@ -117,7 +117,13 @@ export class OpsCache {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Retrieves ops from cache
|
|
122
|
+
* @param from - inclusive
|
|
123
|
+
* @param to - exclusive
|
|
124
|
+
* @returns ops retrieved
|
|
125
|
+
*/
|
|
126
|
+
private async getCore(from: number, to?: number): Promise<IMessage[]> {
|
|
121
127
|
const messages: IMessage[] = [];
|
|
122
128
|
let batchNumber = this.getBatchNumber(from);
|
|
123
129
|
// eslint-disable-next-line no-constant-condition
|
|
@@ -150,6 +156,12 @@ export class OpsCache {
|
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
158
|
|
|
159
|
+
/**
|
|
160
|
+
* Retrieves ops from cache
|
|
161
|
+
* @param from - inclusive
|
|
162
|
+
* @param to - exclusive
|
|
163
|
+
* @returns ops retrieved
|
|
164
|
+
*/
|
|
153
165
|
public async get(from: number, to?: number): Promise<IMessage[]> {
|
|
154
166
|
const start = performance.now();
|
|
155
167
|
|
package/src/packageVersion.ts
CHANGED