░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/lib/yuilib/3.18.1/yql-nodejs
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: yql-nodejs.js
YUI.add('yql-nodejs', function (Y, NAME) { /** * NodeJS plugin for YQL to use native request to make requests instead of JSONP. * Not required by the user, it's conditionally loaded and should "just work". * @module yql * @submodule yql-nodejs */ var request = require('request'); //Over writes Y.YQLRequest._send to use request instead of JSONP Y.YQLRequest.prototype._send = function (url, o) { request(url, { method: 'GET', timeout: o.timeout || (30 * 1000) }, function(err, res) { if (err) { //The signature that YQL requires o.on.success({ error: err }); } else { o.on.success(JSON.parse(res.body)); } }); }; }, '3.18.1', {"requires": ["yql"]});
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 yql-nodejs-debug.js
JS
772 B
2026-02-11 01:44
EDIT
📄 yql-nodejs-min.js
JS
252 B
2026-02-11 01:44
EDIT
📄 yql-nodejs.js
JS
772 B
2026-02-11 01:44
EDIT