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.8 to 1.0.9

2

dist/index.bundle.min.js

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

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery"),require("babel-polyfill")):"function"==typeof define&&define.amd?define(["jquery","babel-polyfill"],t):"object"==typeof exports?exports.HttpRequestPromise=t(require("jquery"),require("babel-polyfill")):e.HttpRequestPromise=t(e.jquery,e["babel-polyfill"])}(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=1)}([function(t,r){t.exports=e},function(e,t,r){e.exports=r(2)},function(e,t,r){"use strict";(function(t){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,a=[];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,a=[];if(!0===r?r="1":!1===r&&(r="0"),null!==r){if("object"===(void 0===r?"undefined":i(r))){for(u in r)null!==r[u]&&a.push(e(t+"["+u+"]",r[u],n));return a.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&&a.push(f)}return a.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},i="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(3),r(0);var a=function(e,r){return new Promise(function(o,a){var f=e,s=u({},r);s&&"object"==i(s.params)&&(f=e+"&"+n(s.params,null,"&"),delete s.params),t.ajax(f,s).fail(function(e,r,o){try{var n=t.trim(e.responseText);!n&&e.statusText&&(n=t.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,a(u)}catch(u){a(u)}}).done(function(e,t,r){try{o(e)}catch(e){a(e)}})})};a.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),a(e,o)},a.get=function(e,t){var r={method:"GET",dataType:"text"};return void 0!==t&&(r.data=t),a(e,r)},e.exports=a}).call(t,r(0))},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,a=[];r||(r="&");for(u in e){n=e[u],t&&!isNaN(u)&&(u=String(t)+u);var s=function e(t,r,n){var u,a=[];if(!0===r?r="1":!1===r&&(r="0"),null!==r){if("object"===(void 0===r?"undefined":i(r))){for(u in r)null!==r[u]&&a.push(e(t+"["+u+"]",r[u],n));return a.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);""!==s&&a.push(s)}return a.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},i="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),r(3);var a=function(e,t){return new Promise(function(r,o){var a=e,s=u({},t);s&&"object"==i(s.params)&&(a=e+"&"+n(s.params,null,"&"),delete s.params),jQuery.ajax(a,s).fail(function(e,t,r){try{var n=jQuery.trim(e.responseText);!n&&e.statusText&&(n=jQuery.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)}})})};a.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),a(e,o)},a.get=function(e,t){var r={method:"GET",dataType:"text"};return void 0!==t&&(r.data=t),a(e,r)},e.exports=a},function(t,r){t.exports=e},function(e,r){e.exports=t}])});
//# sourceMappingURL=index.bundle.min.js.map
{
"name": "http-request-promise",
"version": "1.0.8",
"version": "1.0.9",
"description": "Yet another promise-based HTTP request library built on jQuery.",

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

@@ -17,2 +17,4 @@ # http-request-promise

Using npm:
```

@@ -22,2 +24,12 @@ npm install http-request-promise

Using cdn:
```
<!--Load babel-polyfill for web browser not support ES6 promise yet-->
<script src="https://unpkg.com/babel-polyfill@6.26.0/dist/polyfill.js"></script>
<!--Load jQuery-->
<script src="https://unpkg.com/jquery/dist/jquery.js"></script>
<script src="https://unpkg.com/http-request-promise/dist/index.bundle.min.js"></script>
```
##

@@ -18,6 +18,2 @@ const path = require("path");

plugins.push(new webpack.NoEmitOnErrorsPlugin());
plugins.push(new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
}));

@@ -24,0 +20,0 @@ module.exports = {

Sorry, the diff of this file is not supported yet

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