Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

http-request-promise

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-request-promise - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

dist/index.bundle.min.js

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-polyfill"),require("jquery")):"function"==typeof define&&define.amd?define(["babel-polyfill","jquery"],t):"object"==typeof exports?exports.HttpRequestPromise=t(require("babel-polyfill"),require("jquery")):e.HttpRequestPromise=t(e["babel-polyfill"],e.jquery)}(this,function(e,t){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function o(e){return e+="",encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function n(e,t,r){var n,u,i=[];r||(r="&");for(u in e){n=e[u],t&&!isNaN(u)&&(u=String(t)+u);var f=function e(t,r,n){var u,i=[];if(!0===r?r="1":!1===r&&(r="0"),null!==r){if("object"===(void 0===r?"undefined":a(r))){for(u in r)null!==r[u]&&i.push(e(t+"["+u+"]",r[u],n));return i.join(n)}if("function"!=typeof r)return o(t)+"="+o(r);throw new Error("There was an error processing for http_build_query().")}return""}(u,n,r);""!==f&&i.push(f)}return i.join(r)}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(2);var i=r(3),f=function(e){return e&&e.__esModule?e:{default:e}}(i),s=function(e,t){return new Promise(function(r,o){var i=e,s=u({},t);s&&"object"==a(s.params)&&(i=e+"&"+n(s.params,null,"&"),delete s.params),f.default.ajax(i,s).fail(function(e,t,r){try{var n=f.default.trim(e.responseText);!n&&e.statusText&&(n=f.default.trim("Network Error: "+e.statusText)),n||(n="Network Error");var u=new Error(n);u.statusCode=e.status,u.statusText=e.statusText,u.responseText=e.responseText,o(u)}catch(u){o(u)}}).done(function(e,t,n){try{r(e)}catch(e){o(e)}})})};s.post=function(e,t,r){var o={method:"POST",processData:!1,dataType:"text"};return void 0!==t&&(o.data=JSON.stringify(t)),void 0!==r&&(o.params=r),s(e,o)},s.get=function(e,t){var r={method:"GET",dataType:"text"};return void 0!==t&&(r.data=t),s(e,r)},e.exports=s},function(t,r){t.exports=e},function(e,r){e.exports=t}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("babel-polyfill"),require("jQuery")):"function"==typeof define&&define.amd?define(["babel-polyfill","jQuery"],t):"object"==typeof exports?exports.HttpRequestPromise=t(require("babel-polyfill"),require("jQuery")):e.HttpRequestPromise=t(e["babel-polyfill"],e.jQuery)}(this,function(e,t){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function o(e){return e+="",encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}function n(e,t,r){var n,u,i=[];r||(r="&");for(u in e){n=e[u],t&&!isNaN(u)&&(u=String(t)+u);var f=function e(t,r,n){var u,i=[];if(!0===r?r="1":!1===r&&(r="0"),null!==r){if("object"===(void 0===r?"undefined":a(r))){for(u in r)null!==r[u]&&i.push(e(t+"["+u+"]",r[u],n));return i.join(n)}if("function"!=typeof r)return o(t)+"="+o(r);throw new Error("There was an error processing for http_build_query().")}return""}(u,n,r);""!==f&&i.push(f)}return i.join(r)}var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r(2);var i=r(3),f=function(e){return e&&e.__esModule?e:{default:e}}(i),s=function(e,t){return new Promise(function(r,o){var i=e,s=u({},t);s&&"object"==a(s.params)&&(i=e+"&"+n(s.params,null,"&"),delete s.params),f.default.ajax(i,s).fail(function(e,t,r){try{var n=f.default.trim(e.responseText);!n&&e.statusText&&(n=f.default.trim("Network Error: "+e.statusText)),n||(n="Network Error");var u=new Error(n);u.statusCode=e.status,u.statusText=e.statusText,u.responseText=e.responseText,o(u)}catch(u){o(u)}}).done(function(e,t,n){try{r(e)}catch(e){o(e)}})})};s.post=function(e,t,r){var o={method:"POST",processData:!1,dataType:"text"};return void 0!==t&&(o.data=JSON.stringify(t)),void 0!==r&&(o.params=r),s(e,o)},s.get=function(e,t){var r={method:"GET",dataType:"text"};return void 0!==t&&(r.data=t),s(e,r)},e.exports=s},function(t,r){t.exports=e},function(e,r){e.exports=t}])});
{
"name": "http-request-promise",
"version": "1.0.5",
"version": "1.0.6",
"description": "Yet another promise-based HTTP request library built on jQuery.",

@@ -5,0 +5,0 @@ "main": "dist/index.bundle.min.js",

@@ -34,3 +34,3 @@ const path = require("path");

externals:{
jquery: true,
jquery: "jQuery",
"babel-polyfill": true

@@ -37,0 +37,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc