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

rc-image

Package Overview
Dependencies
Maintainers
4
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-image - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

2

es/Image.d.ts
import * as React from 'react';
import { GetContainer } from 'rc-util/lib/PortalWrapper';
import { PreviewProps } from './Preview';
import PreviewGroup from './PreviewGroup';

@@ -11,2 +12,3 @@ export interface ImagePreviewType {

maskClassName?: string;
icons?: PreviewProps['icons'];
}

@@ -13,0 +15,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> {

6

es/Image.js

@@ -55,3 +55,4 @@ import _extends from "@babel/runtime/helpers/esm/extends";

previewMask = _ref2.mask,
maskClassName = _ref2.maskClassName;
maskClassName = _ref2.maskClassName,
icons = _ref2.icons;

@@ -208,3 +209,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;

alt: alt,
getContainer: getPreviewContainer
getContainer: getPreviewContainer,
icons: icons
}));

@@ -211,0 +213,0 @@ };

import * as React from 'react';
import { GetContainer } from 'rc-util/lib/PortalWrapper';
import { PreviewProps } from './Preview';
import PreviewGroup from './PreviewGroup';

@@ -11,2 +12,3 @@ export interface ImagePreviewType {

maskClassName?: string;
icons?: PreviewProps['icons'];
}

@@ -13,0 +15,0 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElement>, 'placeholder' | 'onClick'> {

@@ -76,3 +76,4 @@ "use strict";

previewMask = _ref2.mask,
maskClassName = _ref2.maskClassName;
maskClassName = _ref2.maskClassName,
icons = _ref2.icons;

@@ -229,3 +230,4 @@ var src = previewSrc !== null && previewSrc !== void 0 ? previewSrc : imgSrc;

alt: alt,
getContainer: getPreviewContainer
getContainer: getPreviewContainer,
icons: icons
}));

@@ -232,0 +234,0 @@ };

{
"name": "rc-image",
"version": "5.1.0",
"version": "5.1.1",
"description": "React easy to use image component",

@@ -5,0 +5,0 @@ "keywords": [

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