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

@contrail/util

Package Overview
Dependencies
Maintainers
9
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrail/util - npm Package Compare versions

Comparing version 1.0.29 to 1.0.30

5

lib/string-util/replaceAll/replaceAllWithFunction.js

@@ -8,2 +8,3 @@ "use strict";

let startIndex = 0;
let hasMatches = false;
while ((match = regEx.exec(string)) !== null) {

@@ -16,5 +17,9 @@ let matchedString = match[0];

startIndex += index + matchedString.length;
hasMatches = true;
}
if (!(newString === null || newString === void 0 ? void 0 : newString.length) && !hasMatches) {
newString = string;
}
return newString;
}
exports.replaceAllWithFunction = replaceAllWithFunction;

2

package.json
{
"name": "@contrail/util",
"version": "1.0.29",
"version": "1.0.30",
"description": "General javascript utilities",

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

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