@jbrowse/core 1.6.0 → 1.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/core",
3
- "version": "1.6.0",
3
+ "version": "1.6.4",
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": "7f157fbb2302d8825f99d01bcc0fd0616116c5d2"
81
81
  }
@@ -437,7 +437,7 @@ test('test RPC driver operation timeout and worker replace', /*#__PURE__*/(0, _a
437
437
  while (1) {
438
438
  switch (_context7.prev = _context7.next) {
439
439
  case 0:
440
- console.warn = jest.fn();
440
+ console.error = jest.fn();
441
441
  expect.assertions(1);
442
442
  config = (0, _configuration.ConfigurationSchema)('Mock', {}).create();
443
443
  driver = new MockRpcDriver({
@@ -481,7 +481,7 @@ test('remote abort', /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/
481
481
  while (1) {
482
482
  switch (_context8.prev = _context8.next) {
483
483
  case 0:
484
- console.warn = jest.fn();
484
+ console.error = jest.fn();
485
485
  expect.assertions(1);
486
486
  config = (0, _configuration.ConfigurationSchema)('Mock', {}).create();
487
487
  driver = new MockRpcDriver({
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,20 +1253,20 @@ 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) {
1257
- var result;
1256
+ _updateStatus = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(msg, cb, fn) {
1257
+ var res;
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
- result = _context4.sent;
1268
- statusCallback('');
1269
- return _context4.abrupt("return", result);
1267
+ res = _context4.sent;
1268
+ cb('');
1269
+ return _context4.abrupt("return", res);
1270
1270
 
1271
1271
  case 6:
1272
1272
  case "end":
@@ -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)