@orthacms/media-provider-local 0.4.3 → 0.5.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.
@@ -1,4 +1,4 @@
1
- import type { StorageProvider } from '@orthacms/media-server';
1
+ import type { StorageProvider } from '@orthacms/media-domain';
2
2
  /** Local filesystem provider settings. */
3
3
  export interface LocalStorageConfig {
4
4
  /** Directory blobs live under (absolute or project-relative). */
@@ -8,7 +8,7 @@ const promises_1 = require("node:fs/promises");
8
8
  const node_path_1 = require("node:path");
9
9
  const node_stream_1 = require("node:stream");
10
10
  const promises_2 = require("node:stream/promises");
11
- const media_server_1 = require("@orthacms/media-server");
11
+ const media_domain_1 = require("@orthacms/media-domain");
12
12
  /**
13
13
  * Raised when a storage key resolves outside the provider's `rootDir`.
14
14
  *
@@ -216,7 +216,7 @@ function createLocalStorageProvider(config) {
216
216
  // would hide an outage behind a plausible 404.
217
217
  const handle = await (0, promises_1.open)(absolute(storageKey), 'r').catch((error) => {
218
218
  if (error.code === 'ENOENT' || error.code === 'ENOTDIR') {
219
- throw new media_server_1.ObjectNotFoundError(storageKey, error);
219
+ throw new media_domain_1.ObjectNotFoundError(storageKey, error);
220
220
  }
221
221
  throw error;
222
222
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orthacms/media-provider-local",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "description": "@orthacms/media-provider-local — part of Ortha CMS.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/ortha-source/ortha-cms/tree/main/packages/media/provider-local",
@@ -25,7 +25,7 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@orthacms/media-server": "^0.4.3",
28
+ "@orthacms/media-domain": "^0.5.1",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "publishConfig": {