reverse-proxy-middleware 0.0.132 → 0.0.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +29 -50
  2. package/package.json +6 -6
  3. package/type.d.ts +4 -4
package/index.js CHANGED
@@ -8,26 +8,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_http2__ from "http2";
8
8
  import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
9
9
  /******/ var __webpack_modules__ = ([
10
10
  /* 0 */
11
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
12
-
13
- const x = (y) => {
14
- const x = {}; __webpack_require__.d(x, y); return x
15
- }
16
- const y = (x) => (() => (x))
17
- module.exports = x({ ["CLOSE_EVENT_NAMES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.CLOSE_EVENT_NAMES), ["MAXIMAL_NUMBER_OF_ITERATIONS"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.MAXIMAL_NUMBER_OF_ITERATIONS), ["UTILITY_SCOPE"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE), ["UTILITY_SCOPE_NAMES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE_NAMES), ["UTILITY_SCOPE_VALUES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE_VALUES), ["compile"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.compile), ["copy"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.copy), ["evaluateAsyncDynamicData"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.evaluateAsyncDynamicData), ["evaluateDynamicData"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.evaluateDynamicData), ["extend"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.extend), ["importsPromise"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.importsPromise), ["isFile"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.isFile), ["modifyObject"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.modifyObject), ["represent"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.represent), ["timeout"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.timeout) });
18
-
19
- /***/ }),
20
- /* 1 */
21
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
22
-
23
- const x = (y) => {
24
- const x = {}; __webpack_require__.d(x, y); return x
25
- }
26
- const y = (x) => (() => (x))
27
- module.exports = x({ ["createSecureServer"]: () => (__WEBPACK_EXTERNAL_MODULE_http2__.createSecureServer) });
28
-
29
- /***/ }),
30
- /* 2 */
31
11
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
32
12
 
33
13
 
@@ -44,13 +24,11 @@ __webpack_require__.d(__webpack_exports__, {
44
24
  // UNUSED EXPORTS: EVALUATION_SCOPE_NAMES, reverseProxyBufferedRequest, transformHeaders
45
25
 
46
26
  // EXTERNAL MODULE: external "clientnode"
47
- var external_clientnode_ = __webpack_require__(0);
27
+ var external_clientnode_ = __webpack_require__(1);
48
28
  ;// external "net"
49
29
 
50
30
  ;// external "tls"
51
31
 
52
- // EXTERNAL MODULE: external "http2"
53
- var external_http2_ = __webpack_require__(1);
54
32
  ;// ./type.ts
55
33
  // #!/usr/bin/env babel-node
56
34
  // -*- coding: utf-8 -*-
@@ -68,26 +46,7 @@ var external_http2_ = __webpack_require__(1);
68
46
  See https://creativecommons.org/licenses/by/3.0/deed.de
69
47
  endregion
70
48
  */// region imports
71
- // endregion
72
- /*
73
- * break (string) -> Do not evaluate subsequent pre evaluations.
74
- * null or undefined -> Just jump to the next evaluation to run.
75
- * true (boolean) -> Use this state api configuration. Run the configured
76
- * request.
77
- * false (boolean) -> Do not use this state api and to not run subsequent pre
78
- * evaluations.
79
- * code (number) -> Answer client request with provided http status code
80
- * and do not run any subsequent pre-evaluations,
81
- * state-api request or request forwarding to the
82
- * underlying backend.
83
- *//*
84
- * break (string) -> Do not evaluate subsequent post evaluations.
85
- * null or undefined -> Just jump to the next evaluation to run.
86
- * code (number) -> Answer client request with provided http status code
87
- * and do not run any subsequent post-evaluations,
88
- * state-api request or request forwarding to the
89
- * underlying backend.
90
- */
49
+
91
50
  ;// ./helper.ts
92
51
  // #!/usr/bin/env babel-node
93
52
  // -*- coding: utf-8 -*-
@@ -129,15 +88,25 @@ content=content.replace(/HTTP\/1\.0/i,"HTTP/1.1");// Overwrite proxy host with d
129
88
  content=content.replace(/(($|\n)host: )[^\n]+/i,"$1".concat(forwarder.host).concat(portSuffix));content=transformHeaders(content,forwarder.headerTransformations.send,parameters);void logging.debug("\n >>>> Send request header to backend:\n\n".concat(content));serverSocket.write(content);headerProcessed=true;continue}serverSocket.write(buffer)}}catch(err){_iterator1.e(err)}finally{_iterator1.f()}})}))}},_callee3)}));function reverseProxyBufferedRequest(_x4,_x5,_x6,_x7){return _reverseProxyBufferedRequest.apply(this,arguments)}return reverseProxyBufferedRequest}();/* harmony default export */ const helper = (reverseProxyBufferedRequest);
130
89
 
131
90
  /***/ }),
