Socket
Socket
Sign inDemoInstall

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.5.0 to 0.5.1

4

bower.json
{
"name": "chance",
"version": "0.4.2",
"main": "chance.min.js",
"version": "0.5.1",
"main": "chance.js",
"ignore": ["node_modules"],

@@ -6,0 +6,0 @@ "description": "Chance - Utility library to generate anything random",

@@ -1,2 +0,2 @@

// Chance.js 0.5.0
// Chance.js 0.5.1
// http://chancejs.com

@@ -792,8 +792,8 @@ // (c) 2013 Victor Quinn

Chance.prototype.date = function (options) {
var year = parseInt(chance.year(), 10),
m = chance.month({raw: true}),
var year = parseInt(this.year(), 10),
m = this.month({raw: true}),
// Necessary because Date() 0-indexes month but not day or year
// for some reason.
month = m.numeric - 1,
day = chance.natural({min: 1, max: m.days}),
day = this.natural({min: 1, max: m.days}),
date;

@@ -1074,3 +1074,3 @@

Chance.prototype.VERSION = "0.5.0";
Chance.prototype.VERSION = "0.5.1";

@@ -1077,0 +1077,0 @@ // Mersenne Twister from https://gist.github.com/banksean/300494

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

grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-contrib-jshint');

@@ -54,0 +55,0 @@ grunt.loadNpmTasks('grunt-contrib-uglify');

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

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

"uglify-js": "1.2.6",
"underscore": "1.5.2"
"underscore": "1.5.2",
"grunt-bump": "0.0.11"
},

@@ -37,0 +38,0 @@ "scripts": {

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