Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/jimhigson/oboe.js
/ functions
Functions
243 in github.com/jimhigson/oboe.js
⨍
Functions
243
◇
Types & classes
0
↓ 117 callers
Function
matched
(obj)
test/libs/oboeAsserter.js:320
↓ 114 callers
Function
givenAnOboeInstance
(jsonFileName)
test/libs/oboeAsserter.js:11
↓ 60 callers
Function
oboe
(arg1)
src/publicApi.js:8
↓ 55 callers
Function
bus
(eventName)
test/libs/spiedPubSub.js:62
↓ 33 callers
Function
foundNMatches
(n)
test/libs/oboeAsserter.js:227
↓ 32 callers
Function
singleEventPubSub
* A pub/sub which is responsible for a single event type. A * multi-event type event bus is created by pubSub by collecting * several of these. *
src/singleEventPubSub.js:17
↓ 28 callers
Function
getOwn
(obj, prop)
test/require/require.js:83
↓ 27 callers
Function
cons
* Like cons in Lisp
src/lists.js:6
↓ 24 callers
Function
emitError
(errorString)
src/libs/clarinet.js:101
↓ 23 callers
Function
streamingHttp
* A wrapper around the browser XmlHttpRequest object that raises an * event whenever a new part of the response is available. * * In older browsers
src/streamingHttp.browser.js:31
↓ 22 callers
Function
hasRootJson
(expected)
test/libs/oboeAsserter.js:243
↓ 19 callers
Function
fakePubSub
(eventNames)
test/libs/spiedPubSub.js:28
↓ 19 callers
Function
httpTransport
()
src/streamingHttp.browser.js:7
↓ 19 callers
Function
pubSub
* pubSub is a curried interface for listening to and emitting * events. * * If we get a bus: * * var bus = pubSub(); * * We can listen to ev
src/pubSub.js:38
↓ 18 callers
Function
waitUntil
(event)
test/specs/streamingHttp.integration.spec.js:493
↓ 17 callers
Function
matchOf
(pattern)
test/specs/jsonPath.unit.spec.js:483
↓ 14 callers
Function
namedNode
* Get a new key->node mapping * * @param {String|Number} key * @param {Object|Array|String|Number|null} node a value found in the json
src/ascent.js:9
↓ 14 callers
Function
varArgs
* Define variable argument functions but cut out all that tedious messing about * with the arguments object. Delivers the variable-length part of the
src/functional.js:152
↓ 13 callers
Function
hasProp
(obj, prop)
test/require/require.js:79
↓ 12 callers
Function
attr
* Generic form for a function to get a property from an object * * var o = { * foo:'bar' * } * * var getFoo = attr('foo') * * fetFoo
src/functional.js:80
↓ 12 callers
Function
bind
(obj, fn)
test/require/require.js:127
↓ 11 callers
Function
anAscentContaining
(/* descriptors */)
test/specs/incrementalContentBuilder.unit.spec.js:324
↓ 11 callers
Function
applyDefaults
(passthrough, url, httpMethodName, body, headers, withCredentials, cached)
src/defaults.js:3
↓ 11 callers
Function
makeModuleMap
* Creates a module mapping that includes plugin prefix, module * name, and path. If parentModuleMap is provided it will * also norma
test/require/require.js:413
↓ 10 callers
Function
errorReport
(statusCode, body, error)
src/events.js:34
↓ 10 callers
Function
streamedContentPassedTo
(eventBus)
test/specs/streamingHttp.integration.spec.js:503
↓ 9 callers
Function
anAscent
()
test/specs/instanceApi.unit.spec.js:23
↓ 9 callers
Function
asAscent
(pathStack, nodeStack)
test/specs/jsonPath.unit.spec.js:503
↓ 9 callers
Function
ascentFrom
pass me an object with only one child at each level and will return a nodeStack * and pathStack which describes the only possibly descent top-to-bot
test/libs/ascentFrom.js:9
↓ 9 callers
Function
each
* Helper function for iterating over an array. If the func returns * a true value, it will break out of the loop.
test/require/require.js:53
↓ 9 callers
Function
fn
()
test/require/require.js:1343
↓ 9 callers
Function
listAsArray
* Convert a list back to a js native array
src/lists.js:74
↓ 9 callers
Function
onError
(err, errback)
test/require/require.js:515
↓ 9 callers
Function
toObject
(o)
test/libs/es5-shim.js:1313
↓ 8 callers
Function
aContentBuilder
()
test/specs/incrementalContentBuilder.unit.spec.js:240
↓ 8 callers
Function
compose2
* A more optimised version of compose that takes exactly two functions * @param f1 * @param f2
src/functional.js:61
↓ 8 callers
Function
makeError
* Constructs an error with a pointer to an URL with more information. * @param {String} id the error ID that maps to an ID on a web page. *
test/require/require.js:162
↓ 7 callers
Function
eachProp
* Cycles over properties in an object and calls a function for each * property value. If the function returns a truthy value, then the * ite
test/require/require.js:92
↓ 7 callers
Function
parseResponseHeaders
* XmlHttpRequest's getAllResponseHeaders() method returns a string of response * headers according to the format described here: * http://www.w3.org
src/parseResponseHeaders.browser.js:9
↓ 7 callers
Function
without
* Return a list like the one given but with the first instance equal * to item removed
src/lists.js:116
↓ 6 callers
Function
apply
* Call a single function with the given arguments array. * Basically, a functional-style version of the OO-style Function#apply for * when we don't ca
src/functional.js:126
↓ 6 callers
Function
foldR
* foldR implementation. Reduce a list down to a single value. * * @pram {Function} fn (rightEval, curVal) -> result
src/lists.js:95
↓ 6 callers
Function
isArray
(it)
test/require/require.js:45
↓ 6 callers
Function
isFunction
(it)
test/require/require.js:41
↓ 6 callers
Function
multiply
(n, c)
test/libs/es5-shim.js:957
↓ 6 callers
Function
normalize
* Given a relative module name, like ./something, normalize it to * a real name that can be mapped to a path. * @param {String} name
test/require/require.js:263
↓ 5 callers
Function
all
* Returns true if the given function holds for every item in * the list, false otherwise
src/lists.js:133
↓ 5 callers
Function
argumentClone
sinon stub is only really used to record arguments given. * However, we want to preserve the arguments given at the time of calling, because the
test/libs/oboeAsserter.js:164
↓ 5 callers
Function
clauseMatcher
* Partially completes generateClauseReaderIfTokenFound above.
src/jsonPath.js:252
↓ 5 callers
Function
compiling
(pattern)
test/specs/jsonPath.unit.spec.js:477
↓ 5 callers
Function
equalTo
(val)
test/specs/lists.unit.spec.js:58
↓ 5 callers
Function
getModule
(depMap)
test/require/require.js:485
↓ 5 callers
Function
reportArgumentsToCallback
* Make a string version of the callback arguments given from oboe * @param {[[*]]} callbackArgs
test/libs/oboeAsserter.js:306
↓ 5 callers
Function
runFunction
()
test/specs/streamingHttp.integration.spec.js:197
↓ 5 callers
Function
waitsForAndRuns
(escapeFunction, runFunction, escapeTime)
test/specs/oboe.integration.spec.js:595
↓ 5 callers
Function
whitespace
(c)
src/libs/clarinet.js:148
↓ 4 callers
Function
anAscentMatching
(pattern)
test/specs/instanceApi.component.spec.js:37
↓ 4 callers
Function
isEven
(n)
test/specs/oboe.component.spec.js:1396
↓ 4 callers
Function
lazyIntersection
* Create a function which is the intersection of two other functions. * * Like the && operator, if the first is truthy, the second is never called, *
src/functional.js:206
↓ 4 callers
Function
now
()
test/specs/oboe.performance.spec.js:2
↓ 4 callers
Function
on
(depMap, name, fn)
test/require/require.js:496
↓ 4 callers
Function
parseUrlOrigin
(url)
src/detectCrossOrigin.browser.js:38
↓ 4 callers
Function
pow
(x, n, acc)
test/libs/es5-shim.js:991
↓ 3 callers
Function
applyEach
* Call every function in a list of functions with the same arguments * * This doesn't make any sense if we're doing pure functional because * it do
src/lists.js:145
↓ 3 callers
Function
arrayAsList
* Converts an array to a list * * asList([a,b,c]) * * is equivalent to: * * cons(a, cons(b, cons(c, emptyList)))
src/lists.js:50
↓ 3 callers
Function
callGetModule
(args)
test/require/require.js:1165
↓ 3 callers
Function
cleanRegistry
(id)
test/require/require.js:596
↓ 3 callers
Function
dayFromMonth
(year, month)
test/libs/es5-shim.js:845
↓ 3 callers
Function
divide
(n)
test/libs/es5-shim.js:966
↓ 3 callers
Function
hasPathFallback
(id)
test/require/require.js:373
↓ 3 callers
Function
instanceApi
* The instance API is the thing that is returned when oboe() is called. * it allows: * * - listeners for various events to be added and removed
src/instanceApi.js:13
↓ 3 callers
Function
isPrimitive
(input)
test/libs/es5-shim.js:1278
↓ 3 callers
Function
jsonPathCompiler
(pattern)
test/specs/instanceApi.component.spec.js:18
↓ 3 callers
Function
map
* Map a function over a list
src/lists.js:84
↓ 3 callers
Function
mixin
* Simple function to mix in properties from source into target, * but only if target does not already have a property of the same name.
test/require/require.js:107
↓ 3 callers
Function
newSingle
(eventName)
src/pubSub.js:43
↓ 3 callers
Function
patternAdapter
* The pattern adaptor listens for newListener and removeListener * events. When patterns are added or removed it compiles the JSONPath * and wire
src/patternAdapter.js:14
↓ 3 callers
Function
reverseList
* Reverse the order of a list
src/lists.js:156
↓ 3 callers
Function
scripts
()
test/require/require.js:133
↓ 3 callers
Function
spiedPubSub
()
test/libs/spiedPubSub.js:4
↓ 3 callers
Function
takeGlobalQueue
* Internal method to transfer globalQueue items to this context's * defQueue.
test/require/require.js:544
↓ 2 callers
Function
addForgettableCallback
* Add a callback where, if .forget() is called during the callback's * execution, the callback will be de-registered
src/instanceApi.js:88
↓ 2 callers
Function
addSingleNodeOrPathListener
(eventId, pattern, callback)
src/instanceApi.js:154
↓ 2 callers
Function
anAscentMatching
(pattern, json)
test/specs/patternAdaptor.unit.spec.js:179
↓ 2 callers
Function
appendBuiltContent
* Add a new value to the object we are building up to represent the * parsed JSON
src/incrementalContentBuilder.js:89
↓ 2 callers
Function
ascentManager
* A bridge used to assign stateless functions to listen to clarinet. * * As well as the parameter from clarinet, each callback will also be passed
src/ascentManager.js:14
↓ 2 callers
Function
checkLoaded
()
test/require/require.js:630
↓ 2 callers
Function
clarinet
(eventBus)
src/libs/clarinet.js:24
↓ 2 callers
Function
clearMe
()
test/specs/oboe.integration.spec.js:612
↓ 2 callers
Function
clearMe
()
test/specs/streamingHttp.integration.spec.js:487
↓ 2 callers
Function
defined
* I don't like saying this: * * foo !=== undefined * * because of the double-negative. I find this: * * defined(foo) * * easier to read.
src/util.js:30
↓ 2 callers
Function
doesDefinePropertyWork
(object)
test/libs/es5-sham.js:243
↓ 2 callers
Function
doesGetOwnPropertyDescriptorWork
(object)
test/libs/es5-sham.js:54
↓ 2 callers
Function
eachReverse
* Helper function for iterating over an array backwards. If the func * returns a true value, it will break out of the loop.
test/require/require.js:68
↓ 2 callers
Function
foldR1
* foldR implementation. Reduce a list down to a single value. * * @pram {Function} fn (rightEval, curVal) -> result
src/lists.js:106
↓ 2 callers
Function
functor
* Create a function which always returns the same * value * * var return3 = functor(3); * * return3() // gives 3 * return3() // still gives 3 * return
src/functional.js:232
↓ 2 callers
Function
gaveFinalCallbackWithRootJson
(expected)
test/libs/oboeAsserter.js:254
↓ 2 callers
Function
getGlobal
(value)
test/require/require.js:143
↓ 2 callers
Function
getScriptData
* Given an event from a script node, get the requirejs info from it, * and then removes the event listeners on the node. * @param {E
test/require/require.js:1193
↓ 2 callers
Function
hasId
(id)
src/singleEventPubSub.js:26
next →
1–100 of 243, ranked by callers