npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@vats-front/core-wx

v1.0.3

Published

微信组件库

Downloads

2

Readme

@core-wx

基于微信JS-SDK封装微信接口和企业微信接口 SDK所处理的业务逻辑: 1.动态引入JS,根据process.env.api 自动封装后台接口路径 2.自动完成当前页面是否需要签名和服务器签名 3.签名完成后调用对应方法,返回业务数据, 涉及通过config提供处理结果后的回调函数都会进行封装处理 返回Promise 微信端会自动装载wx-js-sdk 无需单独引入 所有需要通过config传入等待执行后返回结果的方法一律处理成返回Promise方便调用

Tip

4.0 之后的版本不再向下兼容非微服务类接口,请谨慎升级!!!

Usage

yarn add core-wx 

Example

 import {Wx,QyWx} from 'core-wx'
 cont wx = new Wx(true,'1.4.0')
 cont qyWx = new QyWx(true)
 wx.init('000000','wx_mp')
 qyWx.init('000000','oa')

WX API

!!! 仅适用于微信端

| 参数 | 说明 | 类型 | 默认值 | | ----------- | ------------------------------------ | ------------------------- | ------ | | debug |是否开启调试模式 | Bool | false | | version |需要加载的js-sdk版本 | String | 1.6.0 |

初始化方法 init

| 参数 | 说明 | 类型 | 默认值 | | ----------- | ------------------------------------ | ------------------------- | ------ | | tenantId |租户id | String | - | | source |资源编码 | String | - |

QYWX API

!!! 仅适用于企业微信端

| 参数 | 说明 | 类型 | 默认值 | | ----------- | ------------------------------------ | ------------------------- | ------ | | debug |是否开启调试模式 | Bool | false |

初始化方法 init

| 参数 | 说明 | 类型 | 默认值 | | ----------- | ------------------------------------ | ------------------------- | ------ | | tenantId |租户id | String | - | | source |资源编码 | String | - |

REMARK

具体方法参见微信官方文档 除微信自带的方法外 新增getInfo 查看当前的配置 新增oauth 进行登录

LICENSE

说明

企业微信涉及到企业微信自身的注入问题,无法自动加载微信js,请自己配置js引入