New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@biz-storefront/checkout

Package Overview
Dependencies
Maintainers
2
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biz-storefront/checkout

```javascript import Vue from 'vue' import Router from 'vue-router' import Vuex from 'vuex' import checkout from 'https://cdn.loja.biz/storefront/checkout.js' import addToCart from 'https://cdn.loja.biz/storefront/add-to-cart.js'

  • 2.0.86-alpha.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

checkout

import Vue from 'vue'
import Router from 'vue-router'
import Vuex from 'vuex'
import checkout from 'https://cdn.loja.biz/storefront/checkout.js'
import addToCart from 'https://cdn.loja.biz/storefront/add-to-cart.js'

Vue.use(Vuex)
Vue.use(Router)

const router =  new Router(routes)
const store = new Vuex.Store(Store)

class CheckoutApp extends HTMLElement {
  constructor(){
    super()
    this.appendChild(document.createElement('div').setAttribute('id', 'checkout'))
    const app = new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount('#checkout')
  }
}

class AddToCart extends HTMLElement {
  constructor(){
    super()
    const app = new Vue({
      router,
      store,
      render: h => h(App)
    }).$mount(this)
  }
}
window.customElements.define('checkout-app', CheckoutApp);

<header>
  <checkout-app></checkout-app>
</header>
<main>
  <button is="cartAddable"></button>
</main>

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

Customize configuration

See Configuration Reference.

FAQs

Package last updated on 19 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc