@fluidframework/tinylicious-driver 1.0.1 → 1.1.0

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.
@@ -4,7 +4,13 @@
4
4
  */
5
5
  import { IRequest } from "@fluidframework/core-interfaces";
6
6
  import { IFluidResolvedUrl, IResolvedUrl, IUrlResolver } from "@fluidframework/driver-definitions";
7
+ /**
8
+ * Default endpoint port. Will be used by the service if the consumer does not specify a port.
9
+ */
7
10
  export declare const defaultTinyliciousPort = 7070;
11
+ /**
12
+ * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
13
+ */
8
14
  export declare const defaultTinyliciousEndpoint = "http://localhost";
9
15
  /**
10
16
  * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
@@ -1 +1 @@
1
- {"version":3,"file":"insecureTinyliciousUrlResolver.d.ts","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAEH,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACf,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,8BAA+B,YAAW,YAAY;IAC/D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAEzC,IAAI,SAAyB,EAC7B,QAAQ,SAA6B;IAM5B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAkDjD,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYpG;AAED,eAAO,MAAM,iCAAiC,uCACnB,QAOtB,CAAC"}
1
+ {"version":3,"file":"insecureTinyliciousUrlResolver.d.ts","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAEH,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACf,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,8BAA+B,YAAW,YAAY;IAC/D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAEzC,IAAI,SAAyB,EAC7B,QAAQ,SAA6B;IAM5B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAkDjD,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYpG;AAED,eAAO,MAAM,iCAAiC,uCACnB,QAOtB,CAAC"}
@@ -6,7 +6,13 @@
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.createTinyliciousCreateNewRequest = exports.InsecureTinyliciousUrlResolver = exports.defaultTinyliciousEndpoint = exports.defaultTinyliciousPort = void 0;
8
8
  const driver_definitions_1 = require("@fluidframework/driver-definitions");
9
+ /**
10
+ * Default endpoint port. Will be used by the service if the consumer does not specify a port.
11
+ */
9
12
  exports.defaultTinyliciousPort = 7070;
13
+ /**
14
+ * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
15
+ */
10
16
  exports.defaultTinyliciousEndpoint = "http://localhost";
11
17
  /**
12
18
  * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
@@ -1 +1 @@
1
- {"version":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AC,SAAS,CAAC,EAAE,IAAI;KACjC;CACJ,CACJ,CAAC;AARO,QAAA,iCAAiC,qCAQxC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport {\n DriverHeader,\n IFluidResolvedUrl,\n IResolvedUrl,\n IUrlResolver,\n} from \"@fluidframework/driver-definitions\";\n\nexport const defaultTinyliciousPort = 7070;\nexport const defaultTinyliciousEndpoint = \"http://localhost\";\n\n/**\n * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use\n * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's\n * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):\n * documentId/containerRelativePathing\n */\nexport class InsecureTinyliciousUrlResolver implements IUrlResolver {\n private readonly fluidProtocolEndpoint: string;\n private readonly tinyliciousEndpoint: string;\n public constructor(\n port = defaultTinyliciousPort,\n endpoint = defaultTinyliciousEndpoint,\n ) {\n this.tinyliciousEndpoint = `${endpoint}:${port}`;\n this.fluidProtocolEndpoint = this.tinyliciousEndpoint.replace(/(^\\w+:|^)\\/\\//, \"fluid://\");\n }\n\n public async resolve(request: IRequest): Promise<IResolvedUrl> {\n // determine whether the request is for creating of a new container.\n // such request has the `createNew` header set to true and doesn't have a container ID.\n if (request.headers && request.headers[DriverHeader.createNew] === true) {\n // honor the document ID passed by the application via the create request\n // otherwise use the reserved keyword to let the driver generate the ID.\n // TODO: deprecate this capability for tinylicious as the r11s driver will stop using the document ID\n // in create requests.\n const newDocumentId = request.url ?? \"new\";\n return {\n endpoints: {\n deltaStorageUrl: `${this.tinyliciousEndpoint}/deltas/tinylicious/${newDocumentId}`,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl: `${this.tinyliciousEndpoint}/repos/tinylicious`,\n },\n // id is a mandatory attribute, but it's ignored by the driver for new container requests.\n id: request.url,\n // tokens attribute is redundant as all tokens are generated via ITokenProvider\n tokens: {},\n type: \"fluid\",\n url: `${this.fluidProtocolEndpoint}/tinylicious/${newDocumentId}`,\n };\n }\n // for an existing container we'll parse the request URL to determine the document ID.\n const url = request.url.replace(`${this.tinyliciousEndpoint}/`, \"\");\n const documentId = url.split(\"/\")[0];\n const encodedDocId = encodeURIComponent(documentId);\n const documentRelativePath = url.slice(documentId.length);\n\n const documentUrl =\n `${this.fluidProtocolEndpoint}/tinylicious/${encodedDocId}${documentRelativePath}`;\n const deltaStorageUrl =\n `${this.tinyliciousEndpoint}/deltas/tinylicious/${encodedDocId}`;\n const storageUrl =\n `${this.tinyliciousEndpoint}/repos/tinylicious`;\n\n const response: IFluidResolvedUrl = {\n endpoints: {\n deltaStorageUrl,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl,\n },\n id: documentId,\n tokens: {},\n type: \"fluid\",\n url: documentUrl,\n };\n return response;\n }\n\n public async getAbsoluteUrl(resolvedUrl: IFluidResolvedUrl, relativeUrl: string): Promise<string> {\n const documentId = decodeURIComponent(\n resolvedUrl.url.replace(`${this.fluidProtocolEndpoint}/tinylicious/`, \"\"),\n );\n /*\n * The detached container flow will ultimately call getAbsoluteUrl() with the resolved.url produced by\n * resolve(). The container expects getAbsoluteUrl's return value to be a URL that can then be roundtripped\n * back through resolve() again, and get the same result again. So we'll return a \"URL\" with the same format\n * described above.\n */\n return `${documentId}/${relativeUrl}`;\n }\n}\n\nexport const createTinyliciousCreateNewRequest =\n (documentId?: string): IRequest => (\n {\n url: documentId ?? \"\",\n headers: {\n [DriverHeader.createNew]: true,\n },\n }\n );\n"]}
1
+ {"version":3,"file":"insecureTinyliciousUrlResolver.js","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,2EAK4C;AAE5C;;GAEG;AACU,QAAA,sBAAsB,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACU,QAAA,0BAA0B,GAAG,kBAAkB,CAAC;AAE7D;;;;;GAKG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ACpD,MAAM,oBAAoB,GAAG,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QAE1D,MAAM,WAAW,GACb,GAAG,IAAI,CAAC,qBAAqB,gBAAgB,YAAY,GAAG,oBAAoB,EAAE,CAAC;QACvF,MAAM,eAAe,GACjB,GAAG,IAAI,CAAC,mBAAmB,uBAAuB,YAAY,EAAE,CAAC;QACrE,MAAM,UAAU,GACZ,GAAG,IAAI,CAAC,mBAAmB,oBAAoB,CAAC;QAEpD,MAAM,QAAQ,GAAsB;YAChC,SAAS,EAAE;gBACP,eAAe;gBACf,UAAU,EAAE,IAAI,CAAC,mBAAmB;gBACpC,UAAU;aACb;YACD,EAAE,EAAE,UAAU;YACd,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,OAAO;YACb,GAAG,EAAE,WAAW;SACnB,CAAC;QACF,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAA8B,EAAE,WAAmB;QAC3E,MAAM,UAAU,GAAG,kBAAkB,CACjC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,qBAAqB,eAAe,EAAE,EAAE,CAAC,CAC5E,CAAC;QACF;;;;;WAKG;QACH,OAAO,GAAG,UAAU,IAAI,WAAW,EAAE,CAAC;IAC1C,CAAC;CACJ;AAzED,wEAyEC;AAEM,MAAM,iCAAiC,GAC1C,CAAC,UAAmB,EAAY,EAAE,CAAC,CAC/B;IACI,GAAG,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE;IACrB,OAAO,EAAE;QACL,CAAC,iCAAY,CAAC,SAAS,CAAC,EAAE,IAAI;KACjC;CACJ,CACJ,CAAC;AARO,QAAA,iCAAiC,qCAQxC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport {\n DriverHeader,\n IFluidResolvedUrl,\n IResolvedUrl,\n IUrlResolver,\n} from \"@fluidframework/driver-definitions\";\n\n/**\n * Default endpoint port. Will be used by the service if the consumer does not specify a port.\n */\nexport const defaultTinyliciousPort = 7070;\n\n/**\n * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.\n */\nexport const defaultTinyliciousEndpoint = \"http://localhost\";\n\n/**\n * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use\n * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's\n * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):\n * documentId/containerRelativePathing\n */\nexport class InsecureTinyliciousUrlResolver implements IUrlResolver {\n private readonly fluidProtocolEndpoint: string;\n private readonly tinyliciousEndpoint: string;\n public constructor(\n port = defaultTinyliciousPort,\n endpoint = defaultTinyliciousEndpoint,\n ) {\n this.tinyliciousEndpoint = `${endpoint}:${port}`;\n this.fluidProtocolEndpoint = this.tinyliciousEndpoint.replace(/(^\\w+:|^)\\/\\//, \"fluid://\");\n }\n\n public async resolve(request: IRequest): Promise<IResolvedUrl> {\n // determine whether the request is for creating of a new container.\n // such request has the `createNew` header set to true and doesn't have a container ID.\n if (request.headers && request.headers[DriverHeader.createNew] === true) {\n // honor the document ID passed by the application via the create request\n // otherwise use the reserved keyword to let the driver generate the ID.\n // TODO: deprecate this capability for tinylicious as the r11s driver will stop using the document ID\n // in create requests.\n const newDocumentId = request.url ?? \"new\";\n return {\n endpoints: {\n deltaStorageUrl: `${this.tinyliciousEndpoint}/deltas/tinylicious/${newDocumentId}`,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl: `${this.tinyliciousEndpoint}/repos/tinylicious`,\n },\n // id is a mandatory attribute, but it's ignored by the driver for new container requests.\n id: request.url,\n // tokens attribute is redundant as all tokens are generated via ITokenProvider\n tokens: {},\n type: \"fluid\",\n url: `${this.fluidProtocolEndpoint}/tinylicious/${newDocumentId}`,\n };\n }\n // for an existing container we'll parse the request URL to determine the document ID.\n const url = request.url.replace(`${this.tinyliciousEndpoint}/`, \"\");\n const documentId = url.split(\"/\")[0];\n const encodedDocId = encodeURIComponent(documentId);\n const documentRelativePath = url.slice(documentId.length);\n\n const documentUrl =\n `${this.fluidProtocolEndpoint}/tinylicious/${encodedDocId}${documentRelativePath}`;\n const deltaStorageUrl =\n `${this.tinyliciousEndpoint}/deltas/tinylicious/${encodedDocId}`;\n const storageUrl =\n `${this.tinyliciousEndpoint}/repos/tinylicious`;\n\n const response: IFluidResolvedUrl = {\n endpoints: {\n deltaStorageUrl,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl,\n },\n id: documentId,\n tokens: {},\n type: \"fluid\",\n url: documentUrl,\n };\n return response;\n }\n\n public async getAbsoluteUrl(resolvedUrl: IFluidResolvedUrl, relativeUrl: string): Promise<string> {\n const documentId = decodeURIComponent(\n resolvedUrl.url.replace(`${this.fluidProtocolEndpoint}/tinylicious/`, \"\"),\n );\n /*\n * The detached container flow will ultimately call getAbsoluteUrl() with the resolved.url produced by\n * resolve(). The container expects getAbsoluteUrl's return value to be a URL that can then be roundtripped\n * back through resolve() again, and get the same result again. So we'll return a \"URL\" with the same format\n * described above.\n */\n return `${documentId}/${relativeUrl}`;\n }\n}\n\nexport const createTinyliciousCreateNewRequest =\n (documentId?: string): IRequest => (\n {\n url: documentId ?? \"\",\n headers: {\n [DriverHeader.createNew]: true,\n },\n }\n );\n"]}
@@ -4,7 +4,13 @@
4
4
  */
5
5
  import { IRequest } from "@fluidframework/core-interfaces";
6
6
  import { IFluidResolvedUrl, IResolvedUrl, IUrlResolver } from "@fluidframework/driver-definitions";
7
+ /**
8
+ * Default endpoint port. Will be used by the service if the consumer does not specify a port.
9
+ */
7
10
  export declare const defaultTinyliciousPort = 7070;
11
+ /**
12
+ * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
13
+ */
8
14
  export declare const defaultTinyliciousEndpoint = "http://localhost";
9
15
  /**
10
16
  * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
@@ -1 +1 @@
1
- {"version":3,"file":"insecureTinyliciousUrlResolver.d.ts","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAEH,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACf,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,8BAA+B,YAAW,YAAY;IAC/D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAEzC,IAAI,SAAyB,EAC7B,QAAQ,SAA6B;IAM5B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAkDjD,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYpG;AAED,eAAO,MAAM,iCAAiC,uCACnB,QAOtB,CAAC"}
1
+ {"version":3,"file":"insecureTinyliciousUrlResolver.d.ts","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAC3D,OAAO,EAEH,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACf,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,0BAA0B,qBAAqB,CAAC;AAE7D;;;;;GAKG;AACH,qBAAa,8BAA+B,YAAW,YAAY;IAC/D,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAS;gBAEzC,IAAI,SAAyB,EAC7B,QAAQ,SAA6B;IAM5B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,CAAC;IAkDjD,cAAc,CAAC,WAAW,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAYpG;AAED,eAAO,MAAM,iCAAiC,uCACnB,QAOtB,CAAC"}
@@ -3,7 +3,13 @@
3
3
  * Licensed under the MIT License.
4
4
  */
5
5
  import { DriverHeader, } from "@fluidframework/driver-definitions";
6
+ /**
7
+ * Default endpoint port. Will be used by the service if the consumer does not specify a port.
8
+ */
6
9
  export const defaultTinyliciousPort = 7070;
10
+ /**
11
+ * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
12
+ */
7
13
  export const defaultTinyliciousEndpoint = "http://localhost";
8
14
  /**
9
15
  * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
@@ -1 +1 @@
1
- {"version":3,"file":"insecureTinyliciousUrlResolver.js","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACH,YAAY,GAIf,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAC3C,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,OAAO,8BAA8B;IAGvC,YACI,IAAI,GAAG,sBAAsB,EAC7B,QAAQ,GAAG,0BAA0B;QAErC,IAAI,CAAC,mBAAmB,GAAG,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IAC/F,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,OAAiB;;QAClC,oEAA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pD,MAAM,QAAQ,GAAsB;YAChC,SAAS,EAAE;gBACP,eAAe;gBACf,UAAU,EAAE,IAAI,CAAC,mBAAmB;gBACpC,UAAU;aACb;YACD,EAAE,EAAE,UAAU;YACd,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,OAAO;YACb,GAAG,EAAE,WAAW;SACnB,CAAC;QACF,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAA8B,EAAE,WAAmB;QAC3E,MAAM,UAAU,GAAG,kBAAkB,CACjC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,qBAAqB,eAAe,EAAE,EAAE,CAAC,CAC5E,CAAC;QACF;;;;;WAKG;QACH,OAAO,GAAG,UAAU,IAAI,WAAW,EAAE,CAAC;IAC1C,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,iCAAiC,GAC1C,CAAC,UAAmB,EAAY,EAAE,CAAC,CAC/B;IACI,GAAG,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE;IACrB,OAAO,EAAE;QACL,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,IAAI;KACjC;CACJ,CACJ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport {\n DriverHeader,\n IFluidResolvedUrl,\n IResolvedUrl,\n IUrlResolver,\n} from \"@fluidframework/driver-definitions\";\n\nexport const defaultTinyliciousPort = 7070;\nexport const defaultTinyliciousEndpoint = \"http://localhost\";\n\n/**\n * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use\n * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's\n * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):\n * documentId/containerRelativePathing\n */\nexport class InsecureTinyliciousUrlResolver implements IUrlResolver {\n private readonly fluidProtocolEndpoint: string;\n private readonly tinyliciousEndpoint: string;\n public constructor(\n port = defaultTinyliciousPort,\n endpoint = defaultTinyliciousEndpoint,\n ) {\n this.tinyliciousEndpoint = `${endpoint}:${port}`;\n this.fluidProtocolEndpoint = this.tinyliciousEndpoint.replace(/(^\\w+:|^)\\/\\//, \"fluid://\");\n }\n\n public async resolve(request: IRequest): Promise<IResolvedUrl> {\n // determine whether the request is for creating of a new container.\n // such request has the `createNew` header set to true and doesn't have a container ID.\n if (request.headers && request.headers[DriverHeader.createNew] === true) {\n // honor the document ID passed by the application via the create request\n // otherwise use the reserved keyword to let the driver generate the ID.\n // TODO: deprecate this capability for tinylicious as the r11s driver will stop using the document ID\n // in create requests.\n const newDocumentId = request.url ?? \"new\";\n return {\n endpoints: {\n deltaStorageUrl: `${this.tinyliciousEndpoint}/deltas/tinylicious/${newDocumentId}`,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl: `${this.tinyliciousEndpoint}/repos/tinylicious`,\n },\n // id is a mandatory attribute, but it's ignored by the driver for new container requests.\n id: request.url,\n // tokens attribute is redundant as all tokens are generated via ITokenProvider\n tokens: {},\n type: \"fluid\",\n url: `${this.fluidProtocolEndpoint}/tinylicious/${newDocumentId}`,\n };\n }\n // for an existing container we'll parse the request URL to determine the document ID.\n const url = request.url.replace(`${this.tinyliciousEndpoint}/`, \"\");\n const documentId = url.split(\"/\")[0];\n const encodedDocId = encodeURIComponent(documentId);\n const documentRelativePath = url.slice(documentId.length);\n\n const documentUrl =\n `${this.fluidProtocolEndpoint}/tinylicious/${encodedDocId}${documentRelativePath}`;\n const deltaStorageUrl =\n `${this.tinyliciousEndpoint}/deltas/tinylicious/${encodedDocId}`;\n const storageUrl =\n `${this.tinyliciousEndpoint}/repos/tinylicious`;\n\n const response: IFluidResolvedUrl = {\n endpoints: {\n deltaStorageUrl,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl,\n },\n id: documentId,\n tokens: {},\n type: \"fluid\",\n url: documentUrl,\n };\n return response;\n }\n\n public async getAbsoluteUrl(resolvedUrl: IFluidResolvedUrl, relativeUrl: string): Promise<string> {\n const documentId = decodeURIComponent(\n resolvedUrl.url.replace(`${this.fluidProtocolEndpoint}/tinylicious/`, \"\"),\n );\n /*\n * The detached container flow will ultimately call getAbsoluteUrl() with the resolved.url produced by\n * resolve(). The container expects getAbsoluteUrl's return value to be a URL that can then be roundtripped\n * back through resolve() again, and get the same result again. So we'll return a \"URL\" with the same format\n * described above.\n */\n return `${documentId}/${relativeUrl}`;\n }\n}\n\nexport const createTinyliciousCreateNewRequest =\n (documentId?: string): IRequest => (\n {\n url: documentId ?? \"\",\n headers: {\n [DriverHeader.createNew]: true,\n },\n }\n );\n"]}
1
+ {"version":3,"file":"insecureTinyliciousUrlResolver.js","sourceRoot":"","sources":["../src/insecureTinyliciousUrlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACH,YAAY,GAIf,MAAM,oCAAoC,CAAC;AAE5C;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,CAAC;AAE3C;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,kBAAkB,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,OAAO,8BAA8B;IAGvC,YACI,IAAI,GAAG,sBAAsB,EAC7B,QAAQ,GAAG,0BAA0B;QAErC,IAAI,CAAC,mBAAmB,GAAG,GAAG,QAAQ,IAAI,IAAI,EAAE,CAAC;QACjD,IAAI,CAAC,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;IAC/F,CAAC;IAEM,KAAK,CAAC,OAAO,CAAC,OAAiB;;QAClC,oEAAoE;QACpE,uFAAuF;QACvF,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;YACrE,yEAAyE;YACzE,wEAAwE;YACxE,qGAAqG;YACrG,sBAAsB;YACtB,MA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AG,EAAE,WAAW;SACnB,CAAC;QACF,OAAO,QAAQ,CAAC;IACpB,CAAC;IAEM,KAAK,CAAC,cAAc,CAAC,WAA8B,EAAE,WAAmB;QAC3E,MAAM,UAAU,GAAG,kBAAkB,CACjC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,qBAAqB,eAAe,EAAE,EAAE,CAAC,CAC5E,CAAC;QACF;;;;;WAKG;QACH,OAAO,GAAG,UAAU,IAAI,WAAW,EAAE,CAAC;IAC1C,CAAC;CACJ;AAED,MAAM,CAAC,MAAM,iCAAiC,GAC1C,CAAC,UAAmB,EAAY,EAAE,CAAC,CAC/B;IACI,GAAG,EAAE,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,EAAE;IACrB,OAAO,EAAE;QACL,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,IAAI;KACjC;CACJ,CACJ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest } from \"@fluidframework/core-interfaces\";\nimport {\n DriverHeader,\n IFluidResolvedUrl,\n IResolvedUrl,\n IUrlResolver,\n} from \"@fluidframework/driver-definitions\";\n\n/**\n * Default endpoint port. Will be used by the service if the consumer does not specify a port.\n */\nexport const defaultTinyliciousPort = 7070;\n\n/**\n * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.\n */\nexport const defaultTinyliciousEndpoint = \"http://localhost\";\n\n/**\n * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use\n * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's\n * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):\n * documentId/containerRelativePathing\n */\nexport class InsecureTinyliciousUrlResolver implements IUrlResolver {\n private readonly fluidProtocolEndpoint: string;\n private readonly tinyliciousEndpoint: string;\n public constructor(\n port = defaultTinyliciousPort,\n endpoint = defaultTinyliciousEndpoint,\n ) {\n this.tinyliciousEndpoint = `${endpoint}:${port}`;\n this.fluidProtocolEndpoint = this.tinyliciousEndpoint.replace(/(^\\w+:|^)\\/\\//, \"fluid://\");\n }\n\n public async resolve(request: IRequest): Promise<IResolvedUrl> {\n // determine whether the request is for creating of a new container.\n // such request has the `createNew` header set to true and doesn't have a container ID.\n if (request.headers && request.headers[DriverHeader.createNew] === true) {\n // honor the document ID passed by the application via the create request\n // otherwise use the reserved keyword to let the driver generate the ID.\n // TODO: deprecate this capability for tinylicious as the r11s driver will stop using the document ID\n // in create requests.\n const newDocumentId = request.url ?? \"new\";\n return {\n endpoints: {\n deltaStorageUrl: `${this.tinyliciousEndpoint}/deltas/tinylicious/${newDocumentId}`,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl: `${this.tinyliciousEndpoint}/repos/tinylicious`,\n },\n // id is a mandatory attribute, but it's ignored by the driver for new container requests.\n id: request.url,\n // tokens attribute is redundant as all tokens are generated via ITokenProvider\n tokens: {},\n type: \"fluid\",\n url: `${this.fluidProtocolEndpoint}/tinylicious/${newDocumentId}`,\n };\n }\n // for an existing container we'll parse the request URL to determine the document ID.\n const url = request.url.replace(`${this.tinyliciousEndpoint}/`, \"\");\n const documentId = url.split(\"/\")[0];\n const encodedDocId = encodeURIComponent(documentId);\n const documentRelativePath = url.slice(documentId.length);\n\n const documentUrl =\n `${this.fluidProtocolEndpoint}/tinylicious/${encodedDocId}${documentRelativePath}`;\n const deltaStorageUrl =\n `${this.tinyliciousEndpoint}/deltas/tinylicious/${encodedDocId}`;\n const storageUrl =\n `${this.tinyliciousEndpoint}/repos/tinylicious`;\n\n const response: IFluidResolvedUrl = {\n endpoints: {\n deltaStorageUrl,\n ordererUrl: this.tinyliciousEndpoint,\n storageUrl,\n },\n id: documentId,\n tokens: {},\n type: \"fluid\",\n url: documentUrl,\n };\n return response;\n }\n\n public async getAbsoluteUrl(resolvedUrl: IFluidResolvedUrl, relativeUrl: string): Promise<string> {\n const documentId = decodeURIComponent(\n resolvedUrl.url.replace(`${this.fluidProtocolEndpoint}/tinylicious/`, \"\"),\n );\n /*\n * The detached container flow will ultimately call getAbsoluteUrl() with the resolved.url produced by\n * resolve(). The container expects getAbsoluteUrl's return value to be a URL that can then be roundtripped\n * back through resolve() again, and get the same result again. So we'll return a \"URL\" with the same format\n * described above.\n */\n return `${documentId}/${relativeUrl}`;\n }\n}\n\nexport const createTinyliciousCreateNewRequest =\n (documentId?: string): IRequest => (\n {\n url: documentId ?? \"\",\n headers: {\n [DriverHeader.createNew]: true,\n },\n }\n );\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/tinylicious-driver",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "description": "Driver for tinylicious",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -32,21 +32,21 @@
32
32
  "typetests:gen": "fluid-type-validator -g -d ."
33
33
  },
34
34
  "dependencies": {
35
- "@fluidframework/core-interfaces": "^1.0.1",
36
- "@fluidframework/driver-definitions": "^1.0.1",
37
- "@fluidframework/driver-utils": "^1.0.1",
35
+ "@fluidframework/core-interfaces": "^1.1.0",
36
+ "@fluidframework/driver-definitions": "^1.1.0",
37
+ "@fluidframework/driver-utils": "^1.1.0",
38
38
  "@fluidframework/protocol-definitions": "^0.1028.2000",
39
- "@fluidframework/routerlicious-driver": "^1.0.1",
40
- "@fluidframework/server-services-client": "^0.1036.4000",
39
+ "@fluidframework/routerlicious-driver": "^1.1.0",
40
+ "@fluidframework/server-services-client": "^0.1036.5000",
41
41
  "jsrsasign": "^10.2.0",
42
42
  "uuid": "^8.3.1"
43
43
  },
44
44
  "devDependencies": {
45
- "@fluidframework/build-common": "^0.23.0",
46
- "@fluidframework/build-tools": "^0.2.71273",
45
+ "@fluidframework/build-common": "^0.24.0",
46
+ "@fluidframework/build-tools": "^0.2.74327",
47
47
  "@fluidframework/eslint-config-fluid": "^0.28.2000",
48
48
  "@fluidframework/test-tools": "^0.2.3074",
49
- "@fluidframework/tinylicious-driver-previous": "npm:@fluidframework/tinylicious-driver@^0.59.0",
49
+ "@fluidframework/tinylicious-driver-previous": "npm:@fluidframework/tinylicious-driver@^1.0.0",
50
50
  "@rushstack/eslint-config": "^2.5.1",
51
51
  "@types/jsrsasign": "^8.0.8",
52
52
  "@types/mocha": "^9.1.1",
@@ -59,7 +59,7 @@
59
59
  "typescript-formatter": "7.1.0"
60
60
  },
61
61
  "typeValidation": {
62
- "version": "1.0.0",
62
+ "version": "1.1.0",
63
63
  "broken": {}
64
64
  }
65
65
  }
@@ -11,7 +11,14 @@ import {
11
11
  IUrlResolver,
12
12
  } from "@fluidframework/driver-definitions";
13
13
 
14
+ /**
15
+ * Default endpoint port. Will be used by the service if the consumer does not specify a port.
16
+ */
14
17
  export const defaultTinyliciousPort = 7070;
18
+
19
+ /**
20
+ * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
21
+ */
15
22
  export const defaultTinyliciousEndpoint = "http://localhost";
16
23
 
17
24
  /**