dx-server 0.8.4 → 0.10.0
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/README.md +557 -245
- package/cjs/body.d.ts +7 -7
- package/cjs/body.js +8 -8
- package/cjs/bodyHelpers.js +6 -6
- package/cjs/connect.d.ts +2 -2
- package/cjs/connect.js +5 -5
- package/cjs/dx.d.ts +1 -1
- package/cjs/dx.js +24 -15
- package/cjs/dxHelpers.d.ts +2 -2
- package/cjs/dxHelpers.js +12 -7
- package/cjs/express.d.ts +1 -1
- package/cjs/express.js +16 -14
- package/cjs/helpers.d.ts +2 -2
- package/cjs/helpers.js +10 -10
- package/cjs/index.d.ts +6 -6
- package/cjs/index.js +28 -28
- package/cjs/polyfillWithResolvers.js +2 -3
- package/cjs/router.js +7 -7
- package/cjs/static.d.ts +3 -3
- package/cjs/static.js +12 -12
- package/cjs/staticHelpers.d.ts +16 -4
- package/cjs/staticHelpers.js +191 -9
- package/cjs/stream.d.ts +1 -1
- package/cjs/stream.js +3 -3
- package/{esm → cjs/vendors}/contentType.js +7 -3
- package/{esm → cjs/vendors}/etag.d.ts +3 -1
- package/cjs/{etag.js → vendors/etag.js} +1 -1
- package/cjs/vendors/fresh.d.ts +23 -0
- package/cjs/vendors/fresh.js +102 -0
- package/cjs/vendors/mime.d.ts +1 -0
- package/cjs/vendors/mime.js +42 -0
- package/cjs/vendors/mimeDb.d.ts +9413 -0
- package/cjs/vendors/mimeDb.js +9417 -0
- package/cjs/vendors/mimeScore.d.ts +5 -0
- package/cjs/vendors/mimeScore.js +50 -0
- package/cjs/vendors/onFinished.d.ts +14 -0
- package/cjs/vendors/onFinished.js +245 -0
- package/cjs/vendors/rangeParser.d.ts +10 -0
- package/cjs/vendors/rangeParser.js +125 -0
- package/esm/body.d.ts +7 -7
- package/esm/body.js +2 -2
- package/esm/bodyHelpers.js +3 -3
- package/esm/connect.d.ts +2 -2
- package/esm/connect.js +3 -3
- package/esm/dx.d.ts +1 -1
- package/esm/dx.js +23 -14
- package/esm/dxHelpers.d.ts +2 -2
- package/esm/dxHelpers.js +10 -5
- package/esm/express.d.ts +1 -1
- package/esm/express.js +16 -14
- package/esm/helpers.d.ts +2 -2
- package/esm/helpers.js +2 -2
- package/esm/index.d.ts +6 -6
- package/esm/index.js +6 -6
- package/esm/polyfillWithResolvers.js +2 -3
- package/esm/router.js +6 -6
- package/esm/static.d.ts +3 -3
- package/esm/static.js +10 -10
- package/esm/staticHelpers.d.ts +16 -4
- package/esm/staticHelpers.js +191 -9
- package/esm/stream.d.ts +1 -1
- package/esm/stream.js +3 -3
- package/{cjs → esm/vendors}/contentType.js +3 -7
- package/{cjs → esm/vendors}/etag.d.ts +3 -1
- package/esm/vendors/etag.js +90 -0
- package/esm/vendors/fresh.d.ts +23 -0
- package/esm/vendors/fresh.js +96 -0
- package/esm/vendors/mime.d.ts +1 -0
- package/esm/vendors/mime.js +35 -0
- package/esm/vendors/mimeDb.d.ts +9413 -0
- package/esm/vendors/mimeDb.js +9415 -0
- package/esm/vendors/mimeScore.d.ts +5 -0
- package/esm/vendors/mimeScore.js +46 -0
- package/esm/vendors/onFinished.d.ts +14 -0
- package/esm/vendors/onFinished.js +241 -0
- package/esm/vendors/rangeParser.d.ts +10 -0
- package/esm/vendors/rangeParser.js +121 -0
- package/package.json +4 -6
- package/cjs/file.d.ts +0 -3
- package/cjs/file.js +0 -12
- package/cjs/router.d.ts +0 -43
- package/esm/etag.js +0 -90
- package/esm/file.d.ts +0 -3
- package/esm/file.js +0 -8
- package/esm/router.d.ts +0 -43
- /package/cjs/{contentType.d.ts → vendors/contentType.d.ts} +0 -0
- /package/esm/{contentType.d.ts → vendors/contentType.d.ts} +0 -0
package/esm/router.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Chainable } from './dx.js';
|
|
2
|
-
import 'urlpattern-polyfill';
|
|
3
|
-
interface URLPatternOptions {
|
|
4
|
-
}
|
|
5
|
-
interface RouteContext {
|
|
6
|
-
matched: URLPatternResult;
|
|
7
|
-
next(): any;
|
|
8
|
-
}
|
|
9
|
-
interface Route {
|
|
10
|
-
(context: RouteContext): any;
|
|
11
|
-
}
|
|
12
|
-
interface Routes {
|
|
13
|
-
[k: string]: Route;
|
|
14
|
-
}
|
|
15
|
-
interface RouterOptions extends URLPatternOptions {
|
|
16
|
-
prefix?: string;
|
|
17
|
-
}
|
|
18
|
-
type Router = {
|
|
19
|
-
patch(routes: Routes, options?: RouterOptions): Chainable;
|
|
20
|
-
patch(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
21
|
-
trace(routes: Routes, options?: RouterOptions): Chainable;
|
|
22
|
-
trace(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
23
|
-
options(routes: Routes, options?: RouterOptions): Chainable;
|
|
24
|
-
options(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
25
|
-
connect(routes: Routes, options?: RouterOptions): Chainable;
|
|
26
|
-
connect(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
27
|
-
delete(routes: Routes, options?: RouterOptions): Chainable;
|
|
28
|
-
delete(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
29
|
-
put(routes: Routes, options?: RouterOptions): Chainable;
|
|
30
|
-
put(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
31
|
-
post(routes: Routes, options?: RouterOptions): Chainable;
|
|
32
|
-
post(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
33
|
-
head(routes: Routes, options?: RouterOptions): Chainable;
|
|
34
|
-
head(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
35
|
-
get(routes: Routes, options?: RouterOptions): Chainable;
|
|
36
|
-
get(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
37
|
-
all(routes: Routes, options?: RouterOptions): Chainable;
|
|
38
|
-
all(pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
39
|
-
method(method: string, routes: Routes, options?: RouterOptions): Chainable;
|
|
40
|
-
method(method: string, pattern: string, route: Route, options?: RouterOptions): Chainable;
|
|
41
|
-
};
|
|
42
|
-
export declare const router: Router;
|
|
43
|
-
export {};
|
|
File without changes
|
|
File without changes
|