@jbrowse/plugin-variants 1.7.3 → 1.7.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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports["default"] = void 0;
6
+ exports.default = void 0;
7
7
 
8
8
  var _mobxStateTree = require("mobx-state-tree");
9
9
 
@@ -35,4 +35,4 @@ var _default = (0, _configuration.ConfigurationSchema)('VcfTabixAdapter', {
35
35
  explicitlyTyped: true
36
36
  });
37
37
 
38
- exports["default"] = _default;
38
+ exports.default = _default;
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  Object.defineProperty(exports, "configSchema", {
9
9
  enumerable: true,
10
10
  get: function get() {
11
- return _configSchema["default"];
11
+ return _configSchema.default;
12
12
  }
13
13
  });
14
14
 
package/dist/index.js CHANGED
@@ -10,10 +10,10 @@ Object.defineProperty(exports, "__esModule", {
10
10
  Object.defineProperty(exports, "VcfFeature", {
11
11
  enumerable: true,
12
12
  get: function get() {
13
- return _VcfFeature["default"];
13
+ return _VcfFeature.default;
14
14
  }
15
15
  });
16
- exports["default"] = void 0;
16
+ exports.default = void 0;
17
17
 
18
18
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
19
19
 
@@ -65,43 +65,43 @@ var _VcfFeature = _interopRequireDefault(require("./VcfTabixAdapter/VcfFeature")
65
65
 
66
66
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
67
67
 
68
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
68
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
69
69
 
70
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
70
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
71
71
 
72
72
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
73
73
 
74
74
  var VariantsPlugin = /*#__PURE__*/function (_Plugin) {
75
- (0, _inherits2["default"])(VariantsPlugin, _Plugin);
75
+ (0, _inherits2.default)(VariantsPlugin, _Plugin);
76
76
 
77
77
  var _super = _createSuper(VariantsPlugin);
78
78
 
79
79
  function VariantsPlugin() {
80
80
  var _this;
81
81
 
82
- (0, _classCallCheck2["default"])(this, VariantsPlugin);
82
+ (0, _classCallCheck2.default)(this, VariantsPlugin);
83
83
 
84
84
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
85
85
  args[_key] = arguments[_key];
86
86
  }
87
87
 
88
88
  _this = _super.call.apply(_super, [this].concat(args));
89
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "name", 'VariantsPlugin');
89
+ (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "name", 'VariantsPlugin');
90
90
  return _this;
91
91
  }
92
92
 
93
- (0, _createClass2["default"])(VariantsPlugin, [{
93
+ (0, _createClass2.default)(VariantsPlugin, [{
94
94
  key: "install",
95
95
  value: function install(pluginManager) {
96
96
  pluginManager.addAdapterType(function () {
97
- return new _AdapterType["default"]({
97
+ return new _AdapterType.default({
98
98
  name: 'VcfTabixAdapter',
99
99
  configSchema: _VcfTabixAdapter.configSchema,
100
100
  getAdapterClass: function getAdapterClass() {
101
101
  return Promise.resolve().then(function () {
102
102
  return _interopRequireWildcard(require('./VcfTabixAdapter/VcfTabixAdapter'));
103
103
  }).then(function (r) {
104
- return r["default"];
104
+ return r.default;
105
105
  });
106
106
  }
107
107
  });
@@ -140,14 +140,14 @@ var VariantsPlugin = /*#__PURE__*/function (_Plugin) {
140
140
  };
141
141
  });
142
142
  pluginManager.addAdapterType(function () {
143
- return new _AdapterType["default"]({
143
+ return new _AdapterType.default({
144
144
  name: 'VcfAdapter',
145
145
  configSchema: _VcfAdapter.configSchema,
146
146
  getAdapterClass: function getAdapterClass() {
147
147
  return Promise.resolve().then(function () {
148
148
  return _interopRequireWildcard(require('./VcfAdapter/VcfAdapter'));
149
149
  }).then(function (r) {
150
- return r["default"];
150
+ return r.default;
151
151
  });
152
152
  }
153
153
  });
@@ -169,24 +169,24 @@ var VariantsPlugin = /*#__PURE__*/function (_Plugin) {
169
169
  };
170
170
  });
171
171
  pluginManager.addRendererType(function () {
172
- return pluginManager.jbrequire(_StructuralVariantChordRenderer["default"]);
172
+ return pluginManager.jbrequire(_StructuralVariantChordRenderer.default);
173
173
  });
174
174
  pluginManager.addTrackType(function () {
175
175
  var configSchema = (0, _configuration.ConfigurationSchema)('VariantTrack', {}, {
176
176
  baseConfiguration: (0, _models.createBaseTrackConfig)(pluginManager)
177
177
  });
178
- return new _TrackType["default"]({
178
+ return new _TrackType.default({
179
179
  name: 'VariantTrack',
180
180
  configSchema: configSchema,
181
181
  stateModel: (0, _models.createBaseTrackModel)(pluginManager, 'VariantTrack', configSchema)
182
182
  });
183
183
  });
184
184
  pluginManager.addDisplayType(function () {
185
- return pluginManager.jbrequire(_ChordVariantDisplay["default"]);
185
+ return pluginManager.jbrequire(_ChordVariantDisplay.default);
186
186
  });
187
187
  pluginManager.addDisplayType(function () {
188
188
  var configSchema = (0, _LinearVariantDisplay.configSchemaFactory)(pluginManager);
189
- return new _DisplayType["default"]({
189
+ return new _DisplayType.default({
190
190
  name: 'LinearVariantDisplay',
191
191
  configSchema: configSchema,
192
192
  stateModel: (0, _LinearVariantDisplay.modelFactory)(configSchema),
@@ -196,7 +196,7 @@ var VariantsPlugin = /*#__PURE__*/function (_Plugin) {
196
196
  });
197
197
  });
198
198
  pluginManager.addWidgetType(function () {
199
- return new _WidgetType["default"]({
199
+ return new _WidgetType.default({
200
200
  name: 'VariantFeatureWidget',
201
201
  heading: 'Feature details',
202
202
  configSchema: _VariantFeatureWidget.configSchema,
@@ -211,6 +211,6 @@ var VariantsPlugin = /*#__PURE__*/function (_Plugin) {
211
211
  }
212
212
  }]);
213
213
  return VariantsPlugin;
214
- }(_Plugin2["default"]);
214
+ }(_Plugin2.default);
215
215
 
216
- exports["default"] = VariantsPlugin;
216
+ exports.default = VariantsPlugin;
@@ -14,11 +14,11 @@ var _ = _interopRequireDefault(require("."));
14
14
 
15
15
  test('plugin in a stock JBrowse', function () {
16
16
  console.warn = jest.fn();
17
- var pluginManager = new _PluginManager["default"]([new _["default"](), new _pluginAlignments["default"](), new _pluginSvg["default"]()]);
17
+ var pluginManager = new _PluginManager.default([new _.default(), new _pluginAlignments.default(), new _pluginSvg.default()]);
18
18
  pluginManager.createPluggableElements();
19
19
  pluginManager.configure();
20
20
  expect(function () {
21
- return pluginManager.addPlugin(new _["default"]());
21
+ return pluginManager.addPlugin(new _.default());
22
22
  }).toThrow(/JBrowse already configured, cannot add plugins/);
23
23
  var VcfTabixAdapter = pluginManager.getAdapterType('VcfTabixAdapter');
24
24
  var config = VcfTabixAdapter.configSchema.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-variants",
3
- "version": "1.7.3",
3
+ "version": "1.7.6",
4
4
  "description": "JBrowse 2 variant adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -33,6 +33,7 @@
33
33
  "postbuild": "tsc --build tsconfig.build.json"
34
34
  },
35
35
  "dependencies": {
36
+ "@babel/runtime": "^7.17.9",
36
37
  "@flatten-js/interval-tree": "^1.0.15",
37
38
  "@gmod/bgzf-filehandle": "^1.4.3",
38
39
  "@gmod/tabix": "^1.5.2",
@@ -56,5 +57,5 @@
56
57
  "publishConfig": {
57
58
  "access": "public"
58
59
  },
59
- "gitHead": "09b13c85acf4ac68dd71ab23af87656c7552fdaf"
60
+ "gitHead": "dbd73f99714e395cf20877d5e05d26855857a0e3"
60
61
  }