@jbrowse/plugin-sequence 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.
@@ -6,14 +6,14 @@ import { AnyConfigurationModel } from '@jbrowse/core/configuration/configuration
6
6
  import PluginManager from '@jbrowse/core/PluginManager';
7
7
  import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
8
8
  export default class extends BaseFeatureDataAdapter implements SequenceAdapter {
9
- protected fasta: typeof IndexedFasta;
9
+ protected fasta: IndexedFasta;
10
10
  private seqCache;
11
11
  constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
12
- getRefNames(opts?: BaseOptions): any;
12
+ getRefNames(opts?: BaseOptions): Promise<string[]>;
13
13
  getRegions(opts?: BaseOptions): Promise<{
14
14
  refName: string;
15
15
  start: number;
16
- end: any;
16
+ end: number;
17
17
  }[]>;
18
18
  /**
19
19
  * Fetch features for a certain region
@@ -9,7 +9,7 @@ export default class TwoBitAdapter extends BaseFeatureDataAdapter implements Seq
9
9
  protected chromSizesData: Promise<Record<string, number> | undefined>;
10
10
  private initChromSizes;
11
11
  constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
12
- getRefNames(): Promise<any>;
12
+ getRefNames(): Promise<string[]>;
13
13
  getRegions(): Promise<NoAssemblyRegion[]>;
14
14
  /**
15
15
  * Fetch features for a certain region
@@ -33,14 +33,9 @@ function ownKeys(object, enumerableOnly) {
33
33
 
34
34
  if (Object.getOwnPropertySymbols) {
35
35
  var symbols = Object.getOwnPropertySymbols(object);
36
-
37
- if (enumerableOnly) {
38
- symbols = symbols.filter(function (sym) {
39
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
40
- });
41
- }
42
-
43
- keys.push.apply(keys, symbols);
36
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
37
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
38
+ })), keys.push.apply(keys, symbols);
44
39
  }
45
40
 
46
41
  return keys;
@@ -48,19 +43,12 @@ function ownKeys(object, enumerableOnly) {
48
43
 
49
44
  function _objectSpread2(target) {
50
45
  for (var i = 1; i < arguments.length; i++) {
51
- var source = arguments[i] != null ? arguments[i] : {};
52
-
53
- if (i % 2) {
54
- ownKeys(Object(source), true).forEach(function (key) {
55
- _defineProperty(target, key, source[key]);
56
- });
57
- } else if (Object.getOwnPropertyDescriptors) {
58
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
59
- } else {
60
- ownKeys(Object(source)).forEach(function (key) {
61
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
62
- });
63
- }
46
+ var source = null != arguments[i] ? arguments[i] : {};
47
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
48
+ _defineProperty(target, key, source[key]);
49
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
50
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
51
+ });
64
52
  }
65
53
 
66
54
  return target;
@@ -121,6 +109,9 @@ function _defineProperties(target, props) {
121
109
  function _createClass(Constructor, protoProps, staticProps) {
122
110
  if (protoProps) _defineProperties(Constructor.prototype, protoProps);
123
111
  if (staticProps) _defineProperties(Constructor, staticProps);
112
+ Object.defineProperty(Constructor, "prototype", {
113
+ writable: false
114
+ });
124
115
  return Constructor;
125
116
  }
126
117
 
@@ -144,12 +135,15 @@ function _inherits(subClass, superClass) {
144
135
  throw new TypeError("Super expression must either be null or a function");
145
136
  }
146
137
 
147
- subClass.prototype = Object.create(superClass && superClass.prototype, {
148
- constructor: {
149
- value: subClass,
150
- writable: true,
151
- configurable: true
152
- }
138
+ Object.defineProperty(subClass, "prototype", {
139
+ value: Object.create(superClass && superClass.prototype, {
140
+ constructor: {
141
+ value: subClass,
142
+ writable: true,
143
+ configurable: true
144
+ }
145
+ }),
146
+ writable: false
153
147
  });
154
148
  if (superClass) _setPrototypeOf(subClass, superClass);
155
149
  }
@@ -2554,7 +2548,7 @@ var _default$2 = /*#__PURE__*/function (_IndexedFasta) {
2554
2548
  return _this;
2555
2549
  }
2556
2550
 
2557
- return _default;
2551
+ return _createClass(_default);
2558
2552
  }(_default$1);
2559
2553
 
2560
2554
  var BgzipFastaAdapter = {