@junobuild/errors 0.0.3 → 0.0.4-next-2025-02-26

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.
@@ -0,0 +1,21 @@
1
+ export declare const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = "juno.error.no_timestamp_provided";
2
+ export declare const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = "juno.error.timestamp_outdated_or_future";
3
+ export declare const JUNO_ERROR_NO_VERSION_PROVIDED = "juno.error.no_version_provided";
4
+ export declare const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = "juno.error.version_outdated_or_future";
5
+ export declare const JUNO_DATASTORE_ERROR_CANNOT_WRITE = "juno.datastore.error.cannot_write";
6
+ export declare const JUNO_DATASTORE_ERROR_CANNOT_READ = "juno.datastore.error.cannot_read";
7
+ export declare const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = "juno.storage.error.upload_not_allowed";
8
+ export declare const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = "juno.storage.error.set_not_allowed";
9
+ export declare const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = "juno.storage.error.cannot_commit_batch";
10
+ export declare const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = "juno.storage.error.asset_not_found";
11
+ export declare const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = "juno.storage.error.cannot_read_asset";
12
+ export declare const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = "juno.auth.error.not_admin_controller";
13
+ export declare const JUNO_AUTH_ERROR_INVALID_ORIGIN = "juno.auth.error.invalid_origin";
14
+ export declare const JUNO_AUTH_ERROR_NOT_CONTROLLER = "juno.auth.error.not_controller";
15
+ export declare const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = "juno.datastore.error.user.cannot_update";
16
+ export declare const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = "juno.datastore.error.user.invalid_data";
17
+ export declare const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = "juno.datastore.error.user.caller_key";
18
+ export declare const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL = "juno.datastore.error.user.key_no_principal";
19
+ export declare const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = "juno.datastore.error.user.not_allowed";
20
+ export declare const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED = "juno.datastore.error.user.usage.change_limit_reached";
21
+ export declare const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA = "juno.datastore.error.user.usage.invalid_data";
@@ -0,0 +1,2 @@
1
+ export * from './constants';
2
+ export * from './utils';
@@ -0,0 +1,4 @@
1
+ export declare const isSatelliteError: ({ error, type }: {
2
+ error: unknown;
3
+ type: string;
4
+ }) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@junobuild/errors",
3
- "version": "0.0.3",
3
+ "version": "0.0.4-next-2025-02-26",
4
4
  "description": "A collection of predefined error constants and utilities for Juno applications.",
5
5
  "author": "David Dal Busco (https://daviddalbusco.com)",
6
6
  "license": "MIT",
@@ -27,7 +27,8 @@
27
27
  ],
28
28
  "scripts": {
29
29
  "rmdir": "node ../../scripts/rmdir.mjs",
30
- "build": "npm run rmdir && mkdir -p dist && node esbuild.mjs",
30
+ "ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
31
+ "build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
31
32
  "prepack": "npm run build"
32
33
  },
33
34
  "repository": {
@@ -57,4 +58,4 @@
57
58
  "developer-tools"
58
59
  ],
59
60
  "homepage": "https://juno.build"
60
- }
61
+ }