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

xs-jsbrage

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xs-jsbrage - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

2

package.json
{
"name": "xs-jsbrage",
"version": "1.0.4",
"version": "1.0.5",
"description": "",

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

import wx from "weixin-js-sdk"
import { formatUrl } from './util'
window.bridge={}
export default function xsBridge (options){
bridge={}
function config(opts){
this.appid = opts.appid;
this.token = opts.token;
}
function config(opts){
this.appid = opts.appid;
this.token = opts.token;
}
/*
* @param {Object} option
* @param {String} option.type 跳转类型
* navigateTo:保留当前页面,跳转到小程序的详情页面。
* redirectTo:关闭当前页面,跳转到小程序的详情页面。
* reLaunch:关闭当前页面,跳转到小程序的详情页面。 *
* @param {Object} option.query 页面URL参数 {a:11,b:22}
*/
window.bridge.prototype.goDetail = function(option) {
option = option || {}
option.type = option.type || "navigateTo";
let query = formatUrl(option.query || {})
wx.miniProgram.navigateTo({
url: "/pages/home/productDetail/productDetail?"+ query
});
/*
* @param {Object} option
* @param {String} option.type 跳转类型
* navigateTo:保留当前页面,跳转到小程序的详情页面。
* redirectTo:关闭当前页面,跳转到小程序的详情页面。
* reLaunch:关闭当前页面,跳转到小程序的详情页面。 *
* @param {Object} option.query 页面URL参数 {a:11,b:22}
*/
bridge.prototype.goDetail = function(option) {
option = option || {}
option.type = option.type || "navigateTo";
let query = formatUrl(option.query || {})
wx.miniProgram.navigateTo({
url: "/pages/home/productDetail/productDetail?"+ query
});
}
return bridge
}
export default function xsBridge (options){
return window.bridge
}
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