@armscye/hooks 0.7.0 → 0.7.4

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,12 +1,11 @@
1
1
  /**
2
- * Interface defining method to respond to system signals (when application gets
3
- * shutdown by, e.g., `SIGTERM`).
2
+ * Defines a hook that runs when the application is shutting down.
4
3
  */
5
4
  export interface ShutdownHook {
6
5
  /**
7
- * Called after connections close.
6
+ * Called during application shutdown.
8
7
  *
9
- * @param signal the system signal
8
+ * @param signal The system signal that triggered the shutdown, if available.
10
9
  */
11
10
  onShutdown(signal?: string): any;
12
11
  }
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Interface defining method called during the application startup.
2
+ * Defines a hook that runs during application startup.
3
3
  */
4
4
  export interface StartupHook {
5
5
  /**
6
- * Called before listening for connections.
6
+ * Called when the application is starting.
7
7
  */
8
8
  onStartup(): any;
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armscye/hooks",
3
- "version": "0.7.0",
3
+ "version": "0.7.4",
4
4
  "description": "A collection of shared standard TypeScript definitions (@hooks)",
5
5
  "author": "Augustus Kamau",
6
6
  "license": "MIT",
@@ -15,7 +15,7 @@
15
15
  "hooks"
16
16
  ],
17
17
  "dependencies": {
18
- "@armscye/core": "^0.4.0"
18
+ "@armscye/core": "^0.4.3"
19
19
  },
20
20
  "homepage": "https://github.com/armscye/armscye#readme",
21
21
  "repository": {
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "0709eb7276b853296ef820d0e5bd8c170e6d2ee3"
31
+ "gitHead": "e9a42ae673466c9a255f4ebec8750f580e9f70a6"
32
32
  }