Skip to content

Commit d0aa9cb

Browse files
authored
Merge pull request #340 from fastify/rename-module
Rename module
2 parents 38b05fb + d861f91 commit d0aa9cb

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Busboy, BusboyConfig, BusboyFileStream } from "@fastify/busboy";
22
import { FastifyPluginCallback } from "fastify";
33
import { Readable } from 'stream';
4-
import { FastifyErrorConstructor } from "fastify-error";
4+
import { FastifyErrorConstructor } from "@fastify/error";
55

66
type MultipartHandler = (
77
field: string,

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { unlink } = require('fs').promises
99
const path = require('path')
1010
const hexoid = require('hexoid')
1111
const util = require('util')
12-
const createError = require('fastify-error')
12+
const createError = require('@fastify/error')
1313
const sendToWormhole = require('stream-wormhole')
1414
const deepmerge = require('deepmerge')
1515
const { PassThrough, pipeline } = require('stream')

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"name": "fastify-multipart",
3-
"version": "5.3.1",
2+
"name": "@fastify/multipart",
3+
"version": "6.0.0",
44
"description": "Multipart plugin for Fastify",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"dependencies": {
88
"@fastify/busboy": "^1.0.0",
9+
"@fastify/error": "^2.0.0",
910
"deepmerge": "^4.2.2",
1011
"end-of-stream": "^1.4.4",
11-
"fastify-error": "^1.0.0",
1212
"fastify-plugin": "^3.0.0",
1313
"hexoid": "^1.0.0",
1414
"secure-json-parse": "^2.4.0",
@@ -60,5 +60,8 @@
6060
"license": "MIT",
6161
"tsd": {
6262
"directory": "test"
63+
},
64+
"publishConfig": {
65+
"access": "public"
6366
}
6467
}

test/index.test-d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as util from 'util'
55
import { pipeline, Readable } from 'stream'
66
import * as fs from 'fs'
77
import { expectError, expectType } from 'tsd'
8-
import { FastifyErrorConstructor } from "fastify-error"
8+
import { FastifyErrorConstructor } from "@fastify/error"
99
import { BusboyConfig, BusboyFileStream } from "@fastify/busboy";
1010

1111
const pump = util.promisify(pipeline)

0 commit comments

Comments
 (0)