@fluidframework/odsp-driver 2.20.0 → 2.22.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.
Files changed (121) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -0
  3. package/dist/fetch.d.ts +5 -1
  4. package/dist/fetch.d.ts.map +1 -1
  5. package/dist/fetch.js +5 -9
  6. package/dist/fetch.js.map +1 -1
  7. package/dist/fetchSnapshot.d.ts +1 -1
  8. package/dist/fetchSnapshot.d.ts.map +1 -1
  9. package/dist/fetchSnapshot.js +8 -5
  10. package/dist/fetchSnapshot.js.map +1 -1
  11. package/dist/getFileLink.d.ts +1 -1
  12. package/dist/getFileLink.d.ts.map +1 -1
  13. package/dist/getFileLink.js +3 -3
  14. package/dist/getFileLink.js.map +1 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.js +1 -3
  18. package/dist/index.js.map +1 -1
  19. package/dist/mockify.d.ts +60 -0
  20. package/dist/mockify.d.ts.map +1 -0
  21. package/dist/mockify.js +61 -0
  22. package/dist/mockify.js.map +1 -0
  23. package/dist/odspDelayLoadedDeltaStream.js +2 -2
  24. package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
  25. package/dist/odspDocumentDeltaConnection.js +3 -3
  26. package/dist/odspDocumentDeltaConnection.js.map +1 -1
  27. package/dist/odspDocumentStorageManager.js +6 -6
  28. package/dist/odspDocumentStorageManager.js.map +1 -1
  29. package/dist/odspUtils.d.ts +3 -0
  30. package/dist/odspUtils.d.ts.map +1 -1
  31. package/dist/odspUtils.js +9 -9
  32. package/dist/odspUtils.js.map +1 -1
  33. package/dist/opsCaching.js +2 -2
  34. package/dist/opsCaching.js.map +1 -1
  35. package/dist/packageVersion.d.ts +1 -1
  36. package/dist/packageVersion.js +1 -1
  37. package/dist/packageVersion.js.map +1 -1
  38. package/dist/prefetchLatestSnapshot.js +1 -1
  39. package/dist/prefetchLatestSnapshot.js.map +1 -1
  40. package/dist/retryUtils.js +4 -4
  41. package/dist/retryUtils.js.map +1 -1
  42. package/dist/socketModule.d.ts +2 -1
  43. package/dist/socketModule.d.ts.map +1 -1
  44. package/dist/socketModule.js +2 -3
  45. package/dist/socketModule.js.map +1 -1
  46. package/dist/vroom.d.ts +1 -1
  47. package/dist/vroom.d.ts.map +1 -1
  48. package/dist/vroom.js +3 -3
  49. package/dist/vroom.js.map +1 -1
  50. package/lib/fetch.d.ts +5 -1
  51. package/lib/fetch.d.ts.map +1 -1
  52. package/lib/fetch.js +5 -5
  53. package/lib/fetch.js.map +1 -1
  54. package/lib/fetchSnapshot.d.ts +1 -1
  55. package/lib/fetchSnapshot.d.ts.map +1 -1
  56. package/lib/fetchSnapshot.js +8 -4
  57. package/lib/fetchSnapshot.js.map +1 -1
  58. package/lib/getFileLink.d.ts +1 -1
  59. package/lib/getFileLink.d.ts.map +1 -1
  60. package/lib/getFileLink.js +3 -2
  61. package/lib/getFileLink.js.map +1 -1
  62. package/lib/index.d.ts +0 -1
  63. package/lib/index.d.ts.map +1 -1
  64. package/lib/index.js +0 -1
  65. package/lib/index.js.map +1 -1
  66. package/lib/mockify.d.ts +60 -0
  67. package/lib/mockify.d.ts.map +1 -0
  68. package/lib/mockify.js +57 -0
  69. package/lib/mockify.js.map +1 -0
  70. package/lib/odspDelayLoadedDeltaStream.js +3 -3
  71. package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
  72. package/lib/odspDocumentDeltaConnection.js +4 -4
  73. package/lib/odspDocumentDeltaConnection.js.map +1 -1
  74. package/lib/odspDocumentStorageManager.js +7 -7
  75. package/lib/odspDocumentStorageManager.js.map +1 -1
  76. package/lib/odspUtils.d.ts +3 -0
  77. package/lib/odspUtils.d.ts.map +1 -1
  78. package/lib/odspUtils.js +9 -9
  79. package/lib/odspUtils.js.map +1 -1
  80. package/lib/opsCaching.js +3 -3
  81. package/lib/opsCaching.js.map +1 -1
  82. package/lib/packageVersion.d.ts +1 -1
  83. package/lib/packageVersion.js +1 -1
  84. package/lib/packageVersion.js.map +1 -1
  85. package/lib/prefetchLatestSnapshot.js +2 -2
  86. package/lib/prefetchLatestSnapshot.js.map +1 -1
  87. package/lib/retryUtils.js +5 -5
  88. package/lib/retryUtils.js.map +1 -1
  89. package/lib/socketModule.d.ts +2 -1
  90. package/lib/socketModule.d.ts.map +1 -1
  91. package/lib/socketModule.js +2 -3
  92. package/lib/socketModule.js.map +1 -1
  93. package/lib/vroom.d.ts +1 -1
  94. package/lib/vroom.d.ts.map +1 -1
  95. package/lib/vroom.js +3 -2
  96. package/lib/vroom.js.map +1 -1
  97. package/package.json +17 -19
  98. package/src/fetch.ts +5 -11
  99. package/src/fetchSnapshot.ts +79 -73
  100. package/src/getFileLink.ts +56 -53
  101. package/src/index.ts +0 -1
  102. package/src/mockify.ts +67 -0
  103. package/src/odspDelayLoadedDeltaStream.ts +3 -3
  104. package/src/odspDocumentDeltaConnection.ts +4 -4
  105. package/src/odspDocumentStorageManager.ts +7 -7
  106. package/src/odspUtils.ts +10 -10
  107. package/src/opsCaching.ts +3 -3
  108. package/src/packageVersion.ts +1 -1
  109. package/src/prefetchLatestSnapshot.ts +2 -2
  110. package/src/retryUtils.ts +5 -5
  111. package/src/socketModule.ts +3 -3
  112. package/src/vroom.ts +92 -89
  113. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
  114. package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
  115. package/dist/odspDocumentServiceFactoryWithCodeSplit.js +0 -20
  116. package/dist/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
  117. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
  118. package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
  119. package/lib/odspDocumentServiceFactoryWithCodeSplit.js +0 -16
  120. package/lib/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
  121. package/src/odspDocumentServiceFactoryWithCodeSplit.ts +0 -33
