epii-types-rpa 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/rpa.d.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -15,6 +15,7 @@ interface FormItem {
15
15
  title?: String,
16
16
  value?: any
17
17
  }
18
+ type RunInPage = "activated" | "incognito" | "newPage" | "opened" | "";
18
19
 
19
20
  namespace rpa {
20
21
  function ready(isReady = 1);
@@ -26,8 +27,8 @@ namespace rpa {
26
27
  function mergeArgs(map: Object): Promise;
27
28
  function require(path: String): Promise;
28
29
  function success(data: any, exit: boolean);
29
- function exec(script: String, params: Object = {});
30
- function execScript(script: String, params: Object = {});
30
+ function exec(script: String, params: Object = {},runInPage:RunInPage="");
31
+ function execScript(script: String, params: Object = {},runInPage:RunInPage="");
31
32
 
32
33
  function execPuppeteer(script: String, params: Object = {});
33
34
  function error(msg: String, code: number = - 1);
@@ -55,7 +56,6 @@ namespace rpa {
55
56
  function download(url: String, path: String): Promise;
56
57
  function setApiBase(_url_pre:String);
57
58
  function setBaseData(data:Object);
58
- function download(url: String, path: String): Promise
59
59
  }
60
60
 
61
61
  namespace console {