@fluidframework/azure-client 2.0.0-internal.6.2.0 → 2.0.0-internal.6.3.1
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/AzureAudience.js +2 -2
- package/dist/AzureAudience.js.map +1 -1
- package/lib/AzureAudience.js +1 -1
- package/lib/AzureAudience.js.map +1 -1
- package/package.json +23 -23
- package/src/AzureAudience.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/AzureAudience.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.AzureAudience = void 0;
|
|
|
5
5
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
6
6
|
* Licensed under the MIT License.
|
|
7
7
|
*/
|
|
8
|
-
const
|
|
8
|
+
const core_utils_1 = require("@fluidframework/core-utils");
|
|
9
9
|
const fluid_static_1 = require("@fluidframework/fluid-static");
|
|
10
10
|
/**
|
|
11
11
|
* Azure-specific {@link @fluidframework/fluid-static#ServiceAudience} implementation.
|
|
@@ -24,7 +24,7 @@ class AzureAudience extends fluid_static_1.ServiceAudience {
|
|
|
24
24
|
*/
|
|
25
25
|
createServiceMember(audienceMember) {
|
|
26
26
|
const azureUser = audienceMember.user;
|
|
27
|
-
(0,
|
|
27
|
+
(0, core_utils_1.assert)(azureUser?.name !== undefined, 'Provided user was not an "AzureUser".');
|
|
28
28
|
return {
|
|
29
29
|
userId: audienceMember.user.id,
|
|
30
30
|
userName: azureUser.name,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureAudience.js","sourceRoot":"","sources":["../src/AzureAudience.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH
|
|
1
|
+
{"version":3,"file":"AzureAudience.js","sourceRoot":"","sources":["../src/AzureAudience.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,2DAAoD;AACpD,+DAA+D;AAK/D;;;;GAIG;AACH,MAAa,aAAc,SAAQ,8BAA4B;IAC9D;;;;;;;;OAQG;IACO,mBAAmB,CAAC,cAAuB;QACpD,MAAM,SAAS,GAAG,cAAc,CAAC,IAAiB,CAAC;QACnD,IAAA,mBAAM,EAAC,SAAS,EAAE,IAAI,KAAK,SAAS,EAAE,uCAAuC,CAAC,CAAC;QAE/E,OAAO;YACN,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE;YAC9B,QAAQ,EAAE,SAAS,CAAC,IAAI;YACxB,WAAW,EAAE,EAAE;YACf,iBAAiB,EAAE,SAAS,CAAC,iBAA4B;SACzD,CAAC;IACH,CAAC;CACD;AArBD,sCAqBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { assert } from \"@fluidframework/core-utils\";\nimport { ServiceAudience } from \"@fluidframework/fluid-static\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\nimport { AzureMember, AzureUser, IAzureAudience } from \"./interfaces\";\n\n/**\n * Azure-specific {@link @fluidframework/fluid-static#ServiceAudience} implementation.\n *\n * @remarks Operates in terms of {@link AzureMember}s.\n */\nexport class AzureAudience extends ServiceAudience<AzureMember> implements IAzureAudience {\n\t/**\n\t * Creates a {@link @fluidframework/fluid-static#ServiceAudience} from the provided\n\t * {@link @fluidframework/protocol-definitions#IClient | audience member}.\n\t *\n\t * @param audienceMember - Audience member for which the `ServiceAudience` will be generated.\n\t * Note: its {@link @fluidframework/protocol-definitions#IClient.user} is required to be an {@link AzureUser}.\n\t *\n\t * @internal\n\t */\n\tprotected createServiceMember(audienceMember: IClient): AzureMember {\n\t\tconst azureUser = audienceMember.user as AzureUser;\n\t\tassert(azureUser?.name !== undefined, 'Provided user was not an \"AzureUser\".');\n\n\t\treturn {\n\t\t\tuserId: audienceMember.user.id,\n\t\t\tuserName: azureUser.name,\n\t\t\tconnections: [],\n\t\t\tadditionalDetails: azureUser.additionalDetails as unknown,\n\t\t};\n\t}\n}\n"]}
|
package/lib/AzureAudience.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { assert } from "@fluidframework/
|
|
5
|
+
import { assert } from "@fluidframework/core-utils";
|
|
6
6
|
import { ServiceAudience } from "@fluidframework/fluid-static";
|
|
7
7
|
/**
|
|
8
8
|
* Azure-specific {@link @fluidframework/fluid-static#ServiceAudience} implementation.
|
package/lib/AzureAudience.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AzureAudience.js","sourceRoot":"","sources":["../src/AzureAudience.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AzureAudience.js","sourceRoot":"","sources":["../src/AzureAudience.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAK/D;;;;GAIG;AACH,MAAM,OAAO,aAAc,SAAQ,eAA4B;IAC9D;;;;;;;;OAQG;IACO,mBAAmB,CAAC,cAAuB;QACpD,MAAM,SAAS,GAAG,cAAc,CAAC,IAAiB,CAAC;QACnD,MAAM,CAAC,SAAS,EAAE,IAAI,KAAK,SAAS,EAAE,uCAAuC,CAAC,CAAC;QAE/E,OAAO;YACN,MAAM,EAAE,cAAc,CAAC,IAAI,CAAC,EAAE;YAC9B,QAAQ,EAAE,SAAS,CAAC,IAAI;YACxB,WAAW,EAAE,EAAE;YACf,iBAAiB,EAAE,SAAS,CAAC,iBAA4B;SACzD,CAAC;IACH,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\nimport { assert } from \"@fluidframework/core-utils\";\nimport { ServiceAudience } from \"@fluidframework/fluid-static\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\n\nimport { AzureMember, AzureUser, IAzureAudience } from \"./interfaces\";\n\n/**\n * Azure-specific {@link @fluidframework/fluid-static#ServiceAudience} implementation.\n *\n * @remarks Operates in terms of {@link AzureMember}s.\n */\nexport class AzureAudience extends ServiceAudience<AzureMember> implements IAzureAudience {\n\t/**\n\t * Creates a {@link @fluidframework/fluid-static#ServiceAudience} from the provided\n\t * {@link @fluidframework/protocol-definitions#IClient | audience member}.\n\t *\n\t * @param audienceMember - Audience member for which the `ServiceAudience` will be generated.\n\t * Note: its {@link @fluidframework/protocol-definitions#IClient.user} is required to be an {@link AzureUser}.\n\t *\n\t * @internal\n\t */\n\tprotected createServiceMember(audienceMember: IClient): AzureMember {\n\t\tconst azureUser = audienceMember.user as AzureUser;\n\t\tassert(azureUser?.name !== undefined, 'Provided user was not an \"AzureUser\".');\n\n\t\treturn {\n\t\t\tuserId: audienceMember.user.id,\n\t\t\tuserName: azureUser.name,\n\t\t\tconnections: [],\n\t\t\tadditionalDetails: azureUser.additionalDetails as unknown,\n\t\t};\n\t}\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/azure-client",
|
|
3
|
-
"version": "2.0.0-internal.6.
|
|
3
|
+
"version": "2.0.0-internal.6.3.1",
|
|
4
4
|
"description": "A tool to enable creation and loading of Fluid containers using the Azure Fluid Relay service",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -15,37 +15,36 @@
|
|
|
15
15
|
"module": "lib/index.js",
|
|
16
16
|
"types": "dist/index.d.ts",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@fluidframework/
|
|
19
|
-
"@fluidframework/container-
|
|
20
|
-
"@fluidframework/
|
|
21
|
-
"@fluidframework/core-
|
|
22
|
-
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.
|
|
23
|
-
"@fluidframework/driver-utils": ">=2.0.0-internal.6.
|
|
24
|
-
"@fluidframework/fluid-static": ">=2.0.0-internal.6.
|
|
25
|
-
"@fluidframework/map": ">=2.0.0-internal.6.
|
|
18
|
+
"@fluidframework/container-definitions": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
19
|
+
"@fluidframework/container-loader": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
20
|
+
"@fluidframework/core-interfaces": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
21
|
+
"@fluidframework/core-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
22
|
+
"@fluidframework/driver-definitions": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
23
|
+
"@fluidframework/driver-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
24
|
+
"@fluidframework/fluid-static": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
25
|
+
"@fluidframework/map": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
26
26
|
"@fluidframework/protocol-definitions": "^1.1.0",
|
|
27
|
-
"@fluidframework/routerlicious-driver": ">=2.0.0-internal.6.
|
|
28
|
-
"@fluidframework/runtime-utils": ">=2.0.0-internal.6.
|
|
29
|
-
"@fluidframework/server-services-client": "^1.0.
|
|
30
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.
|
|
27
|
+
"@fluidframework/routerlicious-driver": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
28
|
+
"@fluidframework/runtime-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
29
|
+
"@fluidframework/server-services-client": "^1.0.1",
|
|
30
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
31
31
|
"axios": "^0.26.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@fluid-tools/build-cli": "^0.
|
|
35
|
-
"@fluidframework/aqueduct": ">=2.0.0-internal.6.
|
|
34
|
+
"@fluid-tools/build-cli": "^0.22.0",
|
|
35
|
+
"@fluidframework/aqueduct": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
36
36
|
"@fluidframework/azure-client-previous": "npm:@fluidframework/azure-client@2.0.0-internal.6.1.1",
|
|
37
|
-
"@fluidframework/azure-local-service": ">=2.0.0-internal.6.
|
|
37
|
+
"@fluidframework/azure-local-service": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
38
38
|
"@fluidframework/build-common": "^2.0.0",
|
|
39
|
-
"@fluidframework/build-tools": "^0.
|
|
40
|
-
"@fluidframework/counter": ">=2.0.0-internal.6.
|
|
39
|
+
"@fluidframework/build-tools": "^0.22.0",
|
|
40
|
+
"@fluidframework/counter": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
41
41
|
"@fluidframework/eslint-config-fluid": "^2.1.0",
|
|
42
|
-
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.6.
|
|
43
|
-
"@fluidframework/test-utils": ">=2.0.0-internal.6.
|
|
42
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
43
|
+
"@fluidframework/test-utils": ">=2.0.0-internal.6.3.1 <2.0.0-internal.6.4.0",
|
|
44
44
|
"@microsoft/api-extractor": "^7.34.4",
|
|
45
45
|
"@types/mocha": "^9.1.1",
|
|
46
46
|
"@types/node": "^16.18.38",
|
|
47
47
|
"@types/uuid": "^9.0.2",
|
|
48
|
-
"concurrently": "^7.6.0",
|
|
49
48
|
"copyfiles": "^2.4.1",
|
|
50
49
|
"cross-env": "^7.0.3",
|
|
51
50
|
"eslint": "~8.6.0",
|
|
@@ -69,7 +68,7 @@
|
|
|
69
68
|
"build:esnext": "tsc --project ./tsconfig.esnext.json",
|
|
70
69
|
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
71
70
|
"ci:build:docs": "api-extractor run",
|
|
72
|
-
"clean": "rimraf --glob
|
|
71
|
+
"clean": "rimraf --glob 'dist' 'lib' '*.tsbuildinfo' '*.build.log' '_api-extractor-temp' 'nyc'",
|
|
73
72
|
"eslint": "eslint --format stylish src",
|
|
74
73
|
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
75
74
|
"format": "npm run prettier:fix",
|
|
@@ -78,8 +77,9 @@
|
|
|
78
77
|
"prettier": "prettier --check . --ignore-path ../../../.prettierignore",
|
|
79
78
|
"prettier:fix": "prettier --write . --ignore-path ../../../.prettierignore",
|
|
80
79
|
"start:tinylicious:test": "npx @fluidframework/azure-local-service > tinylicious.log 2>&1",
|
|
80
|
+
"test": "npm run test:realsvc",
|
|
81
81
|
"test:realsvc": "npm run test:realsvc:tinylicious",
|
|
82
|
-
"test:realsvc:local:run": "mocha --
|
|
82
|
+
"test:realsvc:local:run": "mocha --recursive 'dist/test/**/*.spec.js' --exit --timeout 10000",
|
|
83
83
|
"test:realsvc:tinylicious": "start-server-and-test start:tinylicious:test 7070 test:realsvc:local:run",
|
|
84
84
|
"tsc": "tsc",
|
|
85
85
|
"typetests:gen": "fluid-type-test-generator",
|
package/src/AzureAudience.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
import { assert } from "@fluidframework/
|
|
5
|
+
import { assert } from "@fluidframework/core-utils";
|
|
6
6
|
import { ServiceAudience } from "@fluidframework/fluid-static";
|
|
7
7
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
8
8
|
|