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

@deckweiss/cart

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deckweiss/cart - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

1

dist/cart.d.ts

@@ -13,1 +13,2 @@ import type { Handle } from '@sveltejs/kit';

export declare function removeProduct(id: string): void;
export declare function removeAllProducts(): void;

@@ -76,2 +76,7 @@ import { derived, get, writable } from 'svelte/store';

}
export function removeAllProducts() {
const cartContent = get(cart);
cartContent.products = [];
_cart.set(cartContent);
}
function persistCart() {

@@ -78,0 +83,0 @@ const cartContent = get(_cart);

4

dist/index.d.ts
import { type Cart, type CartMetaData, type CartProduct, type CartProductMetaData } from './types.js';
import { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, setCartMetaData, setProduct } from './cart.js';
export { type Cart, type CartMetaData, type CartProduct, type CartProductMetaData, addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, setCartMetaData, setProduct };
import { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, removeAllProducts, setCartMetaData, setProduct } from './cart.js';
export { type Cart, type CartMetaData, type CartProduct, type CartProductMetaData, addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, removeAllProducts, setCartMetaData, setProduct };
import {} from './types.js';
import { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, setCartMetaData, setProduct } from './cart.js';
export { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, setCartMetaData, setProduct };
import { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, removeAllProducts, setCartMetaData, setProduct } from './cart.js';
export { addOrAppendToProduct, cart, clearCart, handle, initializeClientCart, removeProduct, removeAllProducts, setCartMetaData, setProduct };
{
"name": "@deckweiss/cart",
"version": "1.0.2",
"version": "1.1.0",
"homepage": "https://github.com/deckweiss/cart",

@@ -5,0 +5,0 @@ "license": "MIT",

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