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

chance-generators

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chance-generators - npm Package Compare versions

Comparing version 3.5.1 to 3.5.2

lib/unwrap.spec.js

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### v3.5.2 (2019-09-27)
- [#32](https://github.com/sunesimonsen/chance-generators/pull/32) unwrap: Let non-plain objects through ([Andreas Lind](mailto:andreaslindpetersen@gmail.com))
### v3.5.1 (2018-12-02)

@@ -2,0 +6,0 @@

2

lib/unwrap.js

@@ -14,3 +14,3 @@ "use strict";

return shape.generate(chance, context);
} else if ((typeof shape === "undefined" ? "undefined" : _typeof(shape)) === "object") {
} else if ((typeof shape === "undefined" ? "undefined" : _typeof(shape)) === "object" && shape.constructor === Object) {
return Object.keys(shape).reduce(function (result, key) {

@@ -17,0 +17,0 @@ result[key] = unwrap(shape[key], chance, context);

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.5.1",
"version": "3.5.2",
"main": "lib/index.js",

@@ -29,24 +29,24 @@ "files": [

"devDependencies": {
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-eslint": "8.2.1",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-2": "6.24.1",
"es6-set": "0.1.5",
"eslint": "3.19.0",
"eslint-config-pretty-standard": "0.2.2",
"imocha": "0.3.0",
"istanbul": "0.4.2",
"javascript-state-machine": "2.3.5",
"lint-staged": "4.0.3",
"mocha": "3.5.3",
"offline-github-changelog": "1.2.0",
"pre-commit": "1.2.2",
"prettier": "1.10.1",
"prettier-package-json": "1.4.0",
"serve": "9.4.2",
"unexpected": "10.37.1",
"unexpected-documentation-site-generator": "4.6.1",
"unexpected-generator": "0.1.1",
"unexpected-markdown": "1.7.4"
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"es6-set": "^0.1.5",
"eslint": "^3.19.0",
"eslint-config-pretty-standard": "^0.2.2",
"imocha": "^0.3.0",
"istanbul": "^0.4.2",
"javascript-state-machine": "^2.3.5",
"lint-staged": "^4.0.3",
"mocha": "^3.5.3",
"offline-github-changelog": "^1.2.0",
"pre-commit": "^1.2.2",
"prettier": "~1.15.3",
"prettier-package-json": "^1.4.0",
"serve": "^9.4.2",
"unexpected": "^10.37.1",
"unexpected-documentation-site-generator": "^4.6.1",
"unexpected-generator": "^0.1.1",
"unexpected-markdown": "^1.7.4"
},

@@ -53,0 +53,0 @@ "keywords": [

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