@plyaz/api 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client/index.d.ts +2 -1
- package/dist/api/client/index.d.ts.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/index.cjs +182 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +146 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3,5 +3,6 @@
|
|
|
3
3
|
* Main client factory and exports
|
|
4
4
|
*/
|
|
5
5
|
export { createApiClient } from './createApiClient';
|
|
6
|
-
export { setupClientEvents, shouldApplyConfig } from './clientEventManager';
|
|
6
|
+
export { setupClientEvents, shouldApplyConfig, ClientEventManager } from './clientEventManager';
|
|
7
|
+
export * from './helpers';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/client/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/client/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAChG,cAAc,WAAW,CAAC"}
|
package/dist/api/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export * from './config';
|
|
6
6
|
export * from './client';
|
|
7
|
+
export * from './endpoints';
|
|
7
8
|
export { HeaderBuilder, headers, headerPresets, getPresetNames, hasPreset, mergeHeaders, getCacheAffectingHeaders, getNonCacheAffectingHeaders, sanitizeHeaders, removeSensitiveHeaders, normalizeHeaders, hasAuthentication, getAuthenticationType, validateHeaders, getHeaderFingerprint, getNetworkInfoFromHeaders, getNetworkQualityFromHeaders, isDataSaverEnabledFromHeaders, getNetworkConfigFromHeaders, getClientHintHeaders, withNetworkDetection, } from './headers';
|
|
8
9
|
export { mutate, getCache, setCache, deleteCache, cacheStrategies, getCacheStrategy, createCacheStrategy, mergeCacheStrategies, cacheKeyPatterns, invalidationScenarios, createCachePattern, buildCacheKey, } from './cache';
|
|
9
10
|
export * from './utils';
|
package/dist/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAEzB,cAAc,aAAa,CAAC;AAG5B,OAAO,EAEL,aAAa,EACb,OAAO,EAGP,aAAa,EACb,cAAc,EACd,SAAS,EAGT,YAAY,EACZ,wBAAwB,EACxB,2BAA2B,EAC3B,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EAGpB,yBAAyB,EACzB,4BAA4B,EAC5B,6BAA6B,EAC7B,2BAA2B,EAC3B,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,WAAW,CAAC;AAGnB,OAAO,EAEL,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,WAAW,EAGX,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EAGpB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,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ED
|
@@ -14717,8 +14717,153 @@ function getEndpointUrl(name) {
|
|
|
14717
14717
|
return endpoints[name].url;
|
|
14718
14718
|
}
|
|
14719
14719
|
__name(getEndpointUrl, "getEndpointUrl");
|
|
14720
|
+
function getAllEndpointUrls() {
|
|
14721
|
+
const urls = {};
|
|
14722
|
+
Object.entries(endpoints).forEach(([name, config]) => {
|
|
14723
|
+
urls[name] = config.url;
|
|
14724
|
+
});
|
|
14725
|
+
return urls;
|
|
14726
|
+
}
|
|
14727
|
+
__name(getAllEndpointUrls, "getAllEndpointUrls");
|
|
14728
|
+
function hasEndpoint(name) {
|
|
14729
|
+
return name in endpoints;
|
|
14730
|
+
}
|
|
14731
|
+
__name(hasEndpoint, "hasEndpoint");
|
|
14732
|
+
function getEndpointConfig(name) {
|
|
14733
|
+
return endpoints[name];
|
|
14734
|
+
}
|
|
14735
|
+
__name(getEndpointConfig, "getEndpointConfig");
|
|
14736
|
+
function buildEndpointUrl(endpoint, pathParams) {
|
|
14737
|
+
let url = getEndpointUrl(endpoint);
|
|
14738
|
+
if (pathParams) {
|
|
14739
|
+
Object.entries(pathParams).forEach(([key, value]) => {
|
|
14740
|
+
url = url.replace(`:${key}`, String(value));
|
|
14741
|
+
});
|
|
14742
|
+
}
|
|
14743
|
+
return url;
|
|
14744
|
+
}
|
|
14745
|
+
__name(buildEndpointUrl, "buildEndpointUrl");
|
|
14746
|
+
function getEndpointParams(endpoint) {
|
|
14747
|
+
const url = getEndpointUrl(endpoint);
|
|
14748
|
+
const matches = url.match(/:(\w+)/g);
|
|
14749
|
+
return matches ? matches.map((m) => m.substring(1)) : [];
|
|
14750
|
+
}
|
|
14751
|
+
__name(getEndpointParams, "getEndpointParams");
|
|
14752
|
+
function hasPathParams(endpoint) {
|
|
14753
|
+
return getEndpointUrl(endpoint).includes(":");
|
|
14754
|
+
}
|
|
14755
|
+
__name(hasPathParams, "hasPathParams");
|
|
14756
|
+
function getEndpointMetadata(endpoint) {
|
|
14757
|
+
const config = endpoints[endpoint];
|
|
14758
|
+
return {
|
|
14759
|
+
name: endpoint,
|
|
14760
|
+
url: config.url,
|
|
14761
|
+
method: config.method ?? "GET",
|
|
14762
|
+
hasParams: hasPathParams(endpoint),
|
|
14763
|
+
params: getEndpointParams(endpoint),
|
|
14764
|
+
config
|
|
14765
|
+
};
|
|
14766
|
+
}
|
|
14767
|
+
__name(getEndpointMetadata, "getEndpointMetadata");
|
|
14768
|
+
function buildUrl(url, params) {
|
|
14769
|
+
if (!params) return url;
|
|
14770
|
+
let result = url;
|
|
14771
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
14772
|
+
result = result.replace(`:${key}`, String(value));
|
|
14773
|
+
});
|
|
14774
|
+
return result;
|
|
14775
|
+
}
|
|
14776
|
+
__name(buildUrl, "buildUrl");
|
|
14777
|
+
function extractUrlParams(url) {
|
|
14778
|
+
const matches = url.match(/:(\w+)/g);
|
|
14779
|
+
return matches ? matches.map((m) => m.substring(1)) : [];
|
|
14780
|
+
}
|
|
14781
|
+
__name(extractUrlParams, "extractUrlParams");
|
|
14720
14782
|
|
|
14721
14783
|
// src/api/endpoints/builders.ts
|
|
14784
|
+
function endpointCacheKey(endpoint, params) {
|
|
14785
|
+
let url = getEndpointUrl(endpoint);
|
|
14786
|
+
if (params?.pathParams) {
|
|
14787
|
+
url = buildUrl(url, params.pathParams);
|
|
14788
|
+
}
|
|
14789
|
+
if (params?.queryParams) {
|
|
14790
|
+
try {
|
|
14791
|
+
const queryStr = JSON.stringify(params.queryParams);
|
|
14792
|
+
return `${url}:${queryStr}`;
|
|
14793
|
+
} catch {
|
|
14794
|
+
return `${url}:[unstringifiable]`;
|
|
14795
|
+
}
|
|
14796
|
+
}
|
|
14797
|
+
return url;
|
|
14798
|
+
}
|
|
14799
|
+
__name(endpointCacheKey, "endpointCacheKey");
|
|
14800
|
+
function endpointCachePattern(endpoint, wildcardParam) {
|
|
14801
|
+
const url = getEndpointUrl(endpoint);
|
|
14802
|
+
if (wildcardParam) {
|
|
14803
|
+
return url.replace(`:${wildcardParam}`, "*");
|
|
14804
|
+
}
|
|
14805
|
+
return url.replace(/:(\w+)/g, "*");
|
|
14806
|
+
}
|
|
14807
|
+
__name(endpointCachePattern, "endpointCachePattern");
|
|
14808
|
+
function findEndpointsByPattern(pattern) {
|
|
14809
|
+
return Object.entries(endpoints).filter(([, config]) => pattern.test(config.url)).map(([name, config]) => ({
|
|
14810
|
+
name,
|
|
14811
|
+
...config
|
|
14812
|
+
}));
|
|
14813
|
+
}
|
|
14814
|
+
__name(findEndpointsByPattern, "findEndpointsByPattern");
|
|
14815
|
+
function getEndpointsByMethod(method) {
|
|
14816
|
+
const upperMethod = method.toUpperCase();
|
|
14817
|
+
return Object.entries(endpoints).filter(([, config]) => (config.method ?? "GET") === upperMethod).map(([name, config]) => ({
|
|
14818
|
+
name,
|
|
14819
|
+
...config
|
|
14820
|
+
}));
|
|
14821
|
+
}
|
|
14822
|
+
__name(getEndpointsByMethod, "getEndpointsByMethod");
|
|
14823
|
+
var endpointCachePatterns = {
|
|
14824
|
+
// Campaign-specific patterns
|
|
14825
|
+
allCampaigns: /* @__PURE__ */ __name(() => endpointCachePattern("listCampaigns"), "allCampaigns"),
|
|
14826
|
+
campaignById: /* @__PURE__ */ __name((id) => endpointCacheKey("getCampaign", {
|
|
14827
|
+
pathParams: { id }
|
|
14828
|
+
}), "campaignById"),
|
|
14829
|
+
campaignsByPattern: /* @__PURE__ */ __name(() => "/campaigns/*", "campaignsByPattern"),
|
|
14830
|
+
campaignStats: /* @__PURE__ */ __name((id) => endpointCacheKey("getCampaignStats", {
|
|
14831
|
+
pathParams: { id }
|
|
14832
|
+
}), "campaignStats"),
|
|
14833
|
+
// Generic patterns
|
|
14834
|
+
all: /* @__PURE__ */ __name(() => "/*", "all"),
|
|
14835
|
+
byEndpoint: /* @__PURE__ */ __name((endpoint) => endpointCachePattern(endpoint), "byEndpoint"),
|
|
14836
|
+
// Helper to create custom patterns
|
|
14837
|
+
custom: /* @__PURE__ */ __name((pattern) => pattern, "custom")
|
|
14838
|
+
};
|
|
14839
|
+
function buildFullUrl(endpoint, baseURL, params) {
|
|
14840
|
+
let url = getEndpointUrl(endpoint);
|
|
14841
|
+
if (params?.pathParams) {
|
|
14842
|
+
url = buildUrl(url, params.pathParams);
|
|
14843
|
+
}
|
|
14844
|
+
const fullUrl = `${baseURL.replace(/\/$/, "")}${url}`;
|
|
14845
|
+
if (params?.queryParams) {
|
|
14846
|
+
let searchParams;
|
|
14847
|
+
if (params.queryParams instanceof URLSearchParams) {
|
|
14848
|
+
searchParams = params.queryParams;
|
|
14849
|
+
} else if (Array.isArray(params.queryParams)) {
|
|
14850
|
+
searchParams = new URLSearchParams(params.queryParams);
|
|
14851
|
+
} else {
|
|
14852
|
+
searchParams = new URLSearchParams();
|
|
14853
|
+
Object.entries(params.queryParams).forEach(([key, value]) => {
|
|
14854
|
+
if (Array.isArray(value)) {
|
|
14855
|
+
value.forEach((v) => searchParams.append(key, String(v)));
|
|
14856
|
+
} else if (value !== void 0 && value !== null) {
|
|
14857
|
+
searchParams.append(key, String(value));
|
|
14858
|
+
}
|
|
14859
|
+
});
|
|
14860
|
+
}
|
|
14861
|
+
const queryString = searchParams.toString();
|
|
14862
|
+
return queryString ? `${fullUrl}?${queryString}` : fullUrl;
|
|
14863
|
+
}
|
|
14864
|
+
return fullUrl;
|
|
14865
|
+
}
|
|
14866
|
+
__name(buildFullUrl, "buildFullUrl");
|
|
14722
14867
|
function validatePathParams(endpoint, pathParams) {
|
|
14723
14868
|
const url = getEndpointUrl(endpoint);
|
|
14724
14869
|
const required = url.match(/:(\w+)/g);
|
|
@@ -25792,6 +25937,7 @@ exports.ApiPackageError = ApiPackageError;
|
|
|
25792
25937
|
exports.CACHE_EVENTS = CACHE_EVENTS2;
|
|
25793
25938
|
exports.CLIENT_EVENTS = CLIENT_EVENTS2;
|
|
25794
25939
|
exports.CONFIG_EVENTS = CONFIG_EVENTS2;
|
|
25940
|
+
exports.ClientEventManager = ClientEventManager;
|
|
25795
25941
|
exports.ConfigBuilder = ConfigBuilder;
|
|
25796
25942
|
exports.DEBUG_EVENTS = DEBUG_EVENTS2;
|
|
25797
25943
|
exports.ERROR_EVENTS = ERROR_EVENTS2;
|
|
@@ -25829,18 +25975,29 @@ exports.analyzeConflictPatterns = analyzeConflictPatterns;
|
|
|
25829
25975
|
exports.analyzeEventSystemIssues = analyzeEventSystemIssues;
|
|
25830
25976
|
exports.analyzeHistoryPatterns = analyzeHistoryPatterns;
|
|
25831
25977
|
exports.analyzePerformanceIssues = analyzePerformanceIssues;
|
|
25978
|
+
exports.applyCacheStrategyConfig = applyCacheStrategyConfig;
|
|
25832
25979
|
exports.applyConfigOverride = applyConfigOverride;
|
|
25833
25980
|
exports.applyConfigPreset = applyConfigPreset;
|
|
25834
25981
|
exports.applyConfigUpdate = applyConfigUpdate;
|
|
25982
|
+
exports.applyCustomQualityPresetStrategies = applyCustomQualityPresetStrategies;
|
|
25983
|
+
exports.applyHeaderPresets = applyHeaderPresets;
|
|
25984
|
+
exports.applyIndividualStrategies = applyIndividualStrategies;
|
|
25985
|
+
exports.applyPerformancePresetConfig = applyPerformancePresetConfig;
|
|
25835
25986
|
exports.applyPollingStrategy = applyPollingStrategy;
|
|
25987
|
+
exports.applyPollingStrategyConfig = applyPollingStrategyConfig;
|
|
25836
25988
|
exports.applyRetryStrategy = applyRetryStrategy;
|
|
25989
|
+
exports.applyRetryStrategyConfig = applyRetryStrategyConfig;
|
|
25837
25990
|
exports.applyRevalidationStrategy = applyRevalidationStrategy;
|
|
25838
25991
|
exports.applyTemporaryNetworkOverride = applyTemporaryNetworkOverride;
|
|
25839
25992
|
exports.applyUnifiedStrategy = applyUnifiedStrategy;
|
|
25993
|
+
exports.applyUnifiedStrategyToConfig = applyUnifiedStrategyToConfig;
|
|
25840
25994
|
exports.arrayOf = arrayOf;
|
|
25841
25995
|
exports.average = average;
|
|
25842
25996
|
exports.base64ToBytes = base64ToBytes;
|
|
25843
25997
|
exports.buildCacheKey = buildCacheKey;
|
|
25998
|
+
exports.buildEndpointUrl = buildEndpointUrl;
|
|
25999
|
+
exports.buildFullUrl = buildFullUrl;
|
|
26000
|
+
exports.buildUrl = buildUrl;
|
|
25844
26001
|
exports.bytesToBase64 = bytesToBase64;
|
|
25845
26002
|
exports.cacheKeyPatterns = cacheKeyPatterns;
|
|
25846
26003
|
exports.cacheStrategies = cacheStrategies;
|
|
@@ -25848,7 +26005,9 @@ exports.calculateCacheDuration = calculateCacheDuration;
|
|
|
25848
26005
|
exports.calculatePerformanceImpact = calculatePerformanceImpact;
|
|
25849
26006
|
exports.calculatePollingDuration = calculatePollingDuration;
|
|
25850
26007
|
exports.calculateRequestMetrics = calculateRequestMetrics;
|
|
26008
|
+
exports.campaignEndpoints = campaignEndpoints;
|
|
25851
26009
|
exports.canPerformHeavyOperation = canPerformHeavyOperation;
|
|
26010
|
+
exports.checkOverrideTriggers = checkOverrideTriggers;
|
|
25852
26011
|
exports.clamp = clamp;
|
|
25853
26012
|
exports.clampedPercentage = clampedPercentage;
|
|
25854
26013
|
exports.clearErrorHandlers = clearErrorHandlers;
|
|
@@ -25893,6 +26052,7 @@ exports.createNetworkDetectionMiddleware = createNetworkDetectionMiddleware;
|
|
|
25893
26052
|
exports.createPerformanceAnalysis = createPerformanceAnalysis;
|
|
25894
26053
|
exports.createPerformanceBenchmark = createPerformanceBenchmark;
|
|
25895
26054
|
exports.createPollingStrategy = createPollingStrategy;
|
|
26055
|
+
exports.createPreservedConfig = createPreservedConfig;
|
|
25896
26056
|
exports.createProgressivePolling = createProgressivePolling;
|
|
25897
26057
|
exports.createRequestIdGenerator = createRequestIdGenerator;
|
|
25898
26058
|
exports.createRetryConfig = createRetryConfig;
|
|
@@ -25920,6 +26080,10 @@ exports.disableNetworkConfigDebug = disableNetworkConfigDebug;
|
|
|
25920
26080
|
exports.enableNetworkConfigDebug = enableNetworkConfigDebug;
|
|
25921
26081
|
exports.encrypt = encrypt;
|
|
25922
26082
|
exports.endOfDay = endOfDay;
|
|
26083
|
+
exports.endpointCacheKey = endpointCacheKey;
|
|
26084
|
+
exports.endpointCachePattern = endpointCachePattern;
|
|
26085
|
+
exports.endpointCachePatterns = endpointCachePatterns;
|
|
26086
|
+
exports.endpoints = endpoints;
|
|
25923
26087
|
exports.eventManager = eventManager;
|
|
25924
26088
|
exports.exportKeyToBase64 = exportKeyToBase64;
|
|
25925
26089
|
exports.extendRevalidationPresets = extendPresets;
|
|
@@ -25929,12 +26093,14 @@ exports.extractBaseRequestId = extractBaseRequestId;
|
|
|
25929
26093
|
exports.extractCorrelationType = extractCorrelationType;
|
|
25930
26094
|
exports.extractFields = extractFields;
|
|
25931
26095
|
exports.extractLinkedCorrelationIds = extractLinkedCorrelationIds;
|
|
26096
|
+
exports.extractUrlParams = extractUrlParams;
|
|
25932
26097
|
exports.fetchCampaign = fetchCampaign;
|
|
25933
26098
|
exports.fetchCampaignParticipants = fetchCampaignParticipants;
|
|
25934
26099
|
exports.fetchCampaignStats = fetchCampaignStats;
|
|
25935
26100
|
exports.fetchCampaigns = fetchCampaigns;
|
|
25936
26101
|
exports.filterHistory = filterHistory;
|
|
25937
26102
|
exports.filterObject = filterObject;
|
|
26103
|
+
exports.findEndpointsByPattern = findEndpointsByPattern;
|
|
25938
26104
|
exports.findMatchingPaths = findMatchingPaths;
|
|
25939
26105
|
exports.flattenObject = flattenObject;
|
|
25940
26106
|
exports.formatDuration = formatDuration;
|
|
@@ -25967,6 +26133,7 @@ exports.getAdaptiveCacheDuration = getAdaptiveCacheDuration;
|
|
|
25967
26133
|
exports.getAdaptiveConfig = getAdaptiveConfig;
|
|
25968
26134
|
exports.getAdaptivePageSize = getAdaptivePageSize;
|
|
25969
26135
|
exports.getAdaptiveTimeout = getAdaptiveTimeout;
|
|
26136
|
+
exports.getAllEndpointUrls = getAllEndpointUrls;
|
|
25970
26137
|
exports.getAllFieldPaths = getAllFieldPaths;
|
|
25971
26138
|
exports.getAllMediaExtensions = getAllMediaExtensions;
|
|
25972
26139
|
exports.getAppVersion = getAppVersion;
|
|
@@ -25987,6 +26154,11 @@ exports.getDeviceInfo = getDeviceInfo;
|
|
|
25987
26154
|
exports.getDocument = getDocument;
|
|
25988
26155
|
exports.getEffectiveConfig = getEffectiveConfig;
|
|
25989
26156
|
exports.getEffectiveConnectionType = getEffectiveConnectionType;
|
|
26157
|
+
exports.getEndpointConfig = getEndpointConfig;
|
|
26158
|
+
exports.getEndpointMetadata = getEndpointMetadata;
|
|
26159
|
+
exports.getEndpointParams = getEndpointParams;
|
|
26160
|
+
exports.getEndpointUrl = getEndpointUrl;
|
|
26161
|
+
exports.getEndpointsByMethod = getEndpointsByMethod;
|
|
25990
26162
|
exports.getEnhancedClientHints = getEnhancedClientHints;
|
|
25991
26163
|
exports.getEntries = getEntries;
|
|
25992
26164
|
exports.getEnv = getEnv;
|
|
@@ -26028,6 +26200,7 @@ exports.getNetworkPreset = getNetworkPreset;
|
|
|
26028
26200
|
exports.getNetworkQuality = getNetworkQuality;
|
|
26029
26201
|
exports.getNetworkQualityFromHeaders = getNetworkQualityFromHeaders;
|
|
26030
26202
|
exports.getNetworkQualityScore = getNetworkQualityScore;
|
|
26203
|
+
exports.getNetworkQualityWithThresholds = getNetworkQualityWithThresholds;
|
|
26031
26204
|
exports.getNetworkRTT = getNetworkRTT;
|
|
26032
26205
|
exports.getNetworkSpeed = getNetworkSpeed;
|
|
26033
26206
|
exports.getNonCacheAffectingHeaders = getNonCacheAffectingHeaders;
|
|
@@ -26060,6 +26233,7 @@ exports.handleObjectMerge = handleObjectMerge;
|
|
|
26060
26233
|
exports.hasAnyExtension = hasAnyExtension;
|
|
26061
26234
|
exports.hasAuthentication = hasAuthentication;
|
|
26062
26235
|
exports.hasEncryptableFields = hasEncryptableFields;
|
|
26236
|
+
exports.hasEndpoint = hasEndpoint;
|
|
26063
26237
|
exports.hasGlobal = hasGlobal;
|
|
26064
26238
|
exports.hasIndexedDB = hasIndexedDB;
|
|
26065
26239
|
exports.hasLocalStorage = hasLocalStorage;
|
|
@@ -26067,6 +26241,7 @@ exports.hasMatchingFields = hasMatchingFields;
|
|
|
26067
26241
|
exports.hasNavigator = hasNavigator;
|
|
26068
26242
|
exports.hasNetworkInfoExpress = hasNetworkInfo2;
|
|
26069
26243
|
exports.hasNetworkInfoNextjs = hasNetworkInfo;
|
|
26244
|
+
exports.hasPathParams = hasPathParams;
|
|
26070
26245
|
exports.hasPreset = hasPreset;
|
|
26071
26246
|
exports.hasProperty = hasProperty;
|
|
26072
26247
|
exports.hasSessionStorage = hasSessionStorage;
|
|
@@ -26201,10 +26376,12 @@ exports.parseFieldPath = parseFieldPath;
|
|
|
26201
26376
|
exports.parseId = parseId;
|
|
26202
26377
|
exports.percentage = percentage;
|
|
26203
26378
|
exports.pick = pick;
|
|
26379
|
+
exports.pollingEndpoints = pollingEndpoints;
|
|
26204
26380
|
exports.pollingStrategies = pollingStrategies;
|
|
26205
26381
|
exports.prepareRequestConfig = prepareRequestConfig;
|
|
26206
26382
|
exports.prepareRequestConfigWithEnrichedHeaders = prepareRequestConfigWithEnrichedHeaders;
|
|
26207
26383
|
exports.prettyStringify = prettyStringify;
|
|
26384
|
+
exports.processHeaders = processHeaders2;
|
|
26208
26385
|
exports.raceRequests = raceRequests;
|
|
26209
26386
|
exports.randomBetween = randomBetween;
|
|
26210
26387
|
exports.randomInt = randomInt;
|
|
@@ -26239,7 +26416,9 @@ exports.setErrorHandlers = setErrorHandlers;
|
|
|
26239
26416
|
exports.setFieldValue = setFieldValue;
|
|
26240
26417
|
exports.setGlobalConfig = setGlobalConfig;
|
|
26241
26418
|
exports.setupClientEvents = setupClientEvents;
|
|
26419
|
+
exports.setupNetworkMonitoring = setupNetworkMonitoring;
|
|
26242
26420
|
exports.setupRouteChangeCleanup = setupRouteChangeCleanup;
|
|
26421
|
+
exports.setupTemporaryOverride = setupTemporaryOverride;
|
|
26243
26422
|
exports.shouldApplyConfig = shouldApplyConfig;
|
|
26244
26423
|
exports.shouldAutoRefresh = shouldAutoRefresh;
|
|
26245
26424
|
exports.shouldPrefetch = shouldPrefetch;
|
|
@@ -26272,7 +26451,9 @@ exports.toFetchffConfig = toFetchffConfig;
|
|
|
26272
26451
|
exports.toFetchffRevalidationConfig = toFetchffRevalidationConfig;
|
|
26273
26452
|
exports.toISOString = toISOString;
|
|
26274
26453
|
exports.trackConfig = trackConfig;
|
|
26454
|
+
exports.trackDirectCacheConfig = trackDirectCacheConfig;
|
|
26275
26455
|
exports.trackNetworkOverride = trackNetworkOverride;
|
|
26456
|
+
exports.trackSpreadProperties = trackSpreadProperties;
|
|
26276
26457
|
exports.trackableSpread = trackableSpread;
|
|
26277
26458
|
exports.transformFields = transformFields;
|
|
26278
26459
|
exports.truncateJSON = truncateJSON;
|
|
@@ -26307,6 +26488,7 @@ exports.useUpdateCampaign = useUpdateCampaign;
|
|
|
26307
26488
|
exports.validateConfigUpdate = validateConfigUpdate;
|
|
26308
26489
|
exports.validateEncryptionConfig = validateEncryptionConfig;
|
|
26309
26490
|
exports.validateHeaders = validateHeaders2;
|
|
26491
|
+
exports.validatePathParams = validatePathParams;
|
|
26310
26492
|
exports.validatePreset = validatePreset;
|
|
26311
26493
|
exports.waitForOnline = waitForOnline;
|
|
26312
26494
|
exports.withNetworkDetection = withNetworkDetection;
|