commercelayer
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "commercelayer", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "The official Commerce Layer JS library", | ||
@@ -5,0 +5,0 @@ "main": "./src/main.js", |
@@ -30,8 +30,11 @@ const axios = require('axios') | ||
function refreshOrder() { | ||
getOrder().then(function(order) { | ||
if (order.attributes.status == 'placed') { | ||
createOrder() | ||
getOrder() | ||
} | ||
}) | ||
var orderToken = auth.getOrderToken() | ||
if (orderToken) { | ||
getOrder().then(function(order) { | ||
if (order.attributes.status == 'placed') { | ||
createOrder() | ||
getOrder() | ||
} | ||
}) | ||
} | ||
} | ||
@@ -38,0 +41,0 @@ |
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
21944
618