@moogodev/client 0.2.0 → 0.2.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 +1 -1
- package/dist/errors.js +1 -1
- package/dist/esm/errors.js +1 -1
- package/package.json +1 -1
- package/src/errors.ts +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ npm install @moogodev/client
|
|
|
14
14
|
import { MoogoClient, createClientFromEnv } from '@moogodev/client';
|
|
15
15
|
|
|
16
16
|
// Reads from environment variables:
|
|
17
|
-
//
|
|
17
|
+
// MOOGO_BASE_URL, MOOGO_PROJECT_ID, MOOGO_STORAGE_ACCESS_KEY_ID, MOOGO_STORAGE_SECRET_KEY
|
|
18
18
|
const client = createClientFromEnv();
|
|
19
19
|
|
|
20
20
|
// Upload with custom Cache-Control
|
package/dist/errors.js
CHANGED
|
@@ -203,7 +203,7 @@ class UnauthorizedError extends MoogoError {
|
|
|
203
203
|
constructor(detail) {
|
|
204
204
|
const hint = detail
|
|
205
205
|
? detail
|
|
206
|
-
: 'Authentication required. Storage: set MOOGO_BASE_URL (or
|
|
206
|
+
: 'Authentication required. Storage: set MOOGO_BASE_URL (or MOOGO_BASE_URL), MOOGO_PROJECT_ID, MOOGO_STORAGE_ACCESS_KEY_ID, MOOGO_STORAGE_SECRET_KEY. SQL: set MOOGO_SQL_KEY (or MOOGO_SQL_KEY). Old names (MOOGO_BUCKET_*) still work but deprecated.';
|
|
207
207
|
super('unauthorized', hint, 401, detail);
|
|
208
208
|
this.name = 'UnauthorizedError';
|
|
209
209
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
package/dist/esm/errors.js
CHANGED
|
@@ -178,7 +178,7 @@ export class UnauthorizedError extends MoogoError {
|
|
|
178
178
|
constructor(detail) {
|
|
179
179
|
const hint = detail
|
|
180
180
|
? detail
|
|
181
|
-
: 'Authentication required. Storage: set MOOGO_BASE_URL (or
|
|
181
|
+
: 'Authentication required. Storage: set MOOGO_BASE_URL (or MOOGO_BASE_URL), MOOGO_PROJECT_ID, MOOGO_STORAGE_ACCESS_KEY_ID, MOOGO_STORAGE_SECRET_KEY. SQL: set MOOGO_SQL_KEY (or MOOGO_SQL_KEY). Old names (MOOGO_BUCKET_*) still work but deprecated.';
|
|
182
182
|
super('unauthorized', hint, 401, detail);
|
|
183
183
|
this.name = 'UnauthorizedError';
|
|
184
184
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|
package/package.json
CHANGED
package/src/errors.ts
CHANGED
|
@@ -213,7 +213,7 @@ export class UnauthorizedError extends MoogoError {
|
|
|
213
213
|
constructor(detail?: string) {
|
|
214
214
|
const hint = detail
|
|
215
215
|
? detail
|
|
216
|
-
: 'Authentication required. Storage: set MOOGO_BASE_URL (or
|
|
216
|
+
: 'Authentication required. Storage: set MOOGO_BASE_URL (or MOOGO_BASE_URL), MOOGO_PROJECT_ID, MOOGO_STORAGE_ACCESS_KEY_ID, MOOGO_STORAGE_SECRET_KEY. SQL: set MOOGO_SQL_KEY (or MOOGO_SQL_KEY). Old names (MOOGO_BUCKET_*) still work but deprecated.';
|
|
217
217
|
super('unauthorized', hint, 401, detail);
|
|
218
218
|
this.name = 'UnauthorizedError';
|
|
219
219
|
Object.setPrototypeOf(this, UnauthorizedError.prototype);
|