Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlDuFromChina committed Nov 9, 2022
1 parent 979d33d commit d591ac4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 141 deletions.
137 changes: 0 additions & 137 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,137 +0,0 @@
## 2.0.0

项目使用`Typescript`重写

## 1.0.22

### Bug Fixes

- trimEnd 修改为 trimLast,解决命名冲突

## 1.0.21

### Bug Fixes

- 修复了 401 和 403 返回错误信息

## 1.0.20

### Features

- 去除了`getBaseUrl``getUser`

## 1.0.17

### Features

- `String`原型链强化了`trimEnd`方法,可以传入字符

## 1.0.16

### Bug Fixes

- 修复了`socket`文件对`common`引用错误

## 1.0.15

### Features

- `http`扩展了`put``delete`方法
- `Function`原型链添加`method`方法,优化原型扩展语法

## 1.0.14

### Features

- 添加了`Socket`
- 添加了数组扩展函数`chunk`

## 1.0.13

### Bug Fixes

- 修复了`http`引用报错

## 1.0.12

### Bug Fixes

- 修复了`http`引用报错

## 1.0.11

### Features

- 添加了`http`,提供`get``post`请求方法
- 添加了判断类型函数`isNil``isNumber``isObject``isFunction`

## 1.0.10

### Features

- 添加了`AES`加密

## 1.0.9

### Features

- 修改了导出结构

## 1.0.8

### Features

- 添加了`BASE64`编码、解码

## 1.0.7

### Features

- 移除了`axios`封装

## 1.0.6

### Features

- 添加了`JSEncrypt`非对称加密

## 1.0.5

### Features

- 完善了文档

## 1.0.4

### Features

- 优化了`http`的错误码`400`错误提示信息

## 1.0.3

### Bug Fixes

- 优化了报错提示
- 移除了冗余代码

## 1.0.2

### Bug Fixes

- 优化了`http`请求报错提示信息

## 1.0.1

### Features

- 添加了`current-device`设备判断函数

## 1.0.0

### Features

- `uuid`生成
- `http`封装函数
- `md5``aes`加密
- `isNull``isNullOrEmpty`判空函数
- `String`扩展函数`toText`
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ js-tuils 是一个 JavaScript 库,极大简化了 JavaScript 编程
安装:

```shell
yarn add @carldu/web-core # 使用 yarn 安装
npm install @carldu/web-core --save # 使用 npm 安装
yarn add @sixpence/js-utils # 使用 yarn 安装
npm install @sixpence/js-utils --save # 使用 npm 安装
```

使用:

```javascript
import { common, http } from '@sixpence/web-core';
import { common, http } from '@sixpence/js-utils';

window.sp = Object.assign({}, common, http);

Expand All @@ -40,7 +40,7 @@ sp.get('...'); // Promise
sp.post('...'); // Promise

// uuid
import { encrypt } from 'web-core';
import { encrypt } from '@sixpence/js-utils';

encrypt.uuid.generate(); // f908ce33-6387-4b81-897c-17468d3f6320
encrypt.uuid.isSame(
Expand Down

0 comments on commit d591ac4

Please sign in to comment.