Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mercurius-upload

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercurius-upload - npm Package Compare versions

Comparing version 7.0.0 to 8.0.0

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc