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 to 1.1.3-0

lib/miniapp-wechat/fmtEvent.d.ts

4

lib/index.js

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

var onError = function onError(e) {
var onError = function (e) {
var fallbackSource = props.fallbackSource,

@@ -45,3 +45,3 @@ _props$onError = props.onError,

var onLoad = function onLoad(e) {
var onLoad = function (e) {
var _props$onLoad = props.onLoad,

@@ -48,0 +48,0 @@ onLoad = _props$onLoad === void 0 ? function () {} : _props$onLoad;

@@ -19,5 +19,5 @@ "use strict";

lazyLoad: false,
onClick: function onClick(e) {},
onLoad: function onLoad(e) {},
onError: function onError(e) {}
onClick: function onClick() {},
onLoad: function onLoad() {},
onError: function onError() {}
},

@@ -27,3 +27,3 @@ onInit: function onInit() {

},
didMount: function didMount() {
didMount: function () {
if (!my.canIUse('component2')) {

@@ -34,15 +34,15 @@ this.initImage();

methods: {
onClick: function onClick(e) {
onClick: function (e) {
var event = (0, _fmtEvent.default)(this.props, e);
this.props.onClick(event);
},
onLoad: function onLoad(e) {
onLoad: function (e) {
var event = (0, _fmtEvent.default)(this.props, e);
this.props.onLoad(event);
},
onError: function onError(e) {
onError: function (e) {
var event = (0, _fmtEvent.default)(this.props, e);
this.props.onError(event);
},
initImage: function initImage(e) {
initImage: function () {
var mode = 'aspectFit';

@@ -49,0 +49,0 @@

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

@@ -23,3 +23,3 @@ "license": "BSD-3-Clause",

"type": "git",
"url": "git+https://github.com/raxjs/rax-image.git"
"url": "git+https://github.com/raxjs/rax-components.git"
},

@@ -61,4 +61,5 @@ "keywords": [

"miniappConfig": {
"main": "lib/miniapp/index"
"main": "lib/miniapp/index",
"main:wechat": "lib/miniapp-wechat/index"
}
}
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