Socket
Socket
Sign inDemoInstall

vconsole

Package Overview
Dependencies
3
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.8.0 to 3.8.1

src/log/default.ts

13

CHANGELOG_CN.md
[English](./CHANGELOG.md) | 简体中文
#### 3.8.1 (2021-06-24)
- `Fix(Log)` 不再合并包含 object 或 array 的重复日志,以避免合并结构相同但取值不同的对象。
- `Fix(Log)` 修复日志过滤器(Filter)在点选日志类型 tab 后不生效的问题。
- `Fix(Network)` 修复 url 以 `//` 开头时产生的错误。 (PR #414 by @kooritea)
- `Chore` 移除 babel-loader 的 `exclude: node_modules` 选项以避免第三方库的兼容性问题。 (issue #404, #407)
- `Refactor(Log)` 转换 Log 和 System 面板为 `.ts` 文件。
#### 3.8.0 (2021-06-23)

@@ -15,3 +24,3 @@

- `Feat(Global)` 当初始参数 `theme` 为空时,跟随系统默认主题色。
- `Chore(Storage)` 转换 Storage 面板为 `.ts` 文件。
- `Refactpr(Storage)` 转换 Storage 面板为 `.ts` 文件。
- `Fix(Network)` 使用 `forEach` 而非 `.entries()` 来遍历 `headers` 以避免一些兼容性问题。 (issue #404)

@@ -31,3 +40,3 @@ - `Fix(Network)` 修复 `Content-Type` 为空时导致的报错。

- `Feat(Network)` 新增在 "General" 栏目展示 "Type" (Request Type) 字段,取值包括 `xhr|fetch|ping`。
- `Chore(Global)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。
- `Refactpr(Global)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。
- `Fix(Network)` 修复移除 Network 面板后没有恢复原生 `window.fetch()` 方法的问题。

@@ -34,0 +43,0 @@ - `Fix(Storage)` 修复清除所有 cookie 时无法完全删除非顶级域名下的 cookie 的问题。 (issue #398)

English | [简体中文](./CHANGELOG_CN.md)
#### 3.8.1 (2021-06-24)
- `Fix(Log)` Do not merge repeated logs with object(s) or array(s) into one line to avoid merging objects with the same structure but different values.
- `Fix(Log)` Fix the issue that log filter does not take effect after selecting the log type.
- `Fix(Network)` Fix error when url starts with `//`. (PR #414 by @kooritea)
- `Chore` Remove `exclude: node_modules` option in babel-loader to be compatible with ES5. (issue #404, #407)
- `Refactor(Log)` Convert Log & System panel to `.ts` file.
#### 3.8.0 (2021-06-23)

@@ -4,0 +13,0 @@

2

package.json
{
"name": "vconsole",
"version": "3.8.0",
"version": "3.8.1",
"description": "A lightweight, extendable front-end developer tool for mobile web page.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Tencent/vConsole",

@@ -29,5 +29,5 @@ /*

import VConsolePlugin from '../lib/plugin.ts';
import VConsoleLogPlugin from '../log/log.js';
import VConsoleDefaultPlugin from '../log/default.js';
import VConsoleSystemPlugin from '../log/system.js';
import VConsoleLogPlugin from '../log/log.ts';
import VConsoleDefaultPlugin from '../log/default.ts';
import VConsoleSystemPlugin from '../log/system.ts';
import VConsoleNetworkPlugin from '../network/network.ts';

@@ -34,0 +34,0 @@ import VConsoleElementPlugin from '../element/element.js';

@@ -674,2 +674,6 @@ /*

private getURL(urlString: string = '') {
if (urlString.startsWith('//')) {
const baseUrl = new URL(window.location.href)
urlString = `${baseUrl.protocol}${urlString}`
}
if (urlString.includes('http')) {

@@ -676,0 +680,0 @@ return new URL(urlString);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc