@interopio/fdc3 2.8.1 → 2.8.3
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 +7 -4
- package/dist/fdc3.electron.umd.js +7 -4
- package/dist/fdc3.es.js +7 -4
- package/dist/fdc3.umd.js +7 -4
- package/package.json +3 -3
package/changelog.md
CHANGED
package/dist/fdc3.electron.es.js
CHANGED
|
@@ -4194,6 +4194,9 @@ const checkIfInElectron = (globalFdc3) => {
|
|
|
4194
4194
|
contextBridge.exposeInMainWorld("fdc3", globalFdc3);
|
|
4195
4195
|
}
|
|
4196
4196
|
};
|
|
4197
|
+
const checkIfInNodeEnv = () => {
|
|
4198
|
+
return typeof process !== "undefined" && typeof window === "undefined" && typeof document === "undefined";
|
|
4199
|
+
};
|
|
4197
4200
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
4198
4201
|
return new Promise((resolve, reject) => {
|
|
4199
4202
|
const timeout = setTimeout(() => {
|
|
@@ -9111,7 +9114,7 @@ class ApplicationsController {
|
|
|
9111
9114
|
await this.glueController.gluePromise;
|
|
9112
9115
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
9113
9116
|
const appMetadata = await this.getCurrentAppMetadata();
|
|
9114
|
-
const globalScope =
|
|
9117
|
+
const globalScope = checkIfInNodeEnv() ? process : window;
|
|
9115
9118
|
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info ?? {};
|
|
9116
9119
|
return {
|
|
9117
9120
|
provider,
|
|
@@ -10454,7 +10457,7 @@ class IoC {
|
|
|
10454
10457
|
return this;
|
|
10455
10458
|
}
|
|
10456
10459
|
get eventReceiver() {
|
|
10457
|
-
const inNode =
|
|
10460
|
+
const inNode = checkIfInNodeEnv();
|
|
10458
10461
|
if (inNode) {
|
|
10459
10462
|
return this.nodeEventReceiver;
|
|
10460
10463
|
}
|
|
@@ -10574,9 +10577,9 @@ const fdc3Factory = () => {
|
|
|
10574
10577
|
return ioc.fdc3;
|
|
10575
10578
|
};
|
|
10576
10579
|
|
|
10577
|
-
var version = "2.8.
|
|
10580
|
+
var version = "2.8.3";
|
|
10578
10581
|
|
|
10579
|
-
const inNodeEnv =
|
|
10582
|
+
const inNodeEnv = checkIfInNodeEnv();
|
|
10580
10583
|
const globalScope = inNodeEnv ? process : window;
|
|
10581
10584
|
globalScope.fdc3Info = {
|
|
10582
10585
|
provider: "io.Connect",
|
|
@@ -4200,6 +4200,9 @@
|
|
|
4200
4200
|
contextBridge.exposeInMainWorld("fdc3", globalFdc3);
|
|
4201
4201
|
}
|
|
4202
4202
|
};
|
|
4203
|
+
const checkIfInNodeEnv = () => {
|
|
4204
|
+
return typeof process !== "undefined" && typeof window === "undefined" && typeof document === "undefined";
|
|
4205
|
+
};
|
|
4203
4206
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
4204
4207
|
return new Promise((resolve, reject) => {
|
|
4205
4208
|
const timeout = setTimeout(() => {
|
|
@@ -9117,7 +9120,7 @@
|
|
|
9117
9120
|
await this.glueController.gluePromise;
|
|
9118
9121
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
9119
9122
|
const appMetadata = await this.getCurrentAppMetadata();
|
|
9120
|
-
const globalScope =
|
|
9123
|
+
const globalScope = checkIfInNodeEnv() ? process : window;
|
|
9121
9124
|
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info ?? {};
|
|
9122
9125
|
return {
|
|
9123
9126
|
provider,
|
|
@@ -10460,7 +10463,7 @@
|
|
|
10460
10463
|
return this;
|
|
10461
10464
|
}
|
|
10462
10465
|
get eventReceiver() {
|
|
10463
|
-
const inNode =
|
|
10466
|
+
const inNode = checkIfInNodeEnv();
|
|
10464
10467
|
if (inNode) {
|
|
10465
10468
|
return this.nodeEventReceiver;
|
|
10466
10469
|
}
|
|
@@ -10580,9 +10583,9 @@
|
|
|
10580
10583
|
return ioc.fdc3;
|
|
10581
10584
|
};
|
|
10582
10585
|
|
|
10583
|
-
var version = "2.8.
|
|
10586
|
+
var version = "2.8.3";
|
|
10584
10587
|
|
|
10585
|
-
const inNodeEnv =
|
|
10588
|
+
const inNodeEnv = checkIfInNodeEnv();
|
|
10586
10589
|
const globalScope = inNodeEnv ? process : window;
|
|
10587
10590
|
globalScope.fdc3Info = {
|
|
10588
10591
|
provider: "io.Connect",
|
package/dist/fdc3.es.js
CHANGED
|
@@ -4183,6 +4183,9 @@ const getListenerWithAsyncUnsubscribe = (unsub) => {
|
|
|
4183
4183
|
});
|
|
4184
4184
|
return { unsubscribe: asyncUnsub };
|
|
4185
4185
|
};
|
|
4186
|
+
const checkIfInNodeEnv = () => {
|
|
4187
|
+
return typeof process !== "undefined" && typeof window === "undefined" && typeof document === "undefined";
|
|
4188
|
+
};
|
|
4186
4189
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
4187
4190
|
return new Promise((resolve, reject) => {
|
|
4188
4191
|
const timeout = setTimeout(() => {
|
|
@@ -9100,7 +9103,7 @@ class ApplicationsController {
|
|
|
9100
9103
|
await this.glueController.gluePromise;
|
|
9101
9104
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
9102
9105
|
const appMetadata = await this.getCurrentAppMetadata();
|
|
9103
|
-
const globalScope =
|
|
9106
|
+
const globalScope = checkIfInNodeEnv() ? process : window;
|
|
9104
9107
|
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info ?? {};
|
|
9105
9108
|
return {
|
|
9106
9109
|
provider,
|
|
@@ -10443,7 +10446,7 @@ class IoC {
|
|
|
10443
10446
|
return this;
|
|
10444
10447
|
}
|
|
10445
10448
|
get eventReceiver() {
|
|
10446
|
-
const inNode =
|
|
10449
|
+
const inNode = checkIfInNodeEnv();
|
|
10447
10450
|
if (inNode) {
|
|
10448
10451
|
return this.nodeEventReceiver;
|
|
10449
10452
|
}
|
|
@@ -10563,9 +10566,9 @@ const fdc3Factory = () => {
|
|
|
10563
10566
|
return ioc.fdc3;
|
|
10564
10567
|
};
|
|
10565
10568
|
|
|
10566
|
-
var version = "2.8.
|
|
10569
|
+
var version = "2.8.3";
|
|
10567
10570
|
|
|
10568
|
-
const inNodeEnv =
|
|
10571
|
+
const inNodeEnv = checkIfInNodeEnv();
|
|
10569
10572
|
const globalScope = inNodeEnv ? process : window;
|
|
10570
10573
|
globalScope.fdc3Info = {
|
|
10571
10574
|
provider: "io.Connect",
|
package/dist/fdc3.umd.js
CHANGED
|
@@ -4189,6 +4189,9 @@
|
|
|
4189
4189
|
});
|
|
4190
4190
|
return { unsubscribe: asyncUnsub };
|
|
4191
4191
|
};
|
|
4192
|
+
const checkIfInNodeEnv = () => {
|
|
4193
|
+
return typeof process !== "undefined" && typeof window === "undefined" && typeof document === "undefined";
|
|
4194
|
+
};
|
|
4192
4195
|
const promisePlus = (promise, timeoutMilliseconds, timeoutMessage) => {
|
|
4193
4196
|
return new Promise((resolve, reject) => {
|
|
4194
4197
|
const timeout = setTimeout(() => {
|
|
@@ -9106,7 +9109,7 @@
|
|
|
9106
9109
|
await this.glueController.gluePromise;
|
|
9107
9110
|
this.logger?.info(`${commandId} - getInfo() invoked`);
|
|
9108
9111
|
const appMetadata = await this.getCurrentAppMetadata();
|
|
9109
|
-
const globalScope =
|
|
9112
|
+
const globalScope = checkIfInNodeEnv() ? process : window;
|
|
9110
9113
|
const { provider, providerVersion, standardVersion } = globalScope.fdc3Info ?? {};
|
|
9111
9114
|
return {
|
|
9112
9115
|
provider,
|
|
@@ -10449,7 +10452,7 @@
|
|
|
10449
10452
|
return this;
|
|
10450
10453
|
}
|
|
10451
10454
|
get eventReceiver() {
|
|
10452
|
-
const inNode =
|
|
10455
|
+
const inNode = checkIfInNodeEnv();
|
|
10453
10456
|
if (inNode) {
|
|
10454
10457
|
return this.nodeEventReceiver;
|
|
10455
10458
|
}
|
|
@@ -10569,9 +10572,9 @@
|
|
|
10569
10572
|
return ioc.fdc3;
|
|
10570
10573
|
};
|
|
10571
10574
|
|
|
10572
|
-
var version = "2.8.
|
|
10575
|
+
var version = "2.8.3";
|
|
10573
10576
|
|
|
10574
|
-
const inNodeEnv =
|
|
10577
|
+
const inNodeEnv = checkIfInNodeEnv();
|
|
10575
10578
|
const globalScope = inNodeEnv ? process : window;
|
|
10576
10579
|
globalScope.fdc3Info = {
|
|
10577
10580
|
provider: "io.Connect",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@interopio/fdc3",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"description": "IO Connect implementation of the FDC3 standard",
|
|
5
5
|
"main": "dist/fdc3.umd.js",
|
|
6
6
|
"module": "dist/fdc3.es.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@interopio/browser": "^4.2.
|
|
34
|
+
"@interopio/browser": "^4.2.3",
|
|
35
35
|
"@interopio/desktop": "^6.14.0",
|
|
36
36
|
"@interopio/utils": "^2.2.0"
|
|
37
37
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"@interopio:registry": "https://registry.npmjs.org",
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "84059ec6a7440ba8f9cb2894b89c06def197255d"
|
|
46
46
|
}
|