k2hr3-api 1.0.20 → 1.0.22

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.
Files changed (3) hide show
  1. package/ChangeLog +12 -0
  2. package/bin/run.sh +1 -1
  3. package/package.json +13 -9
package/ChangeLog CHANGED
@@ -1,3 +1,15 @@
1
+ k2hr3-api (1.0.22) unstable; urgency=low
2
+
3
+ * Fixed a bug about stopping processes in run.sh - #94
4
+
5
+ -- Takeshi Nakatani <ggtakec@gmail.com> Thu, 01 Jun 2023 15:37:41 +0900
6
+
7
+ k2hr3-api (1.0.21) unstable; urgency=low
8
+
9
+ * Changed partially scripts(command) in package.json - #92
10
+
11
+ -- Takeshi Nakatani <ggtakec@gmail.com> Mon, 29 May 2023 10:36:24 +0900
12
+
1
13
  k2hr3-api (1.0.20) unstable; urgency=low
2
14
 
3
15
  * Fixed a bug in OS determination processing - #90
package/bin/run.sh CHANGED
@@ -98,7 +98,7 @@ stop_old_process()
98
98
  #
99
99
  # Try to stop(HUP) process and child processes
100
100
  #
101
- OLD_CIHLD_PIDS="$(pgrep -P "${OLDPROCID}" | tr '\n' ' ')"
101
+ OLD_CIHLD_PIDS="$(pgrep -P "${OLD_PID}" | tr '\n' ' ')"
102
102
  if ! /bin/sh -c "kill -HUP ${OLD_PID} ${OLD_CIHLD_PIDS}" >/dev/null 2>&1; then
103
103
  echo "[WARNING] Failed to stop some old processes."
104
104
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k2hr3-api",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "dependencies": {
5
5
  "@kubernetes/client-node": "^0.18.1",
6
6
  "body-parser": "^1.20.2",
@@ -30,21 +30,25 @@
30
30
  "devDependencies": {
31
31
  "chai": "^4.3.7",
32
32
  "chai-http": "^4.3.0",
33
- "eslint": "^8.40.0",
33
+ "eslint": "^8.41.0",
34
34
  "mocha": "^10.2.0",
35
35
  "nyc": "^15.1.0"
36
36
  },
