EventEmitter
without a base class or string event names. Supports adding, removing, and one-shot listeners.
var listeners = require('listeners')
var onEvent = listeners()
--- macosx/graphviz.xcodeproj/project.pbxproj.orig 2012-08-13 15:14:54.000000000 -0500 | |
+++ macosx/graphviz.xcodeproj/project.pbxproj 2012-08-14 13:59:30.000000000 -0500 | |
@@ -380,12 +380,10 @@ | |
INFOPLIST_FILE = Info.plist; | |
INSTALL_PATH = "$(HOME)/Applications"; | |
LIBRARY_SEARCH_PATHS = ( | |
- ../lib/cdt/.libs, | |
- ../lib/cgraph/.libs, | |
- ../lib/gvc/.libs, | |
+ "$(PREFIX)/lib", |
'use strict'; | |
var buster = require('buster'); | |
var testApi = require('./test-http'); | |
function exampleApp () { | |
return function (req, res) { | |
res.setHeader('content-type', 'text/plain'); | |
res.setHeader('content-length', req.url.length); | |
res.end(req.url); |
var inherits = require('inherits'); | |
inherits(CustomError, Error); | |
function CustomError () { | |
this.constructor.super_.apply(this, arguments); | |
this.name = this.constructor.name; | |
if (Error.captureStackTrace) { | |
Error.captureStackTrace(this, this.constructor); | |
} | |
} |
/** | |
* Create a proxy object with the given prototype that caches all method calls to be applied to a target later. | |
* | |
* Example of proxying an asynchronously obtained Result object | |
* | |
* function Client (transport) { | |
* this._transport = transport; | |
* } | |
* | |
* Client.prototype.query = function (query) { |
var timeouts = []; | |
var intervals = []; | |
var sockets = []; | |
var setTimeout_ = setTimeout; | |
var clearTimeout_ = clearTimeout; | |
var setInterval_ = setInterval; | |
var clearInterval_ = clearInterval; | |
var Socket = require('net').Socket; | |
var emit = Socket.prototype.emit; |
'use strict'; | |
var xtend = require('xtend'); | |
var op = require('object-path'); | |
var isMeta = /^meta\./; | |
module.exports = function formatErrors (errors, options) { | |
options = options || {}; | |
var byPath = options.paths || {}; | |
var byType = options.types || {}; |
var hyperquest = require('hyperquest'); | |
module.exports = checkForUntranslatedFields; | |
module.exports.schema = { | |
access_token: 'string', | |
translation_url: 'string', | |
space_id: 'string', | |
entry_id: 'string' | |
}; |
var http = require('http'); | |
module['exports'] = function recieveHttp (hook) { | |
var hook2 = hook.open('http://hook.io/Marak/echo?foo=bar'); | |
var hook3 = hook.open('http://hook.io/Marak/echo'); | |
var hooks = 2; | |
function complete() { |
var Bluebird = require('bluebird'); | |
var createContentfulClient = require('contentful-management').createClient; | |
var createGengoClient = require('gengo'); | |
var collectStream = Bluebird.promisify(require('collect-stream')); | |
var keys = Object.keys; | |
module.exports = checkForUntranslatedFields; | |
module.exports.schema = { | |
cmaAccessToken: { |