@opra/nestjs 0.18.3 → 0.19.0

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.
@@ -7,4 +7,4 @@ var HandlerParamType;
7
7
  HandlerParamType[HandlerParamType["API"] = 1] = "API";
8
8
  HandlerParamType[HandlerParamType["REQUEST"] = 2] = "REQUEST";
9
9
  HandlerParamType[HandlerParamType["RESPONSE"] = 3] = "RESPONSE";
10
- })(HandlerParamType = exports.HandlerParamType || (exports.HandlerParamType = {}));
10
+ })(HandlerParamType || (exports.HandlerParamType = HandlerParamType = {}));
@@ -17,7 +17,7 @@ const nest_explorer_js_1 = require("../services/nest-explorer.js");
17
17
  const function_utils_js_1 = require("../utils/function.utils.js");
18
18
  const params_factory_js_1 = require("./params.factory.js");
19
19
  const noOpFunction = () => void 0;
20
- let OpraApiFactory = class OpraApiFactory {
20
+ let OpraApiFactory = exports.OpraApiFactory = class OpraApiFactory {
21
21
  constructor() {
22
22
  this.paramsFactory = new params_factory_js_1.OpraParamsFactory();
23
23
  this.injector = new injector_1.Injector();
@@ -188,7 +188,6 @@ tslib_1.__decorate([
188
188
  (0, common_1.Inject)(),
189
189
  tslib_1.__metadata("design:type", nest_explorer_js_1.NestExplorer)
190
190
  ], OpraApiFactory.prototype, "explorerService", void 0);
191
- OpraApiFactory = tslib_1.__decorate([
191
+ exports.OpraApiFactory = OpraApiFactory = tslib_1.__decorate([
192
192
  (0, common_1.Injectable)()
193
193
  ], OpraApiFactory);
194
- exports.OpraApiFactory = OpraApiFactory;
@@ -11,7 +11,7 @@ const constants_js_1 = require("./constants.js");
11
11
  const opra_api_factory_js_1 = require("./factories/opra-api.factory.js");
12
12
  const nest_explorer_js_1 = require("./services/nest-explorer.js");
13
13
  const opra_api_loader_js_1 = require("./services/opra-api-loader.js");
14
- let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
14
+ let OpraCoreModule = exports.OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
15
15
  constructor(httpAdapterHost, modulesContainer, options, opraServiceLoader) {
16
16
  this.httpAdapterHost = httpAdapterHost;
17
17
  this.modulesContainer = modulesContainer;
@@ -107,7 +107,7 @@ let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
107
107
  await this.opraServiceLoader.stop();
108
108
  }
109
109
  };
110
- OpraCoreModule = OpraCoreModule_1 = tslib_1.__decorate([
110
+ exports.OpraCoreModule = OpraCoreModule = OpraCoreModule_1 = tslib_1.__decorate([
111
111
  (0, common_1.Module)({
112
112
  providers: [
113
113
  opra_api_factory_js_1.OpraApiFactory,
@@ -120,4 +120,3 @@ OpraCoreModule = OpraCoreModule_1 = tslib_1.__decorate([
120
120
  tslib_1.__metadata("design:paramtypes", [core_1.HttpAdapterHost,
121
121
  core_1.ModulesContainer, Object, opra_api_loader_js_1.OpraApiLoader])
122
122
  ], OpraCoreModule);
123
- exports.OpraCoreModule = OpraCoreModule;
@@ -5,7 +5,7 @@ exports.OpraModule = void 0;
5
5
  const tslib_1 = require("tslib");
6
6
  const common_1 = require("@nestjs/common");
7
7
  const opra_core_module_js_1 = require("./opra-core.module.js");
8
- let OpraModule = OpraModule_1 = class OpraModule {
8
+ let OpraModule = exports.OpraModule = OpraModule_1 = class OpraModule {
9
9
  static forRoot(options) {
10
10
  return {
11
11
  module: OpraModule_1,
@@ -19,7 +19,6 @@ let OpraModule = OpraModule_1 = class OpraModule {
19
19
  };
20
20
  }
21
21
  };
22
- OpraModule = OpraModule_1 = tslib_1.__decorate([
22
+ exports.OpraModule = OpraModule = OpraModule_1 = tslib_1.__decorate([
23
23
  (0, common_1.Module)({})
24
24
  ], OpraModule);
25
- exports.OpraModule = OpraModule;
@@ -63,6 +63,7 @@ class OpraApiLoader {
63
63
  });
64
64
  }
65
65
  }
66
+ exports.OpraApiLoader = OpraApiLoader;
66
67
  tslib_1.__decorate([
67
68
  (0, common_1.Inject)(),
68
69
  tslib_1.__metadata("design:type", core_1.HttpAdapterHost)
@@ -79,4 +80,3 @@ tslib_1.__decorate([
79
80
  (0, common_1.Inject)(constants_js_1.OPRA_MODULE_OPTIONS),
80
81
  tslib_1.__metadata("design:type", Object)
81
82
  ], OpraApiLoader.prototype, "opraModuleOptions", void 0);
82
- exports.OpraApiLoader = OpraApiLoader;
@@ -14,7 +14,7 @@ import { NestExplorer } from '../services/nest-explorer.js';
14
14
  import { getNumberOfArguments } from '../utils/function.utils.js';
15
15
  import { OpraParamsFactory } from './params.factory.js';
16
16
  const noOpFunction = () => void 0;
17
- let OpraApiFactory = class OpraApiFactory {
17
+ export let OpraApiFactory = class OpraApiFactory {
18
18
  constructor() {
19
19
  this.paramsFactory = new OpraParamsFactory();
20
20
  this.injector = new Injector();
@@ -188,4 +188,3 @@ __decorate([
188
188
  OpraApiFactory = __decorate([
189
189
  Injectable()
190
190
  ], OpraApiFactory);
191
- export { OpraApiFactory };
@@ -8,7 +8,7 @@ import { OPRA_INITIALIZER, OPRA_MODULE_ID, OPRA_MODULE_OPTIONS } from './constan
8
8
  import { OpraApiFactory } from './factories/opra-api.factory.js';
9
9
  import { NestExplorer } from './services/nest-explorer.js';
10
10
  import { OpraApiLoader } from './services/opra-api-loader.js';
11
- let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
11
+ export let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
12
12
  constructor(httpAdapterHost, modulesContainer, options, opraServiceLoader) {
13
13
  this.httpAdapterHost = httpAdapterHost;
14
14
  this.modulesContainer = modulesContainer;
@@ -117,4 +117,3 @@ OpraCoreModule = OpraCoreModule_1 = __decorate([
117
117
  __metadata("design:paramtypes", [HttpAdapterHost,
118
118
  ModulesContainer, Object, OpraApiLoader])
119
119
  ], OpraCoreModule);
120
- export { OpraCoreModule };
@@ -2,7 +2,7 @@ var OpraModule_1;
2
2
  import { __decorate } from "tslib";
3
3
  import { Module } from '@nestjs/common';
4
4
  import { OpraCoreModule } from './opra-core.module.js';
5
- let OpraModule = OpraModule_1 = class OpraModule {
5
+ export let OpraModule = OpraModule_1 = class OpraModule {
6
6
  static forRoot(options) {
7
7
  return {
8
8
  module: OpraModule_1,
@@ -19,4 +19,3 @@ let OpraModule = OpraModule_1 = class OpraModule {
19
19
  OpraModule = OpraModule_1 = __decorate([
20
20
  Module({})
21
21
  ], OpraModule);
22
- export { OpraModule };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/nestjs",
3
- "version": "0.18.3",
3
+ "version": "0.19.0",
4
4
  "description": "Opra NestJS module",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -25,20 +25,20 @@
25
25
  "clean:cover": "rimraf ../../coverage/nestjs"
26
26
  },
27
27
  "dependencies": {
28
- "@opra/common": "^0.18.3",
29
- "@opra/core": "^0.18.3",
28
+ "@opra/common": "^0.19.0",
29
+ "@opra/core": "^0.19.0",
30
30
  "fast-tokenizer": "^1.2.2",
31
31
  "lodash.head": "^4.0.1",
32
32
  "lodash.identity": "^3.0.0",
33
33
  "reflect-metadata": "^0.1.13"
34
34
  },
35
35
  "peerDependencies": {
36
- "@nestjs/common": "^9.4.0"
36
+ "@nestjs/common": "^10.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@nestjs/platform-express": "^9.4.0",
40
- "@nestjs/testing": "^9.4.0",
41
- "@types/lodash": "^4.14.194",
39
+ "@nestjs/platform-express": "^10.0.2",
40
+ "@nestjs/testing": "^10.0.2",
41
+ "@types/lodash": "^4.14.195",
42
42
  "filedirname": "^2.7.0"
43
43
  },
44
44
  "type": "module",