clique-seeds
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "clique-seeds", | ||
"description": "A utility for creating seed data for both the server and client.", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"author": "Walker Ward <walker.ward1@gmail.com> ()", | ||
@@ -6,0 +6,0 @@ "bugs": { |
@@ -117,4 +117,4 @@ /** | ||
const records = this.records[recordType]; | ||
const hasManys = Object.keys(this.records); | ||
const belongsTo = ['rootFolder', ...hasManys.map(o => o.replace(/[s]$/, ''))]; | ||
const hasManys = ['rootFolder', ...Object.keys(this.records)]; | ||
const belongsTo = Object.keys(this.records).map(o => o.replace(/[s]$/, '')); | ||
@@ -125,3 +125,4 @@ return records.map((record) => { | ||
if (typeof prev[hasMany] !== 'undefined') { | ||
prev[hasMany] = prev[hasMany].map(o => pick(o, ['id', 'type'])); // eslint-disable-line no-param-reassign | ||
if (prev[hasMany].id) prev[hasMany] = pick(prev[hasMany], ['id', 'type']); // eslint-disable-line no-param-reassign | ||
else prev[hasMany] = prev[hasMany].map(o => pick(o, ['id', 'type'])); // eslint-disable-line no-param-reassign | ||
} | ||
@@ -128,0 +129,0 @@ return prev; |
Sorry, the diff of this file is too big to display
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
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
411953
8438
0