Update reference docs with most recent version of brodocs (#4600)

* Update 1.7 apidocs with new brodocs

* Update 1.7 resource reference docs with new brodocs

* Update 1.7 kubectl reference docs with new brodocs
This commit is contained in:
Phillip Wittrock
2017-08-04 14:30:56 -07:00
committed by Andrew Chen
parent 4b004cf717
commit 217c86642f
387 changed files with 10024 additions and 8309 deletions
+2
View File
@@ -1,3 +1,5 @@
The MIT License (MIT)
Copyright (c) 2010 Benjamin Thomas, Robert Kieffer
Permission is hereby granted, free of charge, to any person obtaining a copy
+5 -2
View File
@@ -43,7 +43,8 @@ assert.equal(undefined, mime.extension('unrecognized'));
assert.equal('application/font-woff', mime.lookup('file.woff'));
assert.equal('application/octet-stream', mime.lookup('file.buffer'));
assert.equal('audio/mp4', mime.lookup('file.m4a'));
// TODO: Uncomment once #157 is resolved
// assert.equal('audio/mp4', mime.lookup('file.m4a'));
assert.equal('font/opentype', mime.lookup('file.otf'));
//
@@ -51,7 +52,9 @@ assert.equal('font/opentype', mime.lookup('file.otf'));
//
assert.equal('UTF-8', mime.charsets.lookup('text/plain'));
assert.equal(undefined, mime.charsets.lookup(mime.types.js));
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');
+4 -4
View File
@@ -22,9 +22,9 @@ Mime.prototype.define = function (map) {
for (var type in map) {
var exts = map[type];
for (var i = 0; i < exts.length; i++) {
if (process.env.DEBUG_MIME && this.types[exts]) {
console.warn(this._loading.replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
this.types[exts] + ' to ' + type);
if (process.env.DEBUG_MIME && this.types[exts[i]]) {
console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
this.types[exts[i]] + ' to ' + type);
}
this.types[exts[i]] = type;
@@ -101,7 +101,7 @@ mime.Mime = Mime;
mime.charsets = {
lookup: function(mimeType, fallback) {
// Assume text types are utf8
return (/^text\//).test(mimeType) ? 'UTF-8' : fallback;
return (/^text\/|^application\/(javascript|json)/).test(mimeType) ? 'UTF-8' : fallback;
}
};
+16 -16
View File
@@ -14,14 +14,19 @@
]
],
"_from": "mime@>=1.2.9",
"_id": "mime@1.3.4",
"_id": "mime@1.3.6",
"_inCache": true,
"_location": "/mime",
"_nodeVersion": "6.9.2",
"_npmOperationalInternal": {
"host": "packages-18-east.internal.npmjs.com",
"tmp": "tmp/mime-1.3.6.tgz_1494565179088_0.4127067362423986"
},
"_npmUser": {
"name": "broofa",
"email": "robert@broofa.com"
},
"_npmVersion": "1.4.28",
"_npmVersion": "4.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "mime@>=1.2.9",
@@ -35,8 +40,8 @@
"_requiredBy": [
"/node-static"
],
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz",
"_shasum": "115f9e3b6b3daf2959983cb38f149a2d40eb5d53",
"_resolved": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz",
"_shasum": "591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0",
"_shrinkwrap": null,
"_spec": "mime@>=1.2.9",
"_where": "/brodocs/node_modules/node-static",
@@ -61,25 +66,20 @@
"dependencies": {},
"description": "A comprehensive library for mime-type mapping",
"devDependencies": {
"mime-db": "^1.2.0"
"mime-db": "^1.22.0"
},
"directories": {},
"dist": {
"shasum": "115f9e3b6b3daf2959983cb38f149a2d40eb5d53",
"tarball": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz"
"shasum": "591d84d3653a6b0b4a3b9df8de5aa8108e72e5e0",
"tarball": "https://registry.npmjs.org/mime/-/mime-1.3.6.tgz"
},
"gitHead": "1628f6e0187095009dcef4805c3a49706f137974",
"homepage": "https://github.com/broofa/node-mime",
"gitHead": "78aa9df74925ee629b9f2c35ec16b099189e9cef",
"homepage": "https://github.com/broofa/node-mime#readme",
"keywords": [
"util",
"mime"
],
"licenses": [
{
"type": "MIT",
"url": "https://raw.github.com/broofa/node-mime/master/LICENSE"
}
],
"license": "MIT",
"main": "mime.js",
"maintainers": [
{
@@ -102,5 +102,5 @@
"prepublish": "node build/build.js > types.json",
"test": "node build/test.js"
},
"version": "1.3.4"
"version": "1.3.6"
}
File diff suppressed because one or more lines are too long