@hazeljs/swagger 0.7.2 → 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger.controller.d.ts","sourceRoot":"","sources":["../src/swagger.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAca,iBAAiB;IAGhB,OAAO,CAAC,cAAc;IAFlC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAgB;gBAErB,cAAc,EAAE,cAAc;IAElD,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI;IA6B3C,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"swagger.controller.d.ts","sourceRoot":"","sources":["../src/swagger.controller.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAIrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,qBAca,iBAAiB;IAGhB,OAAO,CAAC,cAAc;IAFlC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAgB;gBAErB,cAAc,EAAE,cAAc;IAElD,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI;IA6B3C,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;IA6IvD,OAAO,CAAC,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CA6DzD"}
|
|
@@ -45,9 +45,16 @@ let SwaggerController = SwaggerController_1 = class SwaggerController {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
core_3.default.debug('Root module:', SwaggerController_1.rootModule.name);
|
|
48
|
-
// Get all controllers from the AppModule and its imported modules
|
|
48
|
+
// Get all controllers from the AppModule and its imported modules.
|
|
49
|
+
// Avoid JSON.stringify on full metadata because dynamic module objects can be circular.
|
|
49
50
|
const moduleMetadata = (0, core_2.getModuleMetadata)(SwaggerController_1.rootModule);
|
|
50
|
-
core_3.default.debug('Module metadata:',
|
|
51
|
+
core_3.default.debug('Module metadata summary:', moduleMetadata
|
|
52
|
+
? {
|
|
53
|
+
controllers: moduleMetadata.controllers?.length || 0,
|
|
54
|
+
imports: moduleMetadata.imports?.length || 0,
|
|
55
|
+
providers: moduleMetadata.providers?.length || 0,
|
|
56
|
+
}
|
|
57
|
+
: null);
|
|
51
58
|
const controllers = new Set();
|
|
52
59
|
// Helper function to recursively collect controllers from modules
|
|
53
60
|
const collectControllers = (moduleRef) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/swagger",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Swagger/OpenAPI documentation module for HazelJS framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@hazeljs/core": ">=0.2.0-beta.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "d503f9c1c314ce84a5a53fdee75dd8cc5f190062"
|
|
55
55
|
}
|