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

ml-random

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-random - npm Package Compare versions

Comparing version 0.4.1 to 0.5.0

5

History.md

@@ -0,1 +1,6 @@

<a name="0.5.0"></a>
# [0.5.0](https://github.com/mljs/random/compare/v0.4.1...v0.5.0) (2018-08-11)
<a name="0.4.1"></a>

@@ -2,0 +7,0 @@ ## [0.4.1](https://github.com/mljs/random/compare/v0.4.0...v0.4.1) (2018-05-23)

2

lib-es6/index.js
// tslint:disable-next-line
const XSAdd = require('ml-xsadd');
import XSAdd from 'ml-xsadd';
import choice from './choice';

@@ -4,0 +4,0 @@ /**

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable-next-line
const XSAdd = require('ml-xsadd');
const ml_xsadd_1 = require("ml-xsadd");
const choice_1 = require("./choice");

@@ -15,3 +15,3 @@ /**

if (typeof seedOrRandom === 'number') {
const xsadd = new XSAdd(seedOrRandom);
const xsadd = new ml_xsadd_1.default(seedOrRandom);
this.randomGenerator = xsadd.random;

@@ -18,0 +18,0 @@ }

{
"name": "ml-random",
"version": "0.4.1",
"version": "0.5.0",
"description": "choose randomly from a selection of elements",

@@ -53,17 +53,17 @@ "main": "lib/index.js",

"dependencies": {
"ml-xsadd": "^1.0.0"
"ml-xsadd": "^2.0.0"
},
"devDependencies": {
"@types/jest": "^22.2.3",
"@types/jest": "^23.3.1",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"codecov": "^3.0.2",
"jest": "^22.4.3",
"codecov": "^3.0.4",
"jest": "^23.5.0",
"npm-run-all": "^4.1.3",
"shx": "^0.2.2",
"ts-jest": "^22.4.6",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.12.0",
"shx": "^0.3.2",
"ts-jest": "^23.1.3",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"typedoc": "^0.11.1",
"typescript": "^2.8.3"
"typescript": "^3.0.1"
}
}

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

import * as XSAdd from 'ml-xsadd';
import XSAdd from 'ml-xsadd';
import Random from '..';

@@ -3,0 +3,0 @@

// tslint:disable-next-line
const XSAdd = require('ml-xsadd');
import XSAdd from 'ml-xsadd';
import choice from './choice';

@@ -4,0 +4,0 @@ import { IChoiceOptions } from './Options';

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