@atomservice/functions-sdk 0.1.15 → 0.1.17

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomservice/functions-sdk",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "函数作者 SDK:定义器(defineFunction 等)、event 类型推导、schema 校验、结构化日志、内置 HTTP 运行时",
5
5
  "type": "module",
6
6
  "author": "openorson",
@@ -160,9 +160,10 @@ export function serve<T extends FunctionRegistry>(
160
160
  queryParams[k] = v
161
161
  })
162
162
  const bodyParams = await readBody(request)
163
- const event = typeof bodyParams === "object" && bodyParams !== null
164
- ? { ...queryParams, ...(bodyParams as Record<string, unknown>) }
165
- : queryParams
163
+ const event =
164
+ typeof bodyParams === "object" && bodyParams !== null
165
+ ? { ...queryParams, ...(bodyParams as Record<string, unknown>) }
166
+ : queryParams
166
167
  const deps = { executor: router.pick(def), name, requestId: id, defaultTimeout: options.defaultTimeout }
167
168
 
168
169
  if (isStreamKind(def)) {