@jbrowse/plugin-config 1.5.3 → 1.5.7

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.
@@ -47,14 +47,9 @@ function ownKeys(object, enumerableOnly) {
47
47
 
48
48
  if (Object.getOwnPropertySymbols) {
49
49
  var symbols = Object.getOwnPropertySymbols(object);
50
-
51
- if (enumerableOnly) {
52
- symbols = symbols.filter(function (sym) {
53
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
54
- });
55
- }
56
-
57
- keys.push.apply(keys, symbols);
50
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
51
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
52
+ })), keys.push.apply(keys, symbols);
58
53
  }
59
54
 
60
55
  return keys;
@@ -62,19 +57,12 @@ function ownKeys(object, enumerableOnly) {
62
57
 
63
58
  function _objectSpread2(target) {
64
59
  for (var i = 1; i < arguments.length; i++) {
65
- var source = arguments[i] != null ? arguments[i] : {};
66
-
67
- if (i % 2) {
68
- ownKeys(Object(source), true).forEach(function (key) {
69
- _defineProperty(target, key, source[key]);
70
- });
71
- } else if (Object.getOwnPropertyDescriptors) {
72
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
73
- } else {
74
- ownKeys(Object(source)).forEach(function (key) {
75
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
76
- });
77
- }
60
+ var source = null != arguments[i] ? arguments[i] : {};
61
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
62
+ _defineProperty(target, key, source[key]);
63
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
64
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
65
+ });
78
66
  }
79
67
 
80
68
  return target;
@@ -135,6 +123,9 @@ function _defineProperties(target, props) {
135
123
  function _createClass(Constructor, protoProps, staticProps) {
136
124
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
137
125
  if (staticProps) _defineProperties(Constructor, staticProps);
126
+ Object.defineProperty(Constructor, "prototype", {
127
+ writable: false
128
+ });
138
129
  return Constructor;
139
130
  }
140
131
 
@@ -176,12 +167,15 @@ function _inherits(subClass, superClass) {
176
167
  throw new TypeError("Super expression must either be null or a function");
177
168
  }
178
169
 
179
- subClass.prototype = Object.create(superClass && superClass.prototype, {
180
- constructor: {
181
- value: subClass,
182
- writable: true,
183
- configurable: true
184
- }
170
+ Object.defineProperty(subClass, "prototype", {
171
+ value: Object.create(superClass && superClass.prototype, {
172
+ constructor: {
173
+ value: subClass,
174
+ writable: true,
175
+ configurable: true
176
+ }
177
+ }),
178
+ writable: false
185
179
  });
186
180
  if (superClass) _setPrototypeOf(subClass, superClass);
187
181
  }
@@ -261,7 +255,7 @@ function _superPropBase(object, property) {
261
255
  return object;
262
256
  }
263
257
 
264
- function _get(target, property, receiver) {
258
+ function _get() {
265
259
  if (typeof Reflect !== "undefined" && Reflect.get) {
266
260
  _get = Reflect.get;
267
261
  } else {
@@ -272,14 +266,14 @@ function _get(target, property, receiver) {
272
266
  var desc = Object.getOwnPropertyDescriptor(base, property);
273
267
 
274
268
  if (desc.get) {
275
- return desc.get.call(receiver);
269
+ return desc.get.call(arguments.length < 3 ? target : receiver);
276
270
  }
277
271
 
278
272
  return desc.value;
279
273
  };
280
274
  }
281
275
 
282
- return _get(target, property, receiver || target);
276
+ return _get.apply(this, arguments);
283
277
  }
284
278
 
285
279
  function _slicedToArray(arr, i) {
@@ -2042,7 +2036,7 @@ function serializeColor(color) {
2042
2036
  g = color.g,
2043
2037
  b = color.b,
2044
2038
  a = color.a;
2045
- return "rgb(".concat(r, ",").concat(g, ",").concat(b, ",").concat(a, ")");
2039
+ return a === undefined ? "rgb(".concat(r, ",").concat(g, ",").concat(b, ")") : "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(a, ")");
2046
2040
  }
2047
2041
 
2048
2042
  return color;