New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rpldy/upload-preview

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/upload-preview - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

1

lib/defaults.js

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

var PREVIEW_DEFAULTS = (0, _shared.devFreeze)({
rememberPreviousBatches: false,
loadFirstOnly: false,

@@ -13,0 +14,0 @@ maxPreviewImageSize: 2e+7,

@@ -21,2 +21,4 @@ // @flow

export type PreviewOptions = {|
//whether to show previous batches' previews as opposed to just the last (default: false)
rememberPreviousBatches?: boolean,
//whether to load only the first upload-preview in case of a batch upload (default: false)

@@ -23,0 +25,0 @@ loadFirstOnly?: boolean,

2

lib/usePreviewsLoader.js

@@ -81,3 +81,3 @@ "use strict";

}).filter(Boolean);
setPreviews(previewsData);
setPreviews(props.rememberPreviousBatches ? previews.concat(previewsData) : previewsData);
});

@@ -84,0 +84,0 @@ return previews;

{
"version": "0.2.1",
"version": "0.2.2",
"name": "@rpldy/upload-preview",

@@ -21,7 +21,7 @@ "description": "preview component to show image or video being uploaded",

"@rpldy/shared": "^0.2.0",
"@rpldy/shared-ui": "^0.2.1"
"@rpldy/shared-ui": "^0.2.2"
},
"devDependencies": {
"@rpldy/upload-button": "^0.2.1",
"@rpldy/upload-url-input": "^0.2.1",
"@rpldy/upload-button": "^0.2.2",
"@rpldy/upload-url-input": "^0.2.2",
"@storybook/addon-knobs": "^5.3.18",

@@ -38,3 +38,3 @@ "flow-bin": "^0.123.0",

},
"gitHead": "c290b86b5e705bc259ae34240ef5eaeae262f1ab"
"gitHead": "e0a9cc52ebf62f90471844208472d660f3e0e7cd"
}

@@ -40,3 +40,4 @@ <a href="https://badge.fury.io/js/%40rpldy%2Fupload-preview">

| PreviewComponent | React.ComponentType<any> | img &#124; video | The component that will show the preview
| rememberPreviousBatches | boolean | false | show previous batches' previews as opposed to just the last
## Example

@@ -43,0 +44,0 @@

@@ -24,2 +24,3 @@ import * as React from "react";

export interface PreviewOptions {
rememberPreviousBatches?: boolean;
loadFirstOnly?: boolean;

@@ -26,0 +27,0 @@ maxPreviewImageSize?: number;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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