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

ts-commons

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-commons - npm Package Compare versions

Comparing version 1.0.18 to 1.0.19

.nyc_output/34e0c3705c4ad5ed968fdc86dbd7bc7b.json

0

.vscode/launch.json

@@ -0,0 +0,0 @@ {

@@ -243,2 +243,10 @@ export declare class StringUtils {

static snakeCase(str: string): string;
/**
* Replaces all text find in a string.
* @example StringUtils.replaceAll(null, "a", "b") = null;
* @example StringUtils.replaceAll(" ", " ", "a") = "a";
* @example StringUtils.replaceAll("aa", "a", "b") = "bb";
*/
static replaceAll(str: string, searchValue: string, replacer: string): string;
private static escapeRegExp;
}

@@ -454,2 +454,19 @@ "use strict";

};
/**
* Replaces all text find in a string.
* @example StringUtils.replaceAll(null, "a", "b") = null;
* @example StringUtils.replaceAll(" ", " ", "a") = "a";
* @example StringUtils.replaceAll("aa", "a", "b") = "bb";
*/
StringUtils.replaceAll = function (str, searchValue, replacer) {
if (!object_utils_1.ObjectUtils.isString(str) ||
!object_utils_1.ObjectUtils.isString(searchValue) ||
!object_utils_1.ObjectUtils.isString(replacer)) {
return str;
}
return str.replace(new RegExp(this.escapeRegExp(searchValue), "g"), replacer);
};
StringUtils.escapeRegExp = function (str) {
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
};
StringUtils.EMPTY = "";

@@ -456,0 +473,0 @@ StringUtils.INDEX_NOT_FOUND = -1;

2

package.json
{
"name": "ts-commons",
"version": "1.0.18",
"version": "1.0.19",
"description": "common methods for typescript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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