@nx.js/http 0.0.3 → 0.0.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.
package/dist/body.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  import { UnshiftableStream } from './unshiftable-readable-stream';
3
2
  export declare function bodyStream(unshiftable: UnshiftableStream, headers: Headers): ReadableStream<Uint8Array>;
package/dist/headers.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  import { UnshiftableStream } from './unshiftable-readable-stream';
3
2
  export declare function readHeaders(unshiftable: UnshiftableStream): Promise<string[]>;
4
3
  export declare function toHeaders(input: string[]): Headers;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  export { createStaticFileHandler, type StaticFileHandlerOpts } from './static';
3
2
  /**
4
3
  * Handler function for processing an HTTP request.
package/dist/server.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  import type { UnshiftableStream } from './unshiftable-readable-stream';
3
2
  export declare function readRequest(unshiftable: UnshiftableStream): Promise<Request | null>;
4
3
  export declare function createChunkedWriter(readable: ReadableStream<Uint8Array>): ReadableStream<Uint8Array>;
package/dist/static.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  export interface StaticFileHandlerOpts {
3
2
  headers?: HeadersInit | ((req: Request, path: URL) => HeadersInit);
4
3
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  import { Deferred } from './deferred';
3
2
  export declare class UnshiftableStream {
4
3
  buffer: Uint8Array;
package/dist/util.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="nxjs-runtime" />
2
1
  import type { UnshiftableStream } from './unshiftable-readable-stream';
3
2
  export declare const encoder: TextEncoder;
4
3
  export declare const decoder: TextDecoder;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx.js/http",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "HTTP server for nx.js",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -10,10 +10,9 @@
10
10
  "access": "public"
11
11
  },
12
12
  "devDependencies": {
13
- "typescript": "^5.3.2",
14
13
  "vite": "^5.1.6",
15
14
  "vitest": "^1.3.1",
16
- "nxjs-runtime": "0.0.43"
15
+ "nxjs-runtime": "0.0.47"
17
16
  },
18
17
  "keywords": [
19
18
  "nx.js",