@devultur/convex 1.5.2 → 1.6.0
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/{chunk-RDVBE3G3.js → chunk-34XXHYL3.js} +13 -1
- package/dist/{chunk-YYOZ3PDH.js → chunk-V5YH4YJG.js} +25 -0
- package/dist/{error-labels-D0Vbp-qA.d.ts → error-labels-Sf6gow24.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/es-formal.d.ts +1 -1
- package/dist/locales/es-formal.js +3 -2
- package/dist/locales/es.d.ts +1 -1
- package/dist/locales/es.js +2 -2
- package/dist/react.js +1 -1
- package/docs/guides/plugins.md +13 -5
- package/docs/guides/self-host.md +25 -4
- package/package.json +3 -3
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
formatBytes,
|
|
8
8
|
formatDate,
|
|
9
9
|
labelText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V5YH4YJG.js";
|
|
11
11
|
|
|
12
12
|
// src/locales/es.ts
|
|
13
13
|
var LOCALE = "es";
|
|
@@ -57,6 +57,18 @@ var devulturErrorLabels = {
|
|
|
57
57
|
link_expired: "Este enlace de descarga ya venci\xF3.",
|
|
58
58
|
link_used: "Este enlace de descarga ya se us\xF3.",
|
|
59
59
|
not_configured: "Esta funci\xF3n no est\xE1 configurada.",
|
|
60
|
+
invalid_grant: "Este permiso de descarga no es v\xE1lido.",
|
|
61
|
+
grant_gone: "Este permiso de descarga ya no es v\xE1lido.",
|
|
62
|
+
grant_exhausted: "Este permiso de descarga ya emiti\xF3 todos sus enlaces.",
|
|
63
|
+
grant_exists: "Este permiso de descarga ya existe.",
|
|
64
|
+
grant_in_query: "Env\xEDa el permiso de descarga en el encabezado Authorization, nunca en una URL.",
|
|
65
|
+
grant_not_found: "Este permiso de descarga no existe.",
|
|
66
|
+
grant_cannot_delete: "Este permiso de descarga no puede eliminar su archivo.",
|
|
67
|
+
link_exceeds_grant: "El enlace de descarga supera lo que permite el permiso.",
|
|
68
|
+
invalid_link_caps: "Los l\xEDmites del enlace de descarga no son v\xE1lidos.",
|
|
69
|
+
invalid_max_links: "El n\xFAmero de enlaces no es v\xE1lido.",
|
|
70
|
+
invalid_can_delete: "Si el permiso puede eliminar su archivo debe ser verdadero o falso.",
|
|
71
|
+
invalid_metadata: "Los metadatos no son v\xE1lidos.",
|
|
60
72
|
retention_active: (details) => {
|
|
61
73
|
if (details.hold === true) return "Este archivo tiene una retenci\xF3n legal y no se puede modificar ni eliminar.";
|
|
62
74
|
const until = formatDate(details.until, LOCALE);
|
|
@@ -40,6 +40,19 @@ var DEVULTUR_ERROR_CODES = [
|
|
|
40
40
|
"link_expired",
|
|
41
41
|
"link_used",
|
|
42
42
|
"not_configured",
|
|
43
|
+
// Download grants
|
|
44
|
+
"invalid_grant",
|
|
45
|
+
"grant_gone",
|
|
46
|
+
"grant_exhausted",
|
|
47
|
+
"grant_exists",
|
|
48
|
+
"grant_in_query",
|
|
49
|
+
"grant_not_found",
|
|
50
|
+
"grant_cannot_delete",
|
|
51
|
+
"link_exceeds_grant",
|
|
52
|
+
"invalid_link_caps",
|
|
53
|
+
"invalid_max_links",
|
|
54
|
+
"invalid_can_delete",
|
|
55
|
+
"invalid_metadata",
|
|
43
56
|
// Retention and holds
|
|
44
57
|
"retention_active",
|
|
45
58
|
"lock_conflict",
|
|
@@ -170,6 +183,18 @@ var devulturErrorLabels = {
|
|
|
170
183
|
link_expired: "This download link has expired.",
|
|
171
184
|
link_used: "This download link was already used.",
|
|
172
185
|
not_configured: "This feature isn't set up.",
|
|
186
|
+
invalid_grant: "This download grant isn't valid.",
|
|
187
|
+
grant_gone: "This download grant is no longer valid.",
|
|
188
|
+
grant_exhausted: "This download grant has issued all its links.",
|
|
189
|
+
grant_exists: "This download grant already exists.",
|
|
190
|
+
grant_in_query: "Send the download grant in the Authorization header, never in a URL.",
|
|
191
|
+
grant_not_found: "This download grant doesn't exist.",
|
|
192
|
+
grant_cannot_delete: "This download grant can't delete its file.",
|
|
193
|
+
link_exceeds_grant: "The download link exceeds what the grant allows.",
|
|
194
|
+
invalid_link_caps: "The download link limits aren't valid.",
|
|
195
|
+
invalid_max_links: "The number of links isn't valid.",
|
|
196
|
+
invalid_can_delete: "Whether the grant can delete its file must be true or false.",
|
|
197
|
+
invalid_metadata: "The metadata isn't valid.",
|
|
173
198
|
retention_active: (details) => {
|
|
174
199
|
if (details.hold === true) return "This file is on hold and can't be changed or deleted.";
|
|
175
200
|
const until = formatDate(details.until, "en");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const DEVULTUR_ERROR_CODES: readonly ["file_too_large", "content_type_not_allowed", "content_type_mismatch", "content_unverified", "unsupported_content_type", "media_type_mismatch", "already_exists", "write_conflict", "upload_not_found", "invalid_upload_key", "invalid_path", "path_required", "invalid_expires_in", "invalid_file_expires_in", "invalid_cache_control", "invalid_limits", "invalid_prefix", "invalid_visibility", "invalid_cursor", "invalid_sha256", "sha256_mismatch", "max_files_reached", "invalid_multipart", "invalid_size", "invalid_part", "invalid_parts", "part_size_mismatch", "part_sha256_required", "invalid_media_metadata", "expired", "invalid_key", "invalid_max_uses", "link_exists", "link_not_found", "link_expired", "link_used", "not_configured", "retention_active", "lock_conflict", "compliance_extend_only", "lock_privilege_required", "lock_record_unreadable", "lock_below_minimum", "invalid_lock", "invalid_hold", "reserved_key", "keys_bucket_missing", "encryption_key_missing", "unauthorized", "session_mismatch", "token_rejected", "reserved_user_id", "invalid_scopes", "user_mismatch", "transcode_not_configured", "transcode_runner_unavailable", "transcode_launch_failed", "original_not_retained", "locale_not_allowed", "captions_provider_rate_limited", "captions_provider_error", "captions_failed", "webhook_secret_missing", "worker_auth_secret_missing", "worker_error", "http_error", "too_large", "unsupported_type", "type_mismatch", "token_unavailable", "page_cap", "render_failed", "capability_unavailable"];
|
|
1
|
+
declare const DEVULTUR_ERROR_CODES: readonly ["file_too_large", "content_type_not_allowed", "content_type_mismatch", "content_unverified", "unsupported_content_type", "media_type_mismatch", "already_exists", "write_conflict", "upload_not_found", "invalid_upload_key", "invalid_path", "path_required", "invalid_expires_in", "invalid_file_expires_in", "invalid_cache_control", "invalid_limits", "invalid_prefix", "invalid_visibility", "invalid_cursor", "invalid_sha256", "sha256_mismatch", "max_files_reached", "invalid_multipart", "invalid_size", "invalid_part", "invalid_parts", "part_size_mismatch", "part_sha256_required", "invalid_media_metadata", "expired", "invalid_key", "invalid_max_uses", "link_exists", "link_not_found", "link_expired", "link_used", "not_configured", "invalid_grant", "grant_gone", "grant_exhausted", "grant_exists", "grant_in_query", "grant_not_found", "grant_cannot_delete", "link_exceeds_grant", "invalid_link_caps", "invalid_max_links", "invalid_can_delete", "invalid_metadata", "retention_active", "lock_conflict", "compliance_extend_only", "lock_privilege_required", "lock_record_unreadable", "lock_below_minimum", "invalid_lock", "invalid_hold", "reserved_key", "keys_bucket_missing", "encryption_key_missing", "unauthorized", "session_mismatch", "token_rejected", "reserved_user_id", "invalid_scopes", "user_mismatch", "transcode_not_configured", "transcode_runner_unavailable", "transcode_launch_failed", "original_not_retained", "locale_not_allowed", "captions_provider_rate_limited", "captions_provider_error", "captions_failed", "webhook_secret_missing", "worker_auth_secret_missing", "worker_error", "http_error", "too_large", "unsupported_type", "type_mismatch", "token_unavailable", "page_cap", "render_failed", "capability_unavailable"];
|
|
2
2
|
/** A stable error code: match on it, not on `message`. */
|
|
3
3
|
type DevulturErrorCode = (typeof DEVULTUR_ERROR_CODES)[number];
|
|
4
4
|
declare function isDevulturErrorCode(code: unknown): code is DevulturErrorCode;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { FunctionReference, PaginationResult, FunctionVisibility, DefaultFunctio
|
|
|
4
4
|
import { PropertyValidators, Value, ConvexError } from 'convex/values';
|
|
5
5
|
import { M as MediaRecord, P as ProgressRecord, D as DevulturComponentConfig } from './types-C0ruHUcu.js';
|
|
6
6
|
export { a as DevulturUploadConfig } from './types-C0ruHUcu.js';
|
|
7
|
-
export { a as DEVULTUR_ERROR_CODES, b as DevulturErrorCode, c as DevulturErrorDetails, d as DevulturErrorLabel, D as DevulturErrorLabels, e as describeDevulturError, f as devulturErrorLabels, i as isDevulturErrorCode } from './error-labels-
|
|
7
|
+
export { a as DEVULTUR_ERROR_CODES, b as DevulturErrorCode, c as DevulturErrorDetails, d as DevulturErrorLabel, D as DevulturErrorLabels, e as describeDevulturError, f as devulturErrorLabels, i as isDevulturErrorCode } from './error-labels-Sf6gow24.js';
|
|
8
8
|
export { dv } from './validators.js';
|
|
9
9
|
|
|
10
10
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VideoPlayerLabels } from '@devultur/react';
|
|
2
2
|
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-C2nUUY_f.js';
|
|
3
|
-
import { D as DevulturErrorLabels } from '../error-labels-
|
|
3
|
+
import { D as DevulturErrorLabels } from '../error-labels-Sf6gow24.js';
|
|
4
4
|
import '../types-C0ruHUcu.js';
|
|
5
5
|
import '@devultur/core';
|
|
6
6
|
import 'convex/values';
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
mediaPickerLabels,
|
|
6
6
|
previewLabels,
|
|
7
7
|
videoPlayerLabels
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-34XXHYL3.js";
|
|
9
9
|
import "../chunk-QBHIZBOQ.js";
|
|
10
10
|
import {
|
|
11
11
|
describeDevulturError,
|
|
12
12
|
labelText
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-V5YH4YJG.js";
|
|
14
14
|
|
|
15
15
|
// src/locales/es-formal.ts
|
|
16
16
|
var TRY_AGAIN = "Vuelva a intentarlo.";
|
|
@@ -30,6 +30,7 @@ var devulturErrorLabels2 = {
|
|
|
30
30
|
if (details.field === "tags") return "Use como m\xE1ximo 20 etiquetas, de hasta 50 caracteres cada una.";
|
|
31
31
|
return labelText(devulturErrorLabels.invalid_media_metadata, details);
|
|
32
32
|
},
|
|
33
|
+
grant_in_query: "Env\xEDe el permiso de descarga en el encabezado Authorization, nunca en una URL.",
|
|
33
34
|
lock_conflict: `La protecci\xF3n del archivo cambi\xF3 mientras tanto. ${TRY_AGAIN}`,
|
|
34
35
|
lock_privilege_required: "No tiene permiso para acortar ni quitar la protecci\xF3n de este archivo.",
|
|
35
36
|
encryption_key_missing: "Este archivo ya no se puede leer. Vuelva a subirlo.",
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VideoPlayerLabels } from '@devultur/react';
|
|
2
2
|
import { A as AttachmentLabels, M as MediaLibraryLabels, a as MediaPickerLabels, P as PreviewLabels } from '../preview-labels-C2nUUY_f.js';
|
|
3
|
-
import { D as DevulturErrorLabels } from '../error-labels-
|
|
3
|
+
import { D as DevulturErrorLabels } from '../error-labels-Sf6gow24.js';
|
|
4
4
|
import '../types-C0ruHUcu.js';
|
|
5
5
|
import '@devultur/core';
|
|
6
6
|
import 'convex/values';
|
package/dist/locales/es.js
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
mediaPickerLabels,
|
|
6
6
|
previewLabels,
|
|
7
7
|
videoPlayerLabels
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-34XXHYL3.js";
|
|
9
9
|
import "../chunk-QBHIZBOQ.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-V5YH4YJG.js";
|
|
11
11
|
export {
|
|
12
12
|
attachmentLabels,
|
|
13
13
|
devulturErrorLabels,
|
package/dist/react.js
CHANGED
package/docs/guides/plugins.md
CHANGED
|
@@ -8,7 +8,7 @@ same API as yours. Add plugins to extend the Worker, or replace a default one.
|
|
|
8
8
|
import { createWorker, defaultPlugins } from "@devultur/self-host";
|
|
9
9
|
import { usageLog } from "./plugins/usage-log";
|
|
10
10
|
|
|
11
|
-
export { DownloadLink } from "@devultur/self-host";
|
|
11
|
+
export { DownloadGrants, DownloadLink } from "@devultur/self-host";
|
|
12
12
|
|
|
13
13
|
export default createWorker({
|
|
14
14
|
plugins: [...defaultPlugins({ transcode: { maxResolution: "1080p" } }), usageLog()],
|
|
@@ -22,7 +22,7 @@ export default createWorker({
|
|
|
22
22
|
| `staticConfig(config)` | Applies the [rules](self-host.md#rules) to every request. Put it first: later plugins narrow it. |
|
|
23
23
|
| `workerSecretAuth()` | Control routes require `Authorization: Bearer <WORKER_AUTH_SECRET>`; the transcode runner uploads with the same secret. |
|
|
24
24
|
| `credentialPolicy(options?)` | Decides before a credential is issued. Without options it issues what is asked; `maxTtlSeconds: { viewer: 3600 }` caps a kind. |
|
|
25
|
-
| `downloadLinks()` | `POST /v1/token/download` and `GET /v1/download/<id>` (needs the `DOWNLOAD_LINKS` Durable Object). Without it
|
|
25
|
+
| `downloadLinks()` | `POST /v1/token/download` and `GET /v1/download/<id>` (needs the `DOWNLOAD_LINKS` Durable Object), and download grants: `/v1/token/grant` and `/v1/grant/*` (also need `DOWNLOAD_GRANTS`). Without it they answer `404`. |
|
|
26
26
|
|
|
27
27
|
`createWorker()` refuses to start when no plugin authenticates requests, so dropping `workerSecretAuth()` without
|
|
28
28
|
an auth plugin of yours fails at deploy, not in production.
|
|
@@ -42,6 +42,7 @@ interface WorkerPlugin {
|
|
|
42
42
|
routes?: Array<{ path: string; app: Hono }>;
|
|
43
43
|
issueCredential?: (context: Context, request: CredentialRequest) => CredentialDecision | Promise<CredentialDecision>;
|
|
44
44
|
beforeLinkRedeem?: (context: Context, link: DownloadLinkInfo) => Response | null | Promise<Response | null>;
|
|
45
|
+
authorizeGrant?: (context: Context, request: GrantAccessRequest) => Response | null | Promise<Response | null>;
|
|
45
46
|
authorizeLockChange?: (context: Context, request: LockChangeRequest) => LockChangeDecision | Promise<LockChangeDecision>;
|
|
46
47
|
onLockAudit?: (context: Context, record: LockAuditRecord) => void | Promise<void>;
|
|
47
48
|
}
|
|
@@ -94,8 +95,8 @@ updateRequestState(context, { context: { appId: "web" } });
|
|
|
94
95
|
|
|
95
96
|
## Hooks
|
|
96
97
|
|
|
97
|
-
**`issueCredential`** runs before the Worker issues a viewer token, an upload token, a download link
|
|
98
|
-
service token. It gets the `kind`, the `scopes`, the `path` it is bound to and the requested `expiresAt` (epoch ms).
|
|
98
|
+
**`issueCredential`** runs before the Worker issues a viewer token, an upload token, a download link, a download grant
|
|
99
|
+
or the runner's service token. It gets the `kind`, the `scopes`, the `path` it is bound to and the requested `expiresAt` (epoch ms).
|
|
99
100
|
Return `{ allow: false, response }` to refuse, or `{ allow: true, expiresAt?, claims? }` to issue it: `expiresAt`
|
|
100
101
|
caps the expiry, and `claims` are added to a token. The hooks of every plugin run in order: the first refusal wins,
|
|
101
102
|
the earliest `expiresAt` applies, and the claims of all of them are added.
|
|
@@ -120,6 +121,12 @@ allow gets `403 { "code": "token_rejected" }`; which claim failed is only logged
|
|
|
120
121
|
**`beforeLinkRedeem`** runs before `GET /v1/download/<id>` spends a use of a link. Return a `Response` to refuse it
|
|
121
122
|
(the use isn't spent), or `null` to let it go on. It gets the link's `storagePrefix`, `key` and plugin `context`.
|
|
122
123
|
|
|
124
|
+
**`authorizeGrant`** runs before a download grant is used, once the Worker checked the grant is live and belongs to the
|
|
125
|
+
request's storage prefix: `action` is `head`, `issue-link`, `delete-file` or `revoke` (its bearer), or `owner-revoke`
|
|
126
|
+
(the owner, by its public id). It also gets the `grant` (its key, caps, `linksIssued`, metadata and the plugin `context`
|
|
127
|
+
it was issued with, never its secret). Return a `Response` to refuse (a refused link spends nothing), or `null`. Use it
|
|
128
|
+
to tie a grant to the credential that issued it, for example to refuse it once that credential is revoked.
|
|
129
|
+
|
|
123
130
|
**`authorizeLockChange`** runs before the Worker changes a lock ([Retention and holds](object-lock.md)):
|
|
124
131
|
`PUT /v1/lock/<key>` once per change, and `POST /v1/lock/hold` once per page. It gets:
|
|
125
132
|
|
|
@@ -173,7 +180,8 @@ const auditToD1: WorkerPlugin = {
|
|
|
173
180
|
## After the route
|
|
174
181
|
|
|
175
182
|
- `getRouteResult(context)` tells a middleware that runs after `await next()` what the route did: `redeemedLink`
|
|
176
|
-
(the download link just redeemed), `
|
|
183
|
+
(the download link just redeemed), `issuedGrant` and `revokedGrant` (a download grant, with its public id; a revoke
|
|
184
|
+
says `by: "bearer"` or `"owner"`), `grantDeletedKey` (a grant deleted its file), `originalDeleted` (`transcode.complete` deleted the original),
|
|
177
185
|
`originalRetained` (it kept a locked original instead) and
|
|
178
186
|
`transcodeJob` (the job a runner callback belongs to, with its plugin `context`).
|
|
179
187
|
- `getPendingUpload(context)`, before the route, returns the upload an upload URL points to: its key, storage key,
|
package/docs/guides/self-host.md
CHANGED
|
@@ -44,7 +44,7 @@ media Worker from `@devultur/self-host`:
|
|
|
44
44
|
|
|
45
45
|
```typescript
|
|
46
46
|
import { createWorker } from "@devultur/self-host";
|
|
47
|
-
export { DownloadLink } from "@devultur/self-host";
|
|
47
|
+
export { DownloadGrants, DownloadLink } from "@devultur/self-host";
|
|
48
48
|
|
|
49
49
|
export default createWorker();
|
|
50
50
|
```
|
|
@@ -98,7 +98,7 @@ It prints a config snippet with the new namespace's `id`. Paste that id into the
|
|
|
98
98
|
|
|
99
99
|
#### 4. Write `wrangler.toml`
|
|
100
100
|
|
|
101
|
-
Bind both buckets, the KV namespace and the `DownloadLink` Durable
|
|
101
|
+
Bind both buckets, the KV namespace and the `DownloadLink` and `DownloadGrants` Durable Objects:
|
|
102
102
|
|
|
103
103
|
```toml
|
|
104
104
|
name = "media"
|
|
@@ -123,13 +123,22 @@ id = "<kv-namespace-id>"
|
|
|
123
123
|
name = "DOWNLOAD_LINKS"
|
|
124
124
|
class_name = "DownloadLink"
|
|
125
125
|
|
|
126
|
+
[[durable_objects.bindings]]
|
|
127
|
+
name = "DOWNLOAD_GRANTS"
|
|
128
|
+
class_name = "DownloadGrants"
|
|
129
|
+
|
|
126
130
|
[[migrations]]
|
|
127
131
|
tag = "v1"
|
|
128
132
|
new_sqlite_classes = ["DownloadLink"]
|
|
133
|
+
|
|
134
|
+
[[migrations]]
|
|
135
|
+
tag = "v2"
|
|
136
|
+
new_sqlite_classes = ["DownloadGrants"]
|
|
129
137
|
```
|
|
130
138
|
|
|
131
|
-
Without the `DOWNLOAD_LINKS` binding, `POST /v1/token/download` answers `501
|
|
132
|
-
|
|
139
|
+
Without the `DOWNLOAD_LINKS` binding, `POST /v1/token/download` answers `501`; without `DOWNLOAD_GRANTS`, the download
|
|
140
|
+
grant routes do. A Worker deployed before download grants keeps its `v1` migration and adds `v2`. For staging and
|
|
141
|
+
production in one file, see [Per-environment config](#per-environment-config).
|
|
133
142
|
|
|
134
143
|
#### 5. Set the secrets
|
|
135
144
|
|
|
@@ -189,6 +198,10 @@ account_id = "<your-account-id>"
|
|
|
189
198
|
tag = "v1"
|
|
190
199
|
new_sqlite_classes = ["DownloadLink"]
|
|
191
200
|
|
|
201
|
+
[[migrations]]
|
|
202
|
+
tag = "v2"
|
|
203
|
+
new_sqlite_classes = ["DownloadGrants"]
|
|
204
|
+
|
|
192
205
|
# Staging
|
|
193
206
|
[env.staging]
|
|
194
207
|
name = "media-staging"
|
|
@@ -209,6 +222,10 @@ id = "<staging-kv-namespace-id>"
|
|
|
209
222
|
name = "DOWNLOAD_LINKS"
|
|
210
223
|
class_name = "DownloadLink"
|
|
211
224
|
|
|
225
|
+
[[env.staging.durable_objects.bindings]]
|
|
226
|
+
name = "DOWNLOAD_GRANTS"
|
|
227
|
+
class_name = "DownloadGrants"
|
|
228
|
+
|
|
212
229
|
# Production
|
|
213
230
|
[env.production]
|
|
214
231
|
name = "media-production"
|
|
@@ -228,6 +245,10 @@ id = "<production-kv-namespace-id>"
|
|
|
228
245
|
[[env.production.durable_objects.bindings]]
|
|
229
246
|
name = "DOWNLOAD_LINKS"
|
|
230
247
|
class_name = "DownloadLink"
|
|
248
|
+
|
|
249
|
+
[[env.production.durable_objects.bindings]]
|
|
250
|
+
name = "DOWNLOAD_GRANTS"
|
|
251
|
+
class_name = "DownloadGrants"
|
|
231
252
|
```
|
|
232
253
|
|
|
233
254
|
`vars` aren't inherited either: repeat `[env.<name>.vars]` (for example `TRANSCODE_RUNNER`) in each one. Then set
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devultur/convex",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Convex component for Devultur media: media records, uploads, transcodes, watch progress and React bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"convex",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"docs"
|
|
70
70
|
],
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@devultur/core": "1.
|
|
73
|
-
"@devultur/react": "1.
|
|
72
|
+
"@devultur/core": "1.6.0",
|
|
73
|
+
"@devultur/react": "1.6.0"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
76
|
"convex": ">=1.25.0",
|