├── .gitignore ├── LICENSE ├── README.md ├── examples ├── factoriesExample.js ├── file.coffee ├── file.less ├── file.styl ├── file.txt └── standardExample.js ├── lib └── staticTransform.js ├── package-lock.json └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2013 Kenneth Powers 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 6 | 7 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 10 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # connect-static-transform 2 | 3 | ## Introduction 4 | 5 | `connect-static-transform` is a middleware for [Connect](https://github.com/senchalabs/connect) and systems based on Connect such as [Express](https://github.com/visionmedia/express). It allows you to serve static files but gives you an opportunity to transform the content of the files before they are sent to the client (e.g., compiling `.coffee` files or compiling `.styl` files). 6 | 7 | ## Example Usage 8 | 9 | There are a few examples available in `example/app.js`. Consider the following simple example: 10 | ```js 11 | // Dependencies 12 | var http = require('http'), 13 | connect = require('connect'), 14 | st = require('connect-static-transform'); 15 | 16 | // Middleware which serves .txt files in all uppercase 17 | var toUpperCase = st({ 18 | root: __dirname, 19 | match: /.+\.txt/, 20 | transform: function (path, text, send) { 21 | send(text.toUpperCase(), {'Content-Type': 'text/plain'}); 22 | } 23 | }); 24 | 25 | // Create application which uses middleware 26 | var app = connect().use(toUpperCase); 27 | 28 | // Create server and listen 29 | http.createServer(app).listen(3000); 30 | ``` 31 | 32 | This shows the basic usage. `st` acts as a factory which creates middleware for use in a Connect-like system. The above example will serve all files in `__dirname` matching `/.+\.txt/` in all uppercase letters. 33 | 34 | ### Examples Directory 35 | 36 | #### Standard Examples 37 | 38 | By running `node examples/standardExample.js` you can access `http://localhost:3000/file.txt` which serves `examples/file.txt` in all uppercase or you can access `http://localhost:3000/file.css` which serves `examples/file.styl` compiled into compressed css. 39 | 40 | #### Middleware Factory Examples 41 | 42 | By running `node examples/factoriesExample.js` you can access `http://localhost:3000/css/file.css` which serves `examples/file.styl` compiled into compressed css or you can access `http://localhost:3000/js/file.js` which serves `examples/file.coffee` compiled into compressed JavaScript. See documentation below for examples on how to use the built-in middleware factories. 43 | 44 | ## Options 45 | 46 | `st` takes a single argument: an object containing all configuration options. 47 | 48 | ### Required options 49 | 50 | `root` 51 | 52 | This option specifies which directory the static files should come from. 53 | 54 | `match` 55 | 56 | This option should be a regular expression which matches the full path of a file as given to the server from the client. 57 | 58 | `transform` 59 | 60 | This option should be a function which may operate asynchronously. Three arguments are passed to `transform`. The first argument is the path to the file which was opened. The second argument is the data from the file which was opened. The third argument is a callback to which the transformed data should be passed. If the argument to the callback is `false` or otherwise untruthy then the next middleware in the Connect application is invoked. The callback function also accepts a second parameter of headers to use in the response -- it is highly recommended (but not required) that this argument is set (see example usage above). 61 | 62 | ### Optional options 63 | 64 | `normalize` 65 | 66 | This option, if presented, will alter the path to the file being opened before it is opened. For example, if the client requested `script.js` and you wanted to open `script.coffee` for compilation then there are two things you can do with `normalize`. 67 | 68 | First, you can pass a string which follows regular expression replacement syntax. If `match` were set to `/(.+)\.js`, you set normalize to `'$1.coffee'`. In this case, a request to `script.js` will result in `script.coffee` being opened for transformation. `match` must have capture groups in order for this to work. 69 | 70 | Second, you can pass a function which given the path returns the path of the file to open. For example, to accomplish the same as the first example `normalize` could be set as such: 71 | ```js 72 | var compileCoffee = st({ 73 | // other options 74 | normalize: function (path) { 75 | return path.substring(0, path.length - 2) + 'coffee'; 76 | }, 77 | // other options 78 | }); 79 | ``` 80 | 81 | `pathOnly` 82 | 83 | If `true` then the signature for the transformation function becomes `function (path, send) { }`, i.e., the file is not opened by `connect-static-transform`. 84 | 85 | `cache` 86 | 87 | If set to `true` or an otherwise truthy value, the transformed data for each path will be cached in memory. Appropriate cache headers will also be set on the HTTP response. 88 | 89 | `maxage` 90 | 91 | Used in conjunction with `cache`, this indicates the maximum age in seconds a client should keep the file cached for. This will not expire the local in-memory cache. 92 | 93 | `expires` 94 | 95 | Optionally you can set the `Expires` response header. Defaults to 1 year. 96 | 97 | `encoding` 98 | 99 | The encoding of the files which are opened for transformation. Defaults to `'utf-8'`. If set to `'buffer'` then the transformation function will receive a raw data buffer (see [`fs.readFile(...)`](http://nodejs.org/api/fs.html#fs_fs_readfile_filename_encoding_callback)). 100 | 101 | ## Included Middleware Factories 102 | 103 | `connect-static-transform` includes factory functions for common use-cases. Instead of manually creating middleware using the `st` function as above, you can simply use the factories outlined in this section. 104 | 105 | ### Stylus 106 | To use the Stylus middleware factory you must have [Stylus](https://github.com/LearnBoost/stylus) installed in your project. If you have [nib](https://github.com/visionmedia/nib) installed in your project it will be automatically included so you can use it. From there, you can create a Stylus middleware using `st.stylus(options)`. See the following example: 107 | ```js 108 | // If you have a file `foo.styl` in `__dirname` then you can access the compiled css at the url `/css/foo.css`: 109 | app.use(st.stylus({ 110 | root: __dirname, // where to open the styl files from 111 | path: '/css', // optional, sets where to serve from 112 | compress: true, // optional 113 | cache: true, // optional, caches in memory as well as on the client 114 | maxage: 3600 // optional, sets the maximum number of seconds a client should keep the compiled file (defaults to one year) 115 | })); 116 | ``` 117 | 118 | ### LESS 119 | 120 | To use the Less middleware factory you must have [LESS](http://lesscss.org/) installed in your project. From there, you can create a LESS middleware using `st.less(options)`. See the following example: 121 | ```js 122 | // If you have a file `foo.less` in `__dirname` then you can access the compiled css at the url `/css/foo.css`: 123 | app.use(st.less({ 124 | root: __dirname, // where to open the less files from 125 | path: '/css', // optional, sets where to serve from 126 | cache: true, // optional, caches in memory as well as on the client 127 | maxage: 3600, // optional, sets the maximum number of seconds a client should keep the compiled file (defaults to one year) 128 | options: { // optional, options object to send directly to the LESS compiler 129 | compress: true 130 | } 131 | })); 132 | ``` 133 | 134 | ### CoffeeScript 135 | 136 | To use the CoffeeScript middleware factory you must have [Snockets](https://github.com/TrevorBurnham/snockets) and [Coffee-Script](https://github.com/jashkenas/coffee-script) installed locally. Compilation is handled by Snockets. You can create a CoffeeScript middleware using `st.coffee(options)`. See the following examples: 137 | ```coffee 138 | // If you have a file `foo.coffee` in `__dirname` then you can access the compiles javascript at the url `/js/foo.js`: 139 | app.use(st.coffee({ 140 | root: __dirname, // where to open the coffee files from 141 | path: '/js', // optional, sets where to serve from 142 | cache: true, // optional, caches in memory as well as on the client 143 | maxage: 3600, // optional, sets the maximum number of seconds a client should keep the compiled file (defaults to one year) 144 | // these options are passed to Snockets: 145 | options: { 146 | minify: true 147 | } 148 | })); 149 | ``` 150 | 151 | ## License 152 | 153 | **The MIT License** 154 | 155 | Copyright (c) 2013 Kenneth Powers 156 | 157 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 158 | 159 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 160 | 161 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 162 | -------------------------------------------------------------------------------- /examples/factoriesExample.js: -------------------------------------------------------------------------------- 1 | /*jshint node:true strict:false*/ 2 | var http = require('http'), 3 | connect = require('connect'), 4 | st = require('../'), 5 | stylus = require('stylus'); 6 | 7 | // Create application 8 | var app = connect(); 9 | 10 | // Serve .styl files as css from /stylus 11 | app.use(st.stylus({ 12 | root: __dirname, // open .styl files from this directory 13 | path: '/stylus', // serve .css files from /stylus 14 | compress: true, 15 | cache: true, 16 | maxage: 3600 // one hour in seconds 17 | })); 18 | 19 | // Serve .less files as css from /less 20 | app.use(st.less({ 21 | root: __dirname, // open .less files from this directory 22 | path: '/less', // serve .css files from /less 23 | cache: true, 24 | maxage: 3600, // one hour in seconds 25 | options: { 26 | compress: true 27 | } 28 | })); 29 | 30 | // Serve .coffee files as JavaScript from /js 31 | app.use(st.coffee({ 32 | root: __dirname, // open .coffee files from this directory 33 | path: '/js', // serve .js files from /js 34 | cache: true, 35 | maxage: 3600, 36 | // Options to pass to snockets: 37 | options: { 38 | minify: true 39 | } 40 | })); 41 | 42 | // Create server and listen 43 | http.createServer(app).listen(3000); 44 | -------------------------------------------------------------------------------- /examples/file.coffee: -------------------------------------------------------------------------------- 1 | name = 'World' 2 | console.log "Hello, #{name}!" 3 | -------------------------------------------------------------------------------- /examples/file.less: -------------------------------------------------------------------------------- 1 | // I never said I was a designer! 2 | html, body { 3 | width: 100%; 4 | height: 100%; 5 | } 6 | 7 | div.comment { 8 | width: 500px; 9 | a { 10 | color: #0000FF; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /examples/file.styl: -------------------------------------------------------------------------------- 1 | // I never said I was a designer! 2 | html 3 | body 4 | width 100% 5 | height 100% 6 | 7 | div.comment 8 | width 500px 9 | a 10 | color #0000FF 11 | -------------------------------------------------------------------------------- /examples/file.txt: -------------------------------------------------------------------------------- 1 | Hello, World! 2 | -------------------------------------------------------------------------------- /examples/standardExample.js: -------------------------------------------------------------------------------- 1 | /*jshint node:true strict:false*/ 2 | var http = require('http'), 3 | connect = require('connect'), 4 | st = require('../'), 5 | stylus = require('stylus'); 6 | 7 | // Serve .txt files in all uppercase 8 | var toUpperCase = st({ 9 | root: __dirname, 10 | match: /.+\.txt/, 11 | transform: function (path, text, send) { 12 | send(text.toUpperCase(), {'Content-Type': 'text/plain'}); 13 | } 14 | }); 15 | 16 | // Serve .css files from .styl files and cache the results in memory 17 | var cssFromStyl = st({ 18 | root: __dirname, 19 | match: /(.+)\.css/, 20 | normalize: '$1.styl', 21 | cache: true, 22 | maxage: 60 * 60 * 24 * 30/*30 days, default is 1 year*/, 23 | transform: function (path, styl, send) { 24 | stylus.render(styl, {filename: path, compress: true}, function (err, css) { 25 | if (err) { 26 | throw err; 27 | } 28 | // Stylus keeps newlines and inline comments, even when compressing. Let's get rid of them: 29 | css = css.replace(/\n/g, ''); 30 | css = css.replace(/\/\*.+\*\//g, ''); 31 | // Send css to client 32 | send(css, {'Content-Type': 'text/css'}); 33 | }); 34 | } 35 | }); 36 | 37 | // Create application 38 | var app = connect().use(toUpperCase).use(cssFromStyl); 39 | 40 | // Create server and listen 41 | http.createServer(app).listen(3000); 42 | -------------------------------------------------------------------------------- /lib/staticTransform.js: -------------------------------------------------------------------------------- 1 | /*jshint node:true strict:false sub:true*/ 2 | // Dependencies 3 | var parse = require('parseurl'), 4 | fs = require('fs'), 5 | nPath = require('path'); 6 | 7 | // Export middleware factory 8 | module.exports = createMiddleware; 9 | 10 | // Generate CSS Regex 11 | var cssRegex = function (path) { 12 | return new RegExp((path || '') + '/(.+)\\.css'); 13 | }; 14 | 15 | /* 16 | Options must contain the following keys: 17 | root: The root directory in which to open files 18 | match: A regular expression denoting which files to open 19 | transform: A function which takes three arguments. 20 | The first argument is the path to the file which was opened for transformation. 21 | The second argument is the text or buffer from the read file. 22 | The third argument is a callback function which accepts two arguments: 23 | The first argument is the transformed text / buffer. If this argument is set to `false` or `undefined` then the next connect middleware is invoked. 24 | The second argument (optional) is an object containing HTTP headers where keys (header names) map to values. 25 | Optionally, the following keys may be specified: 26 | normalize: May be a string or a function. 27 | Example of string usage: 28 | match is set to /(.+)\.js/, normalize may be "$1.coffee". 29 | If the file "foo.js" is requested, then the file "foo.coffee" will be opened for transformation. 30 | Example of function usage: 31 | match is set to /.+\.js/, normalize may be function (name) { return name.substring(0, name.length - 2) + 'coffee' } 32 | If the file "foo.js" is requested, then the file "foo.coffee" will be opened for transformation. 33 | pathOnly: If true then the signature for the transformation function becomes `function (path, send) { }`, i.e., the file is not opened by `connect-static-transform`. 34 | cache: If true then the transformed text will be cached. 35 | maxage: Sets the maximum number of seconds a client should cache the output for. Defaults to one year. 36 | encoding: defaults to 'utf-8', may be set to "buffer" to indicate that the transformation function is expecting a buffer. 37 | */ 38 | function createMiddleware(options) { 39 | // Check for required options 40 | if (!(options.root || options.match || options.transform)) { 41 | throw new Error('options.{root,match,transform} must be defined'); 42 | } 43 | 44 | // Set encoding if not set and set to undefined if set to 'buffer' 45 | var e = options.encoding; 46 | options.encoding = e ? (e === 'buffer' ? undefined : e) : 'utf-8'; 47 | 48 | // Create cache object 49 | var cache = {}; 50 | 51 | // Return middleware function 52 | return function staticTransform(req, res, next) { 53 | // Check request method 54 | if (req.method !== 'GET' && req.method !== 'HEAD') { 55 | return next(); 56 | } 57 | // Check request path 58 | var path = parse(req).pathname; 59 | if (!options.match.test(path)) { 60 | return next(); 61 | } 62 | // Normalize path if necessary 63 | if (options.normalize) { 64 | if (typeof options.normalize === 'string') { 65 | path = path.replace(options.match, options.normalize); 66 | } else if (typeof options.normalize === 'function') { 67 | path = options.normalize(path); 68 | } 69 | } 70 | // Join path 71 | path = nPath.join(options.root, path); 72 | if (options.cache && cache[path]) { 73 | // Referenced cached value 74 | var cacheVal = cache[path]; 75 | // Write cached value 76 | writeOut(req.headers['if-modified-since'] ? 304 : 200, res, cacheVal.out, cacheVal.headers, options); 77 | } else { 78 | // Stat the file 79 | fs.stat(path, function (err, stat) { 80 | if (err || !stat.isFile()) { 81 | return next(); 82 | } 83 | // Pass path to transform if pathOnly is set 84 | if (options.pathOnly) { 85 | return options.transform(path, send); 86 | } 87 | // Read and transform file 88 | fs.readFile(path, options.encoding, function (err, data) { 89 | if (err) { 90 | throw err; 91 | } 92 | options.transform(path, data, send); 93 | }); 94 | // Send function 95 | function send(out, headers) { 96 | // Check for headers 97 | if (!headers) { 98 | headers = {}; 99 | } 100 | // Check out value 101 | if (!out) { 102 | return next(); 103 | } 104 | // Do cache things if necessary 105 | if (options.cache) { 106 | var expire = new Date(); 107 | expire.setYear(expire.getFullYear() + 1); 108 | headers['Expires'] = options.expires || expire.toUTCString(); 109 | headers['Cache-Control'] = 'public, max-age=' + (options.maxage || 31536000/*One year in seconds*/); 110 | headers['Last-Modified'] = stat.mtime.toUTCString(); 111 | cache[path] = {out: out, headers: headers}; 112 | } 113 | // Write out transformed value 114 | writeOut(200, res, out, headers, options); 115 | } 116 | }); 117 | } 118 | }; 119 | } 120 | 121 | // Write output 122 | function writeOut(code, res, out, headers, options) { 123 | // Set length if necessary 124 | if (!headers['Content-Length']) { 125 | headers['Content-Length'] = Buffer.byteLength(out); 126 | } 127 | if (code === 200) { 128 | for (var k in headers) { 129 | if (headers.hasOwnProperty(k)) { 130 | res.setHeader(k, headers[k]); 131 | } 132 | } 133 | res.end(out, options.encoding); 134 | } else { 135 | res.writeHead(code, headers); 136 | res.end(); 137 | } 138 | } 139 | 140 | // Export factory which creates middleware for Stylus 141 | createMiddleware.stylus = (function () { 142 | // Require stylus in closure 143 | var stylus = null; 144 | try { 145 | stylus = require('stylus'); 146 | } catch (e) { 147 | // Acts as factory and alerts user to install stylus 148 | return function () { 149 | throw e; 150 | }; 151 | } 152 | // Attempt to grab nib 153 | var nib = null; 154 | try { 155 | nib = require('nib'); 156 | nib = nib(); 157 | } catch (e) { 158 | // nib not found, no big deal 159 | nib = function () {}; 160 | } 161 | // Return factory function 162 | // This function is the value of module.exports.stylus 163 | return function (options) { 164 | // Return transformation middleware 165 | return createMiddleware({ 166 | root: options.root, 167 | match: cssRegex(options.path), 168 | normalize: '$1.styl', 169 | cache: options.cache, 170 | maxage: options.maxage, 171 | transform: function (path, styl, send) { 172 | stylus(styl) 173 | .set('filename', path) 174 | .set('compress', options.compress) 175 | .set('include css', true) 176 | .use(nib) 177 | .render(function (err, css) { 178 | if (err) throw err; 179 | // Stylus keeps inline comments, even when compressing. 180 | // Let's get rid of them! 181 | if (options.compress) { 182 | css = css.replace(/\/\*.+\*\//g, ''); 183 | } 184 | // Send css to client 185 | send(css, {'Content-Type': 'text/css'}); 186 | }); 187 | } 188 | }); 189 | }; 190 | })(); 191 | 192 | // Export factory which creates middleware for Less 193 | createMiddleware.less = (function () { 194 | // Require Less in closure 195 | var less = null; 196 | try { 197 | less = require('less'); 198 | } catch (e) { 199 | // Acts as factory and alerts user to install Less 200 | return function () { 201 | throw e; 202 | }; 203 | } 204 | // Return factory function 205 | // This function is the value of module.exports.less 206 | return function (options) { 207 | // Modify options as necessary 208 | if (!options.options) { 209 | options.options = {}; 210 | } 211 | if (!options.options.paths) { 212 | options.options.paths = []; 213 | } 214 | var pathMap = {}; 215 | options.options.paths.forEach(function (path) { 216 | pathMap[path] = true; 217 | }); 218 | // Return transformation middleware 219 | return createMiddleware({ 220 | root: options.root, 221 | match: cssRegex(options.path), 222 | normalize: '$1.less', 223 | cache: options.cache, 224 | maxage: options.maxage, 225 | transform: function (path, contents, send) { 226 | if (!pathMap[path]) { 227 | options.options.paths.push(nPath.dirname(path)); 228 | pathMap[path] = true; 229 | } 230 | less.render(contents, options.options, function (err, css) { 231 | if (err) throw err; 232 | send(css, {'Content-Type': 'text/css'}); 233 | }); 234 | } 235 | }); 236 | }; 237 | })(); 238 | 239 | // Export factory which creates middleware for CoffeeScript 240 | createMiddleware.coffee = (function () { 241 | // Require and instantiate Snockets 242 | var snockets = null; 243 | try { 244 | var Snockets = require('snockets'); 245 | snockets = new Snockets(); 246 | } catch (e) { 247 | // Acts as factory and alerts user to install Snockets 248 | return function () { 249 | throw e; 250 | }; 251 | } 252 | // Return factory function 253 | // This function is the value of module.exports.coffee 254 | return function (options) { 255 | // Return transformation middleware 256 | return createMiddleware({ 257 | root: options.root, 258 | match: new RegExp((options.path || '') + '/(.+)\\.js'), 259 | normalize: '$1.coffee', 260 | pathOnly: true, 261 | cache: options.cache, 262 | maxage: options.maxage, 263 | transform: function (path, send) { 264 | snockets.getConcatenation(path, options.options, function (err, js) { 265 | if (err) throw err; 266 | send(js, {'Content-Type': 'application/javascript'}); 267 | }); 268 | } 269 | }); 270 | }; 271 | })(); 272 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "connect-static-transform", 3 | "version": "0.9.2", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "accepts": { 8 | "version": "1.2.13", 9 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.2.13.tgz", 10 | "integrity": "sha1-5fHzkoxtlf2WVYw27D2dDeSm7Oo=", 11 | "dev": true, 12 | "requires": { 13 | "mime-types": "~2.1.6", 14 | "negotiator": "0.5.3" 15 | } 16 | }, 17 | "ajv": { 18 | "version": "4.11.8", 19 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", 20 | "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", 21 | "dev": true, 22 | "optional": true, 23 | "requires": { 24 | "co": "^4.6.0", 25 | "json-stable-stringify": "^1.0.1" 26 | } 27 | }, 28 | "asn1": { 29 | "version": "0.2.3", 30 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.3.tgz", 31 | "integrity": "sha1-2sh4dxPJlmhJ/IGAd36+nB3fO4Y=", 32 | "dev": true, 33 | "optional": true 34 | }, 35 | "assert-plus": { 36 | "version": "0.2.0", 37 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-0.2.0.tgz", 38 | "integrity": "sha1-104bh+ev/A24qttwIfP+SBAasjQ=", 39 | "dev": true, 40 | "optional": true 41 | }, 42 | "asynckit": { 43 | "version": "0.4.0", 44 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 45 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", 46 | "dev": true, 47 | "optional": true 48 | }, 49 | "aws-sign2": { 50 | "version": "0.6.0", 51 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.6.0.tgz", 52 | "integrity": "sha1-FDQt0428yU0OW4fXY81jYSwOeU8=", 53 | "dev": true, 54 | "optional": true 55 | }, 56 | "aws4": { 57 | "version": "1.6.0", 58 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.6.0.tgz", 59 | "integrity": "sha1-g+9cqGCysy5KDe7e6MdxudtXRx4=", 60 | "dev": true, 61 | "optional": true 62 | }, 63 | "base64-url": { 64 | "version": "1.2.1", 65 | "resolved": "https://registry.npmjs.org/base64-url/-/base64-url-1.2.1.tgz", 66 | "integrity": "sha1-GZ/WYXAqDnt9yubgaYuwicUvbXg=", 67 | "dev": true 68 | }, 69 | "basic-auth": { 70 | "version": "1.0.4", 71 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-1.0.4.tgz", 72 | "integrity": "sha1-Awk1sB3nyblKgksp8/zLdQ06UpA=", 73 | "dev": true 74 | }, 75 | "basic-auth-connect": { 76 | "version": "1.0.0", 77 | "resolved": "https://registry.npmjs.org/basic-auth-connect/-/basic-auth-connect-1.0.0.tgz", 78 | "integrity": "sha1-/bC0OWLKe0BFanwrtI/hc9otISI=", 79 | "dev": true 80 | }, 81 | "batch": { 82 | "version": "0.5.3", 83 | "resolved": "https://registry.npmjs.org/batch/-/batch-0.5.3.tgz", 84 | "integrity": "sha1-PzQU84AyF0O/wQQvmoP/HVgk1GQ=", 85 | "dev": true 86 | }, 87 | "bcrypt-pbkdf": { 88 | "version": "1.0.1", 89 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz", 90 | "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", 91 | "dev": true, 92 | "optional": true, 93 | "requires": { 94 | "tweetnacl": "^0.14.3" 95 | } 96 | }, 97 | "body-parser": { 98 | "version": "1.13.3", 99 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.13.3.tgz", 100 | "integrity": "sha1-wIzzMMM1jhUQFqBXRvE/ApyX+pc=", 101 | "dev": true, 102 | "requires": { 103 | "bytes": "2.1.0", 104 | "content-type": "~1.0.1", 105 | "debug": "~2.2.0", 106 | "depd": "~1.0.1", 107 | "http-errors": "~1.3.1", 108 | "iconv-lite": "0.4.11", 109 | "on-finished": "~2.3.0", 110 | "qs": "4.0.0", 111 | "raw-body": "~2.1.2", 112 | "type-is": "~1.6.6" 113 | }, 114 | "dependencies": { 115 | "debug": { 116 | "version": "2.2.0", 117 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 118 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 119 | "dev": true, 120 | "requires": { 121 | "ms": "0.7.1" 122 | } 123 | } 124 | } 125 | }, 126 | "boom": { 127 | "version": "2.10.1", 128 | "resolved": "https://registry.npmjs.org/boom/-/boom-2.10.1.tgz", 129 | "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", 130 | "dev": true, 131 | "optional": true, 132 | "requires": { 133 | "hoek": "2.x.x" 134 | } 135 | }, 136 | "bytes": { 137 | "version": "2.1.0", 138 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.1.0.tgz", 139 | "integrity": "sha1-rJPEEOL/ycx89LRks4KJBn9eR7Q=", 140 | "dev": true 141 | }, 142 | "caseless": { 143 | "version": "0.12.0", 144 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 145 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", 146 | "dev": true, 147 | "optional": true 148 | }, 149 | "co": { 150 | "version": "4.6.0", 151 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 152 | "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", 153 | "dev": true, 154 | "optional": true 155 | }, 156 | "coffee-script": { 157 | "version": "1.12.6", 158 | "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.12.6.tgz", 159 | "integrity": "sha1-KFo/cRVokGUGTWv570Vy22ZpXL8=", 160 | "dev": true 161 | }, 162 | "combined-stream": { 163 | "version": "1.0.5", 164 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.5.tgz", 165 | "integrity": "sha1-k4NwpXtKUd6ix3wV1cX9+JUWQAk=", 166 | "dev": true, 167 | "optional": true, 168 | "requires": { 169 | "delayed-stream": "~1.0.0" 170 | } 171 | }, 172 | "compressible": { 173 | "version": "2.0.10", 174 | "resolved": "https://registry.npmjs.org/compressible/-/compressible-2.0.10.tgz", 175 | "integrity": "sha1-/tocf3YXkScyspv4zyYlKiC57s0=", 176 | "dev": true, 177 | "requires": { 178 | "mime-db": ">= 1.27.0 < 2" 179 | } 180 | }, 181 | "compression": { 182 | "version": "1.5.2", 183 | "resolved": "https://registry.npmjs.org/compression/-/compression-1.5.2.tgz", 184 | "integrity": "sha1-sDuNhub4rSloPLqN+R3cb/x3s5U=", 185 | "dev": true, 186 | "requires": { 187 | "accepts": "~1.2.12", 188 | "bytes": "2.1.0", 189 | "compressible": "~2.0.5", 190 | "debug": "~2.2.0", 191 | "on-headers": "~1.0.0", 192 | "vary": "~1.0.1" 193 | }, 194 | "dependencies": { 195 | "debug": { 196 | "version": "2.2.0", 197 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 198 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 199 | "dev": true, 200 | "requires": { 201 | "ms": "0.7.1" 202 | } 203 | } 204 | } 205 | }, 206 | "connect": { 207 | "version": "2.30.2", 208 | "resolved": "https://registry.npmjs.org/connect/-/connect-2.30.2.tgz", 209 | "integrity": "sha1-jam8vooFTT0xjXTf7JA7XDmhtgk=", 210 | "dev": true, 211 | "requires": { 212 | "basic-auth-connect": "1.0.0", 213 | "body-parser": "~1.13.3", 214 | "bytes": "2.1.0", 215 | "compression": "~1.5.2", 216 | "connect-timeout": "~1.6.2", 217 | "content-type": "~1.0.1", 218 | "cookie": "0.1.3", 219 | "cookie-parser": "~1.3.5", 220 | "cookie-signature": "1.0.6", 221 | "csurf": "~1.8.3", 222 | "debug": "~2.2.0", 223 | "depd": "~1.0.1", 224 | "errorhandler": "~1.4.2", 225 | "express-session": "~1.11.3", 226 | "finalhandler": "0.4.0", 227 | "fresh": "0.3.0", 228 | "http-errors": "~1.3.1", 229 | "method-override": "~2.3.5", 230 | "morgan": "~1.6.1", 231 | "multiparty": "3.3.2", 232 | "on-headers": "~1.0.0", 233 | "parseurl": "~1.3.0", 234 | "pause": "0.1.0", 235 | "qs": "4.0.0", 236 | "response-time": "~2.3.1", 237 | "serve-favicon": "~2.3.0", 238 | "serve-index": "~1.7.2", 239 | "serve-static": "~1.10.0", 240 | "type-is": "~1.6.6", 241 | "utils-merge": "1.0.0", 242 | "vhost": "~3.0.1" 243 | }, 244 | "dependencies": { 245 | "debug": { 246 | "version": "2.2.0", 247 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 248 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 249 | "dev": true, 250 | "requires": { 251 | "ms": "0.7.1" 252 | } 253 | } 254 | } 255 | }, 256 | "connect-timeout": { 257 | "version": "1.6.2", 258 | "resolved": "https://registry.npmjs.org/connect-timeout/-/connect-timeout-1.6.2.tgz", 259 | "integrity": "sha1-3ppexh4zoStu2qt7XwYumMWZuI4=", 260 | "dev": true, 261 | "requires": { 262 | "debug": "~2.2.0", 263 | "http-errors": "~1.3.1", 264 | "ms": "0.7.1", 265 | "on-headers": "~1.0.0" 266 | }, 267 | "dependencies": { 268 | "debug": { 269 | "version": "2.2.0", 270 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 271 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 272 | "dev": true, 273 | "requires": { 274 | "ms": "0.7.1" 275 | } 276 | } 277 | } 278 | }, 279 | "content-type": { 280 | "version": "1.0.2", 281 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.2.tgz", 282 | "integrity": "sha1-t9ETrueo3Se9IRM8TcJSnfFyHu0=", 283 | "dev": true 284 | }, 285 | "cookie": { 286 | "version": "0.1.3", 287 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.1.3.tgz", 288 | "integrity": "sha1-5zSlwUF/zkctWu+Cw4HKu2TRpDU=", 289 | "dev": true 290 | }, 291 | "cookie-parser": { 292 | "version": "1.3.5", 293 | "resolved": "https://registry.npmjs.org/cookie-parser/-/cookie-parser-1.3.5.tgz", 294 | "integrity": "sha1-nXVVcPtdF4kHcSJ6AjFNm+fPg1Y=", 295 | "dev": true, 296 | "requires": { 297 | "cookie": "0.1.3", 298 | "cookie-signature": "1.0.6" 299 | } 300 | }, 301 | "cookie-signature": { 302 | "version": "1.0.6", 303 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 304 | "integrity": "sha1-4wOogrNCzD7oylE6eZmXNNqzriw=", 305 | "dev": true 306 | }, 307 | "core-util-is": { 308 | "version": "1.0.2", 309 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 310 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 311 | "dev": true 312 | }, 313 | "crc": { 314 | "version": "3.3.0", 315 | "resolved": "https://registry.npmjs.org/crc/-/crc-3.3.0.tgz", 316 | "integrity": "sha1-+mIuG8OIvyVzCQgta2UgDOZwkLo=", 317 | "dev": true 318 | }, 319 | "cryptiles": { 320 | "version": "2.0.5", 321 | "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.5.tgz", 322 | "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", 323 | "dev": true, 324 | "optional": true, 325 | "requires": { 326 | "boom": "2.x.x" 327 | } 328 | }, 329 | "csrf": { 330 | "version": "3.0.6", 331 | "resolved": "https://registry.npmjs.org/csrf/-/csrf-3.0.6.tgz", 332 | "integrity": "sha1-thEg3c7q/JHnbtUxO7XAsmZ7cQo=", 333 | "dev": true, 334 | "requires": { 335 | "rndm": "1.2.0", 336 | "tsscmp": "1.0.5", 337 | "uid-safe": "2.1.4" 338 | } 339 | }, 340 | "cssom": { 341 | "version": "0.2.5", 342 | "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.2.5.tgz", 343 | "integrity": "sha1-JoJwm1kC5yEt9SkRb/eIzVslSJQ=", 344 | "dev": true 345 | }, 346 | "csurf": { 347 | "version": "1.8.3", 348 | "resolved": "https://registry.npmjs.org/csurf/-/csurf-1.8.3.tgz", 349 | "integrity": "sha1-I/KhO/HY/OHQyZZYg5RELLqGpWo=", 350 | "dev": true, 351 | "requires": { 352 | "cookie": "0.1.3", 353 | "cookie-signature": "1.0.6", 354 | "csrf": "~3.0.0", 355 | "http-errors": "~1.3.1" 356 | } 357 | }, 358 | "dashdash": { 359 | "version": "1.14.1", 360 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 361 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 362 | "dev": true, 363 | "optional": true, 364 | "requires": { 365 | "assert-plus": "^1.0.0" 366 | }, 367 | "dependencies": { 368 | "assert-plus": { 369 | "version": "1.0.0", 370 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 371 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 372 | "dev": true, 373 | "optional": true 374 | } 375 | } 376 | }, 377 | "debug": { 378 | "version": "4.1.1", 379 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 380 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 381 | "dev": true, 382 | "requires": { 383 | "ms": "^2.1.1" 384 | }, 385 | "dependencies": { 386 | "ms": { 387 | "version": "2.1.1", 388 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 389 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 390 | "dev": true 391 | } 392 | } 393 | }, 394 | "delayed-stream": { 395 | "version": "1.0.0", 396 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 397 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", 398 | "dev": true, 399 | "optional": true 400 | }, 401 | "dep-graph": { 402 | "version": "1.1.0", 403 | "resolved": "https://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz", 404 | "integrity": "sha1-+t6GqSeZqBPptCURzfPfpsyNvv4=", 405 | "dev": true, 406 | "requires": { 407 | "underscore": "1.2.1" 408 | }, 409 | "dependencies": { 410 | "underscore": { 411 | "version": "1.2.1", 412 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.2.1.tgz", 413 | "integrity": "sha1-/FxrB2VnPZKi1KyLTcCqiHAuK9Q=", 414 | "dev": true 415 | } 416 | } 417 | }, 418 | "depd": { 419 | "version": "1.0.1", 420 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.0.1.tgz", 421 | "integrity": "sha1-gK7GTJ1tl+ZcwqnKqTwKpqv3Oqo=", 422 | "dev": true 423 | }, 424 | "destroy": { 425 | "version": "1.0.4", 426 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 427 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", 428 | "dev": true 429 | }, 430 | "ecc-jsbn": { 431 | "version": "0.1.1", 432 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz", 433 | "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", 434 | "dev": true, 435 | "optional": true, 436 | "requires": { 437 | "jsbn": "~0.1.0" 438 | } 439 | }, 440 | "ee-first": { 441 | "version": "1.1.1", 442 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 443 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", 444 | "dev": true 445 | }, 446 | "errorhandler": { 447 | "version": "1.4.3", 448 | "resolved": "https://registry.npmjs.org/errorhandler/-/errorhandler-1.4.3.tgz", 449 | "integrity": "sha1-t7cO2PNZ6duICS8tIMD4MUIK2D8=", 450 | "dev": true, 451 | "requires": { 452 | "accepts": "~1.3.0", 453 | "escape-html": "~1.0.3" 454 | }, 455 | "dependencies": { 456 | "accepts": { 457 | "version": "1.3.3", 458 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz", 459 | "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", 460 | "dev": true, 461 | "requires": { 462 | "mime-types": "~2.1.11", 463 | "negotiator": "0.6.1" 464 | } 465 | }, 466 | "negotiator": { 467 | "version": "0.6.1", 468 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", 469 | "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", 470 | "dev": true 471 | } 472 | } 473 | }, 474 | "escape-html": { 475 | "version": "1.0.3", 476 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 477 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", 478 | "dev": true 479 | }, 480 | "etag": { 481 | "version": "1.7.0", 482 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.7.0.tgz", 483 | "integrity": "sha1-A9MLX2fdbmMtKUXTDWZScxo01dg=", 484 | "dev": true 485 | }, 486 | "express-session": { 487 | "version": "1.11.3", 488 | "resolved": "https://registry.npmjs.org/express-session/-/express-session-1.11.3.tgz", 489 | "integrity": "sha1-XMmPP1/4Ttg1+Ry/CqvQxxB0AK8=", 490 | "dev": true, 491 | "requires": { 492 | "cookie": "0.1.3", 493 | "cookie-signature": "1.0.6", 494 | "crc": "3.3.0", 495 | "debug": "~2.2.0", 496 | "depd": "~1.0.1", 497 | "on-headers": "~1.0.0", 498 | "parseurl": "~1.3.0", 499 | "uid-safe": "~2.0.0", 500 | "utils-merge": "1.0.0" 501 | }, 502 | "dependencies": { 503 | "debug": { 504 | "version": "2.2.0", 505 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 506 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 507 | "dev": true, 508 | "requires": { 509 | "ms": "0.7.1" 510 | } 511 | }, 512 | "uid-safe": { 513 | "version": "2.0.0", 514 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.0.0.tgz", 515 | "integrity": "sha1-p/PGymSh9qXQTsDvPkw9U2cxcTc=", 516 | "dev": true, 517 | "requires": { 518 | "base64-url": "1.2.1" 519 | } 520 | } 521 | } 522 | }, 523 | "extend": { 524 | "version": "3.0.1", 525 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.1.tgz", 526 | "integrity": "sha1-p1Xqe8Gt/MWjHOfnYtuq3F5jZEQ=", 527 | "dev": true, 528 | "optional": true 529 | }, 530 | "extsprintf": { 531 | "version": "1.0.2", 532 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.0.2.tgz", 533 | "integrity": "sha1-4QgOBljjALBilJkMxw4VAiNf1VA=", 534 | "dev": true, 535 | "optional": true 536 | }, 537 | "finalhandler": { 538 | "version": "0.4.0", 539 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-0.4.0.tgz", 540 | "integrity": "sha1-llpS2ejQXSuFdUhUH7ibU6JJfZs=", 541 | "dev": true, 542 | "requires": { 543 | "debug": "~2.2.0", 544 | "escape-html": "1.0.2", 545 | "on-finished": "~2.3.0", 546 | "unpipe": "~1.0.0" 547 | }, 548 | "dependencies": { 549 | "debug": { 550 | "version": "2.2.0", 551 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 552 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 553 | "dev": true, 554 | "requires": { 555 | "ms": "0.7.1" 556 | } 557 | }, 558 | "escape-html": { 559 | "version": "1.0.2", 560 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.2.tgz", 561 | "integrity": "sha1-130y+pjjjC9BroXpJ44ODmuhAiw=", 562 | "dev": true 563 | } 564 | } 565 | }, 566 | "forever-agent": { 567 | "version": "0.6.1", 568 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 569 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", 570 | "dev": true, 571 | "optional": true 572 | }, 573 | "form-data": { 574 | "version": "2.1.4", 575 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.1.4.tgz", 576 | "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", 577 | "dev": true, 578 | "optional": true, 579 | "requires": { 580 | "asynckit": "^0.4.0", 581 | "combined-stream": "^1.0.5", 582 | "mime-types": "^2.1.12" 583 | } 584 | }, 585 | "fresh": { 586 | "version": "0.3.0", 587 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.3.0.tgz", 588 | "integrity": "sha1-ZR+DjiJCTnVm3hYdg1jKoZn4PU8=", 589 | "dev": true 590 | }, 591 | "getpass": { 592 | "version": "0.1.7", 593 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 594 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 595 | "dev": true, 596 | "optional": true, 597 | "requires": { 598 | "assert-plus": "^1.0.0" 599 | }, 600 | "dependencies": { 601 | "assert-plus": { 602 | "version": "1.0.0", 603 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 604 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 605 | "dev": true, 606 | "optional": true 607 | } 608 | } 609 | }, 610 | "har-schema": { 611 | "version": "1.0.5", 612 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-1.0.5.tgz", 613 | "integrity": "sha1-0mMTX0MwfALGAq/I/pWXDAFRNp4=", 614 | "dev": true, 615 | "optional": true 616 | }, 617 | "har-validator": { 618 | "version": "4.2.1", 619 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-4.2.1.tgz", 620 | "integrity": "sha1-M0gdDxu/9gDdID11gSpqX7oALio=", 621 | "dev": true, 622 | "optional": true, 623 | "requires": { 624 | "ajv": "^4.9.1", 625 | "har-schema": "^1.0.5" 626 | } 627 | }, 628 | "hawk": { 629 | "version": "3.1.3", 630 | "resolved": "https://registry.npmjs.org/hawk/-/hawk-3.1.3.tgz", 631 | "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", 632 | "dev": true, 633 | "optional": true, 634 | "requires": { 635 | "boom": "2.x.x", 636 | "cryptiles": "2.x.x", 637 | "hoek": "2.x.x", 638 | "sntp": "1.x.x" 639 | } 640 | }, 641 | "hoek": { 642 | "version": "2.16.3", 643 | "resolved": "https://registry.npmjs.org/hoek/-/hoek-2.16.3.tgz", 644 | "integrity": "sha1-ILt0A9POo5jpHcRxCo/xuCdKJe0=", 645 | "dev": true, 646 | "optional": true 647 | }, 648 | "http-errors": { 649 | "version": "1.3.1", 650 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.3.1.tgz", 651 | "integrity": "sha1-GX4izevUGYWF6GlO9nhhl7ke2UI=", 652 | "dev": true, 653 | "requires": { 654 | "inherits": "~2.0.1", 655 | "statuses": "1" 656 | } 657 | }, 658 | "http-signature": { 659 | "version": "1.1.1", 660 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz", 661 | "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", 662 | "dev": true, 663 | "optional": true, 664 | "requires": { 665 | "assert-plus": "^0.2.0", 666 | "jsprim": "^1.2.2", 667 | "sshpk": "^1.7.0" 668 | } 669 | }, 670 | "iconv-lite": { 671 | "version": "0.4.11", 672 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.11.tgz", 673 | "integrity": "sha1-LstC/SlHRJIiCaLnxATayHk9it4=", 674 | "dev": true 675 | }, 676 | "inherits": { 677 | "version": "2.0.3", 678 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 679 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 680 | "dev": true 681 | }, 682 | "is-typedarray": { 683 | "version": "1.0.0", 684 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 685 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 686 | "dev": true, 687 | "optional": true 688 | }, 689 | "isarray": { 690 | "version": "0.0.1", 691 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 692 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", 693 | "dev": true 694 | }, 695 | "isstream": { 696 | "version": "0.1.2", 697 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 698 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", 699 | "dev": true, 700 | "optional": true 701 | }, 702 | "jsbn": { 703 | "version": "0.1.1", 704 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 705 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 706 | "dev": true, 707 | "optional": true 708 | }, 709 | "json-schema": { 710 | "version": "0.2.3", 711 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 712 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", 713 | "dev": true, 714 | "optional": true 715 | }, 716 | "json-stable-stringify": { 717 | "version": "1.0.1", 718 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz", 719 | "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", 720 | "dev": true, 721 | "optional": true, 722 | "requires": { 723 | "jsonify": "~0.0.0" 724 | } 725 | }, 726 | "json-stringify-safe": { 727 | "version": "5.0.1", 728 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 729 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", 730 | "dev": true, 731 | "optional": true 732 | }, 733 | "jsonify": { 734 | "version": "0.0.0", 735 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz", 736 | "integrity": "sha1-LHS27kHZPKUbe1qu6PUDYx0lKnM=", 737 | "dev": true, 738 | "optional": true 739 | }, 740 | "jsprim": { 741 | "version": "1.4.0", 742 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz", 743 | "integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=", 744 | "dev": true, 745 | "optional": true, 746 | "requires": { 747 | "assert-plus": "1.0.0", 748 | "extsprintf": "1.0.2", 749 | "json-schema": "0.2.3", 750 | "verror": "1.3.6" 751 | }, 752 | "dependencies": { 753 | "assert-plus": { 754 | "version": "1.0.0", 755 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 756 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 757 | "dev": true, 758 | "optional": true 759 | } 760 | } 761 | }, 762 | "less": { 763 | "version": "1.4.0", 764 | "resolved": "https://registry.npmjs.org/less/-/less-1.4.0.tgz", 765 | "integrity": "sha1-Y+AqDUHM9PJrP+tAAh2UXWqkixQ=", 766 | "dev": true, 767 | "requires": { 768 | "mime": "1.2.x", 769 | "mkdirp": "~0.3.4", 770 | "request": ">=2.12.0", 771 | "ycssmin": ">=1.0.1" 772 | }, 773 | "dependencies": { 774 | "mime": { 775 | "version": "1.2.11", 776 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.11.tgz", 777 | "integrity": "sha1-WCA+7Ybjpe8XrtK32evUfwpg3RA=", 778 | "dev": true, 779 | "optional": true 780 | } 781 | } 782 | }, 783 | "media-typer": { 784 | "version": "0.3.0", 785 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 786 | "integrity": "sha1-hxDXrwqmJvj/+hzgAWhUUmMlV0g=", 787 | "dev": true 788 | }, 789 | "method-override": { 790 | "version": "2.3.9", 791 | "resolved": "https://registry.npmjs.org/method-override/-/method-override-2.3.9.tgz", 792 | "integrity": "sha1-vRUfLONM8Bp2ykAKuVwBKxAtj3E=", 793 | "dev": true, 794 | "requires": { 795 | "debug": "2.6.8", 796 | "methods": "~1.1.2", 797 | "parseurl": "~1.3.1", 798 | "vary": "~1.1.1" 799 | }, 800 | "dependencies": { 801 | "debug": { 802 | "version": "2.6.8", 803 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.8.tgz", 804 | "integrity": "sha1-5zFTHKLt4n0YgiJCfaF4IdaP9Pw=", 805 | "dev": true, 806 | "requires": { 807 | "ms": "2.0.0" 808 | } 809 | }, 810 | "ms": { 811 | "version": "2.0.0", 812 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 813 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 814 | "dev": true 815 | }, 816 | "vary": { 817 | "version": "1.1.1", 818 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.1.tgz", 819 | "integrity": "sha1-Z1Neu2lMHVIldFeYRmUyP1h+jTc=", 820 | "dev": true 821 | } 822 | } 823 | }, 824 | "methods": { 825 | "version": "1.1.2", 826 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 827 | "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", 828 | "dev": true 829 | }, 830 | "mime": { 831 | "version": "1.3.4", 832 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz", 833 | "integrity": "sha1-EV+eO2s9rylZmDyzjxSaLUDrXVM=", 834 | "dev": true 835 | }, 836 | "mime-db": { 837 | "version": "1.27.0", 838 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.27.0.tgz", 839 | "integrity": "sha1-gg9XIpa70g7CXtVeW13oaeVDbrE=", 840 | "dev": true 841 | }, 842 | "mime-types": { 843 | "version": "2.1.15", 844 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.15.tgz", 845 | "integrity": "sha1-pOv1BkCUVpI3uM9wBGd20J/JKu0=", 846 | "dev": true, 847 | "requires": { 848 | "mime-db": "~1.27.0" 849 | } 850 | }, 851 | "mkdirp": { 852 | "version": "0.3.5", 853 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz", 854 | "integrity": "sha1-3j5fiWHIjHh+4TaN+EmsRBPsqNc=", 855 | "dev": true 856 | }, 857 | "morgan": { 858 | "version": "1.6.1", 859 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.6.1.tgz", 860 | "integrity": "sha1-X9gYOYxoGcuiinzWZk8pL+HAu/I=", 861 | "dev": true, 862 | "requires": { 863 | "basic-auth": "~1.0.3", 864 | "debug": "~2.2.0", 865 | "depd": "~1.0.1", 866 | "on-finished": "~2.3.0", 867 | "on-headers": "~1.0.0" 868 | }, 869 | "dependencies": { 870 | "debug": { 871 | "version": "2.2.0", 872 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 873 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 874 | "dev": true, 875 | "requires": { 876 | "ms": "0.7.1" 877 | } 878 | } 879 | } 880 | }, 881 | "ms": { 882 | "version": "0.7.1", 883 | "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.1.tgz", 884 | "integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=", 885 | "dev": true 886 | }, 887 | "multiparty": { 888 | "version": "3.3.2", 889 | "resolved": "https://registry.npmjs.org/multiparty/-/multiparty-3.3.2.tgz", 890 | "integrity": "sha1-Nd5oBNwZZD5SSfPT473GyM4wHT8=", 891 | "dev": true, 892 | "requires": { 893 | "readable-stream": "~1.1.9", 894 | "stream-counter": "~0.2.0" 895 | } 896 | }, 897 | "negotiator": { 898 | "version": "0.5.3", 899 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.5.3.tgz", 900 | "integrity": "sha1-Jp1cR2gQ7JLtvntsLygxY4T5p+g=", 901 | "dev": true 902 | }, 903 | "oauth-sign": { 904 | "version": "0.8.2", 905 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.2.tgz", 906 | "integrity": "sha1-Rqarfwrq2N6unsBWV4C31O/rnUM=", 907 | "dev": true, 908 | "optional": true 909 | }, 910 | "on-finished": { 911 | "version": "2.3.0", 912 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 913 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 914 | "dev": true, 915 | "requires": { 916 | "ee-first": "1.1.1" 917 | } 918 | }, 919 | "on-headers": { 920 | "version": "1.0.1", 921 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.1.tgz", 922 | "integrity": "sha1-ko9dD0cNSTQmUepnlLCFfBAGk/c=", 923 | "dev": true 924 | }, 925 | "parseurl": { 926 | "version": "1.3.1", 927 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.1.tgz", 928 | "integrity": "sha1-yKuMkiO6NIiKpkopeyiFO+wY2lY=" 929 | }, 930 | "pause": { 931 | "version": "0.1.0", 932 | "resolved": "https://registry.npmjs.org/pause/-/pause-0.1.0.tgz", 933 | "integrity": "sha1-68ikqGGf8LioGsFRPDQ0/0af23Q=", 934 | "dev": true 935 | }, 936 | "performance-now": { 937 | "version": "0.2.0", 938 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-0.2.0.tgz", 939 | "integrity": "sha1-M+8wxcd9TqIcWlOGnZG1bY8lVeU=", 940 | "dev": true, 941 | "optional": true 942 | }, 943 | "punycode": { 944 | "version": "1.4.1", 945 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 946 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", 947 | "dev": true, 948 | "optional": true 949 | }, 950 | "qs": { 951 | "version": "4.0.0", 952 | "resolved": "https://registry.npmjs.org/qs/-/qs-4.0.0.tgz", 953 | "integrity": "sha1-wx2bdOwn33XlQ6hseHKO2NRiNgc=", 954 | "dev": true 955 | }, 956 | "random-bytes": { 957 | "version": "1.0.0", 958 | "resolved": "https://registry.npmjs.org/random-bytes/-/random-bytes-1.0.0.tgz", 959 | "integrity": "sha1-T2ih3Arli9P7lYSMMDJNt11kNgs=", 960 | "dev": true 961 | }, 962 | "range-parser": { 963 | "version": "1.0.3", 964 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.0.3.tgz", 965 | "integrity": "sha1-aHKCNTXGkuLCoBA4Jq/YLC4P8XU=", 966 | "dev": true 967 | }, 968 | "raw-body": { 969 | "version": "2.1.7", 970 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.1.7.tgz", 971 | "integrity": "sha1-rf6s4uT7MJgFgBTQjActzFl1h3Q=", 972 | "dev": true, 973 | "requires": { 974 | "bytes": "2.4.0", 975 | "iconv-lite": "0.4.13", 976 | "unpipe": "1.0.0" 977 | }, 978 | "dependencies": { 979 | "bytes": { 980 | "version": "2.4.0", 981 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-2.4.0.tgz", 982 | "integrity": "sha1-fZcZb51br39pNeJZhVSe3SpsIzk=", 983 | "dev": true 984 | }, 985 | "iconv-lite": { 986 | "version": "0.4.13", 987 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.13.tgz", 988 | "integrity": "sha1-H4irpKsLFQjoMSrMOTRfNumS4vI=", 989 | "dev": true 990 | } 991 | } 992 | }, 993 | "readable-stream": { 994 | "version": "1.1.14", 995 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 996 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 997 | "dev": true, 998 | "requires": { 999 | "core-util-is": "~1.0.0", 1000 | "inherits": "~2.0.1", 1001 | "isarray": "0.0.1", 1002 | "string_decoder": "~0.10.x" 1003 | } 1004 | }, 1005 | "request": { 1006 | "version": "2.81.0", 1007 | "resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz", 1008 | "integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=", 1009 | "dev": true, 1010 | "optional": true, 1011 | "requires": { 1012 | "aws-sign2": "~0.6.0", 1013 | "aws4": "^1.2.1", 1014 | "caseless": "~0.12.0", 1015 | "combined-stream": "~1.0.5", 1016 | "extend": "~3.0.0", 1017 | "forever-agent": "~0.6.1", 1018 | "form-data": "~2.1.1", 1019 | "har-validator": "~4.2.1", 1020 | "hawk": "~3.1.3", 1021 | "http-signature": "~1.1.0", 1022 | "is-typedarray": "~1.0.0", 1023 | "isstream": "~0.1.2", 1024 | "json-stringify-safe": "~5.0.1", 1025 | "mime-types": "~2.1.7", 1026 | "oauth-sign": "~0.8.1", 1027 | "performance-now": "^0.2.0", 1028 | "qs": "~6.4.0", 1029 | "safe-buffer": "^5.0.1", 1030 | "stringstream": "~0.0.4", 1031 | "tough-cookie": "~2.3.0", 1032 | "tunnel-agent": "^0.6.0", 1033 | "uuid": "^3.0.0" 1034 | }, 1035 | "dependencies": { 1036 | "qs": { 1037 | "version": "6.4.0", 1038 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.4.0.tgz", 1039 | "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", 1040 | "dev": true, 1041 | "optional": true 1042 | } 1043 | } 1044 | }, 1045 | "response-time": { 1046 | "version": "2.3.2", 1047 | "resolved": "https://registry.npmjs.org/response-time/-/response-time-2.3.2.tgz", 1048 | "integrity": "sha1-/6cbq5UtYvfB1Jt0NDVfvGjf/Fo=", 1049 | "dev": true, 1050 | "requires": { 1051 | "depd": "~1.1.0", 1052 | "on-headers": "~1.0.1" 1053 | }, 1054 | "dependencies": { 1055 | "depd": { 1056 | "version": "1.1.0", 1057 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz", 1058 | "integrity": "sha1-4b2Cxqq2ztlluXuIsX7T5SjKGMM=", 1059 | "dev": true 1060 | } 1061 | } 1062 | }, 1063 | "rndm": { 1064 | "version": "1.2.0", 1065 | "resolved": "https://registry.npmjs.org/rndm/-/rndm-1.2.0.tgz", 1066 | "integrity": "sha1-8z/pz7Urv9UgqhgyO8ZdsRCht2w=", 1067 | "dev": true 1068 | }, 1069 | "safe-buffer": { 1070 | "version": "5.1.1", 1071 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", 1072 | "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", 1073 | "dev": true, 1074 | "optional": true 1075 | }, 1076 | "send": { 1077 | "version": "0.13.2", 1078 | "resolved": "https://registry.npmjs.org/send/-/send-0.13.2.tgz", 1079 | "integrity": "sha1-dl52B8gFVFK7pvCwUllTUJhgNt4=", 1080 | "dev": true, 1081 | "requires": { 1082 | "debug": "~2.2.0", 1083 | "depd": "~1.1.0", 1084 | "destroy": "~1.0.4", 1085 | "escape-html": "~1.0.3", 1086 | "etag": "~1.7.0", 1087 | "fresh": "0.3.0", 1088 | "http-errors": "~1.3.1", 1089 | "mime": "1.3.4", 1090 | "ms": "0.7.1", 1091 | "on-finished": "~2.3.0", 1092 | "range-parser": "~1.0.3", 1093 | "statuses": "~1.2.1" 1094 | }, 1095 | "dependencies": { 1096 | "debug": { 1097 | "version": "2.2.0", 1098 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 1099 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 1100 | "dev": true, 1101 | "requires": { 1102 | "ms": "0.7.1" 1103 | } 1104 | }, 1105 | "depd": { 1106 | "version": "1.1.0", 1107 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.0.tgz", 1108 | "integrity": "sha1-4b2Cxqq2ztlluXuIsX7T5SjKGMM=", 1109 | "dev": true 1110 | }, 1111 | "statuses": { 1112 | "version": "1.2.1", 1113 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.2.1.tgz", 1114 | "integrity": "sha1-3e1FzBglbVHtQK7BQkidXGECbSg=", 1115 | "dev": true 1116 | } 1117 | } 1118 | }, 1119 | "serve-favicon": { 1120 | "version": "2.3.2", 1121 | "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.3.2.tgz", 1122 | "integrity": "sha1-3UGeJo3gEqtysxnTN/IQUBP5OB8=", 1123 | "dev": true, 1124 | "requires": { 1125 | "etag": "~1.7.0", 1126 | "fresh": "0.3.0", 1127 | "ms": "0.7.2", 1128 | "parseurl": "~1.3.1" 1129 | }, 1130 | "dependencies": { 1131 | "ms": { 1132 | "version": "0.7.2", 1133 | "resolved": "https://registry.npmjs.org/ms/-/ms-0.7.2.tgz", 1134 | "integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=", 1135 | "dev": true 1136 | } 1137 | } 1138 | }, 1139 | "serve-index": { 1140 | "version": "1.7.3", 1141 | "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.7.3.tgz", 1142 | "integrity": "sha1-egV/xu4o3GP2RWbl+lexEahq7NI=", 1143 | "dev": true, 1144 | "requires": { 1145 | "accepts": "~1.2.13", 1146 | "batch": "0.5.3", 1147 | "debug": "~2.2.0", 1148 | "escape-html": "~1.0.3", 1149 | "http-errors": "~1.3.1", 1150 | "mime-types": "~2.1.9", 1151 | "parseurl": "~1.3.1" 1152 | }, 1153 | "dependencies": { 1154 | "debug": { 1155 | "version": "2.2.0", 1156 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.2.0.tgz", 1157 | "integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=", 1158 | "dev": true, 1159 | "requires": { 1160 | "ms": "0.7.1" 1161 | } 1162 | } 1163 | } 1164 | }, 1165 | "serve-static": { 1166 | "version": "1.10.3", 1167 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.10.3.tgz", 1168 | "integrity": "sha1-zlpuzTEB/tXsCYJ9rCKpwpv7BTU=", 1169 | "dev": true, 1170 | "requires": { 1171 | "escape-html": "~1.0.3", 1172 | "parseurl": "~1.3.1", 1173 | "send": "0.13.2" 1174 | } 1175 | }, 1176 | "snockets": { 1177 | "version": "1.3.8", 1178 | "resolved": "https://registry.npmjs.org/snockets/-/snockets-1.3.8.tgz", 1179 | "integrity": "sha1-RcGsmRHF/AIwhhCeSQcMN6lg2zI=", 1180 | "dev": true, 1181 | "requires": { 1182 | "coffee-script": ">=1.1.2", 1183 | "dep-graph": "1.1.0", 1184 | "mime": "1.2.2", 1185 | "uglify-js": "1.0.7", 1186 | "underscore": "1.1.7" 1187 | }, 1188 | "dependencies": { 1189 | "mime": { 1190 | "version": "1.2.2", 1191 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.2.2.tgz", 1192 | "integrity": "sha1-udY1W/U+jX1WaTEw5FHa/zQBSM8=", 1193 | "dev": true 1194 | } 1195 | } 1196 | }, 1197 | "sntp": { 1198 | "version": "1.0.9", 1199 | "resolved": "https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz", 1200 | "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", 1201 | "dev": true, 1202 | "optional": true, 1203 | "requires": { 1204 | "hoek": "2.x.x" 1205 | } 1206 | }, 1207 | "sshpk": { 1208 | "version": "1.13.1", 1209 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.13.1.tgz", 1210 | "integrity": "sha1-US322mKHFEMW3EwY/hzx2UBzm+M=", 1211 | "dev": true, 1212 | "optional": true, 1213 | "requires": { 1214 | "asn1": "~0.2.3", 1215 | "assert-plus": "^1.0.0", 1216 | "bcrypt-pbkdf": "^1.0.0", 1217 | "dashdash": "^1.12.0", 1218 | "ecc-jsbn": "~0.1.1", 1219 | "getpass": "^0.1.1", 1220 | "jsbn": "~0.1.0", 1221 | "tweetnacl": "~0.14.0" 1222 | }, 1223 | "dependencies": { 1224 | "assert-plus": { 1225 | "version": "1.0.0", 1226 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 1227 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 1228 | "dev": true, 1229 | "optional": true 1230 | } 1231 | } 1232 | }, 1233 | "statuses": { 1234 | "version": "1.3.1", 1235 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.3.1.tgz", 1236 | "integrity": "sha1-+vUbnrdKrvOzrPStX2Gr8ky3uT4=", 1237 | "dev": true 1238 | }, 1239 | "stream-counter": { 1240 | "version": "0.2.0", 1241 | "resolved": "https://registry.npmjs.org/stream-counter/-/stream-counter-0.2.0.tgz", 1242 | "integrity": "sha1-3tJmVWMZyLDiIoErnPOyb6fZR94=", 1243 | "dev": true, 1244 | "requires": { 1245 | "readable-stream": "~1.1.8" 1246 | } 1247 | }, 1248 | "string_decoder": { 1249 | "version": "0.10.31", 1250 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 1251 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 1252 | "dev": true 1253 | }, 1254 | "stringstream": { 1255 | "version": "0.0.5", 1256 | "resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz", 1257 | "integrity": "sha1-TkhM1N5aC7vuGORjB3EKioFiGHg=", 1258 | "dev": true, 1259 | "optional": true 1260 | }, 1261 | "stylus": { 1262 | "version": "0.32.0", 1263 | "resolved": "https://registry.npmjs.org/stylus/-/stylus-0.32.0.tgz", 1264 | "integrity": "sha1-6h1InSvrO5LQjJvNlNysjlCXYvc=", 1265 | "dev": true, 1266 | "requires": { 1267 | "cssom": "0.2.x", 1268 | "debug": "*", 1269 | "mkdirp": "0.3.x" 1270 | } 1271 | }, 1272 | "tough-cookie": { 1273 | "version": "2.3.2", 1274 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.2.tgz", 1275 | "integrity": "sha1-8IH3bkyFcg5sN6X6ztc3FQ2EByo=", 1276 | "dev": true, 1277 | "optional": true, 1278 | "requires": { 1279 | "punycode": "^1.4.1" 1280 | } 1281 | }, 1282 | "tsscmp": { 1283 | "version": "1.0.5", 1284 | "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.5.tgz", 1285 | "integrity": "sha1-fcSjOvcVgatDN9qR2FylQn69mpc=", 1286 | "dev": true 1287 | }, 1288 | "tunnel-agent": { 1289 | "version": "0.6.0", 1290 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 1291 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 1292 | "dev": true, 1293 | "optional": true, 1294 | "requires": { 1295 | "safe-buffer": "^5.0.1" 1296 | } 1297 | }, 1298 | "tweetnacl": { 1299 | "version": "0.14.5", 1300 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 1301 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 1302 | "dev": true, 1303 | "optional": true 1304 | }, 1305 | "type-is": { 1306 | "version": "1.6.15", 1307 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.15.tgz", 1308 | "integrity": "sha1-yrEPtJCeRByChC6v4a1kbIGARBA=", 1309 | "dev": true, 1310 | "requires": { 1311 | "media-typer": "0.3.0", 1312 | "mime-types": "~2.1.15" 1313 | } 1314 | }, 1315 | "uglify-js": { 1316 | "version": "1.0.7", 1317 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-1.0.7.tgz", 1318 | "integrity": "sha1-K3oQ5ij4gCmlU9K0u7F0CTQ3VcA=", 1319 | "dev": true 1320 | }, 1321 | "uid-safe": { 1322 | "version": "2.1.4", 1323 | "resolved": "https://registry.npmjs.org/uid-safe/-/uid-safe-2.1.4.tgz", 1324 | "integrity": "sha1-Otbzg2jG1MjHXsF2I/t5qh0HHYE=", 1325 | "dev": true, 1326 | "requires": { 1327 | "random-bytes": "~1.0.0" 1328 | } 1329 | }, 1330 | "underscore": { 1331 | "version": "1.1.7", 1332 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.1.7.tgz", 1333 | "integrity": "sha1-QLq4S60Z0jAJbo1u9ii/8FXYPbA=", 1334 | "dev": true 1335 | }, 1336 | "unpipe": { 1337 | "version": "1.0.0", 1338 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 1339 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", 1340 | "dev": true 1341 | }, 1342 | "utils-merge": { 1343 | "version": "1.0.0", 1344 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.0.tgz", 1345 | "integrity": "sha1-ApT7kiu5N1FTVBxPcJYjHyh8ivg=", 1346 | "dev": true 1347 | }, 1348 | "uuid": { 1349 | "version": "3.1.0", 1350 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", 1351 | "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", 1352 | "dev": true, 1353 | "optional": true 1354 | }, 1355 | "vary": { 1356 | "version": "1.0.1", 1357 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.0.1.tgz", 1358 | "integrity": "sha1-meSYFWaihhGN+yuBc1ffeZM3bRA=", 1359 | "dev": true 1360 | }, 1361 | "verror": { 1362 | "version": "1.3.6", 1363 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz", 1364 | "integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=", 1365 | "dev": true, 1366 | "optional": true, 1367 | "requires": { 1368 | "extsprintf": "1.0.2" 1369 | } 1370 | }, 1371 | "vhost": { 1372 | "version": "3.0.2", 1373 | "resolved": "https://registry.npmjs.org/vhost/-/vhost-3.0.2.tgz", 1374 | "integrity": "sha1-L7HezUxGaqiLD5NBrzPcGv8keNU=", 1375 | "dev": true 1376 | }, 1377 | "ycssmin": { 1378 | "version": "1.0.1", 1379 | "resolved": "https://registry.npmjs.org/ycssmin/-/ycssmin-1.0.1.tgz", 1380 | "integrity": "sha1-fN3o23jPqwDSkBw7IwHjBPr03xY=", 1381 | "dev": true, 1382 | "optional": true 1383 | } 1384 | } 1385 | } 1386 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "connect-static-transform", 3 | "version": "0.9.2", 4 | "description": "A connect middleware which allows transformation of static files before serving them.", 5 | "main": "lib/staticTransform.js", 6 | "dependencies": { 7 | "parseurl": "^1.3.1" 8 | }, 9 | "devDependencies": { 10 | "connect": "^2.8.1", 11 | "snockets": "1.3.8", 12 | "stylus": "0.32.0", 13 | "less": "1.4.0" 14 | }, 15 | "repository": "https://github.com/KenPowers/connect-static-transform", 16 | "keywords": [ 17 | "connect", 18 | "static", 19 | "transform", 20 | "compile", 21 | "asset", 22 | "pipeline", 23 | "coffee", 24 | "coffee-script", 25 | "stylus" 26 | ], 27 | "author": { 28 | "name": "Kenneth Powers", 29 | "email": "mail@kenpowers.net" 30 | }, 31 | "license": "MIT" 32 | } 33 | --------------------------------------------------------------------------------