Skip to content

Commit

Permalink
Merge pull request #535 from Tencent/dev
Browse files Browse the repository at this point in the history
v3.14.6
  • Loading branch information
Maizify authored Apr 14, 2022
2 parents 5b2064d + 71e6499 commit 7e21480
Show file tree
Hide file tree
Showing 8 changed files with 2,562 additions and 3,573 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
English | [简体中文](./CHANGELOG_CN.md)

## 3.14.6 (2022-04-14)

- `Fix(Log)` Fix logs lost tracking when adding a new vConsole after destroying the old one.
- `Fix(Network)` Fix `resp.body` undefined error. (issue #531)
- `Fix(Network)` Fix missing Request Headers when `xhr.setRequestHeader` is overwritten. (issue #533)
- `Chore` Update NPM dependencies.


## 3.14.5 (2022-04-06)

- `Fix(Core)` Fix unexpected error when init vConsole twice in short time. (issue #525)
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
[English](./CHANGELOG.md) | 简体中文

## 3.14.6 (2022-04-14)

- `Fix(Log)` 修复当销毁后再次初始化 vConsole 时失去追踪 logs 的问题。
- `Fix(Network)` 修复 `resp.body` undefined 错误。 (issue #531)
- `Fix(Network)` 修复 `xhr.setRequestHeader` 被覆盖改写时丢失 Request Headers 的问题。 (issue #533)
- `Chore` 更新 NPM 依赖。


## 3.14.5 (2022-04-06)

- `Fix(Core)` 修复极短时间内重复初始化 vConsole 导致的报错。 (issue #525)
Expand Down
16 changes: 10 additions & 6 deletions dev/network.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<link href="./lib/weui.min.css" rel="stylesheet"/>
<link href="./lib/demo.css" rel="stylesheet"/>

<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/zepto/dist/zepto.min.js"></script>
<script src="https://unpkg.com/wavesurfer.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js" async></script>
<script src="https://unpkg.com/zepto/dist/zepto.js" async></script>
<script src="https://unpkg.com/wavesurfer.js" async></script>
<script src="../dist/vconsole.min.js"></script>
</head>
<body ontouchstart>
Expand Down Expand Up @@ -367,7 +367,10 @@
axios({
method,
url: './data/success.json?method=axios&r=' + Math.random(),
headers: { 'content-type': 'application/x-www-form-urlencoded' },
headers: {
'content-type': 'application/x-www-form-urlencoded',
'foo': 'bar',
},
data: {
foo: 'bar'
}
Expand All @@ -388,7 +391,8 @@
url: './data/success.json?method=zepto&r=' + Math.random(),
headers: {
'content-type': 'application/x-www-form-urlencoded',
'custom-auth': 'foobar'
'custom-auth': 'foobar',
'foo': 'bar',
},
data: {
foo: 'bar',
Expand Down Expand Up @@ -430,7 +434,7 @@

function optionsFetch() {
console.info('optionsFetch() Start');
window.fetch('./data/a.json?method=optionsFetch&s=203&t=300', {
window.fetch('./data/success.json?method=optionsFetch&s=203&t=300', {
method: 'OPTIONS',
body: { foo: 'bar', id: Math.random(), type: 'fetch', 'method': 'put', },
}).then((data) => {
Expand Down
Loading

0 comments on commit 7e21480

Please sign in to comment.