@goldfishjs/bridge
Advanced tools
Comparing version 0.0.14 to 0.0.15
{ | ||
"name": "@goldfishjs/bridge", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "goldfish-bridge", | ||
@@ -19,3 +19,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"mini-types": "^0.0.4" | ||
"mini-types": "^0.1.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "devDependencies": { |
@@ -15,3 +15,3 @@ /// <reference types="mini-types" /> | ||
declare const _default: { | ||
call: <T extends keyof R, R extends Record<string, any> = Pick<typeof my, "navigateTo" | "redirectTo" | "navigateBack" | "reLaunch" | "setNavigationBar" | "showNavigationBarLoading" | "hideNavigationBarLoading" | "hideBackHome" | "switchTab" | "hideTabBar" | "hideTabBarRedDot" | "removeTabBarBadge" | "setTabBarBadge" | "setTabBarItem" | "setTabBarStyle" | "showTabBar" | "showTabBarRedDot" | "stopPullDownRefresh" | "startPullDownRefresh" | "choosePhoneContact" | "chooseAlipayContact" | "chooseContact" | "chooseCity" | "datePicker" | "createAnimation" | "createCanvasContext" | "createMapContext" | "hideKeyboard" | "pageScrollTo" | "createSelectorQuery" | "multiLevelSelect" | "showToast" | "hideToast" | "alert" | "confirm" | "prompt" | "showLoading" | "hideLoading" | "showActionSheet" | "optionsSelect" | "getAuthCode" | "getAuthUserInfo" | "getPhoneNumber" | "tradePay" | "paySignCenter" | "openCardList" | "openMerchantCardList" | "openCardDetail" | "openVoucherList" | "openMerchantVoucherList" | "openVoucherDetail" | "openKBVoucherDetail" | "openTicketList" | "openMerchantTicketList" | "openTicketDetail" | "addCardAuth" | "startZMVerify" | "textRiskIdentification" | "navigateToMiniProgram" | "navigateBackMiniProgram" | "createWebViewContext" | "chooseImage" | "previewImage" | "getImageInfo" | "saveImage" | "compressImage" | "setStorage" | "setStorageSync" | "getStorage" | "getStorageSync" | "removeStorage" | "removeStorageSync" | "clearStorage" | "clearStorageSync" | "getStorageInfo" | "getStorageInfoSync" | "saveFile" | "getSavedFileList" | "getSavedFileInfo" | "removeSavedFile" | "getFileInfo" | "getLocation" | "chooseLocation" | "openLocation" | "httpRequest" | "request" | "uploadFile" | "downloadFile" | "connectSocket" | "onSocketOpen" | "onSocketError" | "sendSocketMessage" | "onSocketMessage" | "closeSocket" | "onSocketClose" | "offSocketClose" | "getNetworkType" | "onNetworkStatusChange" | "offNetworkStatusChange" | "canIUse" | "getSystemInfo" | "getSystemInfoSync" | "getClipboard" | "setClipboard" | "watchShake" | "vibrate" | "vibrateLong" | "vibrateShort" | "onAccelerometerChange" | "offAccelerometerChange" | "onGyroscopeChange" | "offGyroscopeChange" | "onCompassChange" | "offCompassChange" | "makePhoneCall" | "getServerTime" | "onUserCaptureScreen" | "offUserCaptureScreen" | "setKeepScreenOn" | "getScreenBrightness" | "setScreenBrightness" | "openSetting" | "getSetting" | "addPhoneContact" | "showAuthGuide" | "scan" | "openBluetoothAdapter" | "closeBluetoothAdapter" | "getBluetoothAdapterState" | "startBluetoothDevicesDiscovery" | "stopBluetoothDevicesDiscovery" | "getBluetoothDevices" | "getConnectedBluetoothDevices" | "connectBLEDevice" | "disconnectBLEDevice" | "writeBLECharacteristicValue" | "readBLECharacteristicValue" | "notifyBLECharacteristicValueChange" | "getBLEDeviceServices" | "getBLEDeviceCharacteristics" | "onBluetoothDeviceFound" | "offBluetoothDeviceFound" | "onBLECharacteristicValueChange" | "offBLECharacteristicValueChange" | "onBLEConnectionStateChanged" | "offBLEConnectionStateChanged" | "onBluetoothAdapterStateChange" | "offBluetoothAdapterStateChange" | "startBeaconDiscovery" | "stopBeaconDiscovery" | "getBeacons" | "onBeaconUpdate" | "onBeaconServiceChange" | "rsa" | "hideShareMenu" | "hideAddToDesktopMenu" | "hideAllAddToDesktopMenu" | "hideFavoriteMenu" | "hideAllFavoriteMenu"> & SpecialMethods>(api: T, params?: Parameters<R[T]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R[T]>[0]>>; | ||
call: <T extends keyof R, R extends Record<string, any> = Pick<typeof my, "navigateTo" | "redirectTo" | "navigateBack" | "reLaunch" | "setNavigationBar" | "showNavigationBarLoading" | "hideNavigationBarLoading" | "hideBackHome" | "switchTab" | "hideTabBar" | "hideTabBarRedDot" | "removeTabBarBadge" | "setTabBarBadge" | "setTabBarItem" | "setTabBarStyle" | "showTabBar" | "showTabBarRedDot" | "stopPullDownRefresh" | "startPullDownRefresh" | "choosePhoneContact" | "chooseAlipayContact" | "chooseContact" | "chooseCity" | "datePicker" | "createAnimation" | "createCanvasContext" | "createMapContext" | "hideKeyboard" | "pageScrollTo" | "createSelectorQuery" | "multiLevelSelect" | "showToast" | "hideToast" | "alert" | "confirm" | "prompt" | "showLoading" | "hideLoading" | "showActionSheet" | "optionsSelect" | "loadFontFace" | "getAuthCode" | "getAuthUserInfo" | "getPhoneNumber" | "tradePay" | "paySignCenter" | "openCardList" | "openMerchantCardList" | "openCardDetail" | "openVoucherList" | "openMerchantVoucherList" | "openVoucherDetail" | "openKBVoucherDetail" | "openTicketList" | "openMerchantTicketList" | "openTicketDetail" | "addCardAuth" | "startZMVerify" | "textRiskIdentification" | "navigateToMiniProgram" | "navigateBackMiniProgram" | "createWebViewContext" | "chooseImage" | "previewImage" | "getImageInfo" | "saveImage" | "compressImage" | "createVideoContext" | "setStorage" | "setStorageSync" | "getStorage" | "getStorageSync" | "removeStorage" | "removeStorageSync" | "clearStorage" | "clearStorageSync" | "getStorageInfo" | "getStorageInfoSync" | "saveFile" | "getSavedFileList" | "getSavedFileInfo" | "removeSavedFile" | "getFileInfo" | "getLocation" | "chooseLocation" | "openLocation" | "httpRequest" | "request" | "uploadFile" | "downloadFile" | "connectSocket" | "onSocketOpen" | "onSocketError" | "sendSocketMessage" | "onSocketMessage" | "closeSocket" | "onSocketClose" | "offSocketClose" | "getNetworkType" | "onNetworkStatusChange" | "offNetworkStatusChange" | "canIUse" | "getSystemInfo" | "getSystemInfoSync" | "getClipboard" | "setClipboard" | "watchShake" | "vibrate" | "vibrateLong" | "vibrateShort" | "onAccelerometerChange" | "offAccelerometerChange" | "onGyroscopeChange" | "offGyroscopeChange" | "onCompassChange" | "offCompassChange" | "makePhoneCall" | "getServerTime" | "onUserCaptureScreen" | "offUserCaptureScreen" | "setKeepScreenOn" | "getScreenBrightness" | "setScreenBrightness" | "openSetting" | "getSetting" | "addPhoneContact" | "showAuthGuide" | "scan" | "openBluetoothAdapter" | "closeBluetoothAdapter" | "getBluetoothAdapterState" | "startBluetoothDevicesDiscovery" | "stopBluetoothDevicesDiscovery" | "getBluetoothDevices" | "getConnectedBluetoothDevices" | "connectBLEDevice" | "disconnectBLEDevice" | "writeBLECharacteristicValue" | "readBLECharacteristicValue" | "notifyBLECharacteristicValueChange" | "getBLEDeviceServices" | "getBLEDeviceCharacteristics" | "onBluetoothDeviceFound" | "offBluetoothDeviceFound" | "onBLECharacteristicValueChange" | "offBLECharacteristicValueChange" | "onBLEConnectionStateChanged" | "offBLEConnectionStateChanged" | "onBluetoothAdapterStateChange" | "offBluetoothAdapterStateChange" | "startBeaconDiscovery" | "stopBeaconDiscovery" | "getBeacons" | "onBeaconUpdate" | "onBeaconServiceChange" | "rsa" | "hideShareMenu" | "hideAddToDesktopMenu" | "hideAllAddToDesktopMenu" | "hideFavoriteMenu" | "hideAllFavoriteMenu" | "reportBizReady"> & SpecialMethods>(api: T, params?: Parameters<R[T]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R[T]>[0]>>; | ||
mycall: <R_1, P = Record<string, any>>(api: string, params?: (P extends Record<string, any> ? P : Record<string, any> | ((...args: any[]) => void)) | undefined) => Promise<R_1>; | ||
@@ -18,0 +18,0 @@ ap: <T_1 extends keyof R_2, R_2 extends Record<string, Fn> = typeof my.ap>(api: T_1, params?: Parameters<R_2[T_1]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R_2[T_1]>[0]>>; |
/// <reference types="mini-types" /> | ||
import { SpecialMethods, PickSuccessResult, Fn } from './bridge'; | ||
declare const _default: { | ||
call: <T extends keyof R, R extends Record<string, any> = Pick<typeof my, "navigateTo" | "redirectTo" | "navigateBack" | "reLaunch" | "setNavigationBar" | "showNavigationBarLoading" | "hideNavigationBarLoading" | "hideBackHome" | "switchTab" | "hideTabBar" | "hideTabBarRedDot" | "removeTabBarBadge" | "setTabBarBadge" | "setTabBarItem" | "setTabBarStyle" | "showTabBar" | "showTabBarRedDot" | "stopPullDownRefresh" | "startPullDownRefresh" | "choosePhoneContact" | "chooseAlipayContact" | "chooseContact" | "chooseCity" | "datePicker" | "createAnimation" | "createCanvasContext" | "createMapContext" | "hideKeyboard" | "pageScrollTo" | "createSelectorQuery" | "multiLevelSelect" | "showToast" | "hideToast" | "alert" | "confirm" | "prompt" | "showLoading" | "hideLoading" | "showActionSheet" | "optionsSelect" | "getAuthCode" | "getAuthUserInfo" | "getPhoneNumber" | "tradePay" | "paySignCenter" | "openCardList" | "openMerchantCardList" | "openCardDetail" | "openVoucherList" | "openMerchantVoucherList" | "openVoucherDetail" | "openKBVoucherDetail" | "openTicketList" | "openMerchantTicketList" | "openTicketDetail" | "addCardAuth" | "startZMVerify" | "textRiskIdentification" | "navigateToMiniProgram" | "navigateBackMiniProgram" | "createWebViewContext" | "chooseImage" | "previewImage" | "getImageInfo" | "saveImage" | "compressImage" | "setStorage" | "setStorageSync" | "getStorage" | "getStorageSync" | "removeStorage" | "removeStorageSync" | "clearStorage" | "clearStorageSync" | "getStorageInfo" | "getStorageInfoSync" | "saveFile" | "getSavedFileList" | "getSavedFileInfo" | "removeSavedFile" | "getFileInfo" | "getLocation" | "chooseLocation" | "openLocation" | "httpRequest" | "request" | "uploadFile" | "downloadFile" | "connectSocket" | "onSocketOpen" | "onSocketError" | "sendSocketMessage" | "onSocketMessage" | "closeSocket" | "onSocketClose" | "offSocketClose" | "getNetworkType" | "onNetworkStatusChange" | "offNetworkStatusChange" | "canIUse" | "getSystemInfo" | "getSystemInfoSync" | "getClipboard" | "setClipboard" | "watchShake" | "vibrate" | "vibrateLong" | "vibrateShort" | "onAccelerometerChange" | "offAccelerometerChange" | "onGyroscopeChange" | "offGyroscopeChange" | "onCompassChange" | "offCompassChange" | "makePhoneCall" | "getServerTime" | "onUserCaptureScreen" | "offUserCaptureScreen" | "setKeepScreenOn" | "getScreenBrightness" | "setScreenBrightness" | "openSetting" | "getSetting" | "addPhoneContact" | "showAuthGuide" | "scan" | "openBluetoothAdapter" | "closeBluetoothAdapter" | "getBluetoothAdapterState" | "startBluetoothDevicesDiscovery" | "stopBluetoothDevicesDiscovery" | "getBluetoothDevices" | "getConnectedBluetoothDevices" | "connectBLEDevice" | "disconnectBLEDevice" | "writeBLECharacteristicValue" | "readBLECharacteristicValue" | "notifyBLECharacteristicValueChange" | "getBLEDeviceServices" | "getBLEDeviceCharacteristics" | "onBluetoothDeviceFound" | "offBluetoothDeviceFound" | "onBLECharacteristicValueChange" | "offBLECharacteristicValueChange" | "onBLEConnectionStateChanged" | "offBLEConnectionStateChanged" | "onBluetoothAdapterStateChange" | "offBluetoothAdapterStateChange" | "startBeaconDiscovery" | "stopBeaconDiscovery" | "getBeacons" | "onBeaconUpdate" | "onBeaconServiceChange" | "rsa" | "hideShareMenu" | "hideAddToDesktopMenu" | "hideAllAddToDesktopMenu" | "hideFavoriteMenu" | "hideAllFavoriteMenu"> & SpecialMethods>(host: string, api: T, params?: Parameters<R[T]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R[T]>[0]>>; | ||
call: <T extends keyof R, R extends Record<string, any> = Pick<typeof my, "navigateTo" | "redirectTo" | "navigateBack" | "reLaunch" | "setNavigationBar" | "showNavigationBarLoading" | "hideNavigationBarLoading" | "hideBackHome" | "switchTab" | "hideTabBar" | "hideTabBarRedDot" | "removeTabBarBadge" | "setTabBarBadge" | "setTabBarItem" | "setTabBarStyle" | "showTabBar" | "showTabBarRedDot" | "stopPullDownRefresh" | "startPullDownRefresh" | "choosePhoneContact" | "chooseAlipayContact" | "chooseContact" | "chooseCity" | "datePicker" | "createAnimation" | "createCanvasContext" | "createMapContext" | "hideKeyboard" | "pageScrollTo" | "createSelectorQuery" | "multiLevelSelect" | "showToast" | "hideToast" | "alert" | "confirm" | "prompt" | "showLoading" | "hideLoading" | "showActionSheet" | "optionsSelect" | "loadFontFace" | "getAuthCode" | "getAuthUserInfo" | "getPhoneNumber" | "tradePay" | "paySignCenter" | "openCardList" | "openMerchantCardList" | "openCardDetail" | "openVoucherList" | "openMerchantVoucherList" | "openVoucherDetail" | "openKBVoucherDetail" | "openTicketList" | "openMerchantTicketList" | "openTicketDetail" | "addCardAuth" | "startZMVerify" | "textRiskIdentification" | "navigateToMiniProgram" | "navigateBackMiniProgram" | "createWebViewContext" | "chooseImage" | "previewImage" | "getImageInfo" | "saveImage" | "compressImage" | "createVideoContext" | "setStorage" | "setStorageSync" | "getStorage" | "getStorageSync" | "removeStorage" | "removeStorageSync" | "clearStorage" | "clearStorageSync" | "getStorageInfo" | "getStorageInfoSync" | "saveFile" | "getSavedFileList" | "getSavedFileInfo" | "removeSavedFile" | "getFileInfo" | "getLocation" | "chooseLocation" | "openLocation" | "httpRequest" | "request" | "uploadFile" | "downloadFile" | "connectSocket" | "onSocketOpen" | "onSocketError" | "sendSocketMessage" | "onSocketMessage" | "closeSocket" | "onSocketClose" | "offSocketClose" | "getNetworkType" | "onNetworkStatusChange" | "offNetworkStatusChange" | "canIUse" | "getSystemInfo" | "getSystemInfoSync" | "getClipboard" | "setClipboard" | "watchShake" | "vibrate" | "vibrateLong" | "vibrateShort" | "onAccelerometerChange" | "offAccelerometerChange" | "onGyroscopeChange" | "offGyroscopeChange" | "onCompassChange" | "offCompassChange" | "makePhoneCall" | "getServerTime" | "onUserCaptureScreen" | "offUserCaptureScreen" | "setKeepScreenOn" | "getScreenBrightness" | "setScreenBrightness" | "openSetting" | "getSetting" | "addPhoneContact" | "showAuthGuide" | "scan" | "openBluetoothAdapter" | "closeBluetoothAdapter" | "getBluetoothAdapterState" | "startBluetoothDevicesDiscovery" | "stopBluetoothDevicesDiscovery" | "getBluetoothDevices" | "getConnectedBluetoothDevices" | "connectBLEDevice" | "disconnectBLEDevice" | "writeBLECharacteristicValue" | "readBLECharacteristicValue" | "notifyBLECharacteristicValueChange" | "getBLEDeviceServices" | "getBLEDeviceCharacteristics" | "onBluetoothDeviceFound" | "offBluetoothDeviceFound" | "onBLECharacteristicValueChange" | "offBLECharacteristicValueChange" | "onBLEConnectionStateChanged" | "offBLEConnectionStateChanged" | "onBluetoothAdapterStateChange" | "offBluetoothAdapterStateChange" | "startBeaconDiscovery" | "stopBeaconDiscovery" | "getBeacons" | "onBeaconUpdate" | "onBeaconServiceChange" | "rsa" | "hideShareMenu" | "hideAddToDesktopMenu" | "hideAllAddToDesktopMenu" | "hideFavoriteMenu" | "hideAllFavoriteMenu" | "reportBizReady"> & SpecialMethods>(host: string, api: T, params?: Parameters<R[T]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R[T]>[0]>>; | ||
mycall: <R_1, P = Record<string, any>>(host: string, api: string, params?: (P extends Record<string, any> ? P : Record<string, any> | ((...args: any[]) => void)) | undefined) => Promise<R_1>; | ||
@@ -6,0 +6,0 @@ ap: <T_1 extends keyof R_2, R_2 extends Record<string, Fn> = typeof my.ap>(host: string, api: T_1, params?: Parameters<R_2[T_1]>[0] | undefined) => Promise<PickSuccessResult<Parameters<R_2[T_1]>[0]>>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18545
+ Addedmini-types@0.1.7(transitive)
- Removedmini-types@0.0.4(transitive)
Updatedmini-types@^0.1.0