@koolbase/core 12.22.0 → 12.23.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.
@@ -216,6 +216,7 @@ export declare class KoolbaseStorage {
216
216
  bucket: string;
217
217
  path: string;
218
218
  transform?: KoolbaseImageTransform;
219
+ preset?: string;
219
220
  }): string;
220
221
  /**
221
222
  * Build the stable public CDN URL for a file in a public bucket.
@@ -556,6 +556,9 @@ class KoolbaseStorage {
556
556
  this.nudgeBootstrap?.();
557
557
  throw new storage_errors_js_1.KoolbaseStorageProjectIdentityError();
558
558
  }
559
+ // A named preset (Storage → Presets): the edge sizes it; no transform.
560
+ if (args.preset)
561
+ return KoolbaseStorage.publicUrlWithPreset({ projectId: pid, presetName: args.preset, bucket: args.bucket, path: args.path });
559
562
  return KoolbaseStorage.publicUrl({ projectId: pid, bucket: args.bucket, path: args.path, transform: args.transform });
560
563
  }
561
564
  /**
@@ -216,6 +216,7 @@ export declare class KoolbaseStorage {
216
216
  bucket: string;
217
217
  path: string;
218
218
  transform?: KoolbaseImageTransform;
219
+ preset?: string;
219
220
  }): string;
220
221
  /**
221
222
  * Build the stable public CDN URL for a file in a public bucket.
@@ -553,6 +553,9 @@ export class KoolbaseStorage {
553
553
  this.nudgeBootstrap?.();
554
554
  throw new KoolbaseStorageProjectIdentityError();
555
555
  }
556
+ // A named preset (Storage → Presets): the edge sizes it; no transform.
557
+ if (args.preset)
558
+ return KoolbaseStorage.publicUrlWithPreset({ projectId: pid, presetName: args.preset, bucket: args.bucket, path: args.path });
556
559
  return KoolbaseStorage.publicUrl({ projectId: pid, bucket: args.bucket, path: args.path, transform: args.transform });
557
560
  }
558
561
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koolbase/core",
3
- "version": "12.22.0",
3
+ "version": "12.23.0",
4
4
  "description": "Koolbase SDK core \u2014 shared behaviour behind @koolbase/react-native and @koolbase/js. Install one of those, not this.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/esm/index.d.ts",