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

cm-web-modules

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cm-web-modules - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

test/text-utils.js

2

package.json
{
"name": "cm-web-modules",
"version": "1.2.4",
"version": "1.2.5",
"description": "Collection of clean and small ES6 modules for the web",

@@ -5,0 +5,0 @@ "main": "src/LibraryManager.js",

@@ -21,6 +21,6 @@ /**

}
if (!this.locale) {
this.locale = navigator.language
}
}
if (!this.locale) {
this.locale = navigator.language
}
this.lang = this.locale.substr(0, 2)

@@ -27,0 +27,0 @@ this.translations = {}

@@ -18,7 +18,8 @@ /**

static replaceAll(str, obj) {
static replaceAll(str, replacementsObj, ignoreCase = false) {
let retStr = str
let x
for (x in obj) {
retStr = retStr.replace(new RegExp(x, 'g'), obj[x])
const flags = ignoreCase ? "gi" : "g"
for (let needle in replacementsObj) {
// noinspection JSUnfilteredForInLoop
retStr = retStr.replace(new RegExp(needle, flags), replacementsObj[needle])
}

@@ -25,0 +26,0 @@ return retStr

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