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

bad-words-next

Package Overview
Dependencies
Maintainers
1
Versions
54
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 1.6.7 to 1.6.8

12

CHANGELOG.md
# Changelog
## [1.6.8](https://github.com/alexzel/bad-words-next/compare/v1.6.7...v1.6.8) (2023-06-02)
### Features
* **data:** update dictionaries ([62fe324](https://github.com/alexzel/bad-words-next/commit/62fe32455902b118c25048fa8fb4dd8f1f0176e2))
### Miscellaneous Chores
* release 1.6.8 ([3c16736](https://github.com/alexzel/bad-words-next/commit/3c1673684da4cf4652d9c7e12c687feff4753dfc))
## [1.6.7](https://github.com/alexzel/bad-words-next/compare/v1.6.6...v1.6.7) (2023-04-03)

@@ -4,0 +16,0 @@

13

data/en.json

@@ -19,2 +19,4 @@ {

"ar+sebadger",
"ar+sehead*",
"ar+sehol*",
"ashol*",

@@ -38,2 +40,3 @@ "ass+",

"boff+in*",
"bol+ock+*",
"bon+er",

@@ -45,2 +48,3 @@ "boo+b",

"bugg+er*",
"bul+shit*",
"butt+",

@@ -82,5 +86,6 @@ "butt+hol",

"cuntpud+le",
"damn*",
"dick",
"dickhead*",
"dicks",
"dickhead*",
"dickwe+d*",

@@ -119,2 +124,4 @@ "dickweasel",

"gobshit+*",
"god+amn*",
"godsd+amn*",
"gook",

@@ -125,2 +132,3 @@ "hoer",

"horny",
"horseshit+",
"idiot*",

@@ -174,4 +182,6 @@ "j_o_i",

"pis+wizard",
"piss+",
"porn",
"porno",
"prick+",
"puss+e",

@@ -192,2 +202,3 @@ "puss+y",

"shit+bag*",
"shit+e",
"shit+house",

@@ -194,0 +205,0 @@ "shit+magnet",

@@ -5,2 +5,3 @@ {

"*дроч",
"*дрочев*",
"*дрочи*",

@@ -148,2 +149,4 @@ "*дрочка*",

"йобик",
"йобта",
"йопта",
"йопте*",

@@ -201,2 +204,4 @@ "йопти*",

"уебло*",
"хачина",
"хачину",
"чмо",

@@ -203,0 +208,0 @@ "шмара*",

2

lib/index.d.ts

@@ -174,5 +174,5 @@ /**

*/
filter(str: string, onBadword?: (badword: string) => void): string;
filter(str: string, onCatch?: (badword: string) => void): string;
}
export { Data, Lookalike, Options, BadWordsNext as default };

@@ -278,3 +278,3 @@ 'use strict';

key: "filter",
value: function filter(str, onBadword) {
value: function filter(str, onCatch) {
var _this2 = this;

@@ -288,12 +288,12 @@ if (str === '' || this.check(str) === false) return str;

}
return str.split(/[\b\s]/).map(function (p) {
if (_this2.check(p) === true) {
if (onBadword !== undefined) {
onBadword(p);
return str.split(/[\b\s]/).map(function (word) {
if (_this2.check(word) === true) {
if (onCatch !== undefined) {
onCatch(word);
}
return _this2.opts.placeholder;
}
return p;
}).reduce(function (a, s, i) {
return a + (i > 0 ? delims[i - 1] === undefined ? ' ' : delims[i - 1] : '') + s;
return word;
}).reduce(function (acc, word, i) {
return acc + (i > 0 ? delims[i - 1] === undefined ? ' ' : delims[i - 1] : '') + word;
}, '');

@@ -300,0 +300,0 @@ }

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

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

"lint": "eslint ./src ./test",
"doc": "typedoc --options typedoc.json",
"docs": "typedoc --options typedoc.json",
"release": "yarn version",
"preversion": "yarn install && yarn build && yarn test && yarn doc",
"preversion": "yarn install && yarn build && yarn test && yarn docs",
"postversion": "git push --tags && yarn publish . --new-version $npm_package_version && git push && echo Successfully released version $npm_package_version!",

@@ -33,0 +33,0 @@ "cleanup": "git tag -d $(git tag) && git fetch --all --tags && git clean --force -d -x && git reset --hard origin/main && git checkout main",

@@ -50,3 +50,3 @@ # bad-words-next

```sh
```js
const BadWordsNext = require('bad-words-next')

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