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

xs-request

v1.0.8

Published

向上发送请求统一封装

Downloads

78

Readme

升级说明

   1.0.5
   1.新增请求耗时
    0.0.4
    1. 错误代码 401(token过期) 时, 调整至登录页
    0.0.5
    1. 后台管理被当作第三方平台时,接口 401 弹窗提醒重新登录
    0.0.6
    1. 接口返回的数据对象,不存在code,message时接口处理异常
    0.0.7
    1. 修复接口message不存在时提示不友好
    0.0.8
    1. 兼容 get 请求, 但是去请求参数在 body 里 
    0.0.9 (出错版本)
    1. 处理 Message.error() 导致的逻辑终止问题
    0.0.10 (出错版本)
    1. 版本测试, 无内容改动
    0.0.11 
    1. 版本测试, 删除 package-lock.json 文件
    0.0.12 
    1. 删除原有的iframe中的token失效提醒,改为判断session过期时间跳转到登录
    0.0.13 
    1. 修复delete方法
   0.0.14
   1.非成功响应码,返回response改为返回response.data
   0.0.15
   1. 新版api 的 调用 请求地址 由 项目 key + api地址 改为 服务名 + api 地址 (请注意配套使用 xs-plugins, xs-common-plugins 相对应版本, 以避免造成程序api调用崩溃)
   0.0.16
   1. client.js 发生变化, 旧版api 做兼容
   0.0.17
   1. 移除client.js 发生变化, 旧版api 做兼容, 由外部统一处理好传入
   1.0.0
   1. 插件库版本概念 、【1(大功能更新, 通常不向后兼容).0(小功能更新).0(bug 修复)】
   1.0.2 
   1.优化拦截器错误提示的内容
   1.0.3
   1.下载Excel文档错误返回错误信息