@platformatic/nest 3.28.0-alpha.1 → 3.28.1

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
@@ -499,6 +499,7 @@ export interface PlatformaticNestJSConfig {
499
499
  [k: string]: string;
500
500
  };
501
501
  sourceMaps?: boolean;
502
+ nodeModulesSourceMaps?: string[];
502
503
  scheduler?: {
503
504
  enabled?: boolean | string;
504
505
  name: string;
@@ -553,6 +554,7 @@ export interface PlatformaticNestJSConfig {
553
554
  };
554
555
  envfile?: string;
555
556
  sourceMaps?: boolean;
557
+ nodeModulesSourceMaps?: string[];
556
558
  packageManager?: "npm" | "pnpm" | "yarn";
557
559
  preload?: string | string[];
558
560
  nodeOptions?: string;
package/lib/capability.js CHANGED
@@ -5,9 +5,9 @@ import {
5
5
  ensureTrailingSlash,
6
6
  errors,
7
7
  getServerUrl,
8
- importFile
8
+ importFile,
9
+ resolvePackageViaCJS
9
10
  } from '@platformatic/basic'
10
- import { resolvePackageViaCJS } from '@platformatic/basic/lib/utils.js'
11
11
  import getPort from 'get-port'
12
12
  import inject from 'light-my-request'
13
13
  import { readFile } from 'node:fs/promises'
@@ -100,16 +100,7 @@ export class NestCapability extends BaseCapability {
100
100
  return
101
101
  }
102
102
 
103
- return new Promise((resolve, reject) => {
104
- this.#server.close(error => {
105
- /* c8 ignore next 3 */
106
- if (error) {
107
- return reject(error)
108
- }
109
-
110
- resolve()
111
- })
112
- })
103
+ return this._closeServer(this.#server)
113
104
  }
114
105
 
115
106
  async build () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/nest",
3
- "version": "3.28.0-alpha.1",
3
+ "version": "3.28.1",
4
4
  "description": "Platformatic Nest.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  "get-port": "^7.1.0",
19
19
  "light-my-request": "^6.0.0",
20
20
  "pino-http": "^10.2.0",
21
- "@platformatic/foundation": "3.28.0-alpha.1",
22
- "@platformatic/generators": "3.28.0-alpha.1",
23
- "@platformatic/basic": "3.28.0-alpha.1"
21
+ "@platformatic/generators": "3.28.1",
22
+ "@platformatic/foundation": "3.28.1",
23
+ "@platformatic/basic": "3.28.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@nestjs/cli": "^11.0.7",
@@ -33,8 +33,8 @@
33
33
  "neostandard": "^0.12.0",
34
34
  "tsx": "^4.19.0",
35
35
  "typescript": "^5.5.4",
36
- "@platformatic/gateway": "3.28.0-alpha.1",
37
- "@platformatic/service": "3.28.0-alpha.1"
36
+ "@platformatic/gateway": "3.28.1",
37
+ "@platformatic/service": "3.28.1"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.28.0-alpha.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/nest/3.28.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic NestJS Config",
5
5
  "type": "object",
@@ -593,6 +593,12 @@
593
593
  "sourceMaps": {
594
594
  "type": "boolean"
595
595
  },
596
+ "nodeModulesSourceMaps": {
597
+ "type": "array",
598
+ "items": {
599
+ "type": "string"
600
+ }
601
+ },
596
602
  "packageManager": {
597
603
  "type": "string",
598
604
  "enum": [
@@ -1839,6 +1845,13 @@
1839
1845
  "type": "boolean",
1840
1846
  "default": false
1841
1847
  },
1848
+ "nodeModulesSourceMaps": {
1849
+ "type": "array",
1850
+ "items": {
1851
+ "type": "string"
1852
+ },
1853
+ "default": []
1854
+ },
1842
1855
  "scheduler": {
1843
1856
  "type": "array",
1844
1857
  "items": {
@@ -2092,6 +2105,12 @@
2092
2105
  "sourceMaps": {
2093
2106
  "type": "boolean"
2094
2107
  },
2108
+ "nodeModulesSourceMaps": {
2109
+ "type": "array",
2110
+ "items": {
2111
+ "type": "string"
2112
+ }
2113
+ },
2095
2114
  "packageManager": {
2096
2115
  "type": "string",
2097
2116
  "enum": [