@platformatic/nest 2.68.0 → 2.70.0

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/config.d.ts CHANGED
@@ -211,7 +211,7 @@ export interface PlatformaticNestJSStackable {
211
211
  maxELU?: number | string;
212
212
  maxHeapUsed?: number | string;
213
213
  maxHeapTotal?: number | string;
214
- maxYoungGeneration?: number;
214
+ maxYoungGeneration?: number | string;
215
215
  };
216
216
  undici?: {
217
217
  agentOptions?: {
package/index.js CHANGED
@@ -118,17 +118,6 @@ export class NestStackable extends BaseStackable {
118
118
  async inject (injectParams, onInject) {
119
119
  let res
120
120
 
121
- if (this.startHttpTimer && this.endHttpTimer) {
122
- this.startHttpTimer({ request: injectParams })
123
- if (onInject) {
124
- const originalOnInject = onInject
125
- onInject = (err, response) => {
126
- this.endHttpTimer({ request: injectParams, response })
127
- originalOnInject(err, response)
128
- }
129
- }
130
- }
131
-
132
121
  if (this.#isFastify) {
133
122
  res = await this.#server.inject(injectParams, onInject)
134
123
  } else {
@@ -138,8 +127,6 @@ export class NestStackable extends BaseStackable {
138
127
  /* c8 ignore next 3 */
139
128
  if (onInject) {
140
129
  return
141
- } else if (this.endHttpTimer) {
142
- this.endHttpTimer({ request: injectParams, response: res })
143
130
  }
144
131
 
145
132
  // Since inject might be called from the main thread directly via ITC, let's clean it up
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nest",
3
- "version": "2.68.0",
3
+ "version": "2.70.0",
4
4
  "description": "Platformatic Nest.js Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,10 +18,10 @@
18
18
  "get-port": "^7.1.0",
19
19
  "light-my-request": "^6.0.0",
20
20
  "pino-http": "^10.2.0",
21
- "@platformatic/basic": "2.68.0",
22
- "@platformatic/generators": "2.68.0",
23
- "@platformatic/config": "2.68.0",
24
- "@platformatic/utils": "2.68.0"
21
+ "@platformatic/basic": "2.70.0",
22
+ "@platformatic/config": "2.70.0",
23
+ "@platformatic/utils": "2.70.0",
24
+ "@platformatic/generators": "2.70.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@nestjs/cli": "^11.0.7",
@@ -34,8 +34,8 @@
34
34
  "neostandard": "^0.12.0",
35
35
  "tsx": "^4.19.0",
36
36
  "typescript": "^5.5.4",
37
- "@platformatic/service": "2.68.0",
38
- "@platformatic/composer": "2.68.0"
37
+ "@platformatic/composer": "2.70.0",
38
+ "@platformatic/service": "2.70.0"
39
39
  },
40
40
  "scripts": {
41
41
  "test": "pnpm run lint && borp --concurrency=1 --no-timeout",
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nest/2.68.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nest/2.70.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic NestJS Stackable",
5
5
  "type": "object",
@@ -724,7 +724,6 @@
724
724
  "default": {},
725
725
  "properties": {
726
726
  "enabled": {
727
- "default": true,
728
727
  "anyOf": [
729
728
  {
730
729
  "type": "boolean"
@@ -732,10 +731,10 @@
732
731
  {
733
732
  "type": "string"
734
733
  }
735
- ]
734
+ ],
735
+ "default": true
736
736
  },
737
737
  "interval": {
738
- "default": 30000,
739
738
  "anyOf": [
740
739
  {
741
740
  "type": "number",
@@ -744,10 +743,10 @@
744
743
  {
745
744
  "type": "string"
746
745
  }
747
- ]
746
+ ],
747
+ "default": 30000
748
748
  },
749
749
  "gracePeriod": {
750
- "default": 30000,
751
750
  "anyOf": [
752
751
  {
753
752
  "type": "number",
@@ -756,10 +755,10 @@
756
755
  {
757
756
  "type": "string"
758
757
  }
759
- ]
758
+ ],
759
+ "default": 30000
760
760
  },
761
761
  "maxUnhealthyChecks": {
762
- "default": 10,
763
762
  "anyOf": [
764
763
  {
765
764
  "type": "number",
@@ -768,10 +767,10 @@
768
767
  {
769
768
  "type": "string"
770
769
  }
771
- ]
770
+ ],
771
+ "default": 10
772
772
  },
773
773
  "maxELU": {
774
- "default": 0.99,
775
774
  "anyOf": [
776
775
  {
777
776
  "type": "number",
@@ -781,10 +780,10 @@
781
780
  {
782
781
  "type": "string"
783
782
  }
784
- ]
783
+ ],
784
+ "default": 0.99
785
785
  },
786
786
  "maxHeapUsed": {
787
- "default": 0.99,
788
787
  "anyOf": [
789
788
  {
790
789
  "type": "number",
@@ -794,10 +793,10 @@
794
793
  {
795
794
  "type": "string"
796
795
  }
797
- ]
796
+ ],
797
+ "default": 0.99
798
798
  },
799
799
  "maxHeapTotal": {
800
- "default": 4294967296,
801
800
  "anyOf": [
802
801
  {
803
802
  "type": "number",
@@ -806,11 +805,19 @@
806
805
  {
807
806
  "type": "string"
808
807
  }
809
- ]
808
+ ],
809
+ "default": 4294967296
810
810
  },
811
811
  "maxYoungGeneration": {
812
- "type": "number",
813
- "minimum": 0
812
+ "anyOf": [
813
+ {
814
+ "type": "number",
815
+ "minimum": 0
816
+ },
817
+ {
818
+ "type": "string"
819
+ }
820
+ ]
814
821
  }
815
822
  },
816
823
  "additionalProperties": false