yeawood_consts 1.0.28 → 1.0.29
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/index.js +4 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -15,6 +15,10 @@ exports.EMAIL_PATTERN = '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'
|
|
|
15
15
|
// 手机号正则
|
|
16
16
|
exports.PHONE_PATTERN = '^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$'
|
|
17
17
|
|
|
18
|
+
// 发送HTTP请求时头部中的browser参数
|
|
19
|
+
exports.BROWSER =
|
|
20
|
+
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36'
|
|
21
|
+
|
|
18
22
|
// MongoDB事务参数
|
|
19
23
|
exports.TRANSACTION_OPTIONS = (options = {}) =>
|
|
20
24
|
_.extend(
|