37
37
  "scripts": {
38
- "help": "echo 'command list:\n npm run start\n npm run start:prod\n npm run start:production\n npm run start:dev\n npm run start:develop\n npm run start:dbg\n npm run start:debug\n npm run start:debug:break\n npm run start:debug:nobreak\n npm run start:watcher:prod\n npm run start:watcher:production\n npm run start:watcher:dev\n npm run start:watcher:develop\n npm run start:watcher:dbg\n npm run start:watcher:debug\n npm run start:watcher:debug:break\n npm run start:watcher:debug:nobreak\n npm run start:watcher:oneshot:prod\n npm run start:watcher:oneshot:production\n npm run start:watcher:oneshot:dev\n npm run start:watcher:oneshot:develop\n npm run start:watcher:oneshot:dbg\n npm run start:watcher:oneshot:debug\n npm run start:watcher:oneshot:debug:break\n npm run start:watcher:oneshot:debug:nobreak\n npm run stop\n npm run stop:watcher\n npm run test\n npm run test:lint\n npm run test:cover\n npm run test:auto:all{:dbg}\n npm run test:auto:version{:dbg}\n npm run test:auto:usertokens{:dbg}\n npm run test:auto:list{:dbg}\n npm run test:auto:resource{:dbg}\n npm run test:auto:policy{:dbg}\n npm run test:auto:role{:dbg}\n npm run test:auto:service{:dbg}\n npm run test:auto:acr{:dbg}\n npm run test:auto:userdata{:dbg}\n npm run test:auto:extdata{:dbg}\n npm run test:auto:watcher{:dbg}\n npm run test:auto:templengine\n npm run test:auto:templengine:async\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
38
+ "help": "echo 'command list:\n npm run start\n npm run start:prod\n npm run start:production\n npm run start:prod:dbg\n npm run start:prod:debug\n npm run start:prod:debug:break\n npm run start:prod:debug:nobreak\n npm run start:dev\n npm run start:develop\n npm run start:dev:dbg\n npm run start:dev:debug\n npm run start:dev:debug:break\n npm run start:dev:debug:nobreak\n npm run start:watcher:prod\n npm run start:watcher:production\n npm run start:watcher:dev\n npm run start:watcher:develop\n npm run start:watcher:dbg\n npm run start:watcher:debug\n npm run start:watcher:debug:break\n npm run start:watcher:debug:nobreak\n npm run start:watcher:oneshot:prod\n npm run start:watcher:oneshot:production\n npm run start:watcher:oneshot:dev\n npm run start:watcher:oneshot:develop\n npm run start:watcher:oneshot:dbg\n npm run start:watcher:oneshot:debug\n npm run start:watcher:oneshot:debug:break\n npm run start:watcher:oneshot:debug:nobreak\n npm run stop\n npm run stop:watcher\n npm run test\n npm run test:lint\n npm run test:cover\n npm run test:auto:all{:dbg}\n npm run test:auto:version{:dbg}\n npm run test:auto:usertokens{:dbg}\n npm run test:auto:list{:dbg}\n npm run test:auto:resource{:dbg}\n npm run test:auto:policy{:dbg}\n npm run test:auto:role{:dbg}\n npm run test:auto:service{:dbg}\n npm run test:auto:acr{:dbg}\n npm run test:auto:userdata{:dbg}\n npm run test:auto:extdata{:dbg}\n npm run test:auto:watcher{:dbg}\n npm run test:auto:templengine\n npm run test:auto:templengine:async\n npm run test:manual:apis:version_get\n npm run test:manual:apis:usertoken_postput\n npm run test:manual:apis:usertoken_gethead\n npm run test:manual:apis:policy_postput\n npm run test:manual:apis:policy_gethead\n npm run test:manual:apis:policy_delete\n npm run test:manual:apis:resource_postput\n npm run test:manual:apis:resource_gethead\n npm run test:manual:apis:resource_delete\n npm run test:manual:apis:role_postput\n npm run test:manual:apis:role_gethead\n npm run test:manual:apis:role_delete\n npm run test:manual:apis:service_postput\n npm run test:manual:apis:service_gethead\n npm run test:manual:apis:service_delete\n npm run test:manual:apis:acr_postput\n npm run test:manual:apis:acr_get\n npm run test:manual:apis:acr_delete\n npm run test:manual:apis:list_gethead\n npm run test:manual:apis:userdata_get\n npm run test:manual:apis:extdata_get\n npm run test:manual:apis:allusertenant_get\n npm run test:manual:apis:k2hr3keys_get\n npm run test:manual:load:k2hdkcdata:auto\n npm run test:manual:load:k2hdkcdata:local\n npm run test:manual:templengine\n npm run test:manual:templengine:async\n'",
39
39
  "start": "npm run start:production",
40
40
  "start:prod": "npm run start:production",
41
41
  "start:production": "bin/run.sh -bg --production && echo '' && echo 'Start on production - Success' && echo ''",
42
+ "start:prod:dbg": "npm run start:prod:debug",
43
+ "start:prod:debug": "npm run start:prod:debug:break",
44
+ "start:prod:debug:break": "echo '' && echo 'Start on production with debugging' && echo '' && bin/run.sh --production --debug --debuglevel dbg",
45
+ "start:prod:debug:nobreak": "echo '' && echo 'Start on production with debugging no break' && echo '' && bin/run.sh --production --debug-nobrk --debuglevel dbg",
42
46
  "start:dev": "npm run start:develop",
43
47
  "start:develop": "echo '' && echo 'Start on development without debugging' && echo '' && bin/run.sh -bg --development",
44
- "start:dbg": "npm run start:debug",
45
- "start:debug": "npm run start:debug:break",
46
- "start:debug:break": "echo '' && echo 'Start on development with debugging' && echo '' && bin/run.sh --development --debug --debuglevel dbg",
47
- "start:debug:nobreak": "echo '' && echo 'Start on development with debugging no break' && echo '' && bin/run.sh --development --debug-nobrk --debuglevel dbg",
48
+ "start:dev:dbg": "npm run start:dev:debug",
49
+ "start:dev:debug": "npm run start:dev:debug:break",
50
+ "start:dev:debug:break": "echo '' && echo 'Start on development with debugging' && echo '' && bin/run.sh --development --debug --debuglevel dbg",
51
+ "start:dev:debug:nobreak": "echo '' && echo 'Start on development with debugging no break' && echo '' && bin/run.sh --development --debug-nobrk --debuglevel dbg",
48
52
  "start:watcher:prod": "npm run start:watcher:production",
49
53
  "start:watcher:production": "bin/run.sh -bg --production --watcher && echo '' && echo 'Start watcher on production - Success' && echo ''",
50
54
  "start:watcher:dev": "npm run start:watcher:develop",
@@ -61,8 +65,8 @@
61
65
  "start:watcher:oneshot:debug": "npm run start:watcher:oneshot:debug:break",
62
66
  "start:watcher:oneshot:debug:break": "echo '' && echo 'Start watcher on development with debugging' && echo '' && bin/run.sh --development --watcher --oneshot --debug --debuglevel dbg",
63
67
  "start:watcher:oneshot:debug:nobreak": "echo '' && echo 'Start watcher on development with debugging no break' && echo '' && bin/run.sh --development --watcher --oneshot --debug-nobrk --debuglevel dbg",
64
- "stop": "bin/run.sh -stop && echo '' && echo 'Stop - Success' && echo ''",
65
- "stop:watcher": "bin/run.sh -stop --watcher && echo '' && echo 'Stop watcher - Success' && echo ''",
68
+ "stop": "bin/run.sh --stop && echo '' && echo 'Stop - Success' && echo ''",
69
+ "stop:watcher": "bin/run.sh --stop --watcher && echo '' && echo 'Stop watcher - Success' && echo ''",
66
70
  "test": "npm run test:cover",
67
71
  "test:lint": "eslint lib/*.js app.js bin/www bin/watcher routes/*.js tests/*.js",
68
72
  "test:cover": "echo 'Test with coverage' && nyc --reporter=lcov --reporter=text npm run test:auto:all",