@foodsy-app/fastify-typebox
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -56,3 +56,4 @@ /// <reference types="node" /> | ||
declare const createTypeboxSchema: <T extends Schema>(typeboxSchema: T) => T; | ||
declare const _default: import("fastify").FastifyPluginCallback<{}, import("http").Server>; | ||
declare const _default: import("fastify").FastifyPluginCallback<Record<never, never>, import("http").Server>; | ||
export default _default; | ||
export { createTypeboxSchema }; |
@@ -6,4 +6,6 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createTypeboxSchema = void 0; | ||
var fastify_plugin_1 = __importDefault(require("fastify-plugin")); | ||
var createTypeboxSchema = function (typeboxSchema) { return typeboxSchema; }; | ||
exports.createTypeboxSchema = createTypeboxSchema; | ||
var plugin = function (fastify, _options, done) { | ||
@@ -10,0 +12,0 @@ fastify.decorate("typeboxSchema", createTypeboxSchema); |
@@ -122,1 +122,2 @@ import { Static, TSchema } from "@sinclair/typebox"; | ||
export default fp(plugin, { fastify: ">=3.x", name: "@foodsy-app/fastify-typebox" }); | ||
export { createTypeboxSchema }; |
{ | ||
"name": "@foodsy-app/fastify-typebox", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Plugin for Fastify to prevent having to write duplicate type definitions for schemas", | ||
@@ -33,13 +33,14 @@ "keywords": [ | ||
"clean": "rimraf index.js index.d.ts", | ||
"prepublishOnly": "npm run clean && npm run build" | ||
"prepublishOnly": "npm run clean && npm run build", | ||
"postinstall": "npx patch-package --patch-dir ." | ||
}, | ||
"dependencies": { | ||
"@sinclair/typebox": "^0.10.1", | ||
"fastify-plugin": "^2.0.1", | ||
"@sinclair/typebox": "^0.16.0", | ||
"fastify-plugin": "^3.0.0", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^14.0.24", | ||
"fastify": "^3.1.1", | ||
"typescript": "^3.9.7" | ||
"@types/node": "^14.14.35", | ||
"fastify": "^3.14.0", | ||
"typescript": "^4.2.3" | ||
}, | ||
@@ -49,2 +50,2 @@ "engines": { | ||
} | ||
} | ||
} |
@@ -0,0 +0,0 @@ { |
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
251
21195
7
1
+ Added@sinclair/typebox@0.16.7(transitive)
+ Addedfastify-plugin@3.0.1(transitive)
- Removed@sinclair/typebox@0.10.1(transitive)
- Removedfastify-plugin@2.3.4(transitive)
- Removedsemver@7.7.1(transitive)
Updated@sinclair/typebox@^0.16.0
Updatedfastify-plugin@^3.0.0