modified-dicom-pacs 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/bin/dicomweb-pacs CHANGED
@@ -4,14 +4,14 @@ const config = require('config');
4
4
  var fs = require('fs');
5
5
  const fs1 = require('fs-extra');
6
6
  var spawn = require('child_process').spawn;
7
- console.log('starting dicomweb-pacs...');
7
+ console.log('starting modified-dicom-pacs...');
8
8
 
9
- process.chdir('./node_modules/dicomweb-pacs');
9
+ process.chdir('./node_modules/modified-dicom-pacs');
10
10
  const ls = spawn('node', ['src/app.js']);
11
11
 
12
- console.log("checkpath=-=-", `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\Testss.Txt`);
13
- let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\Testss.Txt`;
14
- let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\getText.txt`;
12
+ console.log("checkpath=-=-", `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`);
13
+ let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
14
+ let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
15
15
  let DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
16
16
 
17
17
  ls.stdout.on('data', (data) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "modified-dicom-pacs",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A modified version of DICOM PACS implementation",
5
5
  "main": "app.js",
6
6
  "scripts": {
@@ -4,21 +4,21 @@ var fs = require('fs');
4
4
  const fs1 = require('fs-extra');
5
5
  var spawn = require('child_process').spawn;
6
6
 
7
- process.chdir('./node_modules/dicomweb-pacs');
7
+ process.chdir('./node_modules/modified-dicom-pacs');
8
8
 
9
- let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\Testss.Txt`;
10
- let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\getText.txt`;
9
+ let TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
10
+ let getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
11
11
  let DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
12
12
 
13
13
  // This fixes dicom-pacs in Unix-like file systems (MacOS/Linux...) where backslashes are used instead of forward slashes like on Windows
14
- if (__dirname.split('dicomweb-pacs\\').length <= 1) {
15
- TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\Testss.Txt`;
16
- getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\dicomweb-pacs\\getText.txt`;
14
+ if (__dirname.split('modified-dicom-pacs\\').length <= 1) {
15
+ TestsTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\Testss.Txt`;
16
+ getTxtFile = `${__dirname.split('\\webpacsApp')[0]}\\webpacsApp\\node_modules\\modified-dicom-pacs\\getText.txt`;
17
17
  DataNativeFolder = `${__dirname.split('\\webpacsApp')[0]}\\data\\Native`;
18
18
  }
19
19
 
20
20
  function startServer() {
21
- console.log('starting dicomweb-pacs...');
21
+ console.log('starting modified-dicom-pacs...');
22
22
  const ls = spawn('node', ['src/app.js']);
23
23
 
24
24
  ls.stdout.on('data', (data) => {