@ceed/cds 1.12.1 → 1.12.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/dist/index.cjs CHANGED
@@ -5991,14 +5991,14 @@ var Uploader = import_react48.default.memo(
5991
5991
  uploads.forEach((file) => {
5992
5992
  const ext = file.name.split(".").pop() || "";
5993
5993
  if (!fileExtension.test(ext)) {
5994
- throw new Error("Please upload acceptable file type.");
5994
+ throw new Error("Please upload the correct file type.");
5995
5995
  }
5996
5996
  });
5997
5997
  if (maxFileSize) {
5998
5998
  uploads.forEach((file) => {
5999
5999
  if (file.size > maxFileSize) {
6000
6000
  throw new Error(
6001
- `One or more File size exceeded the maximum limit. Each file size must be ${getFileSize(
6001
+ `One or more files exceeded the maximum file size. Each file size must be ${getFileSize(
6002
6002
  maxFileSize
6003
6003
  )} or less.`
6004
6004
  );
@@ -6007,7 +6007,7 @@ var Uploader = import_react48.default.memo(
6007
6007
  }
6008
6008
  const totalFileSize = [...files, ...uploads].reduce((acc, file) => acc + file.size, 0);
6009
6009
  if (totalFileSize > maxFileTotalSize) {
6010
- throw new Error(`Total File size exceeded the maximum limit.`);
6010
+ throw new Error(`The total file size exceeds the maximum limit.`);
6011
6011
  }
6012
6012
  const newFiles = [...files, ...uploads];
6013
6013
  if (maxCount && [...uploaded, ...newFiles].length > maxCount) {
package/dist/index.js CHANGED
@@ -5969,14 +5969,14 @@ var Uploader = React45.memo(
5969
5969
  uploads.forEach((file) => {
5970
5970
  const ext = file.name.split(".").pop() || "";
5971
5971
  if (!fileExtension.test(ext)) {
5972
- throw new Error("Please upload acceptable file type.");
5972
+ throw new Error("Please upload the correct file type.");
5973
5973
  }
5974
5974
  });
5975
5975
  if (maxFileSize) {
5976
5976
  uploads.forEach((file) => {
5977
5977
  if (file.size > maxFileSize) {
5978
5978
  throw new Error(
5979
- `One or more File size exceeded the maximum limit. Each file size must be ${getFileSize(
5979
+ `One or more files exceeded the maximum file size. Each file size must be ${getFileSize(
5980
5980
  maxFileSize
5981
5981
  )} or less.`
5982
5982
  );
@@ -5985,7 +5985,7 @@ var Uploader = React45.memo(
5985
5985
  }
5986
5986
  const totalFileSize = [...files, ...uploads].reduce((acc, file) => acc + file.size, 0);
5987
5987
  if (totalFileSize > maxFileTotalSize) {
5988
- throw new Error(`Total File size exceeded the maximum limit.`);
5988
+ throw new Error(`The total file size exceeds the maximum limit.`);
5989
5989
  }
5990
5990
  const newFiles = [...files, ...uploads];
5991
5991
  if (maxCount && [...uploaded, ...newFiles].length > maxCount) {