@contrast/agent-lib
Advanced tools
Comparing version 8.1.0 to 8.1.1
@@ -59,3 +59,3 @@ /// <reference types="node" /> | ||
type RuleBitMask = number; | ||
type JsString = string | String; | ||
type JsString = string | String | Buffer; | ||
@@ -216,8 +216,8 @@ type PairedInputs = [string, string]; | ||
* | ||
* @param {JsString|Buffer} body a string or a buffer encoded as utf8 containing the full response | ||
* @param - body a string or a buffer encoded as utf8 containing the full response | ||
* body. | ||
* @param {JsString[]} inputs both the source and propagation history | ||
* @returns {boolean} true if any input is an XSS attack in the context of the body, else false. | ||
* @param - inputs both the source and propagation history | ||
* @returns - true if any input is an XSS attack in the context of the body, else false. | ||
*/ | ||
isXssAttack(body: JsString|Buffer, inputs: JsString[]): boolean; | ||
isXssAttack(body: JsString, inputs: JsString[]): boolean; | ||
@@ -235,6 +235,6 @@ /** | ||
* | ||
* @param {JsString[]} inputs both the source and propagation history | ||
* @returns {XssState} the initial state to pass to isXssAttackStateful(body_chunk, state). | ||
* @param - inputs both the source and propagation history | ||
* @returns - the initial state to pass to isXssAttackStateful(body_chunk, state). | ||
*/ | ||
makeXssState(inputs: JsString[]): XssState; | ||
makeXssState(inputs: string[]): XssState; | ||
@@ -249,8 +249,8 @@ /** | ||
* | ||
* @param {JsString|Buffer} body a string or a buffer encoded as utf8 containing a chunk of the | ||
* @param - body a string or a buffer encoded as utf8 containing a chunk of the | ||
* response body. | ||
* @param {XssState} state the state object created by makeXssState(). It will be updated each call. | ||
* @returns {boolean} true if any input is an XSS attack in the context of the body, else false. | ||
* @param - state the state object created by makeXssState(). It will be updated each call. | ||
* @returns - true if any input is an XSS attack in the context of the body, else false. | ||
*/ | ||
isXssAttackStateful(body: JsString|Buffer, state: XssState): boolean; | ||
isXssAttackStateful(body: JsString, state: XssState): boolean; | ||
@@ -266,6 +266,6 @@ /** | ||
* | ||
* @param {JsString[]} inputs An array of the saved source inputs, NOT propagation history. | ||
* @returns {boolean} true if an egregious XSS attack found, else false. | ||
* @param - inputs An array of the saved source inputs, NOT propagation history. | ||
* @returns - true if an egregious XSS attack found, else false. | ||
*/ | ||
isXssObviousAttack(inputs: JsString[]): boolean; | ||
isXssObviousAttack(inputs: string[]): boolean; | ||
@@ -272,0 +272,0 @@ /** |
{ | ||
"name": "@contrast/agent-lib", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
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
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
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
28858072