fastify-multer
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -32,2 +32,2 @@ /// <reference types="node" /> | ||
declare const _default: MulterFactory; | ||
export = _default; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const make_prehandler_1 = require("./lib/make-prehandler"); | ||
@@ -92,3 +93,3 @@ const disk_1 = require("./storage/disk"); | ||
multer.default = multer; | ||
module.exports = multer; | ||
exports.default = multer; | ||
//# sourceMappingURL=index.js.map |
/// <reference path="../../typings/fastify/index.d.ts" /> | ||
/// <reference types="node" /> | ||
import { IncomingMessage } from 'http'; | ||
import * as fp from 'fastify-plugin'; | ||
import fp = require('fastify-plugin'); | ||
import { FastifyInstance, FastifyRequest } from 'fastify'; | ||
export declare function isMultipart(this: FastifyRequest<IncomingMessage>): boolean; | ||
declare const _default: (instance: FastifyInstance<import("http").Server, IncomingMessage, import("http").ServerResponse>, options: fp.PluginOptions, callback: (err?: import("fastify").FastifyError | undefined) => void) => void; | ||
export default _default; | ||
declare const multer: (instance: FastifyInstance<import("http").Server, IncomingMessage, import("http").ServerResponse>, options: fp.PluginOptions, callback: (err?: import("fastify").FastifyError | undefined) => void) => void; | ||
export default multer; |
@@ -19,6 +19,7 @@ "use strict"; | ||
} | ||
exports.default = fp(fastifyMulter, { | ||
const multer = fp(fastifyMulter, { | ||
fastify: '>= 2.0.0', | ||
name: 'fastify-multer', | ||
}); | ||
exports.default = multer; | ||
//# sourceMappingURL=content-parser.js.map |
{ | ||
"name": "fastify-multer", | ||
"description": "Fastify plugin for handling `multipart/form-data`.", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "types": "lib/", |
@@ -143,2 +143,2 @@ import { IncomingMessage, Server, ServerResponse } from 'http' | ||
export = multer as MulterFactory | ||
export default multer as MulterFactory |
import { IncomingMessage } from 'http' | ||
import * as fp from 'fastify-plugin' | ||
import fp = require('fastify-plugin') | ||
import { PluginOptions, nextCallback } from 'fastify-plugin' | ||
@@ -25,5 +25,7 @@ import { FastifyInstance, FastifyRequest } from 'fastify' | ||
export default fp(fastifyMulter, { | ||
const multer = fp(fastifyMulter, { | ||
fastify: '>= 2.0.0', | ||
name: 'fastify-multer', | ||
}) | ||
export default multer |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78785
1421