Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xfb-sdk

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xfb-sdk - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

50

dist/bundle.js

@@ -221,23 +221,53 @@ (function (global, factory) {

// import jbridge from './modules/jbridge/index'
/**
* 登录
*/
function bridgeToLogin({ webviewUrl, miniUrl }) {
const url = webviewUrl || location.href;
function init(config) {
if (this.isApp) {
jwebview.initJwebview.apply(this);
console.log(platform);
if (platform.isIOS) {
if (window.webkit && window.webkit.messageHandlers) {
window.webkit.messageHandlers.iOSLoginIn.postMessage('');
}
return
}
if (this.isWechat) {
jweixin.initJweixin.apply(this, [config]);
if (platform.isAndroid) {
uni.postMessage({
data: {
action: 'toLogin',
data: {},
},
});
return
}
// console.log(jbridge)
// jbridge.initJbridge.apply(this)
if (platform.isMiniprogram) {
const _url = miniUrl
? `/packageUser/pages/login?redirect=${encodeURIComponent(miniUrl)}`
: `/packageUser/pages/login?webview=${encodeURIComponent(url)}`;
wx.miniProgram.redirectTo({ url: _url });
return
}
// location.href =
// import.meta.env.MODE === 'production'
// ? `https://m.xfb315.com/login?isto=${url}`
// : `https://m.test.xfb315.com/login?isto=${url}`
location.href = `https://m.test.xfb315.com/login?isto=${url}`;
}
var jbridge = /*#__PURE__*/Object.freeze({
__proto__: null,
bridgeToLogin: bridgeToLogin
});
console.log(jbridge);
var main = {
init,
...platform,
...jweixin,
...jwebview,
// ...jbridge,
...jbridge,
};

@@ -244,0 +274,0 @@

2

package.json
{
"name": "xfb-sdk",
"version": "0.0.21",
"version": "0.0.22",
"author": "wangfei",

@@ -5,0 +5,0 @@ "description": "",

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