@atomservice/core 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@atomservice/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "atomservice 编排核心:defineService、依赖拓扑、生命周期与 CLI 运行时",
5
5
  "type": "module",
6
6
  "author": "openorson",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/openorson/atomservice.git",
10
- "directory": "packages/core"
10
+ "directory": "framework/core"
11
11
  },
12
12
  "bugs": "https://github.com/openorson/atomservice/issues",
13
- "homepage": "https://github.com/openorson/atomservice/tree/main/packages/core#readme",
13
+ "homepage": "https://github.com/openorson/atomservice/tree/main/framework/core#readme",
14
14
  "keywords": [
15
15
  "atomservice",
16
16
  "self-hosted",
@@ -19,7 +19,7 @@
19
19
  "bun"
20
20
  ],
21
21
  "engines": {
22
- "bun": ">=1.0.0"
22
+ "bun": ">=1.3.14"
23
23
  },
24
24
  "files": [
25
25
  "src"
package/src/core.hooks.ts CHANGED
@@ -73,7 +73,7 @@ export function useShell(): typeof Bun.$ {
73
73
 
74
74
  // 惰性执行:仅在首次 await 时运行一次,throwOnError 由是否调用过 .nothrow() 决定
75
75
  let throwOnError = true
76
- let started: Promise<Bun.ShellOutput> | undefined
76
+ let started: Promise<Bun.$.ShellOutput> | undefined
77
77
  const exec = () => {
78
78
  if (started) return started
79
79
  started = (async () => {
@@ -105,7 +105,7 @@ export function useShell(): typeof Bun.$ {
105
105
  return handle
106
106
  },
107
107
  // biome-ignore lint/suspicious/noThenProperty: 实现 thenable 以在 verbose 模式拦截并打印 shell 输出
108
- then: (onFulfilled?: (r: Bun.ShellOutput) => unknown, onRejected?: (e: unknown) => unknown) =>
108
+ then: (onFulfilled?: (r: Bun.$.ShellOutput) => unknown, onRejected?: (e: unknown) => unknown) =>
109
109
  exec().then(onFulfilled, onRejected),
110
110
  catch: (onRejected?: (e: unknown) => unknown) => exec().catch(onRejected),
111
111
  finally: (onFinally?: () => void) => exec().finally(onFinally),