@opra/nestjs 0.31.2 → 0.31.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.
@@ -16,7 +16,7 @@ const nest_explorer_js_1 = require("../services/nest-explorer.js");
16
16
  const function_utils_js_1 = require("../utils/function.utils.js");
17
17
  const params_factory_js_1 = require("./params.factory.js");
18
18
  const noOpFunction = () => void 0;
19
- let OpraApiFactory = exports.OpraApiFactory = class OpraApiFactory {
19
+ let OpraApiFactory = class OpraApiFactory {
20
20
  constructor() {
21
21
  this.paramsFactory = new params_factory_js_1.OpraParamsFactory();
22
22
  this.injector = new injector_1.Injector();
@@ -181,6 +181,7 @@ let OpraApiFactory = exports.OpraApiFactory = class OpraApiFactory {
181
181
  });
182
182
  }
183
183
  };
184
+ exports.OpraApiFactory = OpraApiFactory;
184
185
  tslib_1.__decorate([
185
186
  (0, common_1.Inject)(),
186
187
  tslib_1.__metadata("design:type", core_1.ModulesContainer)
@@ -12,7 +12,7 @@ const opra_api_factory_js_1 = require("./factories/opra-api.factory.js");
12
12
  const opra_module_ref_js_1 = require("./opra-module-ref.js");
13
13
  const nest_explorer_js_1 = require("./services/nest-explorer.js");
14
14
  const opra_api_loader_js_1 = require("./services/opra-api-loader.js");
15
- let OpraCoreModule = exports.OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
15
+ let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
16
16
  constructor(httpAdapterHost, modulesContainer, options, apiLoader) {
17
17
  this.httpAdapterHost = httpAdapterHost;
18
18
  this.modulesContainer = modulesContainer;
@@ -123,6 +123,7 @@ let OpraCoreModule = exports.OpraCoreModule = OpraCoreModule_1 = class OpraCoreM
123
123
  await this.apiLoader.stop();
124
124
  }
125
125
  };
126
+ exports.OpraCoreModule = OpraCoreModule;
126
127
  exports.OpraCoreModule = OpraCoreModule = OpraCoreModule_1 = tslib_1.__decorate([
127
128
  (0, common_1.Module)({
128
129
  providers: [
@@ -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 = exports.OpraModule = OpraModule_1 = class OpraModule {
8
+ let OpraModule = OpraModule_1 = class OpraModule {
9
9
  static forRoot(options) {
10
10
  return {
11
11
  module: OpraModule_1,
@@ -19,6 +19,7 @@ let OpraModule = exports.OpraModule = OpraModule_1 = class OpraModule {
19
19
  };
20
20
  }
21
21
  };
22
+ exports.OpraModule = OpraModule;
22
23
  exports.OpraModule = OpraModule = OpraModule_1 = tslib_1.__decorate([
23
24
  (0, common_1.Module)({})
24
25
  ], OpraModule);
@@ -4,13 +4,14 @@ exports.OpraExceptionFilter = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const common_1 = require("@nestjs/common");
6
6
  const common_2 = require("@opra/common");
7
- let OpraExceptionFilter = exports.OpraExceptionFilter = class OpraExceptionFilter {
7
+ let OpraExceptionFilter = class OpraExceptionFilter {
8
8
  catch(exception) {
9
9
  if (exception instanceof common_2.OpraException)
10
10
  return true;
11
11
  throw exception;
12
12
  }
13
13
  };
14
+ exports.OpraExceptionFilter = OpraExceptionFilter;
14
15
  exports.OpraExceptionFilter = OpraExceptionFilter = tslib_1.__decorate([
15
16
  (0, common_1.Catch)(common_2.OpraException)
16
17
  ], OpraExceptionFilter);
@@ -13,7 +13,7 @@ import { NestExplorer } from '../services/nest-explorer.js';
13
13
  import { getNumberOfArguments } from '../utils/function.utils.js';
14
14
  import { OpraParamsFactory } from './params.factory.js';
15
15
  const noOpFunction = () => void 0;
16
- export let OpraApiFactory = class OpraApiFactory {
16
+ let OpraApiFactory = class OpraApiFactory {
17
17
  constructor() {
18
18
  this.paramsFactory = new OpraParamsFactory();
19
19
  this.injector = new Injector();
@@ -193,3 +193,4 @@ __decorate([
193
193
  OpraApiFactory = __decorate([
194
194
  Injectable()
195
195
  ], OpraApiFactory);
196
+ export { OpraApiFactory };
@@ -9,7 +9,7 @@ import { OpraApiFactory } from './factories/opra-api.factory.js';
9
9
  import { OpraModuleRef } from './opra-module-ref.js';
10
10
  import { NestExplorer } from './services/nest-explorer.js';
11
11
  import { OpraApiLoader } from './services/opra-api-loader.js';
12
- export let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
12
+ let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
13
13
  constructor(httpAdapterHost, modulesContainer, options, apiLoader) {
14
14
  this.httpAdapterHost = httpAdapterHost;
15
15
  this.modulesContainer = modulesContainer;
@@ -134,3 +134,4 @@ OpraCoreModule = OpraCoreModule_1 = __decorate([
134
134
  __metadata("design:paramtypes", [HttpAdapterHost,
135
135
  ModulesContainer, Object, OpraApiLoader])
136
136
  ], OpraCoreModule);
137
+ 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
- export let OpraModule = OpraModule_1 = class OpraModule {
5
+ let OpraModule = OpraModule_1 = class OpraModule {
6
6
  static forRoot(options) {
7
7
  return {
8
8
  module: OpraModule_1,
@@ -19,3 +19,4 @@ export let OpraModule = OpraModule_1 = class OpraModule {
19
19
  OpraModule = OpraModule_1 = __decorate([
20
20
  Module({})
21
21
  ], OpraModule);
22
+ export { OpraModule };
@@ -1,7 +1,7 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { Catch } from '@nestjs/common';
3
3
  import { OpraException } from '@opra/common';
4
- export let OpraExceptionFilter = class OpraExceptionFilter {
4
+ let OpraExceptionFilter = class OpraExceptionFilter {
5
5
  catch(exception) {
6
6
  if (exception instanceof OpraException)
7
7
  return true;
@@ -11,3 +11,4 @@ export let OpraExceptionFilter = class OpraExceptionFilter {
11
11
  OpraExceptionFilter = __decorate([
12
12
  Catch(OpraException)
13
13
  ], OpraExceptionFilter);
14
+ export { OpraExceptionFilter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/nestjs",
3
- "version": "0.31.2",
3
+ "version": "0.31.4",
4
4
  "description": "Opra NestJS module",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -25,21 +25,21 @@
25
25
  "clean:cover": "rimraf ../../coverage/nestjs"
26
26
  },
27
27
  "dependencies": {
28
- "@opra/common": "^0.31.2",
29
- "@opra/core": "^0.31.2",
28
+ "@opra/common": "^0.31.4",
29
+ "@opra/core": "^0.31.4",
30
30
  "fast-tokenizer": "^1.2.2",
31
31
  "lodash.head": "^4.0.1",
32
32
  "reflect-metadata": "^0.1.13"
33
33
  },
34
34
  "peerDependencies": {
35
- "@nestjs/common": "^10.2.7",
36
- "@nestjs/core": "^10.2.7"
35
+ "@nestjs/common": "^10.2.8",
36
+ "@nestjs/core": "^10.2.8"
37
37
  },
38
38
  "devDependencies": {
39
- "@nestjs/platform-express": "^10.2.7",
40
- "@nestjs/testing": "^10.2.7",
41
- "@types/lodash.head": "^4.0.8",
42
- "filedirname": "^2.7.0",
39
+ "@nestjs/platform-express": "^10.2.8",
40
+ "@nestjs/testing": "^10.2.8",
41
+ "@types/lodash.head": "^4.0.9",
42
+ "filedirname": "^2.10.0",
43
43
  "ts-gems": "^2.5.0"
44
44
  },
45
45
  "type": "module",