@travi/any
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -48,3 +48,3 @@ 'use strict'; | ||
function objectWithKeys(keys) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -65,3 +65,3 @@ var object = {}; | ||
function listOf(factory) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
@@ -119,2 +119,2 @@ var listSize = options.size || integer(Object.assign({}, DEFAULT_SIZE_RANGE, options)); | ||
exports.fromList = fromList; | ||
exports['default'] = any; | ||
exports['default'] = any; |
{ | ||
"name": "@travi/any", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "random data generator for when test data is insignificant", | ||
"main": "dist/any.js", | ||
"jsnext:main": "dist/any.mjs", | ||
"module": "dist/any.module.js", | ||
"scripts": { | ||
@@ -31,12 +31,12 @@ "test": "grunt", | ||
"chance": "1.0.4", | ||
"lodash": "4.15.0" | ||
"lodash": "4.16.6" | ||
}, | ||
"devDependencies": { | ||
"@travi/eslint-config-travi": "0.3.0", | ||
"babel-cli": "6.10.1", | ||
"babel-cli": "6.18.0", | ||
"babel-preset-es2015-node": "6.1.1", | ||
"babel-preset-es2015-rollup": "1.2.0", | ||
"babel-register": "6.14.0", | ||
"babel-register": "6.18.0", | ||
"chai": "3.5.0", | ||
"coveralls": "2.11.12", | ||
"coveralls": "2.11.14", | ||
"greenkeeper-postpublish": "1.0.1", | ||
@@ -48,6 +48,6 @@ "grunt": "1.0.1", | ||
"grunt-mocha-istanbul": "5.0.2", | ||
"grunt-rollup": "0.8.0", | ||
"grunt-rollup": "1.0.1", | ||
"istanbul": "1.0.0-alpha.2", | ||
"load-grunt-config": "0.19.2", | ||
"mocha": "3.0.2", | ||
"mocha": "3.1.2", | ||
"proxyquire": "1.7.10", | ||
@@ -57,5 +57,5 @@ "referee": "1.2.0", | ||
"rollup-plugin-babel": "2.6.1", | ||
"sinon": "1.17.5", | ||
"sinon": "1.17.6", | ||
"time-grunt": "1.4.0" | ||
} | ||
} |
@@ -23,4 +23,12 @@ # Random data generator | ||
* Lots of my tests need objects to be generated, but the structure of those objects typically does not matter. | ||
Chance.js does not have a simple-object generator, so I've included that on my own. | ||
* Many of my tests need lists generated. Like objects, Chance.js does not generate lists, so I've included this | ||
Chance.js does not have a [simple-object generator](docs/API.md#simpleobject), so I've included that on my own. | ||
* Many of my tests need [lists](docs/API.md#listof) generated. Like objects, Chance.js does not generate lists, so I've included this | ||
on my own. | ||
## Install | ||
``` | ||
$ npm install @travi/any --save-dev | ||
``` | ||
## Documentation | ||
* [API](docs/API.md) |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
17174
8
300
34
1
+ Addedlodash@4.16.6(transitive)
- Removedlodash@4.15.0(transitive)
Updatedlodash@4.16.6