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

chance

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chance - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

4

bower.json
{
"name": "chance",
"version": "1.0.10",
"version": "1.0.11",
"main": "chance.js",

@@ -17,3 +17,3 @@ "ignore": [

"name": "Victor Quinn",
"web": "http://victorquinn.com"
"web": "https://www.victorquinn.com"
},

@@ -20,0 +20,0 @@ "devDependencies": {

{
"name": "chance",
"main": "./chance.js",
"version": "1.0.10",
"version": "1.0.11",
"description": "Chance - Utility library to generate anything random",

@@ -51,3 +51,3 @@ "homepage": "http://chancejs.com",

"email": "mail@victorquinn.com",
"web": "http://victorquinn.com"
"web": "https://www.victorquinn.com"
}

@@ -54,0 +54,0 @@ ],

@@ -113,3 +113,3 @@ # Chance

### Victor Quinn
[http://victorquinn.com](http://victorquinn.com)
[https://www.victorquinn.com](https://www.victorquinn.com)

@@ -116,0 +116,0 @@ Please feel free to reach out to me if you have any questions or suggestions.

@@ -299,2 +299,20 @@ import test from 'ava'

test('letter() returns a letter', t => {
_.times(1000, () => {
let letter = chance.letter()
t.is(typeof letter, 'string')
t.is(letter.length, 1)
t.true(letter.match(/[a-z]/) !== null)
})
})
test('letter() can take upper case', t => {
_.times(1000, () => {
let letter = chance.letter({ casing: 'upper' })
t.is(typeof letter, 'string')
t.is(letter.length, 1)
t.true(letter.match(/[A-Z]/) !== null)
})
})
test('natural() returns a random natural', t => {

@@ -301,0 +319,0 @@ t.is(typeof chance.natural(), 'number')

Sorry, the diff of this file is too big to display

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