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.3 to 3.9.4

5

CHANGELOG_CN.md
[English](./CHANGELOG.md) | 简体中文
#### 3.9.4 (2021-10-26)
- `Refactor(Global)` 为 `VConsole` 类的方法参数添加 Typescript 声明.
#### 3.9.3 (2021-10-22)

@@ -4,0 +9,0 @@

English | [简体中文](./CHANGELOG_CN.md)
#### 3.9.4 (2021-10-26)
- `Refactor(Global)` Add Typescript declaration to `VConsole` class.
#### 3.9.3 (2021-10-22)

@@ -4,0 +9,0 @@

50

dist/vconsole.min.d.ts

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

*/
trigger(eventName: string, data: any): this;
trigger(eventName: string, data?: any): this;
protected getUniqueID(prefix?: string): string;

@@ -481,8 +481,8 @@ }

interface VConsoleOptions {
defaultPlugins?: string[];
defaultPlugins?: ('system' | 'network' | 'element' | 'storage')[];
maxLogNumber?: number;
theme?: '' | 'dark' | 'light';
disableLogScrolling?: boolean;
onReady?: Function;
onClearLog?: Function;
onReady?: () => void;
onClearLog?: () => void;
}

@@ -494,6 +494,6 @@ class VConsole {

option: VConsoleOptions;
activedTab: string;
tabList: any[];
pluginList: {};
switchPos: {
protected activedTab: string;
protected tabList: any[];
protected pluginList: {};
protected switchPos: {
hasMoved: boolean;

@@ -529,7 +529,8 @@ x: number;

static VConsoleStoragePlugin: typeof VConsoleStoragePlugin;
constructor(opt: any);
constructor(opt?: VConsoleOptions);
/**
* add built-in plugins
* @private
*/
_addBuiltInPlugins(): void;
private _addBuiltInPlugins;
/**

@@ -539,3 +540,3 @@ * render panel DOM

*/
_render(): void;
private _render;
/**

@@ -545,4 +546,4 @@ * Update theme

*/
_updateTheme(): void;
setSwitchPosition(switchX: any, switchY: any): void;
private _updateTheme;
setSwitchPosition(switchX: number, switchY: number): void;
/**

@@ -552,3 +553,3 @@ * Get an safe [x, y] position for switch button

*/
_getSwitchButtonSafeAreaXY($switch: any, x: any, y: any): any[];
private _getSwitchButtonSafeAreaXY;
/**

@@ -558,3 +559,3 @@ * simulate tap event by touchstart & touchend

*/
_mockTap(): void;
private _mockTap;
/**

@@ -564,3 +565,3 @@ * bind DOM events

*/
_bindEvent(): void;
private _bindEvent;
/**

@@ -570,6 +571,5 @@ * auto run after initialization

*/
_autoRun(): void;
private _autoRun;
/**
* trigger a vConsole.option event
* @protect
*/

@@ -581,3 +581,3 @@ triggerEvent(eventName: string, param?: any): void;

*/
_initPlugin(plugin: any): void;
private _initPlugin;
/**

@@ -587,3 +587,3 @@ * trigger an event for each plugin

*/
_triggerPluginsEvent(eventName: any): void;
private _triggerPluginsEvent;
/**

@@ -593,3 +593,3 @@ * trigger an event by plugin's name

*/
_triggerPluginEvent(pluginName: any, eventName: any): void;
private _triggerPluginEvent;
/**

@@ -601,3 +601,3 @@ * add a new plugin

*/
addPlugin(plugin: any): boolean;
addPlugin(plugin: VConsolePlugin): boolean;
/**

@@ -609,3 +609,3 @@ * remove a plugin

*/
removePlugin(pluginID: any): boolean;
removePlugin(pluginID: string): boolean;
/**

@@ -634,3 +634,3 @@ * show console panel

*/
showTab(tabID: any): void;
showTab(tabID: string): void;
/**

@@ -640,3 +640,3 @@ * update option(s)

*/
setOption(keyOrObj: any, value: any): void;
setOption(keyOrObj: any, value?: any): void;
/**

@@ -643,0 +643,0 @@ * uninstall vConsole

{
"name": "vconsole",
"version": "3.9.3",
"version": "3.9.4",
"description": "A lightweight, extendable front-end developer tool for mobile web page.",

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

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