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

casual

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

casual - npm Package Compare versions

Comparing version 1.4.8 to 1.4.9

2

package.json
{
"name": "casual",
"version": "1.4.8",
"version": "1.4.9",
"description": "Fake data generator",

@@ -5,0 +5,0 @@ "main": "src/casual.js",

@@ -42,14 +42,14 @@ ## Fake data generator [![Build Status](https://travis-ci.org/boo1ean/casual.png?branch=master)](https://travis-ci.org/boo1ean/casual)

casual.country // 'United Kingdom'
casual.city // 'New Ortiz chester'
casual.zip // '26995'
casual.street // 'Jadyn Islands'
casual.address // '6390 Tremblay Pines Suite 784'
casual.address1 // '8417 Veda Circles'
casual.address2 // 'Suite 648'
casual.state // 'Michigan'
casual.state_abbr // 'CO'
casual.latitude // 90.0610
casual.longitude // 180.0778
casual.building_number // 2413
casual.country // 'United Kingdom'
casual.city // 'New Ortiz chester'
casual.zip(digits = {5, 9}) // '26995-7979' (if no digits specified then random selection between ZIP and ZIP+4)
casual.street // 'Jadyn Islands'
casual.address // '6390 Tremblay Pines Suite 784'
casual.address1 // '8417 Veda Circles'
casual.address2 // 'Suite 648'
casual.state // 'Michigan'
casual.state_abbr // 'CO'
casual.latitude // 90.0610
casual.longitude // 180.0778
casual.building_number // 2413

@@ -91,3 +91,3 @@ // Text

casual.catch_phrase // 'Synchronised optimal concept'
casual.phone // '380 82 790 25 92'
casual.phone // '982-790-2592'

@@ -94,0 +94,0 @@ // Numbers

@@ -53,4 +53,10 @@ var provider = {

zip: function() {
return this.numerify(this.random_element(this.zip_formats));
zip: function(digits) {
if (digits === 5) {
return this.numerify(this.zip_formats[0]);
} else if (digits === 9) {
return this.numerify(this.zip_formats[1]);
} else {
return this.numerify(this.random_element(this.zip_formats));
}
},

@@ -57,0 +63,0 @@

var glues = ['.', '-', '_', null];
var provider = {
phone_formats: ['380 ## ### ## ##'],
phone_formats: ['###-###-####'],

@@ -42,3 +42,3 @@ prefix: ['Mr.', 'Mrs.', 'Ms.', 'Miss', 'Dr.'],

name: function() {
return this.populate_one_of(this.name_formats)
return this.populate_one_of(this.name_formats);
},

@@ -91,3 +91,3 @@

result.push(this.random_element(this.catch_phrase_words[i]));
};
}

@@ -94,0 +94,0 @@ return result.join(' ');

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