@jhqn/utils-core 0.0.3-beta.5 → 0.0.3-beta.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.
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -460,6 +460,7 @@ const getHostEnv = () => {
|
|
|
460
460
|
const zlb = ua.includes("@zlb");
|
|
461
461
|
const zyd = ua.includes("saas");
|
|
462
462
|
const zzd = ua.includes("zhejiang") || ua.includes("tauruszjd") || ua.includes("dingtalk-win");
|
|
463
|
+
const dd = ua.includes("taurusapp");
|
|
463
464
|
const wx = ua.includes("micromessenger");
|
|
464
465
|
const zfb = ua.includes("alipay");
|
|
465
466
|
const mini = ua.includes("miniprogram");
|
|
@@ -467,6 +468,7 @@ const getHostEnv = () => {
|
|
|
467
468
|
zlb,
|
|
468
469
|
zyd,
|
|
469
470
|
zzd,
|
|
471
|
+
dd,
|
|
470
472
|
wx,
|
|
471
473
|
zfb,
|
|
472
474
|
mini
|
package/dist/index.d.cts
CHANGED
|
@@ -327,6 +327,10 @@ interface HostEnv {
|
|
|
327
327
|
* 是否是浙政钉
|
|
328
328
|
*/
|
|
329
329
|
readonly zzd: boolean
|
|
330
|
+
/**
|
|
331
|
+
* 是否是钉钉/专有钉/浙政钉
|
|
332
|
+
*/
|
|
333
|
+
readonly dd: boolean
|
|
330
334
|
/**
|
|
331
335
|
* 是否是微信
|
|
332
336
|
*/
|
|
@@ -368,6 +372,7 @@ declare const userAgent: string;
|
|
|
368
372
|
* hostEnv.zlb // 浙里办
|
|
369
373
|
* hostEnv.zyd // 专有钉
|
|
370
374
|
* hostEnv.zzd // 浙政钉
|
|
375
|
+
* hostEnv.dd // 钉钉/专有钉/浙政钉
|
|
371
376
|
* hostEnv.wx // 微信
|
|
372
377
|
* hostEnv.zfb // 支付宝
|
|
373
378
|
* hostEnv.mini // 小程序
|
package/dist/index.d.mts
CHANGED
|
@@ -327,6 +327,10 @@ interface HostEnv {
|
|
|
327
327
|
* 是否是浙政钉
|
|
328
328
|
*/
|
|
329
329
|
readonly zzd: boolean
|
|
330
|
+
/**
|
|
331
|
+
* 是否是钉钉/专有钉/浙政钉
|
|
332
|
+
*/
|
|
333
|
+
readonly dd: boolean
|
|
330
334
|
/**
|
|
331
335
|
* 是否是微信
|
|
332
336
|
*/
|
|
@@ -368,6 +372,7 @@ declare const userAgent: string;
|
|
|
368
372
|
* hostEnv.zlb // 浙里办
|
|
369
373
|
* hostEnv.zyd // 专有钉
|
|
370
374
|
* hostEnv.zzd // 浙政钉
|
|
375
|
+
* hostEnv.dd // 钉钉/专有钉/浙政钉
|
|
371
376
|
* hostEnv.wx // 微信
|
|
372
377
|
* hostEnv.zfb // 支付宝
|
|
373
378
|
* hostEnv.mini // 小程序
|
package/dist/index.d.ts
CHANGED
|
@@ -327,6 +327,10 @@ interface HostEnv {
|
|
|
327
327
|
* 是否是浙政钉
|
|
328
328
|
*/
|
|
329
329
|
readonly zzd: boolean
|
|
330
|
+
/**
|
|
331
|
+
* 是否是钉钉/专有钉/浙政钉
|
|
332
|
+
*/
|
|
333
|
+
readonly dd: boolean
|
|
330
334
|
/**
|
|
331
335
|
* 是否是微信
|
|
332
336
|
*/
|
|
@@ -368,6 +372,7 @@ declare const userAgent: string;
|
|
|
368
372
|
* hostEnv.zlb // 浙里办
|
|
369
373
|
* hostEnv.zyd // 专有钉
|
|
370
374
|
* hostEnv.zzd // 浙政钉
|
|
375
|
+
* hostEnv.dd // 钉钉/专有钉/浙政钉
|
|
371
376
|
* hostEnv.wx // 微信
|
|
372
377
|
* hostEnv.zfb // 支付宝
|
|
373
378
|
* hostEnv.mini // 小程序
|
package/dist/index.mjs
CHANGED
|
@@ -449,6 +449,7 @@ const getHostEnv = () => {
|
|
|
449
449
|
const zlb = ua.includes("@zlb");
|
|
450
450
|
const zyd = ua.includes("saas");
|
|
451
451
|
const zzd = ua.includes("zhejiang") || ua.includes("tauruszjd") || ua.includes("dingtalk-win");
|
|
452
|
+
const dd = ua.includes("taurusapp");
|
|
452
453
|
const wx = ua.includes("micromessenger");
|
|
453
454
|
const zfb = ua.includes("alipay");
|
|
454
455
|
const mini = ua.includes("miniprogram");
|
|
@@ -456,6 +457,7 @@ const getHostEnv = () => {
|
|
|
456
457
|
zlb,
|
|
457
458
|
zyd,
|
|
458
459
|
zzd,
|
|
460
|
+
dd,
|
|
459
461
|
wx,
|
|
460
462
|
zfb,
|
|
461
463
|
mini
|
package/package.json
CHANGED