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

obscenity

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obscenity - npm Package Versions

2

0.4.3

Diff

Changelog

Source

0.4.3 (2025-01-26)

Bug Fixes

  • preset/english: match 'shit' at end of word (0299b49), closes #47
jo3-l
published 0.4.2 •

Changelog

Source

0.4.2 (2025-01-18)

Features

  • add more characters to leet transformer (#78) (fa673e6)

Bug Fixes

  • censor: don't generate the same character twice in a row (#85) (58f2715), closes #82
  • preset/english: add word boundary to 'shit' pattern (9554e7c), closes #93
  • preset/english: whitelist "fick" (#88) (40f66fb)
jo3-l
published 0.4.1 •

Changelog

Source

0.4.1 (2024-12-03)

Bug Fixes

  • preset/english: add "fickle" to whitelist (#87) (da754da)
  • preset/english: remove erroneous patterns for dick (e43d502), closes #86
jo3-l
published 0.4.0 •

Changelog

Source

0.4.0 (2024-08-02)

⚠ BREAKING CHANGES

  • regexp-matcher: Passing an empty whitelisted term to the RegExpMatcher will result in a runtime error.

This was unsupported previously and likely did not work correctly. Make it a real error.

Bug Fixes

  • regexp-matcher: advance index correctly in whitelist matcher (ebf95ad), closes #49
  • regexp-matcher: correctly remap to original indices in all cases (3a49579), closes #71
  • regexp-matcher: reject empty whitelist terms (9a46113)
jo3-l
published 0.3.1 •

Changelog

Source

0.3.1 (2024-07-17)

jo3-l
published 0.3.0 •

Changelog

Source

0.3.0 (2024-07-17)

⚠ BREAKING CHANGES

  • The library no longer exports a version constant.

  • drop version constant (2810674)

jo3-l
published 0.2.2 •

Changelog

Source

0.2.2 (2024-07-17)

Features

  • english-preset: add more blacklisted terms (#50) (4653de5)

Bug Fixes

  • english-preset: whitelist 'kung-fu' (d60b4f4), closes #67
jo3-l
published 0.2.1 •

Changelog

Source

0.2.1 (2024-03-03)

Features

  • english-preset: add more blacklisted terms (#50) (c189595)
jo3-l
published 0.2.0 •

Changelog

Source

0.2.0 (2024-01-05)

⚠ BREAKING CHANGES

  • english-preset: Using the default English preset, Obscenity will no longer strip non-alphabetic characters from the input text before matching.

This addresses a class of egregious false negatives in previous versions (see #23), but introduces a regression where cases such as 'f u c k' (with the space) will no longer be detected by default. We expect to provide a more comprehensive fix in the next minor release.

If desired, it remains possible to revert to the previous behavior by providing a custom set of transformers to the matcher.

  • matchers: The NfaMatcher class has been removed. Use the RegExpMatcher instead.

Features

  • english-preset: blacklist 'shit' by default (b0d90aa), closes #47

Bug Fixes

  • english-preset: don't include skip-non-alphabetic transformer (620c721), closes #23 #46

  • english-preset: remove extraneous patterns for n-word (e135be5), closes #48

  • pkg: ensure types resolve in ESM (718da8a), closes #44

  • matchers: remove NfaMatcher (b69c21d)

jo3-l
published 0.1.4 •

Changelog

Source

0.1.4 (2023-06-06)

Bug Fixes

  • matchers: gracefully handle empty patterns (#31) (79cfa63)
2
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