@efebia/fastify-zod-reply 0.0.2 → 1.0.0
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/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +17 -1
- package/lib/esm/index.d.ts +2 -0
- package/lib/esm/index.js +3 -1
- package/package.json +3 -3
package/lib/cjs/index.d.ts
CHANGED
|
@@ -29,3 +29,5 @@ declare module 'fastify' {
|
|
|
29
29
|
}
|
|
30
30
|
declare const _default: import("fastify").FastifyPluginCallback<FastifyReplyPluginOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>;
|
|
31
31
|
export default _default;
|
|
32
|
+
export * from './error.js';
|
|
33
|
+
export * from './route.js';
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
17
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
18
|
};
|
|
@@ -27,6 +41,8 @@ exports.default = (0, fastify_plugin_1.default)(async (fastify, opts) => {
|
|
|
27
41
|
fastify.decorateReply(key, (0, reply_js_1.createReply)(value.statusCode, value.payload));
|
|
28
42
|
});
|
|
29
43
|
}, {
|
|
30
|
-
fastify: "
|
|
44
|
+
fastify: "5.x",
|
|
31
45
|
name: '@efebia/fastify-zod-reply'
|
|
32
46
|
});
|
|
47
|
+
__exportStar(require("./error.js"), exports);
|
|
48
|
+
__exportStar(require("./route.js"), exports);
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -29,3 +29,5 @@ declare module 'fastify' {
|
|
|
29
29
|
}
|
|
30
30
|
declare const _default: import("fastify").FastifyPluginCallback<FastifyReplyPluginOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault, import("fastify").FastifyBaseLogger>;
|
|
31
31
|
export default _default;
|
|
32
|
+
export * from './error.js';
|
|
33
|
+
export * from './route.js';
|
package/lib/esm/index.js
CHANGED
|
@@ -22,6 +22,8 @@ export default fp(async (fastify, opts) => {
|
|
|
22
22
|
fastify.decorateReply(key, createReply(value.statusCode, value.payload));
|
|
23
23
|
});
|
|
24
24
|
}, {
|
|
25
|
-
fastify: "
|
|
25
|
+
fastify: "5.x",
|
|
26
26
|
name: '@efebia/fastify-zod-reply'
|
|
27
27
|
});
|
|
28
|
+
export * from './error.js';
|
|
29
|
+
export * from './route.js';
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@efebia/fastify-zod-reply",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"fastify": "^
|
|
7
|
-
"fastify-plugin": "^
|
|
6
|
+
"fastify": "^5.3.0",
|
|
7
|
+
"fastify-plugin": "^5.0.1",
|
|
8
8
|
"zod": "^3.24.2",
|
|
9
9
|
"zod-to-json-schema": "^3.24.5"
|
|
10
10
|
},
|