@jbrowse/core 1.6.0 → 1.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/core",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "JBrowse 2 core libraries used by plugins",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -77,5 +77,5 @@
77
77
  "access": "public",
78
78
  "directory": "dist"
79
79
  },
80
- "gitHead": "403d855f184c88fad85f44e079dd6fffac276984"
80
+ "gitHead": "d6ad1b8e7fbb00000f2ac87f463c82e9db12ea01"
81
81
  }
package/util/index.d.ts CHANGED
@@ -304,7 +304,7 @@ export declare const defaultCodonTable: {
304
304
  export declare function generateCodonTable(table: any): {
305
305
  [key: string]: string;
306
306
  };
307
- export declare function updateStatus<U>(statusMsg: string, statusCallback: (arg: string) => void, fn: () => U): Promise<U>;
307
+ export declare function updateStatus<U>(msg: string, cb: (arg: string) => void, fn: () => U): Promise<U>;
308
308
  export declare function hashCode(str: string): number;
309
309
  export declare function objectHash(obj: Record<string, any>): string;
310
310
  export declare function bytesForRegions(regions: Region[], index: any): Promise<number>;
package/util/index.js CHANGED
@@ -1253,19 +1253,19 @@ function updateStatus(_x5, _x6, _x7) {
1253
1253
  }
1254
1254
 
1255
1255
  function _updateStatus() {
1256
- _updateStatus = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(statusMsg, statusCallback, fn) {
1256
+ _updateStatus = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(msg, cb, fn) {
1257
1257
  var result;
1258
1258
  return _regenerator.default.wrap(function _callee4$(_context4) {
1259
1259
  while (1) {
1260
1260
  switch (_context4.prev = _context4.next) {
1261
1261
  case 0:
1262
- statusCallback(statusMsg);
1262
+ cb(msg);
1263
1263
  _context4.next = 3;
1264
1264
  return fn();
1265
1265
 
1266
1266
  case 3:
1267
1267
  result = _context4.sent;
1268
- statusCallback('');
1268
+ cb('');
1269
1269
  return _context4.abrupt("return", result);
1270
1270
 
1271
1271
  case 6:
@@ -1363,9 +1363,9 @@ function viewBpToPx(_ref3) {
1363
1363
 
1364
1364
  return false;
1365
1365
  });
1366
- var foundRegion = self.displayedRegions[index];
1366
+ var found = self.displayedRegions[index];
1367
1367
 
1368
- if (foundRegion) {
1368
+ if (found) {
1369
1369
  return {
1370
1370
  index: index,
1371
1371
  offsetPx: Math.round(offsetBp / self.bpPerPx)