epii-types-rpa 1.2.3 → 1.2.4

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 +10 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "epii-types-rpa",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "rpa-types",
5
5
  "author": "MrRen",
6
6
  "license": "ISC",
package/rpa.d.ts CHANGED
@@ -50,7 +50,7 @@ namespace rpa {
50
50
  namespace console {
51
51
  function log(object: any): Promise;
52
52
  function error(error): Promise;
53
- function readline(tip:String = "",dvalue=""):Promise;
53
+ function readline(tip: String = "", dvalue = ""): Promise;
54
54
  }
55
55
  namespace tools {
56
56
  function addRequestHandler(r: RequestHandler): Promise
@@ -70,7 +70,12 @@ namespace rpa {
70
70
  function forEach(list: Array, callback: Function): Promise;
71
71
  function mkdir(path: String): Promise;
72
72
  function randomString(len: Number): Promise;
73
- function waitForTrue(func: Function, interval = 500): Promise
73
+ function waitForTrue(func: Function, interval = 500): Promise;
74
+ function encodeURI(str: String, charset: String = "utf-8"): Promise;
75
+ function decodeURI(str: String, charset: String = "utf-8"): Promise;
76
+ function replace(str: String, regex: RegExp, asyncFn: Function): Promise;
77
+
78
+
74
79
 
75
80
  }
76
81
  namespace page {
@@ -130,9 +135,9 @@ namespace rpa {
130
135
  namespace process {
131
136
  function exit(): Promise;
132
137
  }
133
- namespace cross{
134
- function newIframeContextAndEvaluate(host:String, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
135
- function newIframeAndEvaluate(urlOrFunction:String|Function, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
138
+ namespace cross {
139
+ function newIframeContextAndEvaluate(host: String, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
140
+ function newIframeAndEvaluate(urlOrFunction: String | Function, func: Function, data = {}, removeOnFinish: Boolean = true): Promise;
136
141
  namespace ajax {
137
142
  function post(url: String, data: Object | String = "", headers: Object = {}): Promise;
138
143
  function get(url: String, headers: Object = {}): Promise;