@jbrowse/plugin-legacy-jbrowse 1.5.3 → 1.5.4

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