@jbrowse/plugin-comparative-adapters 3.0.5 → 3.1.0

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.
@@ -25,5 +25,18 @@ const PAFAdapter = (0, configuration_1.ConfigurationSchema)('PAFAdapter', {
25
25
  locationType: 'UriLocation',
26
26
  },
27
27
  },
28
- }, { explicitlyTyped: true });
28
+ }, {
29
+ explicitlyTyped: true,
30
+ preProcessSnapshot: snap => {
31
+ return snap.uri
32
+ ? {
33
+ ...snap,
34
+ pafLocation: {
35
+ uri: snap.uri,
36
+ baseUri: snap.baseUri,
37
+ },
38
+ }
39
+ : snap;
40
+ },
41
+ });
29
42
  exports.default = PAFAdapter;
@@ -23,5 +23,18 @@ const PAFAdapter = ConfigurationSchema('PAFAdapter', {
23
23
  locationType: 'UriLocation',
24
24
  },
25
25
  },
26
- }, { explicitlyTyped: true });
26
+ }, {
27
+ explicitlyTyped: true,
28
+ preProcessSnapshot: snap => {
29
+ return snap.uri
30
+ ? {
31
+ ...snap,
32
+ pafLocation: {
33
+ uri: snap.uri,
34
+ baseUri: snap.baseUri,
35
+ },
36
+ }
37
+ : snap;
38
+ },
39
+ });
27
40
  export default PAFAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-comparative-adapters",
3
- "version": "3.0.5",
3
+ "version": "3.1.0",
4
4
  "description": "JBrowse 2 comparative adapters",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -38,9 +38,9 @@
38
38
  "dependencies": {
39
39
  "@gmod/bgzf-filehandle": "^2.0.1",
40
40
  "@gmod/tabix": "^2.0.0",
41
- "@jbrowse/core": "^3.0.5",
42
- "@jbrowse/plugin-alignments": "^3.0.5",
43
- "@jbrowse/plugin-linear-genome-view": "^3.0.5",
41
+ "@jbrowse/core": "^3.1.0",
42
+ "@jbrowse/plugin-alignments": "^3.1.0",
43
+ "@jbrowse/plugin-linear-genome-view": "^3.1.0",
44
44
  "@mui/material": "^6.0.0",
45
45
  "generic-filehandle2": "^1.0.0",
46
46
  "mobx": "^6.0.0",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "a03749efe19e51609922272b845a331897346789"
61
+ "gitHead": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
62
62
  }