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.25 to 0.0.26

47

dist/bundle.js

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

const ShareUrl = 'https://img2.xfb315.com/cdn/share.png';
const ShareIconUrl = 'https://img2.xfb315.com/2023-05/logo.jpg';
const ShareIconUrl$1 = 'https://img2.xfb315.com/2023-05/logo.jpg';

@@ -122,4 +122,4 @@ /**

desc: '消费保是中国电子商会旗下的消费服务保障平台。通过免费处理投诉建立消费者与企业之间的信任。是一家依托互联网大数据技术,以消费服务分析为基础,构建从选购、售后到回收一站式消费保障服务,通过消费服务管家、企业客服SaaS系统、消费舆情监测三大系统,服务于政府、企业、消费者的平台型企业。 ',
link: 'https://www.xfb315.com',
imgUrl: ShareIconUrl,
link: 'https://m.xfb315.com',
imgUrl: ShareIconUrl$1,
autoShow: false,

@@ -223,2 +223,4 @@ ...(config || {}),

const ShareIconUrl = 'https://img2.xfb315.com/2023-05/logo.jpg';
/**

@@ -336,11 +338,20 @@ * 登录

*/
function bridgeToShare(data) {
function bridgeToShare(config) {
const { title, desc, link, imgUrl, type, autoShow } = {
title: '消费保 - 您身边的消费服务管家',
desc: '消费保是中国电子商会旗下的消费服务保障平台。通过免费处理投诉建立消费者与企业之间的信任。是一家依托互联网大数据技术,以消费服务分析为基础,构建从选购、售后到回收一站式消费保障服务,通过消费服务管家、企业客服SaaS系统、消费舆情监测三大系统,服务于政府、企业、消费者的平台型企业。 ',
link: 'https://m.xfb315.com',
imgUrl: ShareIconUrl,
autoShow: false,
...(config || {}),
};
if (platform.isIOS) {
if (window.webkit && window.webkit.messageHandlers) {
window.webkit.messageHandlers.iOSShareWeChatFriendOrCircle.postMessage({
title: data.title,
content: data.desc,
link: data.link,
image: data.imgUrl,
type: data.type,
title,
content: desc,
link,
image: imgUrl,
type,
});

@@ -356,7 +367,7 @@ }

data: {
title: data.title,
content: data.desc,
link: data.link,
image: data.imgUrl,
type: data.type,
title,
content: desc,
link,
image: imgUrl,
type,
},

@@ -368,3 +379,9 @@ },

if (platform.isWechat) {
console.log(this);
this.updateAppMessageShareData({
title,
desc,
link,
imgUrl,
autoShow,
});
}

@@ -371,0 +388,0 @@ }

{
"name": "xfb-sdk",
"version": "0.0.25",
"version": "0.0.26",
"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