Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

advanced-http.js 1.2KB

12345678910111213141516171819202122232425
  1. /*
  2. * A native HTTP Plugin for Cordova / PhoneGap.
  3. */
  4. var pluginId = module.id.slice(0, module.id.lastIndexOf('.'));
  5. var exec = require('cordova/exec');
  6. var base64 = require('cordova/base64');
  7. var messages = require(pluginId + '.messages');
  8. var errorCodes = require(pluginId + '.error-codes');
  9. var globalConfigs = require(pluginId + '.global-configs');
  10. var jsUtil = require(pluginId + '.js-util');
  11. var ToughCookie = require(pluginId + '.tough-cookie');
  12. var lodash = require(pluginId + '.lodash');
  13. var WebStorageCookieStore = require(pluginId + '.local-storage-store')(ToughCookie, lodash);
  14. var cookieHandler = require(pluginId + '.cookie-handler')(window.localStorage, ToughCookie, WebStorageCookieStore);
  15. var dependencyValidator = require(pluginId + '.dependency-validator')(window, window.console, messages);
  16. var ponyfills = require(pluginId + '.ponyfills')(window);
  17. var helpers = require(pluginId + '.helpers')(window, jsUtil, cookieHandler, messages, base64, errorCodes, dependencyValidator, ponyfills);
  18. var urlUtil = require(pluginId + '.url-util')(jsUtil);
  19. var publicInterface = require(pluginId + '.public-interface')(exec, cookieHandler, urlUtil, helpers, globalConfigs, errorCodes, ponyfills);
  20. dependencyValidator.logWarnings();
  21. module.exports = publicInterface;