@umijs/bundler-webpack 4.0.0-rc.4 → 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.
- package/compiled/autoprefixer/browserslist/index.d.ts +2 -0
- package/compiled/autoprefixer/index.js +3 -3
- package/compiled/autoprefixer/postcss/lib/declaration.d.ts +1 -1
- package/compiled/autoprefixer/postcss/lib/node.d.ts +2 -2
- package/compiled/cssnano/index.js +5 -5
- package/compiled/express.d.ts +2 -0
- package/compiled/http-proxy-middleware/index.js +10 -10
- package/compiled/mini-css-extract-plugin/index.js +440 -401
- package/compiled/mini-css-extract-plugin/loader.js +3 -1
- package/compiled/mini-css-extract-plugin/utils.js +2 -0
- package/compiled/terser/index.js +1 -1
- package/compiled/webpack/index.js +3974 -3052
- package/compiled/webpack-manifest-plugin/index.js +1 -1
- package/dist/config/cssRules.js +1 -1
- package/dist/config/javaScriptRules.js +2 -5
- package/dist/index.d.ts +4 -1
- package/dist/plugins/ESBuildCSSMinifyPlugin.js +1 -3
- package/dist/plugins/ParcelCSSMinifyPlugin.d.ts +1 -1
- package/dist/plugins/ParcelCSSMinifyPlugin.js +3 -2
- package/dist/plugins/RuntimePublicPathPlugin.js +1 -1
- package/dist/schema.js +4 -4
- package/dist/server/server.js +5 -2
- package/package.json +20 -25
- package/compiled/css-loader/LICENSE +0 -20
- package/compiled/css-loader/api.js +0 -102
- package/compiled/css-loader/getUrl.js +0 -29
- package/compiled/css-loader/index.js +0 -2
- package/compiled/css-loader/noSourceMaps.js +0 -5
- package/compiled/css-loader/package.json +0 -1
- package/compiled/css-loader/sourceMaps.js +0 -22
- package/compiled/express/LICENSE +0 -24
- package/compiled/express/body-parser/index.d.ts +0 -104
- package/compiled/express/connect/index.d.ts +0 -93
- package/compiled/express/express-serve-static-core/index.d.ts +0 -1252
- package/compiled/express/index.d.ts +0 -133
- package/compiled/express/index.js +0 -321
- package/compiled/express/mime/index.d.ts +0 -35
- package/compiled/express/package.json +0 -1
- package/compiled/express/qs/index.d.ts +0 -62
- package/compiled/express/range-parser/index.d.ts +0 -35
- package/compiled/express/serve-static/index.d.ts +0 -108
- package/compiled/less/index.js +0 -31
- package/compiled/less/package.json +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Type definitions for mime 1.3
|
|
2
|
-
// Project: https://github.com/broofa/node-mime
|
|
3
|
-
// Definitions by: Jeff Goddard <https://github.com/jedigo>
|
|
4
|
-
// Daniel Hritzkiv <https://github.com/dhritzkiv>
|
|
5
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
-
|
|
7
|
-
// Originally imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts
|
|
8
|
-
|
|
9
|
-
export as namespace mime;
|
|
10
|
-
|
|
11
|
-
export interface TypeMap { [key: string]: string[]; }
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Look up a mime type based on extension.
|
|
15
|
-
*
|
|
16
|
-
* If not found, uses the fallback argument if provided, and otherwise
|
|
17
|
-
* uses `default_type`.
|
|
18
|
-
*/
|
|
19
|
-
export function lookup(path: string, fallback?: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Return a file extensions associated with a mime type.
|
|
22
|
-
*/
|
|
23
|
-
export function extension(mime: string): string | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Load an Apache2-style ".types" file.
|
|
26
|
-
*/
|
|
27
|
-
export function load(filepath: string): void;
|
|
28
|
-
export function define(mimes: TypeMap): void;
|
|
29
|
-
|
|
30
|
-
export interface Charsets {
|
|
31
|
-
lookup(mime: string, fallback: string): string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const charsets: Charsets;
|
|
35
|
-
export const default_type: string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name":"express","author":"TJ Holowaychuk <tj@vision-media.ca>","license":"MIT"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// Type definitions for qs 6.9
|
|
2
|
-
// Project: https://github.com/ljharb/qs
|
|
3
|
-
// Definitions by: Roman Korneev <https://github.com/RWander>
|
|
4
|
-
// Leon Yu <https://github.com/leonyu>
|
|
5
|
-
// Belinda Teh <https://github.com/tehbelinda>
|
|
6
|
-
// Melvin Lee <https://github.com/zyml>
|
|
7
|
-
// Arturs Vonda <https://github.com/artursvonda>
|
|
8
|
-
// Carlos Bonetti <https://github.com/CarlosBonetti>
|
|
9
|
-
// Dan Smith <https://github.com/dpsmith3>
|
|
10
|
-
// Hunter Perrin <https://github.com/hperrin>
|
|
11
|
-
// Jordan Harband <https://github.com/ljharb>
|
|
12
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
13
|
-
export = QueryString;
|
|
14
|
-
export as namespace qs;
|
|
15
|
-
|
|
16
|
-
declare namespace QueryString {
|
|
17
|
-
type defaultEncoder = (str: any, defaultEncoder?: any, charset?: string) => string;
|
|
18
|
-
type defaultDecoder = (str: string, decoder?: any, charset?: string) => string;
|
|
19
|
-
|
|
20
|
-
interface IStringifyOptions {
|
|
21
|
-
delimiter?: string | undefined;
|
|
22
|
-
strictNullHandling?: boolean | undefined;
|
|
23
|
-
skipNulls?: boolean | undefined;
|
|
24
|
-
encode?: boolean | undefined;
|
|
25
|
-
encoder?: ((str: any, defaultEncoder: defaultEncoder, charset: string, type: 'key' | 'value') => string) | undefined;
|
|
26
|
-
filter?: Array<string | number> | ((prefix: string, value: any) => any) | undefined;
|
|
27
|
-
arrayFormat?: 'indices' | 'brackets' | 'repeat' | 'comma' | undefined;
|
|
28
|
-
indices?: boolean | undefined;
|
|
29
|
-
sort?: ((a: any, b: any) => number) | undefined;
|
|
30
|
-
serializeDate?: ((d: Date) => string) | undefined;
|
|
31
|
-
format?: 'RFC1738' | 'RFC3986' | undefined;
|
|
32
|
-
encodeValuesOnly?: boolean | undefined;
|
|
33
|
-
addQueryPrefix?: boolean | undefined;
|
|
34
|
-
allowDots?: boolean | undefined;
|
|
35
|
-
charset?: 'utf-8' | 'iso-8859-1' | undefined;
|
|
36
|
-
charsetSentinel?: boolean | undefined;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface IParseOptions {
|
|
40
|
-
comma?: boolean | undefined;
|
|
41
|
-
delimiter?: string | RegExp | undefined;
|
|
42
|
-
depth?: number | false | undefined;
|
|
43
|
-
decoder?: ((str: string, defaultDecoder: defaultDecoder, charset: string, type: 'key' | 'value') => any) | undefined;
|
|
44
|
-
arrayLimit?: number | undefined;
|
|
45
|
-
parseArrays?: boolean | undefined;
|
|
46
|
-
allowDots?: boolean | undefined;
|
|
47
|
-
plainObjects?: boolean | undefined;
|
|
48
|
-
allowPrototypes?: boolean | undefined;
|
|
49
|
-
parameterLimit?: number | undefined;
|
|
50
|
-
strictNullHandling?: boolean | undefined;
|
|
51
|
-
ignoreQueryPrefix?: boolean | undefined;
|
|
52
|
-
charset?: 'utf-8' | 'iso-8859-1' | undefined;
|
|
53
|
-
charsetSentinel?: boolean | undefined;
|
|
54
|
-
interpretNumericEntities?: boolean | undefined;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
interface ParsedQs { [key: string]: undefined | string | string[] | ParsedQs | ParsedQs[] }
|
|
58
|
-
|
|
59
|
-
function stringify(obj: any, options?: IStringifyOptions): string;
|
|
60
|
-
function parse(str: string, options?: IParseOptions & { decoder?: never | undefined }): ParsedQs;
|
|
61
|
-
function parse(str: string | Record<string, string>, options?: IParseOptions): { [key: string]: unknown };
|
|
62
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// Type definitions for range-parser 1.2
|
|
2
|
-
// Project: https://github.com/jshttp/range-parser
|
|
3
|
-
// Definitions by: Tomek Łaziuk <https://github.com/tlaziuk>
|
|
4
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* When ranges are returned, the array has a "type" property which is the type of
|
|
8
|
-
* range that is required (most commonly, "bytes"). Each array element is an object
|
|
9
|
-
* with a "start" and "end" property for the portion of the range.
|
|
10
|
-
*
|
|
11
|
-
* @returns `-1` when unsatisfiable and `-2` when syntactically invalid, ranges otherwise.
|
|
12
|
-
*/
|
|
13
|
-
declare function RangeParser(size: number, str: string, options?: RangeParser.Options): RangeParser.Result | RangeParser.Ranges;
|
|
14
|
-
|
|
15
|
-
declare namespace RangeParser {
|
|
16
|
-
interface Ranges extends Array<Range> {
|
|
17
|
-
type: string;
|
|
18
|
-
}
|
|
19
|
-
interface Range {
|
|
20
|
-
start: number;
|
|
21
|
-
end: number;
|
|
22
|
-
}
|
|
23
|
-
interface Options {
|
|
24
|
-
/**
|
|
25
|
-
* The "combine" option can be set to `true` and overlapping & adjacent ranges
|
|
26
|
-
* will be combined into a single range.
|
|
27
|
-
*/
|
|
28
|
-
combine?: boolean | undefined;
|
|
29
|
-
}
|
|
30
|
-
type ResultUnsatisfiable = -1;
|
|
31
|
-
type ResultInvalid = -2;
|
|
32
|
-
type Result = ResultUnsatisfiable | ResultInvalid;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export = RangeParser;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// Type definitions for serve-static 1.13
|
|
2
|
-
// Project: https://github.com/expressjs/serve-static
|
|
3
|
-
// Definitions by: Uros Smolnik <https://github.com/urossmolnik>
|
|
4
|
-
// Linus Unnebäck <https://github.com/LinusU>
|
|
5
|
-
// Devansh Jethmalani <https://github.com/devanshj>
|
|
6
|
-
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
-
// TypeScript Version: 2.3
|
|
8
|
-
|
|
9
|
-
/// <reference types="node" />
|
|
10
|
-
import * as m from '../mime';
|
|
11
|
-
import * as http from 'http';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Create a new middleware function to serve files from within a given root directory.
|
|
15
|
-
* The file to serve will be determined by combining req.url with the provided root directory.
|
|
16
|
-
* When a file is not found, instead of sending a 404 response, this module will instead call next() to move on to the next middleware, allowing for stacking and fall-backs.
|
|
17
|
-
*/
|
|
18
|
-
declare function serveStatic<R extends http.ServerResponse>(
|
|
19
|
-
root: string,
|
|
20
|
-
options?: serveStatic.ServeStaticOptions<R>
|
|
21
|
-
): serveStatic.RequestHandler<R>;
|
|
22
|
-
|
|
23
|
-
declare namespace serveStatic {
|
|
24
|
-
var mime: typeof m;
|
|
25
|
-
interface ServeStaticOptions<R extends http.ServerResponse = http.ServerResponse> {
|
|
26
|
-
/**
|
|
27
|
-
* Enable or disable setting Cache-Control response header, defaults to true.
|
|
28
|
-
* Disabling this will ignore the immutable and maxAge options.
|
|
29
|
-
*/
|
|
30
|
-
cacheControl?: boolean | undefined;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Set how "dotfiles" are treated when encountered. A dotfile is a file or directory that begins with a dot (".").
|
|
34
|
-
* Note this check is done on the path itself without checking if the path actually exists on the disk.
|
|
35
|
-
* If root is specified, only the dotfiles above the root are checked (i.e. the root itself can be within a dotfile when when set to "deny").
|
|
36
|
-
* The default value is 'ignore'.
|
|
37
|
-
* 'allow' No special treatment for dotfiles
|
|
38
|
-
* 'deny' Send a 403 for any request for a dotfile
|
|
39
|
-
* 'ignore' Pretend like the dotfile does not exist and call next()
|
|
40
|
-
*/
|
|
41
|
-
dotfiles?: string | undefined;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Enable or disable etag generation, defaults to true.
|
|
45
|
-
*/
|
|
46
|
-
etag?: boolean | undefined;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Set file extension fallbacks. When set, if a file is not found, the given extensions will be added to the file name and search for.
|
|
50
|
-
* The first that exists will be served. Example: ['html', 'htm'].
|
|
51
|
-
* The default value is false.
|
|
52
|
-
*/
|
|
53
|
-
extensions?: string[] | false | undefined;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Let client errors fall-through as unhandled requests, otherwise forward a client error.
|
|
57
|
-
* The default value is true.
|
|
58
|
-
*/
|
|
59
|
-
fallthrough?: boolean | undefined;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Enable or disable the immutable directive in the Cache-Control response header.
|
|
63
|
-
* If enabled, the maxAge option should also be specified to enable caching. The immutable directive will prevent supported clients from making conditional requests during the life of the maxAge option to check if the file has changed.
|
|
64
|
-
*/
|
|
65
|
-
immutable?: boolean | undefined;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* By default this module will send "index.html" files in response to a request on a directory.
|
|
69
|
-
* To disable this set false or to supply a new index pass a string or an array in preferred order.
|
|
70
|
-
*/
|
|
71
|
-
index?: boolean | string | string[] | undefined;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Enable or disable Last-Modified header, defaults to true. Uses the file system's last modified value.
|
|
75
|
-
*/
|
|
76
|
-
lastModified?: boolean | undefined;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Provide a max-age in milliseconds for http caching, defaults to 0. This can also be a string accepted by the ms module.
|
|
80
|
-
*/
|
|
81
|
-
maxAge?: number | string | undefined;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Redirect to trailing "/" when the pathname is a dir. Defaults to true.
|
|
85
|
-
*/
|
|
86
|
-
redirect?: boolean | undefined;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Function to set custom headers on response. Alterations to the headers need to occur synchronously.
|
|
90
|
-
* The function is called as fn(res, path, stat), where the arguments are:
|
|
91
|
-
* res the response object
|
|
92
|
-
* path the file path that is being sent
|
|
93
|
-
* stat the stat object of the file that is being sent
|
|
94
|
-
*/
|
|
95
|
-
setHeaders?: ((res: R, path: string, stat: any) => any) | undefined;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
interface RequestHandler<R extends http.ServerResponse> {
|
|
99
|
-
(request: http.IncomingMessage, response: R, next: () => void): any;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
interface RequestHandlerConstructor<R extends http.ServerResponse> {
|
|
103
|
-
(root: string, options?: ServeStaticOptions<R>): RequestHandler<R>;
|
|
104
|
-
mime: typeof m;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export = serveStatic;
|