@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
|
@@ -1585,6 +1585,15 @@
|
|
|
1585
1585
|
const regexDecoder = anyJson().andThen((value) => {
|
|
1586
1586
|
return value instanceof RegExp ? anyJson() : fail(`expected a regex, got a ${typeof value}`);
|
|
1587
1587
|
});
|
|
1588
|
+
const urlDecoder = nonEmptyStringDecoder$4.andThen((url) => {
|
|
1589
|
+
try {
|
|
1590
|
+
new URL(url);
|
|
1591
|
+
return nonEmptyStringDecoder$4;
|
|
1592
|
+
}
|
|
1593
|
+
catch {
|
|
1594
|
+
return fail("Should be a valid URL");
|
|
1595
|
+
}
|
|
1596
|
+
});
|
|
1588
1597
|
|
|
1589
1598
|
const intentDefinitionDecoder = object({
|
|
1590
1599
|
name: nonEmptyStringDecoder$4,
|
|
@@ -1912,7 +1921,8 @@
|
|
|
1912
1921
|
common: {
|
|
1913
1922
|
nonEmptyStringDecoder: nonEmptyStringDecoder$4,
|
|
1914
1923
|
nonNegativeNumberDecoder,
|
|
1915
|
-
regexDecoder
|
|
1924
|
+
regexDecoder,
|
|
1925
|
+
urlDecoder
|
|
1916
1926
|
},
|
|
1917
1927
|
fdc3: {
|
|
1918
1928
|
allDefinitionsDecoder,
|
|
@@ -3709,7 +3719,7 @@
|
|
|
3709
3719
|
}
|
|
3710
3720
|
}
|
|
3711
3721
|
|
|
3712
|
-
var version = "1.
|
|
3722
|
+
var version = "1.4.0";
|
|
3713
3723
|
|
|
3714
3724
|
window.fdc3WebBridgeInfo = {
|
|
3715
3725
|
version
|