@sjcrh/proteinpaint-server 2.138.3-4 → 2.138.3-5

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.
@@ -1,10 +1,14 @@
1
1
  import termdbTestInit from "./termdb.test.js";
2
+ const minSampleSize = 10;
2
3
  function protected_test_default() {
3
4
  const ds = termdbTestInit();
4
5
  if (!ds.cohort)
5
6
  ds.cohort = { termdb: {} };
6
- ds.cohort.termdb.hasMinSampleSize = (sampleCount) => {
7
- return sampleCount >= 10;
7
+ ds.cohort.termdb.checkAccessToSampleData = (_, data) => {
8
+ return {
9
+ minSampleSize,
10
+ canAccess: data.sampleCount >= minSampleSize
11
+ };
8
12
  };
9
13
  return ds;
10
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjcrh/proteinpaint-server",
3
- "version": "2.138.3-4",
3
+ "version": "2.138.3-5",
4
4
  "type": "module",
5
5
  "description": "a genomics visualization tool for exploring a cohort's genotype and phenotype data",
6
6
  "main": "src/app.js",
@@ -64,7 +64,7 @@
64
64
  "@sjcrh/proteinpaint-r": "2.137.2-0",
65
65
  "@sjcrh/proteinpaint-rust": "2.137.2-0",
66
66
  "@sjcrh/proteinpaint-shared": "2.137.3",
67
- "@sjcrh/proteinpaint-types": "2.138.3-4",
67
+ "@sjcrh/proteinpaint-types": "2.138.3-5",
68
68
  "@types/express": "^5.0.0",
69
69
  "@types/express-session": "^1.18.1",
70
70
  "better-sqlite3": "^9.4.1",