@fluidframework/driver-utils 2.0.0-internal.4.4.0 → 2.0.0-internal.5.0.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 +4 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/insecureUrlResolver.d.ts.map +1 -1
- package/dist/insecureUrlResolver.js +1 -2
- package/dist/insecureUrlResolver.js.map +1 -1
- package/dist/networkUtils.d.ts +3 -2
- package/dist/networkUtils.d.ts.map +1 -1
- package/dist/networkUtils.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/parallelRequests.d.ts +4 -3
- package/dist/parallelRequests.d.ts.map +1 -1
- package/dist/parallelRequests.js.map +1 -1
- package/dist/runWithRetry.d.ts +2 -2
- package/dist/runWithRetry.d.ts.map +1 -1
- package/dist/runWithRetry.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/insecureUrlResolver.d.ts.map +1 -1
- package/lib/insecureUrlResolver.js +2 -3
- package/lib/insecureUrlResolver.js.map +1 -1
- package/lib/networkUtils.d.ts +3 -2
- package/lib/networkUtils.d.ts.map +1 -1
- package/lib/networkUtils.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/parallelRequests.d.ts +4 -3
- package/lib/parallelRequests.d.ts.map +1 -1
- package/lib/parallelRequests.js.map +1 -1
- package/lib/runWithRetry.d.ts +2 -2
- package/lib/runWithRetry.d.ts.map +1 -1
- package/lib/runWithRetry.js.map +1 -1
- package/package.json +18 -6
- package/src/index.ts +0 -1
- package/src/insecureUrlResolver.ts +4 -11
- package/src/networkUtils.ts +3 -2
- package/src/packageVersion.ts +1 -1
- package/src/parallelRequests.ts +5 -5
- package/src/runWithRetry.ts +2 -2
- package/dist/fluidResolvedUrl.d.ts +0 -16
- package/dist/fluidResolvedUrl.d.ts.map +0 -1
- package/dist/fluidResolvedUrl.js +0 -24
- package/dist/fluidResolvedUrl.js.map +0 -1
- package/lib/fluidResolvedUrl.d.ts +0 -16
- package/lib/fluidResolvedUrl.d.ts.map +0 -1
- package/lib/fluidResolvedUrl.js +0 -19
- package/lib/fluidResolvedUrl.js.map +0 -1
- package/src/fluidResolvedUrl.ts +0 -26
package/dist/fluidResolvedUrl.js
DELETED
|
@@ -1,24 +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.ensureFluidResolvedUrl = exports.isFluidResolvedUrl = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
10
|
-
* so this method is no longer necessary.
|
|
11
|
-
*/
|
|
12
|
-
const isFluidResolvedUrl = (resolved) => (resolved === null || resolved === void 0 ? void 0 : resolved.type) === "fluid";
|
|
13
|
-
exports.isFluidResolvedUrl = isFluidResolvedUrl;
|
|
14
|
-
/**
|
|
15
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
16
|
-
* so this method is no longer necessary.
|
|
17
|
-
*/
|
|
18
|
-
function ensureFluidResolvedUrl(resolved) {
|
|
19
|
-
if (!(0, exports.isFluidResolvedUrl)(resolved)) {
|
|
20
|
-
throw new Error(`resolved is not a Fluid url. Type: ${resolved === null || resolved === void 0 ? void 0 : resolved.type}`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ensureFluidResolvedUrl = ensureFluidResolvedUrl;
|
|
24
|
-
//# sourceMappingURL=fluidResolvedUrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluidResolvedUrl.js","sourceRoot":"","sources":["../src/fluidResolvedUrl.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;;GAGG;AACI,MAAM,kBAAkB,GAAG,CACjC,QAAkC,EACF,EAAE,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,MAAK,OAAO,CAAC;AAFlD,QAAA,kBAAkB,sBAEgC;AAE/D;;;GAGG;AACH,SAAgB,sBAAsB,CACrC,QAAkC;IAElC,IAAI,CAAC,IAAA,0BAAkB,EAAC,QAAQ,CAAC,EAAE;QAClC,MAAM,IAAI,KAAK,CAAC,sCAAsC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC,CAAC;KACxE;AACF,CAAC;AAND,wDAMC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl, IFluidResolvedUrl } from \"@fluidframework/driver-definitions\";\n\n/**\n * @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,\n * so this method is no longer necessary.\n */\nexport const isFluidResolvedUrl = (\n\tresolved: IResolvedUrl | undefined,\n): resolved is IFluidResolvedUrl => resolved?.type === \"fluid\";\n\n/**\n * @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,\n * so this method is no longer necessary.\n */\nexport function ensureFluidResolvedUrl(\n\tresolved: IResolvedUrl | undefined,\n): asserts resolved is IFluidResolvedUrl {\n\tif (!isFluidResolvedUrl(resolved)) {\n\t\tthrow new Error(`resolved is not a Fluid url. Type: ${resolved?.type}`);\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 { IResolvedUrl, IFluidResolvedUrl } from "@fluidframework/driver-definitions";
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
8
|
-
* so this method is no longer necessary.
|
|
9
|
-
*/
|
|
10
|
-
export declare const isFluidResolvedUrl: (resolved: IResolvedUrl | undefined) => resolved is IFluidResolvedUrl;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
13
|
-
* so this method is no longer necessary.
|
|
14
|
-
*/
|
|
15
|
-
export declare function ensureFluidResolvedUrl(resolved: IResolvedUrl | undefined): asserts resolved is IFluidResolvedUrl;
|
|
16
|
-
//# sourceMappingURL=fluidResolvedUrl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluidResolvedUrl.d.ts","sourceRoot":"","sources":["../src/fluidResolvedUrl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAErF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,aACpB,YAAY,GAAG,SAAS,kCAC2B,CAAC;AAE/D;;;GAGG;AACH,wBAAgB,sBAAsB,CACrC,QAAQ,EAAE,YAAY,GAAG,SAAS,GAChC,OAAO,CAAC,QAAQ,IAAI,iBAAiB,CAIvC"}
|
package/lib/fluidResolvedUrl.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
7
|
-
* so this method is no longer necessary.
|
|
8
|
-
*/
|
|
9
|
-
export const isFluidResolvedUrl = (resolved) => (resolved === null || resolved === void 0 ? void 0 : resolved.type) === "fluid";
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
12
|
-
* so this method is no longer necessary.
|
|
13
|
-
*/
|
|
14
|
-
export function ensureFluidResolvedUrl(resolved) {
|
|
15
|
-
if (!isFluidResolvedUrl(resolved)) {
|
|
16
|
-
throw new Error(`resolved is not a Fluid url. Type: ${resolved === null || resolved === void 0 ? void 0 : resolved.type}`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=fluidResolvedUrl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fluidResolvedUrl.js","sourceRoot":"","sources":["../src/fluidResolvedUrl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CACjC,QAAkC,EACF,EAAE,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,MAAK,OAAO,CAAC;AAE/D;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CACrC,QAAkC;IAElC,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE;QAClC,MAAM,IAAI,KAAK,CAAC,sCAAsC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,EAAE,CAAC,CAAC;KACxE;AACF,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IResolvedUrl, IFluidResolvedUrl } from \"@fluidframework/driver-definitions\";\n\n/**\n * @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,\n * so this method is no longer necessary.\n */\nexport const isFluidResolvedUrl = (\n\tresolved: IResolvedUrl | undefined,\n): resolved is IFluidResolvedUrl => resolved?.type === \"fluid\";\n\n/**\n * @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,\n * so this method is no longer necessary.\n */\nexport function ensureFluidResolvedUrl(\n\tresolved: IResolvedUrl | undefined,\n): asserts resolved is IFluidResolvedUrl {\n\tif (!isFluidResolvedUrl(resolved)) {\n\t\tthrow new Error(`resolved is not a Fluid url. Type: ${resolved?.type}`);\n\t}\n}\n"]}
|
package/src/fluidResolvedUrl.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import { IResolvedUrl, IFluidResolvedUrl } from "@fluidframework/driver-definitions";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
10
|
-
* so this method is no longer necessary.
|
|
11
|
-
*/
|
|
12
|
-
export const isFluidResolvedUrl = (
|
|
13
|
-
resolved: IResolvedUrl | undefined,
|
|
14
|
-
): resolved is IFluidResolvedUrl => resolved?.type === "fluid";
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated In the next major release all IResolvedUrl will be IFluidResolvedUrl,
|
|
18
|
-
* so this method is no longer necessary.
|
|
19
|
-
*/
|
|
20
|
-
export function ensureFluidResolvedUrl(
|
|
21
|
-
resolved: IResolvedUrl | undefined,
|
|
22
|
-
): asserts resolved is IFluidResolvedUrl {
|
|
23
|
-
if (!isFluidResolvedUrl(resolved)) {
|
|
24
|
-
throw new Error(`resolved is not a Fluid url. Type: ${resolved?.type}`);
|
|
25
|
-
}
|
|
26
|
-
}
|