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

xs-bridge

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xs-bridge - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"name": "xs-bridge",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "dist/index.js",
"main": "src/main.js",
"scripts": {

@@ -7,0 +7,0 @@ "build": "webpack",

@@ -5,5 +5,18 @@ import wx from "weixin-js-sdk"

export default {
appid: "",
token: "",
//应用名称
appName: "",
//是否开启调试
debug: false,
//
config(options){
this.debug = options.debug || false;
this.appName = options.appName || "";
},
ready(options){
},
/*

@@ -17,6 +30,7 @@ * @param {Object} option

*/
goDetail(option){
option = option || {}
option.type = option.type || "navigateTo";
let query = formatUrl(option.query || {})
goDetail(options){
options = options || {}
options.type = options.type || "navigateTo";
let query = formatUrl(options.query || {});
console.log("去详细页面")

@@ -23,0 +37,0 @@ wx.miniProgram.navigateTo({

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

import wx from "weixin-js-sdk"

@@ -13,2 +14,21 @@ //格式化object 成 URL 格式字符串

return result = '?' + result
}
//检查环境
export function monitorEnv() {
return new Promise((resolve,reject)=>{
var ua = navigator.userAgent.toLowerCase();
if(ua.match(/MicroMessenger/i)=="micromessenger") {
wx.miniProgram.getEnv((res)=>{
if (res.miniprogram) {
resolve("miniProgram")
} else {
resolve("wechatH5")
}
})
}else{
reject("unknown")
}
})
}
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