@@ -5,6 +5,6 @@
5
5
 
6
6
  import { io } from "socket.io-client";
7
7
 
8
- // Import is required for side-effects.
9
- // eslint-disable-next-line unicorn/prefer-export-from
10
- export const SocketIOClientStatic = io;
8
+ import { mockify, type Mockable } from "./mockify.js";
9
+
10
+ export const SocketIOClientStatic: Mockable<typeof io> = mockify(io);
package/src/vroom.ts CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  import { v4 as uuid } from "uuid";
17
17
 
18
18
  import { EpochTracker } from "./epochTracker.js";
19
+ import { mockify } from "./mockify.js";
19
20
  import { getApiRoot } from "./odspUrlHelper.js";
20
21
  import { TokenFetchOptionsEx } from "./odspUtils.js";
21
22
  import { runWithRetry } from "./retryUtils.js";
@@ -42,100 +43,102 @@ interface IJoinSessionBody {
42
43
  * This is optional and used only when collab session is being joined by client acting in app-only mode (i.e. without user context).
43
44
  * If not specified client display name is extracted from the access token that is used to join session.
44
45
  */
45
- export async function fetchJoinSession(
46
- urlParts: IOdspUrlParts,
47
- path: string,
48
- method: "GET" | "POST",
49
- logger: ITelemetryLoggerExt,
50
- getAuthHeader: InstrumentedStorageTokenFetcher,
51
- epochTracker: EpochTracker,
52
- requestSocketToken: boolean,
53
- options: TokenFetchOptionsEx,
54
- disableJoinSessionRefresh: boolean | undefined,
55
- isRefreshingJoinSession: boolean,
56
- displayName: string | undefined,
57
- ): Promise<ISocketStorageDiscovery> {
58
- const apiRoot = getApiRoot(new URL(urlParts.siteUrl));
59
- const url = `${apiRoot}/drives/${urlParts.driveId}/items/${urlParts.itemId}/${path}?ump=1`;
60
- const authHeader = await getAuthHeader(
61
- { ...options, request: { url, method } },
62
- "JoinSession",
63
- );
46
+ export const fetchJoinSession = mockify(
47
+ async (
48
+ urlParts: IOdspUrlParts,
49
+ path: string,
50
+ method: "GET" | "POST",
51
+ logger: ITelemetryLoggerExt,
52
+ getAuthHeader: InstrumentedStorageTokenFetcher,
53
+ epochTracker: EpochTracker,
54
+ requestSocketToken: boolean,
55
+ options: TokenFetchOptionsEx,
56
+ disableJoinSessionRefresh: boolean | undefined,
57
+ isRefreshingJoinSession: boolean,
58
+ displayName: string | undefined,
59
+ ): Promise<ISocketStorageDiscovery> => {
60
+ const apiRoot = getApiRoot(new URL(urlParts.siteUrl));
61
+ const url = `${apiRoot}/drives/${urlParts.driveId}/items/${urlParts.itemId}/${path}?ump=1`;
62
+ const authHeader = await getAuthHeader(
63
+ { ...options, request: { url, method } },
64
+ "JoinSession",
65
+ );
64
66
 
65
- const tokenRefreshProps = options.refresh
66
- ? { hasClaims: !!options.claims, hasTenantId: !!options.tenantId }
67
- : {};
68
- const details: ITelemetryBaseProperties = {
69
- refreshedToken: options.refresh,
70
- requestSocketToken,
71
- ...tokenRefreshProps,
72
- refreshingSession: isRefreshingJoinSession,
73
- };
74
-
75
- return PerformanceEvent.timedExecAsync(
76
- logger,
77
- {
78
- eventName: "JoinSession",
79
- attempts: options.refresh ? 2 : 1,
80
- details: JSON.stringify(details),
67
+ const tokenRefreshProps = options.refresh
68
+ ? { hasClaims: !!options.claims, hasTenantId: !!options.tenantId }
69
+ : {};
70
+ const details: ITelemetryBaseProperties = {
71
+ refreshedToken: options.refresh,
72
+ requestSocketToken,
81
73
  ...tokenRefreshProps,
82
- },
83
- async (event) => {
84
- const formBoundary = uuid();
85
- let postBody = `--${formBoundary}\r\n`;
86
- postBody += `Authorization: ${authHeader}\r\n`;
87
- postBody += `X-HTTP-Method-Override: POST\r\n`;
88
- postBody += `Content-Type: application/json\r\n`;
89
- if (!disableJoinSessionRefresh) {
90
- postBody += `prefer: FluidRemoveCheckAccess\r\n`;
91
- }
92
- postBody += `_post: 1\r\n`;
74
+ refreshingSession: isRefreshingJoinSession,
75
+ };
93
76
 
94
- let requestBody: IJoinSessionBody | undefined;
95
- if (requestSocketToken) {
96
- requestBody = { ...requestBody, requestSocketToken: true };
97
- }
98
- if (displayName) {
99
- requestBody = { ...requestBody, displayName };
100
- }
101
- if (requestBody) {
102
- postBody += `\r\n${JSON.stringify(requestBody)}\r\n`;
103
- }
104
- postBody += `\r\n--${formBoundary}--`;
105
- const headers: { [index: string]: string } = {
106
- "Content-Type": `multipart/form-data;boundary=${formBoundary}`,
107
- };
77
+ return PerformanceEvent.timedExecAsync(
78
+ logger,
79
+ {
80
+ eventName: "JoinSession",
81
+ attempts: options.refresh ? 2 : 1,
82
+ details: JSON.stringify(details),
83
+ ...tokenRefreshProps,
84
+ },
85
+ async (event) => {
86
+ const formBoundary = uuid();
87
+ let postBody = `--${formBoundary}\r\n`;
88
+ postBody += `Authorization: ${authHeader}\r\n`;
89
+ postBody += `X-HTTP-Method-Override: POST\r\n`;
90
+ postBody += `Content-Type: application/json\r\n`;
91
+ if (!disableJoinSessionRefresh) {
92
+ postBody += `prefer: FluidRemoveCheckAccess\r\n`;
93
+ }
94
+ postBody += `_post: 1\r\n`;
108
95
 
109
- const response = await runWithRetry(
110
- async () =>
111
- epochTracker.fetchAndParseAsJSON<ISocketStorageDiscovery>(
112
- url,
113
- { method, headers, body: postBody },
114
- "joinSession",
115
- true,
116
- ),
117
- "joinSession",
118
- logger,
119
- );
96
+ let requestBody: IJoinSessionBody | undefined;
97
+ if (requestSocketToken) {
98
+ requestBody = { ...requestBody, requestSocketToken: true };
99
+ }
100
+ if (displayName) {
101
+ requestBody = { ...requestBody, displayName };
102
+ }
103
+ if (requestBody) {
104
+ postBody += `\r\n${JSON.stringify(requestBody)}\r\n`;
105
+ }
106
+ postBody += `\r\n--${formBoundary}--`;
107
+ const headers: { [index: string]: string } = {
108
+ "Content-Type": `multipart/form-data;boundary=${formBoundary}`,
109
+ };
120
110
 
121
- const socketUrl = response.content.deltaStreamSocketUrl;
122
- // expecting socketUrl to be something like https://{hostName}/...
123
- const webSocketHostName = socketUrl.split("/")[2];
111
+ const response = await runWithRetry(
112
+ async () =>
113
+ epochTracker.fetchAndParseAsJSON<ISocketStorageDiscovery>(
114
+ url,
115
+ { method, headers, body: postBody },
116
+ "joinSession",
117
+ true,
118
+ ),
119
+ "joinSession",
120
+ logger,
121
+ );
124
122
 
125
- // TODO SPO-specific telemetry
126
- event.end({
127
- ...response.propsToLog,
128
- // pushV2 websocket urls will contain pushf
129
- pushv2: socketUrl.includes("pushf"),
130
- webSocketHostName,
131
- refreshSessionDurationSeconds: response.content.refreshSessionDurationSeconds,
132
- });
123
+ const socketUrl = response.content.deltaStreamSocketUrl;
124
+ // expecting socketUrl to be something like https://{hostName}/...
125
+ const webSocketHostName = socketUrl.split("/")[2];
133
126
 
134
- if (response.content.runtimeTenantId && !response.content.tenantId) {
135
- response.content.tenantId = response.content.runtimeTenantId;
136
- }
127
+ // TODO SPO-specific telemetry
128
+ event.end({
129
+ ...response.propsToLog,
130
+ // pushV2 websocket urls will contain pushf
131
+ pushv2: socketUrl.includes("pushf"),
132
+ webSocketHostName,
133
+ refreshSessionDurationSeconds: response.content.refreshSessionDurationSeconds,
134
+ });
137
135
 
138
- return response.content;
139
- },
140
- );
141
- }
136
+ if (response.content.runtimeTenantId && !response.content.tenantId) {
137
+ response.content.tenantId = response.content.runtimeTenantId;
138
+ }
139
+
140
+ return response.content;
141
+ },
142
+ );
143
+ },
144
+ );
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
6
- import { HostStoragePolicy, IPersistedCache, OdspResourceTokenFetchOptions, TokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
7
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
8
- /**
9
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
10
- * other dynamically imported module.
11
- * @internal
12
- */
13
- export declare class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
14
- constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.ts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EACZ,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,qBAAa,uCACZ,SAAQ,8BACR,YAAW,uBAAuB;gBAGjC,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /*!
3
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
4
- * Licensed under the MIT License.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.OdspDocumentServiceFactoryWithCodeSplit = void 0;
8
- const odspDocumentServiceFactoryCore_js_1 = require("./odspDocumentServiceFactoryCore.js");
9
- /**
10
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
11
- * other dynamically imported module.
12
- * @internal
13
- */
14
- class OdspDocumentServiceFactoryWithCodeSplit extends odspDocumentServiceFactoryCore_js_1.OdspDocumentServiceFactoryCore {
15
- constructor(getStorageToken, getWebsocketToken, persistedCache, hostPolicy) {
16
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
17
- }
18
- }
19
- exports.OdspDocumentServiceFactoryWithCodeSplit = OdspDocumentServiceFactoryWithCodeSplit;
20
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.js","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAUH,2FAAqF;AAErF;;;;GAIG;AACH,MAAa,uCACZ,SAAQ,kEAA8B;IAGtC,YACC,eAA4D,EAC5D,iBAA0E,EAC1E,cAAgC,EAChC,UAA8B;QAE9B,KAAK,CAAC,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACD;AAZD,0FAYC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDocumentServiceFactory } from \"@fluidframework/driver-definitions/internal\";\nimport {\n\tHostStoragePolicy,\n\tIPersistedCache,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n} from \"@fluidframework/odsp-driver-definitions/internal\";\n\nimport { OdspDocumentServiceFactoryCore } from \"./odspDocumentServiceFactoryCore.js\";\n\n/**\n * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the\n * other dynamically imported module.\n * @internal\n */\nexport class OdspDocumentServiceFactoryWithCodeSplit\n\textends OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory\n{\n\tconstructor(\n\t\tgetStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tgetWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tpersistedCache?: IPersistedCache,\n\t\thostPolicy?: HostStoragePolicy,\n\t) {\n\t\tsuper(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);\n\t}\n}\n"]}
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
6
- import { HostStoragePolicy, IPersistedCache, OdspResourceTokenFetchOptions, TokenFetcher } from "@fluidframework/odsp-driver-definitions/internal";
7
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
8
- /**
9
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
10
- * other dynamically imported module.
11
- * @internal
12
- */
13
- export declare class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore implements IDocumentServiceFactory {
14
- constructor(getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>, getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined, persistedCache?: IPersistedCache, hostPolicy?: HostStoragePolicy);
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.d.ts","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EACN,iBAAiB,EACjB,eAAe,EACf,6BAA6B,EAC7B,YAAY,EACZ,MAAM,kDAAkD,CAAC;AAE1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,qBAAa,uCACZ,SAAQ,8BACR,YAAW,uBAAuB;gBAGjC,eAAe,EAAE,YAAY,CAAC,6BAA6B,CAAC,EAC5D,iBAAiB,EAAE,YAAY,CAAC,6BAA6B,CAAC,GAAG,SAAS,EAC1E,cAAc,CAAC,EAAE,eAAe,EAChC,UAAU,CAAC,EAAE,iBAAiB;CAI/B"}
@@ -1,16 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
6
- /**
7
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
8
- * other dynamically imported module.
9
- * @internal
10
- */
11
- export class OdspDocumentServiceFactoryWithCodeSplit extends OdspDocumentServiceFactoryCore {
12
- constructor(getStorageToken, getWebsocketToken, persistedCache, hostPolicy) {
13
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
14
- }
15
- }
16
- //# sourceMappingURL=odspDocumentServiceFactoryWithCodeSplit.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"odspDocumentServiceFactoryWithCodeSplit.js","sourceRoot":"","sources":["../src/odspDocumentServiceFactoryWithCodeSplit.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAUH,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAErF;;;;GAIG;AACH,MAAM,OAAO,uCACZ,SAAQ,8BAA8B;IAGtC,YACC,eAA4D,EAC5D,iBAA0E,EAC1E,cAAgC,EAChC,UAA8B;QAE9B,KAAK,CAAC,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;IACvE,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDocumentServiceFactory } from \"@fluidframework/driver-definitions/internal\";\nimport {\n\tHostStoragePolicy,\n\tIPersistedCache,\n\tOdspResourceTokenFetchOptions,\n\tTokenFetcher,\n} from \"@fluidframework/odsp-driver-definitions/internal\";\n\nimport { OdspDocumentServiceFactoryCore } from \"./odspDocumentServiceFactoryCore.js\";\n\n/**\n * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the\n * other dynamically imported module.\n * @internal\n */\nexport class OdspDocumentServiceFactoryWithCodeSplit\n\textends OdspDocumentServiceFactoryCore\n\timplements IDocumentServiceFactory\n{\n\tconstructor(\n\t\tgetStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,\n\t\tgetWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,\n\t\tpersistedCache?: IPersistedCache,\n\t\thostPolicy?: HostStoragePolicy,\n\t) {\n\t\tsuper(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);\n\t}\n}\n"]}
@@ -1,33 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- import { IDocumentServiceFactory } from "@fluidframework/driver-definitions/internal";
7
- import {
8
- HostStoragePolicy,
9
- IPersistedCache,
10
- OdspResourceTokenFetchOptions,
11
- TokenFetcher,
12
- } from "@fluidframework/odsp-driver-definitions/internal";
13
-
14
- import { OdspDocumentServiceFactoryCore } from "./odspDocumentServiceFactoryCore.js";
15
-
16
- /**
17
- * @deprecated This is deprecated in favour of OdspDocumentServiceFactory as the socket io is now loaded inside the
18
- * other dynamically imported module.
19
- * @internal
20
- */
21
- export class OdspDocumentServiceFactoryWithCodeSplit
22
- extends OdspDocumentServiceFactoryCore
23
- implements IDocumentServiceFactory
24
- {
25
- constructor(
26
- getStorageToken: TokenFetcher<OdspResourceTokenFetchOptions>,
27
- getWebsocketToken: TokenFetcher<OdspResourceTokenFetchOptions> | undefined,
28
- persistedCache?: IPersistedCache,
29
- hostPolicy?: HostStoragePolicy,
30
- ) {
31
- super(getStorageToken, getWebsocketToken, persistedCache, hostPolicy);
32
- }
33
- }