crowdsec-client-scenarios
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -14,4 +14,4 @@ import { IScenarioOptions } from '../IScenarioOptions.js'; | ||
private allowed; | ||
constructor(options: IScenarioOptions); | ||
constructor(options?: IScenarioOptions); | ||
enrich(alert: APITypes.Alert): APITypes.Alert | undefined; | ||
} |
@@ -17,3 +17,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
interface IScenarioOptions { | ||
'x-forwarded-for': IXForwardedForOptions; | ||
'x-forwarded-for'?: IXForwardedForOptions; | ||
} | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "crowdsec-client-scenarios", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "tmp", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.cjs", |
@@ -44,3 +44,3 @@ # crowdsec-client-scenarios | ||
This package, is planned to host scenarios used by [crowdsec-http-middleware](../crowdsec-http-middleware) and other middleware that extend it | ||
This package, is planned to host scenarios used by [crowdsec-http-middleware](https://www.npmjs.com/package/crowdsec-http-middleware) and other middleware that extend it | ||
@@ -52,7 +52,7 @@ # Scenarios | ||
## Defaults scenarios | ||
the defaults scenarios are ([defined here](./src/index.ts#L8)) : | ||
the defaults scenarios are ([defined here](https://github.com/thib3113/node-crowdsec/blob/main/packages/crowdsec-client-scenarios/src/index.ts#L8)) : | ||
- [AllowListEnricher](#allowlist) : allow you to skip alerts on your local ips | ||
- [XForwardedForChecker](#xforwardedforchecker) : allow to extract visitor ip | ||
- [HTTPEnricher](#httpenricher) : enrich alerts with informations from the http request | ||
- [HTTPEnricher](#httpenricher) : enrich alerts with information from the http request | ||
@@ -59,0 +59,0 @@ ## Available scenarios |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
132958