@abtnode/util 1.16.25 → 1.16.26-beta-a18a668e
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/lib/format-back-slash.js +3 -2
- package/package.json +11 -11
package/lib/format-back-slash.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const replace = require('lodash/replace');
|
|
2
|
+
const escapeRegExp = require('lodash/escapeRegExp');
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Replace the back slack('\') with forward slash('/')
|
|
@@ -6,4 +7,4 @@ const lodash = require('lodash');
|
|
|
6
7
|
* @param {*} flag RegExp flag, default is 'g'
|
|
7
8
|
* @returns
|
|
8
9
|
*/
|
|
9
|
-
module.exports = (str) =>
|
|
10
|
+
module.exports = (str) => replace(str, new RegExp(escapeRegExp('\\'), 'g'), '/');
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.
|
|
6
|
+
"version": "1.16.26-beta-a18a668e",
|
|
7
7
|
"description": "ArcBlock's JavaScript utility",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@abtnode/constant": "1.16.
|
|
22
|
-
"@abtnode/logger": "1.16.
|
|
23
|
-
"@blocklet/constant": "1.16.
|
|
24
|
-
"@blocklet/meta": "1.16.
|
|
25
|
-
"@ocap/client": "1.18.
|
|
26
|
-
"@ocap/mcrypto": "1.18.
|
|
27
|
-
"@ocap/util": "1.18.
|
|
28
|
-
"@ocap/wallet": "1.18.
|
|
29
|
-
"archiver": "^
|
|
21
|
+
"@abtnode/constant": "1.16.26-beta-a18a668e",
|
|
22
|
+
"@abtnode/logger": "1.16.26-beta-a18a668e",
|
|
23
|
+
"@blocklet/constant": "1.16.26-beta-a18a668e",
|
|
24
|
+
"@blocklet/meta": "1.16.26-beta-a18a668e",
|
|
25
|
+
"@ocap/client": "1.18.114",
|
|
26
|
+
"@ocap/mcrypto": "1.18.114",
|
|
27
|
+
"@ocap/util": "1.18.114",
|
|
28
|
+
"@ocap/wallet": "1.18.114",
|
|
29
|
+
"archiver": "^7.0.1",
|
|
30
30
|
"axios": "^0.27.2",
|
|
31
31
|
"axios-mock-adapter": "^1.21.2",
|
|
32
32
|
"axon": "^2.0.3",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"fs-extra": "^11.2.0",
|
|
77
77
|
"jest": "^29.7.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "837064f7169e099bdcedfd1c8cb636a575e771de"
|
|
80
80
|
}
|