@fluidframework/routerlicious-urlresolver 2.0.0-dev-rc.3.0.0.254274 → 2.0.0-dev-rc.3.0.0.254674

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.
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/dist/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/lib/alpha.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/lib/beta.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ /*
7
+ * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
8
+ * Generated by "flub generate entrypoints" in @fluidframework/build-tools.
9
+ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/routerlicious-urlresolver",
3
- "version": "2.0.0-dev-rc.3.0.0.254274",
3
+ "version": "2.0.0-dev-rc.3.0.0.254674",
4
4
  "description": "Url Resolver for routerlicious urls.",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -15,11 +15,11 @@
15
15
  "exports": {
16
16
  ".": {
17
17
  "import": {
18
- "types": "./lib/routerlicious-urlresolver-public.d.ts",
18
+ "types": "./lib/public.d.ts",
19
19
  "default": "./lib/index.js"
20
20
  },
21
21
  "require": {
22
- "types": "./dist/routerlicious-urlresolver-public.d.ts",
22
+ "types": "./dist/public.d.ts",
23
23
  "default": "./dist/index.js"
24
24
  }
25
25
  },
@@ -35,21 +35,21 @@
35
35
  }
36
36
  },
37
37
  "main": "dist/index.js",
38
- "types": "./dist/routerlicious-urlresolver-public.d.ts",
38
+ "types": "./dist/public.d.ts",
39
39
  "dependencies": {
40
- "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254274",
41
- "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254274",
42
- "@fluidframework/driver-definitions": "2.0.0-dev-rc.3.0.0.254274",
40
+ "@fluidframework/core-interfaces": "2.0.0-dev-rc.3.0.0.254674",
41
+ "@fluidframework/core-utils": "2.0.0-dev-rc.3.0.0.254674",
42
+ "@fluidframework/driver-definitions": "2.0.0-dev-rc.3.0.0.254674",
43
43
  "@fluidframework/protocol-definitions": "^3.2.0",
44
44
  "nconf": "^0.12.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@arethetypeswrong/cli": "^0.15.2",
48
48
  "@biomejs/biome": "^1.6.2",
49
- "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254274",
50
- "@fluid-tools/build-cli": "^0.34.0",
49
+ "@fluid-internal/mocha-test-setup": "2.0.0-dev-rc.3.0.0.254674",
50
+ "@fluid-tools/build-cli": "^0.35.0",
51
51
  "@fluidframework/build-common": "^2.0.3",
52
- "@fluidframework/build-tools": "^0.34.0",
52
+ "@fluidframework/build-tools": "^0.35.0",
53
53
  "@fluidframework/eslint-config-fluid": "^5.1.0",
54
54
  "@fluidframework/routerlicious-urlresolver-previous": "npm:@fluidframework/routerlicious-urlresolver@2.0.0-internal.8.0.0",
55
55
  "@microsoft/api-extractor": "^7.42.3",
@@ -68,29 +68,17 @@
68
68
  "rimraf": "^4.4.0",
69
69
  "typescript": "~5.1.6"
70
70
  },
71
- "fluidBuild": {
72
- "tasks": {
73
- "build:docs": {
74
- "dependsOn": [
75
- "...",
76
- "api-extractor:commonjs",
77
- "api-extractor:esnext"
78
- ],
79
- "script": false
80
- }
81
- }
82
- },
83
71
  "typeValidation": {
84
72
  "broken": {}
85
73
  },
86
74
  "scripts": {
87
75
  "api": "fluid-build . --task api",
88
- "api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
89
- "api-extractor:esnext": "api-extractor run --local",
76
+ "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist",
77
+ "api-extractor:esnext": "flub generate entrypoints --outDir ./lib",
90
78
  "build": "fluid-build . --task build",
91
79
  "build:commonjs": "fluid-build . --task commonjs",
92
80
  "build:compile": "fluid-build . --task compile",
93
- "build:docs": "fluid-build . --task api",
81
+ "build:docs": "api-extractor run --local",
94
82
  "build:esnext": "tsc --project ./tsconfig.json",
95
83
  "build:test": "npm run build:test:esm && npm run build:test:cjs",
96
84
  "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
@@ -1,8 +0,0 @@
1
- {
2
- "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
4
- // CJS is actually secondary; so, no report.
5
- "apiReport": {
6
- "enabled": false
7
- }
8
- }
@@ -1,13 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: RouterliciousUrlResolver */
12
-
13
- export { }
@@ -1,17 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: IResolvedUrl */
12
-
13
- /* Excluded from this release type: IUrlResolver */
14
-
15
- /* Excluded from this release type: RouterliciousUrlResolver */
16
-
17
- export { }
@@ -1,17 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: IResolvedUrl */
12
-
13
- /* Excluded from this release type: IUrlResolver */
14
-
15
- /* Excluded from this release type: RouterliciousUrlResolver */
16
-
17
- export { }
@@ -1,44 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /**
8
- * @internal
9
- */
10
- export declare interface IAlfredUser extends IUser {
11
- displayName: string;
12
- name: string;
13
- }
14
-
15
- /**
16
- * @internal
17
- */
18
- export declare interface IConfig {
19
- serverUrl: string;
20
- blobStorageUrl: string;
21
- tenantId: string;
22
- documentId: string;
23
- }
24
-
25
- /**
26
- * @internal
27
- */
28
- export declare class RouterliciousUrlResolver implements IUrlResolver {
29
- private readonly config;
30
- private readonly getToken;
31
- private readonly hostUrl;
32
- constructor(config: {
33
- provider: Provider;
34
- tenantId: string;
35
- documentId: string;
36
- } | undefined, getToken: () => Promise<string>, hostUrl: string);
37
- /**
38
- * Handles a request and returns the relevant endpoints for the environment
39
- */
40
- resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
41
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
42
- }
43
-
44
- export { }
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
9
- }
10
- ]
11
- }
@@ -1,13 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: RouterliciousUrlResolver */
12
-
13
- export { }
@@ -1,17 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: IResolvedUrl */
12
-
13
- /* Excluded from this release type: IUrlResolver */
14
-
15
- /* Excluded from this release type: RouterliciousUrlResolver */
16
-
17
- export { }
@@ -1,17 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /* Excluded from this release type: IAlfredUser */
8
-
9
- /* Excluded from this release type: IConfig */
10
-
11
- /* Excluded from this release type: IResolvedUrl */
12
-
13
- /* Excluded from this release type: IUrlResolver */
14
-
15
- /* Excluded from this release type: RouterliciousUrlResolver */
16
-
17
- export { }
@@ -1,44 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions/internal';
3
- import { IUrlResolver } from '@fluidframework/driver-definitions/internal';
4
- import { IUser } from '@fluidframework/protocol-definitions';
5
- import { Provider } from 'nconf';
6
-
7
- /**
8
- * @internal
9
- */
10
- export declare interface IAlfredUser extends IUser {
11
- displayName: string;
12
- name: string;
13
- }
14
-
15
- /**
16
- * @internal
17
- */
18
- export declare interface IConfig {
19
- serverUrl: string;
20
- blobStorageUrl: string;
21
- tenantId: string;
22
- documentId: string;
23
- }
24
-
25
- /**
26
- * @internal
27
- */
28
- export declare class RouterliciousUrlResolver implements IUrlResolver {
29
- private readonly config;
30
- private readonly getToken;
31
- private readonly hostUrl;
32
- constructor(config: {
33
- provider: Provider;
34
- tenantId: string;
35
- documentId: string;
36
- } | undefined, getToken: () => Promise<string>, hostUrl: string);
37
- /**
38
- * Handles a request and returns the relevant endpoints for the environment
39
- */
40
- resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
41
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
42
- }
43
-
44
- export { }