iov-smart-utils
Advanced tools
@@ -1,1 +0,1 @@ | ||
| "use strict";var JSEncrypt=require("../libs/jsencrypt.min.js"),_require=require("../basic-lib/cacheEvent"),CacheEvent=_require.CacheEvent,finallyCallBack=_require.finallyCallBack,checkCacheEventStatus=_require.checkCacheEventStatus,_require2=require("../basic-lib/globalData"),get=_require2.get,getGlobalData=get,phoneCallBack=new CacheEvent("phoneCallBack"),getPhone=function(){return new Promise(function(n){checkCacheEventStatus(phoneCallBack,function(){swan.iovauto&&swan.iovauto.getPhone({success:function(e){var a=new JSEncrypt,a=(a.setPublicKey(getGlobalData("publicKey")),a.encrypt(e));swan.setStorageSync("userPhone",a),n(e),finallyCallBack(phoneCallBack,e)},fail:function(e){console.log("🚀 > fail > 获取手机号失败",e),phoneCallBack.flag=!1,n(),finallyCallBack(phoneCallBack),swan.showToast({icon:"none",title:"获取手机号失败"})}})},n)}).catch(function(e){return console.log(e)})};module.exports={getPhone:getPhone}; | ||
| "use strict";var _jsencryptMin=_interopRequireDefault(require("../libs/jsencrypt.min.js"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var _require=require("../basic-lib/cacheEvent"),CacheEvent=_require.CacheEvent,finallyCallBack=_require.finallyCallBack,checkCacheEventStatus=_require.checkCacheEventStatus,_require2=require("../basic-lib/globalData"),get=_require2.get,getGlobalData=get,phoneCallBack=new CacheEvent("phoneCallBack"),getPhone=function(){return new Promise(function(n){checkCacheEventStatus(phoneCallBack,function(){swan.iovauto&&swan.iovauto.getPhone({success:function(e){var a=new _jsencryptMin.default,a=(a.setPublicKey(getGlobalData("publicKey")),a.encrypt(e));swan.setStorageSync("userPhone",a),n(e),finallyCallBack(phoneCallBack,e)},fail:function(e){console.log("🚀 > fail > 获取手机号失败",e),phoneCallBack.flag=!1,n(),finallyCallBack(phoneCallBack),swan.showToast({icon:"none",title:"获取手机号失败"})}})},n)}).catch(function(e){return console.log(e)})};module.exports={getPhone:getPhone}; |
+1
-1
| { | ||
| "name": "iov-smart-utils", | ||
| "version": "0.0.7", | ||
| "version": "0.0.8", | ||
| "description": "垂类小程序通用基础能力库", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Explicitly Unlicensed Item
LicenseSomething was found which is explicitly marked as unlicensed.
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
97069
0.12%