@sjcrh/proteinpaint-server 2.124.1 → 2.125.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.
@@ -253,4 +253,13 @@ if (fs.existsSync('./package.json')) {
253
253
  serverconfig.version = JSON.parse(pkg).version
254
254
  }
255
255
 
256
+ if (!serverconfig.cache_snpgt) {
257
+ serverconfig.cache_snpgt = {
258
+ dir: path.join(serverconfig.cachedir, 'snpgt'),
259
+ fileNameRegexp: /[^\w]/, // client-provided cache file name matching with this are denied
260
+ sampleColumn: 6 // in cache file, sample column starts from 7th column
261
+ }
262
+ if (!fs.existsSync(serverconfig.cache_snpgt.dir)) fs.mkdirSync(serverconfig.cache_snpgt.dir, { recursive: true })
263
+ }
264
+
256
265
  export default serverconfig