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

plugin-line

v1.1.15

Published

ec-plugin-line

Downloads

30

Readme

更新记录

1.7.0

  1. 发送验证码短信时,模板 id 由参数传入
  2. paasService 增加发送短信的方法
  3. SetEx、BaseService 参数验证机制升级

1.7.1

  1. 修正 LambdaQuery、LambdaQueryMongo 的验证代码
  2. LambdaQuery 增加查询单条记录
  3. BaseService 的 unique 查询系列方法增加自定义错误提示的功能

1.7.2

  1. 将 baseService 里的查询方法更语义化 如:

    | 旧 | 新 | | -------------------------- | ----------------------------------- | | querySingelColumnBySql | querySingelRowSingelColumnBySql | | querySingelColumnBySqlId | querySingelRowSingelColumnBySqlId |

1.7.3

  1. 通用 query 语句内置变量支持多级取值,如workRole.comtype

1.7.4

  1. sql 标签中 betweenTag 改 between

1.8.8

  1. 发送 socket 消息时,通道错误的问题

1.9.0

  1. 增加 alinode 插件

1.10.7

  1. 支持 nuxt 注解渲染

服务器返回数据时,热重启可能会丢失数据,刷新即可

1.14.3

  1. 如果不指定调度任务的执行锁,那么执行锁默认使用调度任务的文件名
  2. 调度任务执行锁支持放在 redisother
  3. BaseServiceupdataBatchwhere 可包含 data key
  4. BaseServicepageQuery 设置 limitSelf = true 查询时,也会返回页码了
  5. BaseServiceLambdaQuery增加方法updateColumn,可更新指定列
  6. SetEx增加reset方法,可选择性重置 set 对象
  7. BaseService,BaseMongoService增加一套方法Loose,如insertTemplateLoose仅会忽略null\undefinded,空字符串还是会插入的
  8. app下支持sql-fn目录,放入.mu文件后,可以在任意 sql 中使用,例如 {{>limit}}

1.14.4

  1. 调度任务执行锁优先使用this.key

1.14.7

  1. 升级依赖

1.15.0

  1. 将 redis 改为非必须配置,但仅限于开发模式

1.16.0

  1. 增加 config.cacheIO、config.sessiong.devidIO,表示缓存、devid 存放地址

1.17.0

  1. now.json 支持 按分、小时、天、周、月、年加减时间,并支持时间格式化, 默认 YYYY-MM-DD HH:mm:ss
  2. today.json 支持 按分、小时、天、周、月、年加减时间,并支持时间格式化, 默认 YYYY-MM-DD

1.17.1

  1. app 增加扩展方法:dataConfig, 类似于前端的 filter

1.17.5

  1. 增加小程序服务端支持

1.18.0

  1. 增加路由请求防重复提交锁

1.19.0

  1. 支持同时配置多个小程序
  2. 增加企业微信支持
  3. 修复小程序 token 很快就过期的问题

1.20.0

  1. 优化了多小程序、多企业微信应用的配置

1.20.2

  1. 企业微信发送消息 bug 修复
  2. 增加微信小程序解密函数
  3. 增加通用 MD5 加密函数

1.22.0

  1. 项目启动时,读取 app/sub-syncapp/sub-async 目录,订阅异步、同步消息.目录中文件名就是订阅的消息名称,每个文件导出格式:
import {Context} from 'egg-bag';
export default function(this: Context){
  this.service.xxx;
}

异步消息发送:

app.emitSyncRandom(event, ...args): 随机找一个线程发送 app.emitSyncAll(event, ...args): 发送所有线程 app.emit(event, ...args): 发送给自己

同步消息发送:

app 中发送时,this 指向的 context 是一个虚拟的上下文,不包含用户会话

ctx 中发送时,this 指向的 context 会沿用当前上下文

app.emitASync(event, ...data)

ctx.emitASync(event, ...data)

1.23.0

增加微信支付

调用方式:

app.getWxPay().xxx

  1. 回调代码自动加锁
  2. 所有金额不需要单位为分,按元即可

支付回调代码写在:sub-async/${ appCode }-pay-hook.ts 参数: WxPayHook, 下单时传入的 dataCache 例:

import {Context, WxPayHook} from 'egg-bag';
import {MdOrderAdd} from '../enhance/MdOrderEnhance';
export default function (this: Context, order: WxPayHook, cache: MdOrderAdd) {
  this.logger.error(order, cache);
}

退款回调代码写在:sub-async/${ appCode }-ref-hook.ts 参数: WxRefHook

例:

import {Context, WxRefHook} from 'egg-bag';
export default function (this: Context, order: WxRefHook) {
  this.logger.error(order);
}

1.23.16

  1. 修复一处打印日志错误