@openfin/node-adapter 41.100.44 → 41.100.46
Sign up to get free protection for your applications and to get access to all the features.
- package/out/node-adapter.js +8 -26
- package/package.json +2 -2
package/out/node-adapter.js
CHANGED
@@ -6973,6 +6973,13 @@ class System extends base_1$l.EmitterBase {
|
|
6973
6973
|
const { payload } = await this.wire.sendAction('get-installed-extensions');
|
6974
6974
|
return payload.data;
|
6975
6975
|
}
|
6976
|
+
/**
|
6977
|
+
* Used to serve an asset signed by OpenFin within the given runtime.
|
6978
|
+
* Not indended for general use, will be used by the `@openfin/workspace-platform` package.
|
6979
|
+
*/
|
6980
|
+
async serveAsset(options) {
|
6981
|
+
return (await this.wire.sendAction('serve-asset', { options })).payload.data;
|
6982
|
+
}
|
6976
6983
|
}
|
6977
6984
|
system.System = System;
|
6978
6985
|
|
@@ -12947,31 +12954,6 @@ var utils$3 = {};
|
|
12947
12954
|
if (!context.type) {
|
12948
12955
|
return { isValid: false, reason: 'Context must have a type property' };
|
12949
12956
|
}
|
12950
|
-
if (context.id && typeof context.id !== 'object') {
|
12951
|
-
return {
|
12952
|
-
isValid: false,
|
12953
|
-
reason: 'Context id must be an Object populated with key-value identifiers (if set)'
|
12954
|
-
};
|
12955
|
-
}
|
12956
|
-
if (context.id) {
|
12957
|
-
const { id } = context;
|
12958
|
-
const keys = Object.keys(id);
|
12959
|
-
let foundBadIdentifier = false;
|
12960
|
-
if (!keys.length) {
|
12961
|
-
return { isValid: false, reason: 'Context id must have at least one key-value identifier' };
|
12962
|
-
}
|
12963
|
-
keys.forEach((key) => {
|
12964
|
-
if (typeof key !== 'string' || typeof id[key] !== 'string') {
|
12965
|
-
foundBadIdentifier = true;
|
12966
|
-
}
|
12967
|
-
});
|
12968
|
-
if (foundBadIdentifier) {
|
12969
|
-
return { isValid: false, reason: 'Context id key-value identifiers must be of type string' };
|
12970
|
-
}
|
12971
|
-
}
|
12972
|
-
if (context.name && typeof context.name !== 'string') {
|
12973
|
-
return { isValid: false, reason: 'Context name must be of string type (if set)' };
|
12974
|
-
}
|
12975
12957
|
return { isValid: true };
|
12976
12958
|
};
|
12977
12959
|
exports.checkContextIntegrity = checkContextIntegrity;
|
@@ -17739,7 +17721,7 @@ class NodeEnvironment extends BaseEnvironment_1 {
|
|
17739
17721
|
};
|
17740
17722
|
}
|
17741
17723
|
getAdapterVersionSync() {
|
17742
|
-
return "41.100.
|
17724
|
+
return "41.100.46";
|
17743
17725
|
}
|
17744
17726
|
observeBounds(element, onChange) {
|
17745
17727
|
throw new Error('Method not implemented.');
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openfin/node-adapter",
|
3
|
-
"version": "41.100.
|
3
|
+
"version": "41.100.46",
|
4
4
|
"description": "See README.md",
|
5
5
|
"main": "out/node-adapter.js",
|
6
6
|
"types": "out/node-adapter.d.ts",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"author": "OpenFin",
|
25
25
|
"dependencies": {
|
26
26
|
"@types/node": "^20.14.2",
|
27
|
-
"@openfin/core": "41.100.
|
27
|
+
"@openfin/core": "41.100.46",
|
28
28
|
"lodash": "^4.17.21",
|
29
29
|
"ws": "^7.3.0"
|
30
30
|
}
|