@jbrowse/cli 2.12.0 → 2.12.2

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/README.md CHANGED
@@ -205,7 +205,7 @@ EXAMPLES
205
205
  ```
206
206
 
207
207
  _See code:
208
- [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-assembly.ts)_
208
+ [src/commands/add-assembly.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/add-assembly.ts)_
209
209
 
210
210
  ## `jbrowse add-connection CONNECTIONURLORPATH`
211
211
 
@@ -256,7 +256,7 @@ EXAMPLES
256
256
  ```
257
257
 
258
258
  _See code:
259
- [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-connection.ts)_
259
+ [src/commands/add-connection.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/add-connection.ts)_
260
260
 
261
261
  ## `jbrowse add-track TRACK`
262
262
 
@@ -337,7 +337,7 @@ EXAMPLES
337
337
  ```
338
338
 
339
339
  _See code:
340
- [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-track.ts)_
340
+ [src/commands/add-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/add-track.ts)_
341
341
 
342
342
  ## `jbrowse add-track-json TRACK`
343
343
 
@@ -367,7 +367,7 @@ EXAMPLES
367
367
  ```
368
368
 
369
369
  _See code:
370
- [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/add-track-json.ts)_
370
+ [src/commands/add-track-json.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/add-track-json.ts)_
371
371
 
372
372
  ## `jbrowse admin-server`
373
373
 
@@ -399,7 +399,7 @@ EXAMPLES
399
399
  ```
400
400
 
401
401
  _See code:
402
- [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/admin-server.ts)_
402
+ [src/commands/admin-server.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/admin-server.ts)_
403
403
 
404
404
  ## `jbrowse create LOCALPATH`
405
405
 
@@ -456,7 +456,7 @@ EXAMPLES
456
456
  ```
457
457
 
458
458
  _See code:
459
- [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/create.ts)_
459
+ [src/commands/create.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/create.ts)_
460
460
 
461
461
  ## `jbrowse help [COMMAND]`
462
462
 
@@ -507,7 +507,7 @@ EXAMPLES
507
507
  ```
508
508
 
509
509
  _See code:
510
- [src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/make-pif.ts)_
510
+ [src/commands/make-pif.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/make-pif.ts)_
511
511
 
512
512
  ## `jbrowse remove-track TRACK`
513
513
 
@@ -535,7 +535,7 @@ EXAMPLES
535
535
  ```
536
536
 
537
537
  _See code:
538
- [src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/remove-track.ts)_
538
+ [src/commands/remove-track.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/remove-track.ts)_
539
539
 
540
540
  ## `jbrowse set-default-session`
541
541
 
@@ -577,7 +577,7 @@ EXAMPLES
577
577
  ```
578
578
 
579
579
  _See code:
580
- [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/set-default-session.ts)_
580
+ [src/commands/set-default-session.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/set-default-session.ts)_
581
581
 
582
582
  ## `jbrowse sort-gff FILE`
583
583
 
@@ -608,7 +608,7 @@ EXAMPLES
608
608
  ```
609
609
 
610
610
  _See code:
611
- [src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/sort-gff.ts)_
611
+ [src/commands/sort-gff.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/sort-gff.ts)_
612
612
 
613
613
  ## `jbrowse text-index`
614
614
 
@@ -675,7 +675,7 @@ EXAMPLES
675
675
  ```
676
676
 
677
677
  _See code:
678
- [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/text-index.ts)_
678
+ [src/commands/text-index.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/text-index.ts)_
679
679
 
680
680
  ## `jbrowse upgrade [LOCALPATH]`
681
681
 
@@ -738,7 +738,7 @@ EXAMPLES
738
738
  ```
739
739
 
740
740
  _See code:
741
- [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.0/products/jbrowse-cli/src/commands/upgrade.ts)_
741
+ [src/commands/upgrade.ts](https://github.com/GMOD/jbrowse-components/blob/v2.12.2/products/jbrowse-cli/src/commands/upgrade.ts)_
742
742
 
743
743
  <!-- commandsstop -->
744
744
 
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createPIF = exports.swapIndelCigar = exports.flipCigar = void 0;
6
+ exports.flipCigar = flipCigar;
7
+ exports.swapIndelCigar = swapIndelCigar;
8
+ exports.createPIF = createPIF;
7
9
  const fs_1 = __importDefault(require("fs"));
8
10
  const readline_1 = __importDefault(require("readline"));
9
11
  const zlib_1 = require("zlib");
@@ -44,11 +46,9 @@ function flipCigar(cigar) {
44
46
  }
45
47
  return arr;
46
48
  }
47
- exports.flipCigar = flipCigar;
48
49
  function swapIndelCigar(cigar) {
49
50
  return cigar.replaceAll('D', 'K').replaceAll('I', 'D').replaceAll('K', 'I');
50
51
  }
