@opra/nestjs 0.7.0 → 0.10.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.
@@ -18,11 +18,10 @@ const params_factory_js_1 = require("./params.factory.js");
18
18
  const noOpFunction = () => void 0;
19
19
  const METHOD_PATCHED = 'ServiceFactory.method-patched';
20
20
  let OpraApiFactory = class OpraApiFactory {
21
- paramsFactory = new params_factory_js_1.OpraParamsFactory();
22
- injector = new injector_1.Injector();
23
- modulesContainer;
24
- externalContextCreator;
25
- explorerService;
21
+ constructor() {
22
+ this.paramsFactory = new params_factory_js_1.OpraParamsFactory();
23
+ this.injector = new injector_1.Injector();
24
+ }
26
25
  async generateService(rootModule, moduleOptions, contextType) {
27
26
  const info = { title: '', version: '', ...moduleOptions.info };
28
27
  info.title = info.title || 'Untitled service';
@@ -12,10 +12,6 @@ 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
14
  let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
15
- httpAdapterHost;
16
- modulesContainer;
17
- options;
18
- opraServiceLoader;
19
15
  constructor(httpAdapterHost, modulesContainer, options, opraServiceLoader) {
20
16
  this.httpAdapterHost = httpAdapterHost;
21
17
  this.modulesContainer = modulesContainer;
@@ -9,12 +9,9 @@ const core_2 = require("@opra/core");
9
9
  const constants_js_1 = require("../constants.js");
10
10
  const opra_api_factory_js_1 = require("../factories/opra-api.factory.js");
11
11
  class OpraApiLoader {
12
- logger = new common_1.Logger(OpraApiLoader.name, { timestamp: true });
13
- adapter;
14
- httpAdapterHost;
15
- applicationConfig;
16
- opraFactory;
17
- opraModuleOptions;
12
+ constructor() {
13
+ this.logger = new common_1.Logger(OpraApiLoader.name, { timestamp: true });
14
+ }
18
15
  async initialize(rootModule) {
19
16
  const httpAdapter = this.httpAdapterHost?.httpAdapter;
20
17
  const globalPrefix = this.applicationConfig.getGlobalPrefix();
@@ -15,11 +15,10 @@ import { OpraParamsFactory } from './params.factory.js';
15
15
  const noOpFunction = () => void 0;
16
16
  const METHOD_PATCHED = 'ServiceFactory.method-patched';
17
17
  let OpraApiFactory = class OpraApiFactory {
18
- paramsFactory = new OpraParamsFactory();
19
- injector = new Injector();
20
- modulesContainer;
21
- externalContextCreator;
22
- explorerService;
18
+ constructor() {
19
+ this.paramsFactory = new OpraParamsFactory();
20
+ this.injector = new Injector();
21
+ }
23
22
  async generateService(rootModule, moduleOptions, contextType) {
24
23
  const info = { title: '', version: '', ...moduleOptions.info };
25
24
  info.title = info.title || 'Untitled service';
@@ -9,10 +9,6 @@ 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
11
  let OpraCoreModule = OpraCoreModule_1 = class OpraCoreModule {
12
- httpAdapterHost;
13
- modulesContainer;
14
- options;
15
- opraServiceLoader;
16
12
  constructor(httpAdapterHost, modulesContainer, options, opraServiceLoader) {
17
13
  this.httpAdapterHost = httpAdapterHost;
18
14
  this.modulesContainer = modulesContainer;
@@ -6,12 +6,9 @@ import { OpraExpressAdapter } from '@opra/core';
6
6
  import { OPRA_MODULE_OPTIONS } from '../constants.js';
7
7
  import { OpraApiFactory } from '../factories/opra-api.factory.js';
8
8
  export class OpraApiLoader {
9
- logger = new Logger(OpraApiLoader.name, { timestamp: true });
10
- adapter;
11
- httpAdapterHost;
12
- applicationConfig;
13
- opraFactory;
14
- opraModuleOptions;
9
+ constructor() {
10
+ this.logger = new Logger(OpraApiLoader.name, { timestamp: true });
11
+ }
15
12
  async initialize(rootModule) {
16
13
  const httpAdapter = this.httpAdapterHost?.httpAdapter;
17
14
  const globalPrefix = this.applicationConfig.getGlobalPrefix();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/nestjs",
3
- "version": "0.7.0",
3
+ "version": "0.10.0",
4
4
  "description": "Opra NestJS module",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -25,8 +25,8 @@
25
25
  "clean:cover": "rimraf ../../coverage/nestjs"
26
26
  },
27
27
  "dependencies": {
28
- "@opra/common": "^0.7.0",
29
- "@opra/core": "^0.7.0",
28
+ "@opra/common": "^0.10.0",
29
+ "@opra/core": "^0.10.0",
30
30
  "fast-tokenizer": "^1.2.0",
31
31
  "lodash": "^4.17.21",
32
32
  "reflect-metadata": "^0.1.13"