@mojojs/core 0.5.2 → 0.5.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.
- package/lib/context.d.ts +2 -2
- package/package.json +3 -3
package/lib/context.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
/// <reference types="busboy" />
|
|
3
2
|
import type { App } from './app.js';
|
|
4
3
|
import type { ChildLogger } from './logger.js';
|
|
5
4
|
import type { Plan } from './router/plan.js';
|
|
@@ -8,6 +7,7 @@ import type { UserAgent } from './user-agent.js';
|
|
|
8
7
|
import type { WebSocket } from './websocket.js';
|
|
9
8
|
import type Path from '@mojojs/path';
|
|
10
9
|
import type { ValidateFunction } from 'ajv';
|
|
10
|
+
import type { BusboyConfig } from 'busboy';
|
|
11
11
|
import type http from 'http';
|
|
12
12
|
import EventEmitter from 'events';
|
|
13
13
|
import { Params } from './body/params.js';
|
|
@@ -45,7 +45,7 @@ declare class Context extends EventEmitter {
|
|
|
45
45
|
get isWebSocket(): boolean;
|
|
46
46
|
json(fn: WebSocketHandler): this;
|
|
47
47
|
get models(): Record<string, any>;
|
|
48
|
-
params(options?:
|
|
48
|
+
params(options?: BusboyConfig): Promise<Params>;
|
|
49
49
|
plain(fn: WebSocketHandler): this;
|
|
50
50
|
redirectTo(target: string, options?: {
|
|
51
51
|
status?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mojojs/core",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"description": "Real-time web framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"build:lint": "npm run build && npm run lint",
|
|
26
26
|
"build:test": "npm run build && npm test",
|
|
27
27
|
"build:watch": "npm run build -- --watch",
|
|
28
|
-
"clean": "rm -
|
|
28
|
+
"clean": "rm -rf tsconfig.tsbuildinfo test/support/ts/full-app/tsconfig.tsbuildinfo lib test/support/ts/full-app/lib",
|
|
29
29
|
"coverage": "tap --node-arg='--no-warnings' --node-arg='--experimental-loader' --node-arg='@istanbuljs/esm-loader-hook' test/*.js",
|
|
30
30
|
"coverage:ci": "npm run coverage -- --no-check-coverage && tap --no-check-coverage --coverage-report=text-lcov > .lcov.info",
|
|
31
31
|
"lint": "eslint \"test/*.js\" \"test/support/js/**/*.js\" \"test/support/ts/**/src/**/*.ts\" \"src/**/*.ts\" \"src/*.ts\"",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@istanbuljs/esm-loader-hook": "^=0.1.2",
|
|
52
|
-
"@types/busboy": "^0.3.
|
|
52
|
+
"@types/busboy": "^0.3.1",
|
|
53
53
|
"@types/cheerio": "^0.22.29",
|
|
54
54
|
"@types/cookie": "^0.4.0",
|
|
55
55
|
"@types/ejs": "^3.0.6",
|