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

bad-words-next

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bad-words-next - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

7

CHANGELOG.md
# Changelog
## [2.2.1](https://github.com/alexzel/bad-words-next/compare/v2.2.0...v2.2.1) (2023-06-21)
### Performance Improvements
* move string comparison out of map ([99bc141](https://github.com/alexzel/bad-words-next/commit/99bc141d81fc2994622a83e93b489a763fc875db))
## [2.2.0](https://github.com/alexzel/bad-words-next/compare/v2.1.0...v2.2.0) (2023-06-21)

@@ -4,0 +11,0 @@

3

lib/index.js

@@ -282,2 +282,3 @@ import { remove } from 'confusables';

}
var repeat = this.opts.placeholderMode === 'repeat';
return str.split(/[\b\s]/).map(function (word) {

@@ -288,3 +289,3 @@ if (_this2.check(word)) {

}
if (_this2.opts.placeholderMode === 'repeat') {
if (repeat) {
return _this2.opts.placeholder.repeat(word.length);

@@ -291,0 +292,0 @@ }

{
"name": "bad-words-next",
"version": "2.2.0",
"version": "2.2.1",
"description": "JavaScript/TypeScript filter and checker for bad words aka profanity",

@@ -5,0 +5,0 @@ "keywords": [

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