@apps-in-toss/web-bridge 1.9.0 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @apps-in-toss/web-bridge
2
2
 
3
+ ## 1.9.1
4
+
5
+ ### Patch Changes
6
+
7
+ [[AIT-3945] getServerTime web-bridge 배포](https://github.toss.bz/toss/apps-in-toss-sdk/pull/31)
8
+
9
+ getServerTime 브릿지에 isSupported 를 추가합니다
10
+
3
11
  ## 1.9.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  getClipboardText: () => getClipboardText,
36
36
  getCurrentLocation: () => getCurrentLocation,
37
37
  getSafeAreaInsets: () => getSafeAreaInsets,
38
+ getServerTime: () => getServerTime,
38
39
  graniteEvent: () => graniteEvent,
39
40
  isMinVersionSupported: () => isMinVersionSupported,
40
41
  loadFullScreenAd: () => loadFullScreenAd,
@@ -1102,6 +1103,12 @@ var TossAds = {
1102
1103
  })
1103
1104
  };
1104
1105
 
1106
+ // src/getServerTime.ts
1107
+ var import_bridge_core24 = require("@apps-in-toss/bridge-core");
1108
+ var getServerTime = Object.assign((0, import_bridge_core24.createAsyncBridge)("getServerTime"), {
1109
+ isSupported: (0, import_bridge_core24.createConstantBridge)("getServerTime_isSupported")
1110
+ });
1111
+
1105
1112
  // src/index.ts
1106
1113
  __reExport(index_exports, require("@apps-in-toss/types"), module.exports);
1107
1114
  // Annotate the CommonJS export names for ESM import in node:
@@ -1119,6 +1126,7 @@ __reExport(index_exports, require("@apps-in-toss/types"), module.exports);
1119
1126
  getClipboardText,
1120
1127
  getCurrentLocation,
1121
1128
  getSafeAreaInsets,
1129
+ getServerTime,
1122
1130
  graniteEvent,
1123
1131
  isMinVersionSupported,
1124
1132
  loadFullScreenAd,
package/dist/index.d.cts CHANGED
@@ -889,4 +889,8 @@ declare const TossAds: {
889
889
  };
890
890
  };
891
891
 
892
- export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type TdsEvent, TossAds, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
892
+ declare const getServerTime: (() => Promise<number | undefined>) & {
893
+ isSupported: () => boolean;
894
+ };
895
+
896
+ export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type TdsEvent, TossAds, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
package/dist/index.d.ts CHANGED
@@ -889,4 +889,8 @@ declare const TossAds: {
889
889
  };
890
890
  };
891
891
 
892
- export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type TdsEvent, TossAds, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
892
+ declare const getServerTime: (() => Promise<number | undefined>) & {
893
+ isSupported: () => boolean;
894
+ };
895
+
896
+ export { type AddAccessoryButtonOptions, type AppsInTossEvent, type AppsInTossGlobals, type CompletedOrRefundedOrdersResult, GoogleAdMob, type GraniteEvent, IAP, type IapCreateOneTimePurchaseOrderOptions, type IapProductListItem, SafeAreaInsets$1 as SafeAreaInsets, Storage, type TdsEvent, TossAds, type AttachOptions as TossAdsAttachOptions, type BannerSlotCallbacks as TossAdsBannerSlotCallbacks, type BannerSlotErrorPayload as TossAdsBannerSlotErrorPayload, type BannerSlotEventPayload as TossAdsBannerSlotEventPayload, type InitializeOptions as TossAdsInitializeOptions, appsInTossEvent, env, fetchAlbumPhotos, fetchContacts, getAppsInTossGlobals, getClipboardText, getCurrentLocation, getSafeAreaInsets, getServerTime, graniteEvent, isMinVersionSupported, loadFullScreenAd, openCamera, partner, setClipboardText, showFullScreenAd, startUpdateLocation, tdsEvent };
package/dist/index.js CHANGED
@@ -1061,6 +1061,12 @@ var TossAds = {
1061
1061
  })
1062
1062
  };
1063
1063
 
1064
+ // src/getServerTime.ts
1065
+ import { createAsyncBridge as createAsyncBridge15, createConstantBridge as createConstantBridge9 } from "@apps-in-toss/bridge-core";
1066
+ var getServerTime = Object.assign(createAsyncBridge15("getServerTime"), {
1067
+ isSupported: createConstantBridge9("getServerTime_isSupported")
1068
+ });
1069
+
1064
1070
  // src/index.ts
1065
1071
  export * from "@apps-in-toss/types";
1066
1072
  export {
@@ -1077,6 +1083,7 @@ export {
1077
1083
  getClipboardText,
1078
1084
  getCurrentLocation,
1079
1085
  getSafeAreaInsets,
1086
+ getServerTime,
1080
1087
  graniteEvent,
1081
1088
  isMinVersionSupported,
1082
1089
  loadFullScreenAd,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/web-bridge",
3
3
  "type": "module",
4
- "version": "1.9.0",
4
+ "version": "1.9.1",
5
5
  "description": "Web Bridge for Apps In Toss",
6
6
  "scripts": {
7
7
  "typecheck": "tsc --noEmit",
@@ -27,11 +27,11 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@apps-in-toss/types": "1.9.0"
30
+ "@apps-in-toss/types": "1.9.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@apps-in-toss/bridge-core": "1.9.0",
34
- "@apps-in-toss/framework": "1.9.0",
33
+ "@apps-in-toss/bridge-core": "1.9.1",
34
+ "@apps-in-toss/framework": "1.9.1",
35
35
  "@swc/core": "^1.12.7",
36
36
  "picocolors": "^1.1.1",
37
37
  "ts-morph": "^26.0.0",