commercelayer
Advanced tools
Comparing version 1.3.2 to 1.3.3
{ | ||
"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() | ||
// } | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63050
893