updated npm modules

This commit is contained in:
2019-05-20 20:43:45 -05:00
parent 2319197b81
commit f166b72b7d
1113 changed files with 8758 additions and 12227 deletions

11
node_modules/mime/build/build.js generated vendored
View File

@@ -1,11 +0,0 @@
var db = require('mime-db');
var mapByType = {};
Object.keys(db).forEach(function(key) {
var extensions = db[key].extensions;
if (extensions) {
mapByType[key] = extensions;
}
});
console.log(JSON.stringify(mapByType));

60
node_modules/mime/build/test.js generated vendored
View File

@@ -1,60 +0,0 @@
/**
* Usage: node test.js
*/
var mime = require('../mime');
var assert = require('assert');
var path = require('path');
//
// Test mime lookups
//
assert.equal('text/plain', mime.lookup('text.txt')); // normal file
assert.equal('text/plain', mime.lookup('TEXT.TXT')); // uppercase
assert.equal('text/plain', mime.lookup('dir/text.txt')); // dir + file
assert.equal('text/plain', mime.lookup('.text.txt')); // hidden file
assert.equal('text/plain', mime.lookup('.txt')); // nameless
assert.equal('text/plain', mime.lookup('txt')); // extension-only
assert.equal('text/plain', mime.lookup('/txt')); // extension-less ()
assert.equal('text/plain', mime.lookup('\\txt')); // Windows, extension-less
assert.equal('application/octet-stream', mime.lookup('text.nope')); // unrecognized
assert.equal('fallback', mime.lookup('text.fallback', 'fallback')); // alternate default
//
// Test extensions
//
assert.equal('txt', mime.extension(mime.types.text));
assert.equal('html', mime.extension(mime.types.htm));
assert.equal('bin', mime.extension('application/octet-stream'));
assert.equal('bin', mime.extension('application/octet-stream '));
assert.equal('html', mime.extension(' text/html; charset=UTF-8'));
assert.equal('html', mime.extension('text/html; charset=UTF-8 '));
assert.equal('html', mime.extension('text/html; charset=UTF-8'));
assert.equal('html', mime.extension('text/html ; charset=UTF-8'));
assert.equal('html', mime.extension('text/html;charset=UTF-8'));
assert.equal('html', mime.extension('text/Html;charset=UTF-8'));
assert.equal(undefined, mime.extension('unrecognized'));
//
// Test node.types lookups
//
assert.equal('application/font-woff', mime.lookup('file.woff'));
assert.equal('application/octet-stream', mime.lookup('file.buffer'));
// TODO: Uncomment once #157 is resolved
// assert.equal('audio/mp4', mime.lookup('file.m4a'));
assert.equal('font/otf', mime.lookup('file.otf'));
//
// Test charsets
//
assert.equal('UTF-8', mime.charsets.lookup('text/plain'));
assert.equal('UTF-8', mime.charsets.lookup(mime.types.js));
assert.equal('UTF-8', mime.charsets.lookup(mime.types.json));
assert.equal(undefined, mime.charsets.lookup(mime.types.bin));
assert.equal('fallback', mime.charsets.lookup('application/octet-stream', 'fallback'));
console.log('\nAll tests passed');

32
node_modules/mime/package.json generated vendored
View File

@@ -1,26 +1,26 @@
{
"_from": "mime@1.4.1",
"_id": "mime@1.4.1",
"_from": "mime@1.6.0",
"_id": "mime@1.6.0",
"_inBundle": false,
"_integrity": "sha512-KI1+qOZu5DcW6wayYHSzR/tXKCDC5Om4s1z2QJjDULzLcmf3DvzS7oluY4HCTrc+9FiKmWUgeNLg7W3uIQvxtQ==",
"_integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
"_location": "/mime",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "mime@1.4.1",
"raw": "mime@1.6.0",
"name": "mime",
"escapedName": "mime",
"rawSpec": "1.4.1",
"rawSpec": "1.6.0",
"saveSpec": null,
"fetchSpec": "1.4.1"
"fetchSpec": "1.6.0"
},
"_requiredBy": [
"/send"
],
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.4.1.tgz",
"_shasum": "121f9ebc49e3766f311a76e1fa1c8003c4b03aa6",
"_spec": "mime@1.4.1",
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
"_shasum": "32cd9e5c64553bd58d19a568af452acff04981b1",
"_spec": "mime@1.6.0",
"_where": "C:\\xampp\\htdocs\\w4rpservices\\node_modules\\send",
"author": {
"name": "Robert Kieffer",
@@ -45,7 +45,12 @@
"deprecated": false,
"description": "A comprehensive library for mime-type mapping",
"devDependencies": {
"mime-db": "1.30.0"
"github-release-notes": "0.13.1",
"mime-db": "1.31.0",
"mime-score": "1.1.0"
},
"engines": {
"node": ">=4"
},
"homepage": "https://github.com/broofa/node-mime#readme",
"keywords": [
@@ -60,8 +65,9 @@
"type": "git"
},
"scripts": {
"prepublish": "node build/build.js > types.json",
"test": "node build/test.js"
"changelog": "gren changelog --tags=all --generate --override",
"prepare": "node src/build.js",
"test": "node src/test.js"
},
"version": "1.4.1"
"version": "1.6.0"
}

2
node_modules/mime/types.json generated vendored

File diff suppressed because one or more lines are too long