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

react-image-upload

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-image-upload - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

dist/index.js

@@ -24,5 +24,5 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }

var styles = {"container":"_1Lxpd","content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"};
var styles = {"content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"};
var ExampleComponent = function ExampleComponent(_ref) {
var ImageUploader = function ImageUploader(_ref) {
var onFileAdded = _ref.onFileAdded,

@@ -57,4 +57,2 @@ onFileRemoved = _ref.onFileRemoved;

return /*#__PURE__*/React__default.createElement("div", {
className: styles.container
}, /*#__PURE__*/React__default.createElement("div", {
className: styles.content

@@ -101,6 +99,6 @@ }, /*#__PURE__*/React__default.createElement("div", {

loading: "lazy"
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null))));
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null)));
};
exports.ExampleComponent = ExampleComponent;
module.exports = ImageUploader;
//# sourceMappingURL=index.js.map

@@ -21,5 +21,5 @@ import React, { useRef, useState } from 'react';

var styles = {"container":"_1Lxpd","content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"};
var styles = {"content":"_2jwZj","imgWrapper":"_1Gs3W","btnWrapper":"_1gU9E","btn":"_1Pz2d"};
var ExampleComponent = function ExampleComponent(_ref) {
var ImageUploader = function ImageUploader(_ref) {
var onFileAdded = _ref.onFileAdded,

@@ -54,4 +54,2 @@ onFileRemoved = _ref.onFileRemoved;

return /*#__PURE__*/React.createElement("div", {
className: styles.container
}, /*#__PURE__*/React.createElement("div", {
className: styles.content

@@ -98,6 +96,6 @@ }, /*#__PURE__*/React.createElement("div", {

loading: "lazy"
}) : /*#__PURE__*/React.createElement(React.Fragment, null))));
}) : /*#__PURE__*/React.createElement(React.Fragment, null)));
};
export { ExampleComponent };
export default ImageUploader;
//# sourceMappingURL=index.modern.js.map

7

package.json
{
"name": "react-image-upload",
"version": "1.0.1",
"version": "1.0.2",
"description": "react library for uploading images",

@@ -14,2 +14,7 @@ "author": "chimdie",

},
"keywords": [
"react",
"image",
"upload"
],
"scripts": {

@@ -16,0 +21,0 @@ "build": "microbundle-crl --no-compress --format modern,cjs",

# react-image-upload
React package for uploading images.
> Made with create-react-library

@@ -16,11 +18,9 @@

```jsx
import React, { Component } from 'react'
import React from 'react'
import MyComponent from 'react-image-upload'
import ImageUploader from 'react-image-upload'
import 'react-image-upload/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
const App = () => {
return <ImageUploader />
}

@@ -27,0 +27,0 @@ ```

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