@tahminator/sapling 2.1.0-beta.419f8e67 → 2.1.0-beta.4344e0ca

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/dist/index.cjs CHANGED
@@ -525,7 +525,7 @@ var Sapling = class Sapling {
525
525
  return function(...args) {
526
526
  const server = originalListen.apply(target, args);
527
527
  server.once("listening", () => {
528
- Sapling.onPostStartup();
528
+ Sapling._onPostStartup();
529
529
  console.log("Sapling successfully initialized post-startup hooks on server start");
530
530
  });
531
531
  return server;
@@ -534,7 +534,11 @@ var Sapling = class Sapling {
534
534
  return Reflect.get(target, prop, receiver);
535
535
  } });
536
536
  }
537
- static onPostStartup() {
537
+ /**
538
+ * @internal
539
+ * visible for testing
540
+ */
541
+ static _onPostStartup() {
538
542
  _InjectableRegistry.get(HealthRegistrar)?._markReady();
539
543
  }
540
544
  /**
package/dist/index.d.cts CHANGED
@@ -853,7 +853,11 @@ declare class Sapling {
853
853
  * ```
854
854
  */
855
855
  static registerApp(app: e.Express): e.Express;
856
- static onPostStartup(): void;
856
+ /**
857
+ * @internal
858
+ * visible for testing
859
+ */
860
+ static _onPostStartup(): void;
857
861
  /**
858
862
  * Serialize a value into a JSON string.
859
863
  *
package/dist/index.d.mts CHANGED
@@ -853,7 +853,11 @@ declare class Sapling {
853
853
  * ```
854
854
  */
855
855
  static registerApp(app: e.Express): e.Express;
856
- static onPostStartup(): void;
856
+ /**
857
+ * @internal
858
+ * visible for testing
859
+ */
860
+ static _onPostStartup(): void;
857
861
  /**
858
862
  * Serialize a value into a JSON string.
859
863
  *
package/dist/index.mjs CHANGED
@@ -500,7 +500,7 @@ var Sapling = class Sapling {
500
500
  return function(...args) {
501
501
  const server = originalListen.apply(target, args);
502
502
  server.once("listening", () => {
503
- Sapling.onPostStartup();
503
+ Sapling._onPostStartup();
504
504
  console.log("Sapling successfully initialized post-startup hooks on server start");
505
505
  });
506
506
  return server;
@@ -509,7 +509,11 @@ var Sapling = class Sapling {
509
509
  return Reflect.get(target, prop, receiver);
510
510
  } });
511
511
  }
512
- static onPostStartup() {
512
+ /**
513
+ * @internal
514
+ * visible for testing
515
+ */
516
+ static _onPostStartup() {
513
517
  _InjectableRegistry.get(HealthRegistrar)?._markReady();
514
518
  }
515
519
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tahminator/sapling",
3
- "version": "2.1.0-beta.419f8e67",
3
+ "version": "2.1.0-beta.4344e0ca",
4
4
  "author": "Tahmid Ahmed",
5
5
  "description": "A library to help you write cleaner Express.js code",
6
6
  "repository": {