# @gem-mine/request

> - temp changelog - 将代码拆分，以提高可读性 - 添加众多测试用例，同时保留 1.x 用例 - 限流时，shouldLimit 切面仍然执行，以便于灵活开关 - before 返回 false 时，内部返回 Promise.reject() - 添加 interceptors 切面 - request 函数 重构为 Request 类，并增加 instance 实例属性 - Action 构造器中无意义的 Object.assign 处理 - 简化 Req

Latest version **2.0.2** (published 2021-07-29) · 0 weekly downloads

## Install

```sh
npm install @gem-mine/request
pnpm add @gem-mine/request
yarn add @gem-mine/request
bun add @gem-mine/request
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.2 |
| Published | 2021-07-29 |
| First published | 2019-03-14 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 177.8 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | caolvchong, wengzp, guoyh, mraiguo, amazebird, githoniel, janya, gylllll |

## Links

- npm: https://www.npmjs.com/package/@gem-mine/request
- npm.io page: https://npm.io/package/@gem-mine/request

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.21.1

## Recent versions

- 2.0.2 (latest) — 2021-07-29
- 2.0.3-beta.0 (beta) — 2021-08-23
- 1.3.2-beta.1 (1x) — 2021-04-21
- 2.1.0-alpha.0 (alpha) — 2020-12-30
- 2.0.1 — 2021-07-02
- 2.0.0-beta.4 — 2021-06-25
- 1.3.3 — 2021-06-01
- 2.0.0-beta.3 — 2021-05-24
- 2.0.0-beta.2 — 2021-05-24
- 1.3.3-beta.0 — 2021-04-26
- 1.3.2 — 2021-04-23
- 2.0.0 — 2020-12-14
- 2.0.0-beta.1 — 2020-11-27
- 2.0.0-beta.0 — 2020-11-26
- 1.3.2-beta.0 — 2020-11-09
- … 21 more at https://npm.io/package/@gem-mine/request/versions

## README

- temp changelog
  - 将代码拆分，以提高可读性
  - 添加众多测试用例，同时保留 1.x 用例
  - 限流时，shouldLimit 切面仍然执行，以便于灵活开关
  - before 返回 false 时，内部返回 Promise.reject()
  - 添加 interceptors 切面
  - request 函数 重构为 Request 类，并增加 instance 实例属性
  - Action 构造器中无意义的 Object.assign 处理
  - 简化 Request 中原型方法写法（get/post/put...），改用为实例方法，并防止 this 被变更带来的错误（1.x 的测试用例中会改变 this）

---
_Source: https://npm.io/package/@gem-mine/request · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
