@aeriajs/http 0.0.149 → 0.0.151

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.
package/dist/routing.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createRouter = exports.wrapRouteExecution = exports.registerRoute = exports.matches = void 0;
4
- const stream_1 = require("stream");
4
+ const node_stream_1 = require("node:stream");
5
5
  const types_1 = require("@aeriajs/types");
6
6
  const common_1 = require("@aeriajs/common");
7
7
  const validation_1 = require("@aeriajs/validation");
@@ -121,7 +121,7 @@ const wrapRouteExecution = async (response, cb) => {
121
121
  if (response[types_1.STREAMED_RESPONSE] && !result) {
122
122
  return;
123
123
  }
124
- if (result instanceof stream_1.Stream) {
124
+ if (result instanceof node_stream_1.Stream) {
125
125
  try {
126
126
  result.pipe(response);
127
127
  }
package/dist/routing.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- import { Stream } from "stream";
2
+ import { Stream } from "node:stream";
3
3
  import { Result, ACError, HTTPStatus, REQUEST_METHODS, STREAMED_RESPONSE } from "@aeriajs/types";
4
4
  import { pipe, isGranted, deepMerge, endpointError } from "@aeriajs/common";
5
5
  import { validate } from "@aeriajs/validation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aeriajs/http",
3
- "version": "0.0.149",
3
+ "version": "0.0.151",
4
4
  "description": "## Installation",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,7 +31,7 @@
31
31
  "@aeriajs/common": "^0.0.125",
32
32
  "@aeriajs/entrypoint": "^0.0.128",
33
33
  "@aeriajs/types": "^0.0.107",
34
- "@aeriajs/validation": "^0.0.138"
34
+ "@aeriajs/validation": "^0.0.140"
35
35
  },
36
36
  "scripts": {
37
37
  "test": "vitest run",