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 0.7.7 to 0.8.0

2

bower.json
{
"name": "chance",
"version": "0.7.7",
"version": "0.8.0",
"main": "chance.js",

@@ -5,0 +5,0 @@ "ignore": [

@@ -5,3 +5,3 @@ {

"description": "Minimalist generator of random strings, numbers, etc.",
"version": "0.7.7",
"version": "0.8.0",
"keywords": ["chance", "random", "generator", "test"],

@@ -8,0 +8,0 @@ "main": "chance.js",

@@ -11,3 +11,3 @@ module.exports = function (grunt) {

identifier: 'chance-coverage',
reporter: "Spec",
reporter: 'Spec',
pattern: 'test/*.js'

@@ -14,0 +14,0 @@ },

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

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

"grunt-contrib-jshint": "^0.11.0",
"grunt-contrib-uglify": "^0.7.0",
"grunt-contrib-uglify": "^0.9.2",
"grunt-contrib-watch": "0.6.1",

@@ -34,3 +34,2 @@ "grunt-js-test": "git://github.com/victorquinn/grunt-js-test#ffc580375f0ff7b496026ab87b4a9666992d2f33",

},
"bin": "./bin/chance.js",
"keywords": [

@@ -46,2 +45,11 @@ "chance",

],
"jam": {
"main": "chance.js"
},
"github": "https://github.com/victorquinn/chancejs",
"maintainers": [{
"name": "Victor Quinn",
"email": "mail@victorquinn.com",
"web": "http://victorquinn.com"
}],
"spm": {

@@ -52,6 +60,3 @@ "main": "chance.js",

]
},
"dependencies": {
"minimist": "^1.1.0"
}
}

@@ -5,3 +5,3 @@ # Chance

[![Build Status](https://travis-ci.org/victorquinn/chancejs.svg?branch=develop)](https://travis-ci.org/victorquinn/chancejs) [![GitHub license](https://img.shields.io/github/license/victorquinn/chancejs.svg)](https://github.com/victorquinn/chancejs) [![GitHub stars](https://img.shields.io/github/stars/victorquinn/chancejs.svg)](https://github.com/victorquinn/chancejs) [![npm](https://img.shields.io/npm/dm/chance.svg)](https://npmjs.com/package/chance) [![npm](https://img.shields.io/npm/v/chance.svg)](https://npmjs.com/package/chance) [![Coverage Status](https://coveralls.io/repos/victorquinn/chancejs/badge.svg?branch=develop)](https://coveralls.io/r/victorquinn/chancejs?branch=develop) [![awesomeness](https://img.shields.io/badge/awesomeness-maximum-red.svg)](https://github.com/victorquinn/chancejs)
[![Build Status](https://travis-ci.org/victorquinn/chancejs.svg?branch=develop)](https://travis-ci.org/victorquinn/chancejs) [![GitHub license](https://img.shields.io/github/license/victorquinn/chancejs.svg)](https://github.com/victorquinn/chancejs) [![GitHub stars](https://img.shields.io/github/stars/victorquinn/chancejs.svg)](https://github.com/victorquinn/chancejs) [![npm](https://img.shields.io/npm/dm/chance.svg)](https://npmjs.com/package/chance) [![npm](https://img.shields.io/npm/v/chance.svg)](https://npmjs.com/package/chance) [![Coverage Status](https://coveralls.io/repos/victorquinn/chancejs/badge.svg?branch=master)](https://coveralls.io/r/victorquinn/chancejs?branch=master) [![awesomeness](https://img.shields.io/badge/awesomeness-maximum-red.svg)](https://github.com/victorquinn/chancejs)

@@ -90,18 +90,4 @@ Chance - Random generator helper for JavaScript

To use Chance from the command line, install it globally with:
Chance CLI has moved to its [own repository](https://github.com/victorquinn/chancejs-cli)!
```shell
npm install -g chance
```
Then invoke any generator by name, like so:
```shell
$ chance name --prefix
Dr. Georgia Sanchez
$ chance latitude --min 12.34 --max 56.78
22.01836
```
### Node.js

@@ -214,6 +200,10 @@

1. Install dependencies from package.json by running `npm install`
2. Install dependencies for testing by running `bower install`
3. Run the test via `npm test`
4. Make some fun new modules!
2. Run the test via `npm test`
3. Make some fun new modules!
*Note: Formerly, there was a `develop` branch where active development would
happen, but now it's all on `master` baby. Just submit PRs directly to `master`.
Sorry if the `develop` branch going away caused any trouble, but it was time to
rip the bandaid off.*
This project is licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License) so feel free to hack away :)

@@ -220,0 +210,0 @@

@@ -396,2 +396,12 @@ /* jshint newcap:false */

it("returns different results if two different strings are provided redux", function () {
// Credit to @dan-tilley for noticing this flaw in the old seed
chance1 = new Chance("abe");
chance2 = new Chance("acc");
_(1000).times(function () {
expect(chance1.random()).to.not.equal(chance2.random());
});
});
it("returns different results if multiple arguments are provided", function () {

@@ -398,0 +408,0 @@ seed = new Date().getTime();

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

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

Sorry, the diff of this file is not supported yet

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