Comparing version 4.0.0 to 4.1.0
@@ -41,2 +41,11 @@ /* | ||
function bindAll(obj) { | ||
Object.keys(obj).forEach(function(meth) { | ||
if (typeof obj[meth] === 'function') { | ||
obj[meth] = obj[meth].bind(obj); | ||
} | ||
}); | ||
return obj; | ||
} | ||
var Fake = require('./fake'); | ||
@@ -46,4 +55,3 @@ self.fake = new Fake(self).fake; | ||
var Random = require('./random'); | ||
self.random = new Random(self, opts.seed); | ||
// self.random = require('./random'); | ||
self.random = bindAll(new Random(self)); | ||
@@ -54,40 +62,39 @@ var Helpers = require('./helpers'); | ||
var Name = require('./name'); | ||
self.name = new Name(self); | ||
// self.name = require('./name'); | ||
self.name = bindAll(new Name(self)); | ||
var Address = require('./address'); | ||
self.address = new Address(self); | ||
self.address = bindAll(new Address(self)); | ||
var Company = require('./company'); | ||
self.company = new Company(self); | ||
self.company = bindAll(new Company(self)); | ||
var Finance = require('./finance'); | ||
self.finance = new Finance(self); | ||
self.finance = bindAll(new Finance(self)); | ||
var Image = require('./image'); | ||
self.image = new Image(self); | ||
self.image = bindAll(new Image(self)); | ||
var Lorem = require('./lorem'); | ||
self.lorem = new Lorem(self); | ||
self.lorem = bindAll(new Lorem(self)); | ||
var Hacker = require('./hacker'); | ||
self.hacker = new Hacker(self); | ||
self.hacker = bindAll(new Hacker(self)); | ||
var Internet = require('./internet'); | ||
self.internet = new Internet(self); | ||
self.internet = bindAll(new Internet(self)); | ||
var Database = require('./database'); | ||
self.database = new Database(self); | ||
self.database = bindAll(new Database(self)); | ||
var Phone = require('./phone_number'); | ||
self.phone = new Phone(self); | ||
self.phone = bindAll(new Phone(self)); | ||
var _Date = require('./date'); | ||
self.date = new _Date(self); | ||
self.date = bindAll(new _Date(self)); | ||
var Commerce = require('./commerce'); | ||
self.commerce = new Commerce(self); | ||
self.commerce = bindAll(new Commerce(self)); | ||
var System = require('./system'); | ||
self.system = new System(self); | ||
self.system = bindAll(new System(self)); | ||
@@ -94,0 +101,0 @@ var _definitions = { |
@@ -5,2 +5,2 @@ var Faker = require('../lib'); | ||
faker.locales['en'] = require('../lib/locales/en'); | ||
module['exports'] = faker; | ||
module['exports'] = faker; |
{ | ||
"name": "faker", | ||
"description": "Generate massive amounts of fake contextual data", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Marak Squires <marak.squires@gmail.com>" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5479227
218576
2