@devsnicket/eunice-dependency-and-structure
Advanced tools
Comparing version 2.15.0 to 2.15.1
@@ -59,13 +59,21 @@ /* Copyright (c) 2018 Graham Dyson. All Rights Reserved. | ||
return ( | ||
dependsUponProperty || itemsProperty || Object.keys(restOfItem).length | ||
? | ||
{ | ||
...identifier && { id: identifier }, | ||
...restOfItem, | ||
...dependsUponProperty, | ||
...itemsProperty, | ||
} | ||
: | ||
whenStructured() | ||
|| | ||
identifier | ||
|| | ||
{} | ||
); | ||
function whenStructured() { | ||
return ( | ||
(dependsUponProperty || itemsProperty || Object.keys(restOfItem).length) | ||
&& | ||
{ | ||
...identifier && { id: identifier }, | ||
...restOfItem, | ||
...dependsUponProperty, | ||
...itemsProperty, | ||
} | ||
); | ||
} | ||
} | ||
@@ -72,0 +80,0 @@ |
@@ -65,3 +65,3 @@ { | ||
}, | ||
"version": "2.15.0" | ||
"version": "2.15.1" | ||
} |
@@ -44,2 +44,6 @@ /* Copyright (c) 2018 Graham Dyson. All Rights Reserved. | ||
{ | ||
levels: [ [ {} ] ], | ||
yaml: {}, | ||
}, | ||
{ | ||
levels: | ||
@@ -46,0 +50,0 @@ [ [ { id: "item" } ] ], |
@@ -62,2 +62,3 @@ /* Copyright (c) 2018 Graham Dyson. All Rights Reserved. | ||
}) { | ||
/** @type {import("../index").Item} */ | ||
const item = | ||
@@ -64,0 +65,0 @@ { |
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
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
106212
4257