ovr 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.
@@ -26,7 +26,7 @@ type Attributes<P extends Props = Props, Children = JSX.Element> = Partial<{
26
26
  lang: string;
27
27
  nonce: string;
28
28
  part: string;
29
- popover: string;
29
+ popover: boolean | "auto" | "hint" | "manual";
30
30
  role: "alert" | "alertdialog" | "application" | "article" | "banner" | "button" | "cell" | "checkbox" | "columnheader" | "combobox" | "complementary" | "contentinfo" | "definition" | "dialog" | "directory" | "document" | "feed" | "figure" | "form" | "grid" | "gridcell" | "group" | "heading" | "img" | "link" | "list" | "listbox" | "listitem" | "log" | "main" | "marquee" | "math" | "menu" | "menubar" | "menuitem" | "menuitemcheckbox" | "menuitemradio" | "navigation" | "none" | "note" | "option" | "presentation" | "progressbar" | "radio" | "radiogroup" | "region" | "row" | "rowgroup" | "rowheader" | "scrollbar" | "search" | "searchbox" | "separator" | "slider" | "spinbutton" | "status" | "switch" | "tab" | "table" | "tablist" | "tabpanel" | "term" | "textbox" | "timer" | "toolbar" | "tooltip" | "tree" | "treegrid" | "treeitem";
31
31
  slot: string;
32
32
  spellcheck: "true" | "false";
@@ -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.
@@ -204,15 +204,9 @@ export class Trie {
204
204
  if (pathname === this.segment) {
205
205
  // reached the end of the path
206
206
  if (this.route)
207
- return {
208
- route: this.route,
209
- params: {},
210
- };
207
+ return { route: this.route, params: {} };
211
208
  if (this.wildcardRoute)
212
- return {
213
- route: this.wildcardRoute,
214
- params: { "*": "" },
215
- };
209
+ return { route: this.wildcardRoute, params: { "*": "" } };
216
210
  return null;
217
211
  }
218
212
  if (this.staticMap) {
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.1",
4
+ "version": "1.2.3",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",