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

@ubrorg/card

Package Overview
Dependencies
Maintainers
10
Versions
198
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubrorg/card - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

25

lib/index.js

@@ -25,4 +25,3 @@ function qs(params) {

maintain: false,
arrow: true,
onLikeTap: function onLikeTap() {}
arrow: true
},

@@ -47,3 +46,23 @@ data: {

handleLikeTap: function handleLikeTap(e) {
this.props.onLikeTap(e, this.props);
var _this = this;
var id = e.target.dataset.id;
var favoriteStatus = this.props.favoriteStatus;
var url = favoriteStatus ? '/api/users/favorites/del/1.0' : '/api/users/favorites/add/1.0';
this.$page.request({
url: url,
method: 'POST',
data: {
ttid: 6,
id: id
},
success: function success() {
_this.setData({
favoriteStatus: !favoriteStatus
});
},
fail: function fail(res) {
console.error(res);
}
});
},

@@ -50,0 +69,0 @@ handleNavigatorTap: function handleNavigatorTap(e) {

2

package.json
{
"name": "@ubrorg/card",
"version": "0.5.1",
"version": "0.6.0",
"description": "card",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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