Comparing version 0.2.6 to 0.2.7
@@ -41,2 +41,3 @@ #!/usr/bin/env node | ||
program.parse(process.argv); | ||
const opts = program.opts(); | ||
@@ -49,4 +50,4 @@ const options = { | ||
options.src = path.resolve(program.input); | ||
options.dist = path.resolve(program.output); | ||
options.src = path.resolve(opts.input); | ||
options.dist = path.resolve(opts.output); | ||
wx2tt(options, (err, logs) => { | ||
@@ -56,2 +57,2 @@ if (err) { | ||
} | ||
}); | ||
}); |
{ | ||
"scroll-view": [ | ||
"enable-back-to-top", | ||
"enable-flex", | ||
"scroll-anchoring", | ||
"refresher-enabled", | ||
"refresher-threshold", | ||
"refresher-default-style", | ||
"refresher-background", | ||
"refresher-triggered", | ||
"enhanced", | ||
"bounces", | ||
"show-scrollbar", | ||
"paging-enabled", | ||
"fast-deceleration", | ||
"binddragstart", | ||
"binddragging", | ||
"binddragend", | ||
"bindrefresherpulling", | ||
"bindrefresherrefresh", | ||
"bindrefresherrestore", | ||
"bindrefresherabort" | ||
], | ||
"swiper": ["snap-to-edge", "easing-function"], | ||
"swiper-item": ["skip-hidden-item-layout"], | ||
"progress": [ | ||
"show-info", | ||
"border-radius", | ||
"font-size", | ||
"duration", | ||
"bindactiveend" | ||
], | ||
"rick-text": ["space"], | ||
"text": ["user-select"], | ||
"button": [ | ||
"plain", | ||
"lang", | ||
"session-from", | ||
"send-message-title", | ||
"send-message-path", | ||
"send-message-img", | ||
"app-parameter", | ||
"show-message-card", | ||
"bindgetuserinfo", | ||
"bindgetuserinfo", | ||
"bindcontact", | ||
"binderror", | ||
"bindopensetting", | ||
"bindlaunchapp" | ||
], | ||
"input": [ | ||
"placeholder-class", | ||
"auto-focus", | ||
"always-embed", | ||
"confirm-hold", | ||
"hold-keyboard", | ||
"bindkeyboardheightchange" | ||
], | ||
"picker": ["header-text"], | ||
"picker-view": [ | ||
"indicator-class", | ||
"mask-class", | ||
"bindpickstart", | ||
"bindpickend" | ||
], | ||
"textarea": [ | ||
"placeholder-class", | ||
"auto-focus", | ||
"show-confirm-bar", | ||
"adjust-position", | ||
"hold-keyboard", | ||
"bindkeyboardheightchange", | ||
"bindlinechange", | ||
"disable-default-padding", | ||
"confirm-type", | ||
"confirm-hold" | ||
], | ||
"navigator": [ | ||
"target", | ||
"app-id", | ||
"path", | ||
"extra-data", | ||
"version", | ||
"bindsuccess", | ||
"bindfail", | ||
"bindcomplete" | ||
], | ||
"camera": ["mode", "flash", "bindscancode"], | ||
"canvas": ["disable-scroll", "bindlongtap", "binderror"], | ||
"image": ["webp", "show-menu-by-longpress"], | ||
"live-player": [ | ||
"mode", | ||
"background-mute", | ||
@@ -98,2 +13,4 @@ "min-cache", | ||
"picture-in-picture-mode", | ||
"enable-auto-rotation", | ||
"referrer-policy", | ||
"bindnetstatus", | ||
@@ -105,3 +22,3 @@ "bindaudiovolumenotify", | ||
"video": [ | ||
"controls", | ||
"duration", | ||
"danmu-list", | ||
@@ -112,18 +29,8 @@ "danmu-btn", | ||
"page-gesture", | ||
"direction", | ||
"show-progress", | ||
"show-fullscreen-btn", | ||
"show-play-btn", | ||
"show-center-play-btn", | ||
"enable-progress-gesture", | ||
"object-fit", | ||
"poster", | ||
"show-mute-btn", | ||
"title", | ||
"play-btn-position", | ||
"enable-play-gesture", | ||
"auto-pause-if-navigate", | ||
"auto-pause-if-open-native", | ||
"vslide-gesture", | ||
"vslide-gesture-in-fullscreen", | ||
"show-bottom-progress", | ||
"ad-unit-id", | ||
@@ -139,45 +46,101 @@ "poster-for-crawler", | ||
"background-poster", | ||
"bindplay", | ||
"bindpause", | ||
"bindended", | ||
"bindtimeupdate", | ||
"bindfullscreenchange", | ||
"bindwaiting", | ||
"binderror", | ||
"bindprogress", | ||
"bindloadedmetadata", | ||
"referrer-policy", | ||
"is-drm", | ||
"provision-url", | ||
"certificate-url", | ||
"license-url", | ||
"preferred-peak-bit-rate", | ||
"bindcontrolstoggle", | ||
"bindenterpictureinpicture", | ||
"bindleavepictureinpicture", | ||
"bindseekcomplete" | ||
"bindleavepictureinpicture" | ||
], | ||
"button": [ | ||
"plain", | ||
"lang", | ||
"session-from", | ||
"send-message-title", | ||
"send-message-path", | ||
"send-message-img", | ||
"app-parameter", | ||
"show-message-card", | ||
"bindgetuserinfo", | ||
"bindcontact", | ||
"binderror", | ||
"bindopensetting", | ||
"bindlaunchapp", | ||
"bindchooseavatar" | ||
], | ||
"form": ["report-submit", "report-submit-timeout"], | ||
"input": [ | ||
"auto-focus", | ||
"always-embed", | ||
"safe-password-cert-path", | ||
"safe-password-length", | ||
"safe-password-time-stamp", | ||
"safe-password-nonce", | ||
"safe-password-salt", | ||
"safe-password-custom-hash", | ||
"bindkeyboardheightchange" | ||
], | ||
"slider": ["activeColor", "backgroundColor"], | ||
"textarea": ["auto-focus", "fixed", "bindkeyboardheightchange"], | ||
"map": [ | ||
"min-scale", | ||
"max-scale", | ||
"polygons", | ||
"covers", | ||
"controls", | ||
"subkey", | ||
"layer-style", | ||
"rotate", | ||
"skew", | ||
"enable-3D", | ||
"show-compass", | ||
"show-scale", | ||
"enable-overlooking", | ||
"enable-zoom", | ||
"enable-scroll", | ||
"enable-rotate", | ||
"enable-satellite", | ||
"enable-traffic", | ||
"enable-poi", | ||
"enable-building", | ||
"setting", | ||
"bindlabeltap", | ||
"bindcontroltap", | ||
"bindupdated", | ||
"bindregionchange", | ||
"bindpoitap", | ||
"bindanchorpointtap" | ||
"bindpoitap" | ||
], | ||
"canvas": ["disable-scroll", "bindlongtap", "binderror"], | ||
"ad": ["ad-type", "ad-theme"] | ||
"scroll-view": [ | ||
"enable-back-to-top", | ||
"enable-flex", | ||
"scroll-anchoring", | ||
"enable-passive", | ||
"refresher-enabled", | ||
"refresher-threshold", | ||
"refresher-default-style", | ||
"refresher-background", | ||
"refresher-triggered", | ||
"enhanced", | ||
"bounces", | ||
"show-scrollbar", | ||
"paging-enabled", | ||
"fast-deceleration", | ||
"binddragstart", | ||
"binddragging", | ||
"binddragend", | ||
"bindrefresherpulling", | ||
"bindrefresherrefresh", | ||
"bindrefresherrestore", | ||
"bindrefresherabort" | ||
], | ||
"swiper-item": ["skip-hidden-item-layout"], | ||
"swiper": ["snap-to-edge"], | ||
"ad": ["ad-type", "ad-theme"], | ||
"open-data": ["open-gid", "lang"], | ||
"progress": [ | ||
"show-info", | ||
"border-radius", | ||
"font-size", | ||
"color", | ||
"activeColor", | ||
"backgroundColor", | ||
"duration", | ||
"bindactiveend" | ||
], | ||
"rich-text": ["space", "user-select"], | ||
"text": ["user-select"], | ||
"navigator": [ | ||
"target", | ||
"app-id", | ||
"path", | ||
"extra-data", | ||
"version", | ||
"short-link", | ||
"bindsuccess", | ||
"bindfail", | ||
"bindcomplete" | ||
] | ||
} |
{ | ||
"api": { | ||
"canIUse": { "wx": 1, "tt": 1 }, | ||
"base64ToArrayBuffer": { "wx": 1, "tt": 1 }, | ||
"arrayBufferToBase64": { "wx": 1, "tt": 1 }, | ||
"getSystemInfoSync": { "wx": 1, "tt": 1 }, | ||
"createLiveReportContext": { "tt": 1 }, | ||
"openWebcastRoom": { "tt": 1 }, | ||
"getLiveUserInfo": { "tt": 1 }, | ||
"getRoomInfo": { "tt": 1 }, | ||
"getSelfCommentCountDuringPluginRunning": { "tt": 1 }, | ||
"isFollowingAnchor": { "tt": 1 }, | ||
"createMapContext": { "tt": 1, "wx": 1 }, | ||
"chooseLocation": { "tt": 1, "wx": 1 }, | ||
"getLocation": { "tt": 1, "wx": 1 }, | ||
"offLocationChangeError": { "tt": 1, "wx": 1 }, | ||
"offLocationChange": { "tt": 1, "wx": 1 }, | ||
"onLocationChangeError": { "tt": 1, "wx": 1 }, | ||
"onLocationChange": { "tt": 1, "wx": 1 }, | ||
"openLocation": { "tt": 1, "wx": 1 }, | ||
"startLocationUpdate": { "tt": 1, "wx": 1 }, | ||
"stopLocationUpdate": { "tt": 1, "wx": 1 }, | ||
"createIntersectionObserver": { "tt": 1, "wx": 1 }, | ||
"createSelectorQuery": { "tt": 1, "wx": 1 }, | ||
"clearStorageSync": { "tt": 1, "wx": 1 }, | ||
"clearStorage": { "tt": 1, "wx": 1 }, | ||
"getStorageInfoSync": { "tt": 1, "wx": 1 }, | ||
"getStorageInfo": { "tt": 1, "wx": 1 }, | ||
"getStorageSync": { "tt": 1, "wx": 1 }, | ||
"getStorage": { "tt": 1, "wx": 1 }, | ||
"removeStorageSync": { "tt": 1, "wx": 1 }, | ||
"removeStorage": { "tt": 1, "wx": 1 }, | ||
"setStorageSync": { "tt": 1, "wx": 1 }, | ||
"setStorage": { "tt": 1, "wx": 1 }, | ||
"getExtConfigSync": { "tt": 1, "wx": 1 }, | ||
"getExtConfig": { "tt": 1, "wx": 1 }, | ||
"navigateBack": { "tt": 1, "wx": 1 }, | ||
"navigateTo": { "tt": 1, "wx": 1 }, | ||
"reLaunch": { "tt": 1, "wx": 1 }, | ||
"redirectTo": { "tt": 1, "wx": 1 }, | ||
"switchTab": { "tt": 1, "wx": 1 }, | ||
"hideShareMenu": { "tt": 1, "wx": 1 }, | ||
"navigateToVideoView": { "tt": 1 }, | ||
"showShareMenu": { "tt": 1, "wx": 1 }, | ||
"connectSocket": { "tt": 1, "wx": 1 }, | ||
"getFileInfo": { "tt": 1, "wx": 1 }, | ||
"getFileSystemManager": { "tt": 1, "wx": 1 }, | ||
"getSavedFileList": { "tt": 1, "wx": 1 }, | ||
"openDocument": { "tt": 1, "wx": 1 }, | ||
"removeSavedFile": { "tt": 1, "wx": 1 }, | ||
"saveFile": { "tt": 1, "wx": 1 }, | ||
"arrayBufferToBase64": { "tt": 1, "wx": 1 }, | ||
"base64ToArrayBuffer": { "tt": 1, "wx": 1 }, | ||
"canIPutStuffOverComponent": { "tt": 1 }, | ||
"canIUse": { "tt": 1, "wx": 1 }, | ||
"downloadFile": { "tt": 1, "wx": 1 }, | ||
"request": { "tt": 1, "wx": 1 }, | ||
"uploadFile": { "tt": 1, "wx": 1 }, | ||
"onAccelerometerChange": { "tt": 1, "wx": 1 }, | ||
"startAccelerometer": { "tt": 1, "wx": 1 }, | ||
"stopAccelerometer": { "tt": 1, "wx": 1 }, | ||
"getScreenBrightness": { "tt": 1, "wx": 1 }, | ||
"disableUserScreenRecord": { "tt": 1 }, | ||
"enableUserScreenRecord": { "tt": 1 }, | ||
"offUserCaptureScreen": { "tt": 1, "wx": 1 }, | ||
"offUserScreenRecord": { "tt": 1 }, | ||
"onUserCaptureScreen": { "tt": 1, "wx": 1 }, | ||
"onUserScreenRecord": { "tt": 1 }, | ||
"setKeepScreenOn": { "tt": 1, "wx": 1 }, | ||
"setScreenBrightness": { "tt": 1, "wx": 1 }, | ||
"makePhoneCall": { "tt": 1, "wx": 1 }, | ||
"onMemoryWarning": { "tt": 1, "wx": 1 }, | ||
"getConnectedWifi": { "tt": 1, "wx": 1 }, | ||
"scanCode": { "tt": 1, "wx": 1 }, | ||
"offGetWifiList": { "tt": 1, "wx": 1 }, | ||
"getNetworkType": { "tt": 1, "wx": 1 }, | ||
"getWifiList": { "tt": 1, "wx": 1 }, | ||
"onGetWifiList": { "tt": 1, "wx": 1 }, | ||
"onNetworkStatusChange": { "tt": 1, "wx": 1 }, | ||
"vibrateLong": { "tt": 1, "wx": 1 }, | ||
"vibrateShort": { "tt": 1, "wx": 1 }, | ||
"getClipboardData": { "tt": 1, "wx": 1 }, | ||
"setClipboardData": { "tt": 1, "wx": 1 }, | ||
"onCompassChange": { "tt": 1, "wx": 1 }, | ||
"startCompass": { "tt": 1, "wx": 1 }, | ||
"stopCompass": { "tt": 1, "wx": 1 }, | ||
"pay": { "tt": 1 }, | ||
"onReceiveSpecifiedComment": { "tt": 1 }, | ||
"subscribeSpecifiedContentComment": { "tt": 1 }, | ||
"subscribeSpecifiedUserComment": { "tt": 1 }, | ||
"unsubscribeAllSpecifiedContentComment": { "tt": 1 }, | ||
"unsubscribeAllSpecifiedUserComment": { "tt": 1 }, | ||
"createMediaRecorder": { "tt": 1, "wx": 1 }, | ||
"getSystemInfoSync": { "tt": 1, "wx": 1 }, | ||
"getSystemInfo": { "tt": 1, "wx": 1 }, | ||
"createBytennEngineContext": { "tt": 1 }, | ||
"createCameraContext": { "tt": 1, "wx": 1 }, | ||
"createAnimation": { "tt": 1, "wx": 1 }, | ||
"env": { "tt": 1, "wx": 1 }, | ||
"requestSubscribeMessage": { "tt": 1, "wx": 1 }, | ||
"checkFollowAwemeState": { "tt": 1 }, | ||
"checkFollowState": { "tt": 1 }, | ||
"followAwemeUser": { "tt": 1 }, | ||
"followOfficialAccount": { "tt": 1 }, | ||
"openAwemeUserProfile": { "tt": 1 }, | ||
"hideKeyboard": { "tt": 1, "wx": 1 }, | ||
"reportAnalytics": { "tt": 1, "wx": 1 }, | ||
"openEcCart": { "tt": 1 }, | ||
"openEcIm": { "tt": 1 }, | ||
"openEcOrderDetail": { "tt": 1 }, | ||
"openDouyinOrderList": { "tt": 1 }, | ||
"openEcGood": { "tt": 1 }, | ||
"getRecorderManager": { "tt": 1, "wx": 1 }, | ||
"canRateAwemeOrders": { "tt": 1 }, | ||
"rateAwemeOrder": { "tt": 1 }, | ||
"onReceiveAudiencesFollowAction": { "tt": 1 }, | ||
"subscribeAudiencesFollowAction": { "tt": 1 }, | ||
"unsubscribeAudiencesFollowAction": { "tt": 1 }, | ||
"canvasToTempFilePath": { "tt": 1, "wx": 1 }, | ||
"createCanvasContext": { "tt": 1, "wx": 1 }, | ||
"chooseAddress": { "tt": 1, "wx": 1 }, | ||
"chooseImage": { "tt": 1, "wx": 1 }, | ||
"compressImage": { "tt": 1, "wx": 1 }, | ||
"getImageInfo": { "tt": 1, "wx": 1 }, | ||
"previewImage": { "tt": 1, "wx": 1 }, | ||
"saveImageToPhotosAlbum": { "tt": 1, "wx": 1 }, | ||
"checkSession": { "tt": 1, "wx": 1 }, | ||
"login": { "tt": 1, "wx": 1 }, | ||
"chooseMedia": { "tt": 1, "wx": 1 }, | ||
"chooseVideo": { "tt": 1, "wx": 1 }, | ||
"createLivePlayerContext": { "tt": 1, "wx": 1 }, | ||
"createVideoContext": { "tt": 1, "wx": 1 }, | ||
"preloadVideo": { "tt": 1 }, | ||
"saveVideoToPhotosAlbum": { "tt": 1, "wx": 1 }, | ||
"authorize": { "tt": 1, "wx": 1 }, | ||
"showDouyinOpenAuth": { "tt": 1 }, | ||
"createOffscreenCanvas": { "tt": 1, "wx": 1 }, | ||
"createInnerAudioContext": { "tt": 1, "wx": 1 }, | ||
"getBackgroundAudioManager": { "tt": 1, "wx": 1 }, | ||
"getSetting": { "tt": 1, "wx": 1 }, | ||
"openSetting": { "tt": 1, "wx": 1 }, | ||
"enableAlertBeforeUnload": { "tt": 1, "wx": 1 }, | ||
"disableAlertBeforeUnload": { "tt": 1, "wx": 1 }, | ||
"hideInteractionBar": { "tt": 1 }, | ||
"hideLoading": { "tt": 1, "wx": 1 }, | ||
"hideToast": { "tt": 1, "wx": 1 }, | ||
"showActionSheet": { "tt": 1, "wx": 1 }, | ||
"showFavoriteGuide": { "tt": 1 }, | ||
"showInteractionBar": { "tt": 1 }, | ||
"showLoading": { "tt": 1, "wx": 1 }, | ||
"showModal": { "tt": 1, "wx": 1 }, | ||
"showToast": { "tt": 1, "wx": 1 }, | ||
"pageScrollTo": { "tt": 1, "wx": 1 }, | ||
"navigateBackMiniProgram": { "tt": 1, "wx": 1 }, | ||
"navigateToMiniProgram": { "tt": 1, "wx": 1 }, | ||
"createEffectCameraStream": { "tt": 1 }, | ||
"hideHomeButton": { "tt": 1, "wx": 1 }, | ||
"hideNavigationBarLoading": { "tt": 1, "wx": 1 }, | ||
"setNavigationBarColor": { "tt": 1, "wx": 1 }, | ||
"setNavigationBarTitle": { "tt": 1, "wx": 1 }, | ||
"showNavigationBarLoading": { "tt": 1, "wx": 1 }, | ||
"getCustomButtonBoundingClientRect": { "tt": 1 }, | ||
"getMenuButtonBoundingClientRect": { "tt": 1, "wx": 1 }, | ||
"getAlgorithmManager": { "tt": 1 }, | ||
"getEnvInfoSync": { "tt": 1 }, | ||
"hideTabBarRedDot": { "tt": 1, "wx": 1 }, | ||
"hideTabBar": { "tt": 1, "wx": 1 }, | ||
"removeTabBarBadge": { "tt": 1, "wx": 1 }, | ||
"setTabBarBadge": { "tt": 1, "wx": 1 }, | ||
"setTabBarItem": { "tt": 1, "wx": 1 }, | ||
"setTabBarStyle": { "tt": 1, "wx": 1 }, | ||
"showTabBarRedDot": { "tt": 1, "wx": 1 }, | ||
"showTabBar": { "tt": 1, "wx": 1 }, | ||
"setSwipeBackMode": { "tt": 1 }, | ||
"getUpdateManager": { "tt": 1, "wx": 1 }, | ||
"exitMiniProgram": { "tt": 1, "wx": 1 }, | ||
"getEnterOptionsSync": { "tt": 1, "wx": 1 }, | ||
"getLaunchOptionsSync": { "tt": 1, "wx": 1 }, | ||
"createStickerManager": { "tt": 1 }, | ||
"getUserInfo": { "tt": 1, "wx": 1 }, | ||
"getUserProfile": { "tt": 1, "wx": 1 }, | ||
"offAppHide": { "tt": 1, "wx": 1 }, | ||
"offAppShow": { "tt": 1, "wx": 1 }, | ||
"offError": { "tt": 1, "wx": 1 }, | ||
"offUnhandledRejection": { "tt": 1, "wx": 1 }, | ||
"onAppHide": { "tt": 1, "wx": 1 }, | ||
"onAppShow": { "tt": 1, "wx": 1 }, | ||
"onError": { "tt": 1, "wx": 1 }, | ||
"onUnhandledRejection": { "tt": 1, "wx": 1 }, | ||
"startPullDownRefresh": { "tt": 1, "wx": 1 }, | ||
"stopPullDownRefresh": { "tt": 1, "wx": 1 }, | ||
"createRewardedVideoAd": { "tt": 1, "wx": 1 }, | ||
"createInterstitialAd": { "tt": 1, "wx": 1 }, | ||
"performance.clearMarks": { "tt": 1 }, | ||
"performance.getCurrentPageEntries": { "tt": 1 }, | ||
"performance.getEntriesByName": { "tt": 1 }, | ||
"performance.getEntriesByPage": { "tt": 1 }, | ||
"performance.getEntriesByType": { "tt": 1 }, | ||
"performance.getEntries": { "tt": 1 }, | ||
"performance.mark": { "tt": 1 }, | ||
"openSystemBluetoothSetting": { "wx": 1 }, | ||
"openAppAuthorizeSetting": { "wx": 1 }, | ||
"getWindowInfo": { "wx": 1 }, | ||
"getSystemSetting": { "wx": 1 }, | ||
"getSystemInfoAsync": { "wx": 1 }, | ||
"getSystemInfo": { "wx": 1, "tt": 1 }, | ||
"getDeviceInfo": { "wx": 1 }, | ||
"getAppBaseInfo": { "wx": 1 }, | ||
"getAppAuthorizeSetting": { "wx": 1 }, | ||
"updateWeChatApp": { "wx": 1 }, | ||
"getUpdateManager": { "wx": 1, "tt": 1 }, | ||
"UpdateManager.applyUpdate": { "wx": 1, "tt": 1 }, | ||
"UpdateManager.onCheckForUpdate": { "wx": 1, "tt": 1 }, | ||
"UpdateManager.onUpdateFailed": { "wx": 1, "tt": 1 }, | ||
"UpdateManager.onUpdateReady": { "wx": 1, "tt": 1 }, | ||
"getLaunchOptionsSync": { "wx": 1, "tt": 1 }, | ||
"getEnterOptionsSync": { "wx": 1 }, | ||
"onUnhandledRejection": { "wx": 1 }, | ||
"onThemeChange": { "wx": 1 }, | ||
"onPageNotFound": { "wx": 1 }, | ||
"onError": { "wx": 1, "tt": 1 }, | ||
"onLazyLoadError": { "wx": 1 }, | ||
"onAudioInterruptionEnd": { "wx": 1 }, | ||
"onAudioInterruptionBegin": { "wx": 1 }, | ||
"onAppShow": { "wx": 1, "tt": 1 }, | ||
"onAppHide": { "wx": 1, "tt": 1 }, | ||
"offUnhandledRejection": { "wx": 1 }, | ||
"offThemeChange": { "wx": 1 }, | ||
"offPageNotFound": { "wx": 1 }, | ||
"offError": { "wx": 1, "tt": 1 }, | ||
"offLazyLoadError": { "wx": 1 }, | ||
"offAudioInterruptionEnd": { "wx": 1 }, | ||
"offAudioInterruptionBegin": { "wx": 1 }, | ||
"offAppShow": { "wx": 1, "tt": 1 }, | ||
"offAppHide": { "wx": 1, "tt": 1 }, | ||
"setEnableDebug": { "wx": 1 }, | ||
"getRealtimeLogManager": { "wx": 1 }, | ||
"getLogManager": { "wx": 1 }, | ||
"console.debug": { "wx": 1 }, | ||
"console.error": { "wx": 1 }, | ||
"console.group": { "wx": 1 }, | ||
"console.groupEnd": { "wx": 1 }, | ||
"console.info": { "wx": 1 }, | ||
"console.log": { "wx": 1 }, | ||
"console.warn": { "wx": 1 }, | ||
"LogManager.debug": { "wx": 1 }, | ||
"LogManager.info": { "wx": 1 }, | ||
"LogManager.log": { "wx": 1 }, | ||
"LogManager.warn": { "wx": 1 }, | ||
"RealtimeLogManager.addFilterMsg": { "wx": 1 }, | ||
"RealtimeLogManager.error": { "wx": 1 }, | ||
"RealtimeLogManager.in": { "wx": 1 }, | ||
"RealtimeLogManager.info": { "wx": 1 }, | ||
"RealtimeLogManager.setFilterMsg": { "wx": 1 }, | ||
"RealtimeLogManager.tag": { "wx": 1 }, | ||
"RealtimeLogManager.warn": { "wx": 1 }, | ||
"RealtimeTagLogManager.addFilterMsg": { "wx": 1 }, | ||
"RealtimeTagLogManager.error": { "wx": 1 }, | ||
"RealtimeTagLogManager.info": { "wx": 1 }, | ||
"RealtimeTagLogManager.setFilterMsg": { "wx": 1 }, | ||
"RealtimeTagLogManager.warn": { "wx": 1 }, | ||
"clearInterval": { "wx": 1, "tt": 1 }, | ||
"clearTimeout": { "wx": 1, "tt": 1 }, | ||
"setInterval": { "wx": 1, "tt": 1 }, | ||
"setTimeout": { "wx": 1, "tt": 1 }, | ||
"env": { "wx": 1, "tt": 1 }, | ||
"switchTab": { "wx": 1, "tt": 1 }, | ||
"reLaunch": { "wx": 1, "tt": 1 }, | ||
"redirectTo": { "wx": 1, "tt": 1 }, | ||
"navigateTo": { "wx": 1, "tt": 1 }, | ||
"navigateBack": { "wx": 1, "tt": 1 }, | ||
"EventChannel.emit": { "wx": 1 }, | ||
"EventChannel.off": { "wx": 1 }, | ||
"EventChannel.on": { "wx": 1 }, | ||
"EventChannel.once": { "wx": 1 }, | ||
"showToast": { "wx": 1, "tt": 1 }, | ||
"showModal": { "wx": 1, "tt": 1 }, | ||
"showLoading": { "wx": 1, "tt": 1 }, | ||
"showActionSheet": { "wx": 1, "tt": 1 }, | ||
"hideToast": { "wx": 1, "tt": 1 }, | ||
"hideLoading": { "wx": 1, "tt": 1 }, | ||
"enableAlertBeforeUnload": { "wx": 1 }, | ||
"disableAlertBeforeUnload": { "wx": 1 }, | ||
"showNavigationBarLoading": { "wx": 1, "tt": 1 }, | ||
"setNavigationBarTitle": { "wx": 1, "tt": 1 }, | ||
"setNavigationBarColor": { "wx": 1, "tt": 1 }, | ||
"hideNavigationBarLoading": { "wx": 1, "tt": 1 }, | ||
"hideHomeButton": { "wx": 1, "tt": 1 }, | ||
"reportPerformance": { "wx": 1 }, | ||
"preloadWebview": { "wx": 1 }, | ||
"preloadSkylineView": { "wx": 1 }, | ||
"preloadAssets": { "wx": 1 }, | ||
"getPerformance": { "wx": 1 }, | ||
"getUserCryptoManager": { "wx": 1 }, | ||
"openEmbeddedMiniProgram": { "wx": 1 }, | ||
"updateShareMenu": { "wx": 1 }, | ||
"showShareImageMenu": { "wx": 1 }, | ||
"shareVideoMessage": { "wx": 1 }, | ||
"shareFileMessage": { "wx": 1 }, | ||
"onCopyUrl": { "wx": 1 }, | ||
"offCopyUrl": { "wx": 1 }, | ||
"getShareInfo": { "wx": 1 }, | ||
"authPrivateMessage": { "wx": 1 }, | ||
"setBackgroundTextStyle": { "wx": 1 }, | ||
"setBackgroundColor": { "wx": 1 }, | ||
"showTabBarRedDot": { "wx": 1, "tt": 1 }, | ||
"showTabBar": { "wx": 1, "tt": 1 }, | ||
"setTabBarStyle": { "wx": 1, "tt": 1 }, | ||
"setTabBarItem": { "wx": 1, "tt": 1 }, | ||
"setTabBarBadge": { "wx": 1, "tt": 1 }, | ||
"removeTabBarBadge": { "wx": 1, "tt": 1 }, | ||
"hideTabBarRedDot": { "wx": 1, "tt": 1 }, | ||
"hideTabBar": { "wx": 1, "tt": 1 }, | ||
"loadFontFace": { "wx": 1 }, | ||
"stopPullDownRefresh": { "wx": 1, "tt": 1 }, | ||
"startPullDownRefresh": { "wx": 1, "tt": 1 }, | ||
"pageScrollTo": { "wx": 1, "tt": 1 }, | ||
"ScrollViewContext.scrollIntoView": { "wx": 1 }, | ||
"ScrollViewContext.scrollTo": { "wx": 1 }, | ||
"createAnimation": { "wx": 1, "tt": 1 }, | ||
"Animation.backgroundColor": { "wx": 1 }, | ||
"Animation.bottom": { "wx": 1 }, | ||
"Animation.export": { "wx": 1 }, | ||
"Animation.height": { "wx": 1 }, | ||
"Animation.left": { "wx": 1 }, | ||
"Animation.matrix": { "wx": 1 }, | ||
"Animation.matrix3d": { "wx": 1 }, | ||
"Animation.opacity": { "wx": 1 }, | ||
"Animation.right": { "wx": 1 }, | ||
"Animation.rotate": { "wx": 1 }, | ||
"Animation.rotate3d": { "wx": 1 }, | ||
"Animation.rotateX": { "wx": 1 }, | ||
"Animation.rotateY": { "wx": 1 }, | ||
"Animation.rotateZ": { "wx": 1 }, | ||
"Animation.scale": { "wx": 1 }, | ||
"Animation.scale3d": { "wx": 1 }, | ||
"Animation.scaleX": { "wx": 1 }, | ||
"Animation.scaleY": { "wx": 1 }, | ||
"Animation.scaleZ": { "wx": 1 }, | ||
"Animation.skew": { "wx": 1 }, | ||
"Animation.skewX": { "wx": 1 }, | ||
"Animation.skewY": { "wx": 1 }, | ||
"Animation.step": { "wx": 1 }, | ||
"Animation.top": { "wx": 1 }, | ||
"Animation.translate": { "wx": 1 }, | ||
"Animation.translate3d": { "wx": 1 }, | ||
"Animation.translateX": { "wx": 1 }, | ||
"Animation.translateY": { "wx": 1 }, | ||
"Animation.translateZ": { "wx": 1 }, | ||
"Animation.width": { "wx": 1 }, | ||
"setTopBarText": { "wx": 1 }, | ||
"nextTick": { "wx": 1 }, | ||
"getMenuButtonBoundingClientRect": { "wx": 1, "tt": 1 }, | ||
"setWindowSize": { "wx": 1 }, | ||
"onWindowResize": { "wx": 1 }, | ||
"offWindowResize": { "wx": 1 }, | ||
"onKeyboardHeightChange": { "wx": 1 }, | ||
"offKeyboardHeightChange": { "wx": 1 }, | ||
"hideKeyboard": { "wx": 1 }, | ||
"getSelectedTextRange": { "wx": 1 }, | ||
"request": { "wx": 1, "tt": 1 }, | ||
"RequestTask.abort": { "wx": 1 }, | ||
"RequestTask.offHeadersReceived": { "wx": 1 }, | ||
"RequestTask.onHeadersReceived": { "wx": 1 }, | ||
"downloadFile": { "wx": 1, "tt": 1 }, | ||
"DownloadTask.abort": { "wx": 1 }, | ||
"DownloadTask.offHeadersReceived": { "wx": 1 }, | ||
"DownloadTask.offProgressUpdate": { "wx": 1 }, | ||
"DownloadTask.onHeadersReceived": { "wx": 1 }, | ||
"DownloadTask.onProgressUpdate": { "wx": 1 }, | ||
"uploadFile": { "wx": 1, "tt": 1 }, | ||
"UploadTask.abort": { "wx": 1 }, | ||
"UploadTask.offHeadersReceived": { "wx": 1 }, | ||
"UploadTask.offProgressUpdate": { "wx": 1 }, | ||
"UploadTask.onHeadersReceived": { "wx": 1 }, | ||
"UploadTask.onProgressUpdate": { "wx": 1 }, | ||
"worklet": { "wx": 1 }, | ||
"sendSocketMessage": { "wx": 1 }, | ||
@@ -164,10 +248,3 @@ "onSocketOpen": { "wx": 1 }, | ||
"onSocketClose": { "wx": 1 }, | ||
"connectSocket": { "wx": 1, "tt": 1 }, | ||
"closeSocket": { "wx": 1 }, | ||
"SocketTask.close": { "wx": 1, "tt": 1 }, | ||
"SocketTask.onClose": { "wx": 1, "tt": 1 }, | ||
"SocketTask.onError": { "wx": 1, "tt": 1 }, | ||
"SocketTask.onMessage": { "wx": 1, "tt": 1 }, | ||
"SocketTask.onOpen": { "wx": 1, "tt": 1 }, | ||
"SocketTask.send": { "wx": 1, "tt": 1 }, | ||
"stopLocalServiceDiscovery": { "wx": 1 }, | ||
@@ -183,26 +260,12 @@ "startLocalServiceDiscovery": { "wx": 1 }, | ||
"offLocalServiceDiscoveryStop": { "wx": 1 }, | ||
"createTCPSocket": { "wx": 1 }, | ||
"createUDPSocket": { "wx": 1 }, | ||
"UDPSocket.bind": { "wx": 1 }, | ||
"UDPSocket.close": { "wx": 1 }, | ||
"UDPSocket.connect": { "wx": 1 }, | ||
"UDPSocket.offClose": { "wx": 1 }, | ||
"UDPSocket.offError": { "wx": 1 }, | ||
"UDPSocket.offListening": { "wx": 1 }, | ||
"UDPSocket.offMessage": { "wx": 1 }, | ||
"UDPSocket.onClose": { "wx": 1 }, | ||
"UDPSocket.onError": { "wx": 1 }, | ||
"UDPSocket.onListening": { "wx": 1 }, | ||
"UDPSocket.onMessage": { "wx": 1 }, | ||
"UDPSocket.send": { "wx": 1 }, | ||
"UDPSocket.write": { "wx": 1 }, | ||
"setStorageSync": { "wx": 1, "tt": 1 }, | ||
"setStorage": { "wx": 1, "tt": 1 }, | ||
"removeStorageSync": { "wx": 1, "tt": 1 }, | ||
"removeStorage": { "wx": 1, "tt": 1 }, | ||
"getStorageSync": { "wx": 1, "tt": 1 }, | ||
"getStorageInfoSync": { "wx": 1, "tt": 1 }, | ||
"getStorageInfo": { "wx": 1, "tt": 1 }, | ||
"getStorage": { "wx": 1, "tt": 1 }, | ||
"clearStorageSync": { "wx": 1, "tt": 1 }, | ||
"clearStorage": { "wx": 1, "tt": 1 }, | ||
"requestPluginPayment": { "wx": 1 }, | ||
"requestPayment": { "wx": 1 }, | ||
"revokeBufferURL": { "wx": 1 }, | ||
"createBufferURL": { "wx": 1 }, | ||
"batchSetStorageSync": { "wx": 1 }, | ||
"batchSetStorage": { "wx": 1 }, | ||
"batchGetStorageSync": { "wx": 1 }, | ||
"batchGetStorage": { "wx": 1 }, | ||
"setBackgroundFetchToken": { "wx": 1 }, | ||
@@ -212,53 +275,15 @@ "onBackgroundFetchData": { "wx": 1 }, | ||
"getBackgroundFetchData": { "wx": 1 }, | ||
"createMapContext": { "wx": 1, "tt": 1 }, | ||
"MapContext.addCustomLayer": { "wx": 1 }, | ||
"MapContext.addGroundOverlay": { "wx": 1 }, | ||
"MapContext.addMarkers": { "wx": 1 }, | ||
"MapContext.fromScreenLocation": { "wx": 1 }, | ||
"MapContext.getCenterLocation": { "wx": 1 }, | ||
"MapContext.getRegion": { "wx": 1 }, | ||
"MapContext.getRotate": { "wx": 1 }, | ||
"MapContext.getScale": { "wx": 1 }, | ||
"MapContext.getSkew": { "wx": 1 }, | ||
"MapContext.includePoints": { "wx": 1 }, | ||
"MapContext.initMarkerCluster": { "wx": 1 }, | ||
"MapContext.moveAlong": { "wx": 1 }, | ||
"MapContext.moveToLocation": { "wx": 1 }, | ||
"MapContext.on": { "wx": 1 }, | ||
"MapContext.openMapApp": { "wx": 1 }, | ||
"MapContext.removeCustomLayer": { "wx": 1 }, | ||
"MapContext.removeGroundOverlay": { "wx": 1 }, | ||
"MapContext.removeMarkers": { "wx": 1 }, | ||
"MapContext.setCenterOffset": { "wx": 1 }, | ||
"MapContext.setLocMarkerIcon": { "wx": 1 }, | ||
"MapContext.toScreenLocation": { "wx": 1 }, | ||
"MapContext.translateMarker": { "wx": 1 }, | ||
"MapContext.updateGroundOverlay": { "wx": 1 }, | ||
"saveImageToPhotosAlbum": { "wx": 1, "tt": 1 }, | ||
"createCacheManager": { "wx": 1 }, | ||
"reportMonitor": { "wx": 1 }, | ||
"reportEvent": { "wx": 1 }, | ||
"getExptInfoSync": { "wx": 1 }, | ||
"canvasPutImageData": { "wx": 1 }, | ||
"canvasGetImageData": { "wx": 1 }, | ||
"previewMedia": { "wx": 1 }, | ||
"previewImage": { "wx": 1, "tt": 1 }, | ||
"getImageInfo": { "wx": 1, "tt": 1 }, | ||
"compressImage": { "wx": 1, "tt": 1 }, | ||
"editImage": { "wx": 1 }, | ||
"cropImage": { "wx": 1 }, | ||
"chooseMessageFile": { "wx": 1 }, | ||
"chooseImage": { "wx": 1, "tt": 1 }, | ||
"saveVideoToPhotosAlbum": { "wx": 1, "tt": 1 }, | ||
"openVideoEditor": { "wx": 1 }, | ||
"getVideoInfo": { "wx": 1 }, | ||
"createVideoContext": { "wx": 1, "tt": 1 }, | ||
"compressVideo": { "wx": 1 }, | ||
"chooseVideo": { "wx": 1, "tt": 1 }, | ||
"chooseMedia": { "wx": 1 }, | ||
"VideoContext.exitBackgroundPlayback": { "wx": 1 }, | ||
"VideoContext.exitFullScreen": { "wx": 1 }, | ||
"VideoContext.exitPictureInPicture": { "wx": 1 }, | ||
"VideoContext.hideStatusBar": { "wx": 1 }, | ||
"VideoContext.pause": { "wx": 1 }, | ||
"VideoContext.play": { "wx": 1 }, | ||
"VideoContext.playbackRate": { "wx": 1 }, | ||
"VideoContext.requestBackgroundPlayback": { "wx": 1 }, | ||
"VideoContext.requestFullScreen": { "wx": 1 }, | ||
"VideoContext.seek": { "wx": 1 }, | ||
"VideoContext.sendDanmu": { "wx": 1 }, | ||
"VideoContext.showStatusBar": { "wx": 1 }, | ||
"VideoContext.stop": { "wx": 1 }, | ||
"stopVoice": { "wx": 1 }, | ||
@@ -269,39 +294,5 @@ "setInnerAudioOption": { "wx": 1 }, | ||
"getAvailableAudioSources": { "wx": 1 }, | ||
"createWebAudioContext": { "wx": 1 }, | ||
"createMediaAudioPlayer": { "wx": 1 }, | ||
"createInnerAudioContext": { "wx": 1, "tt": 1 }, | ||
"createAudioContext": { "wx": 1 }, | ||
"AudioContext.pause": { "wx": 1 }, | ||
"AudioContext.play": { "wx": 1 }, | ||
"AudioContext.seek": { "wx": 1 }, | ||
"AudioContext.setSrc": { "wx": 1 }, | ||
"InnerAudioContext.destroy": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offCanplay": { "wx": 1 }, | ||
"InnerAudioContext.offEnded": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offError": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offPause": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offPlay": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offSeeked": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offSeeking": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offStop": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offTimeUpdate": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.offWaiting": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onCanplay": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onEnded": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onError": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onPause": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onPlay": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onSeeked": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onSeeking": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onStop": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onTimeUpdate": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.onWaiting": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.pause": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.play": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.seek": { "wx": 1, "tt": 1 }, | ||
"InnerAudioContext.stop": { "wx": 1, "tt": 1 }, | ||
"MediaAudioPlayer.addAudioSource": { "wx": 1 }, | ||
"MediaAudioPlayer.destroy": { "wx": 1 }, | ||
"MediaAudioPlayer.removeAudioSource": { "wx": 1 }, | ||
"MediaAudioPlayer.start": { "wx": 1 }, | ||
"MediaAudioPlayer.stop": { "wx": 1 }, | ||
"stopBackgroundAudio": { "wx": 1 }, | ||
@@ -315,92 +306,9 @@ "seekBackgroundAudio": { "wx": 1 }, | ||
"getBackgroundAudioPlayerState": { "wx": 1 }, | ||
"getBackgroundAudioManager": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onCanplay": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onEnded": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onError": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onNext": { "wx": 1 }, | ||
"BackgroundAudioManager.onPause": { "wx": 1 }, | ||
"BackgroundAudioManager.onPlay": { "wx": 1 }, | ||
"BackgroundAudioManager.onPrev": { "wx": 1 }, | ||
"BackgroundAudioManager.onSeeked": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onSeeking": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onStop": { "wx": 1 }, | ||
"BackgroundAudioManager.onTimeUpdate": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.onWaiting": { "wx": 1 }, | ||
"BackgroundAudioManager.pause": { "wx": 1 }, | ||
"BackgroundAudioManager.play": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.seek": { "wx": 1, "tt": 1 }, | ||
"BackgroundAudioManager.stop": { "wx": 1 }, | ||
"createLivePusherContext": { "wx": 1 }, | ||
"createLivePlayerContext": { "wx": 1, "tt": 1 }, | ||
"LivePlayerContext.exitFullScreen": { "wx": 1 }, | ||
"LivePlayerContext.exitPictureInPicture": { "wx": 1 }, | ||
"LivePlayerContext.mute": { "wx": 1 }, | ||
"LivePlayerContext.pause": { "wx": 1 }, | ||
"LivePlayerContext.play": { "wx": 1 }, | ||
"LivePlayerContext.requestFullScreen": { "wx": 1 }, | ||
"LivePlayerContext.requestPictureInPicture": { "wx": 1 }, | ||
"LivePlayerContext.resume": { "wx": 1 }, | ||
"LivePlayerContext.snapshot": { "wx": 1 }, | ||
"LivePlayerContext.stop": { "wx": 1 }, | ||
"LivePusherContext.pause": { "wx": 1 }, | ||
"LivePusherContext.pauseBGM": { "wx": 1 }, | ||
"LivePusherContext.playBGM": { "wx": 1 }, | ||
"LivePusherContext.resume": { "wx": 1 }, | ||
"LivePusherContext.resumeBGM": { "wx": 1 }, | ||
"LivePusherContext.sendMessage": { "wx": 1 }, | ||
"LivePusherContext.setBGMVolume": { "wx": 1 }, | ||
"LivePusherContext.setMICVolume": { "wx": 1 }, | ||
"LivePusherContext.snapshot": { "wx": 1 }, | ||
"LivePusherContext.start": { "wx": 1 }, | ||
"LivePusherContext.startPreview": { "wx": 1 }, | ||
"LivePusherContext.stop": { "wx": 1 }, | ||
"LivePusherContext.stopBGM": { "wx": 1 }, | ||
"LivePusherContext.stopPreview": { "wx": 1 }, | ||
"LivePusherContext.switchCamera": { "wx": 1 }, | ||
"LivePusherContext.toggleTorch": { "wx": 1 }, | ||
"stopRecord": { "wx": 1 }, | ||
"startRecord": { "wx": 1 }, | ||
"getRecorderManager": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onError": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onFrameRecorded": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onInterruptionBegin": { "wx": 1 }, | ||
"RecorderManager.onInterruptionEnd": { "wx": 1 }, | ||
"RecorderManager.onPause": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onResume": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onStart": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.onStop": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.pause": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.resume": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.start": { "wx": 1, "tt": 1 }, | ||
"RecorderManager.stop": { "wx": 1, "tt": 1 }, | ||
"createCameraContext": { "wx": 1, "tt": 1 }, | ||
"CameraContext.onCameraFrame": { "wx": 1, "tt": 1 }, | ||
"CameraContext.setZoom": { "wx": 1, "tt": 1 }, | ||
"CameraContext.startRecord": { "wx": 1 }, | ||
"CameraContext.stopRecord": { "wx": 1 }, | ||
"CameraContext.takePhoto": { "wx": 1 }, | ||
"CameraFrameListener.start": { "wx": 1, "tt": 1 }, | ||
"CameraFrameListener.stop": { "wx": 1, "tt": 1 }, | ||
"EditorContext.blur": { "wx": 1 }, | ||
"EditorContext.clear": { "wx": 1 }, | ||
"EditorContext.format": { "wx": 1 }, | ||
"EditorContext.getContents": { "wx": 1 }, | ||
"EditorContext.getSelectionText": { "wx": 1 }, | ||
"EditorContext.insertDivider": { "wx": 1 }, | ||
"EditorContext.insertImage": { "wx": 1 }, | ||
"EditorContext.insertText": { "wx": 1 }, | ||
"EditorContext.redo": { "wx": 1 }, | ||
"EditorContext.removeFormat": { "wx": 1 }, | ||
"EditorContext.scrollIntoView": { "wx": 1 }, | ||
"EditorContext.setContents": { "wx": 1 }, | ||
"EditorContext.undo": { "wx": 1 }, | ||
"createMediaContainer": { "wx": 1 }, | ||
"MediaContainer.addTrack": { "wx": 1 }, | ||
"MediaContainer.destroy": { "wx": 1 }, | ||
"MediaContainer.export": { "wx": 1 }, | ||
"MediaContainer.extractDataSource": { "wx": 1 }, | ||
"MediaContainer.removeTrack": { "wx": 1 }, | ||
"MediaTrack": { "wx": 1 }, | ||
"updateVoIPChatMuteConfig": { "wx": 1 }, | ||
"subscribeVoIPVideoMembers": { "wx": 1 }, | ||
"setEnable1v1Chat": { "wx": 1 }, | ||
"onVoIPVideoMembersChanged": { "wx": 1 }, | ||
@@ -413,179 +321,17 @@ "onVoIPChatStateChanged": { "wx": 1 }, | ||
"offVoIPChatStateChanged": { "wx": 1 }, | ||
"offVoIPChatSpeakersChanged": { "wx": 1 }, | ||
"offVoIPChatMembersChanged": { "wx": 1 }, | ||
"offVoIPChatInterrupted": { "wx": 1 }, | ||
"joinVoIPChat": { "wx": 1 }, | ||
"join1v1Chat": { "wx": 1 }, | ||
"exitVoIPChat": { "wx": 1 }, | ||
"createMediaRecorder": { "wx": 1 }, | ||
"MediaRecorder.destroy": { "wx": 1 }, | ||
"MediaRecorder.off": { "wx": 1 }, | ||
"MediaRecorder.on": { "wx": 1 }, | ||
"MediaRecorder.pause": { "wx": 1 }, | ||
"MediaRecorder.requestFrame": { "wx": 1 }, | ||
"MediaRecorder.resume": { "wx": 1 }, | ||
"MediaRecorder.start": { "wx": 1 }, | ||
"MediaRecorder.stop": { "wx": 1 }, | ||
"createVideoDecoder": { "wx": 1 }, | ||
"VideoDecoder.getFrameData": { "wx": 1 }, | ||
"VideoDecoder.off": { "wx": 1 }, | ||
"VideoDecoder.on": { "wx": 1 }, | ||
"VideoDecoder.remove": { "wx": 1 }, | ||
"VideoDecoder.seek": { "wx": 1 }, | ||
"VideoDecoder.start": { "wx": 1 }, | ||
"VideoDecoder.stop": { "wx": 1 }, | ||
"stopLocationUpdate": { "wx": 1 }, | ||
"startLocationUpdateBackground": { "wx": 1 }, | ||
"startLocationUpdate": { "wx": 1 }, | ||
"openLocation": { "wx": 1, "tt": 1 }, | ||
"onLocationChange": { "wx": 1 }, | ||
"offLocationChange": { "wx": 1 }, | ||
"getLocation": { "wx": 1, "tt": 1 }, | ||
"getFuzzyLocation": { "wx": 1 }, | ||
"choosePoi": { "wx": 1 }, | ||
"chooseLocation": { "wx": 1, "tt": 1 }, | ||
"updateShareMenu": { "wx": 1 }, | ||
"showShareMenu": { "wx": 1, "tt": 1 }, | ||
"showShareImageMenu": { "wx": 1 }, | ||
"shareVideoMessage": { "wx": 1 }, | ||
"shareFileMessage": { "wx": 1 }, | ||
"onCopyUrl": { "wx": 1 }, | ||
"offCopyUrl": { "wx": 1 }, | ||
"hideShareMenu": { "wx": 1, "tt": 1 }, | ||
"getShareInfo": { "wx": 1 }, | ||
"authPrivateMessage": { "wx": 1 }, | ||
"createOffscreenCanvas": { "wx": 1, "tt": 1 }, | ||
"createCanvasContext": { "wx": 1, "tt": 1 }, | ||
"canvasToTempFilePath": { "wx": 1, "tt": 1 }, | ||
"canvasPutImageData": { "wx": 1 }, | ||
"canvasGetImageData": { "wx": 1 }, | ||
"Canvas.cancelAnimationFrame": { "wx": 1, "tt": 1 }, | ||
"Canvas.createImage": { "wx": 1, "tt": 1 }, | ||
"Canvas.createImageData": { "wx": 1 }, | ||
"Canvas.createPath2D": { "wx": 1 }, | ||
"Canvas.getContext": { "wx": 1, "tt": 1 }, | ||
"Canvas.requestAnimationFrame": { "wx": 1, "tt": 1 }, | ||
"Canvas.toDataURL": { "wx": 1 }, | ||
"CanvasContext.arc": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.arcTo": { "wx": 1 }, | ||
"CanvasContext.beginPath": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.bezierCurveTo": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.clearRect": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.clip": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.closePath": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.createCircularGradient": { "wx": 1 }, | ||
"CanvasContext.createLinearGradient": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.createPattern": { "wx": 1 }, | ||
"CanvasContext.draw": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.drawImage": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.fill": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.fillRect": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.fillText": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.lineTo": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.measureText": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.moveTo": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.quadraticCurveTo": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.rect": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.restore": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.rotate": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.save": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.scale": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setFillStyle": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setFontSize": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setGlobalAlpha": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setLineCap": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setLineDash": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setLineJoin": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setLineWidth": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setMiterLimit": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setShadow": { "wx": 1 }, | ||
"CanvasContext.setStrokeStyle": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setTextAlign": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setTextBaseline": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.setTransform": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.stroke": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.strokeRect": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.strokeText": { "wx": 1 }, | ||
"CanvasContext.transform": { "wx": 1, "tt": 1 }, | ||
"CanvasContext.translate": { "wx": 1, "tt": 1 }, | ||
"CanvasGradient.addColorStop": { "wx": 1, "tt": 1 }, | ||
"Color": { "wx": 1 }, | ||
"Image": { "wx": 1, "tt": 1 }, | ||
"ImageData": { "wx": 1 }, | ||
"OffscreenCanvas.createImage": { "wx": 1 }, | ||
"OffscreenCanvas.getContext": { "wx": 1, "tt": 1 }, | ||
"Path2D": { "wx": 1 }, | ||
"RenderingContext": { "wx": 1, "tt": 1 }, | ||
"saveFileToDisk": { "wx": 1 }, | ||
"saveFile": { "wx": 1, "tt": 1 }, | ||
"removeSavedFile": { "wx": 1, "tt": 1 }, | ||
"openDocument": { "wx": 1, "tt": 1 }, | ||
"getSavedFileList": { "wx": 1, "tt": 1 }, | ||
"getSavedFileInfo": { "wx": 1 }, | ||
"getFileSystemManager": { "wx": 1, "tt": 1 }, | ||
"getFileInfo": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.access": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.accessSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.appendFile": { "wx": 1 }, | ||
"FileSystemManager.appendFileSync": { "wx": 1 }, | ||
"FileSystemManager.close": { "wx": 1 }, | ||
"FileSystemManager.closeSync": { "wx": 1 }, | ||
"FileSystemManager.copyFile": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.copyFileSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.fstat": { "wx": 1 }, | ||
"FileSystemManager.fstatSync": { "wx": 1 }, | ||
"FileSystemManager.ftruncate": { "wx": 1 }, | ||
"FileSystemManager.ftruncateSync": { "wx": 1 }, | ||
"FileSystemManager.getFileInfo": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.getSavedFileList": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.mkdir": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.mkdirSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.open": { "wx": 1 }, | ||
"FileSystemManager.openSync": { "wx": 1 }, | ||
"FileSystemManager.read": { "wx": 1 }, | ||
"FileSystemManager.readdir": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.readdirSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.readFile": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.readFileSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.readSync": { "wx": 1 }, | ||
"FileSystemManager.removeSavedFile": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.rename": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.renameSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.rmdir": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.rmdirSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.saveFile": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.saveFileSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.stat": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.statSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.truncate": { "wx": 1 }, | ||
"FileSystemManager.truncateSync": { "wx": 1 }, | ||
"FileSystemManager.unlink": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.unlinkSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.unzip": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.write": { "wx": 1 }, | ||
"FileSystemManager.writeFile": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.writeFileSync": { "wx": 1, "tt": 1 }, | ||
"FileSystemManager.writeSync": { "wx": 1 }, | ||
"readResult": { "wx": 1 }, | ||
"Stats.isDirectory": { "wx": 1, "tt": 1 }, | ||
"Stats.isFile": { "wx": 1, "tt": 1 }, | ||
"writeResult": { "wx": 1 }, | ||
"login": { "wx": 1, "tt": 1 }, | ||
"checkSession": { "wx": 1, "tt": 1 }, | ||
"navigateToMiniProgram": { "wx": 1, "tt": 1 }, | ||
"navigateBackMiniProgram": { "wx": 1, "tt": 1 }, | ||
"pluginLogin": { "wx": 1 }, | ||
"getAccountInfoSync": { "wx": 1 }, | ||
"getUserProfile": { "wx": 1 }, | ||
"getUserInfo": { "wx": 1, "tt": 1 }, | ||
"UserInfo": { "wx": 1 }, | ||
"reportMonitor": { "wx": 1 }, | ||
"reportEvent": { "wx": 1 }, | ||
"getExptInfoSync": { "wx": 1 }, | ||
"reportAnalytics": { "wx": 1, "tt": 1 }, | ||
"requestPayment": { "wx": 1 }, | ||
"requestOrderPayment": { "wx": 1 }, | ||
"authorizeForMiniProgram": { "wx": 1 }, | ||
"authorize": { "wx": 1, "tt": 1 }, | ||
"openSetting": { "wx": 1, "tt": 1 }, | ||
"getSetting": { "wx": 1, "tt": 1 }, | ||
"AuthSetting": { "wx": 1, "tt": 1 }, | ||
"SubscriptionsSetting": { "wx": 1 }, | ||
"chooseAddress": { "wx": 1, "tt": 1 }, | ||
"openCard": { "wx": 1 }, | ||
@@ -600,34 +346,49 @@ "addCard": { "wx": 1 }, | ||
"getWeRunData": { "wx": 1 }, | ||
"reportPerformance": { "wx": 1 }, | ||
"getPerformance": { "wx": 1 }, | ||
"EntryList.getEntries": { "wx": 1 }, | ||
"EntryList.getEntriesByName": { "wx": 1 }, | ||
"EntryList.getEntriesByType": { "wx": 1 }, | ||
"Performance.createObserver": { "wx": 1 }, | ||
"Performance.getEntries": { "wx": 1 }, | ||
"Performance.getEntriesByName": { "wx": 1 }, | ||
"Performance.getEntriesByType": { "wx": 1 }, | ||
"Performance.setBufferSize": { "wx": 1 }, | ||
"PerformanceObserver.disconnect": { "wx": 1 }, | ||
"PerformanceObserver.observe": { "wx": 1 }, | ||
"requestSubscribeMessage": { "wx": 1, "tt": 1 }, | ||
"requestSubscribeDeviceMessage": { "wx": 1 }, | ||
"showRedPackage": { "wx": 1 }, | ||
"addVideoToFavorites": { "wx": 1 }, | ||
"addFileToFavorites": { "wx": 1 }, | ||
"chooseLicensePlate": { "wx": 1 }, | ||
"reserveChannelsLive": { "wx": 1 }, | ||
"openChannelsUserProfile": { "wx": 1 }, | ||
"openChannelsLive": { "wx": 1 }, | ||
"openChannelsEvent": { "wx": 1 }, | ||
"openChannelsActivity": { "wx": 1 }, | ||
"getChannelsShareKey": { "wx": 1 }, | ||
"getChannelsLiveNoticeInfo": { "wx": 1 }, | ||
"getChannelsLiveInfo": { "wx": 1 }, | ||
"getGroupEnterInfo": { "wx": 1 }, | ||
"openCustomerServiceChat": { "wx": 1 }, | ||
"stopBluetoothDevicesDiscovery": { "wx": 1 }, | ||
"startBluetoothDevicesDiscovery": { "wx": 1 }, | ||
"openBluetoothAdapter": { "wx": 1 }, | ||
"onBluetoothDeviceFound": { "wx": 1 }, | ||
"onBluetoothAdapterStateChange": { "wx": 1 }, | ||
"offBluetoothDeviceFound": { "wx": 1 }, | ||
"offBluetoothAdapterStateChange": { "wx": 1 }, | ||
"makeBluetoothPair": { "wx": 1 }, | ||
"isBluetoothDevicePaired": { "wx": 1 }, | ||
"getConnectedBluetoothDevices": { "wx": 1 }, | ||
"getBluetoothDevices": { "wx": 1 }, | ||
"getBluetoothAdapterState": { "wx": 1 }, | ||
"closeBluetoothAdapter": { "wx": 1 }, | ||
"writeBLECharacteristicValue": { "wx": 1 }, | ||
"setBLEMTU": { "wx": 1 }, | ||
"readBLECharacteristicValue": { "wx": 1 }, | ||
"onBLEMTUChange": { "wx": 1 }, | ||
"onBLEConnectionStateChange": { "wx": 1 }, | ||
"onBLECharacteristicValueChange": { "wx": 1 }, | ||
"offBLEMTUChange": { "wx": 1 }, | ||
"offBLEConnectionStateChange": { "wx": 1 }, | ||
"offBLECharacteristicValueChange": { "wx": 1 }, | ||
"notifyBLECharacteristicValueChange": { "wx": 1 }, | ||
"getBLEMTU": { "wx": 1 }, | ||
"getBLEDeviceServices": { "wx": 1 }, | ||
"getBLEDeviceRSSI": { "wx": 1 }, | ||
"getBLEDeviceCharacteristics": { "wx": 1 }, | ||
"createBLEConnection": { "wx": 1 }, | ||
"closeBLEConnection": { "wx": 1 }, | ||
"onBLEPeripheralConnectionStateChanged": { "wx": 1 }, | ||
"offBLEPeripheralConnectionStateChanged": { "wx": 1 }, | ||
"createBLEPeripheralServer": { "wx": 1 }, | ||
"BLEPeripheralServer.addService": { "wx": 1 }, | ||
"BLEPeripheralServer.close": { "wx": 1 }, | ||
"BLEPeripheralServer.offCharacteristicReadRequest": { "wx": 1 }, | ||
"BLEPeripheralServer.offCharacteristicSubscribed": { "wx": 1 }, | ||
"BLEPeripheralServer.offCharacteristicUnsubscribed": { "wx": 1 }, | ||
"BLEPeripheralServer.offCharacteristicWriteRequest": { "wx": 1 }, | ||
"BLEPeripheralServer.onCharacteristicReadRequest": { "wx": 1 }, | ||
"BLEPeripheralServer.onCharacteristicSubscribed": { "wx": 1 }, | ||
"BLEPeripheralServer.onCharacteristicUnsubscribed": { "wx": 1 }, | ||
"BLEPeripheralServer.onCharacteristicWriteRequest": { "wx": 1 }, | ||
"BLEPeripheralServer.removeService": { "wx": 1 }, | ||
"BLEPeripheralServer.startAdvertising": { "wx": 1 }, | ||
"BLEPeripheralServer.stopAdvertising": { "wx": 1 }, | ||
"BLEPeripheralServer.writeCharacteristicValue": { "wx": 1 }, | ||
"stopBeaconDiscovery": { "wx": 1 }, | ||
@@ -640,137 +401,37 @@ "startBeaconDiscovery": { "wx": 1 }, | ||
"getBeacons": { "wx": 1 }, | ||
"IBeaconInfo": { "wx": 1 }, | ||
"stopHCE": { "wx": 1 }, | ||
"startHCE": { "wx": 1 }, | ||
"sendHCEMessage": { "wx": 1 }, | ||
"onHCEMessage": { "wx": 1 }, | ||
"offHCEMessage": { "wx": 1 }, | ||
"getNFCAdapter": { "wx": 1 }, | ||
"getHCEState": { "wx": 1 }, | ||
"IsoDep.close": { "wx": 1 }, | ||
"IsoDep.connect": { "wx": 1 }, | ||
"IsoDep.getHistoricalBytes": { "wx": 1 }, | ||
"IsoDep.getMaxTransceiveLength": { "wx": 1 }, | ||
"IsoDep.isConnected": { "wx": 1 }, | ||
"IsoDep.setTimeout": { "wx": 1 }, | ||
"IsoDep.transceive": { "wx": 1 }, | ||
"MifareClassic.close": { "wx": 1 }, | ||
"MifareClassic.connect": { "wx": 1 }, | ||
"MifareClassic.getMaxTransceiveLength": { "wx": 1 }, | ||
"MifareClassic.isConnected": { "wx": 1 }, | ||
"MifareClassic.setTimeout": { "wx": 1 }, | ||
"MifareClassic.transceive": { "wx": 1 }, | ||
"MifareUltralight.close": { "wx": 1 }, | ||
"MifareUltralight.connect": { "wx": 1 }, | ||
"MifareUltralight.getMaxTransceiveLength": { "wx": 1 }, | ||
"MifareUltralight.isConnected": { "wx": 1 }, | ||
"MifareUltralight.setTimeout": { "wx": 1 }, | ||
"MifareUltralight.transceive": { "wx": 1 }, | ||
"Ndef.close": { "wx": 1 }, | ||
"Ndef.connect": { "wx": 1 }, | ||
"Ndef.isConnected": { "wx": 1 }, | ||
"Ndef.offNdefMessage": { "wx": 1 }, | ||
"Ndef.onNdefMessage": { "wx": 1 }, | ||
"Ndef.setTimeout": { "wx": 1 }, | ||
"Ndef.writeNdefMessage": { "wx": 1 }, | ||
"NfcA.close": { "wx": 1 }, | ||
"NfcA.connect": { "wx": 1 }, | ||
"NfcA.getAtqa": { "wx": 1 }, | ||
"NfcA.getMaxTransceiveLength": { "wx": 1 }, | ||
"NfcA.getSak": { "wx": 1 }, | ||
"NfcA.isConnected": { "wx": 1 }, | ||
"NfcA.setTimeout": { "wx": 1 }, | ||
"NfcA.transceive": { "wx": 1 }, | ||
"NFCAdapter.getIsoDep": { "wx": 1 }, | ||
"NFCAdapter.getMifareClassic": { "wx": 1 }, | ||
"NFCAdapter.getMifareUltralight": { "wx": 1 }, | ||
"NFCAdapter.getNdef": { "wx": 1 }, | ||
"NFCAdapter.getNfcA": { "wx": 1 }, | ||
"NFCAdapter.getNfcB": { "wx": 1 }, | ||
"NFCAdapter.getNfcF": { "wx": 1 }, | ||
"NFCAdapter.getNfcV": { "wx": 1 }, | ||
"NFCAdapter.offDiscovered": { "wx": 1 }, | ||
"NFCAdapter.onDiscovered": { "wx": 1 }, | ||
"NFCAdapter.startDiscovery": { "wx": 1 }, | ||
"NFCAdapter.stopDiscovery": { "wx": 1 }, | ||
"NfcB.close": { "wx": 1 }, | ||
"NfcB.connect": { "wx": 1 }, | ||
"NfcB.getMaxTransceiveLength": { "wx": 1 }, | ||
"NfcB.isConnected": { "wx": 1 }, | ||
"NfcB.setTimeout": { "wx": 1 }, | ||
"NfcB.transceive": { "wx": 1 }, | ||
"NfcF.close": { "wx": 1 }, | ||
"NfcF.connect": { "wx": 1 }, | ||
"NfcF.getMaxTransceiveLength": { "wx": 1 }, | ||
"NfcF.isConnected": { "wx": 1 }, | ||
"NfcF.setTimeout": { "wx": 1 }, | ||
"NfcF.transceive": { "wx": 1 }, | ||
"NfcV.close": { "wx": 1 }, | ||
"NfcV.connect": { "wx": 1 }, | ||
"NfcV.getMaxTransceiveLength": { "wx": 1 }, | ||
"NfcV.isConnected": { "wx": 1 }, | ||
"NfcV.setTimeout": { "wx": 1 }, | ||
"NfcV.transceive": { "wx": 1 }, | ||
"stopWifi": { "wx": 1 }, | ||
"startWifi": { "wx": 1 }, | ||
"setWifiList": { "wx": 1 }, | ||
"onWifiConnectedWithPartialInfo": { "wx": 1 }, | ||
"onWifiConnected": { "wx": 1 }, | ||
"onGetWifiList": { "wx": 1, "tt": 1 }, | ||
"offWifiConnectedWithPartialInfo": { "wx": 1 }, | ||
"offWifiConnected": { "wx": 1 }, | ||
"offGetWifiList": { "wx": 1, "tt": 1 }, | ||
"getWifiList": { "wx": 1, "tt": 1 }, | ||
"getConnectedWifi": { "wx": 1, "tt": 1 }, | ||
"connectWifi": { "wx": 1 }, | ||
"WifiInfo": { "wx": 1 }, | ||
"addPhoneRepeatCalendar": { "wx": 1 }, | ||
"addPhoneCalendar": { "wx": 1 }, | ||
"searchContacts": { "wx": 1 }, | ||
"chooseContact": { "wx": 1 }, | ||
"addPhoneContact": { "wx": 1 }, | ||
"checkIsOpenAccessibility": { "wx": 1 }, | ||
"writeBLECharacteristicValue": { "wx": 1 }, | ||
"setBLEMTU": { "wx": 1 }, | ||
"readBLECharacteristicValue": { "wx": 1 }, | ||
"onBLEConnectionStateChange": { "wx": 1 }, | ||
"onBLECharacteristicValueChange": { "wx": 1 }, | ||
"offBLEConnectionStateChange": { "wx": 1 }, | ||
"offBLECharacteristicValueChange": { "wx": 1 }, | ||
"notifyBLECharacteristicValueChange": { "wx": 1 }, | ||
"makeBluetoothPair": { "wx": 1 }, | ||
"getBLEDeviceServices": { "wx": 1 }, | ||
"getBLEDeviceRSSI": { "wx": 1 }, | ||
"getBLEDeviceCharacteristics": { "wx": 1 }, | ||
"createBLEConnection": { "wx": 1 }, | ||
"closeBLEConnection": { "wx": 1 }, | ||
"stopBluetoothDevicesDiscovery": { "wx": 1 }, | ||
"startBluetoothDevicesDiscovery": { "wx": 1 }, | ||
"openBluetoothAdapter": { "wx": 1 }, | ||
"onBluetoothDeviceFound": { "wx": 1 }, | ||
"onBluetoothAdapterStateChange": { "wx": 1 }, | ||
"offBluetoothDeviceFound": { "wx": 1 }, | ||
"offBluetoothAdapterStateChange": { "wx": 1 }, | ||
"getConnectedBluetoothDevices": { "wx": 1 }, | ||
"getBluetoothDevices": { "wx": 1 }, | ||
"getBluetoothAdapterState": { "wx": 1 }, | ||
"closeBluetoothAdapter": { "wx": 1 }, | ||
"getBatteryInfoSync": { "wx": 1 }, | ||
"getBatteryInfo": { "wx": 1 }, | ||
"setClipboardData": { "wx": 1, "tt": 1 }, | ||
"getClipboardData": { "wx": 1, "tt": 1 }, | ||
"onNetworkStatusChange": { "wx": 1, "tt": 1 }, | ||
"stopHCE": { "wx": 1 }, | ||
"startHCE": { "wx": 1 }, | ||
"sendHCEMessage": { "wx": 1 }, | ||
"onHCEMessage": { "wx": 1 }, | ||
"offHCEMessage": { "wx": 1 }, | ||
"getHCEState": { "wx": 1 }, | ||
"onNetworkWeakChange": { "wx": 1 }, | ||
"offNetworkWeakChange": { "wx": 1 }, | ||
"offNetworkStatusChange": { "wx": 1 }, | ||
"getNetworkType": { "wx": 1, "tt": 1 }, | ||
"getLocalIPAddress": { "wx": 1 }, | ||
"getRandomValues": { "wx": 1 }, | ||
"setScreenBrightness": { "wx": 1, "tt": 1 }, | ||
"setKeepScreenOn": { "wx": 1, "tt": 1 }, | ||
"onUserCaptureScreen": { "wx": 1, "tt": 1 }, | ||
"offUserCaptureScreen": { "wx": 1, "tt": 1 }, | ||
"getScreenBrightness": { "wx": 1, "tt": 1 }, | ||
"makePhoneCall": { "wx": 1, "tt": 1 }, | ||
"stopAccelerometer": { "wx": 1, "tt": 1 }, | ||
"startAccelerometer": { "wx": 1, "tt": 1 }, | ||
"onAccelerometerChange": { "wx": 1, "tt": 1 }, | ||
"setVisualEffectOnCapture": { "wx": 1 }, | ||
"onScreenRecordingStateChanged": { "wx": 1 }, | ||
"offScreenRecordingStateChanged": { "wx": 1 }, | ||
"getScreenRecordingState": { "wx": 1 }, | ||
"onKeyboardHeightChange": { "wx": 1 }, | ||
"offKeyboardHeightChange": { "wx": 1 }, | ||
"getSelectedTextRange": { "wx": 1 }, | ||
"offAccelerometerChange": { "wx": 1 }, | ||
"stopCompass": { "wx": 1, "tt": 1 }, | ||
"startCompass": { "wx": 1, "tt": 1 }, | ||
"onCompassChange": { "wx": 1, "tt": 1 }, | ||
"offCompassChange": { "wx": 1 }, | ||
@@ -781,110 +442,68 @@ "stopDeviceMotionListening": { "wx": 1 }, | ||
"offDeviceMotionChange": { "wx": 1 }, | ||
"offMemoryWarning": { "wx": 1 }, | ||
"stopGyroscope": { "wx": 1 }, | ||
"startGyroscope": { "wx": 1 }, | ||
"onGyroscopeChange": { "wx": 1 }, | ||
"offGyroscopeChange": { "wx": 1 }, | ||
"onMemoryWarning": { "wx": 1, "tt": 1 }, | ||
"offMemoryWarning": { "wx": 1 }, | ||
"scanCode": { "wx": 1, "tt": 1 }, | ||
"vibrateShort": { "wx": 1, "tt": 1 }, | ||
"vibrateLong": { "wx": 1, "tt": 1 }, | ||
"createWorker": { "wx": 1 }, | ||
"Worker.onMessage": { "wx": 1 }, | ||
"Worker.onProcessKilled": { "wx": 1 }, | ||
"Worker.postMessage": { "wx": 1 }, | ||
"Worker.terminate": { "wx": 1 }, | ||
"getExtConfigSync": { "wx": 1, "tt": 1 }, | ||
"getExtConfig": { "wx": 1, "tt": 1 }, | ||
"createSelectorQuery": { "wx": 1, "tt": 1 }, | ||
"createIntersectionObserver": { "wx": 1, "tt": 1 }, | ||
"IntersectionObserver.disconnect": { "wx": 1, "tt": 1 }, | ||
"IntersectionObserver.observe": { "wx": 1, "tt": 1 }, | ||
"IntersectionObserver.relativeTo": { "wx": 1, "tt": 1 }, | ||
"IntersectionObserver.relativeToViewport": { "wx": 1, "tt": 1 }, | ||
"MediaQueryObserver.disconnect": { "wx": 1 }, | ||
"MediaQueryObserver.observe": { "wx": 1 }, | ||
"NodesRef.boundingClientRect": { "wx": 1, "tt": 1 }, | ||
"NodesRef.context": { "wx": 1 }, | ||
"NodesRef.fields": { "wx": 1, "tt": 1 }, | ||
"NodesRef.node": { "wx": 1, "tt": 1 }, | ||
"NodesRef.scrollOffset": { "wx": 1, "tt": 1 }, | ||
"SelectorQuery.exec": { "wx": 1, "tt": 1 }, | ||
"SelectorQuery.in": { "wx": 1, "tt": 1 }, | ||
"SelectorQuery.select": { "wx": 1, "tt": 1 }, | ||
"SelectorQuery.selectAll": { "wx": 1, "tt": 1 }, | ||
"SelectorQuery.selectViewport": { "wx": 1, "tt": 1 }, | ||
"createRewardedVideoAd": { "wx": 1, "tt": 1 }, | ||
"createInterstitialAd": { "wx": 1, "tt": 1 }, | ||
"InterstitialAd.destroy": { "wx": 1, "tt": 1 }, | ||
"InterstitialAd.load": { "wx": 1, "tt": 1 }, | ||
"InterstitialAd.offClose": { "wx": 1 }, | ||
"InterstitialAd.offError": { "wx": 1 }, | ||
"InterstitialAd.offLoad": { "wx": 1, "tt": 1 }, | ||
"InterstitialAd.onClose": { "wx": 1 }, | ||
"InterstitialAd.onError": { "wx": 1 }, | ||
"InterstitialAd.onLoad": { "wx": 1, "tt": 1 }, | ||
"InterstitialAd.show": { "wx": 1 }, | ||
"RewardedVideoAd.destroy": { "wx": 1 }, | ||
"RewardedVideoAd.load": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.offClose": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.offError": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.offLoad": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.onClose": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.onError": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.onLoad": { "wx": 1, "tt": 1 }, | ||
"RewardedVideoAd.show": { "wx": 1 }, | ||
"addVideoToFavorites": { "wx": 1 }, | ||
"addFileToFavorites": { "wx": 1 } | ||
"sendSms": { "wx": 1 }, | ||
"isVKSupport": { "wx": 1 }, | ||
"createVKSession": { "wx": 1 }, | ||
"stopFaceDetect": { "wx": 1 }, | ||
"initFaceDetect": { "wx": 1 }, | ||
"faceDetect": { "wx": 1 }, | ||
"createWorker": { "wx": 1 } | ||
}, | ||
"component": { | ||
"canvas": { "tt": 1, "wx": 1 }, | ||
"camera": { "tt": 1, "wx": 1 }, | ||
"image": { "tt": 1, "wx": 1 }, | ||
"live-player": { "tt": 1, "wx": 1 }, | ||
"video": { "tt": 1, "wx": 1 }, | ||
"button": { "tt": 1, "wx": 1 }, | ||
"checkbox-group": { "tt": 1, "wx": 1 }, | ||
"checkbox": { "tt": 1, "wx": 1 }, | ||
"form": { "tt": 1, "wx": 1 }, | ||
"input": { "tt": 1, "wx": 1 }, | ||
"label": { "tt": 1, "wx": 1 }, | ||
"picker-view-column": { "tt": 1, "wx": 1 }, | ||
"picker-view": { "tt": 1, "wx": 1 }, | ||
"picker": { "tt": 1, "wx": 1 }, | ||
"radio-group": { "tt": 1, "wx": 1 }, | ||
"radio": { "tt": 1, "wx": 1 }, | ||
"slider": { "tt": 1, "wx": 1 }, | ||
"switch": { "tt": 1, "wx": 1 }, | ||
"textarea": { "tt": 1, "wx": 1 }, | ||
"map": { "tt": 1, "wx": 1 }, | ||
"movable-area": { "tt": 1, "wx": 1 }, | ||
"movable-view": { "tt": 1, "wx": 1 }, | ||
"scroll-view": { "tt": 1, "wx": 1 }, | ||
"swiper-item": { "tt": 1, "wx": 1 }, | ||
"swiper": { "tt": 1, "wx": 1 }, | ||
"view": { "tt": 1, "wx": 1 }, | ||
"ad": { "tt": 1, "wx": 1 }, | ||
"aweme-data": { "tt": 1 }, | ||
"open-data": { "tt": 1, "wx": 1 }, | ||
"web-view": { "tt": 1, "wx": 1 }, | ||
"icon": { "tt": 1, "wx": 1 }, | ||
"progress": { "tt": 1, "wx": 1 }, | ||
"rich-text": { "tt": 1, "wx": 1 }, | ||
"text": { "tt": 1, "wx": 1 }, | ||
"navigator": { "tt": 1, "wx": 1 }, | ||
"cover-image": { "wx": 1 }, | ||
"cover-view": { "wx": 1 }, | ||
"match-media": { "wx": 1 }, | ||
"movable-area": { "wx": 1 }, | ||
"movable-view": { "wx": 1 }, | ||
"page-container": { "wx": 1 }, | ||
"scroll-view": { "wx": 1, "tt": 1 }, | ||
"root-portal": { "wx": 1 }, | ||
"share-element": { "wx": 1 }, | ||
"swiper": { "wx": 1, "tt": 1 }, | ||
"swiper-item": { "wx": 1, "tt": 1 }, | ||
"view": { "wx": 1, "tt": 1 }, | ||
"icon": { "wx": 1, "tt": 1 }, | ||
"progress": { "wx": 1, "tt": 1 }, | ||
"rich-text": { "wx": 1, "tt": 1 }, | ||
"text": { "wx": 1, "tt": 1 }, | ||
"button": { "wx": 1, "tt": 1 }, | ||
"checkbox": { "wx": 1, "tt": 1 }, | ||
"checkbox-group": { "wx": 1, "tt": 1 }, | ||
"editor": { "wx": 1 }, | ||
"form": { "wx": 1, "tt": 1 }, | ||
"input": { "wx": 1, "tt": 1 }, | ||
"keyboard-accessory": { "wx": 1 }, | ||
"label": { "wx": 1, "tt": 1 }, | ||
"picker": { "wx": 1, "tt": 1 }, | ||
"picker-view": { "wx": 1, "tt": 1 }, | ||
"picker-view-column": { "wx": 1, "tt": 1 }, | ||
"radio": { "wx": 1, "tt": 1 }, | ||
"radio-group": { "wx": 1, "tt": 1 }, | ||
"slider": { "wx": 1, "tt": 1 }, | ||
"switch": { "wx": 1, "tt": 1 }, | ||
"textarea": { "wx": 1, "tt": 1 }, | ||
"functional-page-navigator": { "wx": 1 }, | ||
"navigator": { "wx": 1, "tt": 1 }, | ||
"audio": { "wx": 1 }, | ||
"camera": { "wx": 1, "tt": 1 }, | ||
"image": { "wx": 1, "tt": 1 }, | ||
"live-player": { "wx": 1, "tt": 1 }, | ||
"live-pusher": { "wx": 1 }, | ||
"video": { "wx": 1, "tt": 1 }, | ||
"voip-room": { "wx": 1 }, | ||
"map": { "wx": 1, "tt": 1 }, | ||
"canvas": { "wx": 1, "tt": 1 }, | ||
"web-view": { "wx": 1, "tt": 1 }, | ||
"ad": { "wx": 1, "tt": 1 }, | ||
"ad-custom": { "wx": 1 }, | ||
"official-account": { "wx": 1 }, | ||
"open-data": { "wx": 1 }, | ||
"native-component": { "wx": 1 }, | ||
"aria-component": { "wx": 1 } | ||
"aria-component": { "wx": 1 }, | ||
"navigation-bar": { "wx": 1 }, | ||
"page-meta": { "wx": 1 } | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(o,r,i);return t(o,r),o},o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(i,n){function s(e){try{u(o.next(e))}catch(e){n(e)}}function l(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}u((o=o.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.wx2tt=void 0;const n=i(require("path")),s=r(require("./utils/index")),l=require("./utils/log"),u=require("./transform");exports.wx2tt=function(e,t){return o(this,void 0,void 0,(function*(){if(e.isIDE=e.isIDE||!1,l.log.init({isIDE:e.isIDE}),!e.src){const e="argument options.src is required";return l.log.printLog(`⛔ ${e}`,l.Level.ERROR),void(t&&t(e))}if(!s.isDirValid(e.src)){const r=`${e.src} is not a wx miniprogram project`;return l.log.printLog(`⛔ ${r}`,l.Level.INFO),void(t&&t(r))}e.dist=s.isDirectory(e.dist)?e.dist:s.getDefaultDest(e.src);let r=e.dist||e.src;s.isDirectory(r)||(r=n.default.dirname(r)),e.log=r;const o=Object.assign(Object.assign({},e),{data:{}});l.log.printLog("🛠️ Transform source project...",l.Level.INFO);try{yield s.copyProject(e.src,e.dist),yield(0,u.transformApi)(o),yield(0,u.transformView)(o),yield(0,u.transformScript)(o),yield(0,u.transformStyle)(o),yield(0,u.transformConfig)(o),yield s.auditCode(o),l.log.printLog("🎊 Congratulations, transform done! Please check transform log in",l.Level.SUCCESS),l.log.printLog(`📝 ${n.default.resolve(e.log,"log.txt")}`,l.Level.UNDERLINE),l.log.save(e.log),t&&t(null,l.log.result)}catch(r){l.log.recordLog({type:"error",message:`Transform error: ${r}`},l.Level.ERROR,!0),l.log.printLog(`📝 ${n.default.resolve(e.log,"log.txt")}`,l.Level.UNDERLINE),l.log.save(e.log),t&&t(r,l.log.result)}return l.log.result}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,i)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(o,r,i);return t(o,r),o},o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(i,n){function s(e){try{a(o.next(e))}catch(e){n(e)}}function l(e){try{a(o.throw(e))}catch(e){n(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}a((o=o.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.wx2tt=void 0;const n=i(require("path")),s=r(require("./utils/index")),l=require("./utils/log"),a=require("./transform");exports.wx2tt=function(e,t){return o(this,void 0,void 0,(function*(){if(e.isIDE=e.isIDE||!1,l.log.init({isIDE:e.isIDE}),!e.src){const e="argument options.src is required";return l.log.printLog(`⛔ ${e}`,l.Level.ERROR),void(t&&t(e))}if(!s.isDirValid(e.src)){const r=`${e.src} is not a wx miniprogram project`;return l.log.printLog(`⛔ ${r}`,l.Level.INFO),void(t&&t(r))}e.dist=s.isDirectory(e.dist)?e.dist:s.getDefaultDest(e.src);let r=e.dist||e.src;s.isDirectory(r)||(r=n.default.dirname(r)),e.log=r;const o=Object.assign(Object.assign({},e),{data:{}});l.log.printLog("🛠️ Transform source project...",l.Level.INFO);try{yield s.copyProject(e.src,e.dist),yield(0,a.transformApi)(o),yield(0,a.transformView)(o),yield(0,a.transformScript)(o),yield(0,a.transformStyle)(o),yield(0,a.transformConfig)(o),yield s.auditCode(o),l.log.printLog("🎊 Congratulations, transform done! Please check transform log in",l.Level.SUCCESS),l.log.printLog(`📝 ${n.default.resolve(e.log,"log.txt")}`,l.Level.UNDERLINE),l.log.save(e.log),t&&t(null,l.log.result)}catch(r){l.log.recordLog({type:"error",message:`Transform error: ${r}`},l.Level.ERROR,!0),l.log.printLog(`📝 ${n.default.resolve(e.log,"log.txt")}`,l.Level.UNDERLINE),l.log.save(e.log),t&&t(r,l.log.result)}return l.log.result}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var n in r)"default"!==n&&Object.prototype.hasOwnProperty.call(r,n)&&e(o,r,n);return t(o,r),o},o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformApi=void 0;const i=r(require("../utils")),s=r(require("@babel/parser")),a=n(require("@babel/traverse")),u=n(require("@babel/generator")),c=r(require("@babel/types")),l=n(require("../config/compare.json")),f=require("../utils/constant"),p=require("../utils/log");function d(e,t){const r=s.parse(e,{sourceType:"module"});(0,a.default)(r,{enter(e){!function(e,t){if(c.isMemberExpression(e.node)&&c.isIdentifier(e.node.object,{name:f.WX_PREFIX})&&c.isIdentifier(e.node.property)){const r=e.node.property.name;if("cloud"===r)return e.node.object.name=f.TT_PREFIX,void p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 暂未支持云开发模式,仅更换前缀,请参考开发者文档完成适配。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0);const{api:o}=l.default;o[r]?(e.node.object.name=f.TT_PREFIX,o[r][f.WX_PREFIX]&&!o[r][f.TT_PREFIX]&&p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 暂未支持,仅更换前缀,请参考开发者文档完成适配。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0)):(e.node.object.name=f.TT_PREFIX,p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 未能识别,请确保该 api 使用正确。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0))}}(e,t)}});return(0,u.default)(r,{},e).code}exports.transformApi=function(e){return o(this,void 0,void 0,(function*(){try{const t=yield i.traverseFiles(e,"js");if(t.length<1)return;for(const e in t){const r=t[e],o=d(yield i.getContent(r),r);yield i.saveFile(r,o)}p.log.recordLog({type:f.LOG_TYPE.transformApiFile,message:"🍻 Successfully transform js files"},p.Level.INFO,!0)}catch(e){p.log.recordLog({type:f.LOG_TYPE.transformApiFile,message:`transform js files error: ${e}`},p.Level.ERROR,!0)}}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,o,n)}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var o={};if(null!=r)for(var n in r)"default"!==n&&Object.prototype.hasOwnProperty.call(r,n)&&e(o,r,n);return t(o,r),o},o=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))((function(n,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((o=o.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformApi=void 0;const i=r(require("../utils")),s=r(require("@babel/parser")),a=n(require("@babel/traverse")),u=n(require("@babel/generator")),c=r(require("@babel/types")),l=n(require("../config/compare.json")),f=require("../utils/constant"),p=require("../utils/log");function d(e,t){const r=s.parse(e,{sourceType:"module"});(0,a.default)(r,{enter(e){!function(e,t){if(c.isMemberExpression(e.node)&&c.isIdentifier(e.node.object,{name:f.WX_PREFIX})&&c.isIdentifier(e.node.property)){const r=e.node.property.name;if("cloud"===r)return e.node.object.name=f.TT_PREFIX,void p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 暂未支持云开发模式,仅更换前缀,请参考开发者文档完成适配。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0);const{api:o}=l.default;o[r]?(e.node.object.name=f.TT_PREFIX,o[r][f.WX_PREFIX]&&!o[r][f.TT_PREFIX]&&p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 暂未支持,仅更换前缀,请参考开发者文档完成适配。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0)):(e.node.object.name=f.TT_PREFIX,p.log.recordLog({type:f.LOG_TYPE.apiNotSupport,file:t,message:`api: ${r} 未能识别,请确保该 api 使用正确。转换 ${f.WX_PREFIX}.${r} -> ${f.TT_PREFIX}.${r}`},p.Level.WARNING,!0))}}(e,t)}});return(0,u.default)(r,{},e).code}exports.transformApi=function(e){return o(this,void 0,void 0,(function*(){try{const t=yield i.traverseFiles(e,"js");if(t.length<1)return;for(const e in t){const r=t[e],o=d(yield i.getContent(r),r);yield i.saveFile(r,o)}p.log.recordLog({type:f.LOG_TYPE.transformApiFile,message:"🍻 Successfully transform js files"},p.Level.INFO,!0)}catch(e){p.log.recordLog({type:f.LOG_TYPE.transformApiFile,message:`transform js files error: ${e}`},p.Level.ERROR,!0)}}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var o in n)"default"!==o&&Object.prototype.hasOwnProperty.call(n,o)&&e(i,n,o);return t(i,n),i},i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(o,r){function u(e){try{s(i.next(e))}catch(e){r(e)}}function c(e){try{s(i.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}s((i=i.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformConfig=void 0;const o=n(require("../utils")),r=require("../utils/constant"),u=require("../utils/log");function c(e,t){e.plugins&&Object.keys(e.plugins).forEach((e=>{u.log.recordLog({type:r.LOG_TYPE.configNotSupport,file:t,message:`plugin: ${e} 暂未支持引用插件,请参考开发者文档完成适配。`},u.Level.WARNING,!0)})),e.useExtendedLib&&Object.keys(e.useExtendedLib).length>0&&Object.keys(e.useExtendedLib).forEach((e=>{u.log.recordLog({type:r.LOG_TYPE.configNotSupport,file:t,message:`extendedLib: ${e} 暂未支持引用扩展库,请参考开发者文档完成适配。`},u.Level.WARNING,!0)}))}exports.transformConfig=function(e){return i(this,void 0,void 0,(function*(){const t=yield o.traverseFiles(e,"json");for(let e in t){c(yield o.getJSONContent(t[e]),t[e])}}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var i={};if(null!=n)for(var r in n)"default"!==r&&Object.prototype.hasOwnProperty.call(n,r)&&e(i,n,r);return t(i,n),i},i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,o){function u(e){try{s(i.next(e))}catch(e){o(e)}}function c(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}s((i=i.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformConfig=void 0;const r=n(require("../utils")),o=require("../utils/constant"),u=require("../utils/log");function c(e,t){e.plugins&&Object.keys(e.plugins).forEach((e=>{u.log.recordLog({type:o.LOG_TYPE.configNotSupport,file:t,message:`plugin: ${e} 暂未支持引用插件,请参考开发者文档完成适配。`},u.Level.WARNING,!0)})),e.useExtendedLib&&Object.keys(e.useExtendedLib).length>0&&Object.keys(e.useExtendedLib).forEach((e=>{u.log.recordLog({type:o.LOG_TYPE.configNotSupport,file:t,message:`extendedLib: ${e} 暂未支持引用扩展库,请参考开发者文档完成适配。`},u.Level.WARNING,!0)}))}exports.transformConfig=function(e){return i(this,void 0,void 0,(function*(){const t=yield r.traverseFiles(e,"json");for(let e in t){c(yield r.getJSONContent(t[e]),t[e])}}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(n,r,i);return t(n,r),n},n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,u)}a((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformScript=exports.transformScriptContent=void 0;const o=require("../utils/constant"),s=require("../utils/log"),u=r(require("../utils")),a=r(require("@babel/parser")),c=i(require("@babel/traverse")),l=i(require("@babel/generator")),f=r(require("@babel/types"));function d(e){const t=a.parse(e,{sourceType:"module"});(0,c.default)(t,{enter(e){!function(e){if(f.isCallExpression(e.node)&&f.isIdentifier(e.node.callee,{name:"require"}))for(const t in e.node.arguments){const r=e.node.arguments[t];f.isStringLiteral(r)&&(r.value=r.value.replace(o.WX_REGEXP.script,`.${o.TT_SUFFIX.script}`))}}(e)}});return(0,l.default)(t,{},e).code}exports.transformScriptContent=d;exports.transformScript=function(e){return n(this,void 0,void 0,(function*(){try{const t=yield u.traverseFiles(e,o.TT_SUFFIX.script);if(t.length<1)return;for(const e in t){const r=d(yield u.getContent(t[e]));yield u.saveFile(t[e],r)}s.log.recordLog({type:o.LOG_TYPE.transformScriptFile,message:"🍻 Successfully transform wxs files"},s.Level.INFO,!0)}catch(e){s.log.recordLog({type:o.LOG_TYPE.transformScriptFile,message:`transform wxs files error: ${e}`},s.Level.ERROR,!0)}}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(n,r,i);return t(n,r),n},n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,u)}a((n=n.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformScript=exports.transformScriptContent=void 0;const o=require("../utils/constant"),s=require("../utils/log"),u=r(require("../utils")),a=r(require("@babel/parser")),c=i(require("@babel/traverse")),l=i(require("@babel/generator")),f=r(require("@babel/types"));function p(e){const t=a.parse(e,{sourceType:"module"});(0,c.default)(t,{enter(e){!function(e){if(f.isCallExpression(e.node)&&f.isIdentifier(e.node.callee,{name:"require"}))for(const t in e.node.arguments){const r=e.node.arguments[t];f.isStringLiteral(r)&&(r.value=r.value.replace(o.WX_REGEXP.script,`.${o.TT_SUFFIX.script}`))}}(e)}});return(0,l.default)(t,{},e).code}exports.transformScriptContent=p;exports.transformScript=function(e){return n(this,void 0,void 0,(function*(){try{const t=yield u.traverseFiles(e,o.TT_SUFFIX.script);if(t.length<1)return;for(const e in t){const r=p(yield u.getContent(t[e]));yield u.saveFile(t[e],r)}s.log.recordLog({type:o.LOG_TYPE.transformScriptFile,message:"🍻 Successfully transform wxs files"},s.Level.INFO,!0)}catch(e){s.log.recordLog({type:o.LOG_TYPE.transformScriptFile,message:`transform wxs files error: ${e}`},s.Level.ERROR,!0)}}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(n,r,i);return t(n,r),n},n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformStyle=void 0;const i=r(require("../utils")),o=require("../utils/log"),s=require("../utils/constant");function l(e){return e.replace(/\.wxss/gi,`.${s.TT_SUFFIX.style}`)}exports.transformStyle=function(e){return n(this,void 0,void 0,(function*(){try{const t=yield i.traverseFiles(e,s.TT_SUFFIX.style);if(t.length<1)return;for(const e in t){const r=l(yield i.getContent(t[e]));yield i.saveFile(t[e],r)}o.log.recordLog({type:s.LOG_TYPE.transformStyleFile,message:"🍻 Successfully transform wxss files"},o.Level.INFO,!0)}catch(e){o.log.recordLog({type:s.LOG_TYPE.transformStyleFile,message:`transform wxss files error: ${e}`},o.Level.ERROR,!0)}}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(null!=r)for(var i in r)"default"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&e(n,r,i);return t(n,r),n},n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function l(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,l)}u((n=n.apply(e,t||[])).next())}))};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformStyle=void 0;const i=r(require("../utils")),o=require("../utils/log"),s=require("../utils/constant");function l(e){return e.replace(/\.wxss/gi,`.${s.TT_SUFFIX.style}`)}exports.transformStyle=function(e){return n(this,void 0,void 0,(function*(){try{const t=yield i.traverseFiles(e,s.TT_SUFFIX.style);if(t.length<1)return;for(const e in t){const r=l(yield i.getContent(t[e]));yield i.saveFile(t[e],r)}o.log.recordLog({type:s.LOG_TYPE.transformStyleFile,message:"🍻 Successfully transform wxss files"},o.Level.INFO,!0)}catch(e){o.log.recordLog({type:s.LOG_TYPE.transformStyleFile,message:`transform wxss files error: ${e}`},o.Level.ERROR,!0)}}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var n in r)"default"!==n&&Object.prototype.hasOwnProperty.call(r,n)&&e(i,r,n);return t(i,r),i},i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function u(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}l((i=i.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformView=void 0;const o=require("../plugins/stringify"),u=require("../utils/constant"),s=require("../utils/log"),l=n(require("unified")),c=r(require("../utils")),a=require("../plugins/wxml-to-ttml"),f=require("../plugins/parse");function d(e,t,r){return(0,l.default)().use(f.parse).use(a.wxmlToTtml,{path:e,ctx:r}).use(o.stringify).process(c.toVFile(e,t))}exports.transformView=function(e){return i(this,void 0,void 0,(function*(){try{const t=yield c.traverseFiles(e,u.TT_SUFFIX.view);if(t.length<1)return;for(const r in t){const i=yield c.getContent(t[r]),n=yield d(t[r],i,e);yield c.saveFile(t[r],String(n))}s.log.recordLog({type:u.LOG_TYPE.transformViewFile,message:"🍻 Successfully transform wxml files"},s.Level.INFO,!0)}catch(e){s.log.recordLog({type:u.LOG_TYPE.transformViewFile,message:`transform wxml files error: ${e}`},s.Level.ERROR,!0)}}))}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,r,i){void 0===i&&(i=r);var n=Object.getOwnPropertyDescriptor(t,r);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,i,n)}:function(e,t,r,i){void 0===i&&(i=r),e[i]=t[r]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var n in r)"default"!==n&&Object.prototype.hasOwnProperty.call(r,n)&&e(i,r,n);return t(i,r),i},i=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))((function(n,o){function u(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,s)}l((i=i.apply(e,t||[])).next())}))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.transformView=void 0;const o=require("../plugins/stringify"),u=require("../utils/constant"),s=require("../utils/log"),l=n(require("unified")),c=r(require("../utils")),a=require("../plugins/wxml-to-ttml"),f=require("../plugins/parse");function d(e,t,r){return(0,l.default)().use(f.parse).use(a.wxmlToTtml,{path:e,ctx:r}).use(o.stringify).process(c.toVFile(e,t))}exports.transformView=function(e){return i(this,void 0,void 0,(function*(){try{const t=yield c.traverseFiles(e,u.TT_SUFFIX.view);if(t.length<1)return;for(const r in t){const i=yield c.getContent(t[r]),n=yield d(t[r],i,e);yield c.saveFile(t[r],String(n))}s.log.recordLog({type:u.LOG_TYPE.transformViewFile,message:"🍻 Successfully transform wxml files"},s.Level.INFO,!0)}catch(e){s.log.recordLog({type:u.LOG_TYPE.transformViewFile,message:`transform wxml files error: ${e}`},s.Level.ERROR,!0)}}))}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,s,i){void 0===i&&(i=s),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,i){void 0===i&&(i=s),e[i]=t[s]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var o in s)"default"!==o&&Object.prototype.hasOwnProperty.call(s,o)&&e(i,s,o);return t(i,s),i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=exports.Level=void 0;const o=require("./constant"),r=i(require("chalk")),n=s(require("./index"));var l;!function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.UNDERLINE="underline"}(l=exports.Level||(exports.Level={}));exports.log=new class{constructor(){this.store={info:[],warning:[],error:[],success:[]},this.logMap=new Map,this.isIDE=!1,this.beginTime=null,this.endTime=null,this.result=null,this.status=null}init(e){this.clear(),this.isIDE=e.isIDE,this.beginTime=new Date}isLogExist(e,t){const s=`${t}_${JSON.stringify(e)}`;return!!this.logMap.has(s)||(this.logMap.set(s,1),!1)}recordLog(e,t,s=!1){this.isLogExist(e,t)||(s&&this.printLog(e,t),t===l.UNDERLINE?this.store.success.push(e):this.store[t].push(e))}printLog(e,t){const s="string"==typeof e?e:e.message;if(t===l.UNDERLINE)console.log(r.default.blue.underline.bold(s));else{if(this.attentionLog(e,t))return;console.log(r.default[o.LOG_COLOR_TYPE[t]](s))}}attentionLog(e,t){return"string"!=typeof e&&t!==l.INFO&&t!==l.SUCCESS&&(t===l.WARNING?(console.log(r.default.keyword("orange")(`⚡ ${r.default.yellow("[Warning]: ")} ${e.message}`)),e.file&&console.log(r.default.yellow(` ${e.file}`)),console.log("--------------------------------------------------------")):(console.log(r.default.keyword("orange")(`⛔ ${r.default.redBright("[Error]: ")} ${e.message}`)),e.file&&console.log(r.default.redBright(` ${e.file}`)),console.log("--------------------------------------------------------")),!0)}sortLog(e){const t=String(this.endTime.getTime()-this.beginTime.getTime())+" ms",s={wxml2ttml:[],wxss2ttss:[],wxs2sjs:[]},i=Object.keys(s),r={apiNotSupport:[],componentNotSupport:[],configNotSupport:[],attribNotSupport:[]},n=Object.keys(r);for(let e in this.store.info){const t=this.store.info[e];"string"!=typeof t&&(t.file&&i.forEach((e=>{t.type!==o.LOG_TYPE[e]||t.file&&s[e].push(t.file)})))}for(let e in this.store.warning){const t=this.store.warning[e];"string"!=typeof t&&n.forEach((e=>{t.type===o.LOG_TYPE[e]&&(t.file?r[e].push({file:t.file,message:t.message}):r[e].push({message:t.message}))}))}const l={beginTime:this.beginTime.toString(),duration:t,transformFileExtName:i.map((e=>s[e].length<1?null:{type:o.LOG_TYPE[e],message:`转换文件名后缀 ${o.LOG_TYPE[e]},共计 ${s[e].length} 个文件`,files:s[e]})).filter((e=>e)),needAttention:n.map((e=>r[e].length<1?null:{type:o.LOG_TYPE[e],content:r[e]})).filter((e=>e)),transformError:this.store.error.map((e=>"string"!=typeof e&&e.type&&e.message?e.message:e)),transformLog:e};return JSON.stringify(l,null,2)}save(e){this.endTime=new Date;const t=`${e}/log.txt`,s=this.sortLog(t);this.result=s,n.saveLog(t,s)}clear(){this.store.info=[],this.store.warning=[],this.store.error=[],this.store.success=[],this.result=null,this.logMap.clear(),this.beginTime=null,this.endTime=null,this.status=null}}; | ||
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,t,s,i){void 0===i&&(i=s);var o=Object.getOwnPropertyDescriptor(t,s);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[s]}}),Object.defineProperty(e,i,o)}:function(e,t,s,i){void 0===i&&(i=s),e[i]=t[s]}),t=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__importStar||function(s){if(s&&s.__esModule)return s;var i={};if(null!=s)for(var o in s)"default"!==o&&Object.prototype.hasOwnProperty.call(s,o)&&e(i,s,o);return t(i,s),i},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.log=exports.Level=void 0;const o=require("./constant"),r=i(require("chalk")),n=s(require("./index"));var l;!function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.INFO="info",e.UNDERLINE="underline"}(l=exports.Level||(exports.Level={}));exports.log=new class{constructor(){this.store={info:[],warning:[],error:[],success:[]},this.logMap=new Map,this.isIDE=!1,this.beginTime=null,this.endTime=null,this.result=null,this.status=null}init(e){this.clear(),this.isIDE=e.isIDE,this.beginTime=new Date}isLogExist(e,t){const s=`${t}_${JSON.stringify(e)}`;return!!this.logMap.has(s)||(this.logMap.set(s,1),!1)}recordLog(e,t,s=!1){this.isLogExist(e,t)||(s&&this.printLog(e,t),t===l.UNDERLINE?this.store.success.push(e):this.store[t].push(e))}printLog(e,t){const s="string"==typeof e?e:e.message;if(t===l.UNDERLINE)console.log(r.default.blue.underline.bold(s));else{if(this.attentionLog(e,t))return;console.log(r.default[o.LOG_COLOR_TYPE[t]](s))}}attentionLog(e,t){return"string"!=typeof e&&t!==l.INFO&&t!==l.SUCCESS&&(t===l.WARNING?(console.log(r.default.keyword("orange")(`⚡ ${r.default.yellow("[Warning]: ")} ${e.message}`)),e.file&&console.log(r.default.yellow(` ${e.file}`)),console.log("--------------------------------------------------------")):(console.log(r.default.keyword("orange")(`⛔ ${r.default.redBright("[Error]: ")} ${e.message}`)),e.file&&console.log(r.default.redBright(` ${e.file}`)),console.log("--------------------------------------------------------")),!0)}sortLog(e){const t=String(this.endTime.getTime()-this.beginTime.getTime())+" ms",s={wxml2ttml:[],wxss2ttss:[],wxs2sjs:[]},i=Object.keys(s),r={apiNotSupport:[],componentNotSupport:[],configNotSupport:[],attribNotSupport:[]},n=Object.keys(r);for(let e in this.store.info){const t=this.store.info[e];"string"!=typeof t&&(t.file&&i.forEach((e=>{t.type!==o.LOG_TYPE[e]||t.file&&s[e].push(t.file)})))}for(let e in this.store.warning){const t=this.store.warning[e];"string"!=typeof t&&n.forEach((e=>{t.type===o.LOG_TYPE[e]&&(t.file?r[e].push({file:t.file,message:t.message}):r[e].push({message:t.message}))}))}const l={beginTime:this.beginTime.toString(),duration:t,transformFileExtName:i.map((e=>s[e].length<1?null:{type:o.LOG_TYPE[e],message:`转换文件名后缀 ${o.LOG_TYPE[e]},共计 ${s[e].length} 个文件`,files:s[e]})).filter((e=>e)),needAttention:n.map((e=>r[e].length<1?null:{type:o.LOG_TYPE[e],content:r[e]})).filter((e=>e)),transformError:this.store.error.map((e=>"string"!=typeof e&&e.type&&e.message?e.message:e)),transformLog:e};return JSON.stringify(l,null,2)}save(e){this.endTime=new Date;const t=`${e}/log.txt`,s=this.sortLog(t);this.result=s,n.saveLog(t,s)}clear(){this.store.info=[],this.store.warning=[],this.store.error=[],this.store.success=[],this.result=null,this.logMap.clear(),this.beginTime=null,this.endTime=null,this.status=null}}; |
{ | ||
"name": "wx-to-tt", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "transform wx micro app to bytedance micro app", | ||
@@ -11,3 +11,3 @@ "main": "dist/index.js", | ||
"build": "tsc -p ./ && node ../../scripts/compress.js ./dist", | ||
"prepublish": "yarn build" | ||
"prepublishOnly": "yarn build" | ||
}, | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.4.4" | ||
"typescript": "^4.6.3" | ||
}, | ||
@@ -59,0 +59,0 @@ "engines": { |
# 字节跳动小程序一键搬家工具 | ||
## Introduction: | ||
帮助微信小程序的开发者快速迁移到字节跳动小程序 | ||
> **帮助微信小程序的开发者快速迁移到字节跳动小程序** | ||
## Quick Start | ||
1. 安装 | ||
1. 安装 | ||
```bash | ||
npm i wx-to-tt | ||
``` | ||
```bash | ||
npm i wx-to-tt | ||
``` | ||
2. wx2tt -i 微信小程序目录 source-directory -o 生成字节跳动小程序的目录 | ||
1. wx2tt -i 微信小程序目录 source-directory -o 生成字节跳动小程序的目录 | ||
```bash | ||
wx2tt -i ./wxProjects/demo -o ./ttProjects/demo | ||
``` | ||
```bash | ||
wx2tt -i ./wxProjects/demo -o ./ttProjects/demo | ||
``` | ||
3. 可查看转换日志 | ||
1. 可查看转换日志 | ||
## Feature | ||
0. parse, traverse, transform, generate | ||
1. parse, traverse, transform, generate | ||
1. 文件后缀替换,.wxml -> .ttml, .wxss -> .ttss, .wxs -> .sjs | ||
2. API 前缀替换,wx -> tt | ||
3. 支持命令行转换 | ||
4. 转换日志及优化提示 | ||
1. API 前缀替换,wx -> tt | ||
1. 支持命令行转换 | ||
1. 转换日志及优化提示 |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
63238
867
28
2