Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/common

Package Overview
Dependencies
Maintainers
15
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/common - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

1

lib/index.d.ts

@@ -42,3 +42,4 @@ import { CommonRulesResultsMap, HardeningResultsMap, ResultMap, SemanticAnalysisResultsMap, ServerFeaturePreliminaryResultsMap } from './types';

export declare function toLowerCase(str: string): string;
export declare function toUpperCase(str: string): string;
export declare function split(str: string, ...args: []): string[];
export declare function trim(str: string, ...args: []): string;

@@ -31,3 +31,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.trim = exports.split = exports.toLowerCase = exports.substring = exports.join = exports.settingsReaders = exports.featureReaders = exports.mergeRemoteData = exports.set = exports.groupResultsMap = exports.callChildComponentMethodsSync = exports.traverseKeys = exports.traverseValues = exports.traverseKeysAndValues = exports.encodeString = exports.isNonEmptyObject = exports.isString = void 0;
exports.trim = exports.split = exports.toUpperCase = exports.toLowerCase = exports.substring = exports.join = exports.settingsReaders = exports.featureReaders = exports.mergeRemoteData = exports.set = exports.groupResultsMap = exports.callChildComponentMethodsSync = exports.traverseKeys = exports.traverseValues = exports.traverseKeysAndValues = exports.encodeString = exports.isNonEmptyObject = exports.isString = void 0;
const constants_1 = require("./constants");

@@ -249,2 +249,7 @@ __exportStar(require("./constants"), exports);

exports.toLowerCase = toLowerCase;
const { toUpperCase: origToUpperCase } = String.prototype;
function toUpperCase(str) {
return origToUpperCase.call(str);
}
exports.toUpperCase = toUpperCase;
const { split: origSplit } = String.prototype;

@@ -251,0 +256,0 @@ function split(str, ...args) {

2

lib/types.d.ts

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

}
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 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.METHOD_TAMPERING | 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;

@@ -27,0 +27,0 @@ export type ServerFeaturePreliminaryRules = Rule.VIRTUAL_PATCH | Rule.IP_DENYLIST;

{
"name": "@contrast/common",
"version": "1.5.0",
"version": "1.6.0",
"description": "Shared constants and utilities for all Contrast Agent modules",

@@ -5,0 +5,0 @@ "license": "UNLICENSED",

@@ -268,2 +268,7 @@ /*

const { toUpperCase: origToUpperCase } = String.prototype;
export function toUpperCase(str: string) {
return origToUpperCase.call(str);
}
const { split: origSplit } = String.prototype;

@@ -270,0 +275,0 @@ export function split(str: string, ...args: []) {

@@ -49,2 +49,3 @@ /*

Rule.NOSQL_INJECTION |
Rule.METHOD_TAMPERING |
Rule.BOT_BLOCKER;

@@ -129,3 +130,3 @@

export type HardeningResultsMap = {
[rule in HardeningRules]:HardeningResult[];
[rule in HardeningRules]: HardeningResult[];
};

@@ -132,0 +133,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