@fluidframework/tinylicious-driver 2.0.0-internal.7.1.0 → 2.0.0-internal.7.2.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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/tinylicious-driver
2
2
 
3
+ ## 2.0.0-internal.7.2.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.0.0-internal.7.1.0
4
8
 
5
9
  Dependency updates only.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/tinylicious-driver",
3
- "version": "2.0.0-internal.7.1.0",
3
+ "version": "2.0.0-internal.7.2.0",
4
4
  "description": "Driver for tinylicious",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -14,28 +14,27 @@
14
14
  "module": "lib/index.js",
15
15
  "types": "dist/index.d.ts",
16
16
  "dependencies": {
17
- "@fluidframework/core-interfaces": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0",
18
- "@fluidframework/driver-definitions": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0",
19
- "@fluidframework/driver-utils": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0",
17
+ "@fluidframework/core-interfaces": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
18
+ "@fluidframework/driver-definitions": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
19
+ "@fluidframework/driver-utils": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
20
20
  "@fluidframework/protocol-definitions": "^3.0.0",
21
- "@fluidframework/routerlicious-driver": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0",
21
+ "@fluidframework/routerlicious-driver": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
22
22
  "jsrsasign": "^10.5.25",
23
23
  "uuid": "^9.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@fluid-tools/build-cli": "^0.25.0",
27
- "@fluidframework/build-common": "^2.0.1",
28
- "@fluidframework/build-tools": "^0.25.0",
26
+ "@fluid-tools/build-cli": "^0.26.1",
27
+ "@fluidframework/build-common": "^2.0.3",
28
+ "@fluidframework/build-tools": "^0.26.1",
29
29
  "@fluidframework/eslint-config-fluid": "^3.0.0",
30
- "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.1.0 <2.0.0-internal.7.2.0",
30
+ "@fluidframework/mocha-test-setup": ">=2.0.0-internal.7.2.0 <2.0.0-internal.7.3.0",
31
31
  "@fluidframework/test-tools": "^1.0.195075",
32
- "@fluidframework/tinylicious-driver-previous": "npm:@fluidframework/tinylicious-driver@2.0.0-internal.7.0.0",
32
+ "@fluidframework/tinylicious-driver-previous": "npm:@fluidframework/tinylicious-driver@2.0.0-internal.7.1.0",
33
33
  "@microsoft/api-extractor": "^7.37.0",
34
34
  "@types/jsrsasign": "^8.0.8",
35
35
  "@types/mocha": "^9.1.1",
36
36
  "@types/node": "^16.18.38",
37
37
  "@types/uuid": "^9.0.2",
38
- "copyfiles": "^2.4.1",
39
38
  "cross-env": "^7.0.3",
40
39
  "eslint": "~8.50.0",
41
40
  "mocha": "^10.2.0",
@@ -54,7 +53,7 @@
54
53
  "build:esnext": "tsc --project ./tsconfig.esnext.json",
55
54
  "build:test": "tsc --project ./src/test/tsconfig.json",
56
55
  "ci:build:docs": "api-extractor run",
57
- "clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
56
+ "clean": "rimraf --glob dist lib \"*.tsbuildinfo\" \"*.build.log\" _api-extractor-temp nyc",
58
57
  "eslint": "eslint --format stylish src",
59
58
  "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
60
59
  "format": "npm run prettier:fix",
@@ -1,76 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
3
- import { ITokenProvider } from '@fluidframework/routerlicious-driver';
4
- import { ITokenResponse } from '@fluidframework/routerlicious-driver';
5
- import { IUrlResolver } from '@fluidframework/driver-definitions';
6
- import { ScopeType } from '@fluidframework/protocol-definitions';
7
-
8
- /**
9
- * Creates a Routerlicious {@link @fluidframework/core-interfaces#IRequest}.
10
- *
11
- * @public
12
- */
13
- export declare const createTinyliciousCreateNewRequest: (documentId?: string) => IRequest;
14
-
15
- /**
16
- * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
17
- *
18
- * @public
19
- */
20
- export declare const defaultTinyliciousEndpoint = "http://localhost";
21
-
22
- /**
23
- * Default endpoint port. Will be used by the service if the consumer does not specify a port.
24
- *
25
- * @public
26
- */
27
- export declare const defaultTinyliciousPort = 7070;
28
-
29
- /**
30
- * As the name implies this is not secure and should not be used in production. It simply makes the example easier
31
- * to get up and running.
32
- *
33
- * @public
34
- */
35
- export declare class InsecureTinyliciousTokenProvider implements ITokenProvider {
36
- /**
37
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
38
- * will use the default scopes which are document read, write and summarizer write.
39
- *
40
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
41
- *
42
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
43
- */
44
- private readonly scopes?;
45
- constructor(
46
- /**
47
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
48
- * will use the default scopes which are document read, write and summarizer write.
49
- *
50
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
51
- *
52
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
53
- */
54
- scopes?: ScopeType[] | undefined);
55
- fetchOrdererToken(tenantId: string, documentId?: string): Promise<ITokenResponse>;
56
- fetchStorageToken(tenantId: string, documentId: string): Promise<ITokenResponse>;
57
- private getSignedToken;
58
- }
59
-
60
- /**
61
- * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
62
- * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's
63
- * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):
64
- * documentId/containerRelativePathing
65
- *
66
- * @public
67
- */
68
- export declare class InsecureTinyliciousUrlResolver implements IUrlResolver {
69
- private readonly fluidProtocolEndpoint;
70
- private readonly tinyliciousEndpoint;
71
- constructor(port?: number, endpoint?: string);
72
- resolve(request: IRequest): Promise<IResolvedUrl>;
73
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
74
- }
75
-
76
- export { }
@@ -1,76 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
3
- import { ITokenProvider } from '@fluidframework/routerlicious-driver';
4
- import { ITokenResponse } from '@fluidframework/routerlicious-driver';
5
- import { IUrlResolver } from '@fluidframework/driver-definitions';
6
- import { ScopeType } from '@fluidframework/protocol-definitions';
7
-
8
- /**
9
- * Creates a Routerlicious {@link @fluidframework/core-interfaces#IRequest}.
10
- *
11
- * @public
12
- */
13
- export declare const createTinyliciousCreateNewRequest: (documentId?: string) => IRequest;
14
-
15
- /**
16
- * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
17
- *
18
- * @public
19
- */
20
- export declare const defaultTinyliciousEndpoint = "http://localhost";
21
-
22
- /**
23
- * Default endpoint port. Will be used by the service if the consumer does not specify a port.
24
- *
25
- * @public
26
- */
27
- export declare const defaultTinyliciousPort = 7070;
28
-
29
- /**
30
- * As the name implies this is not secure and should not be used in production. It simply makes the example easier
31
- * to get up and running.
32
- *
33
- * @public
34
- */
35
- export declare class InsecureTinyliciousTokenProvider implements ITokenProvider {
36
- /**
37
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
38
- * will use the default scopes which are document read, write and summarizer write.
39
- *
40
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
41
- *
42
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
43
- */
44
- private readonly scopes?;
45
- constructor(
46
- /**
47
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
48
- * will use the default scopes which are document read, write and summarizer write.
49
- *
50
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
51
- *
52
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
53
- */
54
- scopes?: ScopeType[] | undefined);
55
- fetchOrdererToken(tenantId: string, documentId?: string): Promise<ITokenResponse>;
56
- fetchStorageToken(tenantId: string, documentId: string): Promise<ITokenResponse>;
57
- private getSignedToken;
58
- }
59
-
60
- /**
61
- * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
62
- * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's
63
- * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):
64
- * documentId/containerRelativePathing
65
- *
66
- * @public
67
- */
68
- export declare class InsecureTinyliciousUrlResolver implements IUrlResolver {
69
- private readonly fluidProtocolEndpoint;
70
- private readonly tinyliciousEndpoint;
71
- constructor(port?: number, endpoint?: string);
72
- resolve(request: IRequest): Promise<IResolvedUrl>;
73
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
74
- }
75
-
76
- export { }
@@ -1,76 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
3
- import { ITokenProvider } from '@fluidframework/routerlicious-driver';
4
- import { ITokenResponse } from '@fluidframework/routerlicious-driver';
5
- import { IUrlResolver } from '@fluidframework/driver-definitions';
6
- import { ScopeType } from '@fluidframework/protocol-definitions';
7
-
8
- /**
9
- * Creates a Routerlicious {@link @fluidframework/core-interfaces#IRequest}.
10
- *
11
- * @public
12
- */
13
- export declare const createTinyliciousCreateNewRequest: (documentId?: string) => IRequest;
14
-
15
- /**
16
- * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
17
- *
18
- * @public
19
- */
20
- export declare const defaultTinyliciousEndpoint = "http://localhost";
21
-
22
- /**
23
- * Default endpoint port. Will be used by the service if the consumer does not specify a port.
24
- *
25
- * @public
26
- */
27
- export declare const defaultTinyliciousPort = 7070;
28
-
29
- /**
30
- * As the name implies this is not secure and should not be used in production. It simply makes the example easier
31
- * to get up and running.
32
- *
33
- * @public
34
- */
35
- export declare class InsecureTinyliciousTokenProvider implements ITokenProvider {
36
- /**
37
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
38
- * will use the default scopes which are document read, write and summarizer write.
39
- *
40
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
41
- *
42
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
43
- */
44
- private readonly scopes?;
45
- constructor(
46
- /**
47
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
48
- * will use the default scopes which are document read, write and summarizer write.
49
- *
50
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
51
- *
52
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
53
- */
54
- scopes?: ScopeType[] | undefined);
55
- fetchOrdererToken(tenantId: string, documentId?: string): Promise<ITokenResponse>;
56
- fetchStorageToken(tenantId: string, documentId: string): Promise<ITokenResponse>;
57
- private getSignedToken;
58
- }
59
-
60
- /**
61
- * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
62
- * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's
63
- * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):
64
- * documentId/containerRelativePathing
65
- *
66
- * @public
67
- */
68
- export declare class InsecureTinyliciousUrlResolver implements IUrlResolver {
69
- private readonly fluidProtocolEndpoint;
70
- private readonly tinyliciousEndpoint;
71
- constructor(port?: number, endpoint?: string);
72
- resolve(request: IRequest): Promise<IResolvedUrl>;
73
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
74
- }
75
-
76
- export { }
@@ -1,76 +0,0 @@
1
- import { IRequest } from '@fluidframework/core-interfaces';
2
- import { IResolvedUrl } from '@fluidframework/driver-definitions';
3
- import { ITokenProvider } from '@fluidframework/routerlicious-driver';
4
- import { ITokenResponse } from '@fluidframework/routerlicious-driver';
5
- import { IUrlResolver } from '@fluidframework/driver-definitions';
6
- import { ScopeType } from '@fluidframework/protocol-definitions';
7
-
8
- /**
9
- * Creates a Routerlicious {@link @fluidframework/core-interfaces#IRequest}.
10
- *
11
- * @public
12
- */
13
- export declare const createTinyliciousCreateNewRequest: (documentId?: string) => IRequest;
14
-
15
- /**
16
- * Default endpoint URL base. Will be used by the service if the consumer does not specify an endpoint.
17
- *
18
- * @public
19
- */
20
- export declare const defaultTinyliciousEndpoint = "http://localhost";
21
-
22
- /**
23
- * Default endpoint port. Will be used by the service if the consumer does not specify a port.
24
- *
25
- * @public
26
- */
27
- export declare const defaultTinyliciousPort = 7070;
28
-
29
- /**
30
- * As the name implies this is not secure and should not be used in production. It simply makes the example easier
31
- * to get up and running.
32
- *
33
- * @public
34
- */
35
- export declare class InsecureTinyliciousTokenProvider implements ITokenProvider {
36
- /**
37
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
38
- * will use the default scopes which are document read, write and summarizer write.
39
- *
40
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
41
- *
42
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
43
- */
44
- private readonly scopes?;
45
- constructor(
46
- /**
47
- * Optional. Override of scopes. If a param is not provided, InsecureTinyliciousTokenProvider
48
- * will use the default scopes which are document read, write and summarizer write.
49
- *
50
- * @param scopes - See {@link @fluidframework/protocol-definitions#ITokenClaims.scopes}
51
- *
52
- * @defaultValue [ ScopeType.DocRead, ScopeType.DocWrite, ScopeType.SummaryWrite ]
53
- */
54
- scopes?: ScopeType[] | undefined);
55
- fetchOrdererToken(tenantId: string, documentId?: string): Promise<ITokenResponse>;
56
- fetchStorageToken(tenantId: string, documentId: string): Promise<ITokenResponse>;
57
- private getSignedToken;
58
- }
59
-
60
- /**
61
- * InsecureTinyliciousUrlResolver knows how to get the URLs to the service (in this case Tinylicious) to use
62
- * for a given request. This particular implementation has a goal to avoid imposing requirements on the app's
63
- * URL shape, so it expects the request url to have this format (as opposed to a more traditional URL):
64
- * documentId/containerRelativePathing
65
- *
66
- * @public
67
- */
68
- export declare class InsecureTinyliciousUrlResolver implements IUrlResolver {
69
- private readonly fluidProtocolEndpoint;
70
- private readonly tinyliciousEndpoint;
71
- constructor(port?: number, endpoint?: string);
72
- resolve(request: IRequest): Promise<IResolvedUrl>;
73
- getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
74
- }
75
-
76
- export { }