Comparing version 1.1.6 to 1.1.7
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
module.exports = require('./lib/Inflector'); |
@@ -17,6 +17,7 @@ 'use strict'; | ||
Inflections.getInstance = function(locale) { | ||
process.__Inflector_Inflections = process.__Inflector_Inflections || {}; | ||
process.__Inflector_Inflections[locale] = process.__Inflector_Inflections[locale] || new Inflections(); | ||
var storage = typeof process !== 'undefined' ? process : global; | ||
storage.__Inflector_Inflections = storage.__Inflector_Inflections || {}; | ||
storage.__Inflector_Inflections[locale] = storage.__Inflector_Inflections[locale] || new Inflections(); | ||
return process.__Inflector_Inflections[locale]; | ||
return storage.__Inflector_Inflections[locale]; | ||
}; | ||
@@ -23,0 +24,0 @@ |
@@ -45,6 +45,7 @@ 'use strict'; | ||
Transliterator.getInstance = function(locale) { | ||
process.__Inflector_Transliterator = process.__Inflector_Transliterator || {}; | ||
process.__Inflector_Transliterator[locale] = process.__Inflector_Transliterator[locale] || new Transliterator(); | ||
var storage = typeof process !== 'undefined' ? process : global; | ||
storage.__Inflector_Transliterator = storage.__Inflector_Transliterator || {}; | ||
storage.__Inflector_Transliterator[locale] = storage.__Inflector_Transliterator[locale] || new Transliterator(); | ||
return process.__Inflector_Transliterator[locale]; | ||
return storage.__Inflector_Transliterator[locale]; | ||
}; | ||
@@ -51,0 +52,0 @@ |
{ | ||
"name": "inflected", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "A port of ActiveSupport's inflector to Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
27998
13
426