@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.
@@ -40,14 +40,9 @@ function ownKeys(object, enumerableOnly) {
40
40
 
41
41
  if (Object.getOwnPropertySymbols) {
42
42
  var symbols = Object.getOwnPropertySymbols(object);
43
-
44
- if (enumerableOnly) {
45
- symbols = symbols.filter(function (sym) {
46
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
47
- });
48
- }
49
-
50
- keys.push.apply(keys, symbols);
43
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
44
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
45
+ })), keys.push.apply(keys, symbols);
51
46
  }
52
47
 
53
48
  return keys;
@@ -55,19 +50,12 @@ function ownKeys(object, enumerableOnly) {
55
50
 
56
51
  function _objectSpread2(target) {
57
52
  for (var i = 1; i < arguments.length; i++) {
58
- var source = arguments[i] != null ? arguments[i] : {};
59
-
60
- if (i % 2) {
61
- ownKeys(Object(source), true).forEach(function (key) {
62
- _defineProperty(target, key, source[key]);
63
- });
64
- } else if (Object.getOwnPropertyDescriptors) {
65
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
66
- } else {
67
- ownKeys(Object(source)).forEach(function (key) {
68
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
69
- });
70
- }
53
+ var source = null != arguments[i] ? arguments[i] : {};
54
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
55
+ _defineProperty(target, key, source[key]);
56
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
57
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
58
+ });
71
59
  }
72
60
 
73
61
  return target;
@@ -128,6 +116,9 @@ function _defineProperties(target, props) {
128
116
  function _createClass(Constructor, protoProps, staticProps) {
129
117
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
130
118
  if (staticProps) _defineProperties(Constructor, staticProps);
119
+ Object.defineProperty(Constructor, "prototype", {
120
+ writable: false
121
+ });
131
122
  return Constructor;
132
123
  }
133
124
 
@@ -169,12 +160,15 @@ function _inherits(subClass, superClass) {
169
160
  throw new TypeError("Super expression must either be null or a function");
170
161
  }
171
162
 
172
- subClass.prototype = Object.create(superClass && superClass.prototype, {
173
- constructor: {
174
- value: subClass,
175
- writable: true,
176
- configurable: true
177
- }
163
+ Object.defineProperty(subClass, "prototype", {
164
+ value: Object.create(superClass && superClass.prototype, {
165
+ constructor: {
166
+ value: subClass,
167
+ writable: true,
168
+ configurable: true
169
+ }
170
+ }),
171
+ writable: false
178
172
  });
179
173
  if (superClass) _setPrototypeOf(subClass, superClass);
180
174
  }
@@ -254,7 +248,7 @@ function _superPropBase(object, property) {
254
248
  return object;
255
249
  }
256
250
 
257
- function _get(target, property, receiver) {
251
+ function _get() {
258
252
  if (typeof Reflect !== "undefined" && Reflect.get) {
259
253
  _get = Reflect.get;
260
254
  } else {
@@ -265,14 +259,14 @@ function _get(target, property, receiver) {
265
259
  var desc = Object.getOwnPropertyDescriptor(base, property);
266
260
 
267
261
  if (desc.get) {
268
- return desc.get.call(receiver);
262
+ return desc.get.call(arguments.length < 3 ? target : receiver);
269
263
  }
270
264
 
271
265
  return desc.value;
272
266
  };
273
267
  }
274
268
 
275
- return _get(target, property, receiver || target);
269
+ return _get.apply(this, arguments);
276
270
  }
277
271
 
278
272
  function _slicedToArray(arr, i) {
@@ -2035,7 +2029,7 @@ function serializeColor(color) {
2035
2029
  g = color.g,
2036
2030
  b = color.b,
2037
2031
  a = color.a;
2038
- return "rgb(".concat(r, ",").concat(g, ",").concat(b, ",").concat(a, ")");
2032
+ return a === undefined ? "rgb(".concat(r, ",").concat(g, ",").concat(b, ")") : "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(a, ")");
2039
2033
  }
2040
2034
 
2041
2035
  return color;