rax-image
Advanced tools
Comparing version 1.1.2-0 to 1.1.2-1
@@ -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 @@ } |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
553
21345