@molgenis/vip-report-template 8.3.0 → 8.3.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/.travis.yml CHANGED
@@ -1,10 +1,9 @@
1
+ arch: amd64
1
2
  os: linux
2
- dist: jammy
3
+ dist: noble
3
4
  language: node_js
4
- env:
5
- - COREPACK_INTEGRITY_KEYS=0 # workaround for https://github.com/nodejs/corepack/issues/627
6
5
  node_js:
7
- - 22
6
+ - 24
8
7
  branches:
9
8
  only:
10
9
  - main
@@ -15,7 +14,7 @@ cache:
15
14
  - "~/.pnpm-store"
16
15
  before_install:
17
16
  - corepack enable
18
- - corepack prepare pnpm@latest-9 --activate
17
+ - corepack prepare pnpm@latest-10 --activate
19
18
  - pnpm config set store-dir ~/.pnpm-store
20
19
  install:
21
20
  - pnpm install
@@ -25,7 +24,6 @@ script:
25
24
  - pnpm run build
26
25
  before_deploy:
27
26
  - cp dist/index.html dist/vip-report-template.html
28
- - gem update --system # workaround for https://travis-ci.community/t/builds-suddenly-failing/14580/14
29
27
  deploy:
30
28
  - provider: script
31
29
  script: bash scripts/deploy_npm_registry.sh
@@ -37,5 +35,4 @@ deploy:
37
35
  file: dist/vip-report-template.html
38
36
  on:
39
37
  tags: true
40
- edge: true
41
38
 
package/eslint.config.mjs CHANGED
@@ -1,16 +1,12 @@
1
- import pluginJs from "@eslint/js";
2
1
  // workaround: import .js because of https://github.com/solidjs-community/eslint-plugin-solid/issues/118
3
2
  import solid from "eslint-plugin-solid/configs/typescript";
4
3
  import tseslint from "typescript-eslint";
5
4
 
6
5
  export default [
7
6
  {
8
- ignores: [
9
- "**/*.precompiled.ts"
10
- ]
7
+ ignores: ["**/*.precompiled.ts"],
11
8
  },
12
- { files: ["**/*.{js,mjs,cjs,ts,tsx}"] },
13
- pluginJs.configs.recommended,
9
+ { files: ["**/*.{ts,tsx}"] },
14
10
  solid,
15
11
  ...tseslint.configs.recommended,
16
- ];
12
+ ];
package/package.json CHANGED
@@ -1,38 +1,39 @@
1
1
  {
2
2
  "name": "@molgenis/vip-report-template",
3
- "version": "8.3.0",
3
+ "version": "8.3.2",
4
4
  "description": "Report Template for Variant Call Format (VCF) Report Generator",
5
5
  "license": "LGPL-3.0",
6
6
  "devDependencies": {
7
- "@molgenis/vite-plugin-inline": "^2.0.0",
7
+ "@molgenis/vite-plugin-inline": "^2.0.1",
8
8
  "@types/async-lock": "^1.4.2",
9
- "@types/node": "^22.19.3",
10
- "@vitest/coverage-v8": "^4.0.15",
9
+ "@types/node": "^24.12.0",
10
+ "@vitest/coverage-v8": "^4.1.2",
11
11
  "async-lock": "^1.4.1",
12
12
  "bulma": "^1.0.4",
13
- "eslint": "^9.39.2",
13
+ "esbuild": "^0.27.4",
14
+ "eslint": "^10.1.0",
14
15
  "eslint-config-prettier": "^10.1.8",
15
16
  "eslint-plugin-solid": "^0.14.5",
16
17
  "husky": "^9.1.7",
17
- "jsdom": "^27.3.0",
18
- "prettier": "^3.7.4",
19
- "sass": "^1.97.0",
20
- "typescript": "^5.9.3",
21
- "typescript-eslint": "^8.49.0",
22
- "vite": "^6.4.1",
23
- "vite-plugin-solid": "^2.11.10",
24
- "vitest": "^4.0.15"
18
+ "jsdom": "^29.0.1",
19
+ "prettier": "^3.8.1",
20
+ "sass": "^1.98.0",
21
+ "typescript": "^6.0.2",
22
+ "typescript-eslint": "^8.58.0",
23
+ "vite": "^8.0.3",
24
+ "vite-plugin-solid": "^2.11.11",
25
+ "vitest": "^4.1.2"
25
26
  },
26
27
  "dependencies": {
27
- "@fortawesome/fontawesome-svg-core": "^7.1.0",
28
- "@fortawesome/free-solid-svg-icons": "^7.1.0",
29
- "@molgenis/vip-report-api": "7.0.5",
30
- "@molgenis/vip-report-vcf": "^4.0.5",
31
- "@solidjs/router": "^0.15.4",
32
- "ajv": "^8.17.1",
28
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
29
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
30
+ "@molgenis/vip-report-api": "7.0.6",
31
+ "@molgenis/vip-report-vcf": "^4.0.7",
32
+ "@solidjs/router": "^0.16.1",
33
+ "ajv": "^8.18.0",
33
34
  "base64-js": "^1.5.1",
34
- "igv": "^3.6.0",
35
- "solid-js": "^1.9.10",
35
+ "igv": "^3.8.0",
36
+ "solid-js": "^1.9.12",
36
37
  "sql.js": "^1.13.0"
37
38
  },
38
39
  "lint-staged": {
@@ -53,8 +54,8 @@
53
54
  "url": "git+https://github.com/molgenis/vip-report-template.git"
54
55
  },
55
56
  "engines": {
56
- "node": "22",
57
- "pnpm": "9"
57
+ "node": "24",
58
+ "pnpm": "10"
58
59
  },
59
60
  "scripts": {
60
61
  "build": "vite build",
@@ -0,0 +1,10 @@
1
+ allowBuilds:
2
+ "@parcel/watcher": true
3
+ esbuild: true
4
+ blockExoticSubdeps: true
5
+ minimumReleaseAge: 720
6
+ minimumReleaseAgeExclude:
7
+ - "@molgenis/vip-report-api"
8
+ - "@molgenis/vip-report-vcf"
9
+ - "@molgenis/vite-plugin-inline"
10
+ trustPolicy: no-downgrade
@@ -18,7 +18,7 @@ export const FieldGenotypeStr: Component<{
18
18
  <span class="ml-1">{`(n=${props.value.genotype.a
19
19
  .map((allele) => (allele !== null ? props.value.repeatCount![allele - 1] : "?"))
20
20
  .join("/")})`}</span>
21
- <Show when={props.value.repeatUnitMatch === false}>
21
+ <Show when={props.value.repeatUnitMatch === 0}>
22
22
  <abbr
23
23
  title={"the called repeat unit does not match the repeat unit in the loci bed file"}
24
24
  class="ml-1 is-clickable"
@@ -4,11 +4,15 @@ import { CellValueSpanningReads } from "../../../types/configCellComposed";
4
4
  export const FieldSpanningReads: Component<{
5
5
  value: CellValueSpanningReads;
6
6
  }> = (props) => {
7
- return (
8
- <span>
9
- {props.value.genotype.a
7
+ const value = () => {
8
+ if (props.value.genotype.t === "hom_a" || props.value.genotype.t === "hom_r") {
9
+ return props.value.spanningReads[0];
10
+ } else {
11
+ return props.value.genotype.a
10
12
  .map((allele) => (allele !== null ? props.value.spanningReads[allele - 1] : "?"))
11
- .join("/")}
12
- </span>
13
- );
13
+ .join("/");
14
+ }
15
+ };
16
+
17
+ return <span>{value()}</span>;
14
18
  };
Binary file