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

@dotdev/next-components

Package Overview
Dependencies
Maintainers
16
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotdev/next-components - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

9

dist/helpers/wishlist.js

@@ -41,2 +41,3 @@ "use strict";

var universal_cookie_1 = require("universal-cookie");
var Utils = require("../utils");
var Wishlist = /** @class */ (function () {

@@ -80,3 +81,3 @@ function Wishlist() {

this.getWishlist = function () {
if (!localStorage.getItem(_this.wishlistKey)) {
if (!Utils.getLocalStorage(_this.wishlistKey)) {
_this.getWishlistJSON();

@@ -86,3 +87,3 @@ }

_this.context.update({
wishlist: JSON.parse(localStorage.getItem(_this.wishlistKey)),
wishlist: JSON.parse(Utils.getLocalStorage(_this.wishlistKey)),
message: "WISHLIST_REQUEST_SUCCESS"

@@ -105,3 +106,3 @@ });

.then(function (data) {
localStorage.setItem(_this.wishlistKey, JSON.stringify(data));
Utils.setLocalStorage(_this.wishlistKey, JSON.stringify(data));
_this.context.update({

@@ -126,3 +127,3 @@ wishlist: data,

this.checkItem = function (productId, variantId) {
var local = localStorage.getItem(_this.wishlistKey);
var local = Utils.getLocalStorage(_this.wishlistKey);
var items = JSON.parse(local) ? JSON.parse(local).items : [];

@@ -129,0 +130,0 @@ return items.length

{
"name": "@dotdev/next-components",
"version": "1.0.12",
"version": "1.0.13",
"license": "SEE LICENSE IN LICENCE.md",

@@ -5,0 +5,0 @@ "description": "Common components for Next projects",

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