@fluidframework/driver-definitions 0.45.2000-60372 → 0.46.1000

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.
@@ -12,7 +12,6 @@ import { IDisposable } from '@fluidframework/common-definitions';
12
12
  import { IDocumentMessage } from '@fluidframework/protocol-definitions';
13
13
  import { IErrorEvent } from '@fluidframework/common-definitions';
14
14
  import { IEventProvider } from '@fluidframework/common-definitions';
15
- import { IFluidCodeDetails } from '@fluidframework/core-interfaces';
16
15
  import { INack } from '@fluidframework/protocol-definitions';
17
16
  import { IRequest } from '@fluidframework/core-interfaces';
18
17
  import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
@@ -263,7 +262,7 @@ export interface IThrottlingWarning extends IDriverErrorBase {
263
262
  // @public (undocumented)
264
263
  export interface IUrlResolver {
265
264
  // (undocumented)
266
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo): Promise<string>;
265
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
267
266
  // (undocumented)
268
267
  resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
269
268
  }
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { IRequest, IFluidCodeDetails } from "@fluidframework/core-interfaces";
5
+ import { IRequest } from "@fluidframework/core-interfaces";
6
6
  export declare type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;
7
7
  export interface IResolvedUrlBase {
8
8
  type: string;
@@ -36,7 +36,7 @@ export interface IContainerPackageInfo {
36
36
  }
37
37
  export interface IUrlResolver {
38
38
  resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
39
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo): Promise<string>;
39
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
40
40
  }
41
41
  /**
42
42
  * Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL
@@ -1 +1 @@
1
- {"version":3,"file":"urlResolver.d.ts","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,oBAAY,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAgB,SAAQ,gBAAgB;IACrD,IAAI,EAAE,KAAK,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACnC,SAAS,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAKzB,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAG9D,cAAc,CACV,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,qBAAqB,GAC9D,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB;AAED;;;EAGE;AACF,MAAM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B,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAAC;IAG9D,cAAc,CACV,WAAW,EAAE,YAAY,EACzB,WAAW,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,qBAAqB,GAC1C,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB;AAED;;;EAGE;AACF,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAEH;;GAEG;AACH,oBAAY,YAAY;IAEpB,iBAAiB,4BAA4B;IAE7C,SAAS,cAAc;CAC1B;AAED,MAAM,WAAW,aAAa;IAC1B,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC1C,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC;CACjC;AAED,OAAO,QAAQ,iCAAiC,CAAC;IAE7C,UAAiB,cAAe,SAAQ,OAAO,CAAC,aAAa,CAAC;KAAI;CACrE"}
@@ -1,8 +1,4 @@
1
1
  "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
2
  Object.defineProperty(exports, "__esModule", { value: true });
7
3
  exports.DriverHeader = void 0;
8
4
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"urlResolver.js","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAoEH;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qDAAqD;IACrD,6DAA6C,CAAA;IAC7C,iDAAiD;IACjD,uCAAuB,CAAA;AAC3B,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest, IFluidCodeDetails } from \"@fluidframework/core-interfaces\";\n\nexport type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;\n\nexport interface IResolvedUrlBase {\n type: string;\n}\n\nexport interface IWebResolvedUrl extends IResolvedUrlBase {\n type: \"web\";\n data: string;\n}\n\nexport interface IFluidResolvedUrl extends IResolvedUrlBase {\n type: \"fluid\";\n /**\n * The id of the container this resolved url is for.\n */\n id: string,\n url: string;\n tokens: { [name: string]: string };\n endpoints: { [name: string]: string };\n}\n\n/**\n * Container package info handed off to resolver.\n */\nexport interface IContainerPackageInfo {\n /**\n * Container package name.\n */\n name: string;\n}\n\nexport interface IUrlResolver {\n\n // Like DNS should be able to cache resolution requests. Then possibly just have a token provider go and do stuff?\n // the expiration of it could be relative to the lifetime of the token? Requests after need to refresh?\n // or do we split the token access from this?\n resolve(request: IRequest): Promise<IResolvedUrl | undefined>;\n\n // Creates a url for the created container with any data store path given in the relative url.\n getAbsoluteUrl(\n resolvedUrl: IResolvedUrl,\n relativeUrl: string,\n packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo,\n ): Promise<string>;\n}\n\n/**\n* Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL\n* for driver compatibility and preload information.\n*/\nexport interface DriverPreCheckInfo {\n /**\n * A code details hint that can potentially be used to prefetch container code prior to having a snapshot.\n */\n codeDetailsHint?: string;\n\n /**\n * Domains that will be connected to on the critical boot path. Hosts can choose to preconnect to these for\n * improved performance.\n */\n criticalBootDomains?: string[];\n }\n\n/**\n * Additional key in the loader request header\n */\nexport enum DriverHeader {\n // Key to indicate whether the request for summarizer\n summarizingClient = \"fluid-client-summarizer\",\n // createNew information, specific to each driver\n createNew = \"createNew\",\n}\n\nexport interface IDriverHeader {\n [DriverHeader.summarizingClient]: boolean;\n [DriverHeader.createNew]: any;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface IRequestHeader extends Partial<IDriverHeader> { }\n}\n"]}
1
+ {"version":3,"file":"urlResolver.js","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":";;;AAsEA;;GAEG;AACH,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qDAAqD;IACrD,6DAA6C,CAAA;IAC7C,iDAAiD;IACjD,uCAAuB,CAAA;AAC3B,CAAC,EALW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAKvB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { IRequest } from \"@fluidframework/core-interfaces\";\n\nexport type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;\n\nexport interface IResolvedUrlBase {\n type: string;\n}\n\nexport interface IWebResolvedUrl extends IResolvedUrlBase {\n type: \"web\";\n data: string;\n}\n\nexport interface IFluidResolvedUrl extends IResolvedUrlBase {\n type: \"fluid\";\n /**\n * The id of the container this resolved url is for.\n */\n id: string,\n url: string;\n tokens: { [name: string]: string };\n endpoints: { [name: string]: string };\n}\n\n/**\n * Container package info handed off to resolver.\n */\nexport interface IContainerPackageInfo {\n /**\n * Container package name.\n */\n name: string;\n}\n\nexport interface IUrlResolver {\n\n // Like DNS should be able to cache resolution requests. Then possibly just have a token provider go and do stuff?\n // the expiration of it could be relative to the lifetime of the token? Requests after need to refresh?\n // or do we split the token access from this?\n resolve(request: IRequest): Promise<IResolvedUrl | undefined>;\n\n // Creates a url for the created container with any data store path given in the relative url.\n getAbsoluteUrl(\n resolvedUrl: IResolvedUrl,\n relativeUrl: string,\n packageInfoSource?: IContainerPackageInfo,\n ): Promise<string>;\n}\n\n/**\n* Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL\n* for driver compatibility and preload information.\n*/\nexport interface DriverPreCheckInfo {\n /**\n * A code details hint that can potentially be used to prefetch container code prior to having a snapshot.\n */\n codeDetailsHint?: string;\n\n /**\n * Domains that will be connected to on the critical boot path. Hosts can choose to preconnect to these for\n * improved performance.\n */\n criticalBootDomains?: string[];\n }\n\n/**\n * Additional key in the loader request header\n */\nexport enum DriverHeader {\n // Key to indicate whether the request for summarizer\n summarizingClient = \"fluid-client-summarizer\",\n // createNew information, specific to each driver\n createNew = \"createNew\",\n}\n\nexport interface IDriverHeader {\n [DriverHeader.summarizingClient]: boolean;\n [DriverHeader.createNew]: any;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface IRequestHeader extends Partial<IDriverHeader> { }\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
- import { IRequest, IFluidCodeDetails } from "@fluidframework/core-interfaces";
5
+ import { IRequest } from "@fluidframework/core-interfaces";
6
6
  export declare type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;
7
7
  export interface IResolvedUrlBase {
8
8
  type: string;
@@ -36,7 +36,7 @@ export interface IContainerPackageInfo {
36
36
  }
37
37
  export interface IUrlResolver {
38
38
  resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
39
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo): Promise<string>;
39
+ getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
40
40
  }
41
41
  /**
42
42
  * Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL
@@ -1 +1 @@
1
- {"version":3,"file":"urlResolver.d.ts","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,oBAAY,YAAY,GAAG,eAAe,GAAG,iBAAiB,CAAC;AAE/D,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,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ED,MAAM,WAAW,aAAa;IAC1B,CAAC,YAAY,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC1C,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC;CACjC;AAED,OAAO,QAAQ,iCAAiC,CAAC;IAE7C,UAAiB,cAAe,SAAQ,OAAO,CAAC,aAAa,CAAC;KAAI;CACrE"}
@@ -1,7 +1,3 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
1
  /**
6
2
  * Additional key in the loader request header
7
3
  */
@@ -1 +1 @@
1
- {"version":3,"file":"urlResolver.js","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoEH;;GAEG;AACH,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qDAAqD;IACrD,6DAA6C,CAAA;IAC7C,iDAAiD;IACjD,uCAAuB,CAAA;AAC3B,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IRequest, IFluidCodeDetails } from \"@fluidframework/core-interfaces\";\n\nexport type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;\n\nexport interface IResolvedUrlBase {\n type: string;\n}\n\nexport interface IWebResolvedUrl extends IResolvedUrlBase {\n type: \"web\";\n data: string;\n}\n\nexport interface IFluidResolvedUrl extends IResolvedUrlBase {\n type: \"fluid\";\n /**\n * The id of the container this resolved url is for.\n */\n id: string,\n url: string;\n tokens: { [name: string]: string };\n endpoints: { [name: string]: string };\n}\n\n/**\n * Container package info handed off to resolver.\n */\nexport interface IContainerPackageInfo {\n /**\n * Container package name.\n */\n name: string;\n}\n\nexport interface IUrlResolver {\n\n // Like DNS should be able to cache resolution requests. Then possibly just have a token provider go and do stuff?\n // the expiration of it could be relative to the lifetime of the token? Requests after need to refresh?\n // or do we split the token access from this?\n resolve(request: IRequest): Promise<IResolvedUrl | undefined>;\n\n // Creates a url for the created container with any data store path given in the relative url.\n getAbsoluteUrl(\n resolvedUrl: IResolvedUrl,\n relativeUrl: string,\n packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo,\n ): Promise<string>;\n}\n\n/**\n* Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL\n* for driver compatibility and preload information.\n*/\nexport interface DriverPreCheckInfo {\n /**\n * A code details hint that can potentially be used to prefetch container code prior to having a snapshot.\n */\n codeDetailsHint?: string;\n\n /**\n * Domains that will be connected to on the critical boot path. Hosts can choose to preconnect to these for\n * improved performance.\n */\n criticalBootDomains?: string[];\n }\n\n/**\n * Additional key in the loader request header\n */\nexport enum DriverHeader {\n // Key to indicate whether the request for summarizer\n summarizingClient = \"fluid-client-summarizer\",\n // createNew information, specific to each driver\n createNew = \"createNew\",\n}\n\nexport interface IDriverHeader {\n [DriverHeader.summarizingClient]: boolean;\n [DriverHeader.createNew]: any;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface IRequestHeader extends Partial<IDriverHeader> { }\n}\n"]}
1
+ {"version":3,"file":"urlResolver.js","sourceRoot":"","sources":["../src/urlResolver.ts"],"names":[],"mappings":"AAsEA;;GAEG;AACH,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACpB,qDAAqD;IACrD,6DAA6C,CAAA;IAC7C,iDAAiD;IACjD,uCAAuB,CAAA;AAC3B,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { IRequest } from \"@fluidframework/core-interfaces\";\n\nexport type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;\n\nexport interface IResolvedUrlBase {\n type: string;\n}\n\nexport interface IWebResolvedUrl extends IResolvedUrlBase {\n type: \"web\";\n data: string;\n}\n\nexport interface IFluidResolvedUrl extends IResolvedUrlBase {\n type: \"fluid\";\n /**\n * The id of the container this resolved url is for.\n */\n id: string,\n url: string;\n tokens: { [name: string]: string };\n endpoints: { [name: string]: string };\n}\n\n/**\n * Container package info handed off to resolver.\n */\nexport interface IContainerPackageInfo {\n /**\n * Container package name.\n */\n name: string;\n}\n\nexport interface IUrlResolver {\n\n // Like DNS should be able to cache resolution requests. Then possibly just have a token provider go and do stuff?\n // the expiration of it could be relative to the lifetime of the token? Requests after need to refresh?\n // or do we split the token access from this?\n resolve(request: IRequest): Promise<IResolvedUrl | undefined>;\n\n // Creates a url for the created container with any data store path given in the relative url.\n getAbsoluteUrl(\n resolvedUrl: IResolvedUrl,\n relativeUrl: string,\n packageInfoSource?: IContainerPackageInfo,\n ): Promise<string>;\n}\n\n/**\n* Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL\n* for driver compatibility and preload information.\n*/\nexport interface DriverPreCheckInfo {\n /**\n * A code details hint that can potentially be used to prefetch container code prior to having a snapshot.\n */\n codeDetailsHint?: string;\n\n /**\n * Domains that will be connected to on the critical boot path. Hosts can choose to preconnect to these for\n * improved performance.\n */\n criticalBootDomains?: string[];\n }\n\n/**\n * Additional key in the loader request header\n */\nexport enum DriverHeader {\n // Key to indicate whether the request for summarizer\n summarizingClient = \"fluid-client-summarizer\",\n // createNew information, specific to each driver\n createNew = \"createNew\",\n}\n\nexport interface IDriverHeader {\n [DriverHeader.summarizingClient]: boolean;\n [DriverHeader.createNew]: any;\n}\n\ndeclare module \"@fluidframework/core-interfaces\" {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n export interface IRequestHeader extends Partial<IDriverHeader> { }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/driver-definitions",
3
- "version": "0.45.2000-60372",
3
+ "version": "0.46.1000",
4
4
  "description": "Fluid driver definitions",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -40,14 +40,14 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@fluidframework/common-definitions": "^0.20.1",
43
- "@fluidframework/core-interfaces": "^0.42.0",
44
- "@fluidframework/protocol-definitions": "^0.1027.1000"
43
+ "@fluidframework/core-interfaces": "^0.43.1000",
44
+ "@fluidframework/protocol-definitions": "^0.1028.1000"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@fluidframework/build-common": "^0.23.0",
48
- "@fluidframework/build-tools": "^0.2.60108",
48
+ "@fluidframework/build-tools": "^0.2.61288",
49
49
  "@fluidframework/driver-definitions-previous": "npm:@fluidframework/driver-definitions@0.45.1000",
50
- "@fluidframework/eslint-config-fluid": "^0.27.2000-59622",
50
+ "@fluidframework/eslint-config-fluid": "^0.28.1000",
51
51
  "@microsoft/api-extractor": "^7.16.1",
52
52
  "@rushstack/eslint-config": "^2.5.1",
53
53
  "@typescript-eslint/eslint-plugin": "~5.9.0",
@@ -66,7 +66,7 @@
66
66
  "typescript-formatter": "7.1.0"
67
67
  },
68
68
  "typeValidation": {
69
- "version": "0.45.2000",
69
+ "version": "0.46.1000",
70
70
  "broken": {}
71
71
  }
72
72
  }
@@ -2,8 +2,7 @@
2
2
  * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
3
  * Licensed under the MIT License.
4
4
  */
5
-
6
- import { IRequest, IFluidCodeDetails } from "@fluidframework/core-interfaces";
5
+ import { IRequest } from "@fluidframework/core-interfaces";
7
6
 
8
7
  export type IResolvedUrl = IWebResolvedUrl | IFluidResolvedUrl;
9
8
 
@@ -48,7 +47,7 @@ export interface IUrlResolver {
48
47
  getAbsoluteUrl(
49
48
  resolvedUrl: IResolvedUrl,
50
49
  relativeUrl: string,
51
- packageInfoSource?: IFluidCodeDetails | IContainerPackageInfo,
50
+ packageInfoSource?: IContainerPackageInfo,
52
51
  ): Promise<string>;
53
52
  }
54
53