Socket
Socket
Sign inDemoInstall

vconsole

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vconsole - npm Package Compare versions

Comparing version 3.2.1 to 3.2.2

4

CHANGELOG_CN.md
[English](./CHANGELOG.md) | 简体中文
#### V3.2.1 (2019-01-16)
#### V3.2.2 (2019-01-17)
- 【特性】新增控制台输入提示。 (by @65147400)
- 【特性】支持 SessionStorage。 (by @hkc452)
- 【修复】修复 `JSON.stringify` 函数被错误地改写的问题。

@@ -10,2 +11,3 @@ - 【修复】修复清空日志时没有重置 `logNumber` 的问题。 (by @liuyuekeng)

- 【修复】修复 Storage 面板 decode 内容时可能会导致崩溃的问题。 (by @wolfsilver)
- 【修复】修复 CSP 签名获取失败问题。 (by @scotthuang)
- 【优化】增加底部安全区域,适配 iPhone X 等全面屏。 (by @dingyi1993)

@@ -12,0 +14,0 @@

English | [简体中文](./CHANGELOG_CN.md)
#### V3.2.1 (2019-01-16)
#### V3.2.2 (2019-01-17)
- [FEATURE] Add console command prompt. (by @65147400)
- [FEATURE] Add SessionStorage support in Storage tab. (by @hkc452)
- [FIX] Fix `JSON.stringify` function which was incorrectly rewritten.

@@ -10,2 +11,3 @@ - [FIX] Fix `logNumber` bug which was not reset when clear logs. (by @liuyuekeng)

- [FIX] Fix possible crash when decode content in Storage tab. (by @wolfsilver)
- [FIX] Fix CSP buy cause by `nonce` attribute. (by @scotthuang)
- [IMPROVE] Add bottom safe area to adapt to full screen such as iPhone X. (by @dingyi1993)

@@ -12,0 +14,0 @@

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

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

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

- 查看页面 element 结构
- 查看 Cookies 和 localStorage
- 查看 Cookies、localStorage 和 SessionStorage
- 手动执行 JS 命令行

@@ -18,0 +18,0 @@ - 自定义插件

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

- View document elements
- View Cookies and localStorages
- View Cookies, LocalStorage and SessionStorage
- Execute JS command manually

@@ -18,0 +18,0 @@ - Custom plugin

@@ -32,3 +32,4 @@ /*

'cookies': 'Cookies',
'localstorage': 'LocalStorage'
'localstorage': 'LocalStorage',
'sessionstorage': 'SessionStorage'
}

@@ -43,3 +44,3 @@ }

let that = this;
let types = ['Cookies', 'LocalStorage'];
let types = ['Cookies', 'LocalStorage', 'SessionStorage'];
let btnList = [];

@@ -111,2 +112,5 @@ for (let i = 0; i < types.length; i++) {

break;
case 'sessionstorage':
this.clearSessionStorageList();
break;
default:

@@ -128,2 +132,5 @@ return false;

break;
case 'sessionstorage':
list = this.getSessionStorageList();
break;
default:

@@ -192,2 +199,23 @@ return false;

getSessionStorageList() {
if (!window.sessionStorage) {
return [];
}
try {
let list = []
for (var i = 0; i < sessionStorage.length; i++) {
let name = sessionStorage.key(i),
value = sessionStorage.getItem(name);
list.push({
name: name,
value: value
});
}
return list;
} catch (e) {
return [];
}
}
clearCookieList() {

@@ -215,2 +243,12 @@ if (!document.cookie || !navigator.cookieEnabled) {

}
clearSessionStorageList() {
if (!!window.sessionStorage) {
try {
sessionStorage.clear();
this.renderStorage();
} catch (e) {
alert('sessionStorage.clear() fail.');
}
}
}

@@ -217,0 +255,0 @@ } // END Class

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc