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.2.6 to 1.2.7

8

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

@@ -31,10 +31,8 @@ "main": "./src/main.js",

"json-api-normalize": "^1.1.5",
"lodash": "^4.17.11",
"modernizr": "^3.6.0"
"lodash": "^4.17.11"
},
"devDependencies": {
"webpack": "^4.26.1",
"webpack-cli": "^3.1.2",
"webpack-modernizr-loader": "^4.0.1"
"webpack-cli": "^3.1.2"
}
}

@@ -1,2 +0,1 @@

const modernizr = require("modernizr")
const axios = require('axios')

@@ -6,2 +5,13 @@ const config = require('./config')

function checkCookie(){
// Quick test if browser has cookieEnabled host property
if (navigator.cookieEnabled) return true;
// Create cookie
document.cookie = "cookietest=1";
var ret = document.cookie.indexOf("cookietest=") != -1;
// Delete cookie
document.cookie = "cookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT";
return ret;
}
function getAccessToken() {

@@ -36,3 +46,3 @@ return axios

if (error.response.status === 401) {
if (modernizr.cookies) {
if (checkCookie()) {
if (utils.getAccessTokenRetryLockCookie() == undefined) {

@@ -39,0 +49,0 @@ utils.setAccessTokenRetryLockCookie()

@@ -9,16 +9,3 @@ const path = require('path')

path: path.resolve(__dirname, "dist")
},
module: {
rules: [
{
loader: 'webpack-modernizr-loader',
test: /\.modernizrrc$/
}
]
},
resolve: {
alias: {
modernizr$: path.resolve(__dirname, '.modernizrrc')
}
}
}
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