@hylid/custom-jsapi 6.9.0 → 6.10.2
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/bridge.js +3 -1
- package/package.json +4 -4
package/lib/bridge.js
CHANGED
|
@@ -39,6 +39,7 @@ import { getGeneralAppInfo as hipayGetGeneralAppInfo } from "./common/hipay/getG
|
|
|
39
39
|
import { getGeneralAppInfo as zalopayGetGeneralAppInfo } from "./common/zalopay/getGeneralAppInfo";
|
|
40
40
|
import { getGeneralAppInfo as kakaopayGetGeneralAppInfo } from "./common/kakaopay/getGeneralAppInfo";
|
|
41
41
|
import { getGeneralAppInfo as tinabaGetGeneralAppInfo } from "./common/tinaba/getGeneralAppInfo";
|
|
42
|
+
import { getGeneralAppInfo as gopayGetGeneralAppInfo } from "./common/gopay/getGeneralAppInfo";
|
|
42
43
|
export var bySpecificClient = function bySpecificClient(map, defaultValue) {
|
|
43
44
|
return function (clientName) {
|
|
44
45
|
return map[clientName] || defaultValue;
|
|
@@ -103,8 +104,9 @@ export var getGeneralAppInfo = function getGeneralAppInfo() {
|
|
|
103
104
|
if (clientEnv.isZALOPAY) return zalopayGetGeneralAppInfo();
|
|
104
105
|
if (clientEnv.isKAKAOPAY) return kakaopayGetGeneralAppInfo();
|
|
105
106
|
if (clientEnv.isTINABA) return tinabaGetGeneralAppInfo();
|
|
107
|
+
if (clientEnv.isGOPAY) return gopayGetGeneralAppInfo();
|
|
106
108
|
return notFound('getGeneralAppInfo');
|
|
107
109
|
};
|
|
108
|
-
export var getGeneralAppInfoCreator = bySpecificClient((_c = {}, _c[CLIENT.ALIPAY] = alipayGetGeneralAppInfo, _c[CLIENT.ALIPAYHK] = alipayhkGetGeneralAppInfo, _c[CLIENT.DANA] = danaGetGeneralAppInfo, _c[CLIENT.GCASH] = gcashGetGeneralAppInfo, _c[CLIENT.MPAY] = mpayGetGeneralAppInfo, _c[CLIENT.TNGD] = tngdGetGeneralAppInfo, _c[CLIENT.TOSSPAY] = tossGetGeneralAppInfo, _c[CLIENT.TRUEMONEY] = truemoneyGetGeneralAppInfo, _c[CLIENT.HIPAY] = hipayGetGeneralAppInfo, _c[CLIENT.ZALOPAY] = zalopayGetGeneralAppInfo, _c[CLIENT.KAKAOPAY] = kakaopayGetGeneralAppInfo, _c[CLIENT.TINABA] = tinabaGetGeneralAppInfo, _c), function () {
|
|
110
|
+
export var getGeneralAppInfoCreator = bySpecificClient((_c = {}, _c[CLIENT.ALIPAY] = alipayGetGeneralAppInfo, _c[CLIENT.ALIPAYHK] = alipayhkGetGeneralAppInfo, _c[CLIENT.DANA] = danaGetGeneralAppInfo, _c[CLIENT.GCASH] = gcashGetGeneralAppInfo, _c[CLIENT.MPAY] = mpayGetGeneralAppInfo, _c[CLIENT.TNGD] = tngdGetGeneralAppInfo, _c[CLIENT.TOSSPAY] = tossGetGeneralAppInfo, _c[CLIENT.TRUEMONEY] = truemoneyGetGeneralAppInfo, _c[CLIENT.HIPAY] = hipayGetGeneralAppInfo, _c[CLIENT.ZALOPAY] = zalopayGetGeneralAppInfo, _c[CLIENT.KAKAOPAY] = kakaopayGetGeneralAppInfo, _c[CLIENT.TINABA] = tinabaGetGeneralAppInfo, _c[CLIENT.GOPAY] = gopayGetGeneralAppInfo, _c), function () {
|
|
109
111
|
return notFound('getGeneralAppInfo');
|
|
110
112
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hylid/custom-jsapi",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.2",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib"
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@hylid/call": "^6.
|
|
13
|
-
"@hylid/env": "^6.
|
|
14
|
-
"@hylid/types": "^6.
|
|
12
|
+
"@hylid/call": "^6.10.2",
|
|
13
|
+
"@hylid/env": "^6.10.2",
|
|
14
|
+
"@hylid/types": "^6.10.2",
|
|
15
15
|
"qs-es5": "^6.8.4"
|
|
16
16
|
},
|
|
17
17
|
"license": "MIT",
|