silgi 0.37.48 → 0.37.50
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/dist/cli/index.mjs +1 -1
- package/dist/core/index.d.mts +4 -0
- package/dist/core/index.mjs +2 -2
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/core/index.d.mts
CHANGED
|
@@ -114,6 +114,10 @@ declare function getEventContext<T extends SilgiRuntimeContext>(event?: SilgiEve
|
|
|
114
114
|
* @template Methods - HTTP method definitions
|
|
115
115
|
*
|
|
116
116
|
* @param params - Schema configuration parameters
|
|
117
|
+
* @param params.prefix - API prefix, such as '/api'
|
|
118
|
+
* @param params.namespace - API namespace, such as '/v1'
|
|
119
|
+
* @param params.path - Route path, such as '/users' or '/users/:id'
|
|
120
|
+
* @param params.methods - HTTP method schemas
|
|
117
121
|
* @returns Route schema object with complete type information
|
|
118
122
|
*
|
|
119
123
|
* @example
|
package/dist/core/index.mjs
CHANGED
|
@@ -539,10 +539,10 @@ async function orchestrate(route, event, _input) {
|
|
|
539
539
|
const hookContext = { earlyReturnValue: false };
|
|
540
540
|
const routerParams = _input ? input.path : getRouterParams(event);
|
|
541
541
|
const queryParams = _input ? input.query : getQuery(event);
|
|
542
|
-
if (_input
|
|
542
|
+
if (_input?.path) {
|
|
543
543
|
delete _input.path;
|
|
544
544
|
}
|
|
545
|
-
if (_input
|
|
545
|
+
if (_input?.query) {
|
|
546
546
|
delete _input.query;
|
|
547
547
|
}
|
|
548
548
|
const inputData = {
|