@fluidframework/replay-driver 2.0.0-internal.2.0.4 → 2.0.0-internal.2.1.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/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export * from "./replayController";
6
- export * from "./replayDocumentService";
7
- export * from "./replayDocumentServiceFactory";
8
- export * from "./storageImplementations";
5
+ export { ReadDocumentStorageServiceBase, ReplayController } from "./replayController";
6
+ export { ReplayDocumentService } from "./replayDocumentService";
7
+ export { ReplayDocumentServiceFactory } from "./replayDocumentServiceFactory";
8
+ export { FileSnapshotReader, IFileSnapshot, OpStorage, SnapshotStorage, StaticStorageDocumentService, StaticStorageDocumentServiceFactory, } from "./storageImplementations";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,4BAA4B,EAC5B,mCAAmC,GACnC,MAAM,0BAA0B,CAAC"}
package/dist/index.js CHANGED
@@ -3,19 +3,19 @@
3
3
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
4
  * Licensed under the MIT License.
5
5
  */
6
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
- if (k2 === undefined) k2 = k;
8
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
6
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./replayController"), exports);
18
- __exportStar(require("./replayDocumentService"), exports);
19
- __exportStar(require("./replayDocumentServiceFactory"), exports);
20
- __exportStar(require("./storageImplementations"), exports);
7
+ exports.StaticStorageDocumentServiceFactory = exports.StaticStorageDocumentService = exports.SnapshotStorage = exports.OpStorage = exports.FileSnapshotReader = exports.ReplayDocumentServiceFactory = exports.ReplayDocumentService = exports.ReplayController = exports.ReadDocumentStorageServiceBase = void 0;
8
+ var replayController_1 = require("./replayController");
9
+ Object.defineProperty(exports, "ReadDocumentStorageServiceBase", { enumerable: true, get: function () { return replayController_1.ReadDocumentStorageServiceBase; } });
10
+ Object.defineProperty(exports, "ReplayController", { enumerable: true, get: function () { return replayController_1.ReplayController; } });
11
+ var replayDocumentService_1 = require("./replayDocumentService");
12
+ Object.defineProperty(exports, "ReplayDocumentService", { enumerable: true, get: function () { return replayDocumentService_1.ReplayDocumentService; } });
13
+ var replayDocumentServiceFactory_1 = require("./replayDocumentServiceFactory");
14
+ Object.defineProperty(exports, "ReplayDocumentServiceFactory", { enumerable: true, get: function () { return replayDocumentServiceFactory_1.ReplayDocumentServiceFactory; } });
15
+ var storageImplementations_1 = require("./storageImplementations");
16
+ Object.defineProperty(exports, "FileSnapshotReader", { enumerable: true, get: function () { return storageImplementations_1.FileSnapshotReader; } });
17
+ Object.defineProperty(exports, "OpStorage", { enumerable: true, get: function () { return storageImplementations_1.OpStorage; } });
18
+ Object.defineProperty(exports, "SnapshotStorage", { enumerable: true, get: function () { return storageImplementations_1.SnapshotStorage; } });
19
+ Object.defineProperty(exports, "StaticStorageDocumentService", { enumerable: true, get: function () { return storageImplementations_1.StaticStorageDocumentService; } });
20
+ Object.defineProperty(exports, "StaticStorageDocumentServiceFactory", { enumerable: true, get: function () { return storageImplementations_1.StaticStorageDocumentServiceFactory; } });
21
21
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;AAEH,qDAAmC;AACnC,0DAAwC;AACxC,iEAA+C;AAC/C,2DAAyC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport * from \"./replayController\";\nexport * from \"./replayDocumentService\";\nexport * from \"./replayDocumentServiceFactory\";\nexport * from \"./storageImplementations\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,uDAAsF;AAA7E,kIAAA,8BAA8B,OAAA;AAAE,oHAAA,gBAAgB,OAAA;AACzD,iEAAgE;AAAvD,8HAAA,qBAAqB,OAAA;AAC9B,+EAA8E;AAArE,4IAAA,4BAA4B,OAAA;AACrC,mEAOkC;AANjC,4HAAA,kBAAkB,OAAA;AAElB,mHAAA,SAAS,OAAA;AACT,yHAAA,eAAe,OAAA;AACf,sIAAA,4BAA4B,OAAA;AAC5B,6IAAA,mCAAmC,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { ReadDocumentStorageServiceBase, ReplayController } from \"./replayController\";\nexport { ReplayDocumentService } from \"./replayDocumentService\";\nexport { ReplayDocumentServiceFactory } from \"./replayDocumentServiceFactory\";\nexport {\n\tFileSnapshotReader,\n\tIFileSnapshot,\n\tOpStorage,\n\tSnapshotStorage,\n\tStaticStorageDocumentService,\n\tStaticStorageDocumentServiceFactory,\n} from \"./storageImplementations\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/replay-driver";
8
- export declare const pkgVersion = "2.0.0-internal.2.0.4";
8
+ export declare const pkgVersion = "2.0.0-internal.2.1.1";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/replay-driver";
11
- exports.pkgVersion = "2.0.0-internal.2.0.4";
11
+ exports.pkgVersion = "2.0.0-internal.2.1.1";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,+BAA+B,CAAC;AAC1C,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/replay-driver\";\nexport const pkgVersion = \"2.0.0-internal.2.0.4\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,+BAA+B,CAAC;AAC1C,QAAA,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/replay-driver\";\nexport const pkgVersion = \"2.0.0-internal.2.1.1\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAgB1D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAhBb,MAAM,CACtB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAa3C,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAG5F"}
1
+ {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AAEH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAgB1D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAhBb,MAAM,CACtB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAa3C,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAG5F"}
@@ -12,6 +12,7 @@ const replayDocumentDeltaConnection_1 = require("./replayDocumentDeltaConnection
12
12
  * Delta connection simulates the socket by fetching the ops from delta storage
13
13
  * and emitting them with a pre determined delay
14
14
  */
15
+ // eslint-disable-next-line import/namespace
15
16
  class ReplayDocumentService {
16
17
  constructor(controller, deltaStorage) {
17
18
  this.controller = controller;
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.js","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,yEAAsE;AAEtE,mFAAgF;AAEhF;;;;GAIG;AACH,MAAa,qBAAqB;IAe9B,YACqB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IAC/D,CAAC;IAjBM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtB,eAAqC,EACrC,UAA4B;QAC5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YAChB,OAAO,eAAe,CAAC;SAC1B;QAED,MAAM,eAAe,GAAG,6DAA6B,CAAC,MAAM,CACxD,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CAAC,CAAC;QAChB,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAClE,CAAC;IAOM,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QAClB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QAC9B,OAAO,IAAI,mDAAwB,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAC7C,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ;AApDD,sDAoDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n */\nexport class ReplayDocumentService implements api.IDocumentService {\n public static async create(\n documentService: api.IDocumentService,\n controller: ReplayController): Promise<api.IDocumentService> {\n const useController = await controller.initStorage(documentService);\n if (!useController) {\n return documentService;\n }\n\n const deltaConnection = ReplayDocumentDeltaConnection.create(\n await documentService.connectToDeltaStorage(),\n controller);\n return new ReplayDocumentService(controller, deltaConnection);\n }\n\n constructor(\n private readonly controller: api.IDocumentStorageService,\n private readonly deltaStorage: api.IDocumentDeltaConnection) {\n }\n\n public dispose() {}\n\n // TODO: Issue-2109 Implement detach container api or put appropriate comment.\n public get resolvedUrl(): api.IResolvedUrl {\n throw new Error(\"Not implemented\");\n }\n\n /**\n * Connects to a storage endpoint for snapshot service and blobs.\n * @returns returns the dummy document storage service for replay driver.\n */\n public async connectToStorage(): Promise<api.IDocumentStorageService> {\n return this.controller;\n }\n\n /**\n * Connects to a delta storage endpoint for getting ops between a range.\n * @returns returns the dummy document delta storage service for replay driver.\n */\n public async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n return new EmptyDeltaStorageService();\n }\n\n /**\n * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n * them so as to mimic a delta stream endpoint.\n * @param client - Client that connects to socket.\n * @returns returns the delta stream service which replay ops from --from to --to arguments.\n */\n public async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n return this.deltaStorage;\n }\n}\n"]}
1
+ {"version":3,"file":"replayDocumentService.js","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,yEAAsE;AAEtE,mFAAgF;AAEhF;;;;GAIG;AACH,4CAA4C;AAC5C,MAAa,qBAAqB;IAe9B,YACqB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IAC/D,CAAC;IAjBM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtB,eAAqC,EACrC,UAA4B;QAC5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YAChB,OAAO,eAAe,CAAC;SAC1B;QAED,MAAM,eAAe,GAAG,6DAA6B,CAAC,MAAM,CACxD,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CAAC,CAAC;QAChB,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAClE,CAAC;IAOM,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QAClB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QAC9B,OAAO,IAAI,mDAAwB,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAC7C,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ;AApDD,sDAoDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n */\n// eslint-disable-next-line import/namespace\nexport class ReplayDocumentService implements api.IDocumentService {\n public static async create(\n documentService: api.IDocumentService,\n controller: ReplayController): Promise<api.IDocumentService> {\n const useController = await controller.initStorage(documentService);\n if (!useController) {\n return documentService;\n }\n\n const deltaConnection = ReplayDocumentDeltaConnection.create(\n await documentService.connectToDeltaStorage(),\n controller);\n return new ReplayDocumentService(controller, deltaConnection);\n }\n\n constructor(\n private readonly controller: api.IDocumentStorageService,\n private readonly deltaStorage: api.IDocumentDeltaConnection) {\n }\n\n public dispose() {}\n\n // TODO: Issue-2109 Implement detach container api or put appropriate comment.\n public get resolvedUrl(): api.IResolvedUrl {\n throw new Error(\"Not implemented\");\n }\n\n /**\n * Connects to a storage endpoint for snapshot service and blobs.\n * @returns returns the dummy document storage service for replay driver.\n */\n public async connectToStorage(): Promise<api.IDocumentStorageService> {\n return this.controller;\n }\n\n /**\n * Connects to a delta storage endpoint for getting ops between a range.\n * @returns returns the dummy document delta storage service for replay driver.\n */\n public async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n return new EmptyDeltaStorageService();\n }\n\n /**\n * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n * them so as to mimic a delta stream endpoint.\n * @param client - Client that connects to socket.\n * @returns returns the delta stream service which replay ops from --from to --to arguments.\n */\n public async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n return this.deltaStorage;\n }\n}\n"]}
package/lib/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export * from "./replayController";
6
- export * from "./replayDocumentService";
7
- export * from "./replayDocumentServiceFactory";
8
- export * from "./storageImplementations";
5
+ export { ReadDocumentStorageServiceBase, ReplayController } from "./replayController";
6
+ export { ReplayDocumentService } from "./replayDocumentService";
7
+ export { ReplayDocumentServiceFactory } from "./replayDocumentServiceFactory";
8
+ export { FileSnapshotReader, IFileSnapshot, OpStorage, SnapshotStorage, StaticStorageDocumentService, StaticStorageDocumentServiceFactory, } from "./storageImplementations";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,eAAe,EACf,4BAA4B,EAC5B,mCAAmC,GACnC,MAAM,0BAA0B,CAAC"}
package/lib/index.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- export * from "./replayController";
6
- export * from "./replayDocumentService";
7
- export * from "./replayDocumentServiceFactory";
8
- export * from "./storageImplementations";
5
+ export { ReadDocumentStorageServiceBase, ReplayController } from "./replayController";
6
+ export { ReplayDocumentService } from "./replayDocumentService";
7
+ export { ReplayDocumentServiceFactory } from "./replayDocumentServiceFactory";
8
+ export { FileSnapshotReader, OpStorage, SnapshotStorage, StaticStorageDocumentService, StaticStorageDocumentServiceFactory, } from "./storageImplementations";
9
9
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport * from \"./replayController\";\nexport * from \"./replayDocumentService\";\nexport * from \"./replayDocumentServiceFactory\";\nexport * from \"./storageImplementations\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,8BAA8B,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EACN,kBAAkB,EAElB,SAAS,EACT,eAAe,EACf,4BAA4B,EAC5B,mCAAmC,GACnC,MAAM,0BAA0B,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { ReadDocumentStorageServiceBase, ReplayController } from \"./replayController\";\nexport { ReplayDocumentService } from \"./replayDocumentService\";\nexport { ReplayDocumentServiceFactory } from \"./replayDocumentServiceFactory\";\nexport {\n\tFileSnapshotReader,\n\tIFileSnapshot,\n\tOpStorage,\n\tSnapshotStorage,\n\tStaticStorageDocumentService,\n\tStaticStorageDocumentServiceFactory,\n} from \"./storageImplementations\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/replay-driver";
8
- export declare const pkgVersion = "2.0.0-internal.2.0.4";
8
+ export declare const pkgVersion = "2.0.0-internal.2.1.1";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/replay-driver";
8
- export const pkgVersion = "2.0.0-internal.2.0.4";
8
+ export const pkgVersion = "2.0.0-internal.2.1.1";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,+BAA+B,CAAC;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/replay-driver\";\nexport const pkgVersion = \"2.0.0-internal.2.0.4\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,+BAA+B,CAAC;AACvD,MAAM,CAAC,MAAM,UAAU,GAAG,sBAAsB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/replay-driver\";\nexport const pkgVersion = \"2.0.0-internal.2.1.1\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AACH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAgB1D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAhBb,MAAM,CACtB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAa3C,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAG5F"}
1
+ {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AAEH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAgB1D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAhBb,MAAM,CACtB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAa3C,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGxD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAG5F"}
@@ -9,6 +9,7 @@ import { ReplayDocumentDeltaConnection } from "./replayDocumentDeltaConnection";
9
9
  * Delta connection simulates the socket by fetching the ops from delta storage
10
10
  * and emitting them with a pre determined delay
11
11
  */
12
+ // eslint-disable-next-line import/namespace
12
13
  export class ReplayDocumentService {
13
14
  constructor(controller, deltaStorage) {
14
15
  this.controller = controller;
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.js","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;GAIG;AACH,MAAM,OAAO,qBAAqB;IAe9B,YACqB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IAC/D,CAAC;IAjBM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtB,eAAqC,EACrC,UAA4B;QAC5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YAChB,OAAO,eAAe,CAAC;SAC1B;QAED,MAAM,eAAe,GAAG,6BAA6B,CAAC,MAAM,CACxD,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CAAC,CAAC;QAChB,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAClE,CAAC;IAOM,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QAClB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QAC9B,OAAO,IAAI,wBAAwB,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAC7C,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n */\nexport class ReplayDocumentService implements api.IDocumentService {\n public static async create(\n documentService: api.IDocumentService,\n controller: ReplayController): Promise<api.IDocumentService> {\n const useController = await controller.initStorage(documentService);\n if (!useController) {\n return documentService;\n }\n\n const deltaConnection = ReplayDocumentDeltaConnection.create(\n await documentService.connectToDeltaStorage(),\n controller);\n return new ReplayDocumentService(controller, deltaConnection);\n }\n\n constructor(\n private readonly controller: api.IDocumentStorageService,\n private readonly deltaStorage: api.IDocumentDeltaConnection) {\n }\n\n public dispose() {}\n\n // TODO: Issue-2109 Implement detach container api or put appropriate comment.\n public get resolvedUrl(): api.IResolvedUrl {\n throw new Error(\"Not implemented\");\n }\n\n /**\n * Connects to a storage endpoint for snapshot service and blobs.\n * @returns returns the dummy document storage service for replay driver.\n */\n public async connectToStorage(): Promise<api.IDocumentStorageService> {\n return this.controller;\n }\n\n /**\n * Connects to a delta storage endpoint for getting ops between a range.\n * @returns returns the dummy document delta storage service for replay driver.\n */\n public async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n return new EmptyDeltaStorageService();\n }\n\n /**\n * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n * them so as to mimic a delta stream endpoint.\n * @param client - Client that connects to socket.\n * @returns returns the delta stream service which replay ops from --from to --to arguments.\n */\n public async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n return this.deltaStorage;\n }\n}\n"]}
1
+ {"version":3,"file":"replayDocumentService.js","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAEhF;;;;GAIG;AACH,4CAA4C;AAC5C,MAAM,OAAO,qBAAqB;IAe9B,YACqB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IAC/D,CAAC;IAjBM,MAAM,CAAC,KAAK,CAAC,MAAM,CACtB,eAAqC,EACrC,UAA4B;QAC5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YAChB,OAAO,eAAe,CAAC;SAC1B;QAED,MAAM,eAAe,GAAG,6BAA6B,CAAC,MAAM,CACxD,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CAAC,CAAC;QAChB,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAClE,CAAC;IAOM,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QAClB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACvC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QACzB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QAC9B,OAAO,IAAI,wBAAwB,EAAE,CAAC;IAC1C,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAC7C,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n */\n// eslint-disable-next-line import/namespace\nexport class ReplayDocumentService implements api.IDocumentService {\n public static async create(\n documentService: api.IDocumentService,\n controller: ReplayController): Promise<api.IDocumentService> {\n const useController = await controller.initStorage(documentService);\n if (!useController) {\n return documentService;\n }\n\n const deltaConnection = ReplayDocumentDeltaConnection.create(\n await documentService.connectToDeltaStorage(),\n controller);\n return new ReplayDocumentService(controller, deltaConnection);\n }\n\n constructor(\n private readonly controller: api.IDocumentStorageService,\n private readonly deltaStorage: api.IDocumentDeltaConnection) {\n }\n\n public dispose() {}\n\n // TODO: Issue-2109 Implement detach container api or put appropriate comment.\n public get resolvedUrl(): api.IResolvedUrl {\n throw new Error(\"Not implemented\");\n }\n\n /**\n * Connects to a storage endpoint for snapshot service and blobs.\n * @returns returns the dummy document storage service for replay driver.\n */\n public async connectToStorage(): Promise<api.IDocumentStorageService> {\n return this.controller;\n }\n\n /**\n * Connects to a delta storage endpoint for getting ops between a range.\n * @returns returns the dummy document delta storage service for replay driver.\n */\n public async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n return new EmptyDeltaStorageService();\n }\n\n /**\n * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n * them so as to mimic a delta stream endpoint.\n * @param client - Client that connects to socket.\n * @returns returns the delta stream service which replay ops from --from to --to arguments.\n */\n public async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n return this.deltaStorage;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/replay-driver",
3
- "version": "2.0.0-internal.2.0.4",
3
+ "version": "2.0.0-internal.2.1.1",
4
4
  "description": "Document replay version of Socket.IO implementation",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -29,22 +29,21 @@
29
29
  "lint": "npm run eslint",
30
30
  "lint:fix": "npm run eslint:fix",
31
31
  "tsc": "tsc",
32
- "tsfmt": "tsfmt --verify",
33
- "tsfmt:fix": "tsfmt --replace",
34
32
  "typetests:gen": "fluid-type-validator -g -d ."
35
33
  },
36
34
  "dependencies": {
37
35
  "@fluidframework/common-definitions": "^0.20.1",
38
36
  "@fluidframework/common-utils": "^1.0.0",
39
- "@fluidframework/driver-definitions": ">=2.0.0-internal.2.0.4 <2.0.0-internal.3.0.0",
40
- "@fluidframework/driver-utils": ">=2.0.0-internal.2.0.4 <2.0.0-internal.3.0.0",
37
+ "@fluidframework/driver-definitions": ">=2.0.0-internal.2.1.1 <2.0.0-internal.3.0.0",
38
+ "@fluidframework/driver-utils": ">=2.0.0-internal.2.1.1 <2.0.0-internal.3.0.0",
41
39
  "@fluidframework/protocol-definitions": "^1.1.0",
42
- "@fluidframework/telemetry-utils": ">=2.0.0-internal.2.0.4 <2.0.0-internal.3.0.0"
40
+ "@fluidframework/telemetry-utils": ">=2.0.0-internal.2.1.1 <2.0.0-internal.3.0.0"
43
41
  },
44
42
  "devDependencies": {
45
- "@fluidframework/build-common": "^1.0.0",
46
- "@fluidframework/build-tools": "^0.4.6000",
47
- "@fluidframework/eslint-config-fluid": "^1.0.0",
43
+ "@fluid-tools/build-cli": "^0.5.0",
44
+ "@fluidframework/build-common": "^1.1.0",
45
+ "@fluidframework/build-tools": "^0.5.0",
46
+ "@fluidframework/eslint-config-fluid": "^1.1.0",
48
47
  "@fluidframework/replay-driver-previous": "npm:@fluidframework/replay-driver@2.0.0-internal.2.0.0",
49
48
  "@microsoft/api-extractor": "^7.22.2",
50
49
  "@rushstack/eslint-config": "^2.5.1",
@@ -57,11 +56,10 @@
57
56
  "mocha": "^10.0.0",
58
57
  "nock": "^10.0.1",
59
58
  "rimraf": "^2.6.2",
60
- "typescript": "~4.5.5",
61
- "typescript-formatter": "7.1.0"
59
+ "typescript": "~4.5.5"
62
60
  },
63
61
  "typeValidation": {
64
- "version": "2.0.0-internal.2.0.1",
62
+ "version": "2.0.0-internal.2.1.0",
65
63
  "broken": {}
66
64
  }
67
65
  }
package/src/index.ts CHANGED
@@ -3,7 +3,14 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
 
6
- export * from "./replayController";
7
- export * from "./replayDocumentService";
8
- export * from "./replayDocumentServiceFactory";
9
- export * from "./storageImplementations";
6
+ export { ReadDocumentStorageServiceBase, ReplayController } from "./replayController";
7
+ export { ReplayDocumentService } from "./replayDocumentService";
8
+ export { ReplayDocumentServiceFactory } from "./replayDocumentServiceFactory";
9
+ export {
10
+ FileSnapshotReader,
11
+ IFileSnapshot,
12
+ OpStorage,
13
+ SnapshotStorage,
14
+ StaticStorageDocumentService,
15
+ StaticStorageDocumentServiceFactory,
16
+ } from "./storageImplementations";
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/replay-driver";
9
- export const pkgVersion = "2.0.0-internal.2.0.4";
9
+ export const pkgVersion = "2.0.0-internal.2.1.1";
@@ -14,6 +14,7 @@ import { ReplayDocumentDeltaConnection } from "./replayDocumentDeltaConnection";
14
14
  * Delta connection simulates the socket by fetching the ops from delta storage
15
15
  * and emitting them with a pre determined delay
16
16
  */
17
+ // eslint-disable-next-line import/namespace
17
18
  export class ReplayDocumentService implements api.IDocumentService {
18
19
  public static async create(
19
20
  documentService: api.IDocumentService,