@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.
- package/CHANGELOG.md +16 -0
- package/README.md +1 -0
- package/dist/fetch.d.ts +5 -1
- package/dist/fetch.d.ts.map +1 -1
- package/dist/fetch.js +5 -9
- package/dist/fetch.js.map +1 -1
- package/dist/fetchSnapshot.d.ts +1 -1
- package/dist/fetchSnapshot.d.ts.map +1 -1
- package/dist/fetchSnapshot.js +8 -5
- package/dist/fetchSnapshot.js.map +1 -1
- package/dist/getFileLink.d.ts +1 -1
- package/dist/getFileLink.d.ts.map +1 -1
- package/dist/getFileLink.js +3 -3
- package/dist/getFileLink.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/mockify.d.ts +60 -0
- package/dist/mockify.d.ts.map +1 -0
- package/dist/mockify.js +61 -0
- package/dist/mockify.js.map +1 -0
- package/dist/odspDelayLoadedDeltaStream.js +2 -2
- package/dist/odspDelayLoadedDeltaStream.js.map +1 -1
- package/dist/odspDocumentDeltaConnection.js +3 -3
- package/dist/odspDocumentDeltaConnection.js.map +1 -1
- package/dist/odspDocumentStorageManager.js +6 -6
- package/dist/odspDocumentStorageManager.js.map +1 -1
- package/dist/odspUtils.d.ts +3 -0
- package/dist/odspUtils.d.ts.map +1 -1
- package/dist/odspUtils.js +9 -9
- package/dist/odspUtils.js.map +1 -1
- package/dist/opsCaching.js +2 -2
- package/dist/opsCaching.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/prefetchLatestSnapshot.js +1 -1
- package/dist/prefetchLatestSnapshot.js.map +1 -1
- package/dist/retryUtils.js +4 -4
- package/dist/retryUtils.js.map +1 -1
- package/dist/socketModule.d.ts +2 -1
- package/dist/socketModule.d.ts.map +1 -1
- package/dist/socketModule.js +2 -3
- package/dist/socketModule.js.map +1 -1
- package/dist/vroom.d.ts +1 -1
- package/dist/vroom.d.ts.map +1 -1
- package/dist/vroom.js +3 -3
- package/dist/vroom.js.map +1 -1
- package/lib/fetch.d.ts +5 -1
- package/lib/fetch.d.ts.map +1 -1
- package/lib/fetch.js +5 -5
- package/lib/fetch.js.map +1 -1
- package/lib/fetchSnapshot.d.ts +1 -1
- package/lib/fetchSnapshot.d.ts.map +1 -1
- package/lib/fetchSnapshot.js +8 -4
- package/lib/fetchSnapshot.js.map +1 -1
- package/lib/getFileLink.d.ts +1 -1
- package/lib/getFileLink.d.ts.map +1 -1
- package/lib/getFileLink.js +3 -2
- package/lib/getFileLink.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/mockify.d.ts +60 -0
- package/lib/mockify.d.ts.map +1 -0
- package/lib/mockify.js +57 -0
- package/lib/mockify.js.map +1 -0
- package/lib/odspDelayLoadedDeltaStream.js +3 -3
- package/lib/odspDelayLoadedDeltaStream.js.map +1 -1
- package/lib/odspDocumentDeltaConnection.js +4 -4
- package/lib/odspDocumentDeltaConnection.js.map +1 -1
- package/lib/odspDocumentStorageManager.js +7 -7
- package/lib/odspDocumentStorageManager.js.map +1 -1
- package/lib/odspUtils.d.ts +3 -0
- package/lib/odspUtils.d.ts.map +1 -1
- package/lib/odspUtils.js +9 -9
- package/lib/odspUtils.js.map +1 -1
- package/lib/opsCaching.js +3 -3
- package/lib/opsCaching.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/prefetchLatestSnapshot.js +2 -2
- package/lib/prefetchLatestSnapshot.js.map +1 -1
- package/lib/retryUtils.js +5 -5
- package/lib/retryUtils.js.map +1 -1
- package/lib/socketModule.d.ts +2 -1
- package/lib/socketModule.d.ts.map +1 -1
- package/lib/socketModule.js +2 -3
- package/lib/socketModule.js.map +1 -1
- package/lib/vroom.d.ts +1 -1
- package/lib/vroom.d.ts.map +1 -1
- package/lib/vroom.js +3 -2
- package/lib/vroom.js.map +1 -1
- package/package.json +17 -19
- package/src/fetch.ts +5 -11
- package/src/fetchSnapshot.ts +79 -73
- package/src/getFileLink.ts +56 -53
- package/src/index.ts +0 -1
- package/src/mockify.ts +67 -0
- package/src/odspDelayLoadedDeltaStream.ts +3 -3
- package/src/odspDocumentDeltaConnection.ts +4 -4
- package/src/odspDocumentStorageManager.ts +7 -7
- package/src/odspUtils.ts +10 -10
- package/src/opsCaching.ts +3 -3
- package/src/packageVersion.ts +1 -1
- package/src/prefetchLatestSnapshot.ts +2 -2
- package/src/retryUtils.ts +5 -5
- package/src/socketModule.ts +3 -3
- package/src/vroom.ts +92 -89
- package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
- package/dist/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
- package/dist/odspDocumentServiceFactoryWithCodeSplit.js +0 -20
- package/dist/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
- package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts +0 -16
- package/lib/odspDocumentServiceFactoryWithCodeSplit.d.ts.map +0 -1
- package/lib/odspDocumentServiceFactoryWithCodeSplit.js +0 -16
- package/lib/odspDocumentServiceFactoryWithCodeSplit.js.map +0 -1
- package/src/odspDocumentServiceFactoryWithCodeSplit.ts +0 -33
package/src/socketModule.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
import { io } from "socket.io-client";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
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
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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
|
-
|
|
135
|
-
|
|
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
|
-
|
|
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
|
-
}
|