Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-view-files

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-view-files - npm Package Compare versions

Comparing version 1.0.8 to 1.0.9

11

dist/components/MediaPreview/index.js

@@ -10,3 +10,2 @@ "use strict";

var _reactPdf = require("react-pdf");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _DropdownMenuOptions = _interopRequireDefault(require("../DropdownMenuOptions"));

@@ -419,3 +418,3 @@ var _Modal = require("../Modal");

var action = _ref4.action;
if (action === "view") onClick === null || onClick === void 0 || onClick(selectedFile);
if (action === "view") onClick === null || onClick === void 0 || onClick(selectedFile, fileExtension);
if (action === "download") downloadFile();

@@ -591,10 +590,2 @@ if (action === "rename") setActiveRename(true);

});
};
MediaPreview.propTypes = {
file: _propTypes["default"].object.isRequired,
onClick: _propTypes["default"].func,
displayFooter: _propTypes["default"].bool,
hideDropdown: _propTypes["default"].bool,
style: _propTypes["default"].object,
cover: _propTypes["default"].bool
};

@@ -9,3 +9,2 @@ "use strict";

var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _ContentViewer = _interopRequireDefault(require("../ContentViewer"));

@@ -108,5 +107,2 @@ var _MediaViewDocx = _interopRequireDefault(require("../MediaViewDocx"));

});
};
MediaView.propTypes = {
file: _propTypes["default"].object.isRequired
};

2

package.json
{
"name": "react-view-files",
"version": "1.0.8",
"version": "1.0.9",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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