solr-proxy
Advanced tools
Comparing version 9.1.0 to 10.0.0
/// <reference types="node" resolution-mode="require"/> | ||
import type { FastifyInstance } from 'fastify'; | ||
import { Server, IncomingMessage, ServerResponse } from 'node:http'; | ||
import { IncomingMessage, ServerResponse } from 'node:http'; | ||
declare const SolrProxy: { | ||
start: (port?: any, userOptions?: any) => Promise<FastifyInstance<Server, IncomingMessage, ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>; | ||
start: (port?: any, userOptions?: any) => Promise<FastifyInstance<import("fastify").RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>; | ||
}; | ||
export default SolrProxy; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,3 +24,3 @@ import { fastify } from 'fastify'; | ||
await deny(req, res); | ||
return false; | ||
return undefined; | ||
} | ||
@@ -45,5 +45,3 @@ if (queryParams.some(function (p) { | ||
await deny(req, res); | ||
return false; | ||
} | ||
return true; | ||
}; | ||
@@ -66,5 +64,5 @@ const createServer = async function (options) { | ||
upstream: options.upstream, | ||
httpMethods: options.validHttpMethods, | ||
preHandler: validateRequest.bind(null, options) | ||
httpMethods: options.validHttpMethods | ||
}); | ||
server.addHook('preHandler', validateRequest.bind(null, options)); | ||
return server; | ||
@@ -71,0 +69,0 @@ }; |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "9.1.0", | ||
"version": "10.0.0", | ||
"author": "Rich Trott <rtrott@gmail.com>", | ||
@@ -35,3 +35,3 @@ "bugs": { | ||
"dependencies": { | ||
"@fastify/http-proxy": "^8.0.1", | ||
"@fastify/http-proxy": "^9.0.0", | ||
"fastify": "^4.0.0", | ||
@@ -43,10 +43,10 @@ "minimist": "^1.2.0" | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node": "^18.7.1", | ||
"@types/mocha": "^10.0.0", | ||
"@types/node": "^20.0.0", | ||
"@types/ws": "^8.5.3", | ||
"c8": "^7.11.0", | ||
"c8": "^8.0.0", | ||
"mocha": "^10.0.0", | ||
"semantic-release": "^19.0.1", | ||
"ts-standard": "^11.0.0", | ||
"typescript": "^4.7.0-dev.20220417" | ||
"semantic-release": "^21.0.0", | ||
"ts-standard": "^12.0.0", | ||
"typescript": "^5.0.2" | ||
}, | ||
@@ -53,0 +53,0 @@ "ts-standard": { |
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
12927
165
+ Added@fastify/http-proxy@9.5.0(transitive)
+ Added@fastify/reply-from@9.8.0(transitive)
- Removed@fastify/http-proxy@8.4.0(transitive)
- Removed@fastify/reply-from@8.4.3(transitive)
- Removedpump@3.0.2(transitive)
- Removedtiny-lru@10.4.1(transitive)
Updated@fastify/http-proxy@^9.0.0