@zenofolio/hyper-decor 1.0.42 → 1.0.43

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/.mocharc.js CHANGED
@@ -1,5 +1,5 @@
1
1
  module.exports = {
2
- "extension": ["ts"],
3
- "spec": "**/*.spec.ts",
2
+ "extension": ["ts", "cjs"],
3
+ "spec": "**/*.test.ts",
4
4
  "require": "ts-node/register"
5
5
  };
package/README.md CHANGED
@@ -144,7 +144,7 @@ class TestController extends CRUD<string> {
144
144
  ```typescript
145
145
  @HyperModule({
146
146
  path: "users",
147
- controllers: [HyperController]
147
+ controllers: [TestController]
148
148
  })
149
149
  class UserModule {}
150
150
  ```
@@ -89,6 +89,7 @@ const HyperApp = (options) => (0, decorator_base_1.DecoratorHelper)({
89
89
  content.push("");
90
90
  });
91
91
  (_c = options.logger) === null || _c === void 0 ? void 0 : _c.call(this, content.join("\n"));
92
+ this.storeLogs = {};
92
93
  }
93
94
  };
94
95
  });
@@ -21,7 +21,9 @@ export interface HyperAppMetadata {
21
21
  imports?: Constructor[];
22
22
  options?: ServerConstructorOptions;
23
23
  }
24
- export type HyperAppDecorator = (options?: HyperAppMetadata) => (target: Constructor) => Constructor;
24
+ export interface HyperAppDecorator {
25
+ (options?: HyperAppMetadata): (target: Constructor) => Constructor;
26
+ }
25
27
  export type HyperModuleMetadata = {
26
28
  path: string;
27
29
  name?: string;
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
package/dist/extension.js CHANGED
@@ -18,6 +18,9 @@ const requestMethods = {
18
18
  setScopes(scopes) {
19
19
  (0, helpers_1.setScopes)(this, scopes);
20
20
  },
21
+ setFullScopes() {
22
+ (0, helpers_1.setScopes)(this, ["*"]);
23
+ },
21
24
  hasScopes(scopes) {
22
25
  return (0, helpers_1.hasScopes)(this, scopes);
23
26
  },
@@ -25,8 +28,8 @@ const requestMethods = {
25
28
  return (0, helpers_1.getScopes)(this);
26
29
  },
27
30
  setRoleScopes(role, scopes) {
28
- this.setRole(role);
29
- this.setScopes(scopes);
31
+ (0, helpers_1.setRole)(this, role);
32
+ (0, helpers_1.setScopes)(this, scopes);
30
33
  },
31
34
  };
32
35
  /////////////////////////////
@@ -6,6 +6,7 @@ declare module "hyper-express" {
6
6
 
7
7
  getScopes(): string[] | undefined;
8
8
  setScopes(scopes: HyperScopeOptions): void;
9
+ setFullScopes(): void
9
10
 
10
11
  getRoles(): string[] | undefined;
11
12
  setRole(role: HyperRoleOptions): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenofolio/hyper-decor",
3
- "version": "1.0.42",
3
+ "version": "1.0.43",
4
4
  "description": "Project core with utilities and features",
5
5
  "main": "dist/index.js",
6
6
  "author": "zenozaga",