@servicetitan/ajax-handlers
Advanced tools
Comparing version 22.21.0 to 22.21.1
@@ -243,3 +243,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
_MicroserviceAuthStore_addAuthHeaders.set(this, (config) => (Object.assign(Object.assign(Object.assign({}, config.headers), { Authorization: `Bearer ${this.authToken}` }), extraHeaders))); | ||
_MicroserviceAuthStore_baseURLMatchesConfig.set(this, (config) => { var _a; return (config.baseURL && config.baseURL === baseURL) || ((_a = config.url) === null || _a === void 0 ? void 0 : _a.startsWith(baseURL)); }); | ||
_MicroserviceAuthStore_baseURLMatchesConfig.set(this, (config) => { | ||
var _a; | ||
return config.baseURL === baseURL || ((_a = config.url) === null || _a === void 0 ? void 0 : _a.startsWith(baseURL)); | ||
}); | ||
_MicroserviceAuthStore_isAuthRequestConfig.set(this, (config) => { var _a; return (_a = config.url) === null || _a === void 0 ? void 0 : _a.startsWith(authURL); }); | ||
@@ -246,0 +249,0 @@ this.addInterceptors(); |
{ | ||
"name": "@servicetitan/ajax-handlers", | ||
"version": "22.21.0", | ||
"version": "22.21.1", | ||
"description": "", | ||
@@ -23,3 +23,3 @@ "repository": { | ||
"@testing-library/dom": "^8.20.1", | ||
"@testing-library/jest-dom": "^6.3.0", | ||
"@testing-library/jest-dom": "^6.4.2", | ||
"@testing-library/react": "^12.1.5", | ||
@@ -42,4 +42,3 @@ "@testing-library/react-hooks": "^8.0.1", | ||
"webpack": false | ||
}, | ||
"gitHead": "729b7ca4eb38c323ac538a73573cadd54a4ff839" | ||
} | ||
} |
@@ -10,4 +10,8 @@ import { | ||
export interface RequestCountsData { | ||
requestCounts: { [key: string]: number }; | ||
} | ||
// Higher order function to keep track of request counts in session storage | ||
function withRequestCount( | ||
export function withRequestCount( | ||
resolver: ( | ||
@@ -14,0 +18,0 @@ req: RestRequest, |
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
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
122084
2341
1
1