@plyaz/api 1.6.7 → 1.6.8
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/helpers/interceptors.d.ts.map +1 -1
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/upload/browser.d.ts +9 -0
- package/dist/api/upload/browser.d.ts.map +1 -0
- package/dist/api/upload/config.d.ts +9 -0
- package/dist/api/upload/config.d.ts.map +1 -0
- package/dist/api/upload/constants.d.ts +23 -0
- package/dist/api/upload/constants.d.ts.map +1 -0
- package/dist/api/upload/index.d.ts +24 -0
- package/dist/api/upload/index.d.ts.map +1 -0
- package/dist/api/upload/node.d.ts +9 -0
- package/dist/api/upload/node.d.ts.map +1 -0
- package/dist/api/upload/retry.d.ts +34 -0
- package/dist/api/upload/retry.d.ts.map +1 -0
- package/dist/api/upload/uploadWithProgress.d.ts +41 -0
- package/dist/api/upload/uploadWithProgress.d.ts.map +1 -0
- package/dist/api/upload/utils.d.ts +33 -0
- package/dist/api/upload/utils.d.ts.map +1 -0
- package/dist/entry-frontend.cjs +1 -1
- package/dist/entry-frontend.cjs.map +1 -1
- package/dist/entry-frontend.mjs +2 -2
- package/dist/entry-frontend.mjs.map +1 -1
- package/dist/index.cjs +561 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +562 -22
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/entry-frontend.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { abortRequest as abortRequest$1, isSlowConnection as isSlowConnection$1, deleteCache as deleteCache$1, getCache as getCache$1, mutate, setCache as setCache$1, subscribe as subscribe$1, revalidateAll as revalidateAll$1, revalidate, setDefaultConfig, createApiFetcher } from 'fetchff';
|
|
2
2
|
export { removeRevalidators, revalidate, revalidateAll } from 'fetchff';
|
|
3
|
-
import { ApiPackageError as ApiPackageError$1, emitScopedErrorEvent, generateCorrelationId, generateRequestId, generateTraceCorrelationId, registerEventFactory, registerErrorHandler as registerErrorHandler$1, registerScopedHandlers, setErrorHandlers as setErrorHandlers$1, getErrorHandlers as getErrorHandlers$1, unregisterScopedHandlers, clearErrorHandlers as clearErrorHandlers$1, registerOnceErrorHandler, isErrorSystemInitialized, setErrorLocale, addMessageCatalog, initializeErrorSystem } from '@plyaz/errors';
|
|
3
|
+
import { ApiPackageError as ApiPackageError$1, emitScopedErrorEvent, generateCorrelationId, generateRequestId, generateTraceCorrelationId, registerEventFactory, registerErrorHandler as registerErrorHandler$1, registerScopedHandlers, setErrorHandlers as setErrorHandlers$1, getErrorHandlers as getErrorHandlers$1, unregisterScopedHandlers, clearErrorHandlers as clearErrorHandlers$1, registerOnceErrorHandler, isErrorSystemInitialized, setErrorLocale, addMessageCatalog, initializeErrorSystem, getErrorCodeByStatus } from '@plyaz/errors';
|
|
4
4
|
export { getErrorCategory, getErrorCodeByStatus, getErrorDefinition } from '@plyaz/errors';
|
|
5
5
|
import { PRIORITY_LEVEL, EVENT_SCOPES_WITH_TEMPORARY, EVENT_NAMESPACES, HEADER_EVENTS, NETWORK_EVENTS, ERROR_EVENTS, DEBUG_EVENTS, CONFIG_EVENTS, PERFORMANCE_EVENTS, CACHE_EVENTS, CLIENT_EVENTS, NETWORK_QUALITY, EVENT_PRIORITY_MAP, PACKAGE_STATUS_CODES, API_ERROR_CODES, OPERATIONS, HISTORY_TYPES, EVENT_SCOPES as EVENT_SCOPES$1, HANDLER_SCOPES as HANDLER_SCOPES$1, DEFAULT_THRESHOLDS, NETWORK_CONFIDENCE_LEVELS, UPDATE_STRATEGIES, DEBUGGER_CONFIG_SOURCES, RTT_THRESHOLDS, SPEED_THRESHOLDS, REGIONAL_CONFIDENCE_LEVELS as REGIONAL_CONFIDENCE_LEVELS$1, COORDINATES, STORAGE_TYPES, ERROR_FIELDS, EVENT_OPERATIONS } from '@plyaz/types/api';
|
|
6
6
|
export { NETWORK_QUALITY, PUB_SUB_EVENT } from '@plyaz/types/api';
|
|
@@ -21596,7 +21596,7 @@ function createOnErrorHandler(handlers, clearTemporaryOverrides2, clearOnComplet
|
|
|
21596
21596
|
const apiError = new ApiPackageError(
|
|
21597
21597
|
"request.failed",
|
|
21598
21598
|
PACKAGE_STATUS_CODES.REQUEST_FAILED,
|
|
21599
|
-
error.status ?
|
|
21599
|
+
error.status ? getErrorCodeByStatus(error.status) ?? API_ERROR_CODES.CLIENT_ERROR : API_ERROR_CODES.NETWORK_ERROR,
|
|
21600
21600
|
{
|
|
21601
21601
|
cause: error,
|
|
21602
21602
|
context: {
|