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

faker

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

faker - npm Package Compare versions

Comparing version 4.0.0 to 4.1.0

39

lib/index.js

@@ -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>"

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