commercelayer
Advanced tools
Comparing version 1.2.6 to 1.2.7
{ | ||
"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') | ||
} | ||
} | ||
} |
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
4
2
62740
11
886
- Removedmodernizr@^3.6.0
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedargparse@2.0.1(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcliui@6.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removeddoctrine@3.0.0(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedentities@3.0.1(transitive)
- Removedesutils@2.0.3(transitive)
- Removedfile@0.2.2(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedget-caller-file@2.0.5(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedlinkify-it@4.0.1(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedmarkdown-it@13.0.2(transitive)
- Removedmdurl@1.0.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedmodernizr@3.13.1(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedrequire-directory@2.1.1(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedrequirejs@2.3.7(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removeduc.micro@1.0.6(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@6.2.0(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyargs@15.4.1(transitive)
- Removedyargs-parser@18.1.3(transitive)