Skip to content
Myr

Remove utils.flatten

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 1e2951a · Browse files · 2 files+0 added−20 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+0 added−20 removed

  • tests:+0 added−8 removed
  • other:+0 added−12 removed

2 files+0 added−20 removed

modified:lib/utils.js-12 removed
12 unmodified lines
13 */1415var mime = require('send').mime;16var contentType = require('content-type');17var deprecate = require('depd')('express');17var etag = require('etag');18var flatten = require('array-flatten');19var proxyaddr = require('proxy-addr');20var qs = require('qs');
47 unmodified lines
68 if ('\\\\' == path.substring(0, 2)) return true; // Microsoft Azure absolute path69};7071/**73 * Flatten the given `arr`.74 *75 * @param {Array} arr76 * @return {Array}77 * @api private78 */7980exports.flatten = deprecate.function(flatten,81 'utils.flatten: use array-flatten npm module instead');8283/**72 * Normalize the given `type`, for example "html" becomes "text/html".73 *74 * @param {String} type75 * @return {Object}
187 unmodified lines
modified:test/utils.js-8 removed