@fluidframework/local-driver 0.59.2000-61729 → 0.59.2001
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/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentService.js +2 -1
- package/dist/localDocumentService.js.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.js +2 -2
- package/dist/localDocumentServiceFactory.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/package.json +19 -16
- package/src/localDocumentService.ts +6 -2
- package/src/localDocumentServiceFactory.ts +2 -0
- package/src/packageVersion.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentService.d.ts","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,KAAK,aAAa,MAAM,sCAAsC,CAAC;AAGtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,OAAO,EAA4B,4BAA4B,EAAE,MAAM,GAAG,CAAC;AAE3E;;GAEG;AACH,qBAAa,oBAAqB,YAAW,GAAG,CAAC,gBAAgB;aAQzC,WAAW,EAAE,GAAG,CAAC,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,0BAA0B;IAC3C,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,2BAA2B;aAC5B,QAAQ,EAAE,GAAG,CAAC,wBAAwB;IACtD,OAAO,CAAC,QAAQ,CAAC,oBA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aAAa,CAAC,cAAc,EAC3C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,EACvE,QAAQ,GAAE,GAAG,CAAC,wBAA6B,EAC1C,oBAAoB,CAAC,kCAAsB;IAGzD,OAAO;IAEd;;OAEG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAYrE;;OAEG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAU/E;;;OAGG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CA8B5F;AAED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACtC,WAAW,EAAE,GAAG,CAAC,YAAY,EAC7B,0BAA0B,EAAE,2BAA2B,EACvD,aAAa,EAAE,aAAa,CAAC,cAAc,EAC3C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,EACtE,QAAQ,CAAC,EAAE,GAAG,CAAC,wBAAwB,EACvC,oBAAoB,CAAC,EAAE,GAAG,CAAC,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAWrE"}
|
|
@@ -54,7 +54,8 @@ class LocalDocumentService {
|
|
|
54
54
|
* Creates and returns a document storage service for local use.
|
|
55
55
|
*/
|
|
56
56
|
async connectToStorage() {
|
|
57
|
-
return new socketStorage.DocumentStorageService(this.documentId, new server_services_client_1.GitManager(new server_test_utils_1.TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)), new common_utils_1.TelemetryNullLogger(), { minBlobSize: 2048 }
|
|
57
|
+
return new socketStorage.DocumentStorageService(this.documentId, new server_services_client_1.GitManager(new server_test_utils_1.TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)), new common_utils_1.TelemetryNullLogger(), { minBlobSize: 2048 }, // Test blob aggregation.
|
|
58
|
+
undefined, undefined, undefined, new server_services_client_1.GitManager(new server_test_utils_1.TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)));
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* Creates and returns a delta storage service for local use.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentService.js","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;AAIH,oFAAsE;AACtE,mFAAoE;AACpE,yEAAkE;AAElE,+DAAmE;AACnE,wBAA2E;AAE3E;;GAEG;AACH,MAAa,oBAAoB;IAC7B;;;;;OAKG;IACH,YACoB,WAA6B,EAC5B,0BAAuD,EACvD,aAA2C,EAC3C,QAAgB,EAChB,UAAkB,EAClB,2BAAsE,EACvE,WAAyC,EAAE,EAC1C,oBAA2C;QAP5C,gBAAW,GAAX,WAAW,CAAkB;QAC5B,+BAA0B,GAA1B,0BAA0B,CAA6B;QACvD,kBAAa,GAAb,aAAa,CAA8B;QAC3C,aAAQ,GAAR,QAAQ,CAAQ;QAChB,eAAU,GAAV,UAAU,CAAQ;QAClB,gCAA2B,GAA3B,2BAA2B,CAA2C;QACvE,aAAQ,GAAR,QAAQ,CAAmC;QAC1C,yBAAoB,GAApB,oBAAoB,CAAuB;IAC5D,CAAC;IAEE,OAAO,
|
|
1
|
+
{"version":3,"file":"localDocumentService.js","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;AAIH,oFAAsE;AACtE,mFAAoE;AACpE,yEAAkE;AAElE,+DAAmE;AACnE,wBAA2E;AAE3E;;GAEG;AACH,MAAa,oBAAoB;IAC7B;;;;;OAKG;IACH,YACoB,WAA6B,EAC5B,0BAAuD,EACvD,aAA2C,EAC3C,QAAgB,EAChB,UAAkB,EAClB,2BAAsE,EACvE,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E;QACD,IAAI,IAAI,CAAC,oBAAoB,EAAE;YAC3B,OAAO,IAAI,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC;SACjE;QACD,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAC3D,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,CAClB,CAAC;QACF,MAAM,uBAAuB,GAAG,MAAM,+BAA4B,CAAC,MAAM,CACrE,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,EACf,YAAY,CAAC,GAAG,EAChB,MAAM,EACN,IAAI,CAAC,0BAA0B,CAAC,eAAe,CAClD,CAAC;QACF,MAAM,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC;QAElD,8EAA8E;QAC9E,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;QAExE,kFAAkF;QAClF,uBAAuB,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE;YAC1C,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;IACnC,CAAC;CACJ;AAlFD,oDAkFC;AAED;;;;;;GAMG;AACH,SAAgB,0BAA0B,CACtC,WAA6B,EAC7B,0BAAuD,EACvD,aAA2C,EAC3C,QAAgB,EAChB,UAAkB,EAClB,2BAAsE,EACtE,QAAuC,EACvC,oBAA2C;IAC3C,OAAO,IAAI,oBAAoB,CAC3B,WAAW,EACX,0BAA0B,EAC1B,aAAa,EACb,QAAQ,EACR,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,oBAAoB,CACvB,CAAC;AACN,CAAC;AAnBD,gEAmBC","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 * as socketStorage from \"@fluidframework/routerlicious-driver\";\nimport { GitManager } from \"@fluidframework/server-services-client\";\nimport { TestHistorian } from \"@fluidframework/server-test-utils\";\nimport { ILocalDeltaConnectionServer } from \"@fluidframework/server-local-server\";\nimport { TelemetryNullLogger } from \"@fluidframework/common-utils\";\nimport { LocalDeltaStorageService, LocalDocumentDeltaConnection } from \".\";\n\n/**\n * Basic implementation of a document service for local use.\n */\nexport class LocalDocumentService implements api.IDocumentService {\n /**\n * @param localDeltaConnectionServer - delta connection server for ops\n * @param tokenProvider - token provider\n * @param tenantId - ID of tenant\n * @param documentId - ID of document\n */\n constructor(\n public readonly resolvedUrl: api.IResolvedUrl,\n private readonly localDeltaConnectionServer: ILocalDeltaConnectionServer,\n private readonly tokenProvider: socketStorage.ITokenProvider,\n private readonly tenantId: string,\n private readonly documentId: string,\n private readonly documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>,\n public readonly policies: api.IDocumentServicePolicies = {},\n private readonly innerDocumentService?: api.IDocumentService,\n ) { }\n\n public dispose() { }\n\n /**\n * Creates and returns a document storage service for local use.\n */\n public async connectToStorage(): Promise<api.IDocumentStorageService> {\n return new socketStorage.DocumentStorageService(\n this.documentId,\n new GitManager(new TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)),\n new TelemetryNullLogger(),\n { minBlobSize: 2048 }, // Test blob aggregation.\n undefined,\n undefined,\n undefined,\n new GitManager(new TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)));\n }\n\n /**\n * Creates and returns a delta storage service for local use.\n */\n public async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n if (this.innerDocumentService) {\n return this.innerDocumentService.connectToDeltaStorage();\n }\n return new LocalDeltaStorageService(\n this.tenantId,\n this.documentId,\n this.localDeltaConnectionServer.databaseManager);\n }\n\n /**\n * Creates and returns a delta stream for local use.\n * @param client - client data\n */\n public async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n if (this.policies.storageOnly === true) {\n throw new Error(\"can't connect to delta stream in storage-only mode\");\n }\n if (this.innerDocumentService) {\n return this.innerDocumentService.connectToDeltaStream(client);\n }\n const ordererToken = await this.tokenProvider.fetchOrdererToken(\n this.tenantId,\n this.documentId,\n );\n const documentDeltaConnection = await LocalDocumentDeltaConnection.create(\n this.tenantId,\n this.documentId,\n ordererToken.jwt,\n client,\n this.localDeltaConnectionServer.webSocketServer,\n );\n const clientId = documentDeltaConnection.clientId;\n\n // Add this document service for the clientId in the document service factory.\n this.documentDeltaConnectionsMap.set(clientId, documentDeltaConnection);\n\n // Add a listener to remove this document service when the client is disconnected.\n documentDeltaConnection.on(\"disconnect\", () => {\n this.documentDeltaConnectionsMap.delete(clientId);\n });\n\n return documentDeltaConnection;\n }\n}\n\n/**\n * Creates and returns a document service for local use.\n * @param localDeltaConnectionServer - delta connection server for ops\n * @param tokenProvider - token provider with a single token\n * @param tenantId - ID of tenant\n * @param documentId - ID of document\n */\nexport function createLocalDocumentService(\n resolvedUrl: api.IResolvedUrl,\n localDeltaConnectionServer: ILocalDeltaConnectionServer,\n tokenProvider: socketStorage.ITokenProvider,\n tenantId: string,\n documentId: string,\n documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>,\n policies?: api.IDocumentServicePolicies,\n innerDocumentService?: api.IDocumentService): api.IDocumentService {\n return new LocalDocumentService(\n resolvedUrl,\n localDeltaConnectionServer,\n tokenProvider,\n tenantId,\n documentId,\n documentDeltaConnectionsMap,\n policies,\n innerDocumentService,\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/localDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACH,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,EACxB,YAAY,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oC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X1C,SAAgB,YAAY,iBAAiB;IAG7C,OAAO,CAAC,QAAQ,CAAC,2BAA2B,CAAwD;IAEpG;;OAEG;gBAEkB,0BAA0B,EAAE,2BAA2B,EACvD,QAAQ,CAAC,sCAA0B,EACnC,oBAAoB,CAAC,8BAAkB;IAE/C,eAAe,CACxB,gBAAgB,EAAE,YAAY,GAAG,SAAS,EAC1C,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,gBAAgB,CAAC;IAkC5B;;;;OAIG;IACU,qBAAqB,CAC9B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC7B,OAAO,CAAC,gBAAgB,CAAC;IA4B5B;;;;OAIG;IACI,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAQlE;;;;;;OAMG;IACI,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,EAAE,GAAG;CAOzF"}
|
|
@@ -27,7 +27,7 @@ class LocalDocumentServiceFactory {
|
|
|
27
27
|
this.documentDeltaConnectionsMap = new Map();
|
|
28
28
|
}
|
|
29
29
|
async createContainer(createNewSummary, resolvedUrl, logger, clientIsSummarizer) {
|
|
30
|
-
var _a;
|
|
30
|
+
var _a, _b, _c;
|
|
31
31
|
driver_utils_1.ensureFluidResolvedUrl(resolvedUrl);
|
|
32
32
|
common_utils_1.assert(!!createNewSummary, 0x202 /* "create empty file not supported" */);
|
|
33
33
|
const pathName = new URL(resolvedUrl.url).pathname;
|
|
@@ -46,7 +46,7 @@ class LocalDocumentServiceFactory {
|
|
|
46
46
|
const documentAttributes = driver_utils_1.getDocAttributesFromProtocolSummary(protocolSummary);
|
|
47
47
|
const quorumValues = driver_utils_1.getQuorumValuesFromProtocolSummary(protocolSummary);
|
|
48
48
|
const sequenceNumber = documentAttributes.sequenceNumber;
|
|
49
|
-
await documentStorage.createDocument(tenantId, id, appSummary, sequenceNumber, (_a = documentAttributes.term) !== null && _a !== void 0 ? _a : 1, server_services_client_1.defaultHash, quorumValues);
|
|
49
|
+
await documentStorage.createDocument(tenantId, id, appSummary, sequenceNumber, (_a = documentAttributes.term) !== null && _a !== void 0 ? _a : 1, server_services_client_1.defaultHash, (_b = resolvedUrl.endpoints.ordererUrl) !== null && _b !== void 0 ? _b : "", (_c = resolvedUrl.endpoints.storageUrl) !== null && _c !== void 0 ? _c : "", quorumValues);
|
|
50
50
|
return this.createDocumentService(resolvedUrl, logger, clientIsSummarizer);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentServiceFactory.js","sourceRoot":"","sources":["../src/localDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,6BAA4B;AAC5B,+DAAsD;AAQtD,+EAA4E;AAE5E,+DAIsC;AAEtC,mFAAqE;AAErE,iEAAoE;AAEpE;;GAEG;AACH,MAAa,2BAA2B;IAMpC;;OAEG;IACH,YACqB,0BAAuD,EACvD,QAAmC,EACnC,oBAAuC;QAFvC,+BAA0B,GAA1B,0BAA0B,CAA6B;QACvD,aAAQ,GAAR,QAAQ,CAA2B;QACnC,yBAAoB,GAApB,oBAAoB,CAAmB;QAX5C,iBAAY,GAAG,aAAa,CAAC;QAE7C,6CAA6C;QAC5B,gCAA2B,GAA8C,IAAI,GAAG,EAAE,CAAC;IAQpC,CAAC;IAE1D,KAAK,CAAC,eAAe,CACxB,gBAA0C,EAC1C,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;;QAE5B,qCAAsB,CAAC,WAAW,CAAC,CAAC;QACpC,qBAAM,CAAC,CAAC,CAAC,gBAAgB,EAAE,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC1E,MAA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AQ,CAAC,CAAC;QAEzD,OAAO,iDAA0B,CAC7B,WAAW,EACX,IAAI,CAAC,0BAA0B,EAC/B,aAAa,EACb,QAAQ,EACR,UAAU,EACV,IAAI,CAAC,2BAA2B,EAChC,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACI,gBAAgB,CAAC,QAAgB,EAAE,gBAAwB;QAC9D,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YACjD,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,EAAE,CAAC,CAAC;SACzD;QACD,oEAAoE;QACpE,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;OAMG;IACI,UAAU,CAAC,QAAgB,EAAE,IAAa,EAAE,IAAoB,EAAE,OAAa;QAClF,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE;YACjD,MAAM,IAAI,KAAK,CAAC,0BAA0B,QAAQ,EAAE,CAAC,CAAC;SACzD;QACD,oEAAoE;QACpE,IAAI,CAAC,2BAA2B,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACJ;AArHD,kEAqHC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { parse } from \"url\";\nimport { assert } from \"@fluidframework/common-utils\";\nimport {\n IDocumentService,\n IDocumentServiceFactory,\n IDocumentServicePolicies,\n IResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/common-definitions\";\nimport { DefaultTokenProvider } from \"@fluidframework/routerlicious-driver\";\nimport { ILocalDeltaConnectionServer, LocalDeltaConnectionServer } from \"@fluidframework/server-local-server\";\nimport {\n ensureFluidResolvedUrl,\n getDocAttributesFromProtocolSummary,\n getQuorumValuesFromProtocolSummary,\n} from \"@fluidframework/driver-utils\";\nimport { ISummaryTree, NackErrorType } from \"@fluidframework/protocol-definitions\";\nimport { defaultHash } from \"@fluidframework/server-services-client\";\nimport { LocalDocumentDeltaConnection } from \"./localDocumentDeltaConnection\";\nimport { createLocalDocumentService } from \"./localDocumentService\";\n\n/**\n * Implementation of document service factory for local use.\n */\nexport class LocalDocumentServiceFactory implements IDocumentServiceFactory {\n public readonly protocolName = \"fluid-test:\";\n\n // A map of clientId to LocalDocumentService.\n private readonly documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection> = new Map();\n\n /**\n * @param localDeltaConnectionServer - delta connection server for ops\n */\n constructor(\n private readonly localDeltaConnectionServer: ILocalDeltaConnectionServer,\n private readonly policies?: IDocumentServicePolicies,\n private readonly innerDocumentService?: IDocumentService) { }\n\n public async createContainer(\n createNewSummary: ISummaryTree | undefined,\n resolvedUrl: IResolvedUrl,\n logger?: ITelemetryBaseLogger,\n clientIsSummarizer?: boolean,\n ): Promise<IDocumentService> {\n ensureFluidResolvedUrl(resolvedUrl);\n assert(!!createNewSummary, 0x202 /* \"create empty file not supported\" */);\n const pathName = new URL(resolvedUrl.url).pathname;\n const pathArr = pathName.split(\"/\");\n const tenantId = pathArr[pathArr.length - 2];\n const id = pathArr[pathArr.length - 1];\n if (!this.localDeltaConnectionServer) {\n throw new Error(\"Provide the localDeltaConnectionServer!!\");\n }\n const documentStorage = (this.localDeltaConnectionServer as LocalDeltaConnectionServer).documentStorage;\n\n const protocolSummary = createNewSummary.tree[\".protocol\"] as ISummaryTree;\n const appSummary = createNewSummary.tree[\".app\"] as ISummaryTree;\n if (!(protocolSummary && appSummary)) {\n throw new Error(\"Protocol and App Summary required in the full summary\");\n }\n const documentAttributes = getDocAttributesFromProtocolSummary(protocolSummary);\n const quorumValues = getQuorumValuesFromProtocolSummary(protocolSummary);\n const sequenceNumber = documentAttributes.sequenceNumber;\n await documentStorage.createDocument(\n tenantId,\n id,\n appSummary,\n sequenceNumber,\n documentAttributes.term ?? 1,\n defaultHash,\n resolvedUrl.endpoints.ordererUrl ?? \"\",\n resolvedUrl.endpoints.storageUrl ?? \"\",\n quorumValues,\n );\n return this.createDocumentService(resolvedUrl, logger, clientIsSummarizer);\n }\n\n /**\n * Creates and returns a document service for testing using the given resolved\n * URL for the tenant ID, document ID, and token.\n * @param resolvedUrl - resolved URL of document\n */\n public async createDocumentService(\n resolvedUrl: IResolvedUrl,\n logger?: ITelemetryBaseLogger,\n clientIsSummarizer?: boolean,\n ): Promise<IDocumentService> {\n ensureFluidResolvedUrl(resolvedUrl);\n\n const parsedUrl = parse(resolvedUrl.url);\n const [, tenantId, documentId] = parsedUrl.path ? parsedUrl.path.split(\"/\") : [];\n if (!documentId || !tenantId) {\n throw new Error(`Couldn't parse resolved url. [documentId:${documentId}][tenantId:${tenantId}]`);\n }\n\n const fluidResolvedUrl = resolvedUrl;\n const jwtToken = fluidResolvedUrl.tokens.jwt;\n if (!jwtToken) {\n throw new Error(`Token was not provided.`);\n }\n\n const tokenProvider = new DefaultTokenProvider(jwtToken);\n\n return createLocalDocumentService(\n resolvedUrl,\n this.localDeltaConnectionServer,\n tokenProvider,\n tenantId,\n documentId,\n this.documentDeltaConnectionsMap,\n this.policies,\n this.innerDocumentService);\n }\n\n /**\n * Gets the document delta connection for the clientId and asks it to disconnect the client.\n * @param clientId - The ID of the client to be disconnected.\n * @param disconnectReason - The reason of the disconnection.\n */\n public disconnectClient(clientId: string, disconnectReason: string) {\n if (!this.documentDeltaConnectionsMap.has(clientId)) {\n throw new Error(`No client with the id: ${clientId}`);\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.documentDeltaConnectionsMap.get(clientId)!.disconnectClient(disconnectReason);\n }\n\n /**\n * Gets the document delta connection for the clientId and asks it to nack the client.\n * @param clientId - The ID of the client to be Nack'd.\n * @param code - An error code number that represents the error. It will be a valid HTTP error code.\n * @param type - Type of the Nack.\n * @param message - A message about the nack for debugging/logging/telemetry purposes.\n */\n public nackClient(clientId: string, code?: number, type?: NackErrorType, message?: any) {\n if (!this.documentDeltaConnectionsMap.has(clientId)) {\n throw new Error(`No client with the id: ${clientId}`);\n }\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n this.documentDeltaConnectionsMap.get(clientId)!.nackClient(code, type, message);\n }\n}\n"]}
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -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/local-driver";
|
|
8
|
-
export declare const pkgVersion = "0.59.
|
|
8
|
+
export declare const pkgVersion = "0.59.2001";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AACtD,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"packageVersion.d.ts","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,OAAO,iCAAiC,CAAC;AACtD,eAAO,MAAM,UAAU,cAAc,CAAC"}
|
package/dist/packageVersion.js
CHANGED
|
@@ -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/local-driver";
|
|
11
|
-
exports.pkgVersion = "0.59.
|
|
11
|
+
exports.pkgVersion = "0.59.2001";
|
|
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,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,WAAW,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/local-driver\";\nexport const pkgVersion = \"0.59.2001\";\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/local-driver",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.2001",
|
|
4
4
|
"description": "Fluid local driver",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -58,24 +58,24 @@
|
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@fluidframework/common-definitions": "^0.20.1",
|
|
60
60
|
"@fluidframework/common-utils": "^0.32.1",
|
|
61
|
-
"@fluidframework/core-interfaces": "^0.43.1000
|
|
62
|
-
"@fluidframework/driver-base": "0.59.
|
|
63
|
-
"@fluidframework/driver-definitions": "^0.46.1000
|
|
64
|
-
"@fluidframework/driver-utils": "0.59.
|
|
65
|
-
"@fluidframework/protocol-definitions": "^0.1028.1000
|
|
66
|
-
"@fluidframework/routerlicious-driver": "0.59.
|
|
67
|
-
"@fluidframework/server-local-server": "^0.1036.
|
|
68
|
-
"@fluidframework/server-services-client": "^0.1036.
|
|
69
|
-
"@fluidframework/server-services-core": "^0.1036.
|
|
70
|
-
"@fluidframework/server-test-utils": "^0.1036.
|
|
61
|
+
"@fluidframework/core-interfaces": "^0.43.1000",
|
|
62
|
+
"@fluidframework/driver-base": "^0.59.2001",
|
|
63
|
+
"@fluidframework/driver-definitions": "^0.46.1000",
|
|
64
|
+
"@fluidframework/driver-utils": "^0.59.2001",
|
|
65
|
+
"@fluidframework/protocol-definitions": "^0.1028.1000",
|
|
66
|
+
"@fluidframework/routerlicious-driver": "^0.59.2001",
|
|
67
|
+
"@fluidframework/server-local-server": "^0.1036.2000",
|
|
68
|
+
"@fluidframework/server-services-client": "^0.1036.2000",
|
|
69
|
+
"@fluidframework/server-services-core": "^0.1036.2000",
|
|
70
|
+
"@fluidframework/server-test-utils": "^0.1036.2000",
|
|
71
71
|
"jsrsasign": "^10.2.0",
|
|
72
72
|
"uuid": "^8.3.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@fluidframework/build-common": "^0.23.0",
|
|
76
|
-
"@fluidframework/eslint-config-fluid": "^0.28.1000
|
|
77
|
-
"@fluidframework/local-driver-previous": "npm:@fluidframework/local-driver
|
|
78
|
-
"@fluidframework/mocha-test-setup": "0.59.
|
|
76
|
+
"@fluidframework/eslint-config-fluid": "^0.28.1000",
|
|
77
|
+
"@fluidframework/local-driver-previous": "npm:@fluidframework/local-driver@0.59.1000",
|
|
78
|
+
"@fluidframework/mocha-test-setup": "^0.59.2001",
|
|
79
79
|
"@rushstack/eslint-config": "^2.5.1",
|
|
80
80
|
"@types/jsrsasign": "^8.0.8",
|
|
81
81
|
"@types/mocha": "^8.2.2",
|
|
@@ -88,8 +88,11 @@
|
|
|
88
88
|
"eslint-plugin-editorconfig": "~3.2.0",
|
|
89
89
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
90
90
|
"eslint-plugin-import": "~2.25.4",
|
|
91
|
-
"eslint-plugin-
|
|
91
|
+
"eslint-plugin-jest": "~26.1.3",
|
|
92
|
+
"eslint-plugin-mocha": "~10.0.3",
|
|
93
|
+
"eslint-plugin-promise": "~6.0.0",
|
|
92
94
|
"eslint-plugin-react": "~7.28.0",
|
|
95
|
+
"eslint-plugin-tsdoc": "~0.2.14",
|
|
93
96
|
"eslint-plugin-unicorn": "~40.0.0",
|
|
94
97
|
"mocha": "^8.4.0",
|
|
95
98
|
"nyc": "^15.0.0",
|
|
@@ -99,7 +102,7 @@
|
|
|
99
102
|
"typescript-formatter": "7.1.0"
|
|
100
103
|
},
|
|
101
104
|
"typeValidation": {
|
|
102
|
-
"version": "0.59.
|
|
105
|
+
"version": "0.59.2000",
|
|
103
106
|
"broken": {}
|
|
104
107
|
}
|
|
105
108
|
}
|
|
@@ -33,7 +33,7 @@ export class LocalDocumentService implements api.IDocumentService {
|
|
|
33
33
|
private readonly innerDocumentService?: api.IDocumentService,
|
|
34
34
|
) { }
|
|
35
35
|
|
|
36
|
-
public dispose() {}
|
|
36
|
+
public dispose() { }
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Creates and returns a document storage service for local use.
|
|
@@ -43,7 +43,11 @@ export class LocalDocumentService implements api.IDocumentService {
|
|
|
43
43
|
this.documentId,
|
|
44
44
|
new GitManager(new TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)),
|
|
45
45
|
new TelemetryNullLogger(),
|
|
46
|
-
{ minBlobSize: 2048 }
|
|
46
|
+
{ minBlobSize: 2048 }, // Test blob aggregation.
|
|
47
|
+
undefined,
|
|
48
|
+
undefined,
|
|
49
|
+
undefined,
|
|
50
|
+
new GitManager(new TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase)));
|
|
47
51
|
}
|
|
48
52
|
|
|
49
53
|
/**
|
|
@@ -73,6 +73,8 @@ export class LocalDocumentServiceFactory implements IDocumentServiceFactory {
|
|
|
73
73
|
sequenceNumber,
|
|
74
74
|
documentAttributes.term ?? 1,
|
|
75
75
|
defaultHash,
|
|
76
|
+
resolvedUrl.endpoints.ordererUrl ?? "",
|
|
77
|
+
resolvedUrl.endpoints.storageUrl ?? "",
|
|
76
78
|
quorumValues,
|
|
77
79
|
);
|
|
78
80
|
return this.createDocumentService(resolvedUrl, logger, clientIsSummarizer);
|
package/src/packageVersion.ts
CHANGED