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 2.0.7 to 2.0.8

.github/FUNDING.yml

4

lib/any.cjs.js

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

function listOf(factory, options = {}) {
const listSize = options.size || integer(_objectSpread2({}, DEFAULT_SIZE_RANGE, {}, options));
const listSize = options.size || integer(_objectSpread2(_objectSpread2({}, DEFAULT_SIZE_RANGE), options));

@@ -131,3 +131,3 @@ if (options.uniqueOn) {

function objectWithKeys (keys, options = {}) {
return keys.map((key, index) => options.factory ? [key, options.factory(key, index)] : [key, string()]).reduce((acc, [key, value]) => _objectSpread2({}, acc, {
return keys.map((key, index) => options.factory ? [key, options.factory(key, index)] : [key, string()]).reduce((acc, [key, value]) => _objectSpread2(_objectSpread2({}, acc), {}, {
[key]: value

@@ -134,0 +134,0 @@ }), {});

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

function listOf(factory, options = {}) {
const listSize = options.size || integer(_objectSpread2({}, DEFAULT_SIZE_RANGE, {}, options));
const listSize = options.size || integer(_objectSpread2(_objectSpread2({}, DEFAULT_SIZE_RANGE), options));

@@ -127,3 +127,3 @@ if (options.uniqueOn) {

function objectWithKeys (keys, options = {}) {
return keys.map((key, index) => options.factory ? [key, options.factory(key, index)] : [key, string()]).reduce((acc, [key, value]) => _objectSpread2({}, acc, {
return keys.map((key, index) => options.factory ? [key, options.factory(key, index)] : [key, string()]).reduce((acc, [key, value]) => _objectSpread2(_objectSpread2({}, acc), {}, {
[key]: value

@@ -130,0 +130,0 @@ }), {});

{
"name": "@travi/any",
"version": "2.0.7",
"version": "2.0.8",
"description": "random data generator for when test data is insignificant",

@@ -12,2 +12,3 @@ "main": "lib/any.cjs.js",

"lint:md": "remark . --frail",
"lint:peer": "npm ls >/dev/null",
"tests:unit": "mocha --recursive test/unit/",

@@ -27,2 +28,5 @@ "test": "run-s clean lint:* coverage",

},
"funding": {
"url": "https://github.com/travi/any?sponsor=1"
},
"keywords": [

@@ -38,4 +42,4 @@ "test",

"name": "Trevor Richardson",
"email": "tr@trevorrichardson.me",
"url": "https://twitter.com/intelxdesign"
"email": "npm@trevorrichardson.me",
"url": "https://trevorrichardson.me"
},

@@ -54,3 +58,3 @@ {

"dependencies": {
"chance": "1.1.4",
"chance": "1.1.5",
"debug": "4.1.1",

@@ -61,27 +65,28 @@ "lodash": "4.17.15",

"devDependencies": {
"@babel/plugin-transform-exponentiation-operator": "7.7.4",
"@babel/register": "7.7.4",
"@travi/babel-preset": "3.0.7",
"@travi/eslint-config-travi": "1.8.7",
"@babel/plugin-transform-exponentiation-operator": "7.8.3",
"@babel/register": "7.9.0",
"@travi/babel-preset": "3.0.19",
"@travi/eslint-config": "1.0.34",
"@travi/eslint-config-mocha": "1.0.8",
"chai": "4.2.0",
"commitlint-config-travi": "1.3.4",
"coveralls": "3.0.9",
"cz-conventional-changelog": "3.0.2",
"commitlint-config-travi": "1.3.6",
"coveralls": "3.1.0",
"cz-conventional-changelog": "3.2.0",
"formatio": "1.2.0",
"globstar": "1.0.0",
"husky": "3.1.0",
"mocha": "6.2.2",
"husky": "4.2.5",
"mocha": "7.1.2",
"npm-run-all": "4.1.5",
"nyc": "14.1.1",
"nyc": "15.0.1",
"proxyquire": "2.1.3",
"referee": "1.2.0",
"referee-sinon": "1.0.3",
"remark-cli": "7.0.1",
"remark-preset-lint-travi": "1.3.0",
"remark-toc": "6.0.0",
"rimraf": "3.0.0",
"rollup": "1.27.8",
"remark-cli": "8.0.0",
"remark-preset-lint-travi": "1.3.6",
"remark-toc": "7.0.0",
"rimraf": "3.0.2",
"rollup": "2.9.1",
"rollup-plugin-auto-external": "2.0.0",
"rollup-plugin-babel": "4.3.3",
"sinon": "7.5.0"
"rollup-plugin-babel": "4.4.0",
"sinon": "9.0.2"
},

@@ -88,0 +93,0 @@ "config": {

# Random data generator
<!-- status badges -->
<!--status-badges start -->
[![Build Status](https://img.shields.io/travis/travi/any.svg)](https://travis-ci.org/travi/any)
[![Build Status](https://img.shields.io/travis/com/travi/any.svg)](https://travis-ci.com/travi/any)
[![Coverage Status](http://img.shields.io/coveralls/travi/any.svg)](https://coveralls.io/r/travi/any?branch=master)
<!--status-badges end -->
Random data generator for when test data is insignificant. Tailoring data too

@@ -34,3 +36,3 @@ closely for the domain can end up being confusing in tests because it distracts

<!-- consumer badges -->
<!--consumer-badges start -->

@@ -42,2 +44,4 @@ [![npm](https://img.shields.io/npm/v/@travi/any.svg?style=flat)](https://www.npmjs.com/package/@travi/any)

<!--consumer-badges end -->
### Install

@@ -56,3 +60,3 @@

<!-- contribution badges -->
<!--contribution-badges start -->

@@ -63,4 +67,6 @@ [![PRs Welcome][prs-badge]][prs]

[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Greenkeeper badge](https://badges.greenkeeper.io/travi/any.svg)](https://greenkeeper.io/)
[![Renovate][renovate-badge]][renovate-link]
<!--contribution-badges end -->
### Dependencies

@@ -82,1 +88,5 @@

[prs]: http://makeapullrequest.com
[renovate-link]: https://renovatebot.com
[renovate-badge]: https://img.shields.io/badge/renovate-enabled-brightgreen.svg?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNjkgMzY5Ij48Y2lyY2xlIGN4PSIxODkuOSIgY3k9IjE5MC4yIiByPSIxODQuNSIgZmlsbD0iI2ZmZTQyZSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUgLTYpIi8+PHBhdGggZmlsbD0iIzhiYjViNSIgZD0iTTI1MSAyNTZsLTM4LTM4YTE3IDE3IDAgMDEwLTI0bDU2LTU2YzItMiAyLTYgMC03bC0yMC0yMWE1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BsLTktOGM1IDUgMTIgNSAxNiAwbDgtOGM0LTQgNC0xMSAwLTE1eiIvPjxwYXRoIGZpbGw9IiNlYjZlMmQiIGQ9Ik0yNjAgMjMzbC00LTRjLTYtNi0xNy02LTIzIDAtNyA3LTcgMTcgMCAyNGw0IDRjLTQtNS00LTExIDAtMTZsOC04YzQtNCAxMS00IDE1IDB6Ii8+PHBhdGggZmlsbD0iIzEzYWNiZCIgZD0iTTEzNCAyNDhjLTQgMC04LTItMTEtNWwtMjMtMjNhMTYgMTYgMCAwMTAtMjNMMjAxIDk2YTE2IDE2IDAgMDEyMiAwbDI0IDI0YzYgNiA2IDE2IDAgMjJMMTQ2IDI0M2MtMyAzLTcgNS0xMiA1em03OC0xNDdsLTQgMi0xMDEgMTAxYTYgNiAwIDAwMCA5bDIzIDIzYTYgNiAwIDAwOSAwbDEwMS0xMDFhNiA2IDAgMDAwLTlsLTI0LTIzLTQtMnoiLz48cGF0aCBmaWxsPSIjYmY0NDA0IiBkPSJNMjg0IDMwNGMtNCAwLTgtMS0xMS00bC00Ny00N2MtNi02LTYtMTYgMC0yMmw4LThjNi02IDE2LTYgMjIgMGw0NyA0NmM2IDcgNiAxNyAwIDIzbC04IDhjLTMgMy03IDQtMTEgNHptLTM5LTc2Yy0xIDAtMyAwLTQgMmwtOCA3Yy0yIDMtMiA3IDAgOWw0NyA0N2E2IDYgMCAwMDkgMGw3LThjMy0yIDMtNiAwLTlsLTQ2LTQ2Yy0yLTItMy0yLTUtMnoiLz48L3N2Zz4=

Sorry, the diff of this file is not supported yet

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