@astrale-os/kernel-server 0.5.0-beta.47 → 0.5.0-beta.48

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.
@@ -1,7 +1,7 @@
1
1
  import * as codecs from '@astrale-os/kernel-protocol/codecs';
2
2
  import * as errors from '@astrale-os/kernel-protocol/errors';
3
3
  import * as protocol from '@astrale-os/kernel-protocol/invocation';
4
- import { MEDIA_TYPE as PUBLICATION_MEDIA_TYPE, PATH as PUBLICATION_PATH, url as publicationUrl, } from '@astrale-os/kernel-protocol/publication/publication';
4
+ import { mediaType as publicationMediaType, PATH as PUBLICATION_PATH, url as publicationUrl, } from '@astrale-os/kernel-protocol/publication/publication';
5
5
  import { reference as publicationReference } from '@astrale-os/kernel-protocol/publication/reference';
6
6
  import * as routes from '@astrale-os/kernel-protocol/routes';
7
7
  import { classifyError, RequestBodyInvalidError, RequestBodyTooLargeError, } from '../errors/index.js';
@@ -44,7 +44,7 @@ export function mountRoutes(app, source, deliveryProvider, handler, active, next
44
44
  status: 200,
45
45
  headers: {
46
46
  ...responseCors,
47
- 'content-type': PUBLICATION_MEDIA_TYPE,
47
+ 'content-type': publicationMediaType(snapshot.publication),
48
48
  etag: quoteEtag(snapshot.publication.etag),
49
49
  'cache-control': 'public, max-age=0, must-revalidate, no-transform',
50
50
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-server",
3
- "version": "0.5.0-beta.47",
3
+ "version": "0.5.0-beta.48",
4
4
  "description": "Portable HTTP and WebSocket boundary for Astrale invocation, publication, installation, and issuer protocols",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@astrale-os/kernel-core": "0.9.0-beta.42",
37
37
  "@astrale-os/kernel-dsl": "0.2.0-beta.30",
38
- "@astrale-os/kernel-protocol": "0.5.0-beta.45",
38
+ "@astrale-os/kernel-protocol": "0.5.0-beta.46",
39
39
  "hono": "^4.6.20",
40
40
  "msgpackr": "^2.0.5"
41
41
  },