@open-norantec/herbal 1.0.2-alpha.32 → 1.0.2-alpha.33

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.
@@ -40,6 +40,7 @@ declare class MethodPool {
40
40
  export declare function isHerbalController(target: Function): boolean;
41
41
  export declare function getControllerName(target: Function): any;
42
42
  export interface HerbalControllerOptions<C> {
43
+ ignoreControllerNamePostfix?: boolean;
43
44
  prefix?: string;
44
45
  useHeadGuards?: Constructor<any>[];
45
46
  useTailGuards?: Constructor<any>[];
@@ -459,7 +459,9 @@ var ControllerUtil = (function () {
459
459
  : createOptions.prefix
460
460
  : options.prefix;
461
461
  var controllerName = _.camelCase(target.name.replace(/Controller$/g, ''));
462
- finalPrefix += "".concat(((_a = finalPrefix === null || finalPrefix === void 0 ? void 0 : finalPrefix.endsWith) === null || _a === void 0 ? void 0 : _a.call(finalPrefix, '/')) ? '' : '/').concat(controllerName);
462
+ if (!(options === null || options === void 0 ? void 0 : options.ignoreControllerNamePostfix)) {
463
+ finalPrefix += "".concat(((_a = finalPrefix === null || finalPrefix === void 0 ? void 0 : finalPrefix.endsWith) === null || _a === void 0 ? void 0 : _a.call(finalPrefix, '/')) ? '' : '/').concat(controllerName);
464
+ }
463
465
  var register = function (name, options, callback) {
464
466
  if (string_util_class_1.StringUtil.isFalsyString(name) || typeof callback !== 'function')
465
467
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-norantec/herbal",
3
- "version": "1.0.2-alpha.32",
3
+ "version": "1.0.2-alpha.33",
4
4
  "description": "Herbal is a builder and toolchain for Nest.js applications",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {