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

pluralize

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pluralize - npm Package Compare versions

Comparing version 1.1.6 to 1.2.0

2

package.json
{
"name": "pluralize",
"version": "1.1.6",
"version": "1.2.0",
"description": "Pluralize and singularize any word",

@@ -5,0 +5,0 @@ "main": "pluralize.js",

@@ -89,2 +89,3 @@ /* global define */

*
* @param {String} token
* @param {String} word

@@ -94,5 +95,5 @@ * @param {Array} collection

*/
function sanitizeWord (word, collection) {
function sanitizeWord (token, word, collection) {
// Empty string or doesn't need fixing.
if (!word.length || uncountables.hasOwnProperty(word)) {
if (!token.length || uncountables.hasOwnProperty(token)) {
return word;

@@ -148,3 +149,3 @@ }

// Run all the rules against the word.
return sanitizeWord(word, rules);
return sanitizeWord(token, word, rules);
};

@@ -151,0 +152,0 @@ }

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