@open-norantec/herbal 1.0.2-alpha.26 → 1.0.2-alpha.27

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,7 +210,7 @@ var TypeScriptClient = (function (_super) {
210
210
  return __generator(this, function (_a) {
211
211
  switch (_a.label) {
212
212
  case 0:
213
- interfaceName = "Interface_".concat(Math.random().toString(36).slice(2));
213
+ interfaceName = "Interface".concat(Math.random().toString(36).slice(2));
214
214
  return [4, (0, json_schema_to_typescript_1.compile)(schema, interfaceName, {
215
215
  format: true,
216
216
  bannerComment: '',
@@ -226,7 +226,7 @@ var TypeScriptClient = (function (_super) {
226
226
  .split('\n')
227
227
  .map(function (line, index) { return "".concat(index === 0 ? '' : ' ').concat(line.trim()); })
228
228
  .join('')
229
- .slice("export interface ".concat(interfaceName, " ").length);
229
+ .replace(/^export\s+interface\s+Interface[a-zA-Z0-9-_]+\s+\{/, '{');
230
230
  })];
231
231
  case 1: return [2, _a.sent()];
232
232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/herbal",
3
- "version": "1.0.2-alpha.26",
3
+ "version": "1.0.2-alpha.27",
4
4
  "description": "Herbal is a builder and toolchain for Nest.js applications",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {