@aspan-corporation/ac-shared 1.0.28 → 1.0.29

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/lib/index.js CHANGED
@@ -14394,12 +14394,14 @@ import { extname } from "node:path";
14394
14394
  var JPEG_EXTENSION = "jpeg";
14395
14395
  var JPG_EXTENSION = "jpg";
14396
14396
  var HEIC_EXTENSION = "heic";
14397
+ var MOV_EXTENSION = "mov";
14397
14398
  var DEFAULT_THUMBS_EXTENSION = JPG_EXTENSION;
14398
14399
  var ALLOWED_EXTENSIONS = [
14399
14400
  JPEG_EXTENSION,
14400
14401
  JPG_EXTENSION,
14401
14402
  HEIC_EXTENSION
14402
14403
  ];
14404
+ var ALLOWED_VIDEO_EXTENSIONS = [MOV_EXTENSION];
14403
14405
  var THUMBNAIL_RESOLUTIONS = [
14404
14406
  [200, 200],
14405
14407
  [1180, 820]
@@ -14419,6 +14421,10 @@ var isAllowedExtension = (key) => {
14419
14421
  const ext = getKeyExtension(key);
14420
14422
  return ALLOWED_EXTENSIONS.includes(ext);
14421
14423
  };
14424
+ var isAllowedVideoExtension = (key) => {
14425
+ const ext = getKeyExtension(key);
14426
+ return ALLOWED_VIDEO_EXTENSIONS.includes(ext);
14427
+ };
14422
14428
 
14423
14429
  // src/utils/helpers.ts
14424
14430
  var getObjectWithAssumeRoleCommandOutputAttribute = (assumeRoleCommandOutput) => assumeRoleCommandOutput ? {
@@ -14817,6 +14823,7 @@ var getPersistenceStore = () => {
14817
14823
  };
14818
14824
  export {
14819
14825
  ALLOWED_EXTENSIONS,
14826
+ ALLOWED_VIDEO_EXTENSIONS,
14820
14827
  DEFAULT_THUMBS_EXTENSION,
14821
14828
  DynamoDBService,
14822
14829
  HEIC_EXTENSION,
@@ -14824,6 +14831,7 @@ export {
14824
14831
  JPG_EXTENSION,
14825
14832
  LocationService,
14826
14833
  Logger2 as Logger,
14834
+ MOV_EXTENSION,
14827
14835
  Metrics2 as Metrics,
14828
14836
  S3Service,
14829
14837
  SQSService,
@@ -14841,6 +14849,7 @@ export {
14841
14849
  getPersistenceStore,
14842
14850
  getThumbsKey,
14843
14851
  isAllowedExtension,
14852
+ isAllowedVideoExtension,
14844
14853
  normalizeErrorMessage,
14845
14854
  plumbingMiddleware,
14846
14855
  rootLogger