mercurius-upload
Advanced tools
Comparing version 7.0.0 to 8.0.0
@@ -8,3 +8,3 @@ import { UploadOptions } from 'graphql-upload-minimal'; | ||
} | ||
export declare const mercuriusUpload: FastifyPluginCallback<UploadOptions, import("fastify").RawServerDefault, import("fastify").FastifyTypeProviderDefault>; | ||
export declare const mercuriusUpload: FastifyPluginCallback<UploadOptions>; | ||
export default mercuriusUpload; |
@@ -36,3 +36,3 @@ "use strict"; | ||
const mercuriusGQLUpload = (fastify, options, done) => { | ||
fastify.addContentTypeParser('multipart', (req, _payload, done) => { | ||
fastify.addContentTypeParser('multipart/form-data', (req, _payload, done) => { | ||
req.mercuriusUploadMultipart = true; | ||
@@ -56,5 +56,5 @@ done(null); | ||
exports.mercuriusUpload = (0, fastify_plugin_1.default)(mercuriusGQLUpload, { | ||
fastify: '>= 4.x', | ||
fastify: '5.x', | ||
name: 'mercurius-upload', | ||
}); | ||
exports.default = exports.mercuriusUpload; |
{ | ||
"name": "mercurius-upload", | ||
"version": "7.0.0", | ||
"version": "8.0.0", | ||
"description": "Fastify plugin to support GraphQL uploads using graphql-upload", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"dependencies": { | ||
"fastify-plugin": "^4.2.0", | ||
"graphql-upload-minimal": "^1.5.5" | ||
"fastify-plugin": "^5.0.1", | ||
"graphql-upload-minimal": "^1.6.1" | ||
}, | ||
@@ -43,10 +43,10 @@ "devDependencies": { | ||
"cross-env": "^7.0.3", | ||
"fastify": "^4.0.1", | ||
"form-data": "^4.0.0", | ||
"fastify": "^5.0.0", | ||
"form-data": "^4.0.1", | ||
"graphql": "^16.5.0", | ||
"mercurius": "^13.0.0", | ||
"prettier": "^3.0.0", | ||
"mercurius": "^15.0.0", | ||
"prettier": "^3.3.3", | ||
"tap": "^16.2.0", | ||
"ts-node": "^10.8.1", | ||
"typescript": "^5.2.2" | ||
"ts-node": "^10.9.2", | ||
"typescript": "^5.6.3" | ||
}, | ||
@@ -53,0 +53,0 @@ "peerDependencies": { |
@@ -5,3 +5,3 @@ # mercurius-upload | ||
Plugin made for **Fastify v4**: | ||
Plugin made for **Fastify v5**: | ||
@@ -8,0 +8,0 @@ ## Install |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
7039
+ Addedfastify-plugin@5.0.1(transitive)
- Removedfastify-plugin@4.5.1(transitive)
Updatedfastify-plugin@^5.0.1