@jbrowse/plugin-config 1.5.2 → 1.5.6

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-config",
3
- "version": "1.5.2",
3
+ "version": "1.5.6",
4
4
  "description": "JBrowse 2 config utilities",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "94fdfbc34787ab8f12a87e00038da74b247b42fa"
58
+ "gitHead": "f3d36cfd90f7c5bdf86869d6698d8cb68a8e122f"
59
59
  }
@@ -11,7 +11,7 @@ const ColorPicker = lazy(() => import('./ColorPicker'))
11
11
  function serializeColor(color: Color) {
12
12
  if (color instanceof Object) {
13
13
  const { r, g, b, a } = color as RGBColor
14
- return `rgb(${r},${g},${b},${a})`
14
+ return a === undefined ? `rgb(${r},${g},${b})` : `rgba(${r},${g},${b},${a})`
15
15
  }
16
16
  return color
17
17
  }
@@ -14,7 +14,7 @@ export default class RefNameAliasAdapter
14
14
  if (loc.uri === '' || loc.uri === '/path/to/my/aliases.txt') {
15
15
  return []
16
16
  }
17
- const results = (await openLocation(loc).readFile('utf8')) as string
17
+ const results = await openLocation(loc).readFile('utf8')
18
18
  return results
19
19
  .trim()
20
20
  .split('\n')