@rcsb/rcsb-documentation 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rcsb/rcsb-documentation",
3
3
  "private": false,
4
- "version": "0.0.04",
4
+ "version": "0.0.05",
5
5
  "main": "build/bundle.js",
6
6
  "files": [
7
7
  "build",
package/server/docsApi.js CHANGED
@@ -301,7 +301,7 @@ function setAttributeDetails(req, item) {
301
301
  attributeDetails.schemas.forEach(schema => {
302
302
  const { headers, schema_name } = schema;
303
303
 
304
- schema.display_name = u.ucFirst(schema_name) + ' Attributes';
304
+ schema.display_name = schema_name.substring(0, 1).toUpperCase() + schema_name.substring(1) + ' Attributes';
305
305
  const selectorItems = metadata[schema_name].selectorItems;
306
306
 
307
307
  selectorItems.forEach(si => {
@@ -317,7 +317,6 @@ function setAttributeDetails(req, item) {
317
317
  obj.name = si.name;
318
318
 
319
319
  if (si.type === 'item-nested') {
320
- //if (si.attribute === 'rcsb_binding_affinity.value') u.logJson({ selectorItem: si, attrObj }, 'setAttributeDetails')
321
320
 
322
321
  let { nested_attribute, nested_attribute_value, units, range } = si;
323
322