@openfin/core 38.81.32 → 38.81.37
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/out/fdc3.d.ts +1964 -0
- package/out/mock-alpha.d.ts +78 -1147
- package/out/mock-beta.d.ts +78 -1147
- package/out/mock-public.d.ts +78 -1147
- package/out/mock.d.ts +78 -1147
- package/out/mock.js +10 -7
- package/package.json +7 -3
package/out/mock.js
CHANGED
@@ -15022,6 +15022,14 @@ function requireFdc3Common () {
|
|
15022
15022
|
throw new Error(errorToThrow);
|
15023
15023
|
}
|
15024
15024
|
}
|
15025
|
+
async _getChannels() {
|
15026
|
+
const channels = await this.client.getContextGroups();
|
15027
|
+
// fdc3 implementation of getSystemChannels returns an array of channels, have to decorate over
|
15028
|
+
// this so people know that these APIs are not supported
|
15029
|
+
return channels.map((channel) => {
|
15030
|
+
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
15031
|
+
});
|
15032
|
+
}
|
15025
15033
|
/**
|
15026
15034
|
* Returns a Channel object for the specified channel, creating it as an App Channel if it does not exist.
|
15027
15035
|
* @param channelId
|
@@ -15032,7 +15040,7 @@ function requireFdc3Common () {
|
|
15032
15040
|
this.wire.sendAction('fdc3-get-or-create-channel').catch((e) => {
|
15033
15041
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
15034
15042
|
});
|
15035
|
-
const systemChannels = await this.
|
15043
|
+
const systemChannels = await this._getChannels();
|
15036
15044
|
const userChannel = systemChannels.find((channel) => channel.id === channelId);
|
15037
15045
|
if (userChannel) {
|
15038
15046
|
return { ...userChannel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
@@ -15056,12 +15064,7 @@ function requireFdc3Common () {
|
|
15056
15064
|
this.wire.sendAction('fdc3-get-system-channels').catch((e) => {
|
15057
15065
|
// we do not want to expose this error, just continue if this analytics-only call fails
|
15058
15066
|
});
|
15059
|
-
|
15060
|
-
// fdc3 implementation of getSystemChannels returns on array of channels, have to decorate over
|
15061
|
-
// this so people know that these APIs are not supported
|
15062
|
-
return channels.map((channel) => {
|
15063
|
-
return { ...channel, type: 'system', ...(0, utils_1.getUnsupportedChannelApis)() };
|
15064
|
-
});
|
15067
|
+
return this._getChannels();
|
15065
15068
|
}
|
15066
15069
|
/**
|
15067
15070
|
* Join all Interop Clients at the given identity to context group `contextGroupId`.
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/core",
|
3
|
-
"version": "38.81.
|
3
|
+
"version": "38.81.37",
|
4
4
|
"description": "The core renderer entry point of OpenFin",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"main": "out/mock.js",
|
@@ -10,7 +10,8 @@
|
|
10
10
|
"prebuild": "rimraf ./out",
|
11
11
|
"build:rollup": "rollup --config",
|
12
12
|
"build:copy": "cpy src/GlobalOpenFin.d.ts out --flat",
|
13
|
-
"build": "
|
13
|
+
"build:fdc3": "ts-node scripts/fdc3",
|
14
|
+
"build": "run-s build:*",
|
14
15
|
"dev:rollup": "npm run build:rollup -- --environment MODE:development",
|
15
16
|
"dev:copy": "npm run build:copy",
|
16
17
|
"dev": "run-p dev:*",
|
@@ -19,7 +20,10 @@
|
|
19
20
|
"watch:copy": "npm run dev:copy",
|
20
21
|
"ci:prepublish": "of-npm prepublish",
|
21
22
|
"ci:postpublish": "of-npm postpublish",
|
22
|
-
"ci:publish": "npm publish"
|
23
|
+
"ci:publish": "npm publish",
|
24
|
+
"test": "run-p test:*",
|
25
|
+
"test:sample": "tsc -p test/tsconfig.json",
|
26
|
+
"test:imports": "ts-node scripts/verify-imports"
|
23
27
|
},
|
24
28
|
"files": [
|
25
29
|
"out/*",
|