@punks/backend-entity-manager 0.0.216 → 0.0.217

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/cjs/index.js CHANGED
@@ -21285,6 +21285,7 @@ exports.MediaLibraryService = class MediaLibraryService {
21285
21285
  fileName: input.fileName,
21286
21286
  contentType: input.contentType,
21287
21287
  folderId: input.folderId,
21288
+ providerId: this.defaultMediaProvider.getProviderId(),
21288
21289
  });
21289
21290
  return reference;
21290
21291
  }
@@ -28965,6 +28966,9 @@ exports.AwsS3MediaProvider = class AwsS3MediaProvider {
28965
28966
  constructor() {
28966
28967
  this.client = createClient$1(awsMediaSettings.value);
28967
28968
  }
28969
+ getProviderId() {
28970
+ return "awsS3";
28971
+ }
28968
28972
  getFileName(input) {
28969
28973
  const parsedRef = parseRef(input.ref);
28970
28974
  return parsedRef.path.split("/").pop() ?? "";