From aef4307839ea9aabd8954a2767fc3a2d156551be Mon Sep 17 00:00:00 2001 From: Austin Kelleher Date: Mon, 5 Nov 2018 14:04:32 -0500 Subject: [PATCH] New browser build --- dist/giphy-api.bundle.js | 7 ++++++- dist/giphy-api.bundle.min.js | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dist/giphy-api.bundle.js b/dist/giphy-api.bundle.js index 52a5386..b2e8fae 100644 --- a/dist/giphy-api.bundle.js +++ b/dist/giphy-api.bundle.js @@ -235,7 +235,8 @@ GiphyAPI.prototype = { path: API_BASE_PATH + options.api + endpoint + query }, timeout: this.timeout, - fmt: options.query && options.query.fmt + fmt: options.query && options.query.fmt, + https: this.https }; var makeRequest = function (resolve, reject) { @@ -268,6 +269,10 @@ module.exports = function (apiKey, options) { },{"./util/http":2,"./util/queryStringify":3}],2:[function(require,module,exports){ /* globals XMLHttpRequest */ +exports.create = function () { + return this; +}; + /** * Browser based GET request * @param options {Object} diff --git a/dist/giphy-api.bundle.min.js b/dist/giphy-api.bundle.min.js index c81281f..5246906 100644 --- a/dist/giphy-api.bundle.min.js +++ b/dist/giphy-api.bundle.min.js @@ -1 +1 @@ -!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).GiphyAPI=f()}}(function(){return function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){return o(e[i][1][r]||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i