@hylid/env
Advanced tools
Comparing version 2.12.0-alpha.29 to 2.12.0-alpha.30
import { CLIENT } from "../constants"; | ||
export var mpChecker = [{ | ||
name: CLIENT.DEMO, | ||
match: [/demo/i] | ||
match: [/demo/] | ||
}, { | ||
name: CLIENT.ALIPAY, | ||
match: [/alipay/i] | ||
match: [/alipay/] | ||
}, { | ||
name: CLIENT.ALIPAYHK, | ||
match: [/hk/i] | ||
match: [/hk/] | ||
}, { | ||
name: CLIENT.TNGD, | ||
match: [/tngd/i] | ||
match: [/tngd/] | ||
}, { | ||
name: CLIENT.GCASH, | ||
match: [/gcash/i] | ||
match: [/gcash/] | ||
}, { | ||
name: CLIENT.TRUEMONEY, | ||
match: [/tmn/i] | ||
match: [/tmn/] | ||
}, { | ||
name: CLIENT.DANA, | ||
match: [/dana/i] | ||
match: [/dana/] | ||
}]; |
import { CLIENT, HAVE_GRIVER, HAVE_MINIPROGRAM, NO_GRIVER } from "../constants"; | ||
// 优先从 URL 里带过来 __app__ 参数进行识别 | ||
export var mpWebChecker = [{ | ||
name: CLIENT.DEMO, | ||
match: [/alipayIDE/i] // IDE 识别为 demo | ||
match: [/alipayIDE/] // IDE 识别为 demo | ||
}, { | ||
name: CLIENT.ALIPAY, | ||
match: [HAVE_MINIPROGRAM, NO_GRIVER, /alipay/i] | ||
match: [HAVE_MINIPROGRAM, NO_GRIVER, /alipay/] | ||
}, { | ||
name: CLIENT.ALIPAYHK, | ||
match: [HAVE_MINIPROGRAM, NO_GRIVER, /AlipayClientHK/] | ||
}, { | ||
name: CLIENT.TNGD, | ||
match: [HAVE_MINIPROGRAM, HAVE_GRIVER, /tng/i] | ||
}, | ||
@@ -9,0 +16,0 @@ // TODO: A+ 钱包套壳 UA 待真机测试后补充 |
import { CLIENT, NO_MINIPROGRAM, NO_GRIVER, HAVE_GRIVER } from "../constants"; | ||
export var webChecker = [{ | ||
name: CLIENT.ALIPAY, | ||
match: [NO_MINIPROGRAM, NO_GRIVER, /AlipayClient/i] | ||
}, { | ||
name: CLIENT.ALIPAYHK, | ||
match: [NO_MINIPROGRAM, NO_GRIVER, /AlipayClientHK/i] | ||
match: [NO_MINIPROGRAM, NO_GRIVER, /AlipayClientHK/] | ||
}, { | ||
name: CLIENT.TNGD, | ||
match: [NO_MINIPROGRAM, HAVE_GRIVER, /TNGKit|Touch 'n Go/i] | ||
match: [NO_MINIPROGRAM, HAVE_GRIVER, /TNGKit|Touch 'n Go/] | ||
}, { | ||
name: CLIENT.TNGD_H5NG, | ||
match: [NO_MINIPROGRAM, /TNGKit|Touch 'n Go/i, /IAPWebH5NG/i] | ||
match: [NO_MINIPROGRAM, /TNGKit|Touch 'n Go/, /IAPWebH5NG/] | ||
}, { | ||
name: CLIENT.GCASH, | ||
match: [NO_MINIPROGRAM, HAVE_GRIVER, /GCash/i] | ||
match: [NO_MINIPROGRAM, HAVE_GRIVER, /GCash/] | ||
}, { | ||
@@ -22,9 +19,9 @@ name: CLIENT.TRUEMONEY, | ||
name: CLIENT.KAKAOPAY, | ||
match: [NO_MINIPROGRAM, /PAYCLIENT|KAKAOTALK|KAKAOPAY/i] | ||
match: [NO_MINIPROGRAM, /PAYCLIENT|KAKAOTALK|KAKAOPAY/] | ||
}, { | ||
name: CLIENT.KAKAOTALK, | ||
match: [NO_MINIPROGRAM, /ALIPAYCONNECT_KAKAO_TALK/i] | ||
match: [NO_MINIPROGRAM, /ALIPAYCONNECT_KAKAO_TALK/] | ||
}, { | ||
name: CLIENT.NAVERPAY, | ||
match: [NO_MINIPROGRAM, /NAVER/i] | ||
match: [NO_MINIPROGRAM, /NAVER/] | ||
}, { | ||
@@ -36,2 +33,5 @@ name: CLIENT.MPAY, | ||
match: [NO_MINIPROGRAM, /Toss/i] | ||
}, { | ||
name: CLIENT.ALIPAY, | ||
match: [NO_MINIPROGRAM, NO_GRIVER, /AlipayClient/] | ||
}]; |
{ | ||
"name": "@hylid/env", | ||
"version": "2.12.0-alpha.29", | ||
"version": "2.12.0-alpha.30", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11190
335