{"_id":"@africasokoni/react-use-cart","_rev":"17-8894440dd588c954d12959d32d5084ed","name":"@africasokoni/react-use-cart","dist-tags":{"latest":"1.15.1","beta":"1.15.0-beta.3"},"versions":{"0.0.0-semantic-release":{"name":"@africasokoni/react-use-cart","version":"0.0.0-semantic-release","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn-globals":"^6.0.0","acorn":"^8.1.0","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","anymatch":"^3.1.1","ajv":"^6.12.6","acorn-walk":"^7.2.0","ansi-styles":"^4.3.0","argparse":"^1.0.10","arr-flatten":"^1.1.0","arr-diff":"^4.0.0","arr-union":"^3.1.0","array-unique":"^0.3.2","assign-symbols":"^1.0.0","asn1":"^0.2.4","assert-plus":"^1.0.0","atob":"^2.1.2","asynckit":"^0.4.0","aws-sign2":"^0.7.0","aws4":"^1.11.0","balanced-match":"^1.0.0","babel-plugin-istanbul":"^6.0.0","base":"^0.11.2","babel-plugin-dynamic-import-node":"^2.3.3","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","browserslist":"^4.16.3","buffer-from":"^1.1.1","browser-process-hrtime":"^1.0.0","cache-base":"^1.0.1","bser":"^2.1.1","builtin-modules":"^3.2.0","braces":"^3.0.2","callsites":"^3.1.0","call-bind":"^1.0.2","caniuse-lite":"^1.0.30001200","babel-plugin-jest-hoist":"^26.6.2","capture-exit":"^2.0.0","caseless":"^0.12.0","ci-info":"^2.0.0","class-utils":"^0.3.6","cjs-module-lexer":"^0.6.0","cliui":"^6.0.0","char-regex":"^1.0.2","co":"^4.6.0","collection-visit":"^1.0.0","collect-v8-coverage":"^1.0.1","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","core-js-compat":"^3.9.1","convert-source-map":"^1.7.0","concat-map":"^0.0.1","copy-descriptor":"^0.1.1","cssom":"^0.4.4","csstype":"^3.0.7","cross-spawn":"^7.0.3","dashdash":"^1.14.1","data-urls":"^2.0.0","decamelize":"^1.2.0","cssstyle":"^2.3.0","debug":"^4.3.1","decode-uri-component":"^0.2.0","deepmerge":"^4.2.2","deep-is":"^0.1.3","decimal.js":"^10.2.1","define-property":"^0.2.5","core-util-is":"^1.0.2","delayed-stream":"^1.0.0","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","diff-sequences":"^26.6.2","define-properties":"^1.1.3","domexception":"^2.0.1","emoji-regex":"^8.0.0","error-ex":"^1.3.2","end-of-stream":"^1.4.4","detect-newline":"^3.1.0","escodegen":"^2.0.0","escape-string-regexp":"^1.0.5","escalade":"^3.1.1","esprima":"^4.0.1","emittery":"^0.7.2","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","expand-brackets":"^2.1.4","exit":"^0.1.2","expect":"^26.6.2","extend":"^3.0.2","extglob":"^2.0.4","extend-shallow":"^2.0.1","fast-deep-equal":"^3.1.3","fast-levenshtein":"^2.0.6","fast-json-stable-stringify":"^2.1.0","extsprintf":"^1.3.0","fill-range":"^7.0.1","fb-watchman":"^2.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs.realpath":"^1.0.0","function-bind":"^1.1.1","get-stream":"^5.2.0","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","gensync":"^1.0.0-beta.2","fsevents":"^2.1.3","getpass":"^0.1.7","get-caller-file":"^2.0.5","fs-extra":"^8.1.0","get-value":"^2.0.6","graceful-fs":"^4.2.6","har-validator":"^5.1.5","growly":"^1.3.0","globals":"^11.12.0","har-schema":"^2.0.0","glob":"^7.1.6","has":"^1.0.3","has-symbols":"^1.0.2","has-values":"^1.0.0","hosted-git-info":"^2.8.8","has-flag":"^4.0.0","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","has-value":"^1.0.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","inflight":"^1.0.6","imurmurhash":"^0.1.4","invariant":"^2.2.4","inherits":"^2.0.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","import-local":"^3.0.2","is-buffer":"^1.1.6","is-core-module":"^2.2.0","is-ci":"^2.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-fullwidth-code-point":"^3.0.0","is-extendable":"^0.1.1","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-stream":"^2.0.0","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-typedarray":"^1.0.0","is-data-descriptor":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isobject":"^3.0.1","isstream":"^0.1.2","isexe":"^2.0.0","istanbul-lib-report":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-source-maps":"^4.0.0","istanbul-lib-coverage":"^3.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-cli":"^26.6.3","jest-each":"^26.6.2","jest-docblock":"^26.0.0","jest-environment-node":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-regex-util":"^26.0.0","jest-pnp-resolver":"^1.2.2","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-validate":"^26.6.2","jest-util":"^26.6.2","jest-runner":"^26.6.3","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","jest-snapshot":"^26.6.2","js-yaml":"^3.14.1","js-tokens":"^4.0.0","jsdom":"^16.5.1","jsbn":"^0.1.1","json-parse-even-better-errors":"^2.3.1","jsesc":"^2.5.2","json-schema":"^0.2.3","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","json-stringify-safe":"^5.0.1","levenary":"^1.1.1","lines-and-columns":"^1.1.6","json-schema-traverse":"^0.4.1","levn":"^0.3.0","locate-path":"^5.0.0","loose-envify":"^1.4.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","lru-cache":"^6.0.0","make-dir":"^3.1.0","magic-string":"^0.25.7","map-cache":"^0.2.2","merge-stream":"^2.0.0","map-visit":"^1.0.0","mime-db":"^1.46.0","micromatch":"^4.0.2","mimic-fn":"^2.1.0","minimatch":"^3.0.4","mime-types":"^2.1.29","mixin-deep":"^1.3.2","natural-compare":"^1.4.0","minimist":"^1.2.5","ms":"^2.1.2","nice-try":"^1.0.5","nanomatch":"^1.2.13","node-int64":"^0.4.0","node-notifier":"^8.0.2","makeerror":"^1.0.11","node-modules-regexp":"^1.0.0","normalize-package-data":"^2.5.0","npm-run-path":"^4.0.1","normalize-path":"^3.0.0","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-copy":"^0.1.0","node-releases":"^1.1.71","object-keys":"^1.1.1","object-visit":"^1.0.1","object-assign":"^4.1.1","object.pick":"^1.3.0","once":"^1.4.0","object.assign":"^4.1.2","onetime":"^5.1.2","optionator":"^0.8.3","p-finally":"^1.0.0","p-limit":"^2.3.0","p-try":"^2.2.0","p-locate":"^4.1.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","parse-json":"^5.2.0","path-is-absolute":"^1.0.1","p-each-series":"^2.2.0","path-parse":"^1.0.6","pirates":"^4.0.1","performance-now":"^2.1.0","posix-character-classes":"^0.1.1","pkg-dir":"^4.2.0","prelude-ls":"^1.1.2","picomatch":"^2.2.2","pretty-format":"^26.6.2","pump":"^3.0.0","prop-types":"^15.7.2","prompts":"^2.4.0","punycode":"^2.1.1","path-key":"^2.0.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","psl":"^1.8.0","regenerator-transform":"^0.14.5","regexpu-core":"^4.7.1","regenerator-runtime":"^0.13.7","regex-not":"^1.0.2","regjsparser":"^0.6.7","regjsgen":"^0.5.2","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","require-main-filename":"^2.0.0","request-promise-native":"^1.0.9","repeat-string":"^1.6.1","request-promise-core":"^1.1.4","require-directory":"^2.1.1","resolve":"^1.20.0","request":"^2.88.2","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","ret":"^0.1.15","resolve-url":"^0.2.1","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","shebang-command":"^2.0.0","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-regex":"^3.0.0","signal-exit":"^3.0.3","sisteransi":"^1.0.5","safe-buffer":"^5.2.1","shellwords":"^0.1.1","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-util":"^3.0.1","source-map":"^0.6.1","snapdragon-node":"^2.1.1","source-map-resolve":"^0.5.3","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","source-map-support":"^0.5.19","semver":"^5.7.1","spdx-correct":"^3.1.1","spdx-license-ids":"^3.0.7","spdx-expression-parse":"^3.0.1","spdx-exceptions":"^2.3.0","sshpk":"^1.16.1","sprintf-js":"^1.0.3","stealthy-require":"^1.1.1","static-extend":"^0.1.2","stack-utils":"^2.0.3","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","split-string":"^3.1.0","supports-color":"^7.2.0","strip-eof":"^1.0.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","strip-final-newline":"^2.0.0","terminal-link":"^2.1.1","test-exclude":"^6.0.0","tmpl":"^1.0.4","to-object-path":"^0.3.0","to-regex-range":"^5.0.1","to-fast-properties":"^2.0.0","to-regex":"^3.0.2","tough-cookie":"^2.5.0","throat":"^5.0.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","type-fest":"^0.11.0","type-check":"^0.3.2","type-detect":"^4.0.8","typedarray-to-buffer":"^3.1.5","tweetnacl":"^0.14.5","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","universalify":"^0.1.2","unicode-canonical-property-names-ecmascript":"^1.0.4","union-value":"^1.0.1","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","w3c-xmlserializer":"^2.0.0","w3c-hr-time":"^1.0.2","verror":"^1.10.0","whatwg-encoding":"^1.0.5","webidl-conversions":"^6.1.0","walker":"^1.0.7","whatwg-mimetype":"^2.3.0","which":"^2.0.2","whatwg-url":"^8.4.0","which-module":"^2.0.0","wrappy":"^1.0.2","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","write-file-atomic":"^3.0.3","xml-name-validator":"^3.0.0","ws":"^7.4.4","y18n":"^4.0.1","xmlchars":"^2.2.0","yargs":"^15.4.1","yallist":"^4.0.0","camelcase":"^5.3.1","chalk":"^4.1.0","yargs-parser":"^18.1.3"},"gitHead":"997ed5be07f324bc09024849d02ef75ca6ec9636","_id":"@africasokoni/react-use-cart@0.0.0-semantic-release","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-Kxhx6C7ipDUIUG1L4WpM8ObH+Yikd7vhfZtWj+xSrrBA0yTXKd8iOQGa/7Vdo1PcO6G7kyjHUT6ex12mDzxtHw==","shasum":"39e589869704f8c39eb52f01dc1928959a5b1544","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.0-semantic-release.tgz","fileCount":3,"unpackedSize":37728,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUEItCRA9TVsSAnZWagAAkq8P/RWbRXEa6KrZxMH/Ukkd\n7lEAPXCi8aY7e87IciOC6QtwehokzDo08p4XrSfg+8a1+9Ez5TM8s/+GVtw9\nOV68I39a49dT4iM1M4M7jlBpC65gzTxJ9hX7YZ9yLa6PfdNLBn8DL8uTTdA5\nssCUsnzkYAIztRSJJ3ZmN9rlv12SwpKdv5YBZB7/pXNOR+VdntmVCy5T6eWF\nE7GFDeN7b+/zyaKmmMwzRrrQC7THe36R/gOzRyhkvSikUQ3L2gaKFbH+4Gx+\nVKjCaaItfZTgqCE+H1l9rl2YU0XcGERrRLCPes7knQEKjdeVCHcXJsLFImzA\nfpaQXRY4RSEFYTNa3/HJpwpjEEhmEjMtDT98SdY5Vh/EeUDt+g+NY8WFppsj\nG4bGMyc1XMW5IzUgb5zeORHJwRV8lEmarQpyKM30cdQA4k3qP80w4+WeyiWI\nHQMqpKLOROseKT17l6pAleekSsIxQUTvo+t6DG186zj6xy+hS1xZuhlrxacW\nz92//q1wzAM9tzTGDJXHlAaydxikiqt21gU/Ix/GlER5DDWL/SLS6Y/hvJ7J\nPBQw7+6lQxSrRlDwGCAwSvRIbo3m6PZAq4HrH8ZkKhU5ffYPqMxCfdVq6tpN\nMRSgbEgE4gzzYUgASQe9A12al4DU51h+pDI3Malrpqml2Hv+KvnhsKDZXX2I\nKdoi\r\n=8Cza\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmfRtqRQcdKOG9J1qoz+oDWCZvi8tVYy53Y/yVo1l5GAIgYZc6zmFI89L4ZBN+gWQSvURNrKY+NLe96W1QGLhYI5s="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.0-semantic-release_1615872557014_0.3676742188785882"},"_hasShrinkwrap":false},"0.0.1":{"name":"@africasokoni/react-use-cart","version":"0.0.1","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn-globals":"^6.0.0","acorn":"^8.1.0","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","anymatch":"^3.1.1","ajv":"^6.12.6","acorn-walk":"^7.2.0","ansi-styles":"^4.3.0","argparse":"^1.0.10","arr-flatten":"^1.1.0","arr-diff":"^4.0.0","arr-union":"^3.1.0","array-unique":"^0.3.2","assign-symbols":"^1.0.0","asn1":"^0.2.4","assert-plus":"^1.0.0","atob":"^2.1.2","asynckit":"^0.4.0","aws-sign2":"^0.7.0","aws4":"^1.11.0","balanced-match":"^1.0.0","babel-plugin-istanbul":"^6.0.0","base":"^0.11.2","babel-plugin-dynamic-import-node":"^2.3.3","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","browserslist":"^4.16.3","buffer-from":"^1.1.1","browser-process-hrtime":"^1.0.0","cache-base":"^1.0.1","bser":"^2.1.1","builtin-modules":"^3.2.0","braces":"^3.0.2","callsites":"^3.1.0","call-bind":"^1.0.2","caniuse-lite":"^1.0.30001200","babel-plugin-jest-hoist":"^26.6.2","capture-exit":"^2.0.0","caseless":"^0.12.0","ci-info":"^2.0.0","class-utils":"^0.3.6","cjs-module-lexer":"^0.6.0","cliui":"^6.0.0","char-regex":"^1.0.2","co":"^4.6.0","collection-visit":"^1.0.0","collect-v8-coverage":"^1.0.1","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","core-js-compat":"^3.9.1","convert-source-map":"^1.7.0","concat-map":"^0.0.1","copy-descriptor":"^0.1.1","cssom":"^0.4.4","csstype":"^3.0.7","cross-spawn":"^7.0.3","dashdash":"^1.14.1","data-urls":"^2.0.0","decamelize":"^1.2.0","cssstyle":"^2.3.0","debug":"^4.3.1","decode-uri-component":"^0.2.0","deepmerge":"^4.2.2","deep-is":"^0.1.3","decimal.js":"^10.2.1","define-property":"^0.2.5","core-util-is":"^1.0.2","delayed-stream":"^1.0.0","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","diff-sequences":"^26.6.2","define-properties":"^1.1.3","domexception":"^2.0.1","emoji-regex":"^8.0.0","error-ex":"^1.3.2","end-of-stream":"^1.4.4","detect-newline":"^3.1.0","escodegen":"^2.0.0","escape-string-regexp":"^1.0.5","escalade":"^3.1.1","esprima":"^4.0.1","emittery":"^0.7.2","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","expand-brackets":"^2.1.4","exit":"^0.1.2","expect":"^26.6.2","extend":"^3.0.2","extglob":"^2.0.4","extend-shallow":"^2.0.1","fast-deep-equal":"^3.1.3","fast-levenshtein":"^2.0.6","fast-json-stable-stringify":"^2.1.0","extsprintf":"^1.3.0","fill-range":"^7.0.1","fb-watchman":"^2.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs.realpath":"^1.0.0","function-bind":"^1.1.1","get-stream":"^5.2.0","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","gensync":"^1.0.0-beta.2","fsevents":"^2.1.3","getpass":"^0.1.7","get-caller-file":"^2.0.5","fs-extra":"^8.1.0","get-value":"^2.0.6","graceful-fs":"^4.2.6","har-validator":"^5.1.5","growly":"^1.3.0","globals":"^11.12.0","har-schema":"^2.0.0","glob":"^7.1.6","has":"^1.0.3","has-symbols":"^1.0.2","has-values":"^1.0.0","hosted-git-info":"^2.8.8","has-flag":"^4.0.0","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","has-value":"^1.0.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","inflight":"^1.0.6","imurmurhash":"^0.1.4","invariant":"^2.2.4","inherits":"^2.0.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","import-local":"^3.0.2","is-buffer":"^1.1.6","is-core-module":"^2.2.0","is-ci":"^2.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-fullwidth-code-point":"^3.0.0","is-extendable":"^0.1.1","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-stream":"^2.0.0","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-typedarray":"^1.0.0","is-data-descriptor":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isobject":"^3.0.1","isstream":"^0.1.2","isexe":"^2.0.0","istanbul-lib-report":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-source-maps":"^4.0.0","istanbul-lib-coverage":"^3.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-cli":"^26.6.3","jest-each":"^26.6.2","jest-docblock":"^26.0.0","jest-environment-node":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-regex-util":"^26.0.0","jest-pnp-resolver":"^1.2.2","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-validate":"^26.6.2","jest-util":"^26.6.2","jest-runner":"^26.6.3","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","jest-snapshot":"^26.6.2","js-yaml":"^3.14.1","js-tokens":"^4.0.0","jsdom":"^16.5.1","jsbn":"^0.1.1","json-parse-even-better-errors":"^2.3.1","jsesc":"^2.5.2","json-schema":"^0.2.3","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","json-stringify-safe":"^5.0.1","levenary":"^1.1.1","lines-and-columns":"^1.1.6","json-schema-traverse":"^0.4.1","levn":"^0.3.0","locate-path":"^5.0.0","loose-envify":"^1.4.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","lru-cache":"^6.0.0","make-dir":"^3.1.0","magic-string":"^0.25.7","map-cache":"^0.2.2","merge-stream":"^2.0.0","map-visit":"^1.0.0","mime-db":"^1.46.0","micromatch":"^4.0.2","mimic-fn":"^2.1.0","minimatch":"^3.0.4","mime-types":"^2.1.29","mixin-deep":"^1.3.2","natural-compare":"^1.4.0","minimist":"^1.2.5","ms":"^2.1.2","nice-try":"^1.0.5","nanomatch":"^1.2.13","node-int64":"^0.4.0","node-notifier":"^8.0.2","makeerror":"^1.0.11","node-modules-regexp":"^1.0.0","normalize-package-data":"^2.5.0","npm-run-path":"^4.0.1","normalize-path":"^3.0.0","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-copy":"^0.1.0","node-releases":"^1.1.71","object-keys":"^1.1.1","object-visit":"^1.0.1","object-assign":"^4.1.1","object.pick":"^1.3.0","once":"^1.4.0","object.assign":"^4.1.2","onetime":"^5.1.2","optionator":"^0.8.3","p-finally":"^1.0.0","p-limit":"^2.3.0","p-try":"^2.2.0","p-locate":"^4.1.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","parse-json":"^5.2.0","path-is-absolute":"^1.0.1","p-each-series":"^2.2.0","path-parse":"^1.0.6","pirates":"^4.0.1","performance-now":"^2.1.0","posix-character-classes":"^0.1.1","pkg-dir":"^4.2.0","prelude-ls":"^1.1.2","picomatch":"^2.2.2","pretty-format":"^26.6.2","pump":"^3.0.0","prop-types":"^15.7.2","prompts":"^2.4.0","punycode":"^2.1.1","path-key":"^2.0.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","psl":"^1.8.0","regenerator-transform":"^0.14.5","regexpu-core":"^4.7.1","regenerator-runtime":"^0.13.7","regex-not":"^1.0.2","regjsparser":"^0.6.7","regjsgen":"^0.5.2","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","require-main-filename":"^2.0.0","request-promise-native":"^1.0.9","repeat-string":"^1.6.1","request-promise-core":"^1.1.4","require-directory":"^2.1.1","resolve":"^1.20.0","request":"^2.88.2","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","ret":"^0.1.15","resolve-url":"^0.2.1","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","shebang-command":"^2.0.0","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-regex":"^3.0.0","signal-exit":"^3.0.3","sisteransi":"^1.0.5","safe-buffer":"^5.2.1","shellwords":"^0.1.1","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-util":"^3.0.1","source-map":"^0.6.1","snapdragon-node":"^2.1.1","source-map-resolve":"^0.5.3","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","source-map-support":"^0.5.19","semver":"^5.7.1","spdx-correct":"^3.1.1","spdx-license-ids":"^3.0.7","spdx-expression-parse":"^3.0.1","spdx-exceptions":"^2.3.0","sshpk":"^1.16.1","sprintf-js":"^1.0.3","stealthy-require":"^1.1.1","static-extend":"^0.1.2","stack-utils":"^2.0.3","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","split-string":"^3.1.0","supports-color":"^7.2.0","strip-eof":"^1.0.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","strip-final-newline":"^2.0.0","terminal-link":"^2.1.1","test-exclude":"^6.0.0","tmpl":"^1.0.4","to-object-path":"^0.3.0","to-regex-range":"^5.0.1","to-fast-properties":"^2.0.0","to-regex":"^3.0.2","tough-cookie":"^2.5.0","throat":"^5.0.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","type-fest":"^0.11.0","type-check":"^0.3.2","type-detect":"^4.0.8","typedarray-to-buffer":"^3.1.5","tweetnacl":"^0.14.5","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","universalify":"^0.1.2","unicode-canonical-property-names-ecmascript":"^1.0.4","union-value":"^1.0.1","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","w3c-xmlserializer":"^2.0.0","w3c-hr-time":"^1.0.2","verror":"^1.10.0","whatwg-encoding":"^1.0.5","webidl-conversions":"^6.1.0","walker":"^1.0.7","whatwg-mimetype":"^2.3.0","which":"^2.0.2","whatwg-url":"^8.4.0","which-module":"^2.0.0","wrappy":"^1.0.2","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","write-file-atomic":"^3.0.3","xml-name-validator":"^3.0.0","ws":"^7.4.4","y18n":"^4.0.1","xmlchars":"^2.2.0","yargs":"^15.4.1","yallist":"^4.0.0","camelcase":"^5.3.1","chalk":"^4.1.0","yargs-parser":"^18.1.3"},"gitHead":"a19d2ab3fc2fcf11f6ffa56a66d8589e0262313f","_id":"@africasokoni/react-use-cart@0.0.1","_nodeVersion":"15.4.0","_npmVersion":"7.0.15","dist":{"integrity":"sha512-kS7VrX1h7ZgNfsgDR+E9p4oA74U8C7Nj4lzN5QpKDtYboPWUw43rkC7KUQOWZPZUiSsHDVWN65vD7OTAHVCRYQ==","shasum":"094aca88e33c15dc786fdb544878086c3a585932","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.1.tgz","fileCount":9,"unpackedSize":113765,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUESRCRA9TVsSAnZWagAA534P/1g4vXReUFw3ehjetjO3\nzi9K2rHHnYp7KttiJLt6Ptz9AZ9meGHmXx6dD25Jgqae2EDmkxsUAzOvB7AY\n29qQ9OX489mBavVrOfflbgnCHkKtyGofRT6P2ZCox6m0fLIszyeATJKnsMNq\nIHVI4V+RS/gK0sZtqh+R2yYlcVfsB+VcSyaGFiUJSmbXLEnCOUk+eOM85pSC\nrRNtjGXkEhY3leVxQNKMjtLrUfL+n8OXIIuiiwFUG0DgEQLVvzfwcAkMRMOS\nCLzrlTc2ezQ86YZrOsPgQPxab2MT4GsF7WtyLy68CR/THhpUfP8hVruBvCU7\nr4K29gU98GeXZDatzETT7h4kQJ7c1qdlh3wrqTFPHgyBPkqsgWhLsykr1JlU\nW2dJ9b2+6bdMqiVKtl/hvV+QDyYo0xfMliWu4beD3N4Hk0SS+5pqjeAMpv1z\nsLTUV0PmZfK5bpgg9h653AqOBh+pohuYQtuFNSJpvVVIMSJL1v0VnOkPMegg\n0PRsSgvYkxynzg4iXP62+VcXoTtNHJS5C7BqGKN25wqsrNVcGn8QjvdtkxIA\nCfVgt8H2AqlBMrYHAcMT4fxLPX4jpG48aCurQR47TQ8zotUpufaXecYg81kT\nw78Dc7oDxfvYZ+iHifJ+WvXguVqGaXqP1ALinRCoH6YWsX8zqSxuXS4/Z72i\nEtiI\r\n=803D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFqbAMtDnLfM6RUpevKRG4F1tw7D73zOJu60pfVdsPR/AiAq0sIiiXWA9ba8rasO7ReTFbqU7UcG9p8jrhxiWs30QA=="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.1_1615873168957_0.7999865079710224"},"_hasShrinkwrap":false},"0.0.2":{"name":"@africasokoni/react-use-cart","version":"0.0.2","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"dependencies":{"abab":"^2.0.5","acorn-globals":"^6.0.0","acorn":"^8.1.0","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","anymatch":"^3.1.1","ajv":"^6.12.6","acorn-walk":"^7.2.0","ansi-styles":"^4.3.0","argparse":"^1.0.10","arr-flatten":"^1.1.0","arr-diff":"^4.0.0","arr-union":"^3.1.0","array-unique":"^0.3.2","assign-symbols":"^1.0.0","asn1":"^0.2.4","assert-plus":"^1.0.0","atob":"^2.1.2","asynckit":"^0.4.0","aws-sign2":"^0.7.0","aws4":"^1.11.0","balanced-match":"^1.0.0","babel-plugin-istanbul":"^6.0.0","base":"^0.11.2","babel-plugin-dynamic-import-node":"^2.3.3","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","browserslist":"^4.16.3","buffer-from":"^1.1.1","browser-process-hrtime":"^1.0.0","cache-base":"^1.0.1","bser":"^2.1.1","builtin-modules":"^3.2.0","braces":"^3.0.2","callsites":"^3.1.0","call-bind":"^1.0.2","caniuse-lite":"^1.0.30001200","babel-plugin-jest-hoist":"^26.6.2","capture-exit":"^2.0.0","caseless":"^0.12.0","ci-info":"^2.0.0","class-utils":"^0.3.6","cjs-module-lexer":"^0.6.0","cliui":"^6.0.0","char-regex":"^1.0.2","co":"^4.6.0","collection-visit":"^1.0.0","collect-v8-coverage":"^1.0.1","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","core-js-compat":"^3.9.1","convert-source-map":"^1.7.0","concat-map":"^0.0.1","copy-descriptor":"^0.1.1","cssom":"^0.4.4","csstype":"^3.0.7","cross-spawn":"^7.0.3","dashdash":"^1.14.1","data-urls":"^2.0.0","decamelize":"^1.2.0","cssstyle":"^2.3.0","debug":"^4.3.1","decode-uri-component":"^0.2.0","deepmerge":"^4.2.2","deep-is":"^0.1.3","decimal.js":"^10.2.1","define-property":"^0.2.5","core-util-is":"^1.0.2","delayed-stream":"^1.0.0","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","diff-sequences":"^26.6.2","define-properties":"^1.1.3","domexception":"^2.0.1","emoji-regex":"^8.0.0","error-ex":"^1.3.2","end-of-stream":"^1.4.4","detect-newline":"^3.1.0","escodegen":"^2.0.0","escape-string-regexp":"^1.0.5","escalade":"^3.1.1","esprima":"^4.0.1","emittery":"^0.7.2","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","expand-brackets":"^2.1.4","exit":"^0.1.2","expect":"^26.6.2","extend":"^3.0.2","extglob":"^2.0.4","extend-shallow":"^2.0.1","fast-deep-equal":"^3.1.3","fast-levenshtein":"^2.0.6","fast-json-stable-stringify":"^2.1.0","extsprintf":"^1.3.0","fill-range":"^7.0.1","fb-watchman":"^2.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs.realpath":"^1.0.0","function-bind":"^1.1.1","get-stream":"^5.2.0","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","gensync":"^1.0.0-beta.2","fsevents":"^2.1.3","getpass":"^0.1.7","get-caller-file":"^2.0.5","fs-extra":"^8.1.0","get-value":"^2.0.6","graceful-fs":"^4.2.6","har-validator":"^5.1.5","growly":"^1.3.0","globals":"^11.12.0","har-schema":"^2.0.0","glob":"^7.1.6","has":"^1.0.3","has-symbols":"^1.0.2","has-values":"^1.0.0","hosted-git-info":"^2.8.8","has-flag":"^4.0.0","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","has-value":"^1.0.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","inflight":"^1.0.6","imurmurhash":"^0.1.4","invariant":"^2.2.4","inherits":"^2.0.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","import-local":"^3.0.2","is-buffer":"^1.1.6","is-core-module":"^2.2.0","is-ci":"^2.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-fullwidth-code-point":"^3.0.0","is-extendable":"^0.1.1","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-stream":"^2.0.0","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-typedarray":"^1.0.0","is-data-descriptor":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isobject":"^3.0.1","isstream":"^0.1.2","isexe":"^2.0.0","istanbul-lib-report":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-source-maps":"^4.0.0","istanbul-lib-coverage":"^3.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-cli":"^26.6.3","jest-each":"^26.6.2","jest-docblock":"^26.0.0","jest-environment-node":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-regex-util":"^26.0.0","jest-pnp-resolver":"^1.2.2","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-validate":"^26.6.2","jest-util":"^26.6.2","jest-runner":"^26.6.3","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","jest-snapshot":"^26.6.2","js-yaml":"^3.14.1","js-tokens":"^4.0.0","jsdom":"^16.5.1","jsbn":"^0.1.1","json-parse-even-better-errors":"^2.3.1","jsesc":"^2.5.2","json-schema":"^0.2.3","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","json-stringify-safe":"^5.0.1","levenary":"^1.1.1","lines-and-columns":"^1.1.6","json-schema-traverse":"^0.4.1","levn":"^0.3.0","locate-path":"^5.0.0","loose-envify":"^1.4.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","lru-cache":"^6.0.0","make-dir":"^3.1.0","magic-string":"^0.25.7","map-cache":"^0.2.2","merge-stream":"^2.0.0","map-visit":"^1.0.0","mime-db":"^1.46.0","micromatch":"^4.0.2","mimic-fn":"^2.1.0","minimatch":"^3.0.4","mime-types":"^2.1.29","mixin-deep":"^1.3.2","natural-compare":"^1.4.0","minimist":"^1.2.5","ms":"^2.1.2","nice-try":"^1.0.5","nanomatch":"^1.2.13","node-int64":"^0.4.0","node-notifier":"^8.0.2","makeerror":"^1.0.11","node-modules-regexp":"^1.0.0","normalize-package-data":"^2.5.0","npm-run-path":"^4.0.1","normalize-path":"^3.0.0","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-copy":"^0.1.0","node-releases":"^1.1.71","object-keys":"^1.1.1","object-visit":"^1.0.1","object-assign":"^4.1.1","object.pick":"^1.3.0","once":"^1.4.0","object.assign":"^4.1.2","onetime":"^5.1.2","optionator":"^0.8.3","p-finally":"^1.0.0","p-limit":"^2.3.0","p-try":"^2.2.0","p-locate":"^4.1.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","parse-json":"^5.2.0","path-is-absolute":"^1.0.1","p-each-series":"^2.2.0","path-parse":"^1.0.6","pirates":"^4.0.1","performance-now":"^2.1.0","posix-character-classes":"^0.1.1","pkg-dir":"^4.2.0","prelude-ls":"^1.1.2","picomatch":"^2.2.2","pretty-format":"^26.6.2","pump":"^3.0.0","prop-types":"^15.7.2","prompts":"^2.4.0","punycode":"^2.1.1","path-key":"^2.0.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","psl":"^1.8.0","regenerator-transform":"^0.14.5","regexpu-core":"^4.7.1","regenerator-runtime":"^0.13.7","regex-not":"^1.0.2","regjsparser":"^0.6.7","regjsgen":"^0.5.2","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","require-main-filename":"^2.0.0","request-promise-native":"^1.0.9","repeat-string":"^1.6.1","request-promise-core":"^1.1.4","require-directory":"^2.1.1","resolve":"^1.20.0","request":"^2.88.2","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","ret":"^0.1.15","resolve-url":"^0.2.1","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","shebang-command":"^2.0.0","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-regex":"^3.0.0","signal-exit":"^3.0.3","sisteransi":"^1.0.5","safe-buffer":"^5.2.1","shellwords":"^0.1.1","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-util":"^3.0.1","source-map":"^0.6.1","snapdragon-node":"^2.1.1","source-map-resolve":"^0.5.3","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","source-map-support":"^0.5.19","semver":"^5.7.1","spdx-correct":"^3.1.1","spdx-license-ids":"^3.0.7","spdx-expression-parse":"^3.0.1","spdx-exceptions":"^2.3.0","sshpk":"^1.16.1","sprintf-js":"^1.0.3","stealthy-require":"^1.1.1","static-extend":"^0.1.2","stack-utils":"^2.0.3","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","split-string":"^3.1.0","supports-color":"^7.2.0","strip-eof":"^1.0.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","strip-final-newline":"^2.0.0","terminal-link":"^2.1.1","test-exclude":"^6.0.0","tmpl":"^1.0.4","to-object-path":"^0.3.0","to-regex-range":"^5.0.1","to-fast-properties":"^2.0.0","to-regex":"^3.0.2","tough-cookie":"^2.5.0","throat":"^5.0.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","type-fest":"^0.11.0","type-check":"^0.3.2","type-detect":"^4.0.8","typedarray-to-buffer":"^3.1.5","tweetnacl":"^0.14.5","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","universalify":"^0.1.2","unicode-canonical-property-names-ecmascript":"^1.0.4","union-value":"^1.0.1","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","w3c-xmlserializer":"^2.0.0","w3c-hr-time":"^1.0.2","verror":"^1.10.0","whatwg-encoding":"^1.0.5","webidl-conversions":"^6.1.0","walker":"^1.0.7","whatwg-mimetype":"^2.3.0","which":"^2.0.2","whatwg-url":"^8.4.0","which-module":"^2.0.0","wrappy":"^1.0.2","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","write-file-atomic":"^3.0.3","xml-name-validator":"^3.0.0","ws":"^7.4.4","y18n":"^4.0.1","xmlchars":"^2.2.0","yargs":"^15.4.1","yallist":"^4.0.0","camelcase":"^5.3.1","chalk":"^4.1.0","yargs-parser":"^18.1.3"},"licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@africasokoni/react-use-cart@0.0.2","dist":{"shasum":"897a33a7c79d747c61093f3e35ee5a60d3915e8e","integrity":"sha512-CvJ88Xk1pbUBVtJ1c5VJXAhbQl10G2OkUv6rRPEP/h0nkG6zu57AoLI3vfOdU0XmlqdsiO8x4lUWRawZmas/Iw==","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.2.tgz","fileCount":11,"unpackedSize":113020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUYEbCRA9TVsSAnZWagAAXPkP/3sGiD0b/xZcES1HhEvb\nksgxc8cTv4p50G+2CGJPG3yHv/h+hWkTiE81KAS/bICbVujzzEv/oXoRGW/L\nnNa3JuiOPDWLRWhg3jyTjQ+p/W4OmqT05ZrJWac1DSad7Kc7P/Q1hW7a4yGO\nGF8lq/vKtB23ScqgVfnnbqS3lU9sEq3Upm6MHUKtglGXpnH+4VpAxx8ELF9S\naoElWBjaWcwPk2Pc0nWlhrG+VEPBuAHOuw06M4EQjAWMf0FMyjDPvs0++RjQ\n15AUGNre81jp/aZNari06+VvZUPyZxh4Zz4p5IqcwMt202YYN/HukJyoZrjA\nBCftHHdbgvAs0+tDnXseAIWYx5SEkbsULg6blgllByhLGE5aei3Rjx2iHjB6\nXzAF45MUSOXll0sK5WZh4YKCLFG/OKZxCPMgCE4vRebWHiyhyeJgtZ2qnzJt\nnJZZr3bAghmJ8JvJ+qxjeUi25rfH3oQyM6/SpBwKX8py5apHj+O+1QmiC4cg\nuVTcuN+OqxjOEXGtVmFXrq97gRKZyIy61Zt67KckKLXYlWwYPiwj7T1nJzLe\nfKsSA6XgHDGtdEYXCBVCzvnL270aDop5hDEQP3SEH8dnvIym9lFXEuUL1JmZ\n9oFxYiFRyF/qnhPgQJdN4BH7h67+DJm4ZLlUv8JIHP/qVQr+dRbsysFJ0PeZ\n5OjM\r\n=9Qng\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD21fvRLZBTSRHMahAiWvBWlucGKmvj8mmuMoQBgkG+IgIgEbGGQ7XWMPJxjxZALS5jeTsi5rYZ/xVNkRE04X+eT08="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.2_1615954202608_0.8219567942640553"},"_hasShrinkwrap":false},"0.0.3":{"name":"@africasokoni/react-use-cart","version":"0.0.3","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn":"^8.1.0","acorn-globals":"^6.0.0","acorn-walk":"^7.2.0","ajv":"^6.12.6","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","ansi-styles":"^4.3.0","anymatch":"^3.1.1","argparse":"^1.0.10","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-unique":"^0.3.2","asn1":"^0.2.4","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","asynckit":"^0.4.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-istanbul":"^6.0.0","babel-plugin-jest-hoist":"^26.6.2","balanced-match":"^1.0.0","base":"^0.11.2","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.2","browser-process-hrtime":"^1.0.0","browserslist":"^4.16.3","bser":"^2.1.1","buffer-from":"^1.1.1","builtin-modules":"^3.2.0","cache-base":"^1.0.1","call-bind":"^1.0.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001200","capture-exit":"^2.0.0","caseless":"^0.12.0","chalk":"^4.1.0","char-regex":"^1.0.2","ci-info":"^2.0.0","cjs-module-lexer":"^0.6.0","class-utils":"^0.3.6","cliui":"^6.0.0","co":"^4.6.0","collect-v8-coverage":"^1.0.1","collection-visit":"^1.0.0","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","concat-map":"^0.0.1","convert-source-map":"^1.7.0","copy-descriptor":"^0.1.1","core-js-compat":"^3.9.1","core-util-is":"^1.0.2","cross-spawn":"^7.0.3","cssom":"^0.4.4","cssstyle":"^2.3.0","csstype":"^3.0.7","dashdash":"^1.14.1","data-urls":"^2.0.0","debug":"^4.3.1","decamelize":"^1.2.0","decimal.js":"^10.2.1","decode-uri-component":"^0.2.0","deep-is":"^0.1.3","deepmerge":"^4.2.2","define-properties":"^1.1.3","define-property":"^0.2.5","delayed-stream":"^1.0.0","detect-newline":"^3.1.0","diff-sequences":"^26.6.2","domexception":"^2.0.1","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","emittery":"^0.7.2","emoji-regex":"^8.0.0","end-of-stream":"^1.4.4","error-ex":"^1.3.2","escalade":"^3.1.1","escape-string-regexp":"^1.0.5","escodegen":"^2.0.0","esprima":"^4.0.1","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","exit":"^0.1.2","expand-brackets":"^2.1.4","expect":"^26.6.2","extend":"^3.0.2","extend-shallow":"^2.0.1","extglob":"^2.0.4","extsprintf":"^1.3.0","fast-deep-equal":"^3.1.3","fast-json-stable-stringify":"^2.1.0","fast-levenshtein":"^2.0.6","fb-watchman":"^2.0.1","fill-range":"^7.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs-extra":"^8.1.0","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","get-stream":"^5.2.0","get-value":"^2.0.6","getpass":"^0.1.7","glob":"^7.1.6","globals":"^11.12.0","graceful-fs":"^4.2.6","growly":"^1.3.0","har-schema":"^2.0.0","har-validator":"^5.1.5","has":"^1.0.3","has-flag":"^4.0.0","has-symbols":"^1.0.2","has-value":"^1.0.0","has-values":"^1.0.0","hosted-git-info":"^2.8.8","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","import-local":"^3.0.2","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","invariant":"^2.2.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-ci":"^2.0.0","is-core-module":"^2.2.0","is-data-descriptor":"^1.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-extendable":"^0.1.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-stream":"^2.0.0","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-docblock":"^26.0.0","jest-each":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-environment-node":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-pnp-resolver":"^1.2.2","jest-regex-util":"^26.0.0","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runner":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-snapshot":"^26.6.2","jest-util":"^26.6.2","jest-validate":"^26.6.2","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsbn":"^0.1.1","jsdom":"^16.5.1","jsesc":"^2.5.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-schema-traverse":"^0.4.1","json-stringify-safe":"^5.0.1","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","levenary":"^1.1.1","levn":"^0.3.0","lines-and-columns":"^1.1.6","locate-path":"^5.0.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","loose-envify":"^1.4.0","lru-cache":"^6.0.0","magic-string":"^0.25.7","make-dir":"^3.1.0","makeerror":"^1.0.11","map-cache":"^0.2.2","map-visit":"^1.0.0","merge-stream":"^2.0.0","micromatch":"^4.0.2","mime-db":"^1.46.0","mime-types":"^2.1.29","mimic-fn":"^2.1.0","minimatch":"^3.0.4","minimist":"^1.2.5","mixin-deep":"^1.3.2","ms":"^2.1.2","nanomatch":"^1.2.13","natural-compare":"^1.4.0","nice-try":"^1.0.5","node-int64":"^0.4.0","node-modules-regexp":"^1.0.0","node-notifier":"^8.0.2","node-releases":"^1.1.71","normalize-package-data":"^2.5.0","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-assign":"^4.1.1","object-copy":"^0.1.0","object-keys":"^1.1.1","object-visit":"^1.0.1","object.assign":"^4.1.2","object.pick":"^1.3.0","once":"^1.4.0","onetime":"^5.1.2","optionator":"^0.8.3","p-each-series":"^2.2.0","p-finally":"^1.0.0","p-limit":"^2.3.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^2.0.1","path-parse":"^1.0.6","performance-now":"^2.1.0","picomatch":"^2.2.2","pirates":"^4.0.1","pkg-dir":"^4.2.0","posix-character-classes":"^0.1.1","prelude-ls":"^1.1.2","pretty-format":"^26.6.2","prompts":"^2.4.0","prop-types":"^15.7.2","psl":"^1.8.0","pump":"^3.0.0","punycode":"^2.1.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","regenerator-runtime":"^0.13.7","regenerator-transform":"^0.14.5","regex-not":"^1.0.2","regexpu-core":"^4.7.1","regjsgen":"^0.5.2","regjsparser":"^0.6.7","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","repeat-string":"^1.6.1","request":"^2.88.2","request-promise-core":"^1.1.4","request-promise-native":"^1.0.9","require-directory":"^2.1.1","require-main-filename":"^2.0.0","resolve":"^1.20.0","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve-url":"^0.2.1","ret":"^0.1.15","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-buffer":"^5.2.1","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","semver":"^5.7.1","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","shellwords":"^0.1.1","signal-exit":"^3.0.3","sisteransi":"^1.0.5","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-node":"^2.1.1","snapdragon-util":"^3.0.1","source-map":"^0.6.1","source-map-resolve":"^0.5.3","source-map-support":"^0.5.19","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","spdx-correct":"^3.1.1","spdx-exceptions":"^2.3.0","spdx-expression-parse":"^3.0.1","spdx-license-ids":"^3.0.7","split-string":"^3.1.0","sprintf-js":"^1.0.3","sshpk":"^1.16.1","stack-utils":"^2.0.3","static-extend":"^0.1.2","stealthy-require":"^1.1.1","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","strip-eof":"^1.0.0","strip-final-newline":"^2.0.0","supports-color":"^7.2.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","terminal-link":"^2.1.1","test-exclude":"^6.0.0","throat":"^5.0.0","tmpl":"^1.0.4","to-fast-properties":"^2.0.0","to-object-path":"^0.3.0","to-regex":"^3.0.2","to-regex-range":"^5.0.1","tough-cookie":"^2.5.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","tweetnacl":"^0.14.5","type-check":"^0.3.2","type-detect":"^4.0.8","type-fest":"^0.11.0","typedarray-to-buffer":"^3.1.5","unicode-canonical-property-names-ecmascript":"^1.0.4","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","union-value":"^1.0.1","universalify":"^0.1.2","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","verror":"^1.10.0","w3c-hr-time":"^1.0.2","w3c-xmlserializer":"^2.0.0","walker":"^1.0.7","webidl-conversions":"^6.1.0","whatwg-encoding":"^1.0.5","whatwg-mimetype":"^2.3.0","whatwg-url":"^8.4.0","which":"^2.0.2","which-module":"^2.0.0","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","wrappy":"^1.0.2","write-file-atomic":"^3.0.3","ws":"^7.4.4","xml-name-validator":"^3.0.0","xmlchars":"^2.2.0","y18n":"^4.0.1","yallist":"^4.0.0","yargs":"^15.4.1","yargs-parser":"^18.1.3"},"gitHead":"8cbb4a136d355940effe4e14ec492e5af30ae621","_id":"@africasokoni/react-use-cart@0.0.3","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-2LUGM1VbGpBsnOsh/Ohm4gcKGnN0qm8TVN+xxJWzvnim42AvOMMwJOAlLoKS3au8Tt9gExC1mZoJllCKbzQ1lQ==","shasum":"65fcc354ed713171d10a072e059038fdd45e729e","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.3.tgz","fileCount":9,"unpackedSize":113020,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUwW8CRA9TVsSAnZWagAA8B8QAJt3uCyJHk8E/NzrktSk\nA1C080jbIp9CkeeBF7QU6ESZgSgTN9SnZNUDxe1qA4GtrNVBb7OzggSGL0XN\nkksQT3EfD2/bm7UdJbgPRr+yd6jp6g3XgzwYXHcOstvmiH70BWBDukrLlWsE\nU5D7cGDLkZhv3J4UcJj+d3z1LbNmbeO2EeFQQQLPETC9oj7c+r+Gpo23ScPY\nEZnAUg6mkDTpUxKOPVq3151H8o+4xvU25b0g9OPg8zymmnJLGxud6/6Qfyng\nonWLnRff1T74Xd/2VfhuOCx8HJsvZ3Zek/IdGIlFj8D3PDRfKjRNMuAOYOVg\n0mxC/+TesaZhEBcz7xtwRnBLzGjxKCGgkqWpDj08X69nezKTzDpnsPKS/gIP\nBumZa+rE4JVEPKyA6cuMZIAW/l3lDjbqHka97XYpAR7C8yAna75j6fLZ0IKt\nFeQwmXXMIYhcQk/gYVD5zwHb2g9uPz4ks2MEe9SLU4H/UyMS35qYNDszEcZw\nNllO6NLEwkMc3tr28YenPHhneWN31fLuVJCYTDEDv4JWOAfE7/eRFO2cErUV\n4myZBQLePSIYRRb2VaWWFAIklRMgc4eCHq80hJKEXaYUa56tKPuwvOGIWaWR\nPBNOhUZ86FY2OVnrtwU+EosUs3tQ/PwEhMYc/Zw6+FTszDqiTfVDbi7rNvCQ\nGsg7\r\n=RiVw\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCncVmd8hLOyQMaqqqWZPCD3nAdANDyoTAactbeC0NS3AIhAKSfNioSQuYY1AnCxDU1aLKTkqhBQj3ZCRzBVz3jCpSk"}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.3_1616053691862_0.17735147744094393"},"_hasShrinkwrap":false},"0.0.4":{"name":"@africasokoni/react-use-cart","version":"0.0.4","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn":"^8.1.0","acorn-globals":"^6.0.0","acorn-walk":"^7.2.0","ajv":"^6.12.6","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","ansi-styles":"^4.3.0","anymatch":"^3.1.1","argparse":"^1.0.10","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-unique":"^0.3.2","asn1":"^0.2.4","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","asynckit":"^0.4.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-istanbul":"^6.0.0","babel-plugin-jest-hoist":"^26.6.2","balanced-match":"^1.0.0","base":"^0.11.2","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.2","browser-process-hrtime":"^1.0.0","browserslist":"^4.16.3","bser":"^2.1.1","buffer-from":"^1.1.1","builtin-modules":"^3.2.0","cache-base":"^1.0.1","call-bind":"^1.0.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001200","capture-exit":"^2.0.0","caseless":"^0.12.0","chalk":"^4.1.0","char-regex":"^1.0.2","ci-info":"^2.0.0","cjs-module-lexer":"^0.6.0","class-utils":"^0.3.6","cliui":"^6.0.0","co":"^4.6.0","collect-v8-coverage":"^1.0.1","collection-visit":"^1.0.0","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","concat-map":"^0.0.1","convert-source-map":"^1.7.0","copy-descriptor":"^0.1.1","core-js-compat":"^3.9.1","core-util-is":"^1.0.2","cross-spawn":"^7.0.3","cssom":"^0.4.4","cssstyle":"^2.3.0","csstype":"^3.0.7","dashdash":"^1.14.1","data-urls":"^2.0.0","debug":"^4.3.1","decamelize":"^1.2.0","decimal.js":"^10.2.1","decode-uri-component":"^0.2.0","deep-is":"^0.1.3","deepmerge":"^4.2.2","define-properties":"^1.1.3","define-property":"^0.2.5","delayed-stream":"^1.0.0","detect-newline":"^3.1.0","diff-sequences":"^26.6.2","domexception":"^2.0.1","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","emittery":"^0.7.2","emoji-regex":"^8.0.0","end-of-stream":"^1.4.4","error-ex":"^1.3.2","escalade":"^3.1.1","escape-string-regexp":"^1.0.5","escodegen":"^2.0.0","esprima":"^4.0.1","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","exit":"^0.1.2","expand-brackets":"^2.1.4","expect":"^26.6.2","extend":"^3.0.2","extend-shallow":"^2.0.1","extglob":"^2.0.4","extsprintf":"^1.3.0","fast-deep-equal":"^3.1.3","fast-json-stable-stringify":"^2.1.0","fast-levenshtein":"^2.0.6","fb-watchman":"^2.0.1","fill-range":"^7.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs-extra":"^8.1.0","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","get-stream":"^5.2.0","get-value":"^2.0.6","getpass":"^0.1.7","glob":"^7.1.6","globals":"^11.12.0","graceful-fs":"^4.2.6","growly":"^1.3.0","har-schema":"^2.0.0","har-validator":"^5.1.5","has":"^1.0.3","has-flag":"^4.0.0","has-symbols":"^1.0.2","has-value":"^1.0.0","has-values":"^1.0.0","hosted-git-info":"^2.8.8","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","import-local":"^3.0.2","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","invariant":"^2.2.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-ci":"^2.0.0","is-core-module":"^2.2.0","is-data-descriptor":"^1.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-extendable":"^0.1.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-stream":"^2.0.0","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-docblock":"^26.0.0","jest-each":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-environment-node":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-pnp-resolver":"^1.2.2","jest-regex-util":"^26.0.0","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runner":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-snapshot":"^26.6.2","jest-util":"^26.6.2","jest-validate":"^26.6.2","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsbn":"^0.1.1","jsdom":"^16.5.1","jsesc":"^2.5.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-schema-traverse":"^0.4.1","json-stringify-safe":"^5.0.1","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","levenary":"^1.1.1","levn":"^0.3.0","lines-and-columns":"^1.1.6","locate-path":"^5.0.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","loose-envify":"^1.4.0","lru-cache":"^6.0.0","magic-string":"^0.25.7","make-dir":"^3.1.0","makeerror":"^1.0.11","map-cache":"^0.2.2","map-visit":"^1.0.0","merge-stream":"^2.0.0","micromatch":"^4.0.2","mime-db":"^1.46.0","mime-types":"^2.1.29","mimic-fn":"^2.1.0","minimatch":"^3.0.4","minimist":"^1.2.5","mixin-deep":"^1.3.2","ms":"^2.1.2","nanomatch":"^1.2.13","natural-compare":"^1.4.0","nice-try":"^1.0.5","node-int64":"^0.4.0","node-modules-regexp":"^1.0.0","node-notifier":"^8.0.2","node-releases":"^1.1.71","normalize-package-data":"^2.5.0","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-assign":"^4.1.1","object-copy":"^0.1.0","object-keys":"^1.1.1","object-visit":"^1.0.1","object.assign":"^4.1.2","object.pick":"^1.3.0","once":"^1.4.0","onetime":"^5.1.2","optionator":"^0.8.3","p-each-series":"^2.2.0","p-finally":"^1.0.0","p-limit":"^2.3.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^2.0.1","path-parse":"^1.0.6","performance-now":"^2.1.0","picomatch":"^2.2.2","pirates":"^4.0.1","pkg-dir":"^4.2.0","posix-character-classes":"^0.1.1","prelude-ls":"^1.1.2","pretty-format":"^26.6.2","prompts":"^2.4.0","prop-types":"^15.7.2","psl":"^1.8.0","pump":"^3.0.0","punycode":"^2.1.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","regenerator-runtime":"^0.13.7","regenerator-transform":"^0.14.5","regex-not":"^1.0.2","regexpu-core":"^4.7.1","regjsgen":"^0.5.2","regjsparser":"^0.6.7","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","repeat-string":"^1.6.1","request":"^2.88.2","request-promise-core":"^1.1.4","request-promise-native":"^1.0.9","require-directory":"^2.1.1","require-main-filename":"^2.0.0","resolve":"^1.20.0","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve-url":"^0.2.1","ret":"^0.1.15","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-buffer":"^5.2.1","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","semver":"^5.7.1","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","shellwords":"^0.1.1","signal-exit":"^3.0.3","sisteransi":"^1.0.5","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-node":"^2.1.1","snapdragon-util":"^3.0.1","source-map":"^0.6.1","source-map-resolve":"^0.5.3","source-map-support":"^0.5.19","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","spdx-correct":"^3.1.1","spdx-exceptions":"^2.3.0","spdx-expression-parse":"^3.0.1","spdx-license-ids":"^3.0.7","split-string":"^3.1.0","sprintf-js":"^1.0.3","sshpk":"^1.16.1","stack-utils":"^2.0.3","static-extend":"^0.1.2","stealthy-require":"^1.1.1","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","strip-eof":"^1.0.0","strip-final-newline":"^2.0.0","supports-color":"^7.2.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","terminal-link":"^2.1.1","test-exclude":"^6.0.0","throat":"^5.0.0","tmpl":"^1.0.4","to-fast-properties":"^2.0.0","to-object-path":"^0.3.0","to-regex":"^3.0.2","to-regex-range":"^5.0.1","tough-cookie":"^2.5.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","tweetnacl":"^0.14.5","type-check":"^0.3.2","type-detect":"^4.0.8","type-fest":"^0.11.0","typedarray-to-buffer":"^3.1.5","unicode-canonical-property-names-ecmascript":"^1.0.4","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","union-value":"^1.0.1","universalify":"^0.1.2","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","verror":"^1.10.0","w3c-hr-time":"^1.0.2","w3c-xmlserializer":"^2.0.0","walker":"^1.0.7","webidl-conversions":"^6.1.0","whatwg-encoding":"^1.0.5","whatwg-mimetype":"^2.3.0","whatwg-url":"^8.4.0","which":"^2.0.2","which-module":"^2.0.0","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","wrappy":"^1.0.2","write-file-atomic":"^3.0.3","ws":"^7.4.4","xml-name-validator":"^3.0.0","xmlchars":"^2.2.0","y18n":"^4.0.1","yallist":"^4.0.0","yargs":"^15.4.1","yargs-parser":"^18.1.3"},"gitHead":"cc4d335ec05afb4da5c516873ac871d8f1063cda","_id":"@africasokoni/react-use-cart@0.0.4","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-jYKOipjFtuY3h9UnWHZUCGMqMOpyZSZAfrz0HrWNwc0gHNv5lgEfy0HFIeE0NLOJxntVljFxUjHmSKFK7Z6nzw==","shasum":"2a883a1c12acdd62ad5759eefa612cbf338ac946","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.4.tgz","fileCount":9,"unpackedSize":115770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUwXaCRA9TVsSAnZWagAA9Y4P/A2nGXkIm6zyKbNc7sjN\nkr8QwxfZlXLYybbKErJ6NzGLvGhQWltxCYnmkqfsnAMDt0Z55EBpJ5vWpsQZ\n7E0Xu/CL0K9jrmIkcVtoIOAkhEUK+NQuQi4XcNNQ8AQMcKRkozOVuWa6DDcR\naIjuH+GrhL6nHarg+0zjjwwY99R6h9WqPP0LVg3HS/LKJK7+cTQ/lNy7CpZF\nNZiCN0P1TYhlQpYeoxbdyY0Rb0bA+/nbxmJEdgFNgxWSxF1IT7o35abQunzc\nCwp9Fm+eihT0ZypJLyk9gf2G36nDfeW49rIRmyhwSZqcq34LR5hNsuCUCdVe\nZmuVSbDJDKu3m4IIvvb6P/RClQvnE5ufaaVlgYEvEVxqInaIEtQ7/IDaBYdF\njg67XqHIXo9GjuJaRuhfrwP2hxQD4jk6XtwZ1iGxCW7Yc59Hhbs5Txh5e40Q\nythJ7EBdv1HgdVSIQmZZqv/UelXzo2wN5QHjKDWagGQurT3OrXfazDqygRBA\nUflLNziMiboJHRd35/H+TCPaOVpvHHNITkn2aja+z4yVmjtWJXepeylehvzf\ngiKlPndrF6dqlRreoVnn/YCZIVbFygKQCtwUV4IiJIcG/+HlEQxPleciPC+i\nRPbR8nnE0ImSMKIWIbauJiSq7MyTZJvLquMKNLgikLYJmVSfS32W6RnOW/0n\n6NiN\r\n=AP7/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCuU5SmE0ErgZMrqQvHUjDW67sDaQu44xYQ8iGeG25/uwIhAK8mdDcIlkVEB1yprwH/jVI0Yw4EJCnYOOzqhJNUhXo3"}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.4_1616053722345_0.14666973182154774"},"_hasShrinkwrap":false},"0.0.5":{"name":"@africasokoni/react-use-cart","version":"0.0.5","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn":"^8.1.0","acorn-globals":"^6.0.0","acorn-walk":"^7.2.0","ajv":"^6.12.6","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","ansi-styles":"^4.3.0","anymatch":"^3.1.1","argparse":"^1.0.10","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-unique":"^0.3.2","asn1":"^0.2.4","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","asynckit":"^0.4.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-istanbul":"^6.0.0","babel-plugin-jest-hoist":"^26.6.2","balanced-match":"^1.0.0","base":"^0.11.2","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.2","browser-process-hrtime":"^1.0.0","browserslist":"^4.16.3","bser":"^2.1.1","buffer-from":"^1.1.1","builtin-modules":"^3.2.0","cache-base":"^1.0.1","call-bind":"^1.0.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001200","capture-exit":"^2.0.0","caseless":"^0.12.0","chalk":"^4.1.0","char-regex":"^1.0.2","ci-info":"^2.0.0","cjs-module-lexer":"^0.6.0","class-utils":"^0.3.6","cliui":"^6.0.0","co":"^4.6.0","collect-v8-coverage":"^1.0.1","collection-visit":"^1.0.0","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","concat-map":"^0.0.1","convert-source-map":"^1.7.0","copy-descriptor":"^0.1.1","core-js-compat":"^3.9.1","core-util-is":"^1.0.2","cross-spawn":"^7.0.3","cssom":"^0.4.4","cssstyle":"^2.3.0","csstype":"^3.0.7","dashdash":"^1.14.1","data-urls":"^2.0.0","debug":"^4.3.1","decamelize":"^1.2.0","decimal.js":"^10.2.1","decode-uri-component":"^0.2.0","deep-is":"^0.1.3","deepmerge":"^4.2.2","define-properties":"^1.1.3","define-property":"^0.2.5","delayed-stream":"^1.0.0","detect-newline":"^3.1.0","diff-sequences":"^26.6.2","domexception":"^2.0.1","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","emittery":"^0.7.2","emoji-regex":"^8.0.0","end-of-stream":"^1.4.4","error-ex":"^1.3.2","escalade":"^3.1.1","escape-string-regexp":"^1.0.5","escodegen":"^2.0.0","esprima":"^4.0.1","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","exit":"^0.1.2","expand-brackets":"^2.1.4","expect":"^26.6.2","extend":"^3.0.2","extend-shallow":"^2.0.1","extglob":"^2.0.4","extsprintf":"^1.3.0","fast-deep-equal":"^3.1.3","fast-json-stable-stringify":"^2.1.0","fast-levenshtein":"^2.0.6","fb-watchman":"^2.0.1","fill-range":"^7.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs-extra":"^8.1.0","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","get-stream":"^5.2.0","get-value":"^2.0.6","getpass":"^0.1.7","glob":"^7.1.6","globals":"^11.12.0","graceful-fs":"^4.2.6","growly":"^1.3.0","har-schema":"^2.0.0","har-validator":"^5.1.5","has":"^1.0.3","has-flag":"^4.0.0","has-symbols":"^1.0.2","has-value":"^1.0.0","has-values":"^1.0.0","hosted-git-info":"^2.8.8","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","import-local":"^3.0.2","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","invariant":"^2.2.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-ci":"^2.0.0","is-core-module":"^2.2.0","is-data-descriptor":"^1.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-extendable":"^0.1.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-stream":"^2.0.0","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-docblock":"^26.0.0","jest-each":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-environment-node":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-pnp-resolver":"^1.2.2","jest-regex-util":"^26.0.0","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runner":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-snapshot":"^26.6.2","jest-util":"^26.6.2","jest-validate":"^26.6.2","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsbn":"^0.1.1","jsdom":"^16.5.1","jsesc":"^2.5.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-schema-traverse":"^0.4.1","json-stringify-safe":"^5.0.1","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","levenary":"^1.1.1","levn":"^0.3.0","lines-and-columns":"^1.1.6","locate-path":"^5.0.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","loose-envify":"^1.4.0","lru-cache":"^6.0.0","magic-string":"^0.25.7","make-dir":"^3.1.0","makeerror":"^1.0.11","map-cache":"^0.2.2","map-visit":"^1.0.0","merge-stream":"^2.0.0","micromatch":"^4.0.2","mime-db":"^1.46.0","mime-types":"^2.1.29","mimic-fn":"^2.1.0","minimatch":"^3.0.4","minimist":"^1.2.5","mixin-deep":"^1.3.2","ms":"^2.1.2","nanomatch":"^1.2.13","natural-compare":"^1.4.0","nice-try":"^1.0.5","node-int64":"^0.4.0","node-modules-regexp":"^1.0.0","node-notifier":"^8.0.2","node-releases":"^1.1.71","normalize-package-data":"^2.5.0","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-assign":"^4.1.1","object-copy":"^0.1.0","object-keys":"^1.1.1","object-visit":"^1.0.1","object.assign":"^4.1.2","object.pick":"^1.3.0","once":"^1.4.0","onetime":"^5.1.2","optionator":"^0.8.3","p-each-series":"^2.2.0","p-finally":"^1.0.0","p-limit":"^2.3.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^2.0.1","path-parse":"^1.0.6","performance-now":"^2.1.0","picomatch":"^2.2.2","pirates":"^4.0.1","pkg-dir":"^4.2.0","posix-character-classes":"^0.1.1","prelude-ls":"^1.1.2","pretty-format":"^26.6.2","prompts":"^2.4.0","prop-types":"^15.7.2","psl":"^1.8.0","pump":"^3.0.0","punycode":"^2.1.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","regenerator-runtime":"^0.13.7","regenerator-transform":"^0.14.5","regex-not":"^1.0.2","regexpu-core":"^4.7.1","regjsgen":"^0.5.2","regjsparser":"^0.6.7","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","repeat-string":"^1.6.1","request":"^2.88.2","request-promise-core":"^1.1.4","request-promise-native":"^1.0.9","require-directory":"^2.1.1","require-main-filename":"^2.0.0","resolve":"^1.20.0","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve-url":"^0.2.1","ret":"^0.1.15","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-buffer":"^5.2.1","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","semver":"^5.7.1","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","shellwords":"^0.1.1","signal-exit":"^3.0.3","sisteransi":"^1.0.5","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-node":"^2.1.1","snapdragon-util":"^3.0.1","source-map":"^0.6.1","source-map-resolve":"^0.5.3","source-map-support":"^0.5.19","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","spdx-correct":"^3.1.1","spdx-exceptions":"^2.3.0","spdx-expression-parse":"^3.0.1","spdx-license-ids":"^3.0.7","split-string":"^3.1.0","sprintf-js":"^1.0.3","sshpk":"^1.16.1","stack-utils":"^2.0.3","static-extend":"^0.1.2","stealthy-require":"^1.1.1","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","strip-eof":"^1.0.0","strip-final-newline":"^2.0.0","supports-color":"^7.2.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","terminal-link":"^2.1.1","test-exclude":"^6.0.0","throat":"^5.0.0","tmpl":"^1.0.4","to-fast-properties":"^2.0.0","to-object-path":"^0.3.0","to-regex":"^3.0.2","to-regex-range":"^5.0.1","tough-cookie":"^2.5.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","tweetnacl":"^0.14.5","type-check":"^0.3.2","type-detect":"^4.0.8","type-fest":"^0.11.0","typedarray-to-buffer":"^3.1.5","unicode-canonical-property-names-ecmascript":"^1.0.4","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","union-value":"^1.0.1","universalify":"^0.1.2","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","verror":"^1.10.0","w3c-hr-time":"^1.0.2","w3c-xmlserializer":"^2.0.0","walker":"^1.0.7","webidl-conversions":"^6.1.0","whatwg-encoding":"^1.0.5","whatwg-mimetype":"^2.3.0","whatwg-url":"^8.4.0","which":"^2.0.2","which-module":"^2.0.0","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","wrappy":"^1.0.2","write-file-atomic":"^3.0.3","ws":"^7.4.4","xml-name-validator":"^3.0.0","xmlchars":"^2.2.0","y18n":"^4.0.1","yallist":"^4.0.0","yargs":"^15.4.1","yargs-parser":"^18.1.3"},"gitHead":"e506bcf56ae170f806fd61f262c6cb7a4bd3f528","_id":"@africasokoni/react-use-cart@0.0.5","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-wb2Q4I86m8tdUKJ1reHSqBpkJspqc/6FN+qlvAPrfrziJ+aKDZDP3M6k9z3dsceRtx5/eqWw8ZWwOHlf/EV+vg==","shasum":"12dd4a99e6ded92df88542ef0ab4394a67709fb9","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.5.tgz","fileCount":9,"unpackedSize":115770,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUwhhCRA9TVsSAnZWagAAtYUP/0HbNY4bfr5Fw5uvejwN\nRD/+B5plJ83nND/8NUWiYcxwXDaQawMaJ/vSpWNbLlkhhgF/nyZQ4Jy+LbTx\nXl1kL/IM9rD8x2uw+tiZOAx0I5mtDANpwxX7d48FlHqk6mhVisaXh0HG98zk\n0cxtIWq0vpGR9DHX6t//fYWQVv6P6CBCf72aDOFcZmACqQ0OLJoHV04jtrVi\nx8OsrO/6Wh4Nzetv9AE7Ebx0IMxiGRboXd0R8Cc9A9IXHBaa0/wGVpLIG2Ux\nq1lOhuzKsEx98JlXdXLjtEvdc+Bl7uCBcE+VVfKwzNkt2NhMuTeq7YerYZ7E\no69G22j4mRqMqnabRHrvenTe191AU1JWdOE8N7mgvekCCFRLrkMGXSEuFsxF\nGViCBda1zu9C7l23n1Lg4P3NW+bUpzTVeaKn8cjKLZxj8wM1gAV4Npuq6fWv\npAvLnh4cU/WyYTHhH5ztGYLg0iJzUcxfDW3zMcMETXt19u29YvAjbmuAIClh\n4/jgx0JkqUIeXHj0S8UTBnJF6gaA8kFyCLggwor6e3wT5DjnBpYVIthfrdAE\n6I523Frji7gTtednYIeqsKZjhnBveptiyijPsKHtGH952Ba9D0GbMK3HsNb1\nkiE+XW02J8Xw5ttnn2UE1+0JA7UvSf+QbGuGp5j7dAnwBsd43UPdSBgIRBVR\nYrl/\r\n=mdIy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDsUExGSdxiDE8OWDLQ0L5LNj80z6iR2+PzbKGYLjcJHgIhAKv090/tQIR8sqda+YDDmtg+PdN57fddKYnuQkpETf72"}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.5_1616054368974_0.3051325680835859"},"_hasShrinkwrap":false},"0.0.6":{"name":"@africasokoni/react-use-cart","version":"0.0.6","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"directories":{"example":"examples"},"dependencies":{"abab":"^2.0.5","acorn":"^8.1.0","acorn-globals":"^6.0.0","acorn-walk":"^7.2.0","ajv":"^6.12.6","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","ansi-styles":"^4.3.0","anymatch":"^3.1.1","argparse":"^1.0.10","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-unique":"^0.3.2","asn1":"^0.2.4","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","asynckit":"^0.4.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-istanbul":"^6.0.0","babel-plugin-jest-hoist":"^26.6.2","balanced-match":"^1.0.0","base":"^0.11.2","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.2","browser-process-hrtime":"^1.0.0","browserslist":"^4.16.3","bser":"^2.1.1","buffer-from":"^1.1.1","builtin-modules":"^3.2.0","cache-base":"^1.0.1","call-bind":"^1.0.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001200","capture-exit":"^2.0.0","caseless":"^0.12.0","chalk":"^4.1.0","char-regex":"^1.0.2","ci-info":"^2.0.0","cjs-module-lexer":"^0.6.0","class-utils":"^0.3.6","cliui":"^6.0.0","co":"^4.6.0","collect-v8-coverage":"^1.0.1","collection-visit":"^1.0.0","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","concat-map":"^0.0.1","convert-source-map":"^1.7.0","copy-descriptor":"^0.1.1","core-js-compat":"^3.9.1","core-util-is":"^1.0.2","cross-spawn":"^7.0.3","cssom":"^0.4.4","cssstyle":"^2.3.0","csstype":"^3.0.7","dashdash":"^1.14.1","data-urls":"^2.0.0","debug":"^4.3.1","decamelize":"^1.2.0","decimal.js":"^10.2.1","decode-uri-component":"^0.2.0","deep-is":"^0.1.3","deepmerge":"^4.2.2","define-properties":"^1.1.3","define-property":"^0.2.5","delayed-stream":"^1.0.0","detect-newline":"^3.1.0","diff-sequences":"^26.6.2","domexception":"^2.0.1","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","emittery":"^0.7.2","emoji-regex":"^8.0.0","end-of-stream":"^1.4.4","error-ex":"^1.3.2","escalade":"^3.1.1","escape-string-regexp":"^1.0.5","escodegen":"^2.0.0","esprima":"^4.0.1","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","exit":"^0.1.2","expand-brackets":"^2.1.4","expect":"^26.6.2","extend":"^3.0.2","extend-shallow":"^2.0.1","extglob":"^2.0.4","extsprintf":"^1.3.0","fast-deep-equal":"^3.1.3","fast-json-stable-stringify":"^2.1.0","fast-levenshtein":"^2.0.6","fb-watchman":"^2.0.1","fill-range":"^7.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs-extra":"^8.1.0","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","get-stream":"^5.2.0","get-value":"^2.0.6","getpass":"^0.1.7","glob":"^7.1.6","globals":"^11.12.0","graceful-fs":"^4.2.6","growly":"^1.3.0","har-schema":"^2.0.0","har-validator":"^5.1.5","has":"^1.0.3","has-flag":"^4.0.0","has-symbols":"^1.0.2","has-value":"^1.0.0","has-values":"^1.0.0","hosted-git-info":"^2.8.8","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","import-local":"^3.0.2","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","invariant":"^2.2.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-ci":"^2.0.0","is-core-module":"^2.2.0","is-data-descriptor":"^1.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-extendable":"^0.1.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-stream":"^2.0.0","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-docblock":"^26.0.0","jest-each":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-environment-node":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-pnp-resolver":"^1.2.2","jest-regex-util":"^26.0.0","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runner":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-snapshot":"^26.6.2","jest-util":"^26.6.2","jest-validate":"^26.6.2","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsbn":"^0.1.1","jsdom":"^16.5.1","jsesc":"^2.5.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-schema-traverse":"^0.4.1","json-stringify-safe":"^5.0.1","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","levenary":"^1.1.1","levn":"^0.3.0","lines-and-columns":"^1.1.6","locate-path":"^5.0.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","loose-envify":"^1.4.0","lru-cache":"^6.0.0","magic-string":"^0.25.7","make-dir":"^3.1.0","makeerror":"^1.0.11","map-cache":"^0.2.2","map-visit":"^1.0.0","merge-stream":"^2.0.0","micromatch":"^4.0.2","mime-db":"^1.46.0","mime-types":"^2.1.29","mimic-fn":"^2.1.0","minimatch":"^3.0.4","minimist":"^1.2.5","mixin-deep":"^1.3.2","ms":"^2.1.2","nanomatch":"^1.2.13","natural-compare":"^1.4.0","nice-try":"^1.0.5","node-int64":"^0.4.0","node-modules-regexp":"^1.0.0","node-notifier":"^8.0.2","node-releases":"^1.1.71","normalize-package-data":"^2.5.0","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-assign":"^4.1.1","object-copy":"^0.1.0","object-keys":"^1.1.1","object-visit":"^1.0.1","object.assign":"^4.1.2","object.pick":"^1.3.0","once":"^1.4.0","onetime":"^5.1.2","optionator":"^0.8.3","p-each-series":"^2.2.0","p-finally":"^1.0.0","p-limit":"^2.3.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^2.0.1","path-parse":"^1.0.6","performance-now":"^2.1.0","picomatch":"^2.2.2","pirates":"^4.0.1","pkg-dir":"^4.2.0","posix-character-classes":"^0.1.1","prelude-ls":"^1.1.2","pretty-format":"^26.6.2","prompts":"^2.4.0","prop-types":"^15.7.2","psl":"^1.8.0","pump":"^3.0.0","punycode":"^2.1.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","regenerator-runtime":"^0.13.7","regenerator-transform":"^0.14.5","regex-not":"^1.0.2","regexpu-core":"^4.7.1","regjsgen":"^0.5.2","regjsparser":"^0.6.7","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","repeat-string":"^1.6.1","request":"^2.88.2","request-promise-core":"^1.1.4","request-promise-native":"^1.0.9","require-directory":"^2.1.1","require-main-filename":"^2.0.0","resolve":"^1.20.0","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve-url":"^0.2.1","ret":"^0.1.15","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-buffer":"^5.2.1","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","semver":"^5.7.1","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","shellwords":"^0.1.1","signal-exit":"^3.0.3","sisteransi":"^1.0.5","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-node":"^2.1.1","snapdragon-util":"^3.0.1","source-map":"^0.6.1","source-map-resolve":"^0.5.3","source-map-support":"^0.5.19","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","spdx-correct":"^3.1.1","spdx-exceptions":"^2.3.0","spdx-expression-parse":"^3.0.1","spdx-license-ids":"^3.0.7","split-string":"^3.1.0","sprintf-js":"^1.0.3","sshpk":"^1.16.1","stack-utils":"^2.0.3","static-extend":"^0.1.2","stealthy-require":"^1.1.1","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","strip-eof":"^1.0.0","strip-final-newline":"^2.0.0","supports-color":"^7.2.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","terminal-link":"^2.1.1","test-exclude":"^6.0.0","throat":"^5.0.0","tmpl":"^1.0.4","to-fast-properties":"^2.0.0","to-object-path":"^0.3.0","to-regex":"^3.0.2","to-regex-range":"^5.0.1","tough-cookie":"^2.5.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","tweetnacl":"^0.14.5","type-check":"^0.3.2","type-detect":"^4.0.8","type-fest":"^0.11.0","typedarray-to-buffer":"^3.1.5","unicode-canonical-property-names-ecmascript":"^1.0.4","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","union-value":"^1.0.1","universalify":"^0.1.2","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","verror":"^1.10.0","w3c-hr-time":"^1.0.2","w3c-xmlserializer":"^2.0.0","walker":"^1.0.7","webidl-conversions":"^6.1.0","whatwg-encoding":"^1.0.5","whatwg-mimetype":"^2.3.0","whatwg-url":"^8.4.0","which":"^2.0.2","which-module":"^2.0.0","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","wrappy":"^1.0.2","write-file-atomic":"^3.0.3","ws":"^7.4.4","xml-name-validator":"^3.0.0","xmlchars":"^2.2.0","y18n":"^4.0.1","yallist":"^4.0.0","yargs":"^15.4.1","yargs-parser":"^18.1.3"},"gitHead":"8fc32f0119592f454ea6bbe502b00140d0688b24","_id":"@africasokoni/react-use-cart@0.0.6","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-Vjal4Ho/lEOS/DywH+UbvQiE5MU/91PgsRq7G4JIjvN67xG6B3WmvPuw+RZgBtbXnNSYiADmj78lBVkNiG9WAQ==","shasum":"9d3b904af834889544cd89b0250723bd8316d7ae","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.6.tgz","fileCount":9,"unpackedSize":116704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUwk3CRA9TVsSAnZWagAA0uMP/ihak6w5apYeGpwPuaqt\nI1mbQcQtN0joW3AgPffNwB89AKQVaFRYppyHqNXB392PqovleXFUqKCfiXZ/\nRWpcqM1foxaIKeZTgIH4dNAd1pmK2z60OL2jwnFPXR+FLy2nE8TdJJi1CrXy\n70XB7QTWhcG3KQMpAUy0f2fIxMd6AYRVOoFOPKhMtXNty7svJhpXpvtXp1q9\nETLUvCOVL5bok6cFRIn+/czPPlRhG7s8tYbSFLJnPJyBf2VIHtvhurPaGDok\nKkh73IfWMHO0EwGLQN7BbNGtCgh77F8zLkHSyy9phdodQcYYGjd7JsjfaFRP\niPGMHOaCV/zO89WUTq/t5iZ8tyuH0wjGJZOanjI3li9t75a6OWmaT0+j/rxx\nnUJOC56/+QQMwtIv7kcMHRCTXp8SenQwHNVq+ZR4w85Px5iFrLs+T1zU95S+\nD3DOrDeTPjyoaiZa6PfYmhwmG5y+zCqsBGhfNc2kOyjzplqwkUdLMVpHTI8o\nhbuR01mIUdlxy374ZIF7PMCDxn5F5jOp48LaQv4Y+PicN6FCVLpsxtfCt+eR\ntgRd/BE6rBchPnwj5O9kfQerwZfJlH0ICJnFtdW9xzj+H1Y6DVQ7Q/ESx6dZ\nBRdtPRk7GNCjaS8GzOUqbc5aFQwQVlrMQn7sjnyoSEKqg3M9GosqN0jmdToz\n0LV3\r\n=+ZKW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+0+KhERjlSxaHUBq0boL/jeGuhn/kYTlL7W3fpwbMwAiEA+PFGfgJWa6qrMdiYO7zmO+rkaQ06TQNVjCJDofiHY5M="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.6_1616054582698_0.8757040781603229"},"_hasShrinkwrap":false},"0.0.7":{"name":"@africasokoni/react-use-cart","version":"0.0.7","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/react-use-cart.cjs.js","types":"dist/index.d.js","module":"dist/react-use-cart.es.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"homepage":"https://github.com/sokoni-online/react-use-cart","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"keywords":["react","commerce","ecommerce","cart","hooks"],"scripts":{"build":"rollup -c","start":"rollup -c -w","test":"jest","test:watch":"jest --watch"},"devDependencies":{"@babel/core":"7.11.6","@babel/plugin-transform-runtime":"7.11.5","@babel/preset-env":"7.11.5","@babel/preset-react":"7.10.4","@babel/preset-typescript":"7.12.7","@babel/runtime":"7.11.2","@testing-library/react-hooks":"3.4.2","@types/react":"17.0.0","@types/react-dom":"17.0.0","@types/typescript":"2.0.0","jest":"26.6.3","prettier":"2.1.2","react":"16.13.1","react-dom":"16.13.1","react-test-renderer":"16.13.1","rollup":"2.28.2","rollup-plugin-babel":"4.4.0","rollup-plugin-commonjs":"10.1.0","rollup-plugin-node-resolve":"5.2.0","rollup-plugin-peer-deps-external":"2.2.3","rollup-plugin-typescript2":"0.29.0","typescript":"4.1.3"},"peerDependencies":{"react":">= 16.8.0","react-dom":">= 16.8.0"},"dependencies":{"abab":"^2.0.5","acorn":"^8.1.0","acorn-globals":"^6.0.0","acorn-walk":"^7.2.0","ajv":"^6.12.6","ansi-escapes":"^4.3.1","ansi-regex":"^5.0.0","ansi-styles":"^4.3.0","anymatch":"^3.1.1","argparse":"^1.0.10","arr-diff":"^4.0.0","arr-flatten":"^1.1.0","arr-union":"^3.1.0","array-unique":"^0.3.2","asn1":"^0.2.4","assert-plus":"^1.0.0","assign-symbols":"^1.0.0","asynckit":"^0.4.0","atob":"^2.1.2","aws-sign2":"^0.7.0","aws4":"^1.11.0","babel-plugin-dynamic-import-node":"^2.3.3","babel-plugin-istanbul":"^6.0.0","babel-plugin-jest-hoist":"^26.6.2","balanced-match":"^1.0.0","base":"^0.11.2","bcrypt-pbkdf":"^1.0.2","brace-expansion":"^1.1.11","braces":"^3.0.2","browser-process-hrtime":"^1.0.0","browserslist":"^4.16.3","bser":"^2.1.1","buffer-from":"^1.1.1","builtin-modules":"^3.2.0","cache-base":"^1.0.1","call-bind":"^1.0.2","callsites":"^3.1.0","camelcase":"^5.3.1","caniuse-lite":"^1.0.30001200","capture-exit":"^2.0.0","caseless":"^0.12.0","chalk":"^4.1.0","char-regex":"^1.0.2","ci-info":"^2.0.0","cjs-module-lexer":"^0.6.0","class-utils":"^0.3.6","cliui":"^6.0.0","co":"^4.6.0","collect-v8-coverage":"^1.0.1","collection-visit":"^1.0.0","color-convert":"^2.0.1","color-name":"^1.1.4","colorette":"^1.2.2","combined-stream":"^1.0.8","commondir":"^1.0.1","component-emitter":"^1.3.0","concat-map":"^0.0.1","convert-source-map":"^1.7.0","copy-descriptor":"^0.1.1","core-js-compat":"^3.9.1","core-util-is":"^1.0.2","cross-spawn":"^7.0.3","cssom":"^0.4.4","cssstyle":"^2.3.0","csstype":"^3.0.7","dashdash":"^1.14.1","data-urls":"^2.0.0","debug":"^4.3.1","decamelize":"^1.2.0","decimal.js":"^10.2.1","decode-uri-component":"^0.2.0","deep-is":"^0.1.3","deepmerge":"^4.2.2","define-properties":"^1.1.3","define-property":"^0.2.5","delayed-stream":"^1.0.0","detect-newline":"^3.1.0","diff-sequences":"^26.6.2","domexception":"^2.0.1","ecc-jsbn":"^0.1.2","electron-to-chromium":"^1.3.687","emittery":"^0.7.2","emoji-regex":"^8.0.0","end-of-stream":"^1.4.4","error-ex":"^1.3.2","escalade":"^3.1.1","escape-string-regexp":"^1.0.5","escodegen":"^2.0.0","esprima":"^4.0.1","estraverse":"^5.2.0","estree-walker":"^0.6.1","esutils":"^2.0.3","exec-sh":"^0.3.4","execa":"^4.1.0","exit":"^0.1.2","expand-brackets":"^2.1.4","expect":"^26.6.2","extend":"^3.0.2","extend-shallow":"^2.0.1","extglob":"^2.0.4","extsprintf":"^1.3.0","fast-deep-equal":"^3.1.3","fast-json-stable-stringify":"^2.1.0","fast-levenshtein":"^2.0.6","fb-watchman":"^2.0.1","fill-range":"^7.0.1","find-cache-dir":"^3.3.1","find-up":"^4.1.0","for-in":"^1.0.2","forever-agent":"^0.6.1","form-data":"^2.3.3","fragment-cache":"^0.2.1","fs-extra":"^8.1.0","fs.realpath":"^1.0.0","fsevents":"^2.1.3","function-bind":"^1.1.1","gensync":"^1.0.0-beta.2","get-caller-file":"^2.0.5","get-intrinsic":"^1.1.1","get-package-type":"^0.1.0","get-stream":"^5.2.0","get-value":"^2.0.6","getpass":"^0.1.7","glob":"^7.1.6","globals":"^11.12.0","graceful-fs":"^4.2.6","growly":"^1.3.0","har-schema":"^2.0.0","har-validator":"^5.1.5","has":"^1.0.3","has-flag":"^4.0.0","has-symbols":"^1.0.2","has-value":"^1.0.0","has-values":"^1.0.0","hosted-git-info":"^2.8.8","html-encoding-sniffer":"^2.0.1","html-escaper":"^2.0.2","http-signature":"^1.2.0","human-signals":"^1.1.1","iconv-lite":"^0.4.24","import-local":"^3.0.2","imurmurhash":"^0.1.4","inflight":"^1.0.6","inherits":"^2.0.4","invariant":"^2.2.4","is-accessor-descriptor":"^1.0.0","is-arrayish":"^0.2.1","is-buffer":"^1.1.6","is-ci":"^2.0.0","is-core-module":"^2.2.0","is-data-descriptor":"^1.0.0","is-descriptor":"^1.0.2","is-docker":"^2.1.1","is-extendable":"^0.1.1","is-fullwidth-code-point":"^3.0.0","is-generator-fn":"^2.1.0","is-module":"^1.0.0","is-number":"^3.0.0","is-plain-object":"^2.0.4","is-potential-custom-element-name":"^1.0.0","is-reference":"^1.2.1","is-stream":"^2.0.0","is-typedarray":"^1.0.0","is-windows":"^1.0.2","is-wsl":"^2.2.0","isarray":"^1.0.0","isexe":"^2.0.0","isobject":"^3.0.1","isstream":"^0.1.2","istanbul-lib-coverage":"^3.0.0","istanbul-lib-instrument":"^4.0.3","istanbul-lib-report":"^3.0.0","istanbul-lib-source-maps":"^4.0.0","istanbul-reports":"^3.0.2","jest-changed-files":"^26.6.2","jest-cli":"^26.6.3","jest-config":"^26.6.3","jest-diff":"^26.6.2","jest-docblock":"^26.0.0","jest-each":"^26.6.2","jest-environment-jsdom":"^26.6.2","jest-environment-node":"^26.6.2","jest-get-type":"^26.3.0","jest-haste-map":"^26.6.2","jest-jasmine2":"^26.6.3","jest-leak-detector":"^26.6.2","jest-matcher-utils":"^26.6.2","jest-message-util":"^26.6.2","jest-mock":"^26.6.2","jest-pnp-resolver":"^1.2.2","jest-regex-util":"^26.0.0","jest-resolve":"^26.6.2","jest-resolve-dependencies":"^26.6.3","jest-runner":"^26.6.3","jest-runtime":"^26.6.3","jest-serializer":"^26.6.2","jest-snapshot":"^26.6.2","jest-util":"^26.6.2","jest-validate":"^26.6.2","jest-watcher":"^26.6.2","jest-worker":"^26.6.2","js-tokens":"^4.0.0","js-yaml":"^3.14.1","jsbn":"^0.1.1","jsdom":"^16.5.1","jsesc":"^2.5.2","json-parse-even-better-errors":"^2.3.1","json-schema":"^0.2.3","json-schema-traverse":"^0.4.1","json-stringify-safe":"^5.0.1","json5":"^2.2.0","jsonfile":"^4.0.0","jsprim":"^1.4.1","kind-of":"^3.2.2","kleur":"^3.0.3","leven":"^3.1.0","levenary":"^1.1.1","levn":"^0.3.0","lines-and-columns":"^1.1.6","locate-path":"^5.0.0","lodash":"^4.17.21","lodash.sortby":"^4.7.0","loose-envify":"^1.4.0","lru-cache":"^6.0.0","magic-string":"^0.25.7","make-dir":"^3.1.0","makeerror":"^1.0.11","map-cache":"^0.2.2","map-visit":"^1.0.0","merge-stream":"^2.0.0","micromatch":"^4.0.2","mime-db":"^1.46.0","mime-types":"^2.1.29","mimic-fn":"^2.1.0","minimatch":"^3.0.4","minimist":"^1.2.5","mixin-deep":"^1.3.2","ms":"^2.1.2","nanomatch":"^1.2.13","natural-compare":"^1.4.0","nice-try":"^1.0.5","node-int64":"^0.4.0","node-modules-regexp":"^1.0.0","node-notifier":"^8.0.2","node-releases":"^1.1.71","normalize-package-data":"^2.5.0","normalize-path":"^3.0.0","npm-run-path":"^4.0.1","nwsapi":"^2.2.0","oauth-sign":"^0.9.0","object-assign":"^4.1.1","object-copy":"^0.1.0","object-keys":"^1.1.1","object-visit":"^1.0.1","object.assign":"^4.1.2","object.pick":"^1.3.0","once":"^1.4.0","onetime":"^5.1.2","optionator":"^0.8.3","p-each-series":"^2.2.0","p-finally":"^1.0.0","p-limit":"^2.3.0","p-locate":"^4.1.0","p-try":"^2.2.0","parse-json":"^5.2.0","parse5":"^6.0.1","pascalcase":"^0.1.1","path-exists":"^4.0.0","path-is-absolute":"^1.0.1","path-key":"^2.0.1","path-parse":"^1.0.6","performance-now":"^2.1.0","picomatch":"^2.2.2","pirates":"^4.0.1","pkg-dir":"^4.2.0","posix-character-classes":"^0.1.1","prelude-ls":"^1.1.2","pretty-format":"^26.6.2","prompts":"^2.4.0","prop-types":"^15.7.2","psl":"^1.8.0","pump":"^3.0.0","punycode":"^2.1.1","qs":"^6.5.2","react-is":"^16.13.1","read-pkg":"^5.2.0","read-pkg-up":"^7.0.1","regenerate":"^1.4.2","regenerate-unicode-properties":"^8.2.0","regenerator-runtime":"^0.13.7","regenerator-transform":"^0.14.5","regex-not":"^1.0.2","regexpu-core":"^4.7.1","regjsgen":"^0.5.2","regjsparser":"^0.6.7","remove-trailing-separator":"^1.1.0","repeat-element":"^1.1.3","repeat-string":"^1.6.1","request":"^2.88.2","request-promise-core":"^1.1.4","request-promise-native":"^1.0.9","require-directory":"^2.1.1","require-main-filename":"^2.0.0","resolve":"^1.20.0","resolve-cwd":"^3.0.0","resolve-from":"^5.0.0","resolve-url":"^0.2.1","ret":"^0.1.15","rimraf":"^3.0.2","rollup-pluginutils":"^2.8.2","rsvp":"^4.8.5","safe-buffer":"^5.2.1","safe-regex":"^1.1.0","safer-buffer":"^2.1.2","sane":"^4.1.0","saxes":"^5.0.1","scheduler":"^0.19.1","semver":"^5.7.1","set-blocking":"^2.0.0","set-value":"^2.0.1","shebang-command":"^2.0.0","shebang-regex":"^3.0.0","shellwords":"^0.1.1","signal-exit":"^3.0.3","sisteransi":"^1.0.5","slash":"^3.0.0","snapdragon":"^0.8.2","snapdragon-node":"^2.1.1","snapdragon-util":"^3.0.1","source-map":"^0.6.1","source-map-resolve":"^0.5.3","source-map-support":"^0.5.19","source-map-url":"^0.4.1","sourcemap-codec":"^1.4.8","spdx-correct":"^3.1.1","spdx-exceptions":"^2.3.0","spdx-expression-parse":"^3.0.1","spdx-license-ids":"^3.0.7","split-string":"^3.1.0","sprintf-js":"^1.0.3","sshpk":"^1.16.1","stack-utils":"^2.0.3","static-extend":"^0.1.2","stealthy-require":"^1.1.1","string-length":"^4.0.1","string-width":"^4.2.2","strip-ansi":"^6.0.0","strip-bom":"^4.0.0","strip-eof":"^1.0.0","strip-final-newline":"^2.0.0","supports-color":"^7.2.0","supports-hyperlinks":"^2.1.0","symbol-tree":"^3.2.4","terminal-link":"^2.1.1","test-exclude":"^6.0.0","throat":"^5.0.0","tmpl":"^1.0.4","to-fast-properties":"^2.0.0","to-object-path":"^0.3.0","to-regex":"^3.0.2","to-regex-range":"^5.0.1","tough-cookie":"^2.5.0","tr46":"^2.0.2","tslib":"^2.0.1","tunnel-agent":"^0.6.0","tweetnacl":"^0.14.5","type-check":"^0.3.2","type-detect":"^4.0.8","type-fest":"^0.11.0","typedarray-to-buffer":"^3.1.5","unicode-canonical-property-names-ecmascript":"^1.0.4","unicode-match-property-ecmascript":"^1.0.4","unicode-match-property-value-ecmascript":"^1.2.0","unicode-property-aliases-ecmascript":"^1.1.0","union-value":"^1.0.1","universalify":"^0.1.2","unset-value":"^1.0.0","uri-js":"^4.4.1","urix":"^0.1.0","use":"^3.1.1","uuid":"^8.3.2","v8-to-istanbul":"^7.1.0","validate-npm-package-license":"^3.0.4","verror":"^1.10.0","w3c-hr-time":"^1.0.2","w3c-xmlserializer":"^2.0.0","walker":"^1.0.7","webidl-conversions":"^6.1.0","whatwg-encoding":"^1.0.5","whatwg-mimetype":"^2.3.0","whatwg-url":"^8.4.0","which":"^2.0.2","which-module":"^2.0.0","word-wrap":"^1.2.3","wrap-ansi":"^6.2.0","wrappy":"^1.0.2","write-file-atomic":"^3.0.3","ws":"^7.4.4","xml-name-validator":"^3.0.0","xmlchars":"^2.2.0","y18n":"^4.0.1","yallist":"^4.0.0","yargs":"^15.4.1","yargs-parser":"^18.1.3"},"licenseText":"                                 Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"[]\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright [yyyy] [name of copyright owner]\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","_id":"@africasokoni/react-use-cart@0.0.7","dist":{"shasum":"607cc3f18689f621b830800c3eb7edb651163be6","integrity":"sha512-YX9NRW96MhkLuPuMJRmLF2Ge8SkZXVxuBQKZQPzs8QC+H48aWTA87epRRrwGHn4JNMqaYMJ9KoJUl7AHhwqCTg==","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.7.tgz","fileCount":11,"unpackedSize":117643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgU1M0CRA9TVsSAnZWagAAOy8P/ibaAb6cjRjo2aT7ypMH\ndAAMgXKcUvgncdZlVtVkNYmnwiA6fL1/xUohtrMFhdRAdxGuDDvuD//JsBwT\nGA5SXwvbT54E7E/ZtZaLJIR5XOZyy8HW85KSGX/7vvHERfyHaQWMAOxP/xyj\n4NmHBumWI/e8m/T5pPHJna2QpToZd5kpviw5i9845iBEOTMhpVApLz37I2aQ\nMTR4GJFJsuyqM9xaHndjVQ2bONmqJBRt0n8/usRr2pcmlK1VRCtTv3CD2Ozs\nWL+bjZLs9E3scjW1r00yRygWAPdKZ9dJB+V/SpyOlAsjEP3U//DjWF93HRPf\n1ebcynCWQSEIcYyf2cdFusQ6pfiMDj+q6v7rTBRpZckbZtrx5bSokO7Mylso\nykItHpiMIS+L7NwVbHyeQyswYUt7r7PVWronmre89vidJLfqCLVCHnHH0hb+\n8cWifezUK+btPWF212lhDx6tdW8n1uJGJk91+ygz5sohxEyECF1sVzBSvPS4\ngmrfI+ALM26Vy2sRRzeoF9ygL8E1IXtbp1qlvqWyn3OQ5dUrH9z+cr3yLCE2\nrXIJXe37YrnLizQhFWz7UrVrVRjPAxNvO/Ja7fp5uc5uEvWHf+SYkTfHMwF2\n7aTHRuEM09eHkZeIR0iFU1HSuRetZaTKRbo2sEYebt3Hb+SmJzSrAL58RNF0\nzF0C\r\n=KTSP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEr6B5sSyQqpGbl0By6SGTdmMTV3Kpr+uUU4QLyMWT4AAiAJ6IfATvbX097ViYr16iX5CyoR5V41BrG130oL4yQfBw=="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.7_1616073524166_0.8862887917187321"},"_hasShrinkwrap":false},"0.0.8":{"name":"@africasokoni/react-use-cart","version":"0.0.8","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.1.21","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.1.21","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"gitHead":"a611833afa2525c02bcfa27e5fa0950fe17a1753","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@0.0.8","_nodeVersion":"15.11.0","_npmVersion":"7.6.0","dist":{"integrity":"sha512-C5NIimyH+hPjXMbhQOVYoqxX12qM7Umm6RMYoE4L828+Xp2XmdUG9ST5dfOz8uzFQZHAWZFF12lcMXk0LQ0x/g==","shasum":"eccc5a489c3bcf6b19420ee6e358be3ecbc983d9","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-0.0.8.tgz","fileCount":14,"unpackedSize":108688,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgil+dCRA9TVsSAnZWagAAdbQQAKBWpYCNrT77SkDn8EJm\nmxWLsKebYUHrU5RGFp3o3tB2017eyu7kEhe3Kb+ZaU4PE/q1KRqaa7K6zd+4\nN14DPzuL7ms3n1i+/nH+IMOYA2TrGcKtS71sbz4P7jae9/7Q4/I4UhL2olQL\n4/B2rUNo2PbvJvYP6tvROTqMWXE+0u2nUNiheL97RXxlFGOdK6GxclEJBT4+\ndYnVw08EkxutDvrJYL6hQn1wITfKCKl7kp8jPtZbeQfMf3WNGMviWTHKHaKZ\nPHq8Ip/dZssMKwifhS3bG1ue/mFqoIu4dpVzkgWwpfX/9eRsZT5uPzGLDoWK\n1DQ/8ExmQpxWPp8V54I9IDMblSdYbLihKj+BEzx1XqyNdrqveHtXzPupLDnf\nPApU4CNAXo9EWP9+fEjPeg/NFB7eB1GmhDrQJio89iLIDbxZ5K9XI0+kk/9D\ndCs4FtYVwBsOeg3e+sudpW2lGcBrqpSCi2ucwITXa6uip9uZ6lvSSoBTTh/P\noLpxoIAcgBSVi9uooXKYipR7+9WdJZ+ZUI1UYz7jcTWoPrInn+k2v3rnNnoU\ntW9CB9v++1j/WcAWGS5WX/o1pEUfdC/anV1QTksgajesYBCIeFri+xvTHuJr\n6LKUrvxXUmkrmnzlinB8CdlVGKGymASk9+ftGwypfGK3x7b9ErsmLwJAzc5m\n0PeG\r\n=XfnB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEmjXP9MM9VAkLvSVn1DiXkhi/F8xVmOwFqbJcXWATsAAiAtkBHpVSwPNwQne7Z9mNqGlVkXuZbDbPobTRJAClIPmw=="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_0.0.8_1619681180542_0.8672595542321799"},"_hasShrinkwrap":false},"1.12.0":{"name":"@africasokoni/react-use-cart","version":"1.12.0","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.1.21","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.1.21","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"gitHead":"c9938deb90e4c8587073a1e9d392e0940c373304","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.12.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-3sSJUKuq+pYZ9+BcWa5+SHijC9bkvdi72SojfHNrNaF6Te1vkZaftzGV06/5WC/+4rZsfDQ+m+ZOa5+EpWOyPw==","shasum":"bce3e7e961c12c693960e3612fb4d84b9ad09bdd","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.12.0.tgz","fileCount":14,"unpackedSize":108506,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgisxoCRA9TVsSAnZWagAAchkQAKG4CM1tvWeMtjVmEa7X\niOmDcBeYTwLU2xMJA4ps7xFIcM5FXHGjkg/JPAj8JucbcNmNB0j23kf6rfRv\nBawTUBm2b+wdt0uLzAAyEUijCmlHrt2z0LGzQ8gnaXTnQjhU07x/gJs0lnes\nB7kkmKu06UHNSmMgYdyieZFeL92tYf0uleSwYlYMuMLV6GDuwWzmDs1gu8J/\nmKQNDh/2Lx9/IAbUKanMejRPLSFmeLWWh9hRBFl2Yu4PLAxCtSo5Shpk3Nto\nEdRaxU5SFMy3aQO+S4yJ75Thhp1K9Gpt+o6B3UcyqsjS/tw79yZU36a7Bq7i\nrIcG9LwT2vqrfxzQyoQP17hrLlOGvhEz2coepDtkFONkWVe3t+zSUnzARsMv\nrvdmhK7oPIjQU2/akBocOKZlXlyaDqz/w9mQ8RGRjQturove6LGCYI88iaYP\nREwwyMQNDwocGSdL5eFAyhpCMo4ZaKzN43ByvidP1KpWpoorS1dxoc0RCfx6\nbYVAAO4J7mgXRFuFv499I2/EfiparCq8UiF/9lhlk5qnzE/z0ZMtaEnfgpJY\nMRDKd3dnZaIBkGLvVi1zjQHS9OM+8BXBVzQ5Sg4jLtf4V3ow3QLy8JfNBDXl\nrgz4EVaHki2fRySzcmCEDj2bTXW5B9bSkMeYwaMt8yYfdg4nKRO+cSjPuthp\nkv+w\r\n=Mp+s\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDqHbRuvnK0opxbCj0/74BU4pPjTEEL9sJKvlZMZfD+AAiBnNPUKobw0nm/q8+YLhmjp4qe3VZ/seC6jc1WWlx98iw=="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},{"name":"felixnyamweya","email":"felixombura@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.12.0_1619709031712_0.8718183733941405"},"_hasShrinkwrap":false},"1.13.1":{"name":"@africasokoni/react-use-cart","version":"1.13.1","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.1.21","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.1.21","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"gitHead":"413a49f418c9f316feaee81ee88aed6bb0c582dd","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.13.1","_nodeVersion":"12.22.4","_npmVersion":"6.14.14","dist":{"integrity":"sha512-zFsa+P50tchP1an+CV6KcuxzxxBtHlm8MRmGvEYhpNP7ZYAqzsWiJi0ObJNM5N1kai4QwfbLTndmpIlC9ZCc/Q==","shasum":"e35b0bded5ad9b8b8f21e6031fb8644b91d314c7","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.13.1.tgz","fileCount":14,"unpackedSize":109919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhE+JqCRA9TVsSAnZWagAAsIsP/2y4R+BBCXlxwCwpwoZi\nBaMoFSYEGs6s/lScrbxozghnQiAUndXNKmpeZJhjI++q9on4A9CY3siSyIj2\nDeES39ci/urRJsUYk0me/iC/MFiS6mEBDK8O7qoG4uSdfAMnBiC1i4lk0B8D\n66dctcF2yAubFMoFC4VQtyo4ZRwwF1N/LIRjxbmPCcAp8MHzjeo6xD7G7O74\naLgU0r0vK8Wsir7yI5Q2t8kEJ39m+TZDjAY1kqxZi85mToOG0viyFn6F9DDs\nvc+6SuFtxzAJkJnXnSG41apmgtwNhnfznoWqV2kDYWktRO0137zKBvmks/dr\n8JPcEqb9utKu1gR4uXlI7aNKB17Yh2cyp5peP10NtvXiG4tUhb77dmslqSex\nLclLTlGEhvZzsouoE1bbzplsyHQfI7MCaTYWWtt376yRKku0GV+CZrVu0xaj\nk/lU8VcEiseqi1kxSi3zhmctIH8BN6l7CkjInd5ysReuGeq8coM1BPTyajEA\nUliamhsI3+SveRm50Sn5FAytZVBIywoaz4HrfreOx6AkQ5bQYMRqt29gpx2M\nAuK6eYqJB64mxATqb0cqqQWSCjG7I7ndM9QekGIyivMqscJz8jIZHudoFtvu\n4Ca3SzGWlHLxoVEkRvVZ9/xTUT7P9uSQjhZ1SwVZjtbcrcrjq7uehEEAtfy/\n07IY\r\n=M1Dy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBfV/Z4C+Nj15/WEN3vvnfifGD/NuDFQDfA4/Zp3RD63AiEA4/O1st7EMkaBjl0PBF1IE7KVYdp23kA6hTg+pwa2prE="}]},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.13.1_1628693098359_0.9794567272977892"},"_hasShrinkwrap":false},"1.14.0":{"name":"@africasokoni/react-use-cart","version":"1.14.0","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"gitHead":"201cf8ce89b01ad7a4f9a39eaf4db98f63890501","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.14.0","_nodeVersion":"16.13.2","_npmVersion":"6.14.16","dist":{"integrity":"sha512-QQj8aZZlYCz5SbrXmt/SGqFKeR/uKHSsmLONsxRYdY1pLdGyABCtbDmfpVoAsmF/ORQ0mxwQ2T5cRFwrwN6lEA==","shasum":"9ba5f1f344f4af0172468a4bb0e8c3bd1cd55a30","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.14.0.tgz","fileCount":14,"unpackedSize":116605,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDd8LwqTBqtlpkZABAnewBBU03Ssm530Ofz9whAn3pVxAiAyG52PZ3K3ZevtIL/olFGahIGDoPrPpOr4uYJg3ET7Bg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSN8AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUHg//bKme9ivEGvikPA6FIz8gLkdAxvQtJ2NBWbECbqgEBqflo7T9\r\nNeoiXgkLiVZofIU/ZKRZZ5JZRXg0K58LoS62X+wwGusL1JYTcto880J9Tmkb\r\nyj19roU21aKy8NivylPbgHGWm/jOUb9xnZPCrwD2DhYSoziu5OeCPNd2E8E6\r\nJ4DOdJdfSSob5uG4nGDRcoV0efIoCG/WgengQI9TJBjs1Zqp2sP7ClZ9G35f\r\nE97zPiYNa9QAa+nxjOuTRY6L6lF4Vshy2gmIsMYeTPnjWi3ySynseN2dOA5k\r\nkC16GaoqYxuG46zPSt2v+ac8J0aN073qQ3zSaoREmrLhJ8OiLk6ISphA3XZy\r\n0g3y2PbGv/m5S87+OPPLYs7h+8jb0uTgT2vHQhwFNQmbdAOQLI2AFbnoBEFb\r\ndIV3Xbn4mHyvEwbiRZvaHku3AHP1B05oC6JDlZpCq7exe9ok4cd0aNMdQF1R\r\nU8zI8xvhD5eELlo55v6uEdedQdSKd4i18y17vJO+fqY15bNpb2r+v1rGj7eQ\r\nmfSQw2vRIJJJKuKPY9iHNI36OS8oqL8haIRV/lW0iHZ+9T2hJy9G+j1uACOG\r\nnm/BTM60V+0Hx/xFajs3YsURzm1i0q3CCpT/ZM69iCPvGAi9E6CGP8JJHpCr\r\ntqtkrjtF2Q745lyqFmAp3VfHIsvebQx8fMo=\r\n=STsk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.14.0_1665720064460_0.3209743537323493"},"_hasShrinkwrap":false},"1.15.0-beta.1":{"name":"@africasokoni/react-use-cart","version":"1.15.0-beta.1","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"readme":"<h1 align=\"center\">\n  @africasokoni/react-use-cart\n</h1>\n<p align=\"center\">\n🛒 A lightweight shopping cart hook for React, Next.js, and Gatsby\n</p>\n\n## Why?\n\n- **No dependencies**\n- 💳 Not tied to any payment gateway, or checkout - create your own!\n- 🔥 Persistent carts with local storage, or your own adapter\n- ⭐️ Supports multiples carts per page\n- 🛒 Flexible cart item schema\n- 🥞 Works with Next, Gatsby, React\n- ♻️ Trigger your own side effects with cart handlers (on item add, update, remove)\n- 🛠 Built with TypeScript\n- ✅ Fully tested\n- 🌮 Used by [Dines](https://dines.co.uk/?ref=react-use-cart)\n\n## Quick Start\n\n```js\nimport { CartProvider, useCart } from \"@africasokoni/react-use-cart\";\n\nfunction Page() {\n  const { addItem } = useCart();\n\n  const products = [\n    {\n      id: 1,\n      name: \"Malm\",\n      price: 9900,\n      quantity: 1\n    },\n    {\n      id: 2,\n      name: \"Nordli\",\n      price: 16500,\n      quantity: 5\n    },\n    {\n      id: 3,\n      name: \"Kullen\",\n      price: 4500,\n      quantity: 1\n    },\n  ];\n\n  return (\n    <div>\n      {products.map((p) => (\n        <div key={p.id}>\n          <button onClick={() => addItem(p)}>Add to cart</button>\n        </div>\n      ))}\n    </div>\n  );\n}\n\nfunction Cart() {\n  const {\n    isEmpty,\n    totalUniqueItems,\n    items,\n    updateItemQuantity,\n    removeItem,\n  } = useCart();\n\n  if (isEmpty) return <p>Your cart is empty</p>;\n\n  return (\n    <>\n      <h1>Cart ({totalUniqueItems})</h1>\n\n      <ul>\n        {items.map((item) => (\n          <li key={item.id}>\n            {item.quantity} x {item.name} &mdash;\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity - 1)}\n            >\n              -\n            </button>\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity + 1)}\n            >\n              +\n            </button>\n            <button onClick={() => removeItem(item.id)}>&times;</button>\n          </li>\n        ))}\n      </ul>\n    </>\n  );\n}\n\nfunction App() {\n  return (\n    <CartProvider>\n      <Page />\n      <Cart />\n    </CartProvider>\n  );\n}\n```\n\n## Install\n\n```bash\nnpm install @africasokoni/react-use-cart # yarn add @africasokoni/react-use-cart\n```\n\n## `CartProvider`\n\nYou will need to wrap your application with the `CartProvider` component so that the `useCart` hook can access the cart state.\n\nCarts are persisted across visits using `localStorage`, unless you specify your own `storage` adapter.\n\n#### Usage\n\n```js\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { CartProvider } from \"@africasokoni/react-use-cart\";\n\nReactDOM.render(\n  <CartProvider>{/* render app/cart here */}</CartProvider>,\n  document.getElementById(\"root\")\n);\n```\n\n#### Props\n\n| Prop           | Required | Description                                                                                                                                                |\n| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `id`           | _No_     | `id` for your cart to enable automatic cart retrieval via `window.localStorage`. If you pass a `id` then you can use multiple instances of `CartProvider`. |\n| `onSetItems`   | _No_     | Triggered only when `setItems` invoked.                                                                                                                    |\n| `onItemAdd`    | _No_     | Triggered on items added to your cart, unless the item already exists, then `onItemUpdate` will be invoked.                                                |\n| `onItemUpdate` | _No_     | Triggered on items updated in your cart, unless you are setting the quantity to `0`, then `onItemRemove` will be invoked.                                  |\n| `onItemRemove` | _No_     | Triggered on items removed from your cart.                                                                                                                 |\n| `storage`      | _No_     | Must return `[getter, setter]`.                                                                                                                            |\n| `metadata`     | _No_     | Custom global state on the cart. Stored inside of `metadata`.                                                                                              |\n## `useCart`\n\nThe `useCart` hook exposes all the getter/setters for your cart state.\n\n### `setItems(items)`\n\nThe `setItems` method should be used to set all items in the cart. This will overwrite any existing cart items. A `quantity` default of 1 will be set for an item implicitly if no `quantity` is specified.\n\n\n#### Args\n\n- `items[]` (**Required**): An array of cart item object. You must provide an `id` and `price` value for new items that you add to cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { setItems } = useCart();\n\nconst products = [\n  {\n    id: \"ckb64v21u000001ksgw2s42ku\",\n    name: \"Fresh Foam 1080v9\",\n    brand: \"New Balance\",\n    color: \"Neon Emerald with Dark Neptune\",\n    size: \"US 10\",\n    width: \"B - Standard\",\n    sku: \"W1080LN9\",\n    price: 15000,\n    discount_price: 10000\n  },\n  {\n    id: \"cjld2cjxh0000qzrmn831i7rn\",\n    name: \"Fresh Foam 1080v9\",\n    brand: \"New Balance\",\n    color: \"Neon Emerald with Dark Neptune\",\n    size: \"US 9\",\n    width: \"B - Standard\",\n    sku: \"W1080LN9\",\n    price: 15000,\n    discount_price: 10000\n  },\n];\n\nsetItems(products);\n```\n\n### `addItem(item, quantity)`\n\nThe `addItem` method should be used to add items to the cart.\n\n#### Args\n\n- `item` (**Required**): An object that represents your cart item. You must provide an `id` and `discount_price` value for new items that you add to cart.\n- `quantity` (_optional_, **default**: `1`): The amount of items you want to add.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { addItem } = useCart();\n\nconst product = {\n  id: \"cjld2cjxh0000qzrmn831i7rn\",\n  name: \"Fresh Foam 1080v9\",\n  brand: \"New Balance\",\n  color: \"Neon Emerald with Dark Neptune\",\n  size: \"US 9\",\n  width: \"B - Standard\",\n  sku: \"W1080LN9\",\n  price: 15000,\n  discount_price: 10000,\n};\n\naddItem(product, 2);\n```\n\n### `updateItem(itemId, data)`\n\nThe `updateItem` method should be used to update items in the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `data` (**Required**): The updated cart item object.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItem } = useCart();\n\nupdateItem(\"cjld2cjxh0000qzrmn831i7rn\", {\n  size: \"UK 10\",\n});\n```\n\n### `updateItemQuantity(itemId, quantity)`\n\nThe `updateItemQuantity` method should be used to update an items `quantity` value.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `quantity` (**Required**): The updated cart item quantity.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItemQuantity } = useCart();\n\nupdateItemQuantity(\"cjld2cjxh0000qzrmn831i7rn\", 1);\n```\n\n### `removeItem(itemId)`\n\nThe `removeItem` method should be used to remove an item from the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to remove.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { removeItem } = useCart();\n\nremoveItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `emptyCart()`\n\nThe `emptyCart()` method should be used to remove all cart items, and resetting cart totals to the default `0` values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { emptyCart } = useCart();\n\nemptyCart();\n```\n\n### `clearCartMetadata()`\n\nThe `clearCartMetadata()` will reset the `metadata` to an empty object.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { clearCartMetadata } = useCart();\n\nclearCartMetadata();\n```\n\n### `setCartMetadata(object)`\n\nThe `setCartMetadata()` will replace the `metadata` object on the cart. You must pass it an object.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { setCartMetadata } = useCart();\n\nsetCartMetadata({ notes: \"This is the only metadata\" });\n```\n\n### `updateCartMetadata(object)`\n\nThe `updateCartMetadata()` will update the `metadata` object on the cart. You must pass it an object. This will merge the passed object with the existing metadata.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateCartMetadata } = useCart();\n\nupdateCartMetadata({ notes: \"Leave in shed\" });\n```\n\n### `items = []`\n\nThis will return the current cart items in an array.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { items } = useCart();\n```\n\n### `isEmpty = false`\n\nA quick and easy way to check if the cart is empty. Returned as a boolean.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { isEmpty } = useCart();\n```\n\n### `getItem(itemId)`\n\nGet a specific cart item by `id`. Returns the item object.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're fetching.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { getItem } = useCart();\n\nconst myItem = getItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `inCart(itemId)`\n\nQuickly check if an item is in the cart. Returned as a boolean.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're looking for.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { inCart } = useCart();\n\ninCart(\"cjld2cjxh0000qzrmn831i7rn\") ? \"In cart\" : \"Not in cart\";\n```\n\n### `totalItems = 0`\n\nThis returns the totaly quantity of items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalItems } = useCart();\n```\n\n### `totalUniqueItems = 0`\n\nThis returns the total unique items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalUniqueItems } = useCart();\n```\n\n### `cartTotal = 0`\n\nThis returns the total value of all items in the cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { cartTotal } = useCart();\n```\n\n### `metadata = {}`\n\nThis returns the metadata set with `updateCartMetadata`. This is useful for storing additional cart, or checkout values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { metadata } = useCart();\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/getTobiasNielsen\"><img src=\"https://avatars.githubusercontent.com/u/54803528?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tobias Nielsen</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=getTobiasNielsen\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/craigtweedy\"><img src=\"https://avatars.githubusercontent.com/u/612558?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Craig Tweedy</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=craigtweedy\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://jonathan.steele.pro\"><img src=\"https://avatars.githubusercontent.com/u/3578709?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jonathan Steele</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=ynnoj\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://scottspence.com\"><img src=\"https://avatars.githubusercontent.com/u/234708?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Scott Spence</b></sub></a><br /><a href=\"#example-spences10\" title=\"Examples\">💡</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","gitHead":"5130cd80e308139c7d3474e4cdc8b54118c48978","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.15.0-beta.1","_nodeVersion":"16.13.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-sH8amk7rS4/rGzHKFP8QE+WKUKRLZrdYmNpO/WAzbT+byY1V9WFR2EeTJMIoellGAw+MkURe9ddui3FiWRzWZA==","shasum":"cdfdc41002664de92b8cc0ad76aed067311a864b","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.15.0-beta.1.tgz","fileCount":14,"unpackedSize":117257,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQFW0fk5AwxKFlNTIa08zoPsFtvDgGQRVqq8/xhWF9tAIgOstq6CdwDz5Lau2Lfq+4xI2gIROhcJlh9VbXMpCxoAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSOsXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr91Q//RJAnXnLNM35FDH1rIzzN7ZbSYcW7nifiQxJcg6xEWoKH4ugI\r\nNgHPRKwz4TxBCpLOw5hUIjeqs15TRquSDzaIf7Z5rJJVdYdv7LD/i9AFYpMk\r\ndynQHuFEut+TLQ+B5KeKtbexC6m0lEXd2XGLAxrfkrdPwEL8Qmvh3DuoMZLn\r\nttNrlrM/cr7njwPTC02OnaMWlZVsFfqnC04su0nclEM8HJjT2CKUQcXXawDi\r\nB5ep4OdWepgUJxOjU8HuCJpmtkRGC8DgImRKq8B665cmP/o0fKlO1dSTI9iw\r\n9/ypleploxG6qwBQLAYdB0n5XbuO+0VDMZnsVPBNmzwFpgwXtEsWbagXogei\r\nYcfxSPtyYjChg1IM7mCbl1J5SKvNdcxP+C8qN635P+z6Qrp4t5uiGWwLyVyB\r\nagvMX7+Rs9gQ/YddK6Ctw8PFSzcDSxBPgW3uJ6dkrkzisfrhUwY5q9GooCEk\r\naNn82Ol2NjOiqtZz26ZBlSOtPRYOjJhuCJ0Z7ZWEqBNwfj5zVKlL+GWUAgXy\r\nizhnu0bY7Tujlv4wMdUJ+AhB3iyC2Llk84noxNKun2lLULqzKMVzWRD8YvJx\r\nZ2fIHzVnPNLAKlG9DUPIC6gAcI/5esrrNBK3Vzs7RE4LAgK41R9uaRzp5E6w\r\n4iFwDVmRWS82n+9muXI7C9I9LhRmEgl6AWc=\r\n=q308\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.15.0-beta.1_1665723159648_0.33334134206909694"},"_hasShrinkwrap":false},"1.15.0-beta.2":{"name":"@africasokoni/react-use-cart","version":"1.15.0-beta.2","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"readme":"<h1 align=\"center\">\n  @africasokoni/react-use-cart\n</h1>\n<p align=\"center\">\n🛒 A lightweight shopping cart hook for React, Next.js, and Gatsby\n</p>\n\n## Why?\n\n- **No dependencies**\n- 💳 Not tied to any payment gateway, or checkout - create your own!\n- 🔥 Persistent carts with local storage, or your own adapter\n- ⭐️ Supports multiples carts per page\n- 🛒 Flexible cart item schema\n- 🥞 Works with Next, Gatsby, React\n- ♻️ Trigger your own side effects with cart handlers (on item add, update, remove)\n- 🛠 Built with TypeScript\n- ✅ Fully tested\n- 🌮 Used by [Dines](https://dines.co.uk/?ref=react-use-cart)\n\n## Quick Start\n\n```js\nimport { CartProvider, useCart } from \"@africasokoni/react-use-cart\";\n\nfunction Page() {\n  const { addItem } = useCart();\n\n  const products = [\n    {\n      id: '12345',\n      name: \"Malm\",\n      discount_price: 9900,\n      quantity: 1,\n      itemSku: {\n        id: '12345-sku',\n        discount_price: 9900,\n      }\n    },\n    {\n      id: 2,\n      name: \"Nordli\",\n      price: 16500,\n      quantity: 5, \n      itemSku: {\n        id: '123456-sku',\n        discount_price: 16500,\n      }\n    },\n    {\n      id: 3,\n      name: \"Kullen\",\n      discount_price: 4500,\n      quantity: 1, \n      itemSku: {\n        id: '1234567-sku', \n        discount_price: 4500,\n      }\n    },\n  ];\n\n  return (\n    <div>\n      {products.map((p) => (\n        <div key={p.id}>\n          <button onClick={() => addItem(p)}>Add to cart</button>\n        </div>\n      ))}\n    </div>\n  );\n}\n\nfunction Cart() {\n  const {\n    isEmpty,\n    totalUniqueItems,\n    items,\n    updateItemQuantity,\n    removeItem,\n  } = useCart();\n\n  if (isEmpty) return <p>Your cart is empty</p>;\n\n  return (\n    <>\n      <h1>Cart ({totalUniqueItems})</h1>\n\n      <ul>\n        {items.map((item) => (\n          <li key={item.id}>\n            {item.quantity} x {item.name} &mdash;\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity - 1)}\n            >\n              -\n            </button>\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity + 1)}\n            >\n              +\n            </button>\n            <button onClick={() => removeItem(item.id)}>&times;</button>\n          </li>\n        ))}\n      </ul>\n    </>\n  );\n}\n\nfunction App() {\n  return (\n    <CartProvider>\n      <Page />\n      <Cart />\n    </CartProvider>\n  );\n}\n```\n\n## Install\n\n```bash\nnpm install @africasokoni/react-use-cart # yarn add @africasokoni/react-use-cart\n```\n\n## `CartProvider`\n\nYou will need to wrap your application with the `CartProvider` component so that the `useCart` hook can access the cart state.\n\nCarts are persisted across visits using `localStorage`, unless you specify your own `storage` adapter.\n\n#### Usage\n\n```js\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { CartProvider } from \"@africasokoni/react-use-cart\";\n\nReactDOM.render(\n  <CartProvider>{/* render app/cart here */}</CartProvider>,\n  document.getElementById(\"root\")\n);\n```\n\n#### Props\n\n| Prop           | Required | Description                                                                                                                                                |\n| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `id`           | _No_     | `id` for your cart to enable automatic cart retrieval via `window.localStorage`. If you pass a `id` then you can use multiple instances of `CartProvider`. |\n| `onSetItems`   | _No_     | Triggered only when `setItems` invoked.                                                                                                                    |\n| `onItemAdd`    | _No_     | Triggered on items added to your cart, unless the item already exists, then `onItemUpdate` will be invoked.                                                |\n| `onItemUpdate` | _No_     | Triggered on items updated in your cart, unless you are setting the quantity to `0`, then `onItemRemove` will be invoked.                                  |\n| `onItemRemove` | _No_     | Triggered on items removed from your cart.                                                                                                                 |\n| `storage`      | _No_     | Must return `[getter, setter]`.                                                                                                                            |\n| `metadata`     | _No_     | Custom global state on the cart. Stored inside of `metadata`.                                                                                              |\n## `useCart`\n\nThe `useCart` hook exposes all the getter/setters for your cart state.\n\n### `setItems(items)`\n\nThe `setItems` method should be used to set all items in the cart. This will overwrite any existing cart items. A `quantity` default of 1 will be set for an item implicitly if no `quantity` is specified.\n\n\n#### Args\n\n- `items[]` (**Required**): An array of cart item object. You must provide an `id` and `price` value for new items that you add to cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { setItems } = useCart();\n\nconst products = [\n  {\n    id: \"ckb64v21u000001ksgw2s42ku\",\n    name: \"Fresh Foam 1080v9\",\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f1\", \n        discount_price: 1000.0,\n      }\n    ],\n    discount_price: 10000, \n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0\n    }\n  },\n  {\n    id: \"cjld2cjxh0000qzrmn831i7rn\",\n    name: \"Fresh Foam 1080v90\",\n    discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0,\n    }\n  },\n];\n\nsetItems(products);\n```\n\n### `addItem(item, quantity)`\n\nThe `addItem` method should be used to add items to the cart.\n\n#### Args\n\n- `item` (**Required**): An object that represents your cart item. You must provide an `id` and `discount_price` value for new items that you add to cart.\n- `quantity` (_optional_, **default**: `1`): The amount of items you want to add.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { addItem } = useCart();\n\nconst product = {\n  id: \"cjld2cjxh0000qzrmn831i7rn\",\n  name: \"Fresh Foam 1080v9\", \n  discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n      discount_price: 1000.0,\n    }\n};\n\naddItem(product, 2);\n```\n\n### `updateItem(itemId, data)`\n\nThe `updateItem` method should be used to update items in the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `data` (**Required**): The updated cart item object.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItem } = useCart();\n\nupdateItem(\"cjld2cjxh0000qzrmn831i7rn\", {\n  size: \"UK 10\",\n});\n```\n\n### `updateItemQuantity(itemId, quantity)`\n\nThe `updateItemQuantity` method should be used to update an items `quantity` value.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `quantity` (**Required**): The updated cart item quantity.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItemQuantity } = useCart();\n\nupdateItemQuantity(\"cjld2cjxh0000qzrmn831i7rn\", 1);\n```\n\n### `removeItem(itemId)`\n\nThe `removeItem` method should be used to remove an item from the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to remove.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { removeItem } = useCart();\n\nremoveItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `emptyCart()`\n\nThe `emptyCart()` method should be used to remove all cart items, and resetting cart totals to the default `0` values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { emptyCart } = useCart();\n\nemptyCart();\n```\n\n### `clearCartMetadata()`\n\nThe `clearCartMetadata()` will reset the `metadata` to an empty object.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { clearCartMetadata } = useCart();\n\nclearCartMetadata();\n```\n\n### `setCartMetadata(object)`\n\nThe `setCartMetadata()` will replace the `metadata` object on the cart. You must pass it an object.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { setCartMetadata } = useCart();\n\nsetCartMetadata({ notes: \"This is the only metadata\" });\n```\n\n### `updateCartMetadata(object)`\n\nThe `updateCartMetadata()` will update the `metadata` object on the cart. You must pass it an object. This will merge the passed object with the existing metadata.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateCartMetadata } = useCart();\n\nupdateCartMetadata({ notes: \"Leave in shed\" });\n```\n\n### `items = []`\n\nThis will return the current cart items in an array.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { items } = useCart();\n```\n\n### `isEmpty = false`\n\nA quick and easy way to check if the cart is empty. Returned as a boolean.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { isEmpty } = useCart();\n```\n\n### `getItem(itemId)`\n\nGet a specific cart item by `id`. Returns the item object.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're fetching.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { getItem } = useCart();\n\nconst myItem = getItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `inCart(itemId)`\n\nQuickly check if an item is in the cart. Returned as a boolean.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're looking for.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { inCart } = useCart();\n\ninCart(\"cjld2cjxh0000qzrmn831i7rn\") ? \"In cart\" : \"Not in cart\";\n```\n\n### `totalItems = 0`\n\nThis returns the totaly quantity of items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalItems } = useCart();\n```\n\n### `totalUniqueItems = 0`\n\nThis returns the total unique items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalUniqueItems } = useCart();\n```\n\n### `cartTotal = 0`\n\nThis returns the total value of all items in the cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { cartTotal } = useCart();\n```\n\n### `metadata = {}`\n\nThis returns the metadata set with `updateCartMetadata`. This is useful for storing additional cart, or checkout values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { metadata } = useCart();\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/getTobiasNielsen\"><img src=\"https://avatars.githubusercontent.com/u/54803528?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tobias Nielsen</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=getTobiasNielsen\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/craigtweedy\"><img src=\"https://avatars.githubusercontent.com/u/612558?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Craig Tweedy</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=craigtweedy\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://jonathan.steele.pro\"><img src=\"https://avatars.githubusercontent.com/u/3578709?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jonathan Steele</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=ynnoj\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://scottspence.com\"><img src=\"https://avatars.githubusercontent.com/u/234708?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Scott Spence</b></sub></a><br /><a href=\"#example-spences10\" title=\"Examples\">💡</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","gitHead":"20477374cb774abbf40c24abf9ce223a866ca97f","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.15.0-beta.2","_nodeVersion":"16.13.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-unoIP+qgqvpCsPiQjNEY/9Lo2GCNvyno+szoLybJ619jeOGc1NJb2gu7eQkP0+Qv0QEGpFHdfaKVBEkIoEd2qg==","shasum":"66eb0563fc85fd211f13ca98b994f63934184b73","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.15.0-beta.2.tgz","fileCount":14,"unpackedSize":117955,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIqUXqndW1KmeuDNjV4gMk3iow1u1g9ULz2mWixZxUZgIhAPm3vJrdGHy3Oz+062yGPyDpXOlZ0kvIBF+aihtwIxYJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSRAdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBsRAAmTLFJGSXKsrmOu3GYP4DQo7LDThYOe7QNBuqEJkSb3n7NIAI\r\nI1Jgvf9UwpauAqa8ymfuSD3sePH8g/R3BHAZ7f5t5jmEKDzltfTBvOqVsQDY\r\nkcapENYV7LbRMPToo6L46C/S4GYPdNbAFFYMZnagaVkl4K5hJUAWTaFGHrBH\r\npnTs6zXZJ2Niqj2OIQlaSUldlkK38Y9P7A38+JCwVo34U9xCoDfBwX3cU16j\r\nvMQuFlg9AEA4oB58VX+rNu9OQ9p+nUCHp3D0GrPAtDe/Y+XquQ92MZD9fQjL\r\n4X5J1TefOkXK0Z9gLnlPxxURj9MN6cGJQuHY9ON57Ryw4b5kUhflghQTYLQM\r\nIEmjHFwgjg3VbI8NYKPh2MitIMYmcyoU5ETggrZQHldqv/1b0Sh9kpqpCV9y\r\nLhPoWnbg7/TbPk6pkSAjwdlePppU2P9qqNkVOQQNqT1SA6oJn6rdTAIlu8Fy\r\nDIeaoLL1ewOJAvEH237D3p6J9QQoho56UWczgPgPSRlwfy9HhY2L39JExm0w\r\nqTHo25SHag3Ikfaw152nFrUgCk80DjNAkPmf+A2TZXuHwqdM2w6tvUHWrWcs\r\nFBB6QEik9iEPjSj/gp+kYGmfwi22ys//LzQUrem7vdgFYOhDWKBpnrMXK7vY\r\n03LD5jNaI22PW7y3MOjj60l4zogbGWCYl2s=\r\n=SWzW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.15.0-beta.2_1665732637302_0.5715386230373611"},"_hasShrinkwrap":false},"1.15.0":{"name":"@africasokoni/react-use-cart","version":"1.15.0","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"gitHead":"5ec8e65b788c8cae90a9de9015c504f295b8f4fa","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.15.0","_nodeVersion":"16.13.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-SR/wGjQNaIP301ljWTshuT1/jFUcK98gkQ+eCf6YludsD+V/vy1AZ4GJmY92ZofkYUswgzh6GkdycxiWPGSi0w==","shasum":"68b7a147ca194758efaaec3d1d64d32b03d4709b","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.15.0.tgz","fileCount":14,"unpackedSize":117948,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCKDZemB8XsW5IMfndEBHd2QQiRrBqNc8nA0CUtR5Ac/wIgYj7wGE0aD247qmXpG8BiR5om6yqcBIJhjMFqz7cwC8Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTM4HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhWRAAonmz13kxVxLinzqDRxct4Ec8MfbfE/NEJ/oZV9n3BcqX/1X2\r\n6z4MSa4RR0xiMXeNYPdRBP9KwTJ9BTuQ3DW0oYUMtiOqL5oi4cMCqOPAtVFb\r\n4hwGnPXH3LpAr4V8YEFKP5vctYOsS9iNVjjmXVBRUUf5rmnInUNmJPUkJ7LZ\r\nOyULjMLsPqqQwZ5CiYV5MP6fttJ3YxFx0dbBHD066YRfCz2Adw5VWCkoIJ2E\r\n5/Ky2ulMcErwSEiFn1VjxdLIHUQkUVGW0+AO6kDimbpSLVk6ZlhuYkhGLMm7\r\nNbU1Um+qU/eV9gH823LjUCADfOtIWJeelv/Lmo/8QO1KLB2pISTjnKgcP/OE\r\nRW2c6rY+SoLUsPUqrMy6Wl7Y+WkK/JgVj9fi0gz6rqNRMpGNlg33l+hOnpZ9\r\nfUd2dfLtazy/8vFI6Cxwd9YSMV34EEuy74HAvIp7r++6/XyVY963eCHPzh1w\r\nMJFgQ22L3J9+WFckablVBP54FnwDQzxYIY6ZBKYIXw0E7juLoVbDorINOkyL\r\n9AXzxx3oqQkAMPUs6fS38o0iop2+EbpBBrIavHc3gPQtV1B/qKuxUAf+e7oO\r\nxQEIgPYDR2WexTlTCntEx43/EwOygzWOWs8eMY8w6upgGoAEWWyG3WmVsPTk\r\nmzMijDQz7U5xPSTFB1vM1vlVeaEGgQQlCl8=\r\n=hsO9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.15.0_1665977863000_0.8187178708243821"},"_hasShrinkwrap":false},"1.15.0-beta.3":{"name":"@africasokoni/react-use-cart","version":"1.15.0-beta.3","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"readme":"<h1 align=\"center\">\n  @africasokoni/react-use-cart\n</h1>\n<p align=\"center\">\n🛒 A lightweight shopping cart hook for React, Next.js, and Gatsby\n</p>\n\n## Why?\n\n- **No dependencies**\n- 💳 Not tied to any payment gateway, or checkout - create your own!\n- 🔥 Persistent carts with local storage, or your own adapter\n- ⭐️ Supports multiples carts per page\n- 🛒 Flexible cart item schema\n- 🥞 Works with Next, Gatsby, React\n- ♻️ Trigger your own side effects with cart handlers (on item add, update, remove)\n- 🛠 Built with TypeScript\n- ✅ Fully tested\n- 🌮 Used by [Dines](https://dines.co.uk/?ref=react-use-cart)\n\n## Quick Start\n\n```js\nimport { CartProvider, useCart } from \"@africasokoni/react-use-cart\";\n\nfunction Page() {\n  const { addItem } = useCart();\n\n  const products = [\n    {\n      id: '12345',\n      name: \"Malm\",\n      discount_price: 9900,\n      quantity: 1,\n      itemSku: {\n        id: '12345-sku',\n        discount_price: 9900,\n      }\n    },\n    {\n      id: 2,\n      name: \"Nordli\",\n      price: 16500,\n      quantity: 5, \n      itemSku: {\n        id: '123456-sku',\n        discount_price: 16500,\n      }\n    },\n    {\n      id: 3,\n      name: \"Kullen\",\n      discount_price: 4500,\n      quantity: 1, \n      itemSku: {\n        id: '1234567-sku', \n        discount_price: 4500,\n      }\n    },\n  ];\n\n  return (\n    <div>\n      {products.map((p) => (\n        <div key={p.id}>\n          <button onClick={() => addItem(p)}>Add to cart</button>\n        </div>\n      ))}\n    </div>\n  );\n}\n\nfunction Cart() {\n  const {\n    isEmpty,\n    totalUniqueItems,\n    items,\n    updateItemQuantity,\n    removeItem,\n  } = useCart();\n\n  if (isEmpty) return <p>Your cart is empty</p>;\n\n  return (\n    <>\n      <h1>Cart ({totalUniqueItems})</h1>\n\n      <ul>\n        {items.map((item) => (\n          <li key={item.id}>\n            {item.quantity} x {item.name} &mdash;\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity - 1)}\n            >\n              -\n            </button>\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity + 1)}\n            >\n              +\n            </button>\n            <button onClick={() => removeItem(item.id)}>&times;</button>\n          </li>\n        ))}\n      </ul>\n    </>\n  );\n}\n\nfunction App() {\n  return (\n    <CartProvider>\n      <Page />\n      <Cart />\n    </CartProvider>\n  );\n}\n```\n\n## Install\n\n```bash\nnpm install @africasokoni/react-use-cart # yarn add @africasokoni/react-use-cart\n```\n\n## `CartProvider`\n\nYou will need to wrap your application with the `CartProvider` component so that the `useCart` hook can access the cart state.\n\nCarts are persisted across visits using `localStorage`, unless you specify your own `storage` adapter.\n\n#### Usage\n\n```js\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { CartProvider } from \"@africasokoni/react-use-cart\";\n\nReactDOM.render(\n  <CartProvider>{/* render app/cart here */}</CartProvider>,\n  document.getElementById(\"root\")\n);\n```\n\n#### Props\n\n| Prop           | Required | Description                                                                                                                                                |\n| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `id`           | _No_     | `id` for your cart to enable automatic cart retrieval via `window.localStorage`. If you pass a `id` then you can use multiple instances of `CartProvider`. |\n| `onSetItems`   | _No_     | Triggered only when `setItems` invoked.                                                                                                                    |\n| `onItemAdd`    | _No_     | Triggered on items added to your cart, unless the item already exists, then `onItemUpdate` will be invoked.                                                |\n| `onItemUpdate` | _No_     | Triggered on items updated in your cart, unless you are setting the quantity to `0`, then `onItemRemove` will be invoked.                                  |\n| `onItemRemove` | _No_     | Triggered on items removed from your cart.                                                                                                                 |\n| `storage`      | _No_     | Must return `[getter, setter]`.                                                                                                                            |\n| `metadata`     | _No_     | Custom global state on the cart. Stored inside of `metadata`.                                                                                              |\n## `useCart`\n\nThe `useCart` hook exposes all the getter/setters for your cart state.\n\n### `setItems(items)`\n\nThe `setItems` method should be used to set all items in the cart. This will overwrite any existing cart items. A `quantity` default of 1 will be set for an item implicitly if no `quantity` is specified.\n\n\n#### Args\n\n- `items[]` (**Required**): An array of cart item object. You must provide an `id` and `price` value for new items that you add to cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { setItems } = useCart();\n\nconst products = [\n  {\n    id: \"ckb64v21u000001ksgw2s42ku\",\n    name: \"Fresh Foam 1080v9\",\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f1\", \n        discount_price: 1000.0,\n      }\n    ],\n    discount_price: 10000, \n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0\n    }\n  },\n  {\n    id: \"cjld2cjxh0000qzrmn831i7rn\",\n    name: \"Fresh Foam 1080v90\",\n    discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0,\n    }\n  },\n];\n\nsetItems(products);\n```\n\n### `addItem(item, quantity)`\n\nThe `addItem` method should be used to add items to the cart.\n\n#### Args\n\n- `item` (**Required**): An object that represents your cart item. You must provide an `id` and `discount_price` value for new items that you add to cart.\n- `quantity` (_optional_, **default**: `1`): The amount of items you want to add.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { addItem } = useCart();\n\nconst product = {\n  id: \"cjld2cjxh0000qzrmn831i7rn\",\n  name: \"Fresh Foam 1080v9\", \n  discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n      discount_price: 1000.0,\n    }\n};\n\naddItem(product, 2);\n```\n\n### `updateItem(itemId, data)`\n\nThe `updateItem` method should be used to update items in the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `data` (**Required**): The updated cart item object.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItem } = useCart();\n\nupdateItem(\"cjld2cjxh0000qzrmn831i7rn\", {\n  size: \"UK 10\",\n});\n```\n\n### `updateItemQuantity(itemId, quantity)`\n\nThe `updateItemQuantity` method should be used to update an items `quantity` value.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `quantity` (**Required**): The updated cart item quantity.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItemQuantity } = useCart();\n\nupdateItemQuantity(\"cjld2cjxh0000qzrmn831i7rn\", 1);\n```\n\n### `removeItem(itemId)`\n\nThe `removeItem` method should be used to remove an item from the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to remove.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { removeItem } = useCart();\n\nremoveItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `emptyCart()`\n\nThe `emptyCart()` method should be used to remove all cart items, and resetting cart totals to the default `0` values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { emptyCart } = useCart();\n\nemptyCart();\n```\n\n### `clearCartMetadata()`\n\nThe `clearCartMetadata()` will reset the `metadata` to an empty object.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { clearCartMetadata } = useCart();\n\nclearCartMetadata();\n```\n\n### `setCartMetadata(object)`\n\nThe `setCartMetadata()` will replace the `metadata` object on the cart. You must pass it an object.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { setCartMetadata } = useCart();\n\nsetCartMetadata({ notes: \"This is the only metadata\" });\n```\n\n### `updateCartMetadata(object)`\n\nThe `updateCartMetadata()` will update the `metadata` object on the cart. You must pass it an object. This will merge the passed object with the existing metadata.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateCartMetadata } = useCart();\n\nupdateCartMetadata({ notes: \"Leave in shed\" });\n```\n\n### `items = []`\n\nThis will return the current cart items in an array.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { items } = useCart();\n```\n\n### `isEmpty = false`\n\nA quick and easy way to check if the cart is empty. Returned as a boolean.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { isEmpty } = useCart();\n```\n\n### `getItem(itemId)`\n\nGet a specific cart item by `id`. Returns the item object.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're fetching.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { getItem } = useCart();\n\nconst myItem = getItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `inCart(itemId)`\n\nQuickly check if an item is in the cart. Returned as a boolean.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're looking for.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { inCart } = useCart();\n\ninCart(\"cjld2cjxh0000qzrmn831i7rn\") ? \"In cart\" : \"Not in cart\";\n```\n\n### `totalItems = 0`\n\nThis returns the totaly quantity of items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalItems } = useCart();\n```\n\n### `totalUniqueItems = 0`\n\nThis returns the total unique items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalUniqueItems } = useCart();\n```\n\n### `cartTotal = 0`\n\nThis returns the total value of all items in the cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { cartTotal } = useCart();\n```\n\n### `metadata = {}`\n\nThis returns the metadata set with `updateCartMetadata`. This is useful for storing additional cart, or checkout values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { metadata } = useCart();\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/getTobiasNielsen\"><img src=\"https://avatars.githubusercontent.com/u/54803528?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tobias Nielsen</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=getTobiasNielsen\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/craigtweedy\"><img src=\"https://avatars.githubusercontent.com/u/612558?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Craig Tweedy</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=craigtweedy\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://jonathan.steele.pro\"><img src=\"https://avatars.githubusercontent.com/u/3578709?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jonathan Steele</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=ynnoj\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://scottspence.com\"><img src=\"https://avatars.githubusercontent.com/u/234708?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Scott Spence</b></sub></a><br /><a href=\"#example-spences10\" title=\"Examples\">💡</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md","gitHead":"fa609b3bc01d77a55ba5cd4714efbc546991a170","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.15.0-beta.3","_nodeVersion":"16.13.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-u4lT3htRiLCyMUFSZTu8eW82L5IqI9cVISWO5rhExXkMqCooPzlcfCPXQ3GT7RQQ5vLba25UEoRjX+vWljcjcw==","shasum":"98c8f7737d98f5a5b8ac8f1db955199f75d8c75d","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.15.0-beta.3.tgz","fileCount":14,"unpackedSize":121964,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChcpx6GiWWEGkAgjBsNfYBNA2a3ye8jRiy74rzfyJptgIgNYxwA9/CdqAUvxuIO3/LG9b1xuq5vKZTNSFzhgC5lkE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVo9HACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrC/A/+OgdMpsDVMsxqsoVlwVrmyZVQKpsuQvJ/2FbIOeVJBmJMSkXV\r\n8ZFyvXp5cnUg4F8ORURGyv+CnXGPNHaTEFRH6cs9Bv7lejzDNs9zolP8DAzZ\r\nPlWf2lA9bzvpuoJ7YanS4OKEriE4ExHSV7odQ77BUWUMQh+43mslE+QEkkbn\r\nxRO0CORXrst4nDCbU3s+GMPE0omXv5sIulIdE9vgNVat0aS5GTOeI5J69lfb\r\nLj+LXUWmQOPklOMMWKTl/b4gJx4GLBf/vKInsHfua153qburCIwdOJXRR3AV\r\nPK18mBmSPCjiuMUUODIleKWdvHWvJgrBRTCbGODcL+1FTDwbrHK2k5oI3IzQ\r\nKgJH3KDR7dGLwegGBmZER6t44wVI+P274tfdRbS+jV4pbi6MzI+A94yVd09C\r\nmLfA3gVIsAP298M4oQTmTambvH7FzCTYm4pjzIpOs5c9FW9Guxa6fP865jf7\r\nSkz9YB0+0wsY3FjonJSsI+93ePXQMeh91eQFrsZO5NloRqlpptk9mq3976hC\r\nRC9BFxo43F1q76/hZ+55ny2NnTcv37SqeyDzuKymOFlZD5n5fsLCCbFcpsFT\r\nhoXa1tyiPagKGpEYM82k3ktkYFgPPwqtkQB+WxIIfHMDYCmX2MFCv0bHB8GX\r\nC+CO7L2sEVqvCZc+utuove+KDCY6NqZa18M=\r\n=iZE5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.15.0-beta.3_1666617158918_0.6732318666520118"},"_hasShrinkwrap":false},"1.15.1":{"name":"@africasokoni/react-use-cart","version":"1.15.1","description":"React hook library for managing cart state.","author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"license":"Apache-2.0","main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/react-use-cart.esm.js","repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"keywords":["react","commerce","ecommerce","cart","hooks"],"engines":{"node":">=10"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test --passWithNoTests","lint":"tsdx lint","prepare":"tsdx build","storybook":"start-storybook -p 6006","build-storybook":"build-storybook"},"resolutions":{"**/@typescript-eslint/eslint-plugin":"4.11.1","**/@typescript-eslint/parser":"4.11.1","**/typescript":"4.2.3"},"peerDependencies":{"react":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"devDependencies":{"@babel/core":"7.13.13","@storybook/addon-essentials":"6.4.13","@storybook/addon-info":"5.3.21","@storybook/addon-links":"6.1.21","@storybook/addons":"6.1.21","@storybook/react":"6.4.13","@testing-library/react-hooks":"5.1.0","@types/react":"17.0.3","@types/react-dom":"17.0.3","babel-jest":"26.6.3","babel-loader":"8.2.2","husky":"5.2.0","react":"17.0.2","react-dom":"17.0.2","react-is":"17.0.2","tsdx":"0.14.1","tslib":"2.1.0","typescript":"4.2.3"},"publishConfig":{"access":"public"},"gitHead":"245ab050d154fd8928ecce97de83a9ccb2859348","bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"homepage":"https://github.com/sokoni-online/react-use-cart#readme","_id":"@africasokoni/react-use-cart@1.15.1","_nodeVersion":"16.13.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-Bcf5YAc7TFcQqYGnhEXnnpBO2aF2Vg2AvrmtmA+tq1SBo2XFCedKpuIT19qRg2mDZX8UjiELf1Ij5ae8VqFdJQ==","shasum":"da6352695e066db322af70d1e3f804e5181f894e","tarball":"https://registry.npmjs.org/@africasokoni/react-use-cart/-/react-use-cart-1.15.1.tgz","fileCount":14,"unpackedSize":121957,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOt0mdM5MoS5s/B7yEmiICYf33IYebQKx/aVP7UPi8YwIhAPQiapyBoZOG+RdZVSWmAQdogOfC4y9bjYWwzNmreiBI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWhaSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrM7A/6A/bx0Tz3cSFfHiGNQktvzStb15Sf8TW4/bQqWSYhzegD+CbB\r\nKm219jDZd/wPwJi/ZJuX7JI6HdQWb3LzCHSp0ZLKbrFwIDrvlJAGOqXCv9JU\r\neuaxnnsSlAgw5Vmbh1iQ1PUvLHRJHZtTDUQVeRqqBBola96NrY7ZjuXugGUH\r\nO1QhkIvwWulAZ5amGuv9x8pQAryJYL5osXQdRv/24fJ5fDAvzfUKFHIjcSyD\r\niMx5naazfAdmwDc0bh8rtkO4mBx+ly0+AWN34U8iXMs9k3RwlCbG1NrHfyQW\r\nFJo8rXr/n/w/0npkDpsnN2DH72bmp4/8gtpG+zu2E0nvkmS18n8nd2DQ4jf5\r\nFXAAkLL5yFoUzGuDUZhM4FxtuiKichvYj/PCbtmstG+xiNErQXVpXXVRCuZk\r\nCQnw6rbGxax5VZ2EJ+uofjTzb/k8lm+KeJqyy7p4PFHeT5ixgaSsDhGGyqcW\r\nxEx6WimvO8uUMgZMxqBrucc8CPikTD5PnzzdzBqPVGxVF9sH0Qei3XVqiVyx\r\nIOvVTXVEmpGr8MCEurDtbE0CxAeEVUr8zFC2ibaKf1rhSD0mSQ3qJwnP/noB\r\n3XeTgqeG+sXKn485/R/I30UdhmMlQBgJF/TVzo9/6Hlj7bb7/y5NihpE+sM2\r\nxfISfkAxk5pMZfwsE5zjAfE9RUwj736Fff4=\r\n=QQuJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"},"directories":{},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-use-cart_1.15.1_1666848402449_0.5235967243149262"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-16T05:29:16.778Z","0.0.0-semantic-release":"2021-03-16T05:29:17.194Z","modified":"2022-10-27T05:26:42.747Z","0.0.1":"2021-03-16T05:39:29.130Z","0.0.2":"2021-03-17T04:10:03.215Z","0.0.3":"2021-03-18T07:48:12.041Z","0.0.4":"2021-03-18T07:48:42.558Z","0.0.5":"2021-03-18T07:59:29.149Z","0.0.6":"2021-03-18T08:03:02.820Z","0.0.7":"2021-03-18T13:18:44.304Z","0.0.8":"2021-04-29T07:26:20.681Z","1.12.0":"2021-04-29T15:10:31.841Z","1.13.1":"2021-08-11T14:44:58.619Z","1.14.0":"2022-10-14T04:01:04.608Z","1.15.0-beta.1":"2022-10-14T04:52:39.791Z","1.15.0-beta.2":"2022-10-14T07:30:37.464Z","1.15.0":"2022-10-17T03:37:43.174Z","1.15.0-beta.3":"2022-10-24T13:12:39.148Z","1.15.1":"2022-10-27T05:26:42.630Z"},"maintainers":[{"name":"felixnyamweya","email":"felixombura@gmail.com"},{"name":"gr1d99","email":"gideon.kimutai.kim@gmail.com"}],"description":"React hook library for managing cart state.","homepage":"https://github.com/sokoni-online/react-use-cart#readme","keywords":["react","commerce","ecommerce","cart","hooks"],"repository":{"type":"git","url":"git+https://github.com/sokoni-online/react-use-cart.git"},"author":{"name":"Jamie Barton","email":"jamie@notrab.dev","url":"https://twitter.com/notrab"},"bugs":{"url":"https://github.com/sokoni-online/react-use-cart/issues"},"license":"Apache-2.0","readme":"<h1 align=\"center\">\n  @africasokoni/react-use-cart\n</h1>\n<p align=\"center\">\n🛒 A lightweight shopping cart hook for React, Next.js, and Gatsby\n</p>\n\n## Why?\n\n- **No dependencies**\n- 💳 Not tied to any payment gateway, or checkout - create your own!\n- 🔥 Persistent carts with local storage, or your own adapter\n- ⭐️ Supports multiples carts per page\n- 🛒 Flexible cart item schema\n- 🥞 Works with Next, Gatsby, React\n- ♻️ Trigger your own side effects with cart handlers (on item add, update, remove)\n- 🛠 Built with TypeScript\n- ✅ Fully tested\n- 🌮 Used by [Dines](https://dines.co.uk/?ref=react-use-cart)\n\n## Quick Start\n\n```js\nimport { CartProvider, useCart } from \"@africasokoni/react-use-cart\";\n\nfunction Page() {\n  const { addItem } = useCart();\n\n  const products = [\n    {\n      id: '12345',\n      name: \"Malm\",\n      discount_price: 9900,\n      quantity: 1,\n      itemSku: {\n        id: '12345-sku',\n        discount_price: 9900,\n      }\n    },\n    {\n      id: 2,\n      name: \"Nordli\",\n      price: 16500,\n      quantity: 5, \n      itemSku: {\n        id: '123456-sku',\n        discount_price: 16500,\n      }\n    },\n    {\n      id: 3,\n      name: \"Kullen\",\n      discount_price: 4500,\n      quantity: 1, \n      itemSku: {\n        id: '1234567-sku', \n        discount_price: 4500,\n      }\n    },\n  ];\n\n  return (\n    <div>\n      {products.map((p) => (\n        <div key={p.id}>\n          <button onClick={() => addItem(p)}>Add to cart</button>\n        </div>\n      ))}\n    </div>\n  );\n}\n\nfunction Cart() {\n  const {\n    isEmpty,\n    totalUniqueItems,\n    items,\n    updateItemQuantity,\n    removeItem,\n  } = useCart();\n\n  if (isEmpty) return <p>Your cart is empty</p>;\n\n  return (\n    <>\n      <h1>Cart ({totalUniqueItems})</h1>\n\n      <ul>\n        {items.map((item) => (\n          <li key={item.id}>\n            {item.quantity} x {item.name} &mdash;\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity - 1)}\n            >\n              -\n            </button>\n            <button\n              onClick={() => updateItemQuantity(item.id, item.quantity + 1)}\n            >\n              +\n            </button>\n            <button onClick={() => removeItem(item.id)}>&times;</button>\n          </li>\n        ))}\n      </ul>\n    </>\n  );\n}\n\nfunction App() {\n  return (\n    <CartProvider>\n      <Page />\n      <Cart />\n    </CartProvider>\n  );\n}\n```\n\n## Install\n\n```bash\nnpm install @africasokoni/react-use-cart # yarn add @africasokoni/react-use-cart\n```\n\n## `CartProvider`\n\nYou will need to wrap your application with the `CartProvider` component so that the `useCart` hook can access the cart state.\n\nCarts are persisted across visits using `localStorage`, unless you specify your own `storage` adapter.\n\n#### Usage\n\n```js\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { CartProvider } from \"@africasokoni/react-use-cart\";\n\nReactDOM.render(\n  <CartProvider>{/* render app/cart here */}</CartProvider>,\n  document.getElementById(\"root\")\n);\n```\n\n#### Props\n\n| Prop           | Required | Description                                                                                                                                                |\n| -------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `id`           | _No_     | `id` for your cart to enable automatic cart retrieval via `window.localStorage`. If you pass a `id` then you can use multiple instances of `CartProvider`. |\n| `onSetItems`   | _No_     | Triggered only when `setItems` invoked.                                                                                                                    |\n| `onItemAdd`    | _No_     | Triggered on items added to your cart, unless the item already exists, then `onItemUpdate` will be invoked.                                                |\n| `onItemUpdate` | _No_     | Triggered on items updated in your cart, unless you are setting the quantity to `0`, then `onItemRemove` will be invoked.                                  |\n| `onItemRemove` | _No_     | Triggered on items removed from your cart.                                                                                                                 |\n| `storage`      | _No_     | Must return `[getter, setter]`.                                                                                                                            |\n| `metadata`     | _No_     | Custom global state on the cart. Stored inside of `metadata`.                                                                                              |\n## `useCart`\n\nThe `useCart` hook exposes all the getter/setters for your cart state.\n\n### `setItems(items)`\n\nThe `setItems` method should be used to set all items in the cart. This will overwrite any existing cart items. A `quantity` default of 1 will be set for an item implicitly if no `quantity` is specified.\n\n\n#### Args\n\n- `items[]` (**Required**): An array of cart item object. You must provide an `id` and `price` value for new items that you add to cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { setItems } = useCart();\n\nconst products = [\n  {\n    id: \"ckb64v21u000001ksgw2s42ku\",\n    name: \"Fresh Foam 1080v9\",\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f1\", \n        discount_price: 1000.0,\n      }\n    ],\n    discount_price: 10000, \n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0\n    }\n  },\n  {\n    id: \"cjld2cjxh0000qzrmn831i7rn\",\n    name: \"Fresh Foam 1080v90\",\n    discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\",\n      discount_price: 1000.0,\n    }\n  },\n];\n\nsetItems(products);\n```\n\n### `addItem(item, quantity)`\n\nThe `addItem` method should be used to add items to the cart.\n\n#### Args\n\n- `item` (**Required**): An object that represents your cart item. You must provide an `id` and `discount_price` value for new items that you add to cart.\n- `quantity` (_optional_, **default**: `1`): The amount of items you want to add.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { addItem } = useCart();\n\nconst product = {\n  id: \"cjld2cjxh0000qzrmn831i7rn\",\n  name: \"Fresh Foam 1080v9\", \n  discount_price: 10000,\n    sku: [\n      {\n        id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n        discount_price: 1000.0,\n      }\n    ],\n    itemSku: {\n      id: \"693d51a9-d5f7-48a3-8278-deb9b264782f\", \n      discount_price: 1000.0,\n    }\n};\n\naddItem(product, 2);\n```\n\n### `updateItem(itemId, data)`\n\nThe `updateItem` method should be used to update items in the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `data` (**Required**): The updated cart item object.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItem } = useCart();\n\nupdateItem(\"cjld2cjxh0000qzrmn831i7rn\", {\n  size: \"UK 10\",\n});\n```\n\n### `updateItemQuantity(itemId, quantity)`\n\nThe `updateItemQuantity` method should be used to update an items `quantity` value.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to update.\n- `quantity` (**Required**): The updated cart item quantity.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateItemQuantity } = useCart();\n\nupdateItemQuantity(\"cjld2cjxh0000qzrmn831i7rn\", 1);\n```\n\n### `removeItem(itemId)`\n\nThe `removeItem` method should be used to remove an item from the cart.\n\n#### Args\n\n- `itemId` (**Required**): The cart item `id` you want to remove.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { removeItem } = useCart();\n\nremoveItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `emptyCart()`\n\nThe `emptyCart()` method should be used to remove all cart items, and resetting cart totals to the default `0` values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { emptyCart } = useCart();\n\nemptyCart();\n```\n\n### `clearCartMetadata()`\n\nThe `clearCartMetadata()` will reset the `metadata` to an empty object.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { clearCartMetadata } = useCart();\n\nclearCartMetadata();\n```\n\n### `setCartMetadata(object)`\n\nThe `setCartMetadata()` will replace the `metadata` object on the cart. You must pass it an object.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"react-use-cart\";\n\nconst { setCartMetadata } = useCart();\n\nsetCartMetadata({ notes: \"This is the only metadata\" });\n```\n\n### `updateCartMetadata(object)`\n\nThe `updateCartMetadata()` will update the `metadata` object on the cart. You must pass it an object. This will merge the passed object with the existing metadata.\n\n#### Args\n\n- `object`: A object with key/value pairs. The key being a string.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { updateCartMetadata } = useCart();\n\nupdateCartMetadata({ notes: \"Leave in shed\" });\n```\n\n### `items = []`\n\nThis will return the current cart items in an array.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { items } = useCart();\n```\n\n### `isEmpty = false`\n\nA quick and easy way to check if the cart is empty. Returned as a boolean.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { isEmpty } = useCart();\n```\n\n### `getItem(itemId)`\n\nGet a specific cart item by `id`. Returns the item object.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're fetching.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { getItem } = useCart();\n\nconst myItem = getItem(\"cjld2cjxh0000qzrmn831i7rn\");\n```\n\n### `inCart(itemId)`\n\nQuickly check if an item is in the cart. Returned as a boolean.\n\n#### Args\n\n- `itemId` (**Required**): The `id` of the item you're looking for.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { inCart } = useCart();\n\ninCart(\"cjld2cjxh0000qzrmn831i7rn\") ? \"In cart\" : \"Not in cart\";\n```\n\n### `totalItems = 0`\n\nThis returns the totaly quantity of items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalItems } = useCart();\n```\n\n### `totalUniqueItems = 0`\n\nThis returns the total unique items in the cart as an integer.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { totalUniqueItems } = useCart();\n```\n\n### `cartTotal = 0`\n\nThis returns the total value of all items in the cart.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { cartTotal } = useCart();\n```\n\n### `metadata = {}`\n\nThis returns the metadata set with `updateCartMetadata`. This is useful for storing additional cart, or checkout values.\n\n#### Usage\n\n```js\nimport { useCart } from \"@africasokoni/react-use-cart\";\n\nconst { metadata } = useCart();\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n  <tr>\n    <td align=\"center\"><a href=\"https://github.com/getTobiasNielsen\"><img src=\"https://avatars.githubusercontent.com/u/54803528?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Tobias Nielsen</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=getTobiasNielsen\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://github.com/craigtweedy\"><img src=\"https://avatars.githubusercontent.com/u/612558?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Craig Tweedy</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=craigtweedy\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"http://jonathan.steele.pro\"><img src=\"https://avatars.githubusercontent.com/u/3578709?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Jonathan Steele</b></sub></a><br /><a href=\"https://github.com/notrab/react-use-cart/commits?author=ynnoj\" title=\"Code\">💻</a></td>\n    <td align=\"center\"><a href=\"https://scottspence.com\"><img src=\"https://avatars.githubusercontent.com/u/234708?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Scott Spence</b></sub></a><br /><a href=\"#example-spences10\" title=\"Examples\">💡</a></td>\n  </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","readmeFilename":"README.md"}