@adv-ui/ij-braze-wrapper
Advanced tools
Comparing version 1.2.0 to 1.4.0
# CHANGELOG | ||
# 1.4.0 (2022-02-09) | ||
### Bug Fixes | ||
* **Root:** update logic to render push prompt only in prod ([56ebd5b](https://github.mpi-internal.com/scmspain/frontend-jobs--common/commit/56ebd5bffda0bc8174f68603a88ac3812eae59c9)) | ||
### Features | ||
* **braze-wrapper:** force release ([4b60b51](https://github.mpi-internal.com/scmspain/frontend-jobs--common/commit/4b60b5133b7c9a1702355557e9e5ee390f48664d)) | ||
# 1.2.0 (2022-02-01) | ||
@@ -4,0 +18,0 @@ |
@@ -89,3 +89,3 @@ import _classPrivateFieldLooseBase from "@babel/runtime/helpers/esm/classPrivateFieldLooseBase"; | ||
_proto.canEnablePushNotification = function canEnablePushNotification() { | ||
return _classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushSupported() && !_classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushPermissionGranted() && !_classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushBlocked(); | ||
return Braze.isProductionEnv() && _classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushSupported() && !_classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushPermissionGranted() && !_classPrivateFieldLooseBase(this, _sdk)[_sdk].isPushBlocked(); | ||
}; | ||
@@ -104,2 +104,8 @@ | ||
Braze.isProductionEnv = function isProductionEnv() { | ||
var match = window.location.href.match(/infojobs(\w*)\.(\w*)/) || [null, 'development']; | ||
var environment = match[1]; | ||
return environment === ''; | ||
}; | ||
Braze.isCurrentPageAllowed = function isCurrentPageAllowed(pageWhitelist) { | ||
@@ -106,0 +112,0 @@ return pageWhitelist.some(function (page) { |
{ | ||
"name": "@adv-ui/ij-braze-wrapper", | ||
"version": "1.2.0", | ||
"version": "1.4.0", | ||
"description": "", | ||
@@ -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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10050
176
0