Skip to content

Commit 4a28065

Browse files
author
v1rtl
committed
fix: missing header-range-parser dep (fixes #323, #326)
1 parent c11dd98 commit 4a28065

6 files changed

Lines changed: 95 additions & 105 deletions

File tree

examples/hyperapp-ssr/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { App } from '@tinyhttp/app'
22
import { h, text } from 'hyperapp'
3-
import { readFile } from 'fs/promises'
43
import { renderToString } from 'hyperapp-render'
54

65
const state = {

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
"@jest/globals": "27.2.4",
1818
"@rollup/plugin-typescript": "8.2.5",
1919
"@types/jest": "27.0.2",
20-
"@types/node": "16.10.2",
21-
"@typescript-eslint/eslint-plugin": "4.32.0",
22-
"@typescript-eslint/parser": "4.32.0",
23-
"colorette": "2.0.13",
20+
"@types/node": "16.10.3",
21+
"@typescript-eslint/eslint-plugin": "4.33.0",
22+
"@typescript-eslint/parser": "4.33.0",
23+
"colorette": "2.0.14",
2424
"decache": "4.6.0",
2525
"dirname-filename-esm": "1.1.1",
2626
"enhanced-resolve": "5.8.3",

packages/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"@tinyhttp/req": "workspace:*",
3838
"@tinyhttp/res": "workspace:*",
3939
"@tinyhttp/router": "workspace:*",
40+
"header-range-parser": "^1.0.0",
4041
"regexparam": "^2.0.0"
4142
},
4243
"scripts": {

packages/app/src/extend.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getRouteFromApp, getSubdomains, Request } from './request'
2-
import type { Handler, NextFunction } from '@tinyhttp/router'
1+
import { getSubdomains, Request } from './request'
2+
import type { NextFunction } from '@tinyhttp/router'
33
import type { Response } from './response'
44
import {
55
getFreshOrStale,

packages/req/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@
3333
"@tinyhttp/type-is": "workspace:*",
3434
"@tinyhttp/url": "workspace:*",
3535
"es-fresh": "^0.0.10",
36-
"range-parser": "^1.2.1"
37-
},
38-
"devDependencies": {
39-
"@types/range-parser": "^1.2.4"
36+
"header-range-parser": "^1.0.0"
4037
}
4138
}

0 commit comments

Comments
 (0)