@orthacms/media-provider-gcs 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-gcs
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-gcs).
4
5
 
5
6
  ```sh
6
7
  npm install @orthacms/media-provider-gcs
@@ -1,5 +1,5 @@
1
1
  import { type Bucket } from '@google-cloud/storage';
2
- import type { StorageProvider } from '@orthacms/media-server';
2
+ import type { StorageProvider } from '@orthacms/media-domain';
3
3
  /**
4
4
  * Settings for Google Cloud Storage.
5
5
  *
@@ -5,7 +5,7 @@ const node_crypto_1 = require("node:crypto");
5
5
  const node_stream_1 = require("node:stream");
6
6
  const promises_1 = require("node:stream/promises");
7
7
  const storage_1 = require("@google-cloud/storage");
8
- const media_server_1 = require("@orthacms/media-server");
8
+ const media_domain_1 = require("@orthacms/media-domain");
9
9
  /** Reduces a file name to one safe key segment. Mirrors the other providers. */
10
10
  function sanitize(fileName) {
11
11
  const cleaned = fileName.replace(/[^A-Za-z0-9_.-]+/g, '_');
@@ -98,7 +98,7 @@ function createGcsStorageProvider(config) {
98
98
  }
99
99
  catch (error) {
100
100
  if (isMissing(error)) {
101
- throw new media_server_1.ObjectNotFoundError(storageKey, error);
101
+ throw new media_domain_1.ObjectNotFoundError(storageKey, error);
102
102
  }
103
103
  throw error;
104
104
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@orthacms/media-provider-gcs",
3
- "version": "0.4.3",
3
+ "version": "0.5.2",
4
4
  "description": "@orthacms/media-provider-gcs — part of Ortha CMS.",
5
5
  "license": "MIT",
6
- "homepage": "https://github.com/ortha-source/ortha-cms/tree/main/packages/media/provider-gcs",
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
  "@google-cloud/storage": "^7.14.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": {