commercelayer
Advanced tools
Comparing version 1.3.0 to 1.3.1
{ | ||
"name": "commercelayer", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "The Official Commerce Layer JS library", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
@@ -1,17 +0,17 @@ | ||
const api = require('./api') | ||
const listeners = require('./listeners') | ||
const utils = require('./utils') | ||
document.addEventListener('DOMContentLoaded', function () { | ||
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() | ||
} | ||
exports.init = function() { | ||
api.getPrices() | ||
api.getVariants() | ||
listeners.setVariantSelect() | ||
listeners.setAddToShoppingBag() | ||
listeners.setShoppingBagToggle() | ||
api.refreshOrder() | ||
} | ||
document.addEventListener('DOMContentLoaded', function () { | ||
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
62804