@jbrowse/plugin-legacy-jbrowse 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.
@@ -23,34 +23,30 @@ function _asyncIterator(iterable) {
23
23
  sync,
24
24
  retry = 2;
25
25
 
26
- if (typeof Symbol !== "undefined") {
27
- async = Symbol.asyncIterator;
28
- sync = Symbol.iterator;
29
- }
30
-
31
- while (retry--) {
32
- if (async && (method = iterable[async]) != null) {
33
- return method.call(iterable);
34
- }
35
-
36
- if (sync && (method = iterable[sync]) != null) {
37
- return new AsyncFromSyncIterator(method.call(iterable));
38
- }
39
-
40
- async = "@@asyncIterator";
41
- sync = "@@iterator";
26
+ for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
27
+ if (async && null != (method = iterable[async])) return method.call(iterable);
28
+ if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
29
+ async = "@@asyncIterator", sync = "@@iterator";
42
30
  }
43
31
 
44
32
  throw new TypeError("Object is not async iterable");
45
33
  }
46
34
 
47
35
  function AsyncFromSyncIterator(s) {
48
- AsyncFromSyncIterator = function (s) {
49
- this.s = s;
50
- this.n = s.next;
51
- };
36
+ function AsyncFromSyncIteratorContinuation(r) {
37
+ if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
38
+ var done = r.done;
39
+ return Promise.resolve(r.value).then(function (value) {
40
+ return {
41
+ value: value,
42
+ done: done
43
+ };
44
+ });
45
+ }
52
46
 
53
- AsyncFromSyncIterator.prototype = {
47
+ return AsyncFromSyncIterator = function (s) {
48
+ this.s = s, this.n = s.next;
49
+ }, AsyncFromSyncIterator.prototype = {
54
50
  s: null,
55
51
  n: null,
56
52
  next: function () {
@@ -58,38 +54,16 @@ function AsyncFromSyncIterator(s) {
58
54
  },
59
55
  return: function (value) {
60
56
  var ret = this.s.return;
61
-
62
- if (ret === undefined) {
63
- return Promise.resolve({
64
- value: value,
65
- done: true
66
- });
67
- }
68
-
69
- return AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
57
+ return void 0 === ret ? Promise.resolve({
58
+ value: value,
59
+ done: !0
60
+ }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
70
61
  },
71
62
  throw: function (value) {
72
63
  var thr = this.s.return;
73
- if (thr === undefined) return Promise.reject(value);
74
- return AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
75
- }
76
- };
77
-
78
- function AsyncFromSyncIteratorContinuation(r) {
79
- if (Object(r) !== r) {
80
- return Promise.reject(new TypeError(r + " is not an object."));
64
+ return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
81
65
  }
82
-
83
- var done = r.done;
84
- return Promise.resolve(r.value).then(function (value) {
85
- return {
86
- value: value,
87
- done: done
88
- };
89
- });
90
- }
91
-
92
- return new AsyncFromSyncIterator(s);
66
+ }, new AsyncFromSyncIterator(s);
93
67
  }
94
68
 
95
69
  function ownKeys(object, enumerableOnly) {
@@ -97,14 +71,9 @@ function ownKeys(object, enumerableOnly) {
97
71
 
98
72
  if (Object.getOwnPropertySymbols) {
99
73
  var symbols = Object.getOwnPropertySymbols(object);
100
-
101
- if (enumerableOnly) {
102
- symbols = symbols.filter(function (sym) {
103
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
104
- });
105
- }
106
-
107
- keys.push.apply(keys, symbols);
74
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
75
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
76
+ })), keys.push.apply(keys, symbols);
108
77
  }
109
78
 
110
79
  return keys;
@@ -112,19 +81,12 @@ function ownKeys(object, enumerableOnly) {
112
81
 
113
82
  function _objectSpread2(target) {
114
83
  for (var i = 1; i < arguments.length; i++) {
115
- var source = arguments[i] != null ? arguments[i] : {};
116
-
117
- if (i % 2) {
118
- ownKeys(Object(source), true).forEach(function (key) {
119
- _defineProperty(target, key, source[key]);
120
- });
121
- } else if (Object.getOwnPropertyDescriptors) {
122
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
123
- } else {
124
- ownKeys(Object(source)).forEach(function (key) {
125
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
126
- });
127
- }
84
+ var source = null != arguments[i] ? arguments[i] : {};
85
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
86
+ _defineProperty(target, key, source[key]);
87
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
88
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
89
+ });
128
90
  }
129
91
 
130
92
  return target;
@@ -133,17 +95,11 @@ function _objectSpread2(target) {
133
95
  function _typeof(obj) {
134
96
  "@babel/helpers - typeof";
135
97
 
136
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
137
- _typeof = function (obj) {
138
- return typeof obj;
139
- };
140
- } else {
141
- _typeof = function (obj) {
142
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
143
- };
144
- }
145
-
146
- return _typeof(obj);
98
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
99
+ return typeof obj;
100
+ } : function (obj) {
101
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
102
+ }, _typeof(obj);
147
103
  }
148
104
 
149
105
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -201,6 +157,9 @@ function _defineProperties(target, props) {
201
157
  function _createClass(Constructor, protoProps, staticProps) {
202
158
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
203
159
  if (staticProps) _defineProperties(Constructor, staticProps);
160
+ Object.defineProperty(Constructor, "prototype", {
161
+ writable: false
162
+ });
204
163
  return Constructor;
205
164
  }
206
165
 
@@ -224,12 +183,15 @@ function _inherits(subClass, superClass) {
224
183
  throw new TypeError("Super expression must either be null or a function");
225
184
  }
226
185
 
227
- subClass.prototype = Object.create(superClass && superClass.prototype, {
228
- constructor: {
229
- value: subClass,
230
- writable: true,
231
- configurable: true
232
- }
186
+ Object.defineProperty(subClass, "prototype", {
187
+ value: Object.create(superClass && superClass.prototype, {
188
+ constructor: {
189
+ value: subClass,
190
+ writable: true,
191
+ configurable: true
192
+ }
193
+ }),
194
+ writable: false
233
195
  });
234
196
  if (superClass) _setPrototypeOf(subClass, superClass);
235
197
  }
@@ -2425,33 +2387,25 @@ function _fetchConfigFile() {
2425
2387
  case 2:
2426
2388
  result = _context3.sent;
2427
2389
 
2428
- if (!(typeof result !== 'string')) {
2429
- _context3.next = 5;
2430
- break;
2431
- }
2432
-
2433
- throw new Error("Error opening location: ".concat(location));
2434
-
2435
- case 5:
2436
2390
  if (!isUriLocation(location)) {
2437
- _context3.next = 7;
2391
+ _context3.next = 5;
2438
2392
  break;
2439
2393
  }
2440
2394
 
2441
2395
  return _context3.abrupt("return", parseJb1(result, location.uri));
2442
2396
 
2443
- case 7:
2397
+ case 5:
2444
2398
  if (!isLocalPathLocation(location)) {
2445
- _context3.next = 9;
2399
+ _context3.next = 7;
2446
2400
  break;
2447
2401
  }
2448
2402
 
2449
2403
  return _context3.abrupt("return", parseJb1(result, location.localPath));
2450
2404
 
2451
- case 9:
2405
+ case 7:
2452
2406
  return _context3.abrupt("return", parseJb1(result));
2453
2407
 
2454
- case 10:
2408
+ case 8:
2455
2409
  case "end":
2456
2410
  return _context3.stop();
2457
2411
  }