@contrast/common
Advanced tools
Comparing version 1.2.0 to 1.3.0
export declare enum Event { | ||
ASSESS = "assess", | ||
PROTECT = "protect", | ||
ARCHITECTURE_COMPONENT = "architecture-component", | ||
SERVER_SETTINGS_UPDATE = "server-settings-update" | ||
@@ -5,0 +6,0 @@ } |
@@ -22,2 +22,3 @@ "use strict"; | ||
Event["PROTECT"] = "protect"; | ||
Event["ARCHITECTURE_COMPONENT"] = "architecture-component"; | ||
Event["SERVER_SETTINGS_UPDATE"] = "server-settings-update"; | ||
@@ -24,0 +25,0 @@ })(Event = exports.Event || (exports.Event = {})); |
@@ -24,6 +24,6 @@ /// <reference types="node" /> | ||
} | ||
export declare type CommonRules = Rule.SQL_INJECTION | Rule.CMD_INJECTION | Rule.PATH_TRAVERSAL | Rule.REFLECTED_XSS | Rule.SSJS_INJECTION | Rule.NOSQL_INJECTION_MONGO | Rule.UNSAFE_FILE_UPLOAD | Rule.NOSQL_INJECTION | Rule.BOT_BLOCKER; | ||
export declare type SemanticAnalysisRules = Rule.CMD_INJECTION_SEMANTIC_DANGEROUS_PATHS | Rule.CMD_INJECTION_SEMANTIC_CHAINED_COMMANDS | Rule.XXE | Rule.CMD_INJECTION_COMMAND_BACKDOORS | Rule.PATH_TRAVERSAL_SEMANTIC_FILE_SECURITY_BYPASS; | ||
export declare type ServerFeaturePreliminaryRules = Rule.VIRTUAL_PATCH | Rule.IP_DENYLIST; | ||
export declare type HardeningRules = Rule.UNTRUSTED_DESERIALIZATION; | ||
export type CommonRules = Rule.SQL_INJECTION | Rule.CMD_INJECTION | Rule.PATH_TRAVERSAL | Rule.REFLECTED_XSS | Rule.SSJS_INJECTION | Rule.NOSQL_INJECTION_MONGO | Rule.UNSAFE_FILE_UPLOAD | Rule.NOSQL_INJECTION | Rule.BOT_BLOCKER; | ||
export type SemanticAnalysisRules = Rule.CMD_INJECTION_SEMANTIC_DANGEROUS_PATHS | Rule.CMD_INJECTION_SEMANTIC_CHAINED_COMMANDS | Rule.XXE | Rule.CMD_INJECTION_COMMAND_BACKDOORS | Rule.PATH_TRAVERSAL_SEMANTIC_FILE_SECURITY_BYPASS; | ||
export type ServerFeaturePreliminaryRules = Rule.VIRTUAL_PATCH | Rule.IP_DENYLIST; | ||
export type HardeningRules = Rule.UNTRUSTED_DESERIALIZATION; | ||
export interface Result { | ||
@@ -76,15 +76,15 @@ blocked: boolean; | ||
} | ||
export declare type CommonRulesResultsMap = { | ||
export type CommonRulesResultsMap = { | ||
[rule in CommonRules]: Result[]; | ||
}; | ||
export declare type SemanticAnalysisResultsMap = { | ||
export type SemanticAnalysisResultsMap = { | ||
[rule in SemanticAnalysisRules]: SemanticAnalysisResult[]; | ||
}; | ||
export declare type ServerFeaturePreliminaryResultsMap = { | ||
export type ServerFeaturePreliminaryResultsMap = { | ||
[rule in ServerFeaturePreliminaryRules]: ServerFeaturePreliminaryResult[]; | ||
}; | ||
export declare type HardeningResultsMap = { | ||
export type HardeningResultsMap = { | ||
[rule in HardeningRules]: HardeningResult[]; | ||
}; | ||
export declare type ResultMap = CommonRulesResultsMap & SemanticAnalysisResultsMap & ServerFeaturePreliminaryResultsMap & HardeningResultsMap; | ||
export type ResultMap = CommonRulesResultsMap & SemanticAnalysisResultsMap & ServerFeaturePreliminaryResultsMap & HardeningResultsMap; | ||
export interface ProtectMessage { | ||
@@ -123,2 +123,3 @@ reqData: ReqData; | ||
emit(event: Event.SERVER_SETTINGS_UPDATE, msg: Record<string, any>): boolean; | ||
on(event: Event.ARCHITECTURE_COMPONENT, listener: (msg: Record<string, any>) => void): this; | ||
on(event: Event.PROTECT, listener: (msg: RequestStore) => void): this; | ||
@@ -125,0 +126,0 @@ on(event: Event.SERVER_SETTINGS_UPDATE, listener: (msg: Record<string, any>) => void): this; |
{ | ||
"name": "@contrast/common", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Shared constants and utilities for all Contrast Agent modules", | ||
@@ -5,0 +5,0 @@ "license": "UNLICENSED", |
@@ -19,2 +19,3 @@ /* | ||
PROTECT = 'protect', | ||
ARCHITECTURE_COMPONENT = 'architecture-component', | ||
SERVER_SETTINGS_UPDATE = 'server-settings-update', | ||
@@ -21,0 +22,0 @@ } |
@@ -170,2 +170,3 @@ /* | ||
on(event: Event.ARCHITECTURE_COMPONENT, listener: (msg: Record<string, any>) => void): this; | ||
on(event: Event.PROTECT, listener: (msg: RequestStore) => void): this; | ||
@@ -172,0 +173,0 @@ on(event: Event.SERVER_SETTINGS_UPDATE, listener: (msg: Record<string, any>) => void): this; |
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
40122
848