@wox-launcher/wox-plugin 0.0.84 → 0.0.85

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.
Files changed (2) hide show
  1. package/package.json +9 -9
  2. package/types/index.d.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wox-launcher/wox-plugin",
3
- "version": "0.0.84",
3
+ "version": "0.0.85",
4
4
  "description": "All nodejs plugin for Wox should use types in this package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,6 +13,13 @@
13
13
  "dist",
14
14
  "types"
15
15
  ],
16
+ "scripts": {
17
+ "build": "pnpm clean && tsc",
18
+ "clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",
19
+ "clean:all": "npm run clean && (rm -r ./node_modules || true)",
20
+ "lint": "eslint --ext .ts --fix src/**/*.ts",
21
+ "pub": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access public"
22
+ },
16
23
  "devDependencies": {
17
24
  "@typescript-eslint/eslint-plugin": "^7.13.1",
18
25
  "@typescript-eslint/parser": "^7.13.1",
@@ -21,12 +28,5 @@
21
28
  "prettier": "3.3.2",
22
29
  "typescript": "^5.4.5"
23
30
  },
24
- "dependencies": {},
25
- "scripts": {
26
- "build": "pnpm clean && tsc",
27
- "clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",
28
- "clean:all": "npm run clean && (rm -r ./node_modules || true)",
29
- "lint": "eslint --ext .ts --fix src/**/*.ts",
30
- "pub": "pnpm build && pnpm version patch && pnpm publish --no-git-checks --access public"
31
- }
31
+ "dependencies": {}
32
32
  }
package/types/index.d.ts CHANGED
@@ -224,7 +224,7 @@ export interface PublicAPI {
224
224
  /**
225
225
  * Get dynamic setting definition
226
226
  */
227
- OnGetDynamicSetting: (ctx: Context, callback: (key: string) => string) => Promise<void>
227
+ OnGetDynamicSetting: (ctx: Context, callback: (key: string) => PluginSettingDefinitionItem) => Promise<void>
228
228
 
229
229
  /**
230
230
  * Register deep link callback