@byline/storage-local 1.2.0 → 1.3.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/index.d.ts CHANGED
@@ -5,7 +5,5 @@
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
- export { extractImageMeta, generateImageVariants, isBypassMimeType, } from './image-processor.js';
9
8
  export { localStorageProvider } from './local-storage-provider.js';
10
- export type { ImageMeta, ImageVariantResult, ProcessImageResult } from './image-processor.js';
11
9
  export type { LocalStorageConfig } from './local-storage-provider.js';
package/dist/index.js CHANGED
@@ -5,5 +5,4 @@
5
5
  *
6
6
  * Copyright (c) Infonomic Company Limited
7
7
  */
8
- export { extractImageMeta, generateImageVariants, isBypassMimeType, } from './image-processor.js';
9
8
  export { localStorageProvider } from './local-storage-provider.js';
@@ -54,7 +54,7 @@ class LocalStorageProvider {
54
54
  this.baseUrl = config.baseUrl.endsWith('/') ? config.baseUrl.slice(0, -1) : config.baseUrl;
55
55
  }
56
56
  async upload(stream, options) {
57
- const storagePath = buildStoragePath(options.collection, options.filename);
57
+ const storagePath = options.targetStoragePath ?? buildStoragePath(options.collection, options.filename);
58
58
  const absolutePath = path.join(this.uploadDir, storagePath);
59
59
  // Ensure the target directory exists.
60
60
  fs.mkdirSync(path.dirname(absolutePath), { recursive: true });
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@byline/storage-local",
3
3
  "private": false,
4
4
  "license": "MPL-2.0",
5
- "version": "1.2.0",
5
+ "version": "1.3.0",
6
6
  "engines": {
7
7
  "node": ">=20.9.0"
8
8
  },
@@ -39,9 +39,8 @@
39
39
  ],
40
40
  "dependencies": {
41
41
  "npm-run-all": "^4.1.5",
42
- "sharp": "^0.34.5",
43
42
  "uuid": "^14.0.0",
44
- "@byline/core": "1.2.0"
43
+ "@byline/core": "1.3.0"
45
44
  },
46
45
  "devDependencies": {
47
46
  "@biomejs/biome": "2.4.14",