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

rax-image

Package Overview
Dependencies
Maintainers
8
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-image - npm Package Compare versions

Comparing version 1.1.2-0 to 1.1.2-1

5

lib/index.js

@@ -33,8 +33,7 @@ "use strict";

var onError = function onError(e) {
var _props$fallbackSource = props.fallbackSource,
fallbackSource = _props$fallbackSource === void 0 ? {} : _props$fallbackSource,
var fallbackSource = props.fallbackSource,
_props$onError = props.onError,
onError = _props$onError === void 0 ? function () {} : _props$onError;
if (fallbackSource.uri && source.uri !== fallbackSource.uri) {
if (fallbackSource && fallbackSource.uri && source.uri !== fallbackSource.uri) {
setSource(fallbackSource);

@@ -41,0 +40,0 @@ }

2

lib/types.d.ts
import { HTMLAttributes, RefAttributes, CSSProperties, SyntheticEvent } from 'rax';
export interface Source {
uri?: string;
uri: string;
width?: string | number;

@@ -5,0 +5,0 @@ height?: string | number;

{
"name": "rax-image",
"version": "1.1.2-0",
"version": "1.1.2-1",
"description": "Image component for Rax.",

@@ -5,0 +5,0 @@ "license": "BSD-3-Clause",

@@ -9,3 +9,3 @@ import {

export interface Source {
uri?: string;
uri: string;
width?: string | number;

@@ -12,0 +12,0 @@ height?: string | number;

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