@apps-in-toss/native-modules 2.4.5 → 2.4.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/bridges-meta.json
CHANGED
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
"identifier": "requestReview",
|
|
136
|
-
"dts": "/**\n * @public\n * @category 리뷰\n * @name
|
|
136
|
+
"dts": "/**\n * @public\n * @category 리뷰\n * @name requestReview\n * @description\n * 유저에게 미니앱 리뷰를 요청해요.\n *\n * @property {() => boolean} isSupported 현재 앱 버전이 이 기능을 지원하는지 확인하는 함수예요.\n */\nexport declare function requestReview(): Promise<void>;\nexport declare namespace requestReview {\n\tvar isSupported: () => boolean;\n}\n\nexport {};\n"
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"identifier": "getLocale",
|
package/dist/index.cjs
CHANGED
|
@@ -1074,7 +1074,7 @@ async function requestReview() {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
return safePostMessage("requestMiniAppReview", { title: brandDisplayName });
|
|
1076
1076
|
}
|
|
1077
|
-
requestReview.isSupported = () =>
|
|
1077
|
+
requestReview.isSupported = () => isMinVersionSupported(MIN_VERSION);
|
|
1078
1078
|
|
|
1079
1079
|
// src/MiniAppModule/native-modules/index.ts
|
|
1080
1080
|
var TossPay = {
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -993,7 +993,7 @@ async function requestReview() {
|
|
|
993
993
|
}
|
|
994
994
|
return safePostMessage("requestMiniAppReview", { title: brandDisplayName });
|
|
995
995
|
}
|
|
996
|
-
requestReview.isSupported = () =>
|
|
996
|
+
requestReview.isSupported = () => isMinVersionSupported(MIN_VERSION);
|
|
997
997
|
|
|
998
998
|
// src/MiniAppModule/native-modules/index.ts
|
|
999
999
|
var TossPay = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/native-modules",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.6",
|
|
5
5
|
"description": "Native Modules for Apps In Toss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vitest": "^3.2.4"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@apps-in-toss/types": "2.4.
|
|
45
|
+
"@apps-in-toss/types": "2.4.6",
|
|
46
46
|
"brick-module": "0.5.0",
|
|
47
47
|
"es-toolkit": "^1.39.3"
|
|
48
48
|
},
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { isMinVersionSupported } from './isMinVersionSupported';
|
|
2
|
-
import {
|
|
2
|
+
import { safePostMessage } from '../../natives';
|
|
3
3
|
|
|
4
4
|
const MIN_VERSION = { android: '5.253.0', ios: '5.253.0' } as const;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @public
|
|
8
8
|
* @category 리뷰
|
|
9
|
-
* @name
|
|
9
|
+
* @name requestReview
|
|
10
10
|
* @description
|
|
11
11
|
* 유저에게 미니앱 리뷰를 요청해요.
|
|
12
12
|
*
|
|
@@ -27,7 +27,6 @@ export async function requestReview(): Promise<void> {
|
|
|
27
27
|
|
|
28
28
|
return safePostMessage('requestMiniAppReview', { title: brandDisplayName });
|
|
29
29
|
}
|
|
30
|
-
requestReview.isSupported = () =>
|
|
31
|
-
MiniAppModule.getConstants().operationalEnvironment === 'toss' && isMinVersionSupported(MIN_VERSION);
|
|
30
|
+
requestReview.isSupported = () => isMinVersionSupported(MIN_VERSION);
|
|
32
31
|
|
|
33
32
|
declare const global: { __granite: any; __appsInToss: any };
|