@hono/zod-openapi 0.10.0 → 0.10.1
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/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -153,12 +153,13 @@ var OpenAPIHono = class _OpenAPIHono extends import_hono.Hono {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
var createRoute = (routeConfig) => {
|
|
156
|
-
|
|
156
|
+
const route = {
|
|
157
157
|
...routeConfig,
|
|
158
158
|
getRoutingPath() {
|
|
159
159
|
return routeConfig.path.replaceAll(/\/{(.+?)}/g, "/:$1");
|
|
160
160
|
}
|
|
161
161
|
};
|
|
162
|
+
return Object.defineProperty(route, "getRoutingPath", { enumerable: false });
|
|
162
163
|
};
|
|
163
164
|
(0, import_zod_to_openapi2.extendZodWithOpenApi)(import_zod.z);
|
|
164
165
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/index.mjs
CHANGED
|
@@ -131,12 +131,13 @@ var OpenAPIHono = class _OpenAPIHono extends Hono {
|
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
var createRoute = (routeConfig) => {
|
|
134
|
-
|
|
134
|
+
const route = {
|
|
135
135
|
...routeConfig,
|
|
136
136
|
getRoutingPath() {
|
|
137
137
|
return routeConfig.path.replaceAll(/\/{(.+?)}/g, "/:$1");
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
+
return Object.defineProperty(route, "getRoutingPath", { enumerable: false });
|
|
140
141
|
};
|
|
141
142
|
extendZodWithOpenApi(z);
|
|
142
143
|
export {
|