From f5046fe1013bf1e07fc9873e28f7dc828e25ae22 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Thu, 29 Aug 2019 19:23:13 -0300 Subject: [PATCH] chore(constructor): update constructor methods --- src/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b2da405..a1ac23c 100644 --- a/src/index.js +++ b/src/index.js @@ -8,9 +8,13 @@ import { _config } from '@ecomplus/utils' import addItem from './methods/add-item' import addPoduct from './methods/add-product' +import increaseItemQnt from './methods/increase-item-qnt' +import removeItem from './methods/remove-item' +import save from './methods/save' +import clear from './methods/clear' /** - * Vanilla JS library to handle shopping cart object on E-Com Plus stores. + * Simple JS library to handle shopping cart object on E-Com Plus stores. * @module @ecomplus/shopping-cart * @see EcomCart * @@ -67,6 +71,10 @@ export default function (storeId, storageKey = _key, localStorage = _storage) { // instance methods this.addItem = addItem this.addPoduct = addPoduct + this.increaseItemQnt = increaseItemQnt + this.removeItem = removeItem + this.save = save + this.clear = clear if (localStorage && storageKey) { // try to preset cart data from storage