New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/agent-lib

Package Overview
Dependencies
Maintainers
8
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/agent-lib - npm Package Compare versions

Comparing version 8.2.0 to 8.2.1

.mocharc.yaml

22

index.d.ts

@@ -91,3 +91,3 @@ /// <reference types="node" />

export public type XssState = {
export type XssState = {
inputs: ArrayBuffer;

@@ -124,3 +124,3 @@ state: ArrayBuffer;

*/
scoreAtom(rules: RuleBitMask, value: JsString, inputType: InputType, options?: EvalOptions): ScoreAtomFinding[];
scoreAtom(rules: RuleBitMask, value: JsString, inputType: InputTypeId, options?: EvalOptions): ScoreAtomFinding[];

@@ -154,3 +154,3 @@ /**

*/
checkSqlInjectionSink(index: number, length: number, dbType: DbType, query: JsString): CheckInjectionResult;
checkSqlInjectionSink(index: number, length: number, dbType: DbTypeId, query: JsString): CheckInjectionResult;

@@ -223,5 +223,3 @@ /**

*/
isXssWholeBodyAttack(body: JsString, inputs: string[]): boolean;
// legacy name
isXssAttack(body: JsString, inputs: JsString[]): boolean;
isXssAttackInWholeBody(body: JsString, inputs: string[]): boolean;

@@ -257,5 +255,3 @@ /**

*/
isXssChunkedBodyAttack(chunk: JsString, state: XssState): boolean;
// legacy name
isXssAttackStateful(body: JsString, state: XssState): boolean;
isXssAttackInChunkedBody(chunk: JsString, state: XssState): boolean;

@@ -274,5 +270,3 @@ /**

*/
isXssScriptOrIframeAttack(inputs: string[]): boolean;
// legacy name
isXssObviousAttack(inputs: string[]): boolean;
isXssScriptOrIframeInUserInput(inputs: string[]): boolean;

@@ -302,6 +296,6 @@ /**

export type RuleName = keyof typeof constants.RuleType;
export type InputType = typeof constants.InputType[keyof typeof constants.InputType];
export type InputTypeId = typeof constants.InputType[keyof typeof constants.InputType];
export type InputTypeName = keyof typeof constants.InputType;
export type DbType = typeof constants.DbType[keyof typeof constants.DbType];
export type DbTypeId = typeof constants.DbType[keyof typeof constants.DbType];

@@ -0,0 +0,0 @@ 'use strict';

{
"name": "@contrast/agent-lib",
"version": "8.2.0",
"version": "8.2.1",
"description": "",

@@ -41,3 +41,3 @@ "keywords": [],

"inquirer": "^8.2.0",
"mocha": "^9.2.0",
"mocha": "^11.0.1",
"semver": "^7.3.8"

@@ -44,0 +44,0 @@ },

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc