@fastify/reply-from
Advanced tools
Comparing version 8.2.1 to 8.3.0
@@ -5,3 +5,3 @@ 'use strict' | ||
const lru = require('tiny-lru') | ||
const querystring = require('querystring') | ||
const querystring = require('fast-querystring') | ||
const Stream = require('stream') | ||
@@ -8,0 +8,0 @@ const buildRequest = require('./lib/request') |
'use strict' | ||
const semver = require('semver') | ||
const http = require('http') | ||
@@ -51,5 +50,2 @@ const https = require('https') | ||
if (isHttp2) { | ||
if (semver.lt(process.version, '9.0.0')) { | ||
throw new Error('Http2 support requires Node version >= 9.0.0') | ||
} | ||
if (!opts.base) throw new Error('Option base is required when http2 is true') | ||
@@ -56,0 +52,0 @@ if (opts.base.startsWith('unix+')) { |
{ | ||
"name": "@fastify/reply-from", | ||
"version": "8.2.1", | ||
"version": "8.3.0", | ||
"description": "forward your HTTP request to another server, for fastify", | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"coverage": "tap -j8 test/*.js --cov --coverage-report=html", | ||
"lint": "standard | snazzy", | ||
"lint:fix": "standard --fix", | ||
"test": "standard | snazzy && tap test/*.js && npm run typescript", | ||
"test:ci": "standard | snazzy && tap test/*.js --coverage-report=lcovonly && npm run typescript", | ||
"typescript": "tsd" | ||
"test": "npm run test:unit && npm run test:typescript", | ||
"test:unit": "tap", | ||
"test:typescript": "tsd" | ||
}, | ||
@@ -49,4 +49,3 @@ "repository": { | ||
"tap": "^16.2.0", | ||
"tsd": "^0.22.0", | ||
"typescript": "^4.7.3" | ||
"tsd": "^0.23.0" | ||
}, | ||
@@ -56,11 +55,12 @@ "dependencies": { | ||
"end-of-stream": "^1.4.4", | ||
"fast-querystring": "^1.0.0", | ||
"fastify-plugin": "^4.0.0", | ||
"pump": "^3.0.0", | ||
"semver": "^7.3.7", | ||
"tiny-lru": "^8.0.2", | ||
"undici": "^5.5.1" | ||
}, | ||
"tsd": { | ||
"directory": "test" | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
], | ||
"publishConfig": { | ||
@@ -67,0 +67,0 @@ "access": "public" |
# @fastify/reply-from | ||
![CI](https://github.com/fastify/fastify-reply-from/workflows/CI/badge.svg) | ||
[![CI](https://github.com/fastify/reply-fro/workflows/CI/badge.svg)](https://github.com/fastify/reply-fro/actions/workflows/ci.yml) | ||
[![NPM version](https://img.shields.io/npm/v/@fastify/reply-from.svg?style=flat)](https://www.npmjs.com/package/@fastify/reply-from) | ||
@@ -118,3 +118,3 @@ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) | ||
Set the `http` option to `true` or to an Object to use | ||
Set the `http` option to an Object to use | ||
Node's [`http.request`](https://nodejs.org/api/http.html#http_http_request_options_callback) | ||
@@ -121,0 +121,0 @@ will be used if you do not enable [`http2`](#http2). To customize the `request`, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19
151895
4466
+ Addedfast-querystring@^1.0.0
+ Addedfast-decode-uri-component@1.0.1(transitive)
+ Addedfast-querystring@1.1.2(transitive)
- Removedsemver@^7.3.7
- Removedsemver@7.6.3(transitive)