@pdftron/pdfnet-node-samples 9.5.0-2 → 9.5.0-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdftron/pdfnet-node-samples",
3
- "version": "9.5.0-2",
3
+ "version": "9.5.0-3",
4
4
  "description": "Sample code for the @pdftron/pdfnet-node package.",
5
5
  "scripts": {
6
6
  "test": "run-script-os",
@@ -1,13 +1,12 @@
1
1
  @echo off
2
2
  for /D %%s in (*Test) do (
3
- if exist %%s\NODEJS\%%~nxs.js (
4
- cd %%s\NODEJS
5
- echo %%s starting...
3
+ if exist %%s\%%~nxs.js (
4
+ cd %%s
5
+ echo %%s running...
6
6
  call node %%~nxs.js
7
- cd ..\..
7
+ cd ..
8
8
  echo %%s finished.
9
9
  pause
10
10
  )
11
11
  )
12
-
13
- echo Run all tests finished.
12
+ echo All tests finished.
package/samples/runall.sh CHANGED
@@ -2,13 +2,14 @@
2
2
 
3
3
  for SAMPLE in *Test
4
4
  do
5
- if [ -d $SAMPLE/NODEJS ] && [ -e $SAMPLE/NODEJS/RunTest.sh ]
5
+ if [ -d $SAMPLE ] && [ -e $SAMPLE/$SAMPLE.js ]
6
6
  then
7
- cd $SAMPLE/NODEJS
7
+ cd $SAMPLE
8
8
  echo "$SAMPLE running"
9
- sh RunTest.sh
10
- cd ../..
9
+ node $SAMPLE.js
10
+ cd ..
11
11
  echo "$SAMPLE finished. Press enter to continue..."
12
12
  read -p "$*" a
13
13
  fi
14
14
  done
15
+ echo "All tests finished."