@opra/core 1.0.0-alpha.33 → 1.0.0-alpha.35

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.
@@ -9,7 +9,7 @@ const http_adapter_js_1 = require("./http-adapter.js");
9
9
  const http_context_js_1 = require("./http-context.js");
10
10
  const http_incoming_interface_js_1 = require("./interfaces/http-incoming.interface.js");
11
11
  const http_outgoing_interface_js_1 = require("./interfaces/http-outgoing.interface.js");
12
- const wrap_exception_1 = require("./utils/wrap-exception");
12
+ const wrap_exception_js_1 = require("./utils/wrap-exception.js");
13
13
  class ExpressAdapter extends http_adapter_js_1.HttpAdapter {
14
14
  constructor(app, document, options) {
15
15
  super(document, options);
@@ -41,7 +41,7 @@ class ExpressAdapter extends http_adapter_js_1.HttpAdapter {
41
41
  }
42
42
  catch (e) {
43
43
  if (this.listenerCount('error'))
44
- this.emit('error', (0, wrap_exception_1.wrapException)(e));
44
+ this.emit('error', (0, wrap_exception_js_1.wrapException)(e));
45
45
  }
46
46
  }
47
47
  }
@@ -5,7 +5,7 @@ import { HttpAdapter } from './http-adapter.js';
5
5
  import { HttpContext } from './http-context.js';
6
6
  import { HttpIncoming } from './interfaces/http-incoming.interface.js';
7
7
  import { HttpOutgoing } from './interfaces/http-outgoing.interface.js';
8
- import { wrapException } from './utils/wrap-exception';
8
+ import { wrapException } from './utils/wrap-exception.js';
9
9
  export class ExpressAdapter extends HttpAdapter {
10
10
  constructor(app, document, options) {
11
11
  super(document, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "1.0.0-alpha.33",
3
+ "version": "1.0.0-alpha.35",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "@browsery/antlr4": "^4.13.3-r1",
9
9
  "@browsery/http-parser": "^0.5.9-r1",
10
10
  "@browsery/type-is": "^1.6.18-r5",
11
- "@opra/common": "^1.0.0-alpha.33",
11
+ "@opra/common": "^1.0.0-alpha.35",
12
12
  "accepts": "^1.3.8",
13
13
  "base64-stream": "^1.0.0",
14
14
  "busboy": "^1.6.0",
@@ -19,20 +19,20 @@
19
19
  "cookie-signature": "^1.2.1",
20
20
  "cppzst": "^2.0.12",
21
21
  "encodeurl": "^2.0.0",
22
- "fast-tokenizer": "^1.6.1",
22
+ "fast-tokenizer": "^1.7.0",
23
23
  "fresh": "^0.5.2",
24
24
  "iconv-lite": "^0.6.3",
25
25
  "mime-types": "^2.1.35",
26
- "power-tasks": "^1.10.1",
26
+ "power-tasks": "^1.11.0",
27
27
  "putil-isplainobject": "^1.1.5",
28
28
  "putil-merge": "^3.13.0",
29
29
  "putil-varhelpers": "^1.6.5",
30
30
  "range-parser": "^1.2.1",
31
31
  "raw-body": "^3.0.0",
32
32
  "reflect-metadata": "^0.2.2",
33
- "strict-typed-events": "^2.7.2",
33
+ "strict-typed-events": "^2.8.0",
34
34
  "tslib": "^2.6.3",
35
- "valgen": "^5.8.2",
35
+ "valgen": "^5.9.0",
36
36
  "vary": "^1.1.2"
37
37
  },
38
38
  "optionalDependencies": {
@@ -47,7 +47,7 @@
47
47
  "default": "./esm/index.js"
48
48
  },
49
49
  "require": {
50
- "types": "./types/index.d.ts",
50
+ "types": "./types/index.d.cts",
51
51
  "default": "./cjs/index.js"
52
52
  },
53
53
  "default": "./esm/index.js"
@@ -2,7 +2,7 @@ import { HttpMediaType } from '@opra/common';
2
2
  import busboy from 'busboy';
3
3
  import { EventEmitter } from 'events';
4
4
  import { StrictOmit } from 'ts-gems';
5
- import { HttpContext } from '../http-context';
5
+ import { HttpContext } from '../http-context.js';
6
6
  export declare namespace MultipartReader {
7
7
  interface Options extends StrictOmit<busboy.BusboyConfig, 'headers'> {
8
8
  tempDirectory?: string;
@@ -0,0 +1,28 @@
1
+ import 'reflect-metadata';
2
+ import './augmentation/18n.augmentation.js';
3
+ import './augmentation/http-controller.augmentation.js';
4
+ import * as HttpIncomingHost_ from './http/impl/http-incoming.host.js';
5
+ import * as HttpOutgoingHost_ from './http/impl/http-outgoing.host.js';
6
+ import * as NodeIncomingMessageHost_ from './http/impl/node-incoming-message.host.js';
7
+ import * as NodeOutgoingMessageHost_ from './http/impl/node-outgoing-message.host.js';
8
+ export * from './execution-context.js';
9
+ export * from './helpers/service-base.js';
10
+ export * from './http/express-adapter.js';
11
+ export * from './http/http-adapter.js';
12
+ export * from './http/http-context.js';
13
+ export * from './http/http-handler.js';
14
+ export * from './http/impl/multipart-reader.js';
15
+ export * from './http/interfaces/http-incoming.interface.js';
16
+ export * from './http/interfaces/http-outgoing.interface.js';
17
+ export * from './http/interfaces/node-incoming-message.interface.js';
18
+ export * from './http/interfaces/node-outgoing-message.interface.js';
19
+ export * from './http/utils/wrap-exception.js';
20
+ export * from './interfaces/logger.interface.js';
21
+ export * from './platform-adapter.js';
22
+ export * from './type-guards.js';
23
+ export declare namespace classes {
24
+ export import HttpIncomingHost = HttpIncomingHost_.HttpIncomingHost;
25
+ export import HttpOutgoingHost = HttpOutgoingHost_.HttpOutgoingHost;
26
+ export import NodeIncomingMessageHost = NodeIncomingMessageHost_.NodeIncomingMessageHost;
27
+ export import NodeOutgoingMessageHost = NodeOutgoingMessageHost_.NodeOutgoingMessageHost;
28
+ }