converted some tabs to spaces

This commit is contained in:
tigerbot 2017-07-10 12:04:45 -06:00
parent 2b4abdb142
commit 86b304a209
3 changed files with 215 additions and 215 deletions

View File

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

View File

@ -1,69 +1,69 @@
/******/ (function(modules) { // webpackBootstrap /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache /******/ // The module cache
/******/ var installedModules = {}; /******/ var installedModules = {};
/******/ /******/
/******/ // The require function /******/ // The require function
/******/ function __webpack_require__(moduleId) { /******/ function __webpack_require__(moduleId) {
/******/ /******/
/******/ // Check if module is in cache /******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) { /******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports; /******/ return installedModules[moduleId].exports;
/******/ } /******/ }
/******/ // Create a new module (and put it into the cache) /******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = { /******/ var module = installedModules[moduleId] = {
/******/ i: moduleId, /******/ i: moduleId,
/******/ l: false, /******/ l: false,
/******/ exports: {} /******/ exports: {}
/******/ }; /******/ };
/******/ /******/
/******/ // Execute the module function /******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ /******/
/******/ // Flag the module as loaded /******/ // Flag the module as loaded
/******/ module.l = true; /******/ module.l = true;
/******/ /******/
/******/ // Return the exports of the module /******/ // Return the exports of the module
/******/ return module.exports; /******/ return module.exports;
/******/ } /******/ }
/******/ /******/
/******/ /******/
/******/ // expose the modules object (__webpack_modules__) /******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules; /******/ __webpack_require__.m = modules;
/******/ /******/
/******/ // expose the module cache /******/ // expose the module cache
/******/ __webpack_require__.c = installedModules; /******/ __webpack_require__.c = installedModules;
/******/ /******/
/******/ // identity function for calling harmony imports with the correct context /******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; }; /******/ __webpack_require__.i = function(value) { return value; };
/******/ /******/
/******/ // define getter function for harmony exports /******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) { /******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) { /******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, { /******/ Object.defineProperty(exports, name, {
/******/ configurable: false, /******/ configurable: false,
/******/ enumerable: true, /******/ enumerable: true,
/******/ get: getter /******/ get: getter
/******/ }); /******/ });
/******/ } /******/ }
/******/ }; /******/ };
/******/ /******/
/******/ // getDefaultExport function for compatibility with non-harmony modules /******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) { /******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ? /******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } : /******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; }; /******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter); /******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter; /******/ return getter;
/******/ }; /******/ };
/******/ /******/
/******/ // Object.prototype.hasOwnProperty.call /******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ /******/
/******/ // __webpack_public_path__ /******/ // __webpack_public_path__
/******/ __webpack_require__.p = ""; /******/ __webpack_require__.p = "";
/******/ /******/
/******/ // Load entry module and return exports /******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 276); /******/ return __webpack_require__(__webpack_require__.s = 276);
/******/ }) /******/ })
/************************************************************************/ /************************************************************************/
/******/ ([ /******/ ([
@ -466,81 +466,81 @@ var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable; var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) { function toObject(val) {
if (val === null || val === undefined) { if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or undefined'); throw new TypeError('Object.assign cannot be called with null or undefined');
} }
return Object(val); return Object(val);
} }
function shouldUseNative() { function shouldUseNative() {
try { try {
if (!Object.assign) { if (!Object.assign) {
return false; return false;
} }
// Detect buggy property enumeration order in older V8 versions. // Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
test1[5] = 'de'; test1[5] = 'de';
if (Object.getOwnPropertyNames(test1)[0] === '5') { if (Object.getOwnPropertyNames(test1)[0] === '5') {
return false; return false;
} }
// https://bugs.chromium.org/p/v8/issues/detail?id=3056 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test2 = {}; var test2 = {};
for (var i = 0; i < 10; i++) { for (var i = 0; i < 10; i++) {
test2['_' + String.fromCharCode(i)] = i; test2['_' + String.fromCharCode(i)] = i;
} }
var order2 = Object.getOwnPropertyNames(test2).map(function (n) { var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
return test2[n]; return test2[n];
}); });
if (order2.join('') !== '0123456789') { if (order2.join('') !== '0123456789') {
return false; return false;
} }
// https://bugs.chromium.org/p/v8/issues/detail?id=3056 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test3 = {}; var test3 = {};
'abcdefghijklmnopqrst'.split('').forEach(function (letter) { 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
test3[letter] = letter; test3[letter] = letter;
}); });
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') { if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
return false; return false;
} }
return true; return true;
} catch (err) { } catch (err) {
// We don't expect any of the above to throw, but better to be safe. // We don't expect any of the above to throw, but better to be safe.
return false; return false;
} }
} }
module.exports = shouldUseNative() ? Object.assign : function (target, source) { module.exports = shouldUseNative() ? Object.assign : function (target, source) {
var from; var from;
var to = toObject(target); var to = toObject(target);
var symbols; var symbols;
for (var s = 1; s < arguments.length; s++) { for (var s = 1; s < arguments.length; s++) {
from = Object(arguments[s]); from = Object(arguments[s]);
for (var key in from) { for (var key in from) {
if (hasOwnProperty.call(from, key)) { if (hasOwnProperty.call(from, key)) {
to[key] = from[key]; to[key] = from[key];
} }
} }
if (getOwnPropertySymbols) { if (getOwnPropertySymbols) {
symbols = getOwnPropertySymbols(from); symbols = getOwnPropertySymbols(from);
for (var i = 0; i < symbols.length; i++) { for (var i = 0; i < symbols.length; i++) {
if (propIsEnumerable.call(from, symbols[i])) { if (propIsEnumerable.call(from, symbols[i])) {
to[symbols[i]] = from[symbols[i]]; to[symbols[i]] = from[symbols[i]];
} }
} }
} }
} }
return to; return to;
}; };
/***/ }), /***/ }),
@ -12510,15 +12510,15 @@ var g;
// This works in non-strict mode // This works in non-strict mode
g = function () { g = function () {
return this; return this;
}(); }();
try { try {
// This works if eval is allowed (see CSP) // This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1, eval)("this"); g = g || Function("return this")() || (1, eval)("this");
} catch (e) { } catch (e) {
// This works if the window reference is available // This works if the window reference is available
if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window; if ((typeof window === "undefined" ? "undefined" : _typeof(window)) === "object") g = window;
} }
// g can still be undefined, but nothing to do about it... // g can still be undefined, but nothing to do about it...
@ -28910,25 +28910,25 @@ exports['default'] = result;
Object.defineProperty(exports, "__esModule", { Object.defineProperty(exports, "__esModule", {
value: true value: true
}); });
exports['default'] = symbolObservablePonyfill; exports['default'] = symbolObservablePonyfill;
function symbolObservablePonyfill(root) { function symbolObservablePonyfill(root) {
var result; var result;
var _Symbol = root.Symbol; var _Symbol = root.Symbol;
if (typeof _Symbol === 'function') { if (typeof _Symbol === 'function') {
if (_Symbol.observable) { if (_Symbol.observable) {
result = _Symbol.observable; result = _Symbol.observable;
} else { } else {
result = _Symbol('observable'); result = _Symbol('observable');
_Symbol.observable = result; _Symbol.observable = result;
} }
} else { } else {
result = '@@observable'; result = '@@observable';
} }
return result; return result;
}; };
/***/ }), /***/ }),
@ -28991,26 +28991,26 @@ exports.default = valueEqual;
module.exports = function (module) { module.exports = function (module) {
if (!module.webpackPolyfill) { if (!module.webpackPolyfill) {
module.deprecate = function () {}; module.deprecate = function () {};
module.paths = []; module.paths = [];
// module.parent = undefined by default // module.parent = undefined by default
if (!module.children) module.children = []; if (!module.children) module.children = [];
Object.defineProperty(module, "loaded", { Object.defineProperty(module, "loaded", {
enumerable: true, enumerable: true,
get: function get() { get: function get() {
return module.l; return module.l;
} }
}); });
Object.defineProperty(module, "id", { Object.defineProperty(module, "id", {
enumerable: true, enumerable: true,
get: function get() { get: function get() {
return module.i; return module.i;
} }
}); });
module.webpackPolyfill = 1; module.webpackPolyfill = 1;
} }
return module; return module;
}; };
/***/ }), /***/ }),

View File

@ -164,7 +164,7 @@ module.exports.create = function (webserver, xconfx, state) {
// Printing all incoming requests for debugging // Printing all incoming requests for debugging
console.log('[worker/log]', req.method, hostname, req.url); 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]) { if (hostname && !hostsmap[hostname]) {
hostsmap[hostname] = true; hostsmap[hostname] = true;
require('fs').writeFile( require('fs').writeFile(