ovr 1.2.2 → 1.2.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.
@@ -2,7 +2,8 @@ import type { Elements } from "./elements.js";
2
2
  type MaybePromise<T> = T | Promise<T>;
3
3
  type MaybeFunction<T> = T | (() => T);
4
4
  export declare namespace JSX {
5
- type IntrinsicElements = Elements;
5
+ interface IntrinsicElements extends Elements {
6
+ }
6
7
  type Element = MaybeFunction<MaybePromise<string | number | bigint | boolean | object | null | undefined | Symbol | Iterable<Element> | AsyncIterable<Element>>>;
7
8
  }
8
9
  export type Props = Record<string, unknown>;
@@ -121,7 +121,10 @@ export class Context {
121
121
  * @param status [HTTP response status code](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status)
122
122
  */
123
123
  text(body, status) {
124
- this.res(body, { status, headers: { "content-type": "text/html" } });
124
+ this.res(body, {
125
+ status,
126
+ headers: { "content-type": "text/plain; charset=utf-8" },
127
+ });
125
128
  }
126
129
  /**
127
130
  * Creates a redirect response.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ovr",
3
3
  "description": "Asynchronous streaming server framework",
4
- "version": "1.2.2",
4
+ "version": "1.2.4",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",