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

archetype

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

archetype - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

10

CHANGELOG.md

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

<a name="0.11.1"></a>
## [0.11.1](https://github.com/boosterfuels/archetype/compare/v0.11.0...v0.11.1) (2020-02-27)
### Bug Fixes
* throw non-empty object $default error if passing in a date or other non-POJO ([76e7bfa](https://github.com/boosterfuels/archetype/commit/76e7bfa))
<a name="0.11.0"></a>

@@ -2,0 +12,0 @@ # [0.11.0](https://github.com/boosterfuels/archetype/compare/v0.10.2...v0.11.0) (2020-02-27)

2

package.json
{
"name": "archetype",
"version": "0.11.0",
"version": "0.11.1",
"author": "Valeri Karpov <val@boosterfuels.com>",

@@ -5,0 +5,0 @@ "dependencies": {

@@ -79,3 +79,5 @@ 'use strict';

return [];
} else if (!Array.isArray(obj) && Object.keys(obj).length === 0) {
} else if (!Array.isArray(obj) &&
Object.keys(obj).length === 0 &&
[void 0, Object].indexOf(obj.constructor) !== -1) {
return {};

@@ -82,0 +84,0 @@ }

@@ -12,3 +12,6 @@ 'use strict';

Object.keys($default).length;
if (numKeys > 0) {
const isInvalidType = Array.isArray($default) ?
false :
[void 0, Object].indexOf($default.constructor) === -1;
if (numKeys > 0 || isInvalidType) {
throw new Error('Default is a non-empty object `' +

@@ -15,0 +18,0 @@ util.inspect($default) + '`. Please make `$default` a function ' +

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