@opra/http 1.2.1 → 1.2.3

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodeIncomingMessageHost = exports.kHttpParser = exports.kTrailersDistinct = exports.kTrailers = exports.kHeadersDistinct = exports.kHeaders = exports.CRLF = void 0;
4
- const common_1 = require("@opra/common");
4
+ const objects_1 = require("@jsopen/objects");
5
5
  const stream_1 = require("stream");
6
6
  const convert_to_headers_js_1 = require("../utils/convert-to-headers.js");
7
7
  const convert_to_raw_headers_js_1 = require("../utils/convert-to-raw-headers.js");
@@ -87,7 +87,7 @@ class NodeIncomingMessageHost extends stream_1.Duplex {
87
87
  return;
88
88
  }
89
89
  if (!this._readStream) {
90
- if ((0, common_1.isIterable)(this.body) || (0, common_1.isAsyncIterable)(this.body))
90
+ if ((0, objects_1.isIterable)(this.body) || (0, objects_1.isAsyncIterable)(this.body))
91
91
  this._readStream = stream_1.Readable.from(this.body);
92
92
  else if (typeof this.body === 'string') {
93
93
  this._readStream = stream_1.Readable.from(Buffer.from(this.body, 'utf-8'));
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodeIncomingMessage = void 0;
4
4
  const http_parser_1 = require("@browsery/http-parser");
5
- const common_1 = require("@opra/common");
5
+ const objects_1 = require("@jsopen/objects");
6
6
  const stream_1 = require("stream");
7
7
  const node_incoming_message_host_js_1 = require("../impl/node-incoming-message.host.js");
8
8
  const concat_readable_js_1 = require("../utils/concat-readable.js");
@@ -17,7 +17,7 @@ var NodeIncomingMessage;
17
17
  * @param iterable
18
18
  */
19
19
  function from(iterable) {
20
- if (typeof iterable === 'object' && !((0, common_1.isIterable)(iterable) || (0, common_1.isAsyncIterable)(iterable))) {
20
+ if (typeof iterable === 'object' && !((0, objects_1.isIterable)(iterable) || (0, objects_1.isAsyncIterable)(iterable))) {
21
21
  return new node_incoming_message_host_js_1.NodeIncomingMessageHost(iterable);
22
22
  }
23
23
  const msg = new node_incoming_message_host_js_1.NodeIncomingMessageHost();
@@ -1,4 +1,4 @@
1
- import { isAsyncIterable, isIterable } from '@opra/common';
1
+ import { isAsyncIterable, isIterable } from '@jsopen/objects';
2
2
  import { Duplex, Readable } from 'stream';
3
3
  import { convertToHeaders, convertToHeadersDistinct } from '../utils/convert-to-headers.js';
4
4
  import { convertToRawHeaders } from '../utils/convert-to-raw-headers.js';
@@ -1,5 +1,5 @@
1
1
  import { HTTPParser } from '@browsery/http-parser';
2
- import { isAsyncIterable, isIterable } from '@opra/common';
2
+ import { isAsyncIterable, isIterable } from '@jsopen/objects';
3
3
  import { Readable } from 'stream';
4
4
  import { CRLF, kHttpParser, NodeIncomingMessageHost } from '../impl/node-incoming-message.host.js';
5
5
  import { concatReadable } from '../utils/concat-readable.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/http",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Opra Http Server Adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -8,8 +8,9 @@
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.2.1",
12
- "@opra/core": "^1.2.1",
11
+ "@jsopen/objects": "^1.5.0",
12
+ "@opra/common": "^1.2.3",
13
+ "@opra/core": "^1.2.3",
13
14
  "accepts": "^1.3.8",
14
15
  "base64-stream": "^1.0.0",
15
16
  "busboy": "^1.6.0",
@@ -26,8 +27,6 @@
26
27
  "mime-types": "^2.1.35",
27
28
  "node-events-async": "^1.0.0",
28
29
  "power-tasks": "^1.11.0",
29
- "putil-isplainobject": "^1.1.5",
30
- "putil-merge": "^3.13.0",
31
30
  "putil-varhelpers": "^1.6.5",
32
31
  "range-parser": "^1.2.1",
33
32
  "raw-body": "^3.0.0",