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

@servicetitan/ajax-handlers

Package Overview
Dependencies
Maintainers
8
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@servicetitan/ajax-handlers - npm Package Compare versions

Comparing version 16.1.0 to 17.0.0

2

dist/ajax-handlers.js

@@ -12,3 +12,3 @@ "use strict";

const initAjaxHandlers = ({ notifier, errorFilteredUrls = [], } = {}) => {
ajax_handlers_common_1.initAjaxHandlersCommon();
(0, ajax_handlers_common_1.initAjaxHandlersCommon)();
const logError = ({ request, config }) => {

@@ -15,0 +15,0 @@ var _a;

@@ -24,3 +24,3 @@ "use strict";

});
this.$loading = jquery_1.default((_a = document.getElementById('global-loading')) !== null && _a !== void 0 ? _a : document.body.appendChild(createElement('div', { id: 'global-loading', class: 'global-loading circle' })));
this.$loading = (0, jquery_1.default)((_a = document.getElementById('global-loading')) !== null && _a !== void 0 ? _a : document.body.appendChild(createElement('div', { id: 'global-loading', class: 'global-loading circle' })));
if (this.$loading.data('initialized')) {

@@ -27,0 +27,0 @@ return;

@@ -111,3 +111,3 @@ "use strict";

config.headers = Object.assign(Object.assign({}, config.headers), this.getAuthHeaders(response.data));
return axios_1.default(config);
return (0, axios_1.default)(config);
})

@@ -159,3 +159,3 @@ .catch(error => {

MicroserviceAuthStore = __decorate([
react_ioc_1.injectable(),
(0, react_ioc_1.injectable)(),
__metadata("design:paramtypes", [])

@@ -167,10 +167,10 @@ ], MicroserviceAuthStore);

}));
const WrappedComponent = react_ioc_1.provide({
const WrappedComponent = (0, react_ioc_1.provide)({
singletons: [MicroserviceAuthStore, ...apiBaseUrlConfigs],
})((props) => {
const [store] = react_ioc_1.useDependencies(MicroserviceAuthStore);
react_1.useEffect(() => {
const [store] = (0, react_ioc_1.useDependencies)(MicroserviceAuthStore);
(0, react_1.useEffect)(() => {
return store.destructor;
}, [store.destructor]);
return jsx_runtime_1.jsx(UnwrappedComponent, Object.assign({}, props), void 0);
return (0, jsx_runtime_1.jsx)(UnwrappedComponent, Object.assign({}, props), void 0);
});

@@ -177,0 +177,0 @@ return WrappedComponent;

{
"name": "@servicetitan/ajax-handlers",
"version": "16.1.0",
"version": "17.0.0",
"description": "",

@@ -20,3 +20,3 @@ "repository": {

"devDependencies": {
"@servicetitan/react-ioc": "^16.1.0",
"@servicetitan/react-ioc": "^17.0.0",
"@types/jquery": "~2.0.57",

@@ -40,3 +40,3 @@ "@types/js-cookie": "~2.2.7",

},
"gitHead": "3790506ef903e0e9bf129dcf4d2ed352f42b007d"
"gitHead": "afe94cb5a9f840f311627751e23fb71fd2c6fe4e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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