Socket
Socket
Sign inDemoInstall

lodash-inflection

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-inflection - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

bower.json
{
"name": "lodash-inflection",
"version": "1.3.0",
"version": "1.3.2",
"dependencies": {

@@ -5,0 +5,0 @@ "lodash": "~3.10.1"

@@ -25,2 +25,7 @@ // lodash-inflection.js

function includes(haystack, needle) {
var f = _.include || _.includes;
return f(haystack, needle);
}
/**

@@ -67,3 +72,3 @@ * Inflector

} else {
if (_(uncountables).include(word)) {
if (includes(uncountables, word)) {
return word;

@@ -74,8 +79,7 @@ }

_(plurals).detect(function(rule) {
_(plurals).find(function(rule) {
var gsub = this.gsub(word, rule[0], rule[1]);
return gsub ? (result = gsub) : false;
},
this);
}.bind(this));
}

@@ -99,3 +103,3 @@

singularize: function(word) {
if (_(uncountables).include(word)) {
if (includes(uncountables, word)) {
return word;

@@ -106,8 +110,7 @@ }

_(singulars).detect(function(rule) {
_(singulars).find(function(rule) {
var gsub = this.gsub(word, rule[0], rule[1]);
return gsub ? (result = gsub) : false;
},
this);
}.bind(this));

@@ -114,0 +117,0 @@ return result;

{
"name": "lodash-inflection",
"version": "1.3.1",
"version": "1.3.2",
"description": "ActiveSupport::Inflector, for lodash!",

@@ -43,5 +43,9 @@ "main": "index.js",

"mocha-lcov-reporter": "~0.0.2",
"lodash": "^3.10.1"
"lodash": "^3.10.1",
"mversion": "^1.10.1",
"lodash": "^4.0.0",
"mocha": "^1.21.4",
"mocha-lcov-reporter": "0.0.1"
},
"dependencies": {}
}

@@ -17,2 +17,15 @@ ## lodash-inflection

Usage with CommonJS
-------------------
```
npm install lodash
npm install lodash-inflection
```
```js
var _ = require("lodash");
_.mixin(require("lodash-inflection"));
```
Inflections

@@ -19,0 +32,0 @@ -----------

Sorry, the diff of this file is not supported yet

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