{"_id":"@boldcommerce/bold-subscriptions-storefront-js","_rev":"20-09822492a4ce49d972d4b91702c6816b","name":"@boldcommerce/bold-subscriptions-storefront-js","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@boldcommerce/bold-subscriptions-storefront-js","version":"1.0.0","keywords":["bold","subscriptions","storefront","js","javascript","api","Shopify"],"author":{"name":"Morgan Wowk","email":"morgan@boldcommerce.com"},"license":"MIT","_id":"@boldcommerce/bold-subscriptions-storefront-js@1.0.0","maintainers":[{"name":"game-of-morgan","email":"morgan.wowk@gmail.com"},{"name":"boldops","email":"ops@boldcommerce.com"}],"dist":{"shasum":"30f5907c9a676c011db69ebf0cb3a44c29c721d2","tarball":"https://registry.npmjs.org/@boldcommerce/bold-subscriptions-storefront-js/-/bold-subscriptions-storefront-js-1.0.0.tgz","fileCount":5,"integrity":"sha512-J/r190pr6sRHP2K0VX3D9eWlL8o1MdkjR165RmWmaaSeoNPUcuBrIt3qSKnaHwzVj8yc88YwZLZ8vb0ynQCRow==","signatures":[{"sig":"MEYCIQDMu/RvAAaAU2r3MV7IFpZicjjiZ3VOadUlOr5biQykXgIhANBi/Eq3JfEGKkMyG1Oxkrw1bvo9OnoXAZLDX5S24KJ8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":26163,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2BsgCRA9TVsSAnZWagAA/L4P/23HKBt/NDo3s6ShQWz3\nV0BkVfS8WVmIuXS6i1hhqzfQ13kqNupYLr8q6UqA0qxDQqPfqCYQus96p6Ds\nf2HG6Eyp8cTx57nXu2tRa2cSRozNFrfecNRa9+FrldXyTBxRJkV5wgicQCL1\namPVoLxlnRNPJZfG1qiQ1jd/fVRckj6lMAm8upSiaxVU15/i2v1YbKVB1glV\nRkYdYYf/rhcd+DEHklStsiP8UMRznD2bkxAP3NUtAcYX+HieflO7WUGjDgW8\nG4VA+I4PDqjpbP0SFhluEjD3VT/b3reiNi9sfkq1Wxb/outO7I7hXttiYN5G\nLR6sM8xSGe4z1LPQREk6jjpJP9azI5NIyBBY1Hb7jpJhSCw+BKYRLUS9az1/\n7tZZcfwbR+k2+J8GKv31JV2DVGWyZPf62hETmHawjCr5SvnjcSixIRNFh/0K\nbR+HYteuDSyvLkPYxfNbCZTH0vV5ez3Gil6SqxKTsEvYzCib/zS3kG/gN3Cy\nLMxFlFHCHLOeFq+B53ppJTJWLBXU70eN83z7SKmr9wyKM4NHP/pIRBP3ouMN\nNv9yY1r5o1qBZqo3upyzs/XIKRpfO9Unzx82zJd5UagtxhxCuZeelZc/QfET\nwOdlzT3HGsRi4GbQ2UDSqQjY/6Dv8MdPD+EIOwIngsoKbGdgFoKI/96gXeGR\nk+I2\r\n=z3jj\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/es-bundle.js","unpkg":"dist/bold-subscriptions-js.min.js","engines":{"node":">=7.8.0"},"gitHead":"fd3a8b1e38a207bc4a7e941f3e4907fdc2150700","scripts":{"test":"jest --verbose","build":"webpack","build-cdn":"webpack --config webpack.cdn.config.js","prepublish":"yarn test && yarn build && yarn build-cdn"},"_npmUser":{"name":"game-of-morgan","email":"morgan.wowk@gmail.com"},"deprecated":"WARNING: This project has been renamed to @boldcommerce/bold-subscriptions-js. Install using @boldcommerce/bold-subscriptions-js instead","_npmVersion":"6.1.0","description":"This Javascript API makes it easy to add subscriptions to the cart and navigate to the Bold Subscriptions or Cashier checkout.","directories":{},"_nodeVersion":"10.6.0","browserslist":["last 1 version","> 1%","IE 10"],"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.8.0","webpack":"^4.35.3","babel-jest":"^24.8.0","@babel/core":"^7.5.4","webpack-cli":"^3.3.5","babel-loader":"^8.0.6","@babel/preset-env":"^7.5.4"},"_npmOperationalInternal":{"tmp":"tmp/bold-subscriptions-storefront-js_1.0.0_1564517632168_0.22046556958001884","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-07-30T20:13:51.935Z","modified":"2026-01-07T19:55:06.013Z","1.0.0":"2019-07-30T20:13:52.267Z"},"author":{"name":"Morgan Wowk","email":"morgan@boldcommerce.com"},"license":"MIT","keywords":["bold","subscriptions","storefront","js","javascript","api","Shopify"],"description":"This Javascript API makes it easy to add subscriptions to the cart and navigate to the Bold Subscriptions or Cashier checkout.","maintainers":[{"email":"ops@boldcommerce.com","name":"boldops"},{"email":"felipe.dossantos@boldcommerce.com","name":"felipe.dossantos.bold"}],"readme":"# BoldSubscriptions.js\n\n## About\n\nUse these Javascript APIs to easily build custom subscription flows, add subscriptions to the cart and navigate to the Bold Subscriptions or Cashier checkout. The available methods are a fast alternative to and largely based off of our [Custom Subscription Flow](https://docs.boldapps.net/subscriptions/storefront#custom-subscription-flow) and [Widget API](https://docs.boldapps.net/subscriptions/storefront#widget-api) documentation. Included with these API methods are detailed exceptions and error messages to help you quickly and reliably develop custom subscription flows.\n\n## Browser Support\n\n![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n--- | --- | --- | --- | --- | --- |\nLatest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |\n\n## Installing\n\nUsing npm:\n\n```shell\n$ npm install bold-subscriptions-js\n```\n\nUsing yarn:\n\n```shell\n$ yarn add bold-subscriptions-js\n```\n\nUsing CDN:\n\n```html\n<script src=\"https://unpkg.com/bold-subscriptions-js/dist/bold-subscriptions-js.min.js\"></script>\n```\n\n## API Reference\n\nTo view our full documentation on the available methods head over to our [BoldSubscriptions.js API reference](https://docs.boldapps.net/subscriptions/storefront#boldsubscriptions-js).\n\n### Example Node.js usage\n\n```javascript\nimport { cart } from 'bold-subscriptions-js';\ncart.standard.addToCart({\n\t'id': 1250183643165,\n\tproperties: {\n\t\t'group_id': 1234,\n\t\t'frequency_num': 1,\n\t\t'frequency_type': 3,\n\t\t'frequency_type_text': 'Every 1 Month(s)',\n\t}\n})\n\t.then(() => alert('Successfully added!'));\n```\n\n\n### Example CDN usage\n\n```html\n<form>\n\t<input type=\"hidden\" name=\"group_id\" value=\"1234\">\n\t<input type=\"hidden\" name=\"frequency_num\" value=\"1\">\n\t<input type=\"hidden\" name=\"frequency_type\" value=\"3\">\n\t<input type=\"hidden\" name=\"frequency_type_text\" value=\"Every 1 Month(s)\">\n\t<input type=\"hidden\" name=\"quantities[]\" value=\"1\">\n\t<input type=\"hidden\" name=\"variant_id[]\" value=\"1250183643165\">\n\t<input type=\"hidden\" name=\"product_id[]\" value=\"103180140573\">\n\t<button onclick=\"BoldSubscriptions.cart.standard.directlyToCheckout(event)\">Checkout</button>\n</form>\n```\n\n## Contributing\n\nThis project is read only. Please contact [Bold Commerce](https://boldcommerce.com/) with any changes or additions you would like to make.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.\n","readmeFilename":"README.md"}