Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "ctu-mlib", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
/** | ||
* 微信相关封装 | ||
*/ | ||
import $ from '../../zepto/zepto' | ||
import '../../zepto/ajax' | ||
const $ = require('../../zepto/zepto') | ||
require('../../zepto/ajax') | ||
const wx = window.wx | ||
const isWX = /MicroMessenger/i.test(navigator.userAgent) | ||
var wx = window.wx | ||
var isWX = /MicroMessenger/i.test(navigator.userAgent) | ||
@@ -13,3 +13,3 @@ /** | ||
*/ | ||
exports.share = function(options) { | ||
var share = function(options) { | ||
if (!isWX || !wx) { | ||
@@ -42,2 +42,6 @@ return | ||
module.exports = { | ||
share: share | ||
} | ||
function mix(to, from) { | ||
@@ -44,0 +48,0 @@ for (var i in from) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100165
2502