@openfin/remote-adapter 41.100.44 → 41.100.46
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/remote-adapter.js +7 -25
- package/package.json +2 -2
package/out/remote-adapter.js
CHANGED
|
@@ -381,31 +381,6 @@ var utils$3 = {};
|
|
|
381
381
|
if (!context.type) {
|
|
382
382
|
return { isValid: false, reason: 'Context must have a type property' };
|
|
383
383
|
}
|
|
384
|
-
if (context.id && typeof context.id !== 'object') {
|
|
385
|
-
return {
|
|
386
|
-
isValid: false,
|
|
387
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
if (context.id) {
|
|
391
|
-
const { id } = context;
|
|
392
|
-
const keys = Object.keys(id);
|
|
393
|
-
let foundBadIdentifier = false;
|
|
394
|
-
if (!keys.length) {
|
|
395
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
|
396
|
-
}
|
|
397
|
-
keys.forEach((key) => {
|
|
398
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
|
399
|
-
foundBadIdentifier = true;
|
|
400
|
-
}
|
|
401
|
-
});
|
|
402
|
-
if (foundBadIdentifier) {
|
|
403
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
if (context.name && typeof context.name !== 'string') {
|
|
407
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
|
408
|
-
}
|
|
409
384
|
return { isValid: true };
|
|
410
385
|
};
|
|
411
386
|
exports.checkContextIntegrity = checkContextIntegrity;
|
|
@@ -9743,6 +9718,13 @@ class System extends base_1$g.EmitterBase {
|
|
|
9743
9718
|
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
|
9744
9719
|
return payload.data;
|
|
9745
9720
|
}
|
|
9721
|
+
/**
|
|
9722
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
|
9723
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
|
9724
|
+
*/
|
|
9725
|
+
async serveAsset(options) {
|
|
9726
|
+
return (await this.wire.sendAction('serve-asset', { options })).payload.data;
|
|
9727
|
+
}
|
|
9746
9728
|
}
|
|
9747
9729
|
system.System = System;
|
|
9748
9730
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfin/remote-adapter",
|
|
3
|
-
"version": "41.100.
|
|
3
|
+
"version": "41.100.46",
|
|
4
4
|
"description": "Establish intermachine runtime connections using webRTC.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"private": false,
|
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
"author": "OpenFin",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"lodash": "^4.17.21",
|
|
23
|
-
"@openfin/core": "41.100.
|
|
23
|
+
"@openfin/core": "41.100.46"
|
|
24
24
|
}
|
|
25
25
|
}
|