{"push_id":1962998875,"size":1,"distinct_size":1,"ref":"refs/heads/janus-js-dependencies","head":"804336aacfbf6faf781847f3e21155a9bb618b02","before":"2442f6edb969c723afa2515f2bdc927fd2257710","commits":[{"sha":"804336aacfbf6faf781847f3e21155a9bb618b02","author":{"name":"Johan Ouwerkerk","email":"893b6cc8733ab1442a97dd24e2ad340ba3d4e9f3@gmail.com"},"message":"Decouple `janus.js` from its dependencies.\n\nWith this change client code may choose to override dependencies by providing a suitable shim/facade to map APIs:\n\n - isArray: check whether or not something is a JS array. You probably should use Array.isArray() here.\n - checkJanusExtension: check whether or not the Janus screen sharing extension for Chrome is installed.\n   This is equivalent to checking whether or not an element with id=janus-extension-installed attribute exists.\n - webRTCAdapter: something equivalent to the adapter object from the webrtc-adapter library.\n - httpAPICall: a shim which performs a HTTP(S) API call to Janus.\n\nTwo implementations are provided for dependencies:\n  - Janus.useOldDependencies() basically restores the previous behaviour by wrapping jQuery\n  - Janus.useDefaultDependencies() provides a more minimalist alternative for modern browsers (it does not require jQuery).\n\nDependencies may be passed in by providing an optional additional argument to `Janus.init()` or including an optional `dependencies` property with the options object.\n\nThe code change is mostly straightforward except for httpAPICall which requires some further explanation:\n\n== httpAPICall ==\n\nThis function accepts two parameters:\n\n - url: the HTTP URL to hit\n - options: a key/value property list containing:\n    * verb: the HTTP method/verb/type of request, e.g. 'GET' or 'POST'\n    * withCredentials: boolean, whether or not to include credentials/cookies etc. with the outgoing request\n    * body: optional, object to be serialised to JSON and include as request body\n    * success: a callback to invoke on successful completion of the request, taking a deserialised (parsed) response body (payload) parameter\n    * error: a callback to invoke on error, taking a status text + error object/string as parameters\n    * timeout: optional, a timeout in msec to impose on the outgoing request\n\nThe function must disable caching of the request, deal with content-type (assume application/json), and must take care to properly serialise/deserialising request/response body payloads as needed.","distinct":true,"url":"https://api.github.com/repos/cmacq2/janus-gateway/commits/804336aacfbf6faf781847f3e21155a9bb618b02"}]}
{"actor":{"display_login":"cmacq2"}}