@open-norantec/herbal 2.0.0-alpha.1 → 2.0.0-alpha.2

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.
@@ -210,6 +210,8 @@ var TypeScriptClient = (function (_super) {
210
210
  return __generator(this, function (_a) {
211
211
  switch (_a.label) {
212
212
  case 0:
213
+ if (!schema)
214
+ return [2, 'unknown'];
213
215
  interfaceName = "Interface".concat(Math.random().toString(36).slice(2));
214
216
  return [4, (0, json_schema_to_typescript_1.compile)(schema, interfaceName, {
215
217
  format: true,
@@ -221,6 +223,7 @@ var TypeScriptClient = (function (_super) {
221
223
  semi: true,
222
224
  trailingComma: 'none',
223
225
  },
226
+ cwd: process.cwd(),
224
227
  }).then(function (code) {
225
228
  return code
226
229
  .trim()
package/dist/core.js CHANGED
@@ -219,12 +219,14 @@ var MethodPool = (function () {
219
219
  '200': {
220
220
  description: 'Response for method ' + name,
221
221
  content: {
222
- 'application/json': utilities_1.z
223
- .object({
224
- data: config.options.outputSchema,
225
- token: utilities_1.z.string().nullable(),
226
- })
227
- .toJSONSchema(),
222
+ 'application/json': {
223
+ schema: utilities_1.z
224
+ .object({
225
+ data: config.options.outputSchema,
226
+ token: utilities_1.z.string().nullable(),
227
+ })
228
+ .toJSONSchema(),
229
+ },
228
230
  },
229
231
  },
230
232
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/herbal",
3
- "version": "2.0.0-alpha.1",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Herbal is a builder and toolchain for Nest.js applications",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {