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

@travi/any

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travi/any - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

12

lib/any.cjs.js

@@ -173,3 +173,3 @@ 'use strict';

var simpleObject = function () {
function simpleObject () {
var object = {};

@@ -183,9 +183,9 @@ var size = integer(DEFAULT_SIZE_RANGE);

return object;
};
}
var fromList = function (list) {
function fromList (list) {
return list[integer({ min: 0, max: list.length - 1 })];
};
}
var objectWithKeys = function (keys) {
function objectWithKeys (keys) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -202,3 +202,3 @@

}, {});
};
}

@@ -205,0 +205,0 @@ var index = {

@@ -169,3 +169,3 @@ import Chance from 'chance';

var simpleObject = function () {
function simpleObject () {
var object = {};

@@ -179,9 +179,9 @@ var size = integer(DEFAULT_SIZE_RANGE);

return object;
};
}
var fromList = function (list) {
function fromList (list) {
return list[integer({ min: 0, max: list.length - 1 })];
};
}
var objectWithKeys = function (keys) {
function objectWithKeys (keys) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -198,3 +198,3 @@

}, {});
};
}

@@ -201,0 +201,0 @@ var index = {

@@ -1,1 +0,87 @@

{"name":"@travi/any","version":"1.6.0","description":"random data generator for when test data is insignificant","main":"lib/any.cjs.js","module":"lib/any.es.js","scripts":{"clean":"rimraf coverage/ lib/","build":"rollup -c","lint:js":"eslint .","lint:md":"globstar --node -- markdownlint *.md '**/*.md'","tests:unit":"mocha --recursive test/unit/","test":"run-s clean lint:* coverage","coverage":"nyc run-s tests:unit","report-coverage":"nyc report --reporter=text-lcov | coveralls","preversion":"npm test","prepublish":"npm run build","precommit":"npm test","commitmsg":"validate-commit-msg","semantic-release":"semantic-release pre && npm publish && semantic-release post","greenkeeper:update-lockfile":"greenkeeper-lockfile-update","greenkeeper:upload-lockfile":"greenkeeper-lockfile-upload"},"repository":{"type":"git","url":"https://github.com/travi/any.git"},"keywords":["test","random","data","chance"],"author":"Matt Travi <npm@travi.org> (https://matt.travi.org/)","contributors":[{"name":"Trevor Richardson","email":"tr@trevorrichardson.me","url":"https://twitter.com/intelxdesign"}],"license":"MIT","bugs":{"url":"https://github.com/travi/any/issues"},"homepage":"https://github.com/travi/any#readme","dependencies":{"chance":"1.0.12","debug":"3.1.0","lodash":"4.17.4","mersenne-twister":"1.1.0"},"devDependencies":{"@travi/eslint-config-travi":"1.5.19","babel-cli":"6.26.0","babel-plugin-transform-exponentiation-operator":"6.24.1","babel-preset-es2015-node":"6.1.1","babel-preset-es2015-rollup":"3.0.0","babel-preset-stage-3":"6.24.1","babel-register":"6.26.0","chai":"4.1.2","coveralls":"3.0.0","cz-conventional-changelog":"2.1.0","formatio":"1.2.0","globstar":"1.0.0","greenkeeper-lockfile":"1.12.0","husky":"0.14.3","markdownlint-cli":"0.5.0","mocha":"4.0.1","npm-run-all":"4.1.2","nyc":"11.3.0","proxyquire":"1.8.0","referee":"1.2.0","referee-sinon":"1.0.3","rimraf":"2.6.2","rollup":"0.52.1","rollup-plugin-babel":"3.0.2","semantic-release":"8.2.0","sinon":"4.1.2","validate-commit-msg":"2.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}}}
{
"name": "@travi/any",
"version": "1.6.1",
"description": "random data generator for when test data is insignificant",
"main": "lib/any.cjs.js",
"module": "lib/any.es.js",
"scripts": {
"clean": "rimraf coverage/ lib/",
"build": "rollup -c",
"lint:js": "eslint .",
"lint:md": "globstar --node -- markdownlint *.md '**/*.md'",
"tests:unit": "mocha --recursive test/unit/",
"test": "run-s clean lint:* coverage",
"coverage": "nyc run-s tests:unit",
"report-coverage": "nyc report --reporter=text-lcov | coveralls",
"preversion": "npm test",
"prepublish": "npm run build",
"precommit": "npm test",
"commitmsg": "validate-commit-msg",
"semantic-release": "semantic-release",
"greenkeeper:update-lockfile": "greenkeeper-lockfile-update",
"greenkeeper:upload-lockfile": "greenkeeper-lockfile-upload"
},
"repository": {
"type": "git",
"url": "https://github.com/travi/any.git"
},
"keywords": [
"test",
"random",
"data",
"chance"
],
"author": "Matt Travi <npm@travi.org> (https://matt.travi.org/)",
"contributors": [
{
"name": "Trevor Richardson",
"email": "tr@trevorrichardson.me",
"url": "https://twitter.com/intelxdesign"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/travi/any/issues"
},
"homepage": "https://github.com/travi/any#readme",
"dependencies": {
"chance": "1.0.13",
"debug": "3.1.0",
"lodash": "4.17.4",
"mersenne-twister": "1.1.0"
},
"devDependencies": {
"@travi/eslint-config-travi": "1.6.2",
"babel-cli": "6.26.0",
"babel-plugin-transform-exponentiation-operator": "6.24.1",
"babel-preset-es2015-node": "6.1.1",
"babel-preset-es2015-rollup": "3.0.0",
"babel-preset-stage-3": "6.24.1",
"babel-register": "6.26.0",
"chai": "4.1.2",
"coveralls": "3.0.0",
"cz-conventional-changelog": "2.1.0",
"formatio": "1.2.0",
"globstar": "1.0.0",
"greenkeeper-lockfile": "1.12.0",
"husky": "0.14.3",
"markdownlint-cli": "0.6.0",
"mocha": "5.0.0",
"npm-run-all": "4.1.2",
"nyc": "11.4.1",
"proxyquire": "1.8.0",
"referee": "1.2.0",
"referee-sinon": "1.0.3",
"rimraf": "2.6.2",
"rollup": "0.54.1",
"rollup-plugin-babel": "3.0.3",
"semantic-release": "12.2.2",
"sinon": "4.1.6",
"validate-commit-msg": "2.14.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
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