New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

windmill-module-api

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

windmill-module-api - npm Package Compare versions

Comparing version 0.2.52 to 0.2.53

4

index.js

@@ -1,2 +0,2 @@

/* windmill-module-api (0.2.52), build at 2018-11-28 10:13. */
/* windmill-module-api (0.2.53), build at 2018-11-29 12:25. */

@@ -757,3 +757,3 @@ (function (global, factory) {

var type = options.type;
callModule('location.getLocation', options, {}, function (res) {
callModule('location.getLocation', options, options, function (res) {
var result = {

@@ -760,0 +760,0 @@ longitude: res.coords.longitude,

@@ -1,2 +0,2 @@

/* windmill-module-api (0.2.52), build at 2018-11-28 10:13. */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t["windmill-module-api"]=e()}(this,function(){"use strict";var e="__WINDMILL_WORKER_RUNTIME_APIS__",n="[[JSON]]",o=/^\[\[JSON\]\].*/;function r(){return"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:new Function("return this")()}var i,a="__WINDMILL_MODULE_GETTER__";function c(t){var e=r();return e&&"function"==typeof e[a]?e[a](t):e&&"function"==typeof e.require?e.require("@core/"+t):(console.error('Can\'t find available "require" function.'),e&&e&&"function"==typeof e.requireModule?e.requireModule(t):e&&e.weex&&"function"==typeof e.weex.requireModule?e.weex.requireModule("@windmill/"+t):void 0)}function u(t){return Object.prototype.toString.call(t).slice(8,-1)}function s(t){return"Object"===u(t)}function f(t){return"Array"===u(t)}function d(){return"object"==typeof __windmill_environment__?__windmill_environment__:"object"==typeof wmlEnv?wmlEnv:"object"==typeof windmillEnv?windmillEnv:{}}function l(){if(!i){var t=r();i=t[e]}return i}function p(){return l().$getCurrentActivePageId()}var h={};function g(t,e){var n=h[t];return"function"==typeof n&&s(e)?n(e):e}var m,v=(m=1e5,function(){var t=String(m);return m+=1,t});function y(t,e){var n=p(),o="[[ModuleAPIEvent]]@"+n;l().$emit(o,{type:t,data:e},n)}var S=["success","fail","complete"];function w(t){var e={};for(var n in t)-1===S.indexOf(n)&&(e[n]=t[n]);return e}function b(n,t){var o=l();if(o){if(t&&"function"==typeof o.$callSync)return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.$callSync.apply(o,[n].concat(t))};if(!t&&"function"==typeof o.$call)return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.$call.apply(o,[n].concat(t))}}var e=n.split(/\s*\.\s*/i),r=e[0],i=e[1];if(r&&i){var a=c(r);if(a&&"function"==typeof a[i])return a[i]}return function(){}}function I(t,e){if("function"==typeof t)try{return t.apply(null,e)}catch(t){console.error("Failed to execute internal method: "+t.toString())}}var T=function(t,e){console.error('Failed to execute callback of "'+t+'": '+e.toString())};function _(e,t,n){if("function"==typeof t)try{return t.apply(null,n)}catch(t){T(e,t)}}function k(n,o,t,r,i){void 0===o&&(o={}),void 0===t&&(t=o),void 0===r&&(r=function(t){return t}),void 0===i&&(i=function(t){return t});var e=b(n),a=!1;return e(w(t),function(t){var e=I(r,[t]);_(n,o.success,[e]),a||(_(n,o.complete,[e]),a=!0)},function(t){var e=I(i,[t]);_(n,o.fail,[e]),a||(_(n,o.complete,[e]),a=!0)})}function B(t,e){return void 0===e&&(e={}),b(t,!0)(w(e))}var t=["opacity","backgroundColor","width","height","top","left","bottom","right","rotate","rotateX","rotateY","rotateZ","rotate3d","skew","skewX","skewY","scale","scaleX","scaleY","scaleZ","scale3d","translate","translateX","translateY","translateZ","translate3d","matrix","matrix3d"],C=function(){var o=this;this.animations=[],this.currentAnimation=[],this.config={},t.forEach(function(n){o[n]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.currentAnimation.push([n,t]),o}})};C.prototype.step=function(t){return this.animations.push({config:Object.assign({},this.config,t),animation:this.currentAnimation}),this.currentAnimation=[],this},C.prototype.export=function(){var t=this.animations;return this.animations=[],t};var P=function(e){function t(t){e.call(this),this.config=Object.assign({transformOrigin:"50% 50% 0",duration:400,timeFunction:"linear",delay:0},t)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(C);var A="[[EVENT_MAP]]";function N(t,e){var n=t[A];return Array.isArray(n[e])||(n[e]=[]),n[e]}var x=function(){Object.defineProperty(this,A,{configurable:!1,enumerable:!1,writable:!1,value:{}})};x.prototype.on=function(t,e){return N(this,t).push({listener:e,once:!1,callCount:0}),this},x.prototype.once=function(t,e){return N(this,t).push({listener:e,once:!0,callCount:0}),this},x.prototype.off=function(t,e){var n=this[A];if(e){var o=n[t];if(Array.isArray(o)){var r=o.findIndex(function(t){return t.listener===e});-1!==r&&o.splice(r,1)}}else delete n[t];return this},x.prototype.emit=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];var o=this[A],r=o[t];return Array.isArray(r)&&(o[t]=r.filter(function(t){try{t.listener.apply(null,e),t.callCount+=1}catch(t){return!0}return!t.once})),this};var F=function(t){void 0===t&&(t={}),this._instanceId=v(),this._emitter=new x,this.src=t.src};F.prototype.play=function(t){var e=this;k("audioPlayer.playVoice",t,{src:this.src,instanceId:this._instanceId},function(t){return 1===t.isComplete?e._emitter.emit("stop"):(e.duration=t.duration,e._emitter.emit("play")),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.pause=function(t){var e=this;k("audioPlayer.pauseVoice",t,{instanceId:this._instanceId},function(t){return e._emitter.emit("pause"),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.stop=function(t){var e=this;k("audioPlayer.stopVoice",t,{instanceId:this._instanceId},function(t){return e._emitter.emit("stop"),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.onPlay=function(t){this._emitter.on("play",t)},F.prototype.onPause=function(t){this._emitter.on("pause",t)},F.prototype.onStop=function(t){this._emitter.on("stop",t)},F.prototype.onError=function(t){this._emitter.on("error",t)},F.prototype.offPlay=function(t){this._emitter.off("play",t)},F.prototype.offPause=function(t){this._emitter.off("pause",t)},F.prototype.offStop=function(t){this._emitter.off("stop",t)},F.prototype.offError=function(t){this._emitter.off("error",t)};var M,L=function(){this._startEmitted=!1,this._emitter=new x};L.prototype.start=function(t){var e=this;void 0===t&&(t={}),this._startEmitted=!1,k("audioRecord.startRecord",t,{maxDuration:t.duration/1e3,minDuration:1},function(t){return t.averagePower&&!e._startEmitted&&(e._emitter.emit("start",{}),e._startEmitted=!0),t.apFilePath&&e._emitter.emit("stop",{tempFilePath:t.apFilePath,duration:t.duration}),t},function(t){return e._emitter.emit("error",t),t})},L.prototype.stop=function(t){var e=this;void 0===t&&(t={}),k("audioRecord.stopRecord",t,t,function(t){return e._emitter.emit("stop",{tempFilePath:t.apFilePath,duration:t.duration}),t},function(t){return e._emitter.emit("error",t),t})},L.prototype.onStart=function(t){this._emitter.on("start",t)},L.prototype.onStop=function(t){this._emitter.on("stop",t)},L.prototype.onError=function(t){this._emitter.on("error",t)},L.prototype.offStart=function(t){this._emitter.off("start",t)},L.prototype.offStop=function(t){this._emitter.off("stop",t)},L.prototype.offError=function(t){this._emitter.off("error",t)};var E,D=["setTextAlign","setTextBaseline","setFillStyle","setStrokeStyle","setShadow","createLinearGradient","createCircularGradient","addColorStop","setLineWidth","setLineCap","setLineJoin","setMiterLimit","rect","fillRect","strokeRect","clearRect","fill","stroke","beginPath","closePath","moveTo","lineTo","arc","bezierCurveTo","clip","quadraticCurveTo","scale","rotate","translate","setFontSize","fillText","drawImage","setGlobalAlpha","setLineDash","transform","setTransform","getImageData","p\u200butImageData","save","restore","measureText"],O=function(t){var o=this;this._canvasId=t,this._actions=[],D.forEach(function(n){o[n]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];o._actions.push({method:n,args:t})}})};function V(t){return s(t)?t.apFilePath||t.filePath:""}function R(t){return"/"===t.charAt(0)}function j(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()}function U(t){return void 0===t&&(t=""),"/"===t[0]?t.slice(1):t}function q(t){return n+JSON.stringify(t.data)}function W(t){return{data:o.test(t.value)?JSON.parse(t.value.substr(n.length)):t.value}}function H(){var t=d();return{model:t.model,pixelRatio:t.pixelRatio,windowWidth:t.screenWidth,windowHeight:t.screenHeight,language:t.language,version:t.appVersion,storage:null,currentBattery:null,system:t.systemVersion,platform:t.platform,screenWidth:t.screenWidth,screenHeight:t.screenHeight,brand:t.brand,fontSizeSetting:14,app:t.appName,SDKVersion:t.version,frameworkType:t.frameworkType,frameworkVersion:t.frameworkVersion,userAgent:t.userAgent,screenDensity:t.screenDensity}}O.prototype.draw=function(){y("canvas",{canvasId:this._canvasId,actions:this._actions}),this._actions=[]};var z=d().version||"";var K=["play","pause","stop","requestFullScreen","exitFullScreen","showControls","hideControls","enableLoop","disableLoop"],$=function(i){var t=this;K.forEach(function(r){t[r]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=p(),o="[[VideoContextAction]]@"+n;l().$emit(o,{action:r,id:i,args:t},n)}})};var G=new x,J=["onOpen","onError","onMessage","onClose"],X=0,Y=!1;var Z=Object.freeze({showActionSheet:function(t){k("actionSheet.showActionSheet",t)},chooseAddress:function(t){k("address.chooseAddress",t)},tradePay:function(t){void 0===t&&(t={}),k("alipay.tradePay",t=g("tradePay",t))},createAnimation:function(t){return new P(t)},createInnerAudioContext:function(t){return new F(t)},getRecorderManager:function(t){return M||(M=new L),M},createCanvasContext:function(t){return new O(t)},openChat:function(t){k("chat.open",t)},getClipboard:function(t){k("clipboard.readText",t)},setClipboard:function(t){void 0===t&&(t={}),k("clipboard.writeText",t,{text:t.text})},getNetworkType:function(t){k("connection.getType",t=g("getNetworkType",t),{},function(t){return{networkType:(t.type||"").toUpperCase()}})},onNetworkStatusChange:function(t){E||(E=new x,c("connection").onChange({},function(t){var e=t.type||"";E.emit("networkStatusChange",{networkType:e.toUpperCase()})})),E.on("networkStatusChange",t)},offNetworkStatusChange:function(){E.off("networkStatusChange")},choosePhoneContact:function(t){k("contact.choosePhoneContact",t=g("choosePhoneContact",t),{},function(t){return{name:t.name,mobile:t.phone}})},watchShake:function(t){k("device.onShake",t,{on:!0})},vibrate:function(t){k("device.vibrate",t)},vibrateShort:function(t){k("device.vibrateShort",t)},onUserCaptureScreen:function(t){k("device.onUserCaptureScreen",{success:t})},offUserCaptureScreen:function(){k("device.offUserCaptureScreen")},saveFile:function(t){return k("file.saveFile",t,{filePath:V(t)},function(t){return{apFilePath:t.savedFilePath}})},getFileInfo:function(t){return k("file.getFileInfo",t,{filePath:V(t)},function(t){return{size:t.size}})},getSavedFileInfo:function(t){return k("file.getFileInfo",t,{filePath:V(t)})},getSavedFileList:function(t){return k("file.getFileList",t,{},function(t){var e=[];return f(t.fileList)&&(e=t.fileList.map(function(t){return{size:t.size,createTime:t.createTime,apFilePath:t.filePath}})),{fileList:e}})},removeSavedFile:function(t){return k("file.removeFile",t,{filePath:V(t)})},chooseImage:function(t){k("image.chooseImage",t)},compressImage:function(t){k("image.compressImage",t)},previewImage:function(t){k("image.previewImage",t)},saveImage:function(t){k("image.saveImage",t)},getImageInfo:function(t){k("image.getImageInfo",t)},hideKeyboard:function(){k("keyboard.hideKeyboard")},getLocation:function(t){var n=t.type;k("location.getLocation",t,{},function(t){var e={longitude:t.coords.longitude,latitude:t.coords.latitude,accuracy:t.coords.accuracy};return 0<n&&(e.country=t.address.country,e.province=t.address.province,e.city=t.address.city,e.cityAdcode=t.address.cityCode,e.district=t.address.area,e.districtAdcode=t.address.areaCode),e})},setBackgroundImage:function(t){k("miniApp.setWebViewBackgroundImage",t)},removeBackgroundImage:function(t){k("miniApp.setWebViewBackgroundImage",t,{color:"",imgUrl:""})},setViewTop:function(t){k("miniApp.setWebViewTop",t)},setCanPullDown:function(t){k("miniApp.setWebViewParams",t)},setShareAppMessage:function(t){void 0===t&&(t={}),k("miniApp.setAppShareInfo",t,{title:t.title,description:t.desc,imageUrl:t.imageUrl})},pageScrollTo:function(t){void 0===t&&(t={}),y("pageScrollTo",{scrollTop:t.scrollTop})},alert:function(t){void 0===t&&(t={}),k("modal.alert",t,{title:t.title,message:t.content,okTitle:t.buttonText})},confirm:function(t){void 0===t&&(t={});var e=t.confirmButtonText||"\u786e\u5b9a",n=t.cancelButtonText||"\u53d6\u6d88";k("modal.confirm",t,{title:t.title,message:t.content,okTitle:e,cancelTitle:n},function(t){return{confirm:t.data===e}})},showToast:function(t){void 0===t&&(t={}),t.duration||(t.duration=2e3),k("modal.toast",t,{message:t.content,duration:t.duration/1e3})},hideToast:function(t){k("modal.hideToast",t)},prompt:function(t){k("modal.prompt",t)},showLoading:function(t){k("modal.showLoading",t)},hideLoading:function(t){k("modal.hideLoading",t)},sendMtop:function(t){k("sendMtop.request",g("sendMtop",t))},navigateTo:function(t,e){void 0===t&&(t={}),void 0===e&&(e=""),k("navigator.push",t=g("navigateTo",t),{url:U(function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],r=t&&R(t),i=e&&R(e),a=r||i;if(t&&R(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,f=o.length;0<=f;f--){var d=o[f];"."===d?j(o,f):".."===d?(j(o,f),s++):s&&(j(o,f),s--)}if(!a)for(;s--;s)o.unshift("..");!a||""===o[0]||o[0]&&R(o[0])||o.unshift("");var l=o.join("/");return c&&"/"!==l.substr(-1)&&(l+="/"),l}(t.url,e)||"")})},navigateBack:function(t){k("navigator.pop",g("navigateBack",t))},redirectTo:function(t){void 0===t&&(t={}),k("navigator.redirectTo",t=g("redirectTo",t),{url:U(t.url)})},switchTab:function(t){void 0===t&&(t={}),k("navigator.switchTab",t=g("switchTab",t),{url:U(t.url)})},navigateToMiniProgram:function(t){k("navigator.navigateToMiniProgram",t)},navigateBackMiniProgram:function(t){k("navigator.navigateBackMiniProgram",t)},setNavigationBar:function(t){k("navigatorBar.setNavigationBar",t)},getStatusBarHeight:function(t){k("navigatorBar.getStatusBarHeight",t,t,function(t){return{height:parseInt(t.data)}})},getNavigationBarHeight:function(t){k("navigatorBar.getHeight",t,t,function(t){return{height:parseInt(t.data)}})},showNavigationBarLoading:function(t){k("navigatorBar.showNavigationBarLoading",t)},hideNavigationBarLoading:function(t){k("navigatorBar.hideNavigationBarLoading",t)},setNavigationBarDrawer:function(t){k("navigatorBar.setDrawer",t)},openNavigationBarDrawer:function(t){k("navigatorBar.openDrawer",t)},closeNavigationBarDrawer:function(t){k("navigatorBar.closeDrawer",t)},setNavigationBarSheet:function(t){k("navigatorBar.setActionSheet",t)},httpRequest:function(t){void 0===t&&(t={}),k("network.request",t=g("httpRequest",t),{method:t.method||"GET",url:t.url,headers:t.headers||{"Content-Type":"application/x-www-form-urlencoded"},dataType:t.dataType||"json",body:t.data},function(t){return{data:t.data,status:t.status,headers:t.headers}})},uploadFile:function(t){k("network.uploadFile",t)},downloadFile:function(t){k("network.downloadFile",t)},makePhoneCall:function(t){void 0===t&&(t={}),k("phone.makePhoneCall",t,{phoneNumber:t.number})},chooseCity:function(t){void 0===t&&(t={}),t.cities&&Array.isArray(t.cities)&&(t.cities=t.cities.map(function(t){return{cityName:t.city,cityCode:t.adCode,spell:t.spell}})),t.hotCities&&Array.isArray(t.hotCities)&&(t.hotCities=t.hotCities.map(function(t){return{cityName:t.city,cityCode:t.adCode,spell:t.spell}})),k("picker.chooseCity",t,t,function(t){return{city:t.cityName,adCode:t.cityCode}})},datePicker:function(t){void 0===t&&(t={}),k("picker.pickDate",t,{value:t.currentDate,min:t.startDate,max:t.endDate},function(t){return{date:t.data}})},setScreenBrightness:function(t){void 0===t&&(t={}),k("screen.setBrightness",t,{brightness:t.brightness})},getScreenBrightness:function(t){k("screen.getScreenBrightness",t,t,function(t){return{brightness:t.value}})},setKeepScreenOn:function(t){void 0===t&&(t={}),k("screen.setAlwaysOn",t,{on:t.keepScreenOn})},shareTinyAppMsg:function(t){k("share.doShare",t)},showSku:function(t){k("sku.show",t)},hideSku:function(t){k("sku.hide",t)},setStorage:function(t){void 0===t&&(t={}),k("storage.setItem",t,{key:t.key,value:q(t)})},setStorageSync:function(t){return B("storage.setItemSync",{key:t.key,value:q(t)})},getStorage:function(t){void 0===t&&(t={}),k("storage.getItem",t,t,W)},getStorageSync:function(t){return W(B("storage.getItemSync",t))},removeStorage:function(t){void 0===t&&(t={}),k("storage.removeItem",t)},removeStorageSync:function(t){return void 0===t&&(t={}),B("storage.removeItemSync",t)},getStorageInfo:function(t){k("storage.getStorageInfo",t)},getStorageInfoSync:function(t){return B("storage.getStorageInfoSync",t)},getSystemInfoSync:H,getSystemInfo:function(e){void 0===e&&(e={});try{"function"==typeof e.success&&e.success.call(this,H())}catch(t){"function"==typeof e.fail&&e.fail.call(this,t)}finally{"function"==typeof e.complete&&e.complete.call(this)}},SDKVersion:z,showTabBar:function(t){k("tabBar.show",t)},hideTabBar:function(t){k("tabBar.hide",t)},setTabBarStyle:function(t){k("tabBar.setTabBarStyle",t)},setTabBarItem:function(t){k("tabBar.setTabBarItem",t)},setTabBarBadge:function(t){k("tabBar.setTabBarBadge",t)},removeTabBarBadge:function(t){k("tabBar.removeTabBarBadge",t)},showTabBarRedDot:function(t){k("tabBar.showTabBarRedDot",t)},hideTabBarRedDot:function(t){k("tabBar.hideTabBarRedDot",t)},uccBind:function(t){k("ucc.uccBind",t)},uccTrustLogin:function(t){k("ucc.uccTrustLogin",t)},uccUnbind:function(t){k("ucc.uccUnbind",t)},reportAnalytics:function(t,e){void 0===e&&(e={}),"click"==t||"enter"==t||"expose"==t?b("userTrack.commitut")({type:t,eventId:e.eventId,name:e.name,comName:e.comName,arg1:e.arg1,arg2:e.arg2,arg3:e.arg3,param:e.param}):b("userTrack.customAdvance")({eventId:e.eventId,name:e.name,comName:e.comName,arg1:e.arg1,arg2:e.arg2,arg3:e.arg3,param:e.param})},createVideoContext:function(t){return new $(t)},chooseVideo:function(t){k("video.chooseVideo",t,t,function(t){return t.apFilePath&&(t.tempFilePath=t.apFilePath,delete t.apFilePath),t})},saveVideoToPhotosAlbum:function(t){k("video.saveVideoToPhotosAlbum",t)},getAuthUserInfo:function(t){k("WopcMtopPlugin.request",t,{api:"mtop.taobao.openlink.openinfo.user.get",v:"1.0",type:"GET"},function(t){var e={nickName:t.data.mixNick,userId:t.data.openId};return t.data.avatar&&(e.avatar=t.data.avatar),t.data.unionId&&(e.unionId=t.data.unionId),e})},getTBCode:function(t){k("wopc.authLogin",t)},getTBSessionInfo:function(t){k("wopc.getSessionKey",t,t,function(t){return{data:t}})},setTBSessionInfo:function(t){void 0===t&&(t={}),k("wopc.setSessionKey",t,t.sessionInfo,function(t){return{success:!0}})},connectSocket:function(t){void 0===t&&(t={}),Y&&(k("webSocket.close",{instanceId:X}),Y=!1,X++),k("webSocket.webSocket",t,{instanceId:X,url:t.url,protocol:""},function(t){return Y=!0,t}),J.forEach(function(e){k("webSocket."+e,{instanceId:X,success:function(t){G.emit(e,t)}})})},sendSocketMessage:function(t){void 0===t&&(t={}),k("webSocket.send",t,{instanceId:X,data:t.data})},closeSocket:function(t){k("webSocket.close",t,{instanceId:X},function(t){return Y=!1,X++,t})},onSocketOpen:function(t){G.on("onOpen",t)},offSocketOpen:function(t){G.off("onOpen",t)},onSocketError:function(t){G.on("onError",t)},offSocketError:function(t){G.off("onError",t)},onSocketMessage:function(e){G.on("onMessage",function(t){e&&e({data:t,isBuffer:!1})})},offSocketMessage:function(t){G.off("onMessage",t)},onSocketClose:function(t){G.on("onClose",t)},offSocketClose:function(t){G.off("onClose",t)}});function Q(t){var e,n="my";t&&t.defaultName&&(n=t.defaultName);var r,o,i,a=Object.assign({},Z,{canIUse:function(t){return t in Z}});return r=a,(o=l())&&o.$on("registerModuleAPI",function(t){var e=t.data,n=e.scope;if(n)if(f(e.map))if(!r[n]||s(r[n])){var o=r[n]=r[n]||{};e.map.forEach(function(e){o[e.apiName]&&console.warn("my."+n+"."+e.apiName+" is already existed and will be overridded."),o[e.apiName]=function(t){return e.isSync?B(e.moduleMethod,t):k(e.moduleMethod,t)}})}else console.error('"my.'+n+"\" is already existed and can't be overridded.");else console.error('"data.map" is undefined or not a array on "registerModuleAPI" event.');else console.error('"data.scope" is undefined on "registerModuleAPI" event.')}),t&&t.preprocessor&&function(t,e){if(s(t)&&s(e))for(var n in e)o=t,r=n,Object.prototype.hasOwnProperty.call(o,r)&&"function"==typeof e[n]&&(h[n]=e[n]);var o,r}(a,t.preprocessor),t&&t.errorHandler&&"function"==typeof(i=t.errorHandler)&&(T=i),(e={})[n]=a,e}return function(e,n,t){void 0===t&&(t=!0);var o=r();try{Object.defineProperty(o,e,{value:n,configurable:!0,enumerable:!0,writable:!t})}catch(t){o[e]=n}}("__WINDMILL_MODULE_API__",{getAPIs:Q}),Q});
/* windmill-module-api (0.2.53), build at 2018-11-29 12:25. */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t["windmill-module-api"]=e()}(this,function(){"use strict";var e="__WINDMILL_WORKER_RUNTIME_APIS__",n="[[JSON]]",o=/^\[\[JSON\]\].*/;function r(){return"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:new Function("return this")()}var i,a="__WINDMILL_MODULE_GETTER__";function c(t){var e=r();return e&&"function"==typeof e[a]?e[a](t):e&&"function"==typeof e.require?e.require("@core/"+t):(console.error('Can\'t find available "require" function.'),e&&e&&"function"==typeof e.requireModule?e.requireModule(t):e&&e.weex&&"function"==typeof e.weex.requireModule?e.weex.requireModule("@windmill/"+t):void 0)}function u(t){return Object.prototype.toString.call(t).slice(8,-1)}function s(t){return"Object"===u(t)}function f(t){return"Array"===u(t)}function d(){return"object"==typeof __windmill_environment__?__windmill_environment__:"object"==typeof wmlEnv?wmlEnv:"object"==typeof windmillEnv?windmillEnv:{}}function l(){if(!i){var t=r();i=t[e]}return i}function p(){return l().$getCurrentActivePageId()}var h={};function g(t,e){var n=h[t];return"function"==typeof n&&s(e)?n(e):e}var m,v=(m=1e5,function(){var t=String(m);return m+=1,t});function y(t,e){var n=p(),o="[[ModuleAPIEvent]]@"+n;l().$emit(o,{type:t,data:e},n)}var S=["success","fail","complete"];function w(t){var e={};for(var n in t)-1===S.indexOf(n)&&(e[n]=t[n]);return e}function b(n,t){var o=l();if(o){if(t&&"function"==typeof o.$callSync)return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.$callSync.apply(o,[n].concat(t))};if(!t&&"function"==typeof o.$call)return function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.$call.apply(o,[n].concat(t))}}var e=n.split(/\s*\.\s*/i),r=e[0],i=e[1];if(r&&i){var a=c(r);if(a&&"function"==typeof a[i])return a[i]}return function(){}}function I(t,e){if("function"==typeof t)try{return t.apply(null,e)}catch(t){console.error("Failed to execute internal method: "+t.toString())}}var T=function(t,e){console.error('Failed to execute callback of "'+t+'": '+e.toString())};function _(e,t,n){if("function"==typeof t)try{return t.apply(null,n)}catch(t){T(e,t)}}function k(n,o,t,r,i){void 0===o&&(o={}),void 0===t&&(t=o),void 0===r&&(r=function(t){return t}),void 0===i&&(i=function(t){return t});var e=b(n),a=!1;return e(w(t),function(t){var e=I(r,[t]);_(n,o.success,[e]),a||(_(n,o.complete,[e]),a=!0)},function(t){var e=I(i,[t]);_(n,o.fail,[e]),a||(_(n,o.complete,[e]),a=!0)})}function B(t,e){return void 0===e&&(e={}),b(t,!0)(w(e))}var t=["opacity","backgroundColor","width","height","top","left","bottom","right","rotate","rotateX","rotateY","rotateZ","rotate3d","skew","skewX","skewY","scale","scaleX","scaleY","scaleZ","scale3d","translate","translateX","translateY","translateZ","translate3d","matrix","matrix3d"],C=function(){var o=this;this.animations=[],this.currentAnimation=[],this.config={},t.forEach(function(n){o[n]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return o.currentAnimation.push([n,t]),o}})};C.prototype.step=function(t){return this.animations.push({config:Object.assign({},this.config,t),animation:this.currentAnimation}),this.currentAnimation=[],this},C.prototype.export=function(){var t=this.animations;return this.animations=[],t};var P=function(e){function t(t){e.call(this),this.config=Object.assign({transformOrigin:"50% 50% 0",duration:400,timeFunction:"linear",delay:0},t)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(C);var A="[[EVENT_MAP]]";function N(t,e){var n=t[A];return Array.isArray(n[e])||(n[e]=[]),n[e]}var x=function(){Object.defineProperty(this,A,{configurable:!1,enumerable:!1,writable:!1,value:{}})};x.prototype.on=function(t,e){return N(this,t).push({listener:e,once:!1,callCount:0}),this},x.prototype.once=function(t,e){return N(this,t).push({listener:e,once:!0,callCount:0}),this},x.prototype.off=function(t,e){var n=this[A];if(e){var o=n[t];if(Array.isArray(o)){var r=o.findIndex(function(t){return t.listener===e});-1!==r&&o.splice(r,1)}}else delete n[t];return this},x.prototype.emit=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];var o=this[A],r=o[t];return Array.isArray(r)&&(o[t]=r.filter(function(t){try{t.listener.apply(null,e),t.callCount+=1}catch(t){return!0}return!t.once})),this};var F=function(t){void 0===t&&(t={}),this._instanceId=v(),this._emitter=new x,this.src=t.src};F.prototype.play=function(t){var e=this;k("audioPlayer.playVoice",t,{src:this.src,instanceId:this._instanceId},function(t){return 1===t.isComplete?e._emitter.emit("stop"):(e.duration=t.duration,e._emitter.emit("play")),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.pause=function(t){var e=this;k("audioPlayer.pauseVoice",t,{instanceId:this._instanceId},function(t){return e._emitter.emit("pause"),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.stop=function(t){var e=this;k("audioPlayer.stopVoice",t,{instanceId:this._instanceId},function(t){return e._emitter.emit("stop"),t},function(t){return e._emitter.emit("error",t),t})},F.prototype.onPlay=function(t){this._emitter.on("play",t)},F.prototype.onPause=function(t){this._emitter.on("pause",t)},F.prototype.onStop=function(t){this._emitter.on("stop",t)},F.prototype.onError=function(t){this._emitter.on("error",t)},F.prototype.offPlay=function(t){this._emitter.off("play",t)},F.prototype.offPause=function(t){this._emitter.off("pause",t)},F.prototype.offStop=function(t){this._emitter.off("stop",t)},F.prototype.offError=function(t){this._emitter.off("error",t)};var M,L=function(){this._startEmitted=!1,this._emitter=new x};L.prototype.start=function(t){var e=this;void 0===t&&(t={}),this._startEmitted=!1,k("audioRecord.startRecord",t,{maxDuration:t.duration/1e3,minDuration:1},function(t){return t.averagePower&&!e._startEmitted&&(e._emitter.emit("start",{}),e._startEmitted=!0),t.apFilePath&&e._emitter.emit("stop",{tempFilePath:t.apFilePath,duration:t.duration}),t},function(t){return e._emitter.emit("error",t),t})},L.prototype.stop=function(t){var e=this;void 0===t&&(t={}),k("audioRecord.stopRecord",t,t,function(t){return e._emitter.emit("stop",{tempFilePath:t.apFilePath,duration:t.duration}),t},function(t){return e._emitter.emit("error",t),t})},L.prototype.onStart=function(t){this._emitter.on("start",t)},L.prototype.onStop=function(t){this._emitter.on("stop",t)},L.prototype.onError=function(t){this._emitter.on("error",t)},L.prototype.offStart=function(t){this._emitter.off("start",t)},L.prototype.offStop=function(t){this._emitter.off("stop",t)},L.prototype.offError=function(t){this._emitter.off("error",t)};var E,D=["setTextAlign","setTextBaseline","setFillStyle","setStrokeStyle","setShadow","createLinearGradient","createCircularGradient","addColorStop","setLineWidth","setLineCap","setLineJoin","setMiterLimit","rect","fillRect","strokeRect","clearRect","fill","stroke","beginPath","closePath","moveTo","lineTo","arc","bezierCurveTo","clip","quadraticCurveTo","scale","rotate","translate","setFontSize","fillText","drawImage","setGlobalAlpha","setLineDash","transform","setTransform","getImageData","p\u200butImageData","save","restore","measureText"],O=function(t){var o=this;this._canvasId=t,this._actions=[],D.forEach(function(n){o[n]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];o._actions.push({method:n,args:t})}})};function V(t){return s(t)?t.apFilePath||t.filePath:""}function R(t){return"/"===t.charAt(0)}function j(t,e){for(var n=e,o=n+1,r=t.length;o<r;n+=1,o+=1)t[n]=t[o];t.pop()}function U(t){return void 0===t&&(t=""),"/"===t[0]?t.slice(1):t}function q(t){return n+JSON.stringify(t.data)}function W(t){return{data:o.test(t.value)?JSON.parse(t.value.substr(n.length)):t.value}}function H(){var t=d();return{model:t.model,pixelRatio:t.pixelRatio,windowWidth:t.screenWidth,windowHeight:t.screenHeight,language:t.language,version:t.appVersion,storage:null,currentBattery:null,system:t.systemVersion,platform:t.platform,screenWidth:t.screenWidth,screenHeight:t.screenHeight,brand:t.brand,fontSizeSetting:14,app:t.appName,SDKVersion:t.version,frameworkType:t.frameworkType,frameworkVersion:t.frameworkVersion,userAgent:t.userAgent,screenDensity:t.screenDensity}}O.prototype.draw=function(){y("canvas",{canvasId:this._canvasId,actions:this._actions}),this._actions=[]};var z=d().version||"";var K=["play","pause","stop","requestFullScreen","exitFullScreen","showControls","hideControls","enableLoop","disableLoop"],$=function(i){var t=this;K.forEach(function(r){t[r]=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=p(),o="[[VideoContextAction]]@"+n;l().$emit(o,{action:r,id:i,args:t},n)}})};var G=new x,J=["onOpen","onError","onMessage","onClose"],X=0,Y=!1;var Z=Object.freeze({showActionSheet:function(t){k("actionSheet.showActionSheet",t)},chooseAddress:function(t){k("address.chooseAddress",t)},tradePay:function(t){void 0===t&&(t={}),k("alipay.tradePay",t=g("tradePay",t))},createAnimation:function(t){return new P(t)},createInnerAudioContext:function(t){return new F(t)},getRecorderManager:function(t){return M||(M=new L),M},createCanvasContext:function(t){return new O(t)},openChat:function(t){k("chat.open",t)},getClipboard:function(t){k("clipboard.readText",t)},setClipboard:function(t){void 0===t&&(t={}),k("clipboard.writeText",t,{text:t.text})},getNetworkType:function(t){k("connection.getType",t=g("getNetworkType",t),{},function(t){return{networkType:(t.type||"").toUpperCase()}})},onNetworkStatusChange:function(t){E||(E=new x,c("connection").onChange({},function(t){var e=t.type||"";E.emit("networkStatusChange",{networkType:e.toUpperCase()})})),E.on("networkStatusChange",t)},offNetworkStatusChange:function(){E.off("networkStatusChange")},choosePhoneContact:function(t){k("contact.choosePhoneContact",t=g("choosePhoneContact",t),{},function(t){return{name:t.name,mobile:t.phone}})},watchShake:function(t){k("device.onShake",t,{on:!0})},vibrate:function(t){k("device.vibrate",t)},vibrateShort:function(t){k("device.vibrateShort",t)},onUserCaptureScreen:function(t){k("device.onUserCaptureScreen",{success:t})},offUserCaptureScreen:function(){k("device.offUserCaptureScreen")},saveFile:function(t){return k("file.saveFile",t,{filePath:V(t)},function(t){return{apFilePath:t.savedFilePath}})},getFileInfo:function(t){return k("file.getFileInfo",t,{filePath:V(t)},function(t){return{size:t.size}})},getSavedFileInfo:function(t){return k("file.getFileInfo",t,{filePath:V(t)})},getSavedFileList:function(t){return k("file.getFileList",t,{},function(t){var e=[];return f(t.fileList)&&(e=t.fileList.map(function(t){return{size:t.size,createTime:t.createTime,apFilePath:t.filePath}})),{fileList:e}})},removeSavedFile:function(t){return k("file.removeFile",t,{filePath:V(t)})},chooseImage:function(t){k("image.chooseImage",t)},compressImage:function(t){k("image.compressImage",t)},previewImage:function(t){k("image.previewImage",t)},saveImage:function(t){k("image.saveImage",t)},getImageInfo:function(t){k("image.getImageInfo",t)},hideKeyboard:function(){k("keyboard.hideKeyboard")},getLocation:function(t){var n=t.type;k("location.getLocation",t,t,function(t){var e={longitude:t.coords.longitude,latitude:t.coords.latitude,accuracy:t.coords.accuracy};return 0<n&&(e.country=t.address.country,e.province=t.address.province,e.city=t.address.city,e.cityAdcode=t.address.cityCode,e.district=t.address.area,e.districtAdcode=t.address.areaCode),e})},setBackgroundImage:function(t){k("miniApp.setWebViewBackgroundImage",t)},removeBackgroundImage:function(t){k("miniApp.setWebViewBackgroundImage",t,{color:"",imgUrl:""})},setViewTop:function(t){k("miniApp.setWebViewTop",t)},setCanPullDown:function(t){k("miniApp.setWebViewParams",t)},setShareAppMessage:function(t){void 0===t&&(t={}),k("miniApp.setAppShareInfo",t,{title:t.title,description:t.desc,imageUrl:t.imageUrl})},pageScrollTo:function(t){void 0===t&&(t={}),y("pageScrollTo",{scrollTop:t.scrollTop})},alert:function(t){void 0===t&&(t={}),k("modal.alert",t,{title:t.title,message:t.content,okTitle:t.buttonText})},confirm:function(t){void 0===t&&(t={});var e=t.confirmButtonText||"\u786e\u5b9a",n=t.cancelButtonText||"\u53d6\u6d88";k("modal.confirm",t,{title:t.title,message:t.content,okTitle:e,cancelTitle:n},function(t){return{confirm:t.data===e}})},showToast:function(t){void 0===t&&(t={}),t.duration||(t.duration=2e3),k("modal.toast",t,{message:t.content,duration:t.duration/1e3})},hideToast:function(t){k("modal.hideToast",t)},prompt:function(t){k("modal.prompt",t)},showLoading:function(t){k("modal.showLoading",t)},hideLoading:function(t){k("modal.hideLoading",t)},sendMtop:function(t){k("sendMtop.request",g("sendMtop",t))},navigateTo:function(t,e){void 0===t&&(t={}),void 0===e&&(e=""),k("navigator.push",t=g("navigateTo",t),{url:U(function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],r=t&&R(t),i=e&&R(e),a=r||i;if(t&&R(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var s=0,f=o.length;0<=f;f--){var d=o[f];"."===d?j(o,f):".."===d?(j(o,f),s++):s&&(j(o,f),s--)}if(!a)for(;s--;s)o.unshift("..");!a||""===o[0]||o[0]&&R(o[0])||o.unshift("");var l=o.join("/");return c&&"/"!==l.substr(-1)&&(l+="/"),l}(t.url,e)||"")})},navigateBack:function(t){k("navigator.pop",g("navigateBack",t))},redirectTo:function(t){void 0===t&&(t={}),k("navigator.redirectTo",t=g("redirectTo",t),{url:U(t.url)})},switchTab:function(t){void 0===t&&(t={}),k("navigator.switchTab",t=g("switchTab",t),{url:U(t.url)})},navigateToMiniProgram:function(t){k("navigator.navigateToMiniProgram",t)},navigateBackMiniProgram:function(t){k("navigator.navigateBackMiniProgram",t)},setNavigationBar:function(t){k("navigatorBar.setNavigationBar",t)},getStatusBarHeight:function(t){k("navigatorBar.getStatusBarHeight",t,t,function(t){return{height:parseInt(t.data)}})},getNavigationBarHeight:function(t){k("navigatorBar.getHeight",t,t,function(t){return{height:parseInt(t.data)}})},showNavigationBarLoading:function(t){k("navigatorBar.showNavigationBarLoading",t)},hideNavigationBarLoading:function(t){k("navigatorBar.hideNavigationBarLoading",t)},setNavigationBarDrawer:function(t){k("navigatorBar.setDrawer",t)},openNavigationBarDrawer:function(t){k("navigatorBar.openDrawer",t)},closeNavigationBarDrawer:function(t){k("navigatorBar.closeDrawer",t)},setNavigationBarSheet:function(t){k("navigatorBar.setActionSheet",t)},httpRequest:function(t){void 0===t&&(t={}),k("network.request",t=g("httpRequest",t),{method:t.method||"GET",url:t.url,headers:t.headers||{"Content-Type":"application/x-www-form-urlencoded"},dataType:t.dataType||"json",body:t.data},function(t){return{data:t.data,status:t.status,headers:t.headers}})},uploadFile:function(t){k("network.uploadFile",t)},downloadFile:function(t){k("network.downloadFile",t)},makePhoneCall:function(t){void 0===t&&(t={}),k("phone.makePhoneCall",t,{phoneNumber:t.number})},chooseCity:function(t){void 0===t&&(t={}),t.cities&&Array.isArray(t.cities)&&(t.cities=t.cities.map(function(t){return{cityName:t.city,cityCode:t.adCode,spell:t.spell}})),t.hotCities&&Array.isArray(t.hotCities)&&(t.hotCities=t.hotCities.map(function(t){return{cityName:t.city,cityCode:t.adCode,spell:t.spell}})),k("picker.chooseCity",t,t,function(t){return{city:t.cityName,adCode:t.cityCode}})},datePicker:function(t){void 0===t&&(t={}),k("picker.pickDate",t,{value:t.currentDate,min:t.startDate,max:t.endDate},function(t){return{date:t.data}})},setScreenBrightness:function(t){void 0===t&&(t={}),k("screen.setBrightness",t,{brightness:t.brightness})},getScreenBrightness:function(t){k("screen.getScreenBrightness",t,t,function(t){return{brightness:t.value}})},setKeepScreenOn:function(t){void 0===t&&(t={}),k("screen.setAlwaysOn",t,{on:t.keepScreenOn})},shareTinyAppMsg:function(t){k("share.doShare",t)},showSku:function(t){k("sku.show",t)},hideSku:function(t){k("sku.hide",t)},setStorage:function(t){void 0===t&&(t={}),k("storage.setItem",t,{key:t.key,value:q(t)})},setStorageSync:function(t){return B("storage.setItemSync",{key:t.key,value:q(t)})},getStorage:function(t){void 0===t&&(t={}),k("storage.getItem",t,t,W)},getStorageSync:function(t){return W(B("storage.getItemSync",t))},removeStorage:function(t){void 0===t&&(t={}),k("storage.removeItem",t)},removeStorageSync:function(t){return void 0===t&&(t={}),B("storage.removeItemSync",t)},getStorageInfo:function(t){k("storage.getStorageInfo",t)},getStorageInfoSync:function(t){return B("storage.getStorageInfoSync",t)},getSystemInfoSync:H,getSystemInfo:function(e){void 0===e&&(e={});try{"function"==typeof e.success&&e.success.call(this,H())}catch(t){"function"==typeof e.fail&&e.fail.call(this,t)}finally{"function"==typeof e.complete&&e.complete.call(this)}},SDKVersion:z,showTabBar:function(t){k("tabBar.show",t)},hideTabBar:function(t){k("tabBar.hide",t)},setTabBarStyle:function(t){k("tabBar.setTabBarStyle",t)},setTabBarItem:function(t){k("tabBar.setTabBarItem",t)},setTabBarBadge:function(t){k("tabBar.setTabBarBadge",t)},removeTabBarBadge:function(t){k("tabBar.removeTabBarBadge",t)},showTabBarRedDot:function(t){k("tabBar.showTabBarRedDot",t)},hideTabBarRedDot:function(t){k("tabBar.hideTabBarRedDot",t)},uccBind:function(t){k("ucc.uccBind",t)},uccTrustLogin:function(t){k("ucc.uccTrustLogin",t)},uccUnbind:function(t){k("ucc.uccUnbind",t)},reportAnalytics:function(t,e){void 0===e&&(e={}),"click"==t||"enter"==t||"expose"==t?b("userTrack.commitut")({type:t,eventId:e.eventId,name:e.name,comName:e.comName,arg1:e.arg1,arg2:e.arg2,arg3:e.arg3,param:e.param}):b("userTrack.customAdvance")({eventId:e.eventId,name:e.name,comName:e.comName,arg1:e.arg1,arg2:e.arg2,arg3:e.arg3,param:e.param})},createVideoContext:function(t){return new $(t)},chooseVideo:function(t){k("video.chooseVideo",t,t,function(t){return t.apFilePath&&(t.tempFilePath=t.apFilePath,delete t.apFilePath),t})},saveVideoToPhotosAlbum:function(t){k("video.saveVideoToPhotosAlbum",t)},getAuthUserInfo:function(t){k("WopcMtopPlugin.request",t,{api:"mtop.taobao.openlink.openinfo.user.get",v:"1.0",type:"GET"},function(t){var e={nickName:t.data.mixNick,userId:t.data.openId};return t.data.avatar&&(e.avatar=t.data.avatar),t.data.unionId&&(e.unionId=t.data.unionId),e})},getTBCode:function(t){k("wopc.authLogin",t)},getTBSessionInfo:function(t){k("wopc.getSessionKey",t,t,function(t){return{data:t}})},setTBSessionInfo:function(t){void 0===t&&(t={}),k("wopc.setSessionKey",t,t.sessionInfo,function(t){return{success:!0}})},connectSocket:function(t){void 0===t&&(t={}),Y&&(k("webSocket.close",{instanceId:X}),Y=!1,X++),k("webSocket.webSocket",t,{instanceId:X,url:t.url,protocol:""},function(t){return Y=!0,t}),J.forEach(function(e){k("webSocket."+e,{instanceId:X,success:function(t){G.emit(e,t)}})})},sendSocketMessage:function(t){void 0===t&&(t={}),k("webSocket.send",t,{instanceId:X,data:t.data})},closeSocket:function(t){k("webSocket.close",t,{instanceId:X},function(t){return Y=!1,X++,t})},onSocketOpen:function(t){G.on("onOpen",t)},offSocketOpen:function(t){G.off("onOpen",t)},onSocketError:function(t){G.on("onError",t)},offSocketError:function(t){G.off("onError",t)},onSocketMessage:function(e){G.on("onMessage",function(t){e&&e({data:t,isBuffer:!1})})},offSocketMessage:function(t){G.off("onMessage",t)},onSocketClose:function(t){G.on("onClose",t)},offSocketClose:function(t){G.off("onClose",t)}});function Q(t){var e,n="my";t&&t.defaultName&&(n=t.defaultName);var r,o,i,a=Object.assign({},Z,{canIUse:function(t){return t in Z}});return r=a,(o=l())&&o.$on("registerModuleAPI",function(t){var e=t.data,n=e.scope;if(n)if(f(e.map))if(!r[n]||s(r[n])){var o=r[n]=r[n]||{};e.map.forEach(function(e){o[e.apiName]&&console.warn("my."+n+"."+e.apiName+" is already existed and will be overridded."),o[e.apiName]=function(t){return e.isSync?B(e.moduleMethod,t):k(e.moduleMethod,t)}})}else console.error('"my.'+n+"\" is already existed and can't be overridded.");else console.error('"data.map" is undefined or not a array on "registerModuleAPI" event.');else console.error('"data.scope" is undefined on "registerModuleAPI" event.')}),t&&t.preprocessor&&function(t,e){if(s(t)&&s(e))for(var n in e)o=t,r=n,Object.prototype.hasOwnProperty.call(o,r)&&"function"==typeof e[n]&&(h[n]=e[n]);var o,r}(a,t.preprocessor),t&&t.errorHandler&&"function"==typeof(i=t.errorHandler)&&(T=i),(e={})[n]=a,e}return function(e,n,t){void 0===t&&(t=!0);var o=r();try{Object.defineProperty(o,e,{value:n,configurable:!0,enumerable:!0,writable:!t})}catch(t){o[e]=n}}("__WINDMILL_MODULE_API__",{getAPIs:Q}),Q});
{
"name": "windmill-module-api",
"version": "0.2.52",
"version": "0.2.53",
"description": "Standard module APIs of windmill.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc