Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-request

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-request - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

17

CHANGELOG.md

@@ -5,4 +5,21 @@ # Changelog

### [1.0.4](https://github.com/attojs/vue-request/compare/v1.0.3...v1.0.4) (2021-03-08)
### Bug Fixes
* `useLoadMore` types ([0e673bf](https://github.com/attojs/vue-request/commit/0e673bffb683164bfad6c58b4aa58c7d7734428e))
### [1.0.3](https://github.com/attojs/vue-request/compare/v1.0.0-beta.11...v1.0.3) (2021-03-06)
### Bug Fixes
- concurrent request should have independent events ([7511720](https://github.com/attojs/vue-request/commit/7511720223ed9e620339e4d61be46426464feb10))
### Features
- `usePagination` and `useLoadMore` support global config ([8cceb1e](https://github.com/attojs/vue-request/commit/8cceb1e44aae6943d9303ecc38a4d7f2e582498e))
- **usePagination:** add `reload` function to reset paging info ([def45e3](https://github.com/attojs/vue-request/commit/def45e37998e2951cfa78600a58595c2f85969d4))
- **useRequest:** add `reload` function to clear the `queries` list ([b64216b](https://github.com/attojs/vue-request/commit/b64216bc264e775f214c1c574ffb8df948521c53))
## [1.0.0-beta.11](https://github.com/attojs/vue-request/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2021-03-03)

@@ -9,0 +26,0 @@

@@ -5,4 +5,21 @@ # Changelog

### [1.0.4](https://github.com/attojs/vue-request/compare/v1.0.3...v1.0.4) (2021-03-08)
### Bug Fixes
* `useLoadMore` types ([0e673bf](https://github.com/attojs/vue-request/commit/0e673bffb683164bfad6c58b4aa58c7d7734428e))
### [1.0.3](https://github.com/attojs/vue-request/compare/v1.0.0-beta.11...v1.0.3) (2021-03-06)
### Bug Fixes
- 并发请求应该有单独的事件监听 ([7511720](https://github.com/attojs/vue-request/commit/7511720223ed9e620339e4d61be46426464feb10))
### Features
- `usePagination` 和 `useLoadMore` 支持全局配置 ([8cceb1e](https://github.com/attojs/vue-request/commit/8cceb1e44aae6943d9303ecc38a4d7f2e582498e))
- **usePagination:** 添加 `reload` 方法用来重置分页信息 ([def45e3](https://github.com/attojs/vue-request/commit/def45e37998e2951cfa78600a58595c2f85969d4))
- **useRequest:** 添加 `reload` 方法用来清空 `queries` 列表 ([b64216b](https://github.com/attojs/vue-request/commit/b64216bc264e775f214c1c574ffb8df948521c53))
## [1.0.0-beta.11](https://github.com/attojs/vue-request/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2021-03-03)

@@ -9,0 +26,0 @@

2

dist/types/core/config.d.ts

@@ -9,3 +9,3 @@ import { LoadMoreExtendsOption } from 'src/useLoadMore';

export declare const clearGlobalOptions: () => void;
export interface GlobalOptions extends Partial<PaginationExtendsOption>, Partial<Omit<LoadMoreExtendsOption<any>, 'isNoMore'>> {
export interface GlobalOptions extends PaginationExtendsOption, LoadMoreExtendsOption {
loadingDelay?: number;

@@ -12,0 +12,0 @@ pollingInterval?: number;

@@ -12,6 +12,8 @@ import { Ref } from 'vue';

}
export interface LoadMoreExtendsOption<R> {
isNoMore: (data: R) => boolean;
export declare type LoadMoreExtendsOption = {
listKey?: string;
}
};
export declare type LoadMoreGenericExtendsOption<R> = {
isNoMore?: (data: R) => boolean;
};
export declare type LoadMoreService<R, P extends unknown[], LR> = ((r: {

@@ -24,4 +26,4 @@ data: R;

}, ...args: P) => ServiceParams);
export declare type LoadMoreFormatOptions<R, P extends unknown[], FR> = Omit<FormatOptions<R, P, FR>, 'queryKey'> & LoadMoreExtendsOption<R>;
export declare type LoadMoreBaseOptions<R, P extends unknown[]> = Omit<BaseOptions<R, P>, 'queryKey'> & LoadMoreExtendsOption<R>;
export declare type LoadMoreFormatOptions<R, P extends unknown[], FR> = Omit<FormatOptions<R, P, FR>, 'queryKey'> & LoadMoreGenericExtendsOption<R> & LoadMoreExtendsOption;
export declare type LoadMoreBaseOptions<R, P extends unknown[]> = Omit<BaseOptions<R, P>, 'queryKey'> & LoadMoreGenericExtendsOption<R> & LoadMoreExtendsOption;
export declare type LoadMoreMixinOptions<R, P extends unknown[], FR> = LoadMoreBaseOptions<R, P> | LoadMoreFormatOptions<R, P, FR>;

@@ -28,0 +30,0 @@ declare function useLoadMore<R, P extends unknown[] = any, LR extends unknown[] = any[]>(service: LoadMoreService<R, P, LR>): LoadMoreResult<R, P, LR>;

{
"name": "vue-request",
"version": "1.0.3",
"version": "1.0.4",
"description": "A request library for Vue 3",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -20,6 +20,6 @@ [English](./README.md) | 简体中文

<a href="https://www.npmjs.com/package/vue-request">
<img src="https://img.shields.io/bundlephobia/min/vue-request" alt="Size" />
<img src="https://img.shields.io/bundlephobia/minzip/vue-request" alt="Size" />
</a>
<a href="https://www.npmjs.com/package/vue-request">
<img src="https://img.shields.io/npm/v/vue-request/beta" alt="Version" />
<img src="https://img.shields.io/npm/v/vue-request" alt="Version" />
</a>

@@ -32,6 +32,7 @@ <a href="https://www.npmjs.com/package/vue-request">

</a>
<a href="https://github.com/AttoJS/vue-request/stargazers">
<img src="https://img.shields.io/github/stars/attojs/vue-request" alt="Star" />
</a>
</div>
# 当前状态: Beta
## 特性

@@ -57,6 +58,6 @@

```bash
npm install vue-request@beta
npm install vue-request
# or with yarn
yarn add vue-request@beta
yarn add vue-request
```

@@ -67,3 +68,3 @@

```html
<script src="https://unpkg.com/vue-request@beta"></script>
<script src="https://unpkg.com/vue-request"></script>
```

@@ -93,3 +94,2 @@

- [x] 加载更多
- [ ] 支持 Vue 2

@@ -96,0 +96,0 @@ ## 致谢

@@ -20,6 +20,6 @@ English | [简体中文](README-zh_CN.md)

<a href="https://www.npmjs.com/package/vue-request">
<img src="https://img.shields.io/bundlephobia/min/vue-request" alt="Size" />
<img src="https://img.shields.io/bundlephobia/minzip/vue-request" alt="Size" />
</a>
<a href="https://www.npmjs.com/package/vue-request">
<img src="https://img.shields.io/npm/v/vue-request/beta" alt="Version" />
<img src="https://img.shields.io/npm/v/vue-request" alt="Version" />
</a>

@@ -32,6 +32,7 @@ <a href="https://www.npmjs.com/package/vue-request">

</a>
<a href="https://github.com/AttoJS/vue-request/stargazers">
<img src="https://img.shields.io/github/stars/attojs/vue-request" alt="Star" />
</a>
</div>
# Status: Beta
## Features

@@ -57,6 +58,6 @@

```bash
npm install vue-request@beta
npm install vue-request
# or with yarn
yarn add vue-request@beta
yarn add vue-request
```

@@ -67,3 +68,3 @@

```html
<script src="https://unpkg.com/vue-request@beta"></script>
<script src="https://unpkg.com/vue-request"></script>
```

@@ -93,3 +94,2 @@

- [x] Load More
- [ ] Support Vue 2

@@ -96,0 +96,0 @@ ## Thanks

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc