Socket
Socket
Sign inDemoInstall

vconsole

Package Overview
Dependencies
7
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.9.4 to 3.9.5

12

CHANGELOG_CN.md
[English](./CHANGELOG.md) | 简体中文
#### 3.9.5 (2021-11-10)
- `Style(Log)` 支持 `BigInt` 类型并更新 `Symbol` 类型的样式。
- `Refactor(Style)` 在 vConsole 初始化时再懒加载 style 标签(而非 import 后就加载)。
- `Fix(Global)` 使用 `this || self` 作为 `globalObject`,以避免 `self is not defined` 错误。 (issue #441)
- `Fix(Log)` 修复打印 `Symbol` 类型时产生的 `Cannot convert a Symbol value to a string` 错误。
- `Fix(Log)` 修复 commands 命令及其输出结果无法复制的问题。
- `Fix(Network)` 修复解码 URL 参数时产生的 `URIError` 错误。 (issue #470)
- `Fix(Network)` 修复潜在的由 `forEach` 引起的错误。 (issue #471)
- `Chore` 转换 Svelte 代码产物到 ES5 标准,以避免 ES6 引发的构建问题。 (issue #468)
#### 3.9.4 (2021-10-26)

@@ -4,0 +16,0 @@

118

CHANGELOG.md
English | [简体中文](./CHANGELOG_CN.md)
#### 3.9.5 (2021-11-10)
- `Style(Log)` Add support for `BigInt` and update `Symbol` log style.
- `Refactor(Style)` Lazy load style tag when vConsole init.
- `Fix(Global)` Use `this || self` as `globalObject` to prevent `self is not defined` error. (issue #441)
- `Fix(Log)` Fix `Cannot convert a Symbol value to a string` error when logged a `Symbol` value.
- `Fix(Log)` Now commands and output logs can be copied.
- `Fix(Network)` Fix `URIError` when decode URI fail. (issue #470)
- `Fix(Network)` Fix potential `forEach` error. (issue #471)
- `Chore` Transform Svelte output code to ES5. (issue #468)
#### 3.9.4 (2021-10-26)

@@ -34,3 +46,3 @@

- `Fix(Network)` Display formatted key-value list when `POST` a JSON string. (issue #425)
- `style` Wrap LESS math operations. (PR #426 by @ManiaciaChao)
- `Style` Wrap LESS math operations. (PR #426 by @ManiaciaChao)
- `Chore` Fix `yarn serve` error. (issue #424)

@@ -97,4 +109,4 @@

- `Feature(Log)` Add ability to copy a single line of logs. (by @akai)
- `Feature(Plugin)` New third-party plugin [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools). (by @Zippowxk)
- `Feat(Log)` Add ability to copy a single line of logs. (by @akai)
- `Feat(Plugin)` New third-party plugin [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools). (by @Zippowxk)
- `Perf(System)` Rename "System" field to "Client", and add `MacOS` version.

@@ -108,3 +120,3 @@ - `Fix(Log)` Use natural sorting to sort object and array's keys. (issue #372)

- `Feature(Global)` Add `setSwitchPosition(x, y)` method to update the position of switch button, see [Public Properties & Methods](./doc/public_properties_methods.md) for more details.
- `Feat(Global)` Add `setSwitchPosition(x, y)` method to update the position of switch button, see [Public Properties & Methods](./doc/public_properties_methods.md) for more details.
- `Perf(Global)` Add `Symbol` polyfill. (issue #361)

@@ -119,10 +131,10 @@ - `Fix(Global)` Update theme style after `setOption()`.

- `Feature(Global)` Add darkmode theme, see `vConsole.option.theme` in [Public Properties & Methods](./doc/public_properties_methods.md). (PR #307 by @progrape)
- `Feature(Global)` Add safe area to switch button. (issue #353)
- `Feature(Log)` Auto move input cursor to the bracket after autocomplete command. (issue #293)
- `Feature(System)` Add `Location` info to System tab. (issue #343)
- `Feature(Network)` Add `fetch` log in Network tab. (by @weiqian93)
- `Feature(Network)` Add Request Headers to Network tab.
- `Feature(Network)` Use short URL and display parameters in Network tab. (issue #291)
- `Feature(Plugin)` New third-party plugin [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats). (by @smackgg)
- `Feat(Global)` Add darkmode theme, see `vConsole.option.theme` in [Public Properties & Methods](./doc/public_properties_methods.md). (PR #307 by @progrape)
- `Feat(Global)` Add safe area to switch button. (issue #353)
- `Feat(Log)` Auto move input cursor to the bracket after autocomplete command. (issue #293)
- `Feat(System)` Add `Location` info to System tab. (issue #343)
- `Feat(Network)` Add `fetch` log in Network tab. (by @weiqian93)
- `Feat(Network)` Add Request Headers to Network tab.
- `Feat(Network)` Use short URL and display parameters in Network tab. (issue #291)
- `Feat(Plugin)` New third-party plugin [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats). (by @smackgg)
- `Fix(Global)` The position of the switch button will be reset by mistake when clicked.

@@ -141,4 +153,4 @@ - `Fix(Global)` Fix `document.documentElement.offsetHeight|offsetWidth` is unreliable in newer browsers. (PR #314 by @littlee)

- `Feature(Log)` Add `%c` log format to support custom log style, see [Tutorial](./doc/tutorial.md) for more details.
- `Feature(Plugin)` Add `VConsole.VConsoleLogPlugin` (`VConsole.VConsole*` plugins etc.) to `VConsole` class.
- `Feat(Log)` Add `%c` log format to support custom log style, see [Tutorial](./doc/tutorial.md) for more details.
- `Feat(Plugin)` Add `VConsole.VConsoleLogPlugin` (`VConsole.VConsole*` plugins etc.) to `VConsole` class.
- `Fix(Global)` Fix a few minor issues. (#267 by @Molunerfinn, #272 by @domom)

@@ -151,3 +163,3 @@ - `Fix(Storage)` Fix remove cookie fail when it is set path=/ or top domain. (#264 by @qianxinfeng)

- `Feature(Global)` Add TypeScript definition file. (by @jas0ncn)
- `Feat(Global)` Add TypeScript definition file. (by @jas0ncn)
- `Fix(Log)` Avoid scrolling to bottom when away from bottom edge. (by @ele828)

@@ -160,3 +172,3 @@ - `Fix(Global)` Fix switch button position issue. (by @rexschuang)

- `Feature(Log)` Add the ability to collapse the same log.
- `Feat(Log)` Add the ability to collapse the same log.
- `Fix(Log)` Fix issue which formatted log (like `console.log('[foo]', 'bar')`) will not display in Log tab.

@@ -167,4 +179,4 @@

- `Feature` Add console command prompt. (by @65147400)
- `Feature` Add SessionStorage support in Storage tab. (by @hkc452)
- `Feat` Add console command prompt. (by @65147400)
- `Feat` Add SessionStorage support in Storage tab. (by @hkc452)
- `Fix` Fix `JSON.stringify` function which was incorrectly rewritten.

@@ -180,4 +192,4 @@ - `Fix` Fix `logNumber` bug which was not reset when clear logs. (by @liuyuekeng)

- `Feature` Support `console.time()` and `console.timeEnd()`.
- `Feature` Add `disableLogScrolling` (in `vConsole.option`).
- `Feat` Support `console.time()` and `console.timeEnd()`.
- `Feat` Add `disableLogScrolling` (in `vConsole.option`).
- `Fix` Fix `setOption()` error.

@@ -190,5 +202,5 @@ - `Fix` Fix cookies' value wrong display.

- `Feature` Add `vConsole.showSwitch()` and `vConsole.hideSwitch()` methods, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Feature` Add `onReady` and `onClearLog` callback function to `vConsole.option`.
- `Feature` Auto clear logs when `console.clear()` is called.
- `Feat` Add `vConsole.showSwitch()` and `vConsole.hideSwitch()` methods, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Feat` Add `onReady` and `onClearLog` callback function to `vConsole.option`.
- `Feat` Auto clear logs when `console.clear()` is called.
- `Fix` Fix `\r` error when build in Windows.

@@ -202,6 +214,6 @@ - `Fix` Fix `Symbol` error in iOS8 or other old OS.

- `Feature` Require manual init vConsole `var vConsole = new VConsole(option)`.
- `Feature` Add configuaration `vConsole.option`, which can be set when `new VConsole` or `setOption(key, value)`.
- `Feature` Support for custom loading of default built-in plugins by using `defaultPlugins` in the above option.
- `Feature` Add `setOption(key, value)` method.
- `Feat` Require manual init vConsole `var vConsole = new VConsole(option)`.
- `Feat` Add configuaration `vConsole.option`, which can be set when `new VConsole` or `setOption(key, value)`.
- `Feat` Support for custom loading of default built-in plugins by using `defaultPlugins` in the above option.
- `Feat` Add `setOption(key, value)` method.
- `Perf` Support CSP rule `unsafe-eval` and `unsafe-inline`.

@@ -212,3 +224,3 @@ - `Perf` Optimize `font-size` when `initial-scale < 1`.

- `Feature` Support `maxLogNumber` option to limit maximum log number.
- `Feat` Support `maxLogNumber` option to limit maximum log number.
- `Fix` Fix the crash caused by printing large objects.

@@ -219,3 +231,3 @@ - `Perf` Only the logs written as `console.log('[system]', xxx)` will be shown in System tab, so `console.log('[system] xxx')` will be shown in default log tab.

- `Feature` Support `Query String Parameters` and `Form Data`.
- `Feat` Support `Query String Parameters` and `Form Data`.
- `Perf` Auto format JSON response.

@@ -226,6 +238,6 @@ - `Fix` Fix bug that XHR status is always "Pending" when using 3rd HTTP libraries.

- `Feature` Plugins can get vConsole instance by `this.vConsole` on/after `init` event is called.
- `Feature` Add `updateOption` event to detect `vConsole.option` changes.
- `Feature` Add Element tab as a built-in plugin.
- `Feature` Add Storage tab as a built-in plugin.
- `Feat` Plugins can get vConsole instance by `this.vConsole` on/after `init` event is called.
- `Feat` Add `updateOption` event to detect `vConsole.option` changes.
- `Feat` Add Element tab as a built-in plugin.
- `Feat` Add Storage tab as a built-in plugin.

@@ -250,4 +262,4 @@

- `Feature` Add `vConsole.removePlugin()` method, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Feature` Add `remove` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
- `Feat` Add `vConsole.removePlugin()` method, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Feat` Add `remove` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
- `Perf` Disable page scrolling while vConsole is scrolling.

@@ -259,4 +271,4 @@ - `Fix` Fix `window.onerror()` typo.

- `Feature` Add `addTopBar` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
- `Feature` Add log type filter to Log & System tab.
- `Feat` Add `addTopBar` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
- `Feat` Add log type filter to Log & System tab.
- `Perf` Log list will not automatically scroll to bottom while printing new logs if the viewport is not at the end of list.

@@ -276,4 +288,4 @@ - `Perf` Fix UI bugs.

- `Feature` Objects or Arrays can be expended layer by layer.
- `Feature` All object's properties, including private properties, can be enumerable now.
- `Feat` Objects or Arrays can be expended layer by layer.
- `Feat` All object's properties, including private properties, can be enumerable now.
- `Perf` Support `tap` event within vConsole's DOM container to speed up `click` event.

@@ -285,3 +297,3 @@

- `Perf` Add complete performance timing log to System tab.
- `Feature` Add third-party plugin list to README.
- `Feat` Add third-party plugin list to README.

@@ -291,4 +303,4 @@

- `Feature` Add `vConsole.version` property.
- `Feature` Add `xhr._noVConsole` property to `XMLHttpRequest` objects to customize whether a XHR should display in Network tab.
- `Feat` Add `vConsole.version` property.
- `Feat` Add `xhr._noVConsole` property to `XMLHttpRequest` objects to customize whether a XHR should display in Network tab.

@@ -298,4 +310,4 @@

- `Feature` Add `vConsole.tool` & `vConsole.$` helper functions, see [Helper Functions](./doc/helper_functions.md).
- `Feature` Public properties & methods of vConsole are available, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Feat` Add `vConsole.tool` & `vConsole.$` helper functions, see [Helper Functions](./doc/helper_functions.md).
- `Feat` Public properties & methods of vConsole are available, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Fix` Fix issue that `error` in `window.onerror()` may be undefined.

@@ -315,6 +327,6 @@ - `Fix` Fix error that `xhr.status` may be unavailable when `xhr.readyState < 4`.

- `Feature` Rebuild completely, support custom plugin, see [Plugin: Getting Started](./doc/plugin_getting_started.md).
- `Feature` Support execute JS command line in Log tab.
- `Feature` Support circular structure object in Log and System tab.
- `Feature` Support viewing request headers and response in Network tab.
- `Feat` Rebuild completely, support custom plugin, see [Plugin: Getting Started](./doc/plugin_getting_started.md).
- `Feat` Support execute JS command line in Log tab.
- `Feat` Support circular structure object in Log and System tab.
- `Feat` Support viewing request headers and response in Network tab.
- `Perf` Switch button will not be dragged out of screen.

@@ -332,3 +344,3 @@ - `Perf` Auto print User Agent in System tab.

- `Feature` Support Drag and Drop switch button.
- `Feat` Support Drag and Drop switch button.
- `Fix` Fix initialization failure when loaded asynchronously.

@@ -344,4 +356,4 @@

- `Feature` Add network panel.
- `Feature` Deprecate `vConsole.ready()` method.
- `Feat` Add network panel.
- `Feat` Deprecate `vConsole.ready()` method.
- `Perf` Display formatted Object & Array variable.

@@ -354,4 +366,4 @@ - `Perf` Add English README and CHANGELOG.

- `Feature` Support `window.onerror()` to catch exceptions and errors.
- `Feature` Support `[default|system|...]` string to print logs to specific panel.
- `Feat` Support `window.onerror()` to catch exceptions and errors.
- `Feat` Support `[default|system|...]` string to print logs to specific panel.

@@ -358,0 +370,0 @@

@@ -24,2 +24,3 @@ declare module "lib/tool" {

export function isNumber(value: any): boolean;
export function isBigInt(value: any): boolean;
export function isString(value: any): boolean;

@@ -70,3 +71,3 @@ export function isArray(value: any): boolean;

*/
export function getObjAllKeys(obj: any): string[];
export function getObjAllKeys(obj: any): any[];
/**

@@ -219,2 +220,3 @@ * get an object's prototype name

style?: string;
logClass?: string;
}

@@ -230,3 +232,2 @@ interface VConsoleLogView {

class VConsoleLogTab extends VConsolePlugin {
static AddedLogID: any[];
tplTabbox: string;

@@ -419,3 +420,2 @@ allowUnformattedLog: boolean;

declare module "element/element" {
import './style.less';
import VConsolePlugin from "lib/plugin";

@@ -476,3 +476,2 @@ class VConsoleElementsTab extends VConsolePlugin {

import * as tool from "lib/tool";
import './core.less';
import VConsolePlugin from "lib/plugin";

@@ -667,2 +666,3 @@ import VConsoleLogPlugin from "log/log";

export { default as Tab } from './Tab.svelte';
export const TabsContext: {};
}
{
"name": "vconsole",
"version": "3.9.4",
"version": "3.9.5",
"description": "A lightweight, extendable front-end developer tool for mobile web page.",

@@ -14,8 +14,8 @@ "homepage": "https://github.com/Tencent/vConsole",

"scripts": {
"build": "webpack --mode=production",
"build": "webpack --mode=production --progress",
"build:typings": "tsc --build tsconfig.type.json",
"build:dev": "webpack --mode=development",
"watch": "webpack watch --mode=development",
"serve": "webpack serve --config webpack.serve.config",
"prepublish": "npm run build",
"build:typings:TODO": "dts-bundle-generator --no-banner=true -o dist/vconsole.min.d.ts src/vconsole.ts",
"build:dev": "webpack --mode=development --progress",
"watch": "webpack --mode=development --watch --progress",
"serve": "webpack serve --config webpack.serve.config --progress",
"test:pack": "npx npm-packlist"

@@ -45,2 +45,3 @@ },

"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
"@babel/plugin-transform-block-scoping": "^7.16.0",
"@babel/preset-env": "^7.14.1",

@@ -52,2 +53,3 @@ "@babel/preset-typescript": "^7.13.0",

"css-loader": "^5.2.4",
"dts-bundle-generator": "^5.9.0",
"html-loader": "^2.1.2",

@@ -54,0 +56,0 @@ "jsdom": "^16.5.3",

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

![](./example/snapshot/qrcode.png)
![](./doc/snapshot/qrcode.png)
[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html)
![](./example/snapshot/panel_log.jpg) ![](./example/snapshot/panel_network.jpg) ![](./example/snapshot/panel_element.jpg) ![](./example/snapshot/panel_storage.jpg)
![](./doc/snapshot/panel_log.jpg) ![](./doc/snapshot/panel_network.jpg) ![](./doc/snapshot/panel_element.jpg) ![](./doc/snapshot/panel_storage.jpg)

@@ -104,3 +104,3 @@

![](./example/snapshot/qq_group.png)
![](./doc/snapshot/qq_group.png)

@@ -107,0 +107,0 @@

@@ -57,7 +57,7 @@ English | [简体中文](./README_CN.md)

![](./example/snapshot/qrcode.png)
![](./doc/snapshot/qrcode.png)
[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html)
![](./example/snapshot/panel_log.jpg) ![](./example/snapshot/panel_network.jpg) ![](./example/snapshot/panel_element.jpg) ![](./example/snapshot/panel_storage.jpg)
![](./doc/snapshot/panel_log.jpg) ![](./doc/snapshot/panel_network.jpg) ![](./doc/snapshot/panel_element.jpg) ![](./doc/snapshot/panel_storage.jpg)

@@ -98,3 +98,3 @@

![](./example/snapshot/qq_group.png)
![](./doc/snapshot/qq_group.png)

@@ -101,0 +101,0 @@

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

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