repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/buffer-crc32/tests/crc.test.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/buffer-crc32/tests/crc.test.js | var crc32 = require('..');
var test = require('tap').test;
test('simple crc32 is no problem', function (t) {
var input = Buffer('hey sup bros');
var expected = Buffer([0x47, 0xfa, 0x55, 0x70]);
t.same(crc32(input), expected);
t.end();
});
test('another simple one', function (t) {
var input = Buffer('IEND');... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/pause/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/pause/index.js |
module.exports = function(obj){
var onData
, onEnd
, events = [];
// buffer data
obj.on('data', onData = function(data, encoding){
events.push(['data', data, encoding]);
});
// buffer end
obj.on('end', onEnd = function(data, encoding){
events.push(['end', data, encoding]);
});
return... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/index.js | module.exports = require('./lib/formidable'); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/index.js | module.exports = require('./lib/gently'); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/common.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/common.js | var path = require('path')
, sys = require('sys');
require.paths.unshift(path.dirname(__dirname)+'/lib');
global.puts = sys.puts;
global.p = function() {sys.error(sys.inspect.apply(null, arguments))};;
global.assert = require('assert'); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/simple/test-gently.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/test/simple/test-gently.js | require('../common');
var Gently = require('gently')
, gently;
function test(test) {
process.removeAllListeners('exit');
gently = new Gently();
test();
}
test(function constructor() {
assert.deepEqual(gently.expectations, []);
assert.deepEqual(gently.hijacked, {});
assert.equal(gently.constructor.name, ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/event_emitter.js | require('../test/common');
var gently = new (require('gently'))
, stream = new (require('fs').WriteStream)('my_file.txt');
gently.expect(stream, 'emit', function(event) {
assert.equal(event, 'open');
});
gently.expect(stream, 'emit', function(event) {
assert.equal(event, 'drain');
}); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/dog.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/example/dog.js | require('../test/common');
function Dog() {}
Dog.prototype.seeCat = function() {
this.bark('whuf, whuf');
this.run();
}
Dog.prototype.bark = function(bark) {
require('sys').puts(bark);
}
var gently = new (require('gently'))
, assert = require('assert')
, dog = new Dog();
gently.expect(dog, 'bark', functio... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/index.js | module.exports = require('./gently'); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/gently.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/node-gently/lib/gently/gently.js | var path = require('path');
function Gently() {
this.expectations = [];
this.hijacked = {};
var self = this;
process.addListener('exit', function() {
self.verify('process exit');
});
};
module.exports = Gently;
Gently.prototype.stub = function(location, exportsName) {
function Stub() {
return Stu... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/benchmark/bench-multipart-parser.js | require('../test/common');
var multipartParser = require('../lib/multipart_parser'),
MultipartParser = multipartParser.MultipartParser,
parser = new MultipartParser(),
Buffer = require('buffer').Buffer,
boundary = '-----------------------------168072824752491622650073',
mb = 100,
buffer = create... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/common.js | var mysql = require('..');
var path = require('path');
var root = path.join(__dirname, '../');
exports.dir = {
root : root,
lib : root + '/lib',
fixture : root + '/test/fixture',
tmp : root + '/test/tmp',
};
exports.port = 13532;
exports.formidable = require('..');
exports.assert = require('as... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/run.js | #!/usr/bin/env node
require('urun')(__dirname)
| javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/integration/test-fixtures.js | var hashish = require('hashish');
var fs = require('fs');
var findit = require('findit');
var path = require('path');
var http = require('http');
var net = require('net');
var assert = require('assert');
var common = require('../common');
var formidable = common.formidable;
var server = http.createServer();
server.li... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/multipart.js | exports['rfc1867'] =
{ boundary: 'AaB03x',
raw:
'--AaB03x\r\n'+
'content-disposition: form-data; name="field1"\r\n'+
'\r\n'+
'Joe Blow\r\nalmost tricked you!\r\n'+
'--AaB03x\r\n'+
'content-disposition: form-data; name="pics"; filename="file1.txt"\r\n'+
'Content-Type: text... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/no-filename.js | module.exports['generic.http'] = [
{type: 'file', name: 'upload', filename: '', fixture: 'plain.txt'},
];
| javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/fixture/js/special-chars-in-filename.js | var properFilename = 'funkyfilename.txt';
function expect(filename) {
return [
{type: 'field', name: 'title', value: 'Weird filename'},
{type: 'file', name: 'upload', filename: filename, fixture: properFilename},
];
};
var webkit = " ? % * | \" < > . ? ; ' @ # $ ^ & ( ) - _ = + { } [ ] ` ~.txt";
var ffOrI... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/common.js | var path = require('path'),
fs = require('fs');
try {
global.Gently = require('gently');
} catch (e) {
throw new Error('this test suite requires node-gently');
}
exports.lib = path.join(__dirname, '../../lib');
global.GENTLY = new Gently();
global.assert = require('assert');
global.TEST_PORT = 13532;
global... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/system/test-multi-video-upload.js | var common = require('../common');
var BOUNDARY = '---------------------------10102754414578508781458777923',
FIXTURE = TEST_FIXTURES+'/multi_video.upload',
fs = require('fs'),
util = require(common.lib + '/util'),
http = require('http'),
formidable = require(common.lib + '/index'),
server = htt... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/integration/test-multipart-parser.js | var common = require('../common');
var CHUNK_LENGTH = 10,
multipartParser = require(common.lib + '/multipart_parser'),
MultipartParser = multipartParser.MultipartParser,
parser = new MultipartParser(),
fixtures = require(TEST_FIXTURES + '/multipart'),
Buffer = require('buffer').Buffer;
Object.keys(... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-querystring-parser.js | var common = require('../common');
var QuerystringParser = require(common.lib + '/querystring_parser').QuerystringParser,
Buffer = require('buffer').Buffer,
gently,
parser;
function test(test) {
gently = new Gently();
parser = new QuerystringParser();
test();
gently.verify(test.name);
}
test(funct... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-file.js | var common = require('../common');
var WriteStreamStub = GENTLY.stub('fs', 'WriteStream');
var File = require(common.lib + '/file'),
EventEmitter = require('events').EventEmitter,
file,
gently;
function test(test) {
gently = new Gently();
file = new File();
test();
gently.verify(test.name);
}
tes... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-multipart-parser.js | var common = require('../common');
var multipartParser = require(common.lib + '/multipart_parser'),
MultipartParser = multipartParser.MultipartParser,
events = require('events'),
Buffer = require('buffer').Buffer,
parser;
function test(test) {
parser = new MultipartParser();
test();
}
test(functio... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/legacy/simple/test-incoming-form.js | var common = require('../common');
var MultipartParserStub = GENTLY.stub('./multipart_parser', 'MultipartParser'),
QuerystringParserStub = GENTLY.stub('./querystring_parser', 'QuerystringParser'),
EventEmitterStub = GENTLY.stub('events', 'EventEmitter'),
StreamStub = GENTLY.stub('stream', 'Stream'),
Fil... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/test/unit/test-incoming-form.js | var common = require('../common');
var test = require('utest');
var assert = common.assert;
var IncomingForm = common.require('incoming_form').IncomingForm;
var path = require('path');
var form;
test('IncomingForm', {
before: function() {
form = new IncomingForm();
},
'#_fileName... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/example/upload.js | require('../test/common');
var http = require('http'),
util = require('util'),
formidable = require('formidable'),
server;
server = http.createServer(function(req, res) {
if (req.url == '/') {
res.writeHead(200, {'content-type': 'text/html'});
res.end(
'<form action="/upload" enctype="multi... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/example/post.js | require('../test/common');
var http = require('http'),
util = require('util'),
formidable = require('formidable'),
server;
server = http.createServer(function(req, res) {
if (req.url == '/') {
res.writeHead(200, {'content-type': 'text/html'});
res.end(
'<form action="/post" method="post">'+... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/multipart_parser.js | var Buffer = require('buffer').Buffer,
s = 0,
S =
{ PARSER_UNINITIALIZED: s++,
START: s++,
START_BOUNDARY: s++,
HEADER_FIELD_START: s++,
HEADER_FIELD: s++,
HEADER_VALUE_START: s++,
HEADER_VALUE: s++,
HEADER_VALUE_ALMOST_DONE: s++,
HEADERS_ALMOST_DONE: s++,
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js | if (global.GENTLY) require = GENTLY.hijack(require);
var fs = require('fs');
var util = require('./util'),
path = require('path'),
File = require('./file'),
MultipartParser = require('./multipart_parser').MultipartParser,
QuerystringParser = require('./querystring_parser').QuerystringParser,
String... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/index.js | var IncomingForm = require('./incoming_form').IncomingForm;
IncomingForm.IncomingForm = IncomingForm;
module.exports = IncomingForm;
| javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/querystring_parser.js | if (global.GENTLY) require = GENTLY.hijack(require);
// This is a buffering parser, not quite as nice as the multipart one.
// If I find time I'll rewrite this to be fully streaming as well
var querystring = require('querystring');
function QuerystringParser() {
this.buffer = '';
};
exports.QuerystringParser = Quer... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/file.js | if (global.GENTLY) require = GENTLY.hijack(require);
var util = require('./util'),
WriteStream = require('fs').WriteStream,
EventEmitter = require('events').EventEmitter,
crypto = require('crypto');
function File(properties) {
EventEmitter.call(this);
this.size = 0;
this.path = null;
this.name = ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/lib/util.js | // Backwards compatibility ...
try {
module.exports = require('util');
} catch (e) {
module.exports = require('sys');
}
| javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/formidable/tool/record.js | var http = require('http');
var fs = require('fs');
var connections = 0;
var server = http.createServer(function(req, res) {
var socket = req.socket;
console.log('Request: %s %s -> %s', req.method, req.url, socket.filename);
req.on('end', function() {
if (req.url !== '/') {
res.end(JSON.stringify({
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/bytes/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/bytes/index.js |
/**
* Parse byte `size` string.
*
* @param {String} size
* @return {Number}
* @api public
*/
module.exports = function(size) {
if ('number' == typeof size) return convert(size);
var parts = size.match(/^(\d+(?:\.\d+)?) *(kb|mb|gb)$/)
, n = parseFloat(parts[1])
, type = parts[2];
var map = {
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/index.js |
module.exports = require('./lib/querystring'); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/querystring.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/querystring.js | ;(function(){
/**
* Object#toString() ref for stringify().
*/
var toString = Object.prototype.toString;
/**
* Cache non-integer test regexp.
*/
var isint = /^[0-9]+$/;
function promote(parent, key) {
if (parent[key].length == 0) return parent[key] = {};
var t = {};
for (var i in parent[key]) t[i] = paren... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/benchmark.js |
var qs = require('./');
var times = 100000
, start = new Date
, n = times;
console.log('times: %d', times);
while (n--) qs.parse('foo=bar');
console.log('simple: %dms', new Date - start);
var start = new Date
, n = times;
while (n--) qs.parse('user[name][first]=tj&user[name][last]=holowaychuk');
console.log... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/examples.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/examples.js |
/**
* Module dependencies.
*/
var qs = require('./');
var obj = qs.parse('foo');
console.log(obj)
var obj = qs.parse('foo=bar=baz');
console.log(obj)
var obj = qs.parse('users[]');
console.log(obj)
var obj = qs.parse('name=tj&email=tj@vision-media.ca');
console.log(obj)
var obj = qs.parse('users[]=tj&users[]=t... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/parse.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/parse.js |
if (require.register) {
var qs = require('querystring');
} else {
var qs = require('../')
, expect = require('expect.js');
}
describe('qs.parse()', function(){
it('should support the basics', function(){
expect(qs.parse('0=foo')).to.eql({ '0': 'foo' });
expect(qs.parse('foo=c++'))
.to.eql({ f... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/stringify.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/stringify.js |
if (require.register) {
var qs = require('querystring');
} else {
var qs = require('../')
, expect = require('expect.js');
}
var str_identities = {
'basics': [
{ str: 'foo=bar', obj: {'foo' : 'bar'}},
{ str: 'foo=%22bar%22', obj: {'foo' : '\"bar\"'}},
{ str: 'foo=', obj: {'foo': ''}},
{ str:... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/expect.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/expect.js |
(function (global, module) {
if ('undefined' == typeof module) {
var module = { exports: {} }
, exports = module.exports
}
/**
* Exports.
*/
module.exports = expect;
expect.Assertion = Assertion;
/**
* Exports version.
*/
expect.version = '0.1.2';
/**
* Possible assertion... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | true |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/qs.js |
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(p, parent){
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '" in ' + parent);
if (!mod.exports) {
mod.exports = {}... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/jquery.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/jquery.js | /*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | true |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/mocha.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/test/browser/mocha.js | ;(function(){
// CommonJS require()
function require(p){
var path = require.resolve(p)
, mod = require.modules[path];
if (!mod) throw new Error('failed to require "' + p + '"');
if (!mod.exports) {
mod.exports = {};
mod.call(mod.exports, mod, mod.exports, require.relative(path));
}
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | true |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/tail.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/tail.js | })(); | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/querystring.js |
/**
* Object#toString() ref for stringify().
*/
var toString = Object.prototype.toString;
/**
* Cache non-integer test regexp.
*/
var isint = /^[0-9]+$/;
function promote(parent, key) {
if (parent[key].length == 0) return parent[key] = {};
var t = {};
for (var i in parent[key]) t[i] = parent[key][i];
p... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/head.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/node_modules/qs/lib/head.js | ;(function(){
| javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/index.js |
/**
* Connect is a middleware framework for node,
* shipping with over 18 bundled middleware and a rich selection of
* 3rd-party middleware.
*
* var app = connect()
* .use(connect.logger('dev'))
* .use(connect.static('public'))
* .use(function(req, res){
* res.end('hello world\n'... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/cache.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/cache.js |
/*!
* Connect - Cache
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Expose `Cache`.
*/
module.exports = Cache;
/**
* LRU cache store.
*
* @param {Number} limit
* @api private
*/
function Cache(limit) {
this.store = {};
this.keys = [];
this.limit = limit;
}
/**
* Touch `key`, promoting ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/connect.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/connect.js | /*!
* Connect
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, proto = require('./proto')
, utils = require('./utils')
, path = require('path')
, basename = path.basename
, fs = requi... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/patch.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/patch.js |
/*!
* Connect
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var http = require('http')
, res = http.ServerResponse.prototype
, setHeader = res.setHeader
, _renderHeaders = res._renderHeaders
, writeHead = res.writeHead;
// apply only once
if (!res._hasConnectPatch... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/proto.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/proto.js |
/*!
* Connect - HTTPServer
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var http = require('http')
, utils = require('./utils')
, debug = require('debug')('connect:dispatcher');
// prototype
var app = module.exports = {};
// environm... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/utils.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/utils.js |
/*!
* Connect - utils
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var http = require('http')
, crypto = require('crypto')
, parse = require('url').parse
, signature = require('cookie-signature');
/**
* Return `true` if the request ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/multipart.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/multipart.js | /*!
* Connect - multipart
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var formidable = require('formidable')
, _limit = require('./limit')
, utils = require('../utils')
, qs = require('qs');
/**
* noop middleware.
*/
function noop... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/compress.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/compress.js | /*!
* Connect - compress
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var zlib = require('zlib');
/**
* Supported content-encoding methods.
*/
exports.methods = {
gzip: zlib.createGzip
, deflate: zlib.createDeflate
};
/**
* Defau... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/bodyParser.js |
/*!
* Connect - bodyParser
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var multipart = require('./multipart')
, urlencoded = require('./urlencoded')
, json = require('./json');
/**
* Body parser:
*
* Parse request bodies, suppor... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/responseTime.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/responseTime.js |
/*!
* Connect - responseTime
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Reponse time:
*
* Adds the `X-Response-Time` header displaying the response
* duration in milliseconds.
*
* @return {Function}
* @api public
*/
module.exports = function responseTime(){
return function(req, res, nex... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/staticCache.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/staticCache.js |
/*!
* Connect - staticCache
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, Cache = require('../cache')
, fresh = require('fresh');
/**
* Static cache:
*
* Enables a memory cache layer on top of
* the `static()` middleware, serving popu... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/cookieParser.js |
/*!
* Connect - cookieParser
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('./../utils')
, cookie = require('cookie');
/**
* Cookie parser:
*
* Parse _Cookie_ header and populate `req.cookies`
* with an object keye... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/errorHandler.js | /*!
* Connect - errorHandler
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, fs = require('fs');
// environment
var env = process.env.NODE_ENV || 'development';
/**
* Error handler:
*
* Development erro... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/vhost.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/vhost.js |
/*!
* Connect - vhost
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Vhost:
*
* Setup vhost for the given `hostname` and `server`.
*
* connect()
* .use(connect.vhost('foo.com', fooApp))
* .use(connect.vhost('bar.com', barApp))
* .use(con... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/urlencoded.js |
/*!
* Connect - urlencoded
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, _limit = require('./limit')
, qs = require('qs');
/**
* noop middleware.
*/
function noop(req, res, next) {
next();
}
/**
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/directory.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/directory.js |
/*!
* Connect - directory
* Copyright(c) 2011 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
// TODO: icon / style for directories
// TODO: arrow key navigation
// TODO: make icons extensible
/**
* Module dependencies.
*/
var fs = require('fs')
, parse = require('url').parse
, utils = r... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/csrf.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/csrf.js | /*!
* Connect - csrf
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils');
/**
* Anti CSRF:
*
* CRSF protection middleware.
*
* By default this middleware generates a token named "_csrf"
* which should be added to requests which mutate
* state, ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/query.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/query.js | /*!
* Connect - query
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var qs = require('qs')
, parse = require('../utils').parseUrl;
/**
* Query:
*
* Automatically parse the query-string when available,
* populating the `req.query` objec... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/limit.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/limit.js |
/*!
* Connect - limit
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils');
/**
* Limit:
*
* Limit request bodies to the given size in `bytes`.
*
* A string representation of the bytesize may also be passed,
* for example "5mb", "200kb"... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/logger.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/logger.js | /*!
* Connect - logger
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var bytes = require('bytes');
/*!
* Log buffer.
*/
var buf = [];
/*!
* Default log buffer duration.
*/
var defaultBufferDuration = 1000;
/**
* Logger:
*
* Log re... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/favicon.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/favicon.js | /*!
* Connect - favicon
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var fs = require('fs')
, utils = require('../utils');
/**
* Favicon:
*
* By default serves the connect favicon, or the favicon
* located by the given `path`.
*
* O... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/cookieSession.js |
/*!
* Connect - cookieSession
* Copyright(c) 2011 Sencha Inc.
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('./../utils')
, Cookie = require('./session/cookie')
, debug = require('debug')('connect:cookieSession')
, signature = require('cookie-signature')
, crc32 = require('buffer-... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/timeout.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/timeout.js | /*!
* Connect - timeout
* Ported from https://github.com/LearnBoost/connect-timeout
* MIT Licensed
*/
/**
* Module dependencies.
*/
var debug = require('debug')('connect:timeout');
/**
* Timeout:
*
* Times out the request in `ms`, defaulting to `5000`. The
* method `req.clearTimeout()` is added to revert t... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/basicAuth.js |
/*!
* Connect - basicAuth
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, unauthorized = utils.unauthorized;
/**
* Basic Auth:
*
* Enfore basic authentication by providing a `callback(user, pass)`,
* wh... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/json.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/json.js |
/*!
* Connect - json
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, _limit = require('./limit');
/**
* noop middleware.
*/
function noop(req, res, next) {
next();
}
/**
* JSON:
*
* Parse JSON requ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/static.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/static.js | /*!
* Connect - static
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var send = require('send')
, utils = require('../utils')
, parse = utils.parseUrl
, url = require('url');
/**
* Static:
*
* Static file server with the given `ro... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/methodOverride.js |
/*!
* Connect - methodOverride
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Method Override:
*
* Provides faux HTTP method support.
*
* Pass an optional `key` to use when checking for
* a method override, othewise defaults to _\_method_.
* The original metho... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session.js |
/*!
* Connect - session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Session = require('./session/session')
, debug = require('debug')('connect:session')
, MemoryStore = require('./session/memory')
, signature = require('cookie-si... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/cookie.js |
/*!
* Connect - session - Cookie
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../../utils')
, cookie = require('cookie');
/**
* Initialize a new `Cookie` with the given `options`.
*
* @param {IncomingMessage} req
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/memory.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/memory.js |
/*!
* Connect - session - MemoryStore
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Store = require('./store');
/**
* Initialize a new `MemoryStore`.
*
* @api public
*/
var MemoryStore = module.exports = function MemoryStore() {
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/store.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/store.js |
/*!
* Connect - session - Store
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, Session = require('./session')
, Cookie = require('./cookie');
/**
* Initialize abstract `Store`.
*
* @... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/session.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/node_modules/connect/lib/middleware/session/session.js |
/*!
* Connect - session - Session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../../utils');
/**
* Create a new `Session` with the given request and `data`.
*
* @param {IncomingRequest} req
* @param {Object} data
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/express.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/express.js | /**
* Module dependencies.
*/
var connect = require('connect')
, proto = require('./application')
, Route = require('./router/route')
, Router = require('./router')
, req = require('./request')
, res = require('./response')
, utils = connect.utils;
/**
* Expose `createApplication()`.
*/
exports = mod... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/application.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/application.js | /**
* Module dependencies.
*/
var connect = require('connect')
, Router = require('./router')
, methods = require('methods')
, middleware = require('./middleware')
, debug = require('debug')('express:application')
, locals = require('./utils').locals
, View = require('./view')
, utils = connect.utils
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/middleware.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/middleware.js |
/**
* Module dependencies.
*/
var utils = require('./utils');
/**
* Initialization middleware, exposing the
* request and response to eachother, as well
* as defaulting the X-Powered-By header field.
*
* @param {Function} app
* @return {Function}
* @api private
*/
exports.init = function(app){
return fu... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/view.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/view.js | /**
* Module dependencies.
*/
var path = require('path')
, fs = require('fs')
, utils = require('./utils')
, dirname = path.dirname
, basename = path.basename
, extname = path.extname
, exists = fs.existsSync || path.existsSync
, join = path.join;
/**
* Expose `View`.
*/
module.exports = View;
/**... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/request.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/request.js |
/**
* Module dependencies.
*/
var http = require('http')
, utils = require('./utils')
, connect = require('connect')
, fresh = require('fresh')
, parseRange = require('range-parser')
, parse = connect.utils.parseUrl
, mime = connect.mime;
/**
* Request prototype.
*/
var req = exports = module.export... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/utils.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/utils.js |
/**
* Module dependencies.
*/
var mime = require('connect').mime
, crc32 = require('buffer-crc32');
/**
* Return ETag for `body`.
*
* @param {String|Buffer} body
* @return {String}
* @api private
*/
exports.etag = function(body){
return '"' + crc32.signed(body) + '"';
};
/**
* Make `locals()` bound to... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/response.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/response.js | /**
* Module dependencies.
*/
var http = require('http')
, path = require('path')
, connect = require('connect')
, utils = connect.utils
, sign = require('cookie-signature').sign
, normalizeType = require('./utils').normalizeType
, normalizeTypes = require('./utils').normalizeTypes
, etag = require('./... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/router/route.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/router/route.js |
/**
* Module dependencies.
*/
var utils = require('../utils');
/**
* Expose `Route`.
*/
module.exports = Route;
/**
* Initialize `Route` with the given HTTP `method`, `path`,
* and an array of `callbacks` and `options`.
*
* Options:
*
* - `sensitive` enable case-sensitive routes
* - `strict` ... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/router/index.js | challenge4/start/node_modules/mongoose/examples/connection-sharing/node_modules/express/lib/router/index.js | /**
* Module dependencies.
*/
var Route = require('./route')
, utils = require('../utils')
, methods = require('methods')
, debug = require('debug')('express:router')
, parse = require('connect').utils.parseUrl;
/**
* Expose `Router` constructor.
*/
exports = module.exports = Router;
/**
* Initialize a... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/namedscope.js | challenge4/start/node_modules/mongoose/lib/namedscope.js | var Query = require('./query');
function NamedScope () {}
NamedScope.prototype.query;
NamedScope.prototype.where = function () {
var q = this.query || (this.query = new Query());
q.where.apply(q, arguments);
return q;
};
/**
* Decorate
*
* @param {NamedScope} target
* @param {Object} getters
* @api privat... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/schemadefault.js | challenge4/start/node_modules/mongoose/lib/schemadefault.js |
/*!
* Module dependencies.
*/
var Schema = require('./schema')
/**
* Default model for querying the system.profiles collection.
*
* @property system.profile
* @receiver exports
* @api private
*/
exports['system.profile'] = new Schema({
ts: Date
, info: String // deprecated
, millis: Number
, op: S... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/querystream.js | challenge4/start/node_modules/mongoose/lib/querystream.js |
/*!
* Module dependencies.
*/
var Stream = require('stream').Stream
var utils = require('./utils')
var helpers = require('./queryhelpers')
var K = function(k){ return k }
/**
* Provides a Node.js 0.8 style [ReadStream](http://nodejs.org/docs/v0.8.21/api/stream.html#stream_readable_stream) interface for Queries.
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/index.js | challenge4/start/node_modules/mongoose/lib/index.js |
/*!
* Module dependencies.
*/
var Schema = require('./schema')
, SchemaType = require('./schematype')
, VirtualType = require('./virtualtype')
, SchemaTypes = Schema.Types
, SchemaDefaults = require('./schemadefault')
, Types = require('./types')
, Query = require('./query')
, Promise = require('./pro... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/error.js | challenge4/start/node_modules/mongoose/lib/error.js |
/**
* MongooseError constructor
*
* @param {String} msg Error message
* @inherits Error https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error
*/
function MongooseError (msg) {
Error.call(this);
Error.captureStackTrace(this, arguments.callee);
this.message = msg;
this.name = 'Mongoose... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/document.js | challenge4/start/node_modules/mongoose/lib/document.js | /*!
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, setMaxListeners = EventEmitter.prototype.setMaxListeners
, MongooseError = require('./error')
, MixedSchema = require('./schema/mixed')
, Schema = require('./schema')
, ValidatorError = require('./schematype').ValidatorError
... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | true |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/collection.js | challenge4/start/node_modules/mongoose/lib/collection.js |
/*!
* Module dependencies.
*/
var STATES = require('./connectionstate')
/**
* Abstract Collection constructor
*
* This is the base class that drivers inherit from and implement.
*
* @param {String} name name of the collection
* @param {Connection} conn A MongooseConnection instance
* @param {Object} opts op... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/queryhelpers.js | challenge4/start/node_modules/mongoose/lib/queryhelpers.js |
/*!
* Module dependencies
*/
var utils = require('./utils')
/*!
* Prepare a set of path options for query population.
*
* @param {Query} query
* @param {Object} options
* @return {Array}
*/
exports.preparePopulationOptions = function preparePopulationOptions (query, options) {
var pop = utils.object.vals(... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/schema.js | challenge4/start/node_modules/mongoose/lib/schema.js | /*!
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter
, VirtualType = require('./virtualtype')
, utils = require('./utils')
, NamedScope
, Query
, Types
/**
* Schema constructor.
*
* ####Example:
*
* var child = new Schema({ name: String });
* var schema = new Schem... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/promise.js | challenge4/start/node_modules/mongoose/lib/promise.js |
/*!
* Module dependencies
*/
var MPromise = require('mpromise');
/**
* Promise constructor.
*
* Promises are returned from executed queries. Example:
*
* var query = Candy.find({ bar: true });
* var promise = query.exec();
*
* @param {Function} fn a function which will be called when the promise is... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | false |
kwhinnery/node-workshop | https://github.com/kwhinnery/node-workshop/blob/594bfc6bebf38d34a36b797e48f6f6d4600da5e4/challenge4/start/node_modules/mongoose/lib/query.js | challenge4/start/node_modules/mongoose/lib/query.js | /*!
* Module dependencies.
*/
var utils = require('./utils')
, merge = utils.merge
, Promise = require('./promise')
, Document = require('./document')
, Types = require('./schema/index')
, inGroupsOf = utils.inGroupsOf
, tick = utils.tick
, QueryStream = require('./querystream')
, helpers = require('... | javascript | MIT | 594bfc6bebf38d34a36b797e48f6f6d4600da5e4 | 2026-01-05T03:35:40.007163Z | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.