@junobuild/errors 0.0.1
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/README.md +17 -0
- package/dist/browser/chunk-YKABDFBB.js +2 -0
- package/dist/browser/chunk-YKABDFBB.js.map +7 -0
- package/dist/browser/constants.js +2 -0
- package/dist/browser/constants.js.map +7 -0
- package/dist/browser/index.js +2 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/index.js +1 -0
- package/dist/node/index.mjs +4 -0
- package/dist/node/index.mjs.map +7 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[![npm][npm-badge]][npm-badge-url]
|
|
2
|
+
[![license][npm-license]][npm-license-url]
|
|
3
|
+
|
|
4
|
+
[npm-badge]: https://img.shields.io/npm/v/@junobuild/errors
|
|
5
|
+
[npm-badge-url]: https://www.npmjs.com/package/@junobuild/errors
|
|
6
|
+
[npm-license]: https://img.shields.io/npm/l/@junobuild/errors
|
|
7
|
+
[npm-license-url]: https://github.com/junobuild/juno-js/blob/main/LICENSE
|
|
8
|
+
|
|
9
|
+
# Juno JavaScript Errors
|
|
10
|
+
|
|
11
|
+
A collection of predefined error constants and utilities for Juno applications.
|
|
12
|
+
|
|
13
|
+
## License
|
|
14
|
+
|
|
15
|
+
MIT © [David Dal Busco](mailto:david.dalbusco@outlook.com)
|
|
16
|
+
|
|
17
|
+
[juno]: https://juno.build
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var _="juno.error.no_timestamp_provided",o="juno.error.timestamp_outdated_or_future",r="juno.error.no_version_provided",R="juno.error.version_outdated_or_future",t="juno.datastore.error.cannot_write",O="juno.datastore.error.cannot_read",e="juno.storage.error.upload_not_allowed",n="juno.storage.error.set_not_allowed",E="juno.storage.error.cannot_commit_batch",T="juno.storage.error.asset_not_found",a="juno.storage.error.cannot_read_asset",A="juno.auth.error.not_admin_controller",N="juno.auth.error.invalid_origin",s="juno.auth.error.not_controller",u="juno.datastore.error.user.cannot_update",U="juno.datastore.error.user.invalid_data",c="juno.datastore.error.user.caller_key",d="juno.datastore.error.user.key_no_principal",p="juno.datastore.error.user.not_allowed";export{_ as a,o as b,r as c,R as d,t as e,O as f,e as g,n as h,E as i,T as j,a as k,A as l,N as m,s as n,u as o,U as p,c as q,d as r,p as s};
|
|
2
|
+
//# sourceMappingURL=chunk-YKABDFBB.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = 'juno.error.no_timestamp_provided';\nexport const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = 'juno.error.timestamp_outdated_or_future';\nexport const JUNO_ERROR_NO_VERSION_PROVIDED = 'juno.error.no_version_provided';\nexport const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = 'juno.error.version_outdated_or_future';\n\nexport const JUNO_DATASTORE_ERROR_CANNOT_WRITE = 'juno.datastore.error.cannot_write';\nexport const JUNO_DATASTORE_ERROR_CANNOT_READ = 'juno.datastore.error.cannot_read';\n\nexport const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = 'juno.storage.error.upload_not_allowed';\nexport const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = 'juno.storage.error.set_not_allowed';\nexport const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = 'juno.storage.error.cannot_commit_batch';\nexport const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = 'juno.storage.error.asset_not_found';\nexport const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = 'juno.storage.error.cannot_read_asset';\n\nexport const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = 'juno.auth.error.not_admin_controller';\nexport const JUNO_AUTH_ERROR_INVALID_ORIGIN = 'juno.auth.error.invalid_origin';\nexport const JUNO_AUTH_ERROR_NOT_CONTROLLER = 'juno.auth.error.not_controller';\n\nexport const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = 'juno.datastore.error.user.cannot_update';\nexport const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = 'juno.datastore.error.user.invalid_data';\nexport const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = 'juno.datastore.error.user.caller_key';\nexport const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL =\n 'juno.datastore.error.user.key_no_principal';\nexport const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = 'juno.datastore.error.user.not_allowed';\n"],
|
|
5
|
+
"mappings": "AAAO,IAAMA,EAAmC,mCACnCC,EAA0C,0CAC1CC,EAAiC,iCACjCC,EAAwC,wCAExCC,EAAoC,oCACpCC,EAAmC,mCAEnCC,EAAwC,wCACxCC,EAAqC,qCACrCC,EAAyC,yCACzCC,EAAqC,qCACrCC,EAAuC,uCAEvCC,EAAuC,uCACvCC,EAAiC,iCACjCC,EAAiC,iCAEjCC,EAA0C,0CAC1CC,EAAyC,yCACzCC,EAAuC,uCACvCC,EACX,6CACWC,EAAwC",
|
|
6
|
+
"names": ["JUNO_ERROR_NO_TIMESTAMP_PROVIDED", "JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE", "JUNO_ERROR_NO_VERSION_PROVIDED", "JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE", "JUNO_DATASTORE_ERROR_CANNOT_WRITE", "JUNO_DATASTORE_ERROR_CANNOT_READ", "JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED", "JUNO_STORAGE_ERROR_SET_NOT_ALLOWED", "JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH", "JUNO_STORAGE_ERROR_ASSET_NOT_FOUND", "JUNO_STORAGE_ERROR_CANNOT_READ_ASSET", "JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER", "JUNO_AUTH_ERROR_INVALID_ORIGIN", "JUNO_AUTH_ERROR_NOT_CONTROLLER", "JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE", "JUNO_DATASTORE_ERROR_USER_INVALID_DATA", "JUNO_DATASTORE_ERROR_USER_CALLER_KEY", "JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL", "JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s}from"./chunk-YKABDFBB.js";export{m as JUNO_AUTH_ERROR_INVALID_ORIGIN,l as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,n as JUNO_AUTH_ERROR_NOT_CONTROLLER,f as JUNO_DATASTORE_ERROR_CANNOT_READ,e as JUNO_DATASTORE_ERROR_CANNOT_WRITE,q as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,o as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,p as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,r as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,s as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,a as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,c as JUNO_ERROR_NO_VERSION_PROVIDED,b as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,d as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,j as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,i as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,k as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,h as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,g as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED};
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a,j as b,k as c,l as d,m as g,n as h,o as i,p as j,q as k,r as l,s as n}from"./chunk-YKABDFBB.js";export{g as JUNO_AUTH_ERROR_INVALID_ORIGIN,d as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,h as JUNO_AUTH_ERROR_NOT_CONTROLLER,p as JUNO_DATASTORE_ERROR_CANNOT_READ,m as JUNO_DATASTORE_ERROR_CANNOT_WRITE,k as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,i as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,j as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,l as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,n as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,o as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,e as JUNO_ERROR_NO_VERSION_PROVIDED,r as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,f as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,b as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,a as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,c as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,x as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,t as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './browser/index.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
|
+
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
+
var o="juno.error.no_timestamp_provided",_="juno.error.timestamp_outdated_or_future",r="juno.error.no_version_provided",t="juno.error.version_outdated_or_future",R="juno.datastore.error.cannot_write",O="juno.datastore.error.cannot_read",e="juno.storage.error.upload_not_allowed",n="juno.storage.error.set_not_allowed",E="juno.storage.error.cannot_commit_batch",T="juno.storage.error.asset_not_found",a="juno.storage.error.cannot_read_asset",A="juno.auth.error.not_admin_controller",N="juno.auth.error.invalid_origin",s="juno.auth.error.not_controller",u="juno.datastore.error.user.cannot_update",U="juno.datastore.error.user.invalid_data",c="juno.datastore.error.user.caller_key",p="juno.datastore.error.user.key_no_principal",d="juno.datastore.error.user.not_allowed";export{N as JUNO_AUTH_ERROR_INVALID_ORIGIN,A as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,s as JUNO_AUTH_ERROR_NOT_CONTROLLER,O as JUNO_DATASTORE_ERROR_CANNOT_READ,R as JUNO_DATASTORE_ERROR_CANNOT_WRITE,c as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,u as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,U as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,p as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,d as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,o as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,r as JUNO_ERROR_NO_VERSION_PROVIDED,_ as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,t as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,T as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,E as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,a as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,n as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,e as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED};
|
|
4
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = 'juno.error.no_timestamp_provided';\nexport const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = 'juno.error.timestamp_outdated_or_future';\nexport const JUNO_ERROR_NO_VERSION_PROVIDED = 'juno.error.no_version_provided';\nexport const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = 'juno.error.version_outdated_or_future';\n\nexport const JUNO_DATASTORE_ERROR_CANNOT_WRITE = 'juno.datastore.error.cannot_write';\nexport const JUNO_DATASTORE_ERROR_CANNOT_READ = 'juno.datastore.error.cannot_read';\n\nexport const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = 'juno.storage.error.upload_not_allowed';\nexport const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = 'juno.storage.error.set_not_allowed';\nexport const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = 'juno.storage.error.cannot_commit_batch';\nexport const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = 'juno.storage.error.asset_not_found';\nexport const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = 'juno.storage.error.cannot_read_asset';\n\nexport const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = 'juno.auth.error.not_admin_controller';\nexport const JUNO_AUTH_ERROR_INVALID_ORIGIN = 'juno.auth.error.invalid_origin';\nexport const JUNO_AUTH_ERROR_NOT_CONTROLLER = 'juno.auth.error.not_controller';\n\nexport const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = 'juno.datastore.error.user.cannot_update';\nexport const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = 'juno.datastore.error.user.invalid_data';\nexport const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = 'juno.datastore.error.user.caller_key';\nexport const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL =\n 'juno.datastore.error.user.key_no_principal';\nexport const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = 'juno.datastore.error.user.not_allowed';\n"],
|
|
5
|
+
"mappings": ";;AAAO,IAAMA,EAAmC,mCACnCC,EAA0C,0CAC1CC,EAAiC,iCACjCC,EAAwC,wCAExCC,EAAoC,oCACpCC,EAAmC,mCAEnCC,EAAwC,wCACxCC,EAAqC,qCACrCC,EAAyC,yCACzCC,EAAqC,qCACrCC,EAAuC,uCAEvCC,EAAuC,uCACvCC,EAAiC,iCACjCC,EAAiC,iCAEjCC,EAA0C,0CAC1CC,EAAyC,yCACzCC,EAAuC,uCACvCC,EACX,6CACWC,EAAwC",
|
|
6
|
+
"names": ["JUNO_ERROR_NO_TIMESTAMP_PROVIDED", "JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE", "JUNO_ERROR_NO_VERSION_PROVIDED", "JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE", "JUNO_DATASTORE_ERROR_CANNOT_WRITE", "JUNO_DATASTORE_ERROR_CANNOT_READ", "JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED", "JUNO_STORAGE_ERROR_SET_NOT_ALLOWED", "JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH", "JUNO_STORAGE_ERROR_ASSET_NOT_FOUND", "JUNO_STORAGE_ERROR_CANNOT_READ_ASSET", "JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER", "JUNO_AUTH_ERROR_INVALID_ORIGIN", "JUNO_AUTH_ERROR_NOT_CONTROLLER", "JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE", "JUNO_DATASTORE_ERROR_USER_INVALID_DATA", "JUNO_DATASTORE_ERROR_USER_CALLER_KEY", "JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL", "JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED"]
|
|
7
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@junobuild/errors",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A collection of predefined error constants and utilities for Juno applications.",
|
|
5
|
+
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/node/index.mjs",
|
|
9
|
+
"module": "./dist/browser/index.js",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"default": "./dist/browser/index.js"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"default": "./dist/node/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"rmdir": "node ../../scripts/rmdir.mjs",
|
|
30
|
+
"build": "npm run rmdir && mkdir -p dist && node esbuild.mjs",
|
|
31
|
+
"prepack": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/junobuild/juno-js.git",
|
|
36
|
+
"directory": "packages/errors"
|
|
37
|
+
},
|
|
38
|
+
"bugs": {
|
|
39
|
+
"url": "https://github.com/junobuild/juno-js"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"juno",
|
|
43
|
+
"junobuild",
|
|
44
|
+
"errors",
|
|
45
|
+
"error-handling",
|
|
46
|
+
"constants",
|
|
47
|
+
"datastore",
|
|
48
|
+
"storage",
|
|
49
|
+
"authentication",
|
|
50
|
+
"auth",
|
|
51
|
+
"validation",
|
|
52
|
+
"exceptions",
|
|
53
|
+
"typescript",
|
|
54
|
+
"javascript",
|
|
55
|
+
"library",
|
|
56
|
+
"utilities",
|
|
57
|
+
"developer-tools"
|
|
58
|
+
],
|
|
59
|
+
"homepage": "https://juno.build"
|
|
60
|
+
}
|