@apps-in-toss/framework 2.9.2 → 2.9.3

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 CHANGED
@@ -2168,7 +2168,8 @@ function showFullScreenAd(params) {
2168
2168
  onEvent({ type: "show" });
2169
2169
  },
2170
2170
  onUserEarnedReward: (data) => {
2171
- onEvent({ type: "userEarnedReward", data });
2171
+ const normalized = "type" in data ? { unitType: data.type, unitAmount: data.amount } : data;
2172
+ onEvent({ type: "userEarnedReward", data: normalized });
2172
2173
  },
2173
2174
  onSuccess: () => {
2174
2175
  onEvent({ type: "requested" });
package/dist/index.js CHANGED
@@ -2155,7 +2155,8 @@ function showFullScreenAd(params) {
2155
2155
  onEvent({ type: "show" });
2156
2156
  },
2157
2157
  onUserEarnedReward: (data) => {
2158
- onEvent({ type: "userEarnedReward", data });
2158
+ const normalized = "type" in data ? { unitType: data.type, unitAmount: data.amount } : data;
2159
+ onEvent({ type: "userEarnedReward", data: normalized });
2159
2160
  },
2160
2161
  onSuccess: () => {
2161
2162
  onEvent({ type: "requested" });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/framework",
3
3
  "type": "module",
4
- "version": "2.9.2",
4
+ "version": "2.9.3",
5
5
  "description": "The framework for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -55,12 +55,12 @@
55
55
  "ait": "./bin/ait.js"
56
56
  },
57
57
  "dependencies": {
58
- "@apps-in-toss/analytics": "2.9.2",
59
- "@apps-in-toss/cli": "2.9.2",
60
- "@apps-in-toss/native-modules": "2.9.2",
61
- "@apps-in-toss/plugins": "2.9.2",
62
- "@apps-in-toss/types": "2.9.2",
63
- "@apps-in-toss/user-scripts": "^2.9.2",
58
+ "@apps-in-toss/analytics": "2.9.3",
59
+ "@apps-in-toss/cli": "2.9.3",
60
+ "@apps-in-toss/native-modules": "2.9.3",
61
+ "@apps-in-toss/plugins": "2.9.3",
62
+ "@apps-in-toss/types": "2.9.3",
63
+ "@apps-in-toss/user-scripts": "^2.9.3",
64
64
  "es-hangul": "^2.3.2"
65
65
  },
66
66
  "devDependencies": {