@orthacms/media-provider-azure 0.4.3 → 0.5.2

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 CHANGED
@@ -1,6 +1,7 @@
1
1
  # @orthacms/media-provider-azure
2
2
 
3
- Part of [Ortha CMS](https://github.com/ortha-source/ortha-cms).
3
+ Part of [Ortha CMS](https://orthacms.com) — the source is on
4
+ [GitHub](https://github.com/ortha-source/ortha-cms/tree/main/packages/media/provider-azure).
4
5
 
5
6
  ```sh
6
7
  npm install @orthacms/media-provider-azure
@@ -1,5 +1,5 @@
1
1
  import { type ContainerClient } from '@azure/storage-blob';
2
- import type { StorageProvider } from '@orthacms/media-server';
2
+ import type { StorageProvider } from '@orthacms/media-domain';
3
3
  /**
4
4
  * Settings for Azure Blob Storage.
5
5
  *
@@ -4,7 +4,7 @@ exports.createAzureStorageProvider = createAzureStorageProvider;
4
4
  const node_crypto_1 = require("node:crypto");
5
5
  const node_stream_1 = require("node:stream");
6
6
  const storage_blob_1 = require("@azure/storage-blob");
7
- const media_server_1 = require("@orthacms/media-server");
7
+ const media_domain_1 = require("@orthacms/media-domain");
8
8
  /** How much of the stream is buffered per block while uploading. */
9
9
  const UPLOAD_BUFFER_BYTES = 4 * 1024 * 1024;
10
10
  /** How many blocks are in flight at once. */
@@ -133,13 +133,13 @@ function createAzureStorageProvider(config) {
133
133
  if (!body) {
134
134
  // Node always populates it; a browser bundle would not, and
135
135
  // an empty body here is not something to stream.
136
- throw new media_server_1.ObjectNotFoundError(storageKey);
136
+ throw new media_domain_1.ObjectNotFoundError(storageKey);
137
137
  }
138
138
  return body;
139
139
  }
140
140
  catch (error) {
141
141
  if (isMissing(error)) {
142
- throw new media_server_1.ObjectNotFoundError(storageKey, error);
142
+ throw new media_domain_1.ObjectNotFoundError(storageKey, error);
143
143
  }
144
144
  throw error;
145
145
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@orthacms/media-provider-azure",
3
- "version": "0.4.3",
3
+ "version": "0.5.2",
4
4
  "description": "@orthacms/media-provider-azure — part of Ortha CMS.",
5
5
  "license": "MIT",
6
- "homepage": "https://github.com/ortha-source/ortha-cms/tree/main/packages/media/provider-azure",
6
+ "homepage": "https://orthacms.com",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "git+https://github.com/ortha-source/ortha-cms.git",
@@ -26,7 +26,7 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@azure/storage-blob": "^12.26.0",
29
- "@orthacms/media-server": "^0.4.3",
29
+ "@orthacms/media-domain": "^0.5.2",
30
30
  "tslib": "^2.3.0"
31
31
  },
32
32
  "publishConfig": {