updated npm modules
This commit is contained in:
110
node_modules/webpack-dev-middleware/README.md
generated
vendored
110
node_modules/webpack-dev-middleware/README.md
generated
vendored
@@ -10,6 +10,7 @@
|
||||
[![tests][tests]][tests-url]
|
||||
[![coverage][cover]][cover-url]
|
||||
[![chat][chat]][chat-url]
|
||||
[![size][size]][size-url]
|
||||
|
||||
# webpack-dev-middleware
|
||||
|
||||
@@ -21,7 +22,7 @@ Some of the benefits of using this middleware include:
|
||||
|
||||
- No files are written to disk, rather it handles files in memory
|
||||
- If files changed in watch mode, the middleware delays requests until compiling
|
||||
has completed.
|
||||
has completed.
|
||||
- Supports hot module reload (HMR).
|
||||
|
||||
## Requirements
|
||||
@@ -44,15 +45,19 @@ _Note: We do not recommend installing this module globally._
|
||||
```js
|
||||
const webpack = require('webpack');
|
||||
const middleware = require('webpack-dev-middleware');
|
||||
const compiler = webpack({ .. webpack options .. });
|
||||
const compiler = webpack({
|
||||
// webpack options
|
||||
});
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
|
||||
app.use(middleware(compiler, {
|
||||
// webpack-dev-middleware options
|
||||
}));
|
||||
app.use(
|
||||
middleware(compiler, {
|
||||
// webpack-dev-middleware options
|
||||
})
|
||||
);
|
||||
|
||||
app.listen(3000, () => console.log('Example app listening on port 3000!'))
|
||||
app.listen(3000, () => console.log('Example app listening on port 3000!'));
|
||||
```
|
||||
|
||||
## Options
|
||||
@@ -65,9 +70,9 @@ _Note: The `publicPath` property is required, whereas all other options are opti
|
||||
### methods
|
||||
|
||||
Type: `Array`
|
||||
Default: `[ 'GET' ]`
|
||||
Default: `[ 'GET', 'HEAD' ]`
|
||||
|
||||
This property allows a user to pass the list of HTTP request methods accepted by the server.
|
||||
This property allows a user to pass the list of HTTP request methods accepted by the server.
|
||||
|
||||
### headers
|
||||
|
||||
@@ -86,7 +91,6 @@ Default: `undefined`
|
||||
// The index path for web server, defaults to "index.html".
|
||||
// If falsy (but not undefined), the server will not respond to requests to the root URL.
|
||||
|
||||
|
||||
### lazy
|
||||
|
||||
Type: `Boolean`
|
||||
@@ -150,12 +154,12 @@ Type: `Object`
|
||||
Default: `null`
|
||||
|
||||
This property allows a user to register custom mime types or extension mappings.
|
||||
eg. `mimeTypes: { 'text/html': [ 'phtml' ] }`.
|
||||
eg. `mimeTypes: { 'text/html': [ 'phtml' ] }`.
|
||||
|
||||
By default node-mime will throw an error if you try to map a type to an extension
|
||||
that is already assigned to another type. Passing `force: true` will suppress this behavior
|
||||
By default node-mime will throw an error if you try to map a type to an extension
|
||||
that is already assigned to another type. Passing `force: true` will suppress this behavior
|
||||
(overriding any previous mapping).
|
||||
eg. `mimeTypes: { typeMap: { 'text/html': [ 'phtml' ] } }, force: true }`.
|
||||
eg. `mimeTypes: { typeMap: { 'text/html': [ 'phtml' ] } }, force: true }`.
|
||||
|
||||
Please see the documentation for
|
||||
[`node-mime`](https://github.com/broofa/node-mime#mimedefinetypemap-force--false) for more information.
|
||||
@@ -227,19 +231,21 @@ of `true` _will_ write the file to disk. eg.
|
||||
{
|
||||
writeToDisk: (filePath) => {
|
||||
return /superman\.css$/.test(filePath);
|
||||
}
|
||||
};
|
||||
}
|
||||
```
|
||||
|
||||
### fs
|
||||
|
||||
Type: `Object`
|
||||
Default: `MemoryFileSystem`
|
||||
|
||||
Set the default file system which will be used by webpack as primary destination of generated files. Default is set to webpack's default file system: [memory-fs](https://github.com/webpack/memory-fs). This option isn't affected by the [writeToDisk](#writeToDisk) option.
|
||||
|
||||
**Note:** As of 3.5.x version of the middleware you have to provide `.join()` method to the `fs` instance manually. This can be done simply by using `path.join`:
|
||||
|
||||
```js
|
||||
fs.join = path.join // no need to bind
|
||||
fs.join = path.join; // no need to bind
|
||||
```
|
||||
|
||||
## API
|
||||
@@ -308,6 +314,7 @@ instance.waitUntilValid(() => {
|
||||
console.log('Package is in a valid state');
|
||||
});
|
||||
```
|
||||
|
||||
## Known Issues
|
||||
|
||||
### Multiple Successive Builds
|
||||
@@ -338,25 +345,28 @@ Example Implementation:
|
||||
|
||||
```js
|
||||
const webpack = require('webpack');
|
||||
const compiler = webpack({ ... });
|
||||
const compiler = webpack({
|
||||
// webpack options
|
||||
});
|
||||
const isObject = require('is-object');
|
||||
const middleware = require('webpack-dev-middleware');
|
||||
|
||||
// This function makes server rendering of asset references consistent with different webpack chunk/entry configurations
|
||||
function normalizeAssets(assets) {
|
||||
if (isObject(assets)) {
|
||||
return Object.values(assets)
|
||||
return Object.values(assets);
|
||||
}
|
||||
return Array.isArray(assets) ? assets : [assets]
|
||||
|
||||
return Array.isArray(assets) ? assets : [assets];
|
||||
}
|
||||
|
||||
app.use(middleware(compiler, { serverSideRender: true }))
|
||||
app.use(middleware(compiler, { serverSideRender: true }));
|
||||
|
||||
// The following middleware would not be invoked until the latest build is finished.
|
||||
app.use((req, res) => {
|
||||
const assetsByChunkName = res.locals.webpackStats.toJson().assetsByChunkName
|
||||
const fs = res.locals.fs
|
||||
const outputPath = res.locals.webpackStats.toJson().outputPath
|
||||
const assetsByChunkName = res.locals.webpackStats.toJson().assetsByChunkName;
|
||||
const fs = res.locals.fs;
|
||||
const outputPath = res.locals.webpackStats.toJson().outputPath;
|
||||
|
||||
// then use `assetsByChunkName` for server-sider rendering
|
||||
// For example, if you have only one main chunk:
|
||||
@@ -365,23 +375,22 @@ app.use((req, res) => {
|
||||
<head>
|
||||
<title>My App</title>
|
||||
<style>
|
||||
${normalizeAssets(assetsByChunkName.main)
|
||||
.filter(path => path.endsWith('.css'))
|
||||
.map(path => fs.readFileSync(outputPath + '/' + path))
|
||||
.join('\n')}
|
||||
${normalizeAssets(assetsByChunkName.main)
|
||||
.filter((path) => path.endsWith('.css'))
|
||||
.map((path) => fs.readFileSync(outputPath + '/' + path))
|
||||
.join('\n')}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
${normalizeAssets(assetsByChunkName.main)
|
||||
.filter(path => path.endsWith('.js'))
|
||||
.map(path => `<script src="${path}"></script>`)
|
||||
.join('\n')}
|
||||
${normalizeAssets(assetsByChunkName.main)
|
||||
.filter((path) => path.endsWith('.js'))
|
||||
.map((path) => `<script src="${path}"></script>`)
|
||||
.join('\n')}
|
||||
</body>
|
||||
</html>
|
||||
`)
|
||||
|
||||
})
|
||||
`);
|
||||
});
|
||||
```
|
||||
|
||||
## Support
|
||||
@@ -412,49 +421,28 @@ out completely._
|
||||
|
||||
## Contributing
|
||||
|
||||
We welcome your contributions! Please have a read of [CONTRIBUTING.md](CONTRIBUTING.md) for more information on how to get involved.
|
||||
Please take a moment to read our contributing guidelines if you haven't yet done so.
|
||||
|
||||
## Maintainers
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<img src="https://avatars.githubusercontent.com/SpaceK33z?v=4&s=150">
|
||||
<br />
|
||||
<a href="https://github.com/SpaceK33z">Kees Kluskens</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<img src="https://i.imgur.com/4v6pgxh.png">
|
||||
<br />
|
||||
<a href="https://github.com/shellscape">Andrew Powell</a>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
[CONTRIBUTING](./.github/CONTRIBUTING.md)
|
||||
|
||||
## License
|
||||
|
||||
#### [MIT](./LICENSE)
|
||||
[MIT](./LICENSE)
|
||||
|
||||
[npm]: https://img.shields.io/npm/v/webpack-dev-middleware.svg
|
||||
[npm-url]: https://npmjs.com/package/webpack-dev-middleware
|
||||
|
||||
[node]: https://img.shields.io/node/v/webpack-dev-middleware.svg
|
||||
[node-url]: https://nodejs.org
|
||||
|
||||
[deps]: https://david-dm.org/webpack/webpack-dev-middleware.svg
|
||||
[deps-url]: https://david-dm.org/webpack/webpack-dev-middleware
|
||||
|
||||
[tests]: http://img.shields.io/travis/webpack/webpack-dev-middleware.svg
|
||||
[tests-url]: https://travis-ci.org/webpack/webpack-dev-middleware
|
||||
|
||||
[tests]: https://dev.azure.com/webpack/webpack-dev-middleware/_apis/build/status/webpack.webpack-dev-middleware?branchName=master
|
||||
[tests-url]: https://dev.azure.com/webpack/webpack-dev-middleware/_build/latest?definitionId=8&branchName=master
|
||||
[cover]: https://codecov.io/gh/webpack/webpack-dev-middleware/branch/master/graph/badge.svg
|
||||
[cover-url]: https://codecov.io/gh/webpack/webpack-dev-middleware
|
||||
|
||||
[chat]: https://badges.gitter.im/webpack/webpack.svg
|
||||
[chat-url]: https://gitter.im/webpack/webpack
|
||||
|
||||
[size]: https://packagephobia.now.sh/badge?p=webpack-dev-middleware
|
||||
[size-url]: https://packagephobia.now.sh/result?p=webpack-dev-middleware
|
||||
[docs-url]: https://webpack.js.org/guides/development/#using-webpack-dev-middleware
|
||||
[hash-url]: https://twitter.com/search?q=webpack
|
||||
[middleware-url]: https://github.com/webpack/webpack-dev-middleware
|
||||
|
||||
22
node_modules/webpack-dev-middleware/node_modules/mime/CHANGELOG.md
generated
vendored
22
node_modules/webpack-dev-middleware/node_modules/mime/CHANGELOG.md
generated
vendored
@@ -2,6 +2,28 @@
|
||||
|
||||
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
||||
|
||||
## [2.4.3](https://github.com/broofa/node-mime/compare/v2.4.2...v2.4.3) (2019-05-15)
|
||||
|
||||
|
||||
|
||||
## [2.4.2](https://github.com/broofa/node-mime/compare/v2.4.1...v2.4.2) (2019-04-07)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* don't use arrow function introduced in 2.4.1 ([2e00b5c](https://github.com/broofa/node-mime/commit/2e00b5c))
|
||||
|
||||
|
||||
|
||||
## [2.4.1](https://github.com/broofa/node-mime/compare/v2.4.0...v2.4.1) (2019-04-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update MDN and mime-db types ([3e567a9](https://github.com/broofa/node-mime/commit/3e567a9))
|
||||
|
||||
|
||||
|
||||
<a name="2.4.0"></a>
|
||||
# [2.4.0](https://github.com/broofa/node-mime/compare/v2.3.1...v2.4.0) (2018-11-26)
|
||||
|
||||
|
||||
3
node_modules/webpack-dev-middleware/node_modules/mime/README.md
generated
vendored
3
node_modules/webpack-dev-middleware/node_modules/mime/README.md
generated
vendored
@@ -99,6 +99,9 @@ Module | Size
|
||||
Both `require('mime')` and `require('mime/lite')` return instances of the MIME
|
||||
class, documented below.
|
||||
|
||||
Note: Inputs to this API are case-insensitive. Outputs (returned values) will
|
||||
be lowercase.
|
||||
|
||||
### new Mime(typeMap, ... more maps)
|
||||
|
||||
Most users of this module will not need to create Mime instances directly.
|
||||
|
||||
6
node_modules/webpack-dev-middleware/node_modules/mime/mime.js
generated
vendored
6
node_modules/webpack-dev-middleware/node_modules/mime/mime.js
generated
vendored
@@ -18,7 +18,7 @@ function Mime() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Define mimetype -> xtension mappings. Each key is a mime-type that maps
|
||||
* Define mimetype -> extension mappings. Each key is a mime-type that maps
|
||||
* to an array of extensions associated with the type. The first extension is
|
||||
* used as the default extension for the type.
|
||||
*
|
||||
@@ -38,7 +38,9 @@ function Mime() {
|
||||
*/
|
||||
Mime.prototype.define = function(typeMap, force) {
|
||||
for (var type in typeMap) {
|
||||
var extensions = typeMap[type];
|
||||
var extensions = typeMap[type].map(function(t) {return t.toLowerCase()});
|
||||
type = type.toLowerCase();
|
||||
|
||||
for (var i = 0; i < extensions.length; i++) {
|
||||
var ext = extensions[i];
|
||||
|
||||
|
||||
38
node_modules/webpack-dev-middleware/node_modules/mime/package.json
generated
vendored
38
node_modules/webpack-dev-middleware/node_modules/mime/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"_from": "mime@^2.3.1",
|
||||
"_id": "mime@2.4.0",
|
||||
"_from": "mime@^2.4.2",
|
||||
"_id": "mime@2.4.3",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ikBcWwyqXQSHKtciCcctu9YfPbFYZ4+gbHEmE0Q8jzcTYQg5dHCr3g2wwAZjPoJfQVXZq6KXAjpXOTf5/cjT7w==",
|
||||
"_integrity": "sha512-QgrPRJfE+riq5TPZMcHZOtm8c6K/yYrMbKIoRfapfiGLxS8OTeIfRhUGW5LU7MlRa52KOAGCfUNruqLrIBvWZw==",
|
||||
"_location": "/webpack-dev-middleware/mime",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "mime@^2.3.1",
|
||||
"raw": "mime@^2.4.2",
|
||||
"name": "mime",
|
||||
"escapedName": "mime",
|
||||
"rawSpec": "^2.3.1",
|
||||
"rawSpec": "^2.4.2",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.3.1"
|
||||
"fetchSpec": "^2.4.2"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/webpack-dev-middleware"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/mime/-/mime-2.4.0.tgz",
|
||||
"_shasum": "e051fd881358585f3279df333fe694da0bcffdd6",
|
||||
"_spec": "mime@^2.3.1",
|
||||
"_resolved": "https://registry.npmjs.org/mime/-/mime-2.4.3.tgz",
|
||||
"_shasum": "229687331e86f68924e6cb59e1cdd937f18275fe",
|
||||
"_spec": "mime@^2.4.2",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\webpack-dev-middleware",
|
||||
"author": {
|
||||
"name": "Robert Kieffer",
|
||||
@@ -39,14 +39,15 @@
|
||||
"deprecated": false,
|
||||
"description": "A comprehensive library for mime-type mapping",
|
||||
"devDependencies": {
|
||||
"chalk": "1.1.3",
|
||||
"eslint": "^5.9.0",
|
||||
"mime-db": "^1.37.0",
|
||||
"mime-score": "1.0.1",
|
||||
"mime-types": "2.1.15",
|
||||
"mocha": "5.2.0",
|
||||
"runmd": "1.0.1",
|
||||
"standard-version": "^4.4.0"
|
||||
"benchmark": "^2.1.4",
|
||||
"chalk": "2.4.2",
|
||||
"eslint": "5.16.0",
|
||||
"mime-db": "1.38.0",
|
||||
"mime-score": "1.1.2",
|
||||
"mime-types": "2.1.22",
|
||||
"mocha": "6.0.2",
|
||||
"runmd": "1.2.1",
|
||||
"standard-version": "5.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=4.0.0"
|
||||
@@ -63,10 +64,11 @@
|
||||
"type": "git"
|
||||
},
|
||||
"scripts": {
|
||||
"benchmark": "node src/benchmark.js",
|
||||
"md": "runmd --watch --output README.md src/README_js.md",
|
||||
"prepare": "node src/build.js && runmd --output README.md src/README_js.md",
|
||||
"release": "standard-version",
|
||||
"test": "mocha src/test.js"
|
||||
},
|
||||
"version": "2.4.0"
|
||||
"version": "2.4.3"
|
||||
}
|
||||
|
||||
6
node_modules/webpack-dev-middleware/node_modules/mime/src/build.js
generated
vendored
6
node_modules/webpack-dev-middleware/node_modules/mime/src/build.js
generated
vendored
@@ -47,7 +47,7 @@ for (var type in db) {
|
||||
}
|
||||
|
||||
function writeTypesFile(types, path) {
|
||||
fs.writeFileSync(path, JSON.stringify(types));
|
||||
fs.writeFileSync(path, 'module.exports = ' + JSON.stringify(types) + ';');
|
||||
}
|
||||
|
||||
// Segregate into standard and non-standard types based on facet per
|
||||
@@ -67,5 +67,5 @@ Object.keys(db).sort().forEach(function(k) {
|
||||
}
|
||||
});
|
||||
|
||||
writeTypesFile(standard, path.join(__dirname, '../types', 'standard.json'));
|
||||
writeTypesFile(other, path.join(__dirname, '../types', 'other.json'));
|
||||
writeTypesFile(standard, path.join(__dirname, '../types', 'standard.js'));
|
||||
writeTypesFile(other, path.join(__dirname, '../types', 'other.js'));
|
||||
|
||||
109
node_modules/webpack-dev-middleware/node_modules/mime/src/test.js
generated
vendored
109
node_modules/webpack-dev-middleware/node_modules/mime/src/test.js
generated
vendored
@@ -76,6 +76,24 @@ describe('class Mime', function() {
|
||||
});
|
||||
});
|
||||
|
||||
it ('case-insensitive', function() {
|
||||
var Mime = require('../Mime');
|
||||
const mime = new Mime({
|
||||
'TEXT/UPPER': ['UP'],
|
||||
'text/lower': ['low'],
|
||||
});
|
||||
|
||||
assert.equal(mime.getType('test.up'), 'text/upper');
|
||||
assert.equal(mime.getType('test.UP'), 'text/upper');
|
||||
assert.equal(mime.getType('test.low'), 'text/lower');
|
||||
assert.equal(mime.getType('test.LOW'), 'text/lower');
|
||||
|
||||
assert.equal(mime.getExtension('text/upper'), 'up');
|
||||
assert.equal(mime.getExtension('text/lower'), 'low');
|
||||
assert.equal(mime.getExtension('TEXT/UPPER'), 'up');
|
||||
assert.equal(mime.getExtension('TEXT/LOWER'), 'low');
|
||||
});
|
||||
|
||||
it('getType()', function() {
|
||||
// Upper/lower case
|
||||
assert.equal(mime.getType('text.txt'), 'text/plain');
|
||||
@@ -151,62 +169,43 @@ describe('DB', function() {
|
||||
it('MDN types', function() {
|
||||
// MDN types listed at https://goo.gl/lHrFU6
|
||||
var MDN = {
|
||||
'aac': 'audio/aac',
|
||||
'abw': 'application/x-abiword',
|
||||
'arc': 'application/octet-stream',
|
||||
'avi': 'video/x-msvideo',
|
||||
'azw': 'application/vnd.amazon.ebook',
|
||||
'bin': 'application/octet-stream',
|
||||
'bz': 'application/x-bzip',
|
||||
'bz2': 'application/x-bzip2',
|
||||
'csh': 'application/x-csh',
|
||||
'css': 'text/css',
|
||||
'csv': 'text/csv',
|
||||
'doc': 'application/msword',
|
||||
'epub': 'application/epub+zip',
|
||||
'gif': 'image/gif',
|
||||
'html': 'text/html',
|
||||
'ico': 'image/x-icon',
|
||||
'ics': 'text/calendar',
|
||||
'jar': 'application/java-archive',
|
||||
'jpg': 'image/jpeg',
|
||||
'js': 'application/javascript',
|
||||
'json': 'application/json',
|
||||
'midi': 'audio/midi',
|
||||
'mpeg': 'video/mpeg',
|
||||
'mpkg': 'application/vnd.apple.installer+xml',
|
||||
'odp': 'application/vnd.oasis.opendocument.presentation',
|
||||
'ods': 'application/vnd.oasis.opendocument.spreadsheet',
|
||||
'odt': 'application/vnd.oasis.opendocument.text',
|
||||
'oga': 'audio/ogg',
|
||||
'ogv': 'video/ogg',
|
||||
'ogx': 'application/ogg',
|
||||
'png': 'image/png',
|
||||
'pdf': 'application/pdf',
|
||||
'ppt': 'application/vnd.ms-powerpoint',
|
||||
'rar': 'application/x-rar-compressed',
|
||||
'rtf': 'application/rtf',
|
||||
'sh': 'application/x-sh',
|
||||
'svg': 'image/svg+xml',
|
||||
'swf': 'application/x-shockwave-flash',
|
||||
'tar': 'application/x-tar',
|
||||
'tiff': 'image/tiff',
|
||||
'ttf': 'font/ttf',
|
||||
'vsd': 'application/vnd.visio',
|
||||
'wav': 'audio/x-wav',
|
||||
'weba': 'audio/webm',
|
||||
'webm': 'video/webm',
|
||||
'webp': 'image/webp',
|
||||
'woff': 'font/woff',
|
||||
'woff2': 'font/woff2',
|
||||
'xhtml': 'application/xhtml+xml',
|
||||
'xls': 'application/vnd.ms-excel',
|
||||
'xml': 'application/xml',
|
||||
'xul': 'application/vnd.mozilla.xul+xml',
|
||||
'zip': 'application/zip',
|
||||
aac: 'audio/aac',
|
||||
bin: 'application/octet-stream',
|
||||
css: 'text/css',
|
||||
csv: 'text/csv',
|
||||
doc: 'application/msword',
|
||||
docx: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
||||
gif: 'image/gif',
|
||||
html: 'text/html',
|
||||
ico: 'image/vnd.microsoft.icon',
|
||||
jpg: 'image/jpeg',
|
||||
js: 'application/javascript',
|
||||
json: 'application/json',
|
||||
midi: 'audio/midi',
|
||||
mjs: 'application/javascript',
|
||||
mp3: 'audio/mpeg',
|
||||
mpeg: 'video/mpeg',
|
||||
oga: 'audio/ogg',
|
||||
ogv: 'video/ogg',
|
||||
otf: 'font/otf',
|
||||
png: 'image/png',
|
||||
pdf: 'application/pdf',
|
||||
rtf: 'application/rtf',
|
||||
svg: 'image/svg+xml',
|
||||
swf: 'application/x-shockwave-flash',
|
||||
tiff: 'image/tiff',
|
||||
ttf: 'font/ttf',
|
||||
txt: 'text/plain',
|
||||
wav: 'audio/wav',
|
||||
weba: 'audio/webm',
|
||||
webm: 'video/webm',
|
||||
webp: 'image/webp',
|
||||
woff: 'font/woff',
|
||||
xls: 'application/vnd.ms-excel',
|
||||
xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
||||
xml: 'application/xml',
|
||||
zip: 'application/zip',
|
||||
'3gp': 'video/3gpp',
|
||||
'3g2': 'video/3gpp2',
|
||||
'7z': 'application/x-7z-compressed',
|
||||
};
|
||||
|
||||
for (var ext in MDN) {
|
||||
|
||||
77
node_modules/webpack-dev-middleware/package.json
generated
vendored
77
node_modules/webpack-dev-middleware/package.json
generated
vendored
@@ -1,26 +1,26 @@
|
||||
{
|
||||
"_from": "webpack-dev-middleware@^3.5.1",
|
||||
"_id": "webpack-dev-middleware@3.6.1",
|
||||
"_from": "webpack-dev-middleware@^3.7.0",
|
||||
"_id": "webpack-dev-middleware@3.7.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-XQmemun8QJexMEvNFbD2BIg4eSKrmSIMrTfnl2nql2Sc6OGAYFyb8rwuYrCjl/IiEYYuyTEiimMscu7EXji/Dw==",
|
||||
"_integrity": "sha512-qvDesR1QZRIAZHOE3iQ4CXLZZSQ1lAUsSpnQmlB1PBfoN/xdRjmge3Dok0W4IdaVLJOGJy3sGI4sZHwjRU0PCA==",
|
||||
"_location": "/webpack-dev-middleware",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "webpack-dev-middleware@^3.5.1",
|
||||
"raw": "webpack-dev-middleware@^3.7.0",
|
||||
"name": "webpack-dev-middleware",
|
||||
"escapedName": "webpack-dev-middleware",
|
||||
"rawSpec": "^3.5.1",
|
||||
"rawSpec": "^3.7.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.5.1"
|
||||
"fetchSpec": "^3.7.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/webpack-dev-server"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.6.1.tgz",
|
||||
"_shasum": "91f2531218a633a99189f7de36045a331a4b9cd4",
|
||||
"_spec": "webpack-dev-middleware@^3.5.1",
|
||||
"_resolved": "https://registry.npmjs.org/webpack-dev-middleware/-/webpack-dev-middleware-3.7.0.tgz",
|
||||
"_shasum": "ef751d25f4e9a5c8a35da600c5fda3582b5c6cff",
|
||||
"_spec": "webpack-dev-middleware@^3.7.0",
|
||||
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\webpack-dev-server",
|
||||
"author": {
|
||||
"name": "Tobias Koppers @sokra"
|
||||
@@ -31,25 +31,38 @@
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"memory-fs": "^0.4.1",
|
||||
"mime": "^2.3.1",
|
||||
"range-parser": "^1.0.3",
|
||||
"mime": "^2.4.2",
|
||||
"range-parser": "^1.2.1",
|
||||
"webpack-log": "^2.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "A development middleware for webpack",
|
||||
"devDependencies": {
|
||||
"assert": "^1.4.1",
|
||||
"eslint": "^5.4.0",
|
||||
"eslint-config-webpack": "^1.2.5",
|
||||
"eslint-plugin-import": "^2.14.0",
|
||||
"express": "^4.14.0",
|
||||
"file-loader": "^3.0.1",
|
||||
"mocha": "^6.0.0",
|
||||
"nyc": "^13.1.0",
|
||||
"sinon": "^7.2.2",
|
||||
"standard-version": "^5.0.0",
|
||||
"supertest": "^3.1.0",
|
||||
"webpack": "^4.17.1"
|
||||
"@babel/cli": "7.4.4",
|
||||
"@babel/core": "7.4.4",
|
||||
"@babel/preset-env": "7.4.4",
|
||||
"@commitlint/cli": "7.6.1",
|
||||
"@commitlint/config-conventional": "7.6.0",
|
||||
"@webpack-contrib/defaults": "4.0.1",
|
||||
"@webpack-contrib/eslint-config-webpack": "3.0.0",
|
||||
"babel-jest": "24.8.0",
|
||||
"commitlint-azure-pipelines-cli": "1.0.1",
|
||||
"cross-env": "5.2.0",
|
||||
"del": "4.1.1",
|
||||
"del-cli": "1.1.0",
|
||||
"eslint": "5.16.0",
|
||||
"eslint-plugin-import": "2.17.2",
|
||||
"eslint-plugin-prettier": "3.1.0",
|
||||
"express": "4.16.4",
|
||||
"file-loader": "3.0.1",
|
||||
"husky": "2.3.0",
|
||||
"jest": "24.8.0",
|
||||
"jest-junit": "6.4.0",
|
||||
"lint-staged": "8.1.7",
|
||||
"prettier": "1.17.1",
|
||||
"standard-version": "6.0.1",
|
||||
"supertest": "4.0.2",
|
||||
"webpack": "4.31.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
@@ -59,6 +72,11 @@
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/webpack/webpack-dev-middleware",
|
||||
"keywords": [
|
||||
"webpack",
|
||||
"middleware",
|
||||
"develompent"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "webpack-dev-middleware",
|
||||
@@ -70,9 +88,16 @@
|
||||
"url": "git+https://github.com/webpack/webpack-dev-middleware.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint index.js lib test",
|
||||
"commitlint": "commitlint --from=master",
|
||||
"defaults": "webpack-defaults",
|
||||
"lint": "eslint --cache lib test",
|
||||
"pretest": "npm run lint",
|
||||
"release": "standard-version",
|
||||
"test": "nyc --reporter lcovonly mocha --full-trace --check-leaks --exit"
|
||||
"security": "npm audit",
|
||||
"test": "npm run test:coverage",
|
||||
"test:coverage": "npm run test:only -- --coverage",
|
||||
"test:only": "jest",
|
||||
"test:watch": "npm run test:only --watch"
|
||||
},
|
||||
"version": "3.6.1"
|
||||
"version": "3.7.0"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user