UNPKG

@junobuild/errors

Version:

A collection of predefined error constants and utilities for Juno applications.

5 lines (4 loc) 2.06 kB
import { createRequire as topLevelCreateRequire } from 'module'; const require = topLevelCreateRequire(import.meta.url); var r="juno.error.no_timestamp_provided",t="juno.error.timestamp_outdated_or_future",e="juno.error.no_version_provided",R="juno.error.version_outdated_or_future",O="juno.datastore.error.cannot_write",n="juno.datastore.error.cannot_read",E="juno.storage.error.upload_not_allowed",a="juno.storage.error.set_not_allowed",s="juno.storage.error.cannot_commit_batch",A="juno.storage.error.asset_not_found",T="juno.storage.error.cannot_read_asset",N="juno.auth.error.not_admin_controller",u="juno.auth.error.invalid_origin",U="juno.auth.error.not_controller",c="juno.datastore.error.user.cannot_update",d="juno.datastore.error.user.invalid_data",p="juno.datastore.error.user.caller_key",S="juno.datastore.error.user.key_no_principal",D="juno.datastore.error.user.not_allowed",i="juno.datastore.error.user.usage.change_limit_reached",l="juno.datastore.error.user.usage.invalid_data";var j=({error:o,type:_})=>typeof o=="string"?o.includes(_):o instanceof Error?o.message.includes(_):!1;export{u as JUNO_AUTH_ERROR_INVALID_ORIGIN,N as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,U as JUNO_AUTH_ERROR_NOT_CONTROLLER,n as JUNO_DATASTORE_ERROR_CANNOT_READ,O as JUNO_DATASTORE_ERROR_CANNOT_WRITE,p as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,c as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,d as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,S as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,D as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,i as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,l as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,r as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,e as JUNO_ERROR_NO_VERSION_PROVIDED,t as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,R as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,A as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,s as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,T as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,a as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,E as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,j as isSatelliteError}; //# sourceMappingURL=index.mjs.map