underscore.inflection
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -27,6 +27,1 @@ var gulp = require('gulp'); | ||
gulp.task('docs', ['contribs']); | ||
gulp.task('install', function() { | ||
gulp.src('etc/hooks/*') | ||
.pipe(symlink('.git/hooks')); | ||
}); |
@@ -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 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
30192
538
1