Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adv-ui/ij-braze-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adv-ui/ij-braze-wrapper - npm Package Compare versions

Comparing version 1.2.0 to 1.4.0

14

CHANGELOG.md
# 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 @@

8

lib/Braze.js

@@ -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) {

2

package.json
{
"name": "@adv-ui/ij-braze-wrapper",
"version": "1.2.0",
"version": "1.4.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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