New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@chancejs/core

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chancejs/core - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

6

lib/main.test.js

@@ -6,9 +6,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const main_1 = __importDefault(require("./main"));
const ava_1 = __importDefault(require("ava"));
const main_1 = __importDefault(require("./main"));
const chance = new main_1.default();
ava_1.default('chance() returns a random number', t => {
ava_1.default('chance() returns a random number', (t) => {
t.is(typeof chance.random(), 'number');
});
ava_1.default('chance() returns a random number between 0 and 1', t => {
ava_1.default('chance() returns a random number between 0 and 1', (t) => {
for (let i = 0; i < 1000; i++) {

@@ -15,0 +15,0 @@ t.true(chance.random() >= 0 && chance.random() <= 1);

{
"name": "@chancejs/core",
"version": "2.2.3",
"version": "2.2.4",
"description": "ChanceJS core utilities",

@@ -8,2 +8,3 @@ "main": "lib/main.js",

"scripts": {
"build": "tsc",
"test": "ava"

@@ -26,4 +27,3 @@ },

"onchange": "^6.0.0",
"tslint": "^5.16.0",
"typescript": "^3.4.5"
"typescript": "^3.5.3"
},

@@ -39,6 +39,6 @@ "ava": {

"dependencies": {
"@chancejs/mersenne-twister": "^2.2.2",
"@chancejs/mersenne-twister": "^2.2.4",
"@types/node": "^12.0.3"
},
"gitHead": "52a60d01b278429212a2e538449503c7a841300a"
"gitHead": "3ed18a4b93a6e1d9d1db93fdd2e1061de22f6e6d"
}

@@ -0,11 +1,11 @@

import Chance from './main'
import test from 'ava'
import Chance from './main'
const chance = new Chance()
test('chance() returns a random number', t => {
test('chance() returns a random number', (t) => {
t.is(typeof chance.random(), 'number')
})
test('chance() returns a random number between 0 and 1', t => {
test('chance() returns a random number between 0 and 1', (t) => {
for (let i = 0; i < 1000; i++) {

@@ -12,0 +12,0 @@ t.true(chance.random() >= 0 && chance.random() <= 1)

Sorry, the diff of this file is not supported yet

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