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.1.0 to 1.1.1

2

package.json
{
"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 @@

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