@interopio/fdc3 2.0.2 → 2.0.4
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 +2 -0
- package/dist/fdc3.electron.es.js +3125 -0
- package/dist/fdc3.electron.umd.js +3133 -0
- package/dist/fdc3.es.js +1 -13
- package/dist/fdc3.umd.js +1 -13
- package/package.json +4 -3
package/dist/fdc3.es.js
CHANGED
|
@@ -71,17 +71,6 @@ const AsyncListener = (actualUnsub) => {
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
const checkIfInElectron = (globalFdc3) => {
|
|
75
|
-
const hasGlue42electron = typeof window !== "undefined" && "glue42electron" in window;
|
|
76
|
-
if (!hasGlue42electron) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
const runningInElectron = typeof process !== "undefined" && "contextIsolated" in process;
|
|
80
|
-
if (runningInElectron) {
|
|
81
|
-
const contextBridge = require("electron").contextBridge;
|
|
82
|
-
contextBridge.exposeInMainWorld("fdc3", globalFdc3);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
74
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
86
75
|
return new Promise((resolve, reject) => {
|
|
87
76
|
const timeout = setTimeout(() => {
|
|
@@ -1982,7 +1971,7 @@ class IntentsController {
|
|
|
1982
1971
|
}
|
|
1983
1972
|
}
|
|
1984
1973
|
|
|
1985
|
-
var version = "2.0.
|
|
1974
|
+
var version = "2.0.4";
|
|
1986
1975
|
|
|
1987
1976
|
class ApplicationsController {
|
|
1988
1977
|
constructor(glueController) {
|
|
@@ -3113,7 +3102,6 @@ const fdc3Factory = () => {
|
|
|
3113
3102
|
let globalFdc3 = window.fdc3;
|
|
3114
3103
|
if (typeof globalFdc3 === "undefined") {
|
|
3115
3104
|
globalFdc3 = fdc3Factory();
|
|
3116
|
-
checkIfInElectron(globalFdc3);
|
|
3117
3105
|
window.fdc3 = globalFdc3;
|
|
3118
3106
|
}
|
|
3119
3107
|
else {
|
package/dist/fdc3.umd.js
CHANGED
|
@@ -77,17 +77,6 @@
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
const checkIfInElectron = (globalFdc3) => {
|
|
81
|
-
const hasGlue42electron = typeof window !== "undefined" && "glue42electron" in window;
|
|
82
|
-
if (!hasGlue42electron) {
|
|
83
|
-
return;
|
|
84
|
-
}
|
|
85
|
-
const runningInElectron = typeof process !== "undefined" && "contextIsolated" in process;
|
|
86
|
-
if (runningInElectron) {
|
|
87
|
-
const contextBridge = require("electron").contextBridge;
|
|
88
|
-
contextBridge.exposeInMainWorld("fdc3", globalFdc3);
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
80
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
92
81
|
return new Promise((resolve, reject) => {
|
|
93
82
|
const timeout = setTimeout(() => {
|
|
@@ -1988,7 +1977,7 @@
|
|
|
1988
1977
|
}
|
|
1989
1978
|
}
|
|
1990
1979
|
|
|
1991
|
-
var version = "2.0.
|
|
1980
|
+
var version = "2.0.4";
|
|
1992
1981
|
|
|
1993
1982
|
class ApplicationsController {
|
|
1994
1983
|
constructor(glueController) {
|
|
@@ -3119,7 +3108,6 @@
|
|
|
3119
3108
|
let globalFdc3 = window.fdc3;
|
|
3120
3109
|
if (typeof globalFdc3 === "undefined") {
|
|
3121
3110
|
globalFdc3 = fdc3Factory();
|
|
3122
|
-
checkIfInElectron(globalFdc3);
|
|
3123
3111
|
window.fdc3 = globalFdc3;
|
|
3124
3112
|
}
|
|
3125
3113
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/fdc3",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "IO Connect implementation of the FDC3 standard",
|
|
5
5
|
"main": "dist/fdc3.umd.js",
|
|
6
6
|
"module": "dist/fdc3.es.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
],
|
|
20
20
|
"homepage": "https://interop.io/",
|
|
21
21
|
"scripts": {
|
|
22
|
-
"build": "rollup -c",
|
|
22
|
+
"build": "rollup -c && rollup -c ./rollup.config.electron.js",
|
|
23
23
|
"test": "echo no tests found",
|
|
24
24
|
"audit": "echo no audit found",
|
|
25
25
|
"audit:V1": "node ../../scripts/audit/index.js",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@rollup/plugin-commonjs": "^23.0.5",
|
|
36
36
|
"@rollup/plugin-json": "^5.0.2",
|
|
37
37
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
38
|
+
"@rollup/plugin-replace": "^5.0.4",
|
|
38
39
|
"rollup": "^3.7.4",
|
|
39
40
|
"rollup-plugin-delete": "^2.0.0",
|
|
40
41
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
@@ -49,5 +50,5 @@
|
|
|
49
50
|
"decoder-validate": "^0.0.2",
|
|
50
51
|
"nanoid": "^4.0.0"
|
|
51
52
|
},
|
|
52
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c2c17d74b0fd1f2bd6de3a7ac5c2fd202912d12a"
|
|
53
54
|
}
|