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 2.1.3 to 2.1.4

build/generateMschema.js

2

lib/helpers.js

@@ -42,3 +42,3 @@ var faker = require('../index');

o = o || ["a", "b", "c"];
for (var j, x, i = o.length; i; j = faker.random.number(i), x = o[--i], o[i] = o[j], o[j] = x);
for (var j, x, i = o.length-1; i; j = faker.random.number(i), x = o[--i], o[i] = o[j], o[j] = x);
return o;

@@ -45,0 +45,0 @@ };

{
"name": "faker",
"description": "Generate massive amounts of fake contextual data",
"version": "2.1.3",
"version": "2.1.4",
"contributors": [

@@ -33,2 +33,2 @@ "Marak Squires <marak.squires@gmail.com>",

"main": "index.js"
}
}

@@ -24,2 +24,12 @@ if (typeof module !== 'undefined') {

describe("shuffle()", function () {
it("the output is the same length as the input", function () {
sinon.spy(faker.random, 'number');
var shuffled = faker.helpers.shuffle(["a", "b"]);
assert.ok(shuffled.length === 2);
assert.ok(faker.random.number.calledWith(1));
faker.random.number.restore();
});
});
describe("slugify()", function () {

@@ -26,0 +36,0 @@ it("removes unwanted characters from URI string", function () {

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