@curveball/core
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,4 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import * as http from 'node:http'; | ||
@@ -5,0 +2,0 @@ import { WebSocketServer } from 'ws'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import * as http from 'node:http'; | ||
@@ -4,0 +2,0 @@ import * as http2 from 'node:http2'; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
import * as http2 from 'node:http2'; | ||
@@ -3,0 +2,0 @@ import { Context } from '@curveball/kernel'; |
@@ -1,3 +0,1 @@ | ||
/// <reference types="node" resolution-mode="require"/> | ||
/// <reference types="node" resolution-mode="require"/> | ||
import { Readable } from 'node:stream'; | ||
@@ -4,0 +2,0 @@ import { Request } from '@curveball/kernel'; |
@@ -47,3 +47,3 @@ import rawBody from 'raw-body'; | ||
*/ | ||
ip(trustProxy = false) { | ||
ip(trustProxy) { | ||
if (trustProxy ?? process.env.CURVEBALL_TRUSTPROXY) { | ||
@@ -50,0 +50,0 @@ const forwardedForHeader = this.headers.get('X-Forwarded-For'); |
{ | ||
"name": "@curveball/core", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Curveball is a framework writting in Typescript for Node.js", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -84,3 +84,3 @@ import rawBody from 'raw-body'; | ||
*/ | ||
ip(trustProxy: boolean = false): string { | ||
ip(trustProxy?: boolean): string { | ||
@@ -87,0 +87,0 @@ if (trustProxy ?? process.env.CURVEBALL_TRUSTPROXY) { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
76271
1423