@byu-oit/vue-decision-processing-components
Advanced tools
Comparing version 8.32.1 to 8.32.2
@@ -5,2 +5,4 @@ # Changelog | ||
### [8.32.2](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.1...v8.32.2) (2022-12-15) | ||
### [8.32.1](https://github.com/byu-oit/vue-decision-processing-components/compare/v8.32.0...v8.32.1) (2022-12-06) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@byu-oit/vue-decision-processing-components", | ||
"version": "8.32.1", | ||
"version": "8.32.2", | ||
"description": "Vue components shared between decision processing systems for the CES schools.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
@@ -1,13 +0,15 @@ | ||
const parseCategories = (c = []) => c.map(cc => cc.description) | ||
const parseSubcategories = (c = []) => c.map(({ name = '', description = '' }) => ({ name, description })) | ||
const parseDetails = (d = []) => d.map(dd => dd.detail) | ||
const parseName = ({ name = '' }) => name | ||
const parseId = (c = []) => c.id | ||
const parseCategories = (c = []) => cc.category_name | ||
const parseSubcategories = (c = []) => c.subcategory_name | ||
const parseDetails = (d = []) => d.detail | ||
const parseUpdatedDateTime = (t = []) => t.updated_date_time | ||
const parseName = (n) => n.employee_name | ||
const parseFilenote = note => { | ||
const id = note.id | ||
const categories = parseCategories(note.categories) | ||
const subcategories = parseSubcategories(note.subcategories) | ||
const details = parseDetails(note.details) | ||
const updatedOn = note.updatedDateTime | ||
const author = parseName(note.author) | ||
const id = parseId(note) | ||
const categories = parseCategories(note) | ||
const subcategories = parseSubcategories(note) | ||
const details = parseDetails(note) | ||
const updatedOn = parseUpdatedDateTime(note) | ||
const author = parseName(note) | ||
return { | ||
@@ -24,3 +26,3 @@ id, | ||
export default (values = []) => { | ||
return values.map(parseFilenote) | ||
return parseFilenote(values) | ||
} |
Sorry, the diff of this file is not supported yet
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
425935
4159