Comparing version 0.5.0 to 0.5.1
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
113652
2330
14