Socket
Socket
Sign inDemoInstall

inflection

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inflection - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

29

lib/inflection.js

@@ -173,3 +173,3 @@ /*!

}else{
var ignore = ( this.indexOf( skip, str.toLowerCase()) > -1 );
var ignore = ( inflector.indexOf( skip, str.toLowerCase()) > -1 );

@@ -250,3 +250,3 @@ if( !ignore ){

pluralize : function ( str, plural ){
return this._apply_rules( str, plural_rules, uncountable_words, plural );
return inflector._apply_rules( str, plural_rules, uncountable_words, plural );
},

@@ -273,3 +273,3 @@

singularize : function ( str, singular ){
return this._apply_rules( str, singular_rules, uncountable_words, singular );
return inflector._apply_rules( str, singular_rules, uncountable_words, singular );
},

@@ -373,3 +373,3 @@

if( !lowFirstLetter ){
str = this.capitalize( str );
str = inflector.capitalize( str );
}

@@ -447,4 +447,4 @@

for( ; k < l; k++){
if( this.indexOf( non_titlecased_words, d[ k ].toLowerCase()) < 0 ){
d[ k ] = this.capitalize( d[ k ]);
if( inflector.indexOf( non_titlecased_words, d[ k ].toLowerCase()) < 0 ){
d[ k ] = inflector.capitalize( d[ k ]);
}

@@ -497,4 +497,4 @@ }

tableize : function ( str ){
str = this.underscore( str );
str = this.pluralize( str );
str = inflector.underscore( str );
str = inflector.pluralize( str );

@@ -519,4 +519,4 @@ return str;

classify : function ( str ){
str = this.camelize( str );
str = this.singularize( str );
str = inflector.camelize( str );
str = inflector.singularize( str );

@@ -544,4 +544,4 @@ return str;

foreign_key : function( str, dropIdUbar ){
str = this.demodulize( str );
str = this.underscore( str ) + (( dropIdUbar ) ? ( '' ) : ( '_' )) + 'id';
str = inflector.demodulize( str );
str = inflector.underscore( str ) + (( dropIdUbar ) ? ( '' ) : ( '_' )) + 'id';

@@ -601,6 +601,3 @@ return str;

*/
inflector.version = JSON.parse(
require( 'fs' ).readFileSync( __dirname + '/../package.json', 'utf8' )
).version;
inflector.version = "1.2.5";
/**

@@ -607,0 +604,0 @@ * Exports module.

{
"name" : "inflection",
"version" : "1.2.5",
"version" : "1.2.6",
"description": "A port of inflection-js to node.js module",

@@ -16,3 +16,2 @@ "keywords" : [

{ "name": "brandondewitt" }
],

@@ -22,3 +21,3 @@ "dependencies" : {},

"node.flow": "1.2.2",
"should" : "1.2.1"
"should" : "1.2.2"
},

@@ -25,0 +24,0 @@ "main" : "./lib/inflection.js",

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