Comparing version 0.3.0 to 1.0.0
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-random/ Version 0.3.0. Copyright 2016 Mike Bostock. | ||
// https://d3js.org/d3-random/ Version 1.0.0. Copyright 2016 Mike Bostock. | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
@@ -1,2 +0,2 @@ | ||
// https://d3js.org/d3-random/ Version 0.3.0. Copyright 2016 Mike Bostock. | ||
// https://d3js.org/d3-random/ Version 1.0.0. Copyright 2016 Mike Bostock. | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(n.d3=n.d3||{})}(this,function(n){"use strict";function t(n,t){return n=null==n?0:+n,t=null==t?1:+t,1===arguments.length?(t=n,n=0):t-=n,function(){return Math.random()*t+n}}function r(n,t){var r,o;return n=null==n?0:+n,t=null==t?1:+t,function(){var e;if(null!=r)e=r,r=null;else do r=2*Math.random()-1,e=2*Math.random()-1,o=r*r+e*e;while(!o||o>1);return n+t*e*Math.sqrt(-2*Math.log(o)/o)}}function o(){var n=r.apply(this,arguments);return function(){return Math.exp(n())}}function e(n){return function(){for(var t=0,r=0;n>r;++r)t+=Math.random();return t}}function u(n){var t=e(n);return function(){return t()/n}}function a(n){return function(){return-Math.log(1-Math.random())/n}}n.randomUniform=t,n.randomNormal=r,n.randomLogNormal=o,n.randomBates=u,n.randomIrwinHall=e,n.randomExponential=a,Object.defineProperty(n,"__esModule",{value:!0})}); |
{ | ||
"name": "d3-random", | ||
"version": "0.3.0", | ||
"version": "1.0.0", | ||
"description": "Generate random numbers from various distributions.", | ||
"keywords": [ | ||
"d3", | ||
"d3-module", | ||
"random", | ||
@@ -26,9 +27,9 @@ "rng" | ||
"prepublish": "npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-random.js -c -m -o build/d3-random.min.js", | ||
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-random.js ../d3.github.com/d3-random.v0.3.js && cp build/d3-random.min.js ../d3.github.com/d3-random.v0.3.min.js && cd ../d3.github.com && git add d3-random.v0.3.js d3-random.v0.3.min.js && git commit -m \"d3-random ${VERSION}\" && git push && cd - && zip -j build/d3-random.zip -- LICENSE README.md build/d3-random.js build/d3-random.min.js" | ||
"postpublish": "VERSION=`node -e 'console.log(require(\"./package.json\").version)'`; git push && git push --tags && cp build/d3-random.js ../d3.github.com/d3-random.v1.js && cp build/d3-random.min.js ../d3.github.com/d3-random.v1.min.js && cd ../d3.github.com && git add d3-random.v1.js d3-random.v1.min.js && git commit -m \"d3-random ${VERSION}\" && git push && cd - && zip -j build/d3-random.zip -- LICENSE README.md build/d3-random.js build/d3-random.min.js" | ||
}, | ||
"devDependencies": { | ||
"d3-array": "~0.8.0", | ||
"d3-array": "1", | ||
"eslint": "2", | ||
"package-preamble": "0.0", | ||
"rollup": "0.27", | ||
"rollup": "0.31", | ||
"seedrandom": "2", | ||
@@ -35,0 +36,0 @@ "tape": "4", |
@@ -7,6 +7,6 @@ # d3-random | ||
If you use NPM, `npm install d3-random`. Otherwise, download the [latest release](https://github.com/d3/d3-random/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-random.v0.3.min.js) or as part of [D3 4.0](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported: | ||
If you use NPM, `npm install d3-random`. Otherwise, download the [latest release](https://github.com/d3/d3-random/releases/latest). You can also load directly from [d3js.org](https://d3js.org), either as a [standalone library](https://d3js.org/d3-random.v1.min.js) or as part of [D3 4.0](https://github.com/d3/d3). AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported: | ||
```html | ||
<script src="https://d3js.org/d3-random.v0.3.min.js"></script> | ||
<script src="https://d3js.org/d3-random.v1.min.js"></script> | ||
<script> | ||
@@ -13,0 +13,0 @@ |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0