51
- exports.swapIndelCigar = swapIndelCigar;
52
52
  async function createPIF(filename, stream) {
53
53
  const rl1 = filename ? getReadline(filename) : getStdReadline();
54
54
  for await (const line of rl1) {
@@ -65,7 +65,6 @@ async function createPIF(filename, stream) {
65
65
  }
66
66
  rl1.close();
67
67
  }
68
- exports.createPIF = createPIF;
69
68
  class MakePIF extends base_1.default {
70
69
  async run() {
71
70
  const { args: { file }, flags: { out, csi }, } = await this.parse(MakePIF);
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = fetchWithProxy;
3
4
  const node_1 = require("node-fetch-native/node");
4
5
  const proxy_1 = require("node-fetch-native/proxy");
5
6
  const proxy = (0, proxy_1.createProxy)();
@@ -9,4 +10,3 @@ const proxy = (0, proxy_1.createProxy)();
9
10
  function fetchWithProxy(url, options = {}) {
10
11
  return (0, node_1.fetch)(url, { ...options, ...proxy });
11
12
  }
12
- exports.default = fetchWithProxy;
@@ -3,7 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.generateMeta = exports.supported = exports.guessAdapterFromFileName = exports.isURL = exports.createRemoteStream = void 0;
6
+ exports.createRemoteStream = createRemoteStream;
7
+ exports.isURL = isURL;
8
+ exports.guessAdapterFromFileName = guessAdapterFromFileName;
9
+ exports.supported = supported;
10
+ exports.generateMeta = generateMeta;
7
11
  const fs_1 = __importDefault(require("fs"));
8
12
  const path_1 = __importDefault(require("path"));
9
13
  const fetchWithProxy_1 = __importDefault(require("../fetchWithProxy"));
@@ -14,7 +18,6 @@ async function createRemoteStream(urlIn) {
14
18
  }
15
19
  return response;
16
20
  }
17
- exports.createRemoteStream = createRemoteStream;
18
21
  function isURL(FileName) {
19
22
  let url;
20
23
  try {
@@ -25,7 +28,6 @@ function isURL(FileName) {
25
28
  }
26
29
  return url.protocol === 'http:' || url.protocol === 'https:';
27
30
  }
28
- exports.isURL = isURL;
29
31
  function makeLocation(location, protocol) {
30
32
  if (protocol === 'uri') {
31
33
  return {
@@ -104,7 +106,6 @@ function guessAdapterFromFileName(filePath) {
104
106
  throw new Error(`Unsupported file type ${filePath}`);
105
107
  }
106
108
  }
107
- exports.guessAdapterFromFileName = guessAdapterFromFileName;
108
109
  function supported(type) {
109
110
  return [
110
111
  'Gff3TabixAdapter',
@@ -113,7 +114,6 @@ function supported(type) {
113
114
  'VcfAdapter',
114
115
  ].includes(type);
115
116
  }
116
- exports.supported = supported;
117
117
  async function generateMeta({ trackConfigs, attributes, outLocation, name, typesToExclude, assemblyNames, }) {
118
118
  const tracks = trackConfigs.map(({ adapter, textSearching, trackId }) => ({
119
119
  trackId,
@@ -127,4 +127,3 @@ async function generateMeta({ trackConfigs, attributes, outLocation, name, types
127
127
  assemblyNames,
128
128
  }, null, 2));
129
129
  }
130
- exports.generateMeta = generateMeta;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.indexGff3 = void 0;
6
+ exports.indexGff3 = indexGff3;
7
7
  const cli_progress_1 = require("cli-progress");
8
8
  const zlib_1 = require("zlib");
9
9
  const readline_1 = __importDefault(require("readline"));
@@ -69,4 +69,3 @@ async function* indexGff3({ config, attributesToIndex, inLocation, outLocation,
69
69
  }
70
70
  progressBar.stop();
71
71
  }
72
- exports.indexGff3 = indexGff3;
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.indexVcf = void 0;
6
+ exports.indexVcf = indexVcf;
7
7
  const cli_progress_1 = require("cli-progress");
8
8
  const zlib_1 = require("zlib");
9
9
  const readline_1 = __importDefault(require("readline"));
@@ -74,4 +74,3 @@ async function* indexVcf({ config, attributesToIndex, inLocation, outLocation, q
74
74
  }
75
75
  progressBar.stop();
76
76
  }
77
- exports.indexVcf = indexVcf;
package/lib/util.js CHANGED
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.decodeURIComponentNoThrow = exports.getLocalOrRemoteStream = void 0;
6
+ exports.getLocalOrRemoteStream = getLocalOrRemoteStream;
7
+ exports.decodeURIComponentNoThrow = decodeURIComponentNoThrow;
7
8
  const common_1 = require("./types/common");
8
9
  const fs_1 = __importDefault(require("fs"));
9
10
  const path_1 = __importDefault(require("path"));
@@ -22,7 +23,6 @@ async function getLocalOrRemoteStream(uri, out) {
22
23
  }
23
24
  return { totalBytes, stream };
24
25
  }
25
- exports.getLocalOrRemoteStream = getLocalOrRemoteStream;
26
26
  function decodeURIComponentNoThrow(uri) {
27
27
  try {
28
28
  return decodeURIComponent(uri);
@@ -32,4 +32,3 @@ function decodeURIComponentNoThrow(uri) {
32
32
  return uri;
33
33
  }
34
34
  }
35
- exports.decodeURIComponentNoThrow = decodeURIComponentNoThrow;
@@ -1127,5 +1127,5 @@
1127
1127
  ]
1128
1128
  }
1129
1129
  },
1130
- "version": "2.12.0"
1130
+ "version": "2.12.2"
1131
1131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/cli",
3
- "version": "2.12.0",
3
+ "version": "2.12.2",
4
4
  "description": "A command line tool for working with JBrowse 2",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -74,5 +74,5 @@
74
74
  "publishConfig": {
75
75
  "access": "public"
76
76
  },
77
- "gitHead": "935f2602d29abc737bb1f493a922b6218d023ae2"
77
+ "gitHead": "1ec66736ce048a1637f52b7a7ef2eb02d956b771"
78
78
  }