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

ajax-manager

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ajax-manager - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

2

dist/ajax-manager.js

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

!function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ajaxManager=n():o.ajaxManager=n()}(this,function(){return function(o){function n(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return o[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var e={};return n.m=o,n.c=e,n.d=function(o,e,t){n.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},n.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(e,"a",e),e},n.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)},n.p="",n(n.s=0)}([function(o,n,e){"use strict";function t(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(n,"__esModule",{value:!0});var r=e(1);Object.defineProperty(n,"default",{enumerable:!0,get:function(){return t(r).default}})},function(o,n,e){"use strict";function t(o){if(Array.isArray(o)){for(var n=0,e=Array(o.length);n<o.length;n++)e[n]=o[n];return e}return Array.from(o)}function r(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=window.__apiConfig__[o];r||(r={});var a=r.url||t.url||n.url||e.url||"",i=window.__apiRoot__||t.__apiRoot||n.__apiRoot||e.__apiRoot||"";return r.ignoreGlobalApiRoot||t.__ignoreGlobalApiRoot||n.__ignoreGlobalApiRoot||e.__ignoreGlobalApiRoot?a:i+a}Object.defineProperty(n,"__esModule",{value:!0}),window.__apiCount__=0,window.__apiCounter={add:function(){window.__apiCount__++},remove:function(){window.__apiCount__--},get:function(){return window.__apiCount__}},window.__apiConfig__||(window.__apiConfig__={}),window.__apiRoot__||(window.__apiRoot__=null);var a=function(){function o(o,n){for(var e=0;e<o.length;e++)"function"==typeof o[e]&&o[e].apply(o,t(n))}function n(o,n){"function"==typeof o&&o.apply(void 0,t(n))}function e(o,n){for(var e=0;e<p[o].length;e++){var r;"function"==typeof p[o][e]&&(r=p[o])[e].apply(r,t(n))}}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_=arguments[2],u=_,l={};a.forEach(function(o,n){for(var e in o){var t=o[e];e in l&&console.warn('ajaxManager: api in models should not have same name "'+e+'".'),l[e]=t}l.__global||(l.__global={})});var f={beforeSend:[],success:[],error:[],complete:[]},p={ajaxStart:[],ajaxStop:[]},c={};for(var d in l)!function(t){/^__/g.test(t)||(c[t]=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object.keys(f).map(function(o){i[o]&&f[o].push(i[o]),l.__global[o]&&f[o].push(l.__global[o])}),Object.keys(p).map(function(o){i[o]&&p[o].push(i[o]),l.__global[o]&&p[o].push(l.__global[o])});var d={beforeSend:null,success:null,error:null,complete:null};Object.keys(d).map(function(o){d[o]=a[o]||l[t][o]});var s=Object.assign({},i.data||{},l.__globlal.data||{},l[t].data||{},a.data||{}),g=Object.assign({},i||{},l[t]||{},a,{url:r(t,l[t],i,a),data:s,beforeSend:function(t){_&&(window.__apiCounter.add(),e("ajaxStart",[t])),c&&o(f.beforeSend,[t]),n(d.beforeSend,[t])},success:function(e,t,r){c&&o(f.success,[e,t,r]),n(d.success,[e,t,r])},error:function(e,t,r){c&&o(f.error,[e,t,r]),n(d.error,[e,t,r])},complete:function(t,r){_&&(window.__apiCounter.remove(),e("ajaxStop",[t,r])),c&&o(f.complete,[t,r]),n(d.complete,[t,r])}});return g.contentType&&"application/json"===g.contentType.toLowerCase().trim()&&(g.data=JSON.stringify(s)),window.__apiConfig__&&window.__apiConfig__[t]&&window.__apiConfig__[t].type&&(g.type=window.__apiConfig__[t].type),u.ajax(g)})}(d);return c};n.default=a}])});
!function(o,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.ajaxManager=n():o.ajaxManager=n()}(this,function(){return function(o){function n(t){if(e[t])return e[t].exports;var r=e[t]={i:t,l:!1,exports:{}};return o[t].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var e={};return n.m=o,n.c=e,n.d=function(o,e,t){n.o(o,e)||Object.defineProperty(o,e,{configurable:!1,enumerable:!0,get:t})},n.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(e,"a",e),e},n.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)},n.p="",n(n.s=0)}([function(o,n,e){"use strict";function t(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(n,"__esModule",{value:!0});var r=e(1);Object.defineProperty(n,"default",{enumerable:!0,get:function(){return t(r).default}})},function(o,n,e){"use strict";function t(o){if(Array.isArray(o)){for(var n=0,e=Array(o.length);n<o.length;n++)e[n]=o[n];return e}return Array.from(o)}function r(o){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=window.__apiConfig__[o];r||(r={});var a=r.url||t.url||n.url||e.url||"",i=window.__apiRoot__||t.__apiRoot||n.__apiRoot||e.__apiRoot||"";return r.ignoreGlobalApiRoot||t.__ignoreGlobalApiRoot||n.__ignoreGlobalApiRoot||e.__ignoreGlobalApiRoot?a:i+a}Object.defineProperty(n,"__esModule",{value:!0}),window.__apiCount__=0,window.__apiCounter={add:function(){window.__apiCount__++},remove:function(){window.__apiCount__--},get:function(){return window.__apiCount__}},window.__apiConfig__||(window.__apiConfig__={}),window.__apiRoot__||(window.__apiRoot__=null);var a=function(){function o(o,n){for(var e=0;e<o.length;e++)"function"==typeof o[e]&&o[e].apply(o,t(n))}function n(o,n){"function"==typeof o&&o.apply(void 0,t(n))}function e(o,n){for(var e=0;e<p[o].length;e++){var r;"function"==typeof p[o][e]&&(r=p[o])[e].apply(r,t(n))}}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_=arguments[2],u=_,l={};a.forEach(function(o,n){for(var e in o){var t=o[e];e in l&&console.warn('ajaxManager: api in models should not have same name "'+e+'".'),l[e]=t}l.__global||(l.__global={})});var f={beforeSend:[],success:[],error:[],complete:[]},p={ajaxStart:[],ajaxStop:[]},c={};for(var d in l)!function(t){/^__/g.test(t)||(c[t]=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object.keys(f).map(function(o){i[o]&&f[o].push(i[o]),l.__global[o]&&f[o].push(l.__global[o])}),Object.keys(p).map(function(o){i[o]&&p[o].push(i[o]),l.__global[o]&&p[o].push(l.__global[o])});var d={beforeSend:null,success:null,error:null,complete:null};Object.keys(d).map(function(o){d[o]=a[o]||l[t][o]});var s=Object.assign({},i.data||{},l.__global.data||{},l[t].data||{},a.data||{}),g=Object.assign({},i||{},l[t]||{},a,{url:r(t,l[t],i,a),data:s,beforeSend:function(t){_&&(window.__apiCounter.add(),e("ajaxStart",[t])),c&&o(f.beforeSend,[t]),n(d.beforeSend,[t])},success:function(e,t,r){c&&o(f.success,[e,t,r]),n(d.success,[e,t,r])},error:function(e,t,r){c&&o(f.error,[e,t,r]),n(d.error,[e,t,r])},complete:function(t,r){_&&(window.__apiCounter.remove(),e("ajaxStop",[t,r])),c&&o(f.complete,[t,r]),n(d.complete,[t,r])}});return g.contentType&&"application/json"===g.contentType.toLowerCase().trim()&&(g.data=JSON.stringify(s)),window.__apiConfig__&&window.__apiConfig__[t]&&window.__apiConfig__[t].type&&(g.type=window.__apiConfig__[t].type),u.ajax(g)})}(d);return c};n.default=a}])});
{
"name": "ajax-manager",
"version": "1.0.12",
"version": "1.0.13",
"description": "An jQuery ajax management tool",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -141,3 +141,3 @@ // use global count instead of jquery global event because it does't support cross domain request

registerConfig.data || {},
models.__globlal.data || {},
models.__global.data || {},
models[key].data || {},

@@ -144,0 +144,0 @@ config.data || {})

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