@filerobot/utils
Advanced tools
Comparing version 0.0.0-beta.65 to 0.0.0-beta.66
import { TIME_OPTIONS } from './constants'; | ||
import getItemIcon from './getItemIcon'; | ||
import getFileExtension from '../lib/getFileExtension'; | ||
import isSupportedVideo from '../lib/isSupportedVideo'; | ||
export default (function (file, i18n) { | ||
var _meta$img_w, _meta$img_h, _meta$playlists, _meta$playlists2; | ||
var _meta$img_w, _meta$img_h; | ||
@@ -12,6 +11,4 @@ var meta = file === null || file === void 0 ? void 0 : file.meta; | ||
var isDefined = width && height; | ||
var isVideo = isSupportedVideo(file); | ||
var videoDuration = meta === null || meta === void 0 ? void 0 : meta.video_duration; | ||
var videoTranscodingProgress = file.transcodingProgress ? file.transcodingProgress + "%" : (meta === null || meta === void 0 ? void 0 : (_meta$playlists = meta.playlists) === null || _meta$playlists === void 0 ? void 0 : _meta$playlists.length) > 0 ? i18n('yes') : isVideo ? i18n('no') : undefined; | ||
var videoTranscodingStatus = file.transcodingStatus || (meta === null || meta === void 0 ? void 0 : (_meta$playlists2 = meta.playlists) === null || _meta$playlists2 === void 0 ? void 0 : _meta$playlists2.length) > 0 ? file.transcodingStatus || i18n('ok') : undefined; | ||
var transcodingProgress = file.transcodingProgress; | ||
var uuid = file.uuid; | ||
@@ -46,6 +43,6 @@ var name = file.name; | ||
previewUrl: previewUrl, | ||
meta: meta, | ||
videoDuration: videoDuration, | ||
videoTranscodingProgress: videoTranscodingProgress, | ||
videoTranscodingStatus: videoTranscodingStatus | ||
transcodingProgress: transcodingProgress | ||
}; | ||
}); |
@@ -6,3 +6,3 @@ { | ||
"types": "types/index.d.ts", | ||
"version": "0.0.0-beta.65", | ||
"version": "0.0.0-beta.66", | ||
"files": [ | ||
@@ -15,3 +15,3 @@ "/dist", | ||
"dependencies": { | ||
"@filerobot/icons": "0.0.0-beta.65", | ||
"@filerobot/icons": "0.0.0-beta.66", | ||
"abortcontroller-polyfill": "^1.4.0", | ||
@@ -18,0 +18,0 @@ "lodash.throttle": "^4.1.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97
2535
118020
+ Added@filerobot/icons@0.0.0-beta.66(transitive)
- Removed@filerobot/icons@0.0.0-beta.65(transitive)