@jbrowse/plugin-legacy-jbrowse 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.
- package/dist/plugin-legacy-jbrowse.cjs.development.js +54 -100
- package/dist/plugin-legacy-jbrowse.cjs.development.js.map +1 -1
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js +1 -1
- package/dist/plugin-legacy-jbrowse.cjs.production.min.js.map +1 -1
- package/dist/plugin-legacy-jbrowse.esm.js +54 -100
- package/dist/plugin-legacy-jbrowse.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/JBrowse1Connection/jb1ConfigLoad.ts +0 -3
- package/src/JBrowse1Connection/jb1ToJb2.ts +1 -1
- package/src/NCListAdapter/NCListFeature.ts +1 -5
|
@@ -23,34 +23,30 @@ function _asyncIterator(iterable) {
|
|
|
23
23
|
sync,
|
|
24
24
|
retry = 2;
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
async =
|
|
28
|
-
sync =
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
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
|
-
|
|
102
|
-
|
|
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]
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
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 =
|
|
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
|
|
2397
|
+
case 5:
|
|
2444
2398
|
if (!isLocalPathLocation(location)) {
|
|
2445
|
-
_context3.next =
|
|
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
|
|
2405
|
+
case 7:
|
|
2452
2406
|
return _context3.abrupt("return", parseJb1(result));
|
|
2453
2407
|
|
|
2454
|
-
case
|
|
2408
|
+
case 8:
|
|
2455
2409
|
case "end":
|
|
2456
2410
|
return _context3.stop();
|
|
2457
2411
|
}
|