@interopio/fdc3-web-bridge 1.2.0 → 1.4.0
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/LICENSE +1 -1
- package/README.md +5 -0
- package/changelog.md +4 -0
- package/dist/fdc3-web-bridge.es.js +12 -2
- package/dist/fdc3-web-bridge.es.js.map +1 -1
- package/dist/fdc3-web-bridge.umd.js +12 -2
- package/dist/fdc3-web-bridge.umd.js.map +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# @interopio/fdc3-web-bridge
|
|
2
|
+
|
|
3
|
+
io.Connect implementation of the [FDC3 Web Connection Protocol](https://fdc3.finos.org/docs/api/specs/webConnectionProtocol) used internally by the **io.Connect Browser** platform. Enables FDC3 client apps that use the `@finos/fdc3` library to acquire a `DesktopAgent` instance via the `getAgent()` method.
|
|
4
|
+
|
|
5
|
+
> ⚠️ *Note that the recommended method for acquiring access to the FDC3 API in your FDC3 apps that are part of an **io.Connect Browser** project is to use the `@interopio/fdc3` library instead.*
|
package/changelog.md
CHANGED
|
@@ -1580,6 +1580,15 @@ const nonNegativeNumberDecoder = number().where((num) => num >= 0, "Expected a n
|
|
|
1580
1580
|
const regexDecoder = anyJson().andThen((value) => {
|
|
1581
1581
|
return value instanceof RegExp ? anyJson() : fail(`expected a regex, got a ${typeof value}`);
|
|
1582
1582
|
});
|
|
1583
|
+
const urlDecoder = nonEmptyStringDecoder$4.andThen((url) => {
|
|
1584
|
+
try {
|
|
1585
|
+
new URL(url);
|
|
1586
|
+
return nonEmptyStringDecoder$4;
|
|
1587
|
+
}
|
|
1588
|
+
catch {
|
|
1589
|
+
return fail("Should be a valid URL");
|
|
1590
|
+
}
|
|
1591
|
+
});
|
|
1583
1592
|
|
|
1584
1593
|
const intentDefinitionDecoder = object({
|
|
1585
1594
|
name: nonEmptyStringDecoder$4,
|
|
@@ -1907,7 +1916,8 @@ const decoders$1 = {
|
|
|
1907
1916
|
common: {
|
|
1908
1917
|
nonEmptyStringDecoder: nonEmptyStringDecoder$4,
|
|
1909
1918
|
nonNegativeNumberDecoder,
|
|
1910
|
-
regexDecoder
|
|
1919
|
+
regexDecoder,
|
|
1920
|
+
urlDecoder
|
|
1911
1921
|
},
|
|
1912
1922
|
fdc3: {
|
|
1913
1923
|
allDefinitionsDecoder,
|
|
@@ -3704,7 +3714,7 @@ class IoC {
|
|
|
3704
3714
|
}
|
|
3705
3715
|
}
|
|
3706
3716
|
|
|
3707
|
-
var version = "1.
|
|
3717
|
+
var version = "1.4.0";
|
|
3708
3718
|
|
|
3709
3719
|
window.fdc3WebBridgeInfo = {
|
|
3710
3720
|
version
|