Socket
Socket
Sign inDemoInstall

@filerobot/utils

Package Overview
Dependencies
Maintainers
1
Versions
1278
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filerobot/utils - npm Package Compare versions

Comparing version 0.0.0-beta.65 to 0.0.0-beta.66

lib/formatSeconds.js

11

lib/getFileDetails.js
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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc