@vtex/pickup-points-modal
Advanced tools
Comparing version 0.1.25 to 0.1.27
@@ -136,3 +136,3 @@ 'use strict'; | ||
// Hard coded coords for development | ||
if (process.env.NODE !== 'production') { | ||
if (window.location.host.includes(_constants.VTEXLOCAL)) { | ||
this.getCurrentPositionSuccess({ | ||
@@ -139,0 +139,0 @@ coords: { |
@@ -51,3 +51,3 @@ 'use strict'; | ||
_this.props.handleGeolocationStatus(_constants.WAITING); | ||
if (window.location.protocol !== _constants.HTTPS) { | ||
if (window.location.host.includes(VTEXLOCAL)) { | ||
_this.props.handleAskForGeolocation(false); | ||
@@ -54,0 +54,0 @@ return; |
@@ -20,3 +20,3 @@ 'use strict'; | ||
var SEARCHING = exports.SEARCHING = 'searching'; | ||
var HTTPS = exports.HTTPS = 'https:'; | ||
var VTEXLOCAL = exports.VTEXLOCAL = 'vtexlocal'; | ||
@@ -23,0 +23,0 @@ var EEMPTY = exports.EEMPTY = 'ERROR_EMPTY_FIELD'; |
{ | ||
"name": "@vtex/pickup-points-modal", | ||
"version": "0.1.25", | ||
"version": "0.1.27", | ||
"description": "Pickup Points Modal React component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
216829
13