Comparing version 3.11.1 to 3.11.2
[English](./CHANGELOG.md) | 简体中文 | ||
## 3.11.2 (2022-01-20) | ||
- `Feat(Storage)` 增加 "Clear" 按钮以批量删除所有 storage。 (issue #499) | ||
- `Fix(Storage)` 修复无法删除 cookies 的问题。 (issue #499) | ||
## 3.11.1 (2022-01-13) | ||
@@ -4,0 +10,0 @@ |
English | [简体中文](./CHANGELOG_CN.md) | ||
## 3.11.2 (2022-01-20) | ||
- `Feat(Storage)` Added "Clear" button to batch delete all storage items. (issue #499) | ||
- `Fix(Storage)` Fix the issue that deleting cookies fails. (issue #499) | ||
## 3.11.1 (2022-01-13) | ||
@@ -4,0 +10,0 @@ |
@@ -691,4 +691,18 @@ declare module "lib/tool" { | ||
} | ||
declare module "storage/cookieStorage" { | ||
import { CookieStorage } from 'cookie-storage'; | ||
import type { CookieOptions } from 'cookie-storage/lib/cookie-options'; | ||
export class VConsoleCookieStorage extends CookieStorage { | ||
/** | ||
* Deep remove a cookie. | ||
*/ | ||
removeItem(key: string, cookieOptions?: CookieOptions): void; | ||
/** | ||
* Deep clear all cookies. | ||
*/ | ||
clear(): void; | ||
} | ||
} | ||
declare module "storage/storage.model" { | ||
import { CookieStorage } from 'cookie-storage'; | ||
import { VConsoleCookieStorage } from "storage/cookieStorage"; | ||
import { VConsoleModel } from "lib/model"; | ||
@@ -700,3 +714,3 @@ interface IStorageItem { | ||
export class VConsoleStorageModel extends VConsoleModel { | ||
protected cookiesStorage: CookieStorage; | ||
protected cookiesStorage: VConsoleCookieStorage; | ||
protected storages: IStorageItem[]; | ||
@@ -703,0 +717,0 @@ /** |
{ | ||
"name": "vconsole", | ||
"version": "3.11.1", | ||
"version": "3.11.2", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
291312
885