@umijs/bundler-webpack 4.0.0-rc.6 → 4.0.0-rc.7

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.
Files changed (34) hide show
  1. package/compiled/autoprefixer/browserslist/index.d.ts +2 -0
  2. package/compiled/autoprefixer/index.js +3 -3
  3. package/compiled/autoprefixer/postcss/lib/declaration.d.ts +1 -1
  4. package/compiled/autoprefixer/postcss/lib/node.d.ts +2 -2
  5. package/compiled/cssnano/index.js +5 -5
  6. package/compiled/express.d.ts +2 -0
  7. package/compiled/http-proxy-middleware/index.js +10 -10
  8. package/compiled/terser/index.js +1 -1
  9. package/dist/config/cssRules.js +1 -1
  10. package/dist/index.d.ts +3 -1
  11. package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +1 -1
  12. package/dist/plugins/ParcelCSSMinifyPlugin.js +3 -2
  13. package/dist/server/server.js +1 -1
  14. package/package.json +16 -21
  15. package/compiled/css-loader/LICENSE +0 -20
  16. package/compiled/css-loader/api.js +0 -102
  17. package/compiled/css-loader/getUrl.js +0 -29
  18. package/compiled/css-loader/index.js +0 -2
  19. package/compiled/css-loader/noSourceMaps.js +0 -5
  20. package/compiled/css-loader/package.json +0 -1
  21. package/compiled/css-loader/sourceMaps.js +0 -22
  22. package/compiled/express/LICENSE +0 -24
  23. package/compiled/express/body-parser/index.d.ts +0 -104
  24. package/compiled/express/connect/index.d.ts +0 -93
  25. package/compiled/express/express-serve-static-core/index.d.ts +0 -1252
  26. package/compiled/express/index.d.ts +0 -133
  27. package/compiled/express/index.js +0 -321
  28. package/compiled/express/mime/index.d.ts +0 -35
  29. package/compiled/express/package.json +0 -1
  30. package/compiled/express/qs/index.d.ts +0 -62
  31. package/compiled/express/range-parser/index.d.ts +0 -35
  32. package/compiled/express/serve-static/index.d.ts +0 -108
  33. package/compiled/less/index.js +0 -31
  34. package/compiled/less/package.json +0 -1
@@ -1,93 +0,0 @@
1
- // Type definitions for connect v3.4.0
2
- // Project: https://github.com/senchalabs/connect
3
- // Definitions by: Maxime LUCE <https://github.com/SomaticIT>
4
- // Evan Hahn <https://github.com/EvanHahn>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
-
7
- /// <reference types="node" />
8
-
9
-
10
- import * as http from 'http';
11
-
12
- /**
13
- * Create a new connect server.
14
- */
15
- declare function createServer(): createServer.Server;
16
-
17
- declare namespace createServer {
18
- export type ServerHandle = HandleFunction | http.Server;
19
-
20
- export class IncomingMessage extends http.IncomingMessage {
21
- originalUrl?: http.IncomingMessage["url"] | undefined;
22
- }
23
-
24
- type NextFunction = (err?: any) => void;
25
-
26
- export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void;
27
- export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
28
- export type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void;
29
- export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
30
-
31
- export interface ServerStackItem {
32
- route: string;
33
- handle: ServerHandle;
34
- }
35
-
36
- export interface Server extends NodeJS.EventEmitter {
37
- (req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void;
38
-
39
- route: string;
40
- stack: ServerStackItem[];
41
-
42
- /**
43
- * Utilize the given middleware `handle` to the given `route`,
44
- * defaulting to _/_. This "route" is the mount-point for the
45
- * middleware, when given a value other than _/_ the middleware
46
- * is only effective when that segment is present in the request's
47
- * pathname.
48
- *
49
- * For example if we were to mount a function at _/admin_, it would
50
- * be invoked on _/admin_, and _/admin/settings_, however it would
51
- * not be invoked for _/_, or _/posts_.
52
- */
53
- use(fn: NextHandleFunction): Server;
54
- use(fn: HandleFunction): Server;
55
- use(route: string, fn: NextHandleFunction): Server;
56
- use(route: string, fn: HandleFunction): Server;
57
-
58
- /**
59
- * Handle server requests, punting them down
60
- * the middleware stack.
61
- */
62
- handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void;
63
-
64
- /**
65
- * Listen for connections.
66
- *
67
- * This method takes the same arguments
68
- * as node's `http.Server#listen()`.
69
- *
70
- * HTTP and HTTPS:
71
- *
72
- * If you run your application both as HTTP
73
- * and HTTPS you may wrap them individually,
74
- * since your Connect "server" is really just
75
- * a JavaScript `Function`.
76
- *
77
- * var connect = require('connect')
78
- * , http = require('http')
79
- * , https = require('https');
80
- *
81
- * var app = connect();
82
- *
83
- * http.createServer(app).listen(80);
84
- * https.createServer(options, app).listen(443);
85
- */
86
- listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server;
87
- listen(port: number, hostname?: string, callback?: Function): http.Server;
88
- listen(path: string, callback?: Function): http.Server;
89
- listen(handle: any, listeningListener?: Function): http.Server;
90
- }
91
- }
92
-
93
- export = createServer;