Browse Source

converted some tabs to spaces

merge-requests/3/head
tigerbot 7 years ago
parent
commit
86b304a209
  1. 36
      lib/apis.js
  2. 406
      lib/com.daplie.walnut/index.js
  3. 2
      lib/worker.js

36
lib/apis.js

@ -528,24 +528,24 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) {
function daplieTel() {
return twilioTel().then(function (twilio) {
function sms(opts) {
// opts = { to, from, body }
return new apiDeps.Promise(function (resolve, reject) {
twilio.sendSms(opts, function (err, resp) {
if (err) {
reject(err);
return;
}
resolve(resp);
});
});
}
return {
sms: sms
, mms: function () { throw new Error('MMS Not Implemented'); }
};
function sms(opts) {
// opts = { to, from, body }
return new apiDeps.Promise(function (resolve, reject) {
twilio.sendSms(opts, function (err, resp) {
if (err) {
reject(err);
return;
}
resolve(resp);
});
});
}
return {
sms: sms
, mms: function () { throw new Error('MMS Not Implemented'); }
};
});
}

406
lib/com.daplie.walnut/index.js

File diff suppressed because one or more lines are too long

2
lib/worker.js

@ -164,7 +164,7 @@ module.exports.create = function (webserver, xconfx, state) {
// Printing all incoming requests for debugging
console.log('[worker/log]', req.method, hostname, req.url);
// logging all the invalid hostnames that come here out of curiousity
// logging all the invalid hostnames that come here out of curiousity
if (hostname && !hostsmap[hostname]) {
hostsmap[hostname] = true;
require('fs').writeFile(

Loading…
Cancel
Save