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

underscore.inflection

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underscore.inflection - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

5

gulpfile.js

@@ -27,6 +27,1 @@ var gulp = require('gulp');

gulp.task('docs', ['contribs']);
gulp.task('install', function() {
gulp.src('etc/hooks/*')
.pipe(symlink('.git/hooks'));
});

19

lib/underscore.inflection.js

@@ -7,3 +7,16 @@ // Underscore.inflection.js

(function(_, undefined) {
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['underscore'], factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
module.exports = factory(require('underscore'));
} else {
// Browser globals (root is window)
factory(root._);
}
})(this, function(_, undefined) {
var plurals = [];

@@ -245,2 +258,4 @@ var singulars = [];

_.mixin(inflector.resetInflections());
})(_);
return inflector;
});
{
"name": "underscore.inflection",
"version": "1.0.1",
"version": "1.1.0",
"description": "ActiveSupport::Inflector, for underscore!",

@@ -11,2 +11,3 @@ "main": "index.js",

"test": "mocha",
"browser": "open test/index.html",
"coverage": "JSCOV=1 mocha -R mocha-lcov-reporter | coveralls",

@@ -44,3 +45,3 @@ "jscov": "gulp jscov",

"jscoverage": "~0.5.5",
"mocha": "~1.20.1",
"mocha": "^1.21.4",
"mocha-lcov-reporter": "0.0.1",

@@ -47,0 +48,0 @@ "underscore": "~1.6.0"

@@ -14,3 +14,3 @@ /**

*/
require('../' + process.env['npm_package_main']);
require('..');

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