From 27fdff03d9636888b91085f5d04b7c909398c51c Mon Sep 17 00:00:00 2001 From: Huakun Shen Date: Fri, 7 Feb 2025 02:45:57 -0500 Subject: [PATCH] feat: expose helper API in headless and UI modules - Add helper API to headless module exports - Update UI custom module to include helper API - Bump package version to 0.1.3 --- packages/api/jsr.json | 2 +- packages/api/package.json | 2 +- packages/api/src/headless/index.ts | 1 + packages/api/src/ui/custom/index.ts | 3 ++- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/api/jsr.json b/packages/api/jsr.json index 05ca39f..1248e13 100644 --- a/packages/api/jsr.json +++ b/packages/api/jsr.json @@ -1,7 +1,7 @@ { "$schema": "https://jsr.io/schema/config-file.v1.json", "name": "@kunkun/api", - "version": "0.1.1", + "version": "0.1.3", "license": "MIT", "exports": { ".": "./src/index.ts", diff --git a/packages/api/package.json b/packages/api/package.json index 2292979..a1f8279 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -1,6 +1,6 @@ { "name": "@kksh/api", - "version": "0.1.2", + "version": "0.1.3", "type": "module", "repository": { "type": "git", diff --git a/packages/api/src/headless/index.ts b/packages/api/src/headless/index.ts index 9875eca..962531e 100644 --- a/packages/api/src/headless/index.ts +++ b/packages/api/src/headless/index.ts @@ -110,6 +110,7 @@ export const { notification, sysInfo, network, + helper, system, open, utils, diff --git a/packages/api/src/ui/custom/index.ts b/packages/api/src/ui/custom/index.ts index 82ddca3..b08fb95 100644 --- a/packages/api/src/ui/custom/index.ts +++ b/packages/api/src/ui/custom/index.ts @@ -101,6 +101,7 @@ export const { toast, utils, open, - app + app, + helper } = api export { Child, RPCChannel, Command, DenoCommand } from "../../api/shell"