Skip to content

Commit

Permalink
fix: update warning text thrown to reference new module names (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Apr 29, 2022
1 parent c92e19f commit eecf2a2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -166,7 +166,7 @@ module.exports = fp(function from (fastify, opts, next) {

fastify.addHook('onReady', (done) => {
if (isFastifyMultipartRegistered(fastify)) {
fastify.log.warn('fastify-reply-from might not behave as expected when used with fastify-multipart')
fastify.log.warn('@fastify/reply-from might not behave as expected when used with @fastify/multipart')
}
done()
})
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -31,12 +31,12 @@
},
"homepage": "https://github.com/fastify/fastify-reply-from#readme",
"devDependencies": {
"@fastify/formbody": "^6.0.0",
"@fastify/multipart": "^6.0.0",
"@sinonjs/fake-timers": "^9.0.0",
"@types/node": "^17.0.0",
"@types/tap": "^15.0.3",
"fastify": "^3.17.0",
"fastify-formbody": "^5.0.0",
"fastify-multipart": "^5.0.0",
"form-data": "^4.0.0",
"got": "^11.8.2",
"h2url": "^0.2.0",
Expand Down
4 changes: 2 additions & 2 deletions test/fastify-multipart-incompatibility.js
Expand Up @@ -5,7 +5,7 @@ const path = require('path')
const t = require('tap')
const Fastify = require('fastify')
const From = require('..')
const Multipart = require('fastify-multipart')
const Multipart = require('@fastify/multipart')
const http = require('http')
const get = require('simple-get').concat
const FormData = require('form-data')
Expand Down Expand Up @@ -62,7 +62,7 @@ instance.listen(0, (err) => {
logStream.on('data', (log) => {
if (
log.level === 40 &&
log.msg.match(/fastify-reply-from might not behave as expected when used with fastify-multipart/)
log.msg.match(/@fastify\/reply-from might not behave as expected when used with @fastify\/multipart/)
) {
t.pass('incompatibility warn message logged')
}
Expand Down
2 changes: 1 addition & 1 deletion test/post-formbody.js
Expand Up @@ -10,7 +10,7 @@ const instance = Fastify()
instance.register(From, {
contentTypesToEncode: ['application/x-www-form-urlencoded']
})
instance.register(require('fastify-formbody'))
instance.register(require('@fastify/formbody'))

t.plan(9)
t.teardown(instance.close.bind(instance))
Expand Down

0 comments on commit eecf2a2

Please sign in to comment.