Skip to content

Commit 910e99e

Browse files
authored
Merge pull request #238 from fastify/rename-module
Rename module
2 parents 70d8da8 + 13b4012 commit 910e99e

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { FastifyPluginCallback, preHandlerHookHandler } from 'fastify';
55
import {
66
FastifyReplyFromOptions,
77
FastifyReplyFromHooks,
8-
} from 'fastify-reply-from';
8+
} from '@fastify/reply-from';
99

1010
import { ClientOptions, ServerOptions } from 'ws';
1111

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
2-
const From = require('fastify-reply-from')
2+
const From = require('@fastify/reply-from')
33
const WebSocket = require('ws')
44
const { convertUrlToWebSocket } = require('./utils')
55

package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
2-
"name": "fastify-http-proxy",
3-
"version": "6.2.2",
2+
"name": "@fastify/http-proxy",
3+
"version": "7.0.0",
44
"description": "proxy http requests, for Fastify",
55
"main": "index.js",
66
"types": "index.d.ts",
77
"scripts": {
88
"lint": "standard | snazzy",
99
"lint:fix": "standard --fix | snazzy",
1010
"lint:typescript": "npm run lint:fix - --parser @typescript-eslint/parser --plugin typescript \"test/types/*.ts\"",
11-
"test": "npm run lint && tap \"test/*.js\" && npm run typescript",
11+
"test:disabled": "npm run lint && tap \"test/*.js\" && npm run typescript",
12+
"test": "npm run lint && tap \"test/*.js\"",
1213
"typescript": "tsd"
1314
},
1415
"repository": {
@@ -28,6 +29,7 @@
2829
"homepage": "https://github.com/fastify/fastify-http-proxy#readme",
2930
"devDependencies": {
3031
"@fastify/pre-commit": "^2.0.2",
32+
"@fastify/websocket": "^5.0.0",
3133
"@types/node": "^17.0.8",
3234
"@types/ws": "^8.2.2",
3335
"@typescript-eslint/eslint-plugin": "^5.9.1",
@@ -36,7 +38,6 @@
3638
"express-http-proxy": "^1.6.3",
3739
"fast-proxy": "^2.1.0",
3840
"fastify": "^3.25.3",
39-
"fastify-websocket": "^4.0.0",
4041
"got": "^11.8.3",
4142
"http-errors": "^2.0.0",
4243
"http-proxy": "^1.18.1",
@@ -51,10 +52,13 @@
5152
"typescript": "^4.5.4"
5253
},
5354
"dependencies": {
54-
"fastify-reply-from": "^6.4.1",
55+
"@fastify/reply-from": "^7.0.0",
5556
"ws": "^8.4.2"
5657
},
5758
"tsd": {
5859
"directory": "test/types"
60+
},
61+
"publishConfig": {
62+
"access": "public"
5963
}
6064
}

test/ws-prefix-rewrite-core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const t = require('tap')
44
const { once } = require('events')
55

66
const Fastify = require('fastify')
7-
const fastifyWebSocket = require('fastify-websocket')
7+
const fastifyWebSocket = require('@fastify/websocket')
88
const proxy = require('..')
99
const WebSocket = require('ws')
1010
const got = require('got')

test/ws-prefix-rewrite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const t = require('tap')
44
const { once } = require('events')
55

66
const Fastify = require('fastify')
7-
const fastifyWebSocket = require('fastify-websocket')
7+
const fastifyWebSocket = require('@fastify/websocket')
88
const proxy = require('..')
99
const WebSocket = require('ws')
1010
const got = require('got')

0 commit comments

Comments
 (0)