c2-http 1.0.2 → 1.0.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.
package/dist/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export declare function HttpDispatchHandling(target: any, methodName: string, descriptor: PropertyDescriptor): PropertyDescriptor;
2
- export declare function HttpDispatchDownload(target: any, methodName: string, descriptor: PropertyDescriptor): PropertyDescriptor;
1
+ import { Controller } from "./model/Controller";
2
+ import { IControllerOptions } from "./model/IControllerOptions";
3
+ declare function HttpDispatchHandling(target: any, methodName: string, descriptor: PropertyDescriptor): PropertyDescriptor;
4
+ declare function HttpDispatchDownload(target: any, methodName: string, descriptor: PropertyDescriptor): PropertyDescriptor;
5
+ export { Controller, IControllerOptions, HttpDispatchHandling, HttpDispatchDownload };
package/dist/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.HttpDispatchDownload = exports.HttpDispatchHandling = void 0;
3
+ exports.HttpDispatchDownload = exports.HttpDispatchHandling = exports.Controller = void 0;
4
4
  const http_status_1 = require("http-status");
5
+ const Controller_1 = require("./model/Controller");
6
+ Object.defineProperty(exports, "Controller", { enumerable: true, get: function () { return Controller_1.Controller; } });
5
7
  function HttpDispatchHandling(target, methodName, descriptor) {
6
8
  const originalMethod = descriptor.value;
7
9
  descriptor.value = async function (...args) {
@@ -1,7 +1,7 @@
1
1
  import { Router } from "express";
2
- import { ControllerOptions } from "./IControllerOptions";
2
+ import { IControllerOptions } from "./IControllerOptions";
3
3
  export declare abstract class Controller {
4
4
  routers: Router;
5
- protected options: ControllerOptions;
6
- constructor(_options: ControllerOptions);
5
+ protected options: IControllerOptions;
6
+ constructor(_options: IControllerOptions);
7
7
  }
@@ -1,4 +1,4 @@
1
- export interface ControllerOptions {
1
+ export interface IControllerOptions {
2
2
  uri: string;
3
3
  basePath: string;
4
4
  relativePath: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "c2-http",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Biblioteca Typescript para API NodeJS",
5
5
  "repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
6
6
  "author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",