132
- /* 3 */
91
+ /* 1 */
92
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
93
+
94
+ const x = (y) => {
95
+ const x = {}; __webpack_require__.d(x, y); return x
96
+ }
97
+ const y = (x) => (() => (x))
98
+ module.exports = x({ ["CLOSE_EVENT_NAMES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.CLOSE_EVENT_NAMES), ["MAXIMAL_NUMBER_OF_ITERATIONS"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.MAXIMAL_NUMBER_OF_ITERATIONS), ["UTILITY_SCOPE"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE), ["UTILITY_SCOPE_NAMES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE_NAMES), ["UTILITY_SCOPE_VALUES"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.UTILITY_SCOPE_VALUES), ["compile"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.compile), ["copy"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.copy), ["evaluateAsyncDynamicData"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.evaluateAsyncDynamicData), ["evaluateDynamicData"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.evaluateDynamicData), ["extend"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.extend), ["importsPromise"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.importsPromise), ["isFile"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.isFile), ["modifyObject"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.modifyObject), ["represent"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.represent), ["timeout"]: () => (__WEBPACK_EXTERNAL_MODULE_clientnode__.timeout) });
99
+
100
+ /***/ }),
101
+ /* 2 */
133
102
  /***/ ((module, __webpack_exports__, __webpack_require__) => {
134
103
 
135
104
  __webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
136
- /* harmony import */ var clientnode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
137
- /* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
138
- /* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
105
+ /* harmony import */ var clientnode__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
106
+ /* harmony import */ var http__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
107
+ /* harmony import */ var http2__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4);
139
108
  /* harmony import */ var path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5);
140
- /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2);
109
+ /* harmony import */ var _helper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(0);
141
110
  /* harmony import */ var _package_json__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7);
142
111
  // #!/usr/bin/env babel-node
143
112
  // -*- coding: utf-8 -*-
@@ -180,7 +149,7 @@ __webpack_async_result__();
180
149
  } catch(e) { __webpack_async_result__(e); } }, 1);
181
150
 
182
151
  /***/ }),
183
- /* 4 */
152
+ /* 3 */
184
153
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
185
154
 
186
155
  const x = (y) => {
@@ -189,6 +158,16 @@ const x = (y) => {
189
158
  const y = (x) => (() => (x))
190
159
  module.exports = x({ ["createServer"]: () => (__WEBPACK_EXTERNAL_MODULE_http__.createServer) });
191
160
 
161
+ /***/ }),
162
+ /* 4 */
163
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
164
+
165
+ const x = (y) => {
166
+ const x = {}; __webpack_require__.d(x, y); return x
167
+ }
168
+ const y = (x) => (() => (x))
169
+ module.exports = x({ ["createSecureServer"]: () => (__WEBPACK_EXTERNAL_MODULE_http2__.createSecureServer) });
170
+
192
171
  /***/ }),
193
172
  /* 5 */
194
173
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
@@ -367,7 +346,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"HF":{"publicKeyPath":"","privateKeyP
367
346
  /******/ // module cache are used so entry inlining is disabled
368
347
  /******/ // startup
369
348
  /******/ // Load entry module and return exports
370
- /******/ let __webpack_exports__ = __webpack_require__(__webpack_require__.s = 3);
349
+ /******/ let __webpack_exports__ = __webpack_require__(__webpack_require__.s = 2);
371
350
  /******/ __webpack_exports__ = await __webpack_exports__;
372
351
  /******/ const __webpack_exports__default = __webpack_exports__.A;
373
352
  /******/ export { __webpack_exports__default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reverse-proxy-middleware",
3
- "version": "0.0.132",
3
+ "version": "0.0.133",
4
4
  "description": "A reverse proxy blocking bot requests.",
5
5
  "keywords": [
6
6
  "api",
@@ -68,20 +68,20 @@
68
68
  "@stylistic/eslint-plugin": "^5.10.0",
69
69
  "@types/node": "^26.1.1",
70
70
  "@types/webpack-env": "^1.18.8",
71
- "@typescript-eslint/eslint-plugin": "^8.64.0",
72
- "@typescript-eslint/parser": "^8.64.0",
71
+ "@typescript-eslint/eslint-plugin": "^8.65.0",
72
+ "@typescript-eslint/parser": "^8.65.0",
73
73
  "eslint": "^10.7.0",
74
74
  "eslint-config-google": "^0.14.0",
75
75
  "eslint-plugin-jsdoc": "^63.2.0",
76
76
  "jest": "^30.4.2",
77
77
  "jsdoc": "^4.0.5",
78
- "typescript-eslint": "^8.64.0",
78
+ "typescript-eslint": "^8.65.0",
79
79
  "web-documentation": "^1.0.42",
80
- "weboptimizer": "^4.0.25"
80
+ "weboptimizer": "^4.0.26"
81
81
  },
82
82
  "dependencies": {
83
83
  "@babel/runtime": "^8.0.0",
84
- "clientnode": "^4.0.1455"
84
+ "clientnode": "^4.0.1456"
85
85
  },
86
86
  "engines": {
87
87
  "node": ">=24",
package/type.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Mapping, PlainObject, Primitive, UTILITY_SCOPE, UTILITY_SCOPE_VALUES } from 'clientnode';
2
- import { Http2SecureServer as HTTPSecureServer, Http2Server as HttpServer, Http2ServerRequest, Http2ServerResponse, Http2Stream, OutgoingHttpHeaders, SecureServerOptions } from 'http2';
3
- import { Socket as PlainSocket } from 'net';
4
- import { TLSSocket } from 'tls';
1
+ import type { Mapping, PlainObject, Primitive, UTILITY_SCOPE, UTILITY_SCOPE_VALUES } from 'clientnode';
2
+ import type { Http2SecureServer as HTTPSecureServer, Http2Server as HttpServer, Http2ServerRequest, Http2ServerResponse, Http2Stream, OutgoingHttpHeaders, SecureServerOptions } from 'http2';
3
+ import type { Socket as PlainSocket } from 'net';
4
+ import type { TLSSocket } from 'tls';
5
5
  export type HTTPServer = HttpServer | HTTPSecureServer;
6
6
  export type HTTPServerRequest = Http2ServerRequest;
7
7
  export type HTTPServerResponse = Http2ServerResponse;