@uipath/filesystem 1.203.0-preview.212 → 1.204.0-preview.211

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.
@@ -1488,8 +1488,11 @@ class BrowserFileSystem {
1488
1488
  };
1489
1489
  utils = {
1490
1490
  open: async (url) => {
1491
- if (typeof window !== "undefined") {
1492
- window.open(url, "_blank");
1491
+ if (typeof window === "undefined") {
1492
+ throw new Error("No browser window to open a URL in");
1493
+ }
1494
+ if (!window.open(url, "_blank")) {
1495
+ throw new Error("The browser blocked opening a new window. Popups need a recent user action, so open the URL yourself.");
1493
1496
  }
1494
1497
  }
1495
1498
  };
@@ -1766,4 +1769,4 @@ export {
1766
1769
  setFileSystem
1767
1770
  };
1768
1771
 
1769
- //# debugId=6068CD2CB0AE383C64756E2164756E21
1772
+ //# debugId=F4DF2394664FC23064756E2164756E21
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/filesystem",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.203.0-preview.212",
5
+ "version": "1.204.0-preview.211",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/UiPath/cli.git",
@@ -38,5 +38,5 @@
38
38
  "mihaigirleanu",
39
39
  "vlad-uipath"
40
40
  ],
41
- "gitHead": "15094ce85cf76c59a54affbed3304febc271f41a"
41
+ "gitHead": "275e01f1f6098d4c3bc9673f5225f33372822534"
42
42
  }