@byu-oit/admissions-report-class
Advanced tools
Comparing version 0.0.1 to 0.0.2
12
index.js
@@ -151,2 +151,14 @@ class Column { | ||
toJSON () { | ||
if (this._institutions.length === 0) { | ||
// no institutions component | ||
return { | ||
name: this._name, | ||
description: this._description, | ||
long_description: this._longDescription, | ||
category: this._category, | ||
content_type: this._contentTypes, | ||
parameters: this._parameters, | ||
columns: this._columns.map((column, ordinal) => ({ ordinal: (ordinal + 1).toString(), ...column.toJSON() })) | ||
} | ||
} | ||
return { | ||
@@ -153,0 +165,0 @@ name: this._name, |
{ | ||
"name": "@byu-oit/admissions-report-class", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Two class definitions used to help format the code in various report handlers", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6123
152