@apps-in-toss/framework 2.7.0 → 2.7.1
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 +19 -2
- package/dist/index.js +19 -2
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1561,9 +1561,16 @@ function fetchTossAd(params) {
|
|
|
1561
1561
|
params.onError(createInvalidAdGroupIdError());
|
|
1562
1562
|
return noop;
|
|
1563
1563
|
}
|
|
1564
|
+
const wireHeaders = options.headers;
|
|
1564
1565
|
const unregisterCallbacks = import_native_modules12.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(
|
|
1565
1566
|
"fetchTossAd",
|
|
1566
|
-
{
|
|
1567
|
+
{
|
|
1568
|
+
spaceUnitId: adGroupId,
|
|
1569
|
+
sessionId,
|
|
1570
|
+
sdkId: options.sdkId,
|
|
1571
|
+
availableStyleIds: options.availableStyleIds,
|
|
1572
|
+
...wireHeaders ? { headers: wireHeaders } : {}
|
|
1573
|
+
},
|
|
1567
1574
|
{
|
|
1568
1575
|
onSuccess: (response) => {
|
|
1569
1576
|
onEvent(response);
|
|
@@ -1680,8 +1687,11 @@ function generateLoadFullScreenAd(sdkId) {
|
|
|
1680
1687
|
}
|
|
1681
1688
|
};
|
|
1682
1689
|
if (!integratedAdIsSupported()) {
|
|
1690
|
+
const fallbackOptions = { ...normalizedParams.options };
|
|
1691
|
+
delete fallbackOptions.headers;
|
|
1683
1692
|
return import_native_modules14.GoogleAdMob.loadAppsInTossAdMob({
|
|
1684
1693
|
...normalizedParams,
|
|
1694
|
+
options: fallbackOptions,
|
|
1685
1695
|
onEvent: (event) => {
|
|
1686
1696
|
if (event.type === "loaded") {
|
|
1687
1697
|
const requestId = generateRequestId();
|
|
@@ -1718,9 +1728,16 @@ function generateLoadFullScreenAd(sdkId) {
|
|
|
1718
1728
|
const { onEvent, onError, options } = normalizedParams;
|
|
1719
1729
|
const { adGroupId } = options;
|
|
1720
1730
|
const referrer = getReferrer();
|
|
1731
|
+
const wireHeaders = options.headers;
|
|
1721
1732
|
const unregisterCallbacks = import_native_modules14.INTERNAL__appBridgeHandler.invokeAppBridgeMethod(
|
|
1722
1733
|
"loadTossAdOrAdmob",
|
|
1723
|
-
{
|
|
1734
|
+
{
|
|
1735
|
+
spaceUnitId: adGroupId,
|
|
1736
|
+
referrer,
|
|
1737
|
+
sessionId,
|
|
1738
|
+
sdkId,
|
|
1739
|
+
...wireHeaders ? { headers: wireHeaders } : {}
|
|
1740
|
+
},
|
|
1724
1741
|
{
|
|
1725
1742
|
onSuccess: () => {
|
|
1726
1743
|
onEvent({ type: "loaded" });
|
package/dist/index.js
CHANGED
|
@@ -1548,9 +1548,16 @@ function fetchTossAd(params) {
|
|
|
1548
1548
|
params.onError(createInvalidAdGroupIdError());
|
|
1549
1549
|
return noop;
|
|
1550
1550
|
}
|
|
1551
|
+
const wireHeaders = options.headers;
|
|
1551
1552
|
const unregisterCallbacks = INTERNAL__appBridgeHandler3.invokeAppBridgeMethod(
|
|
1552
1553
|
"fetchTossAd",
|
|
1553
|
-
{
|
|
1554
|
+
{
|
|
1555
|
+
spaceUnitId: adGroupId,
|
|
1556
|
+
sessionId,
|
|
1557
|
+
sdkId: options.sdkId,
|
|
1558
|
+
availableStyleIds: options.availableStyleIds,
|
|
1559
|
+
...wireHeaders ? { headers: wireHeaders } : {}
|
|
1560
|
+
},
|
|
1554
1561
|
{
|
|
1555
1562
|
onSuccess: (response) => {
|
|
1556
1563
|
onEvent(response);
|
|
@@ -1667,8 +1674,11 @@ function generateLoadFullScreenAd(sdkId) {
|
|
|
1667
1674
|
}
|
|
1668
1675
|
};
|
|
1669
1676
|
if (!integratedAdIsSupported()) {
|
|
1677
|
+
const fallbackOptions = { ...normalizedParams.options };
|
|
1678
|
+
delete fallbackOptions.headers;
|
|
1670
1679
|
return GoogleAdMob.loadAppsInTossAdMob({
|
|
1671
1680
|
...normalizedParams,
|
|
1681
|
+
options: fallbackOptions,
|
|
1672
1682
|
onEvent: (event) => {
|
|
1673
1683
|
if (event.type === "loaded") {
|
|
1674
1684
|
const requestId = generateRequestId();
|
|
@@ -1705,9 +1715,16 @@ function generateLoadFullScreenAd(sdkId) {
|
|
|
1705
1715
|
const { onEvent, onError, options } = normalizedParams;
|
|
1706
1716
|
const { adGroupId } = options;
|
|
1707
1717
|
const referrer = getReferrer();
|
|
1718
|
+
const wireHeaders = options.headers;
|
|
1708
1719
|
const unregisterCallbacks = INTERNAL__appBridgeHandler4.invokeAppBridgeMethod(
|
|
1709
1720
|
"loadTossAdOrAdmob",
|
|
1710
|
-
{
|
|
1721
|
+
{
|
|
1722
|
+
spaceUnitId: adGroupId,
|
|
1723
|
+
referrer,
|
|
1724
|
+
sessionId,
|
|
1725
|
+
sdkId,
|
|
1726
|
+
...wireHeaders ? { headers: wireHeaders } : {}
|
|
1727
|
+
},
|
|
1711
1728
|
{
|
|
1712
1729
|
onSuccess: () => {
|
|
1713
1730
|
onEvent({ type: "loaded" });
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apps-in-toss/framework",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.7.
|
|
4
|
+
"version": "2.7.1",
|
|
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.7.
|
|
59
|
-
"@apps-in-toss/cli": "2.7.
|
|
60
|
-
"@apps-in-toss/native-modules": "2.7.
|
|
61
|
-
"@apps-in-toss/plugins": "2.7.
|
|
62
|
-
"@apps-in-toss/types": "2.7.
|
|
63
|
-
"@apps-in-toss/user-scripts": "^2.7.
|
|
58
|
+
"@apps-in-toss/analytics": "2.7.1",
|
|
59
|
+
"@apps-in-toss/cli": "2.7.1",
|
|
60
|
+
"@apps-in-toss/native-modules": "2.7.1",
|
|
61
|
+
"@apps-in-toss/plugins": "2.7.1",
|
|
62
|
+
"@apps-in-toss/types": "2.7.1",
|
|
63
|
+
"@apps-in-toss/user-scripts": "^2.7.1",
|
|
64
64
|
"es-hangul": "^2.3.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|