browser-extension-utils 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,6 +19,4 @@ Copyright (c) 2023 [Pipecraft](https://www.pipecraft.net). Licensed under the [M
19
19
  ## >\_
20
20
 
21
21
  [![Pipecraft](https://img.shields.io/badge/site-pipecraft-brightgreen)](https://www.pipecraft.net)
22
- [![UTags](https://img.shields.io/badge/site-UTags-brightgreen)](https://utags.pipecraft.net)
23
- [![DTO](https://img.shields.io/badge/site-DTO-brightgreen)](https://dto.pipecraft.net)
24
- [![BestXTools](https://img.shields.io/badge/site-bestxtools-brightgreen)](https://www.bestxtools.com)
22
+ [![UTags](https://img.shields.io/badge/site-UTags-brightgreen)](https://utags.link)
package/lib/index.d.ts CHANGED
@@ -143,7 +143,7 @@ export function throttle(func: Function, interval: number): Function
143
143
 
144
144
  export type MenuCallback = (event?: MouseEvent | KeyboardEvent) => void
145
145
  export type RegisterMenuCommandOptions = {
146
- id?: string
146
+ id?: string | number
147
147
  title?: string
148
148
  autoClose?: boolean
149
149
  // O - Tampermonkey
@@ -154,7 +154,7 @@ export function registerMenuCommand(
154
154
  name: string,
155
155
  callback: MenuCallback,
156
156
  options?: RegisterMenuCommandOptions
157
- ): string | undefined
157
+ ): Promise<string | number | undefined>
158
158
 
159
159
  export function extendHistoryApi(): void
160
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "browser-extension-utils",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Utilities for developing browser extensions and userscripts",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",