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

commercelayer

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commercelayer - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

2

package.json
{
"name": "commercelayer",
"version": "1.3.2",
"version": "1.3.3",
"description": "The Official Commerce Layer JS library",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

document.addEventListener('readystatechange', function() {
if (document.readyState == 'interactive') {
const api = require('./api')
const listeners = require('./listeners')
const utils = require('./utils')
console.log(document.readyState)
console.log(document.querySelector('#clayer-config'))
console.log("---")
exports.init = function() {
api.getPrices()
api.getVariants()
listeners.setVariantSelect()
listeners.setAddToShoppingBag()
listeners.setShoppingBagToggle()
api.refreshOrder()
}
// if (document.readyState == 'interactive') {
window.commercelayer = module.exports
module.exports.init()
}
// const api = require('./api')
// const listeners = require('./listeners')
// const utils = require('./utils')
//
// exports.init = function() {
// api.getPrices()
// api.getVariants()
// listeners.setVariantSelect()
// listeners.setAddToShoppingBag()
// listeners.setShoppingBagToggle()
// api.refreshOrder()
// }
//
// window.commercelayer = module.exports
// module.exports.init()
// }
})
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