Socket
Socket
Sign inDemoInstall

@ale-rainbow/rainbow-notification

Package Overview
Dependencies
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ale-rainbow/rainbow-notification - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

10

dist/rainbowNotification.js

@@ -64,5 +64,6 @@ "use strict";

if (action.choice) {
const choices = action.choice.reduce((buff, choice) => {
let choices = action.choice.reduce((buff, choice) => {
return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`;
}, '');
choices += `<section id='callNotif_choice_close_${this.id}_${action.name}' class='extCallNotif__choiceClose'>${action.choiceCloselabel}</section>`;
buffer += `<div id='callNotif_choice_${this.id}_${action.name}' class='extCallNotif__choices'>${choices}</div>`;

@@ -89,3 +90,8 @@ }

document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem) => {
choiceElem[methodName]('click', action.choiceAction(choiceElem.id));
if (choiceElem.id.includes('callNotif_choice_close')) {
choiceElem[methodName]('click', action.toogleChoice(this));
}
else {
choiceElem[methodName]('click', action.choiceAction(choiceElem.id));
}
});

@@ -92,0 +98,0 @@ }

2

package.json
{
"name": "@ale-rainbow/rainbow-notification",
"version": "v1.0.3",
"version": "v1.0.4",
"description": "Alcatel-Lucent Enterprise Rainbow Notification",

@@ -5,0 +5,0 @@ "main": "./dist/rainbowNotification.js",

@@ -72,5 +72,6 @@ export class RainbowNotificationAction {

if (action.choice) {
const choices = action.choice.reduce((buff: string, choice: any) => {
let choices = action.choice.reduce((buff: string, choice: any) => {
return buff + `<div id='${choice.id}' class='extCallNotif__choice'>${choice.label}</div>`;
}, '');
choices += `<section id='callNotif_choice_close_${this.id}_${action.name}' class='extCallNotif__choiceClose'>${action.choiceCloselabel}</section>`;
buffer += `<div id='callNotif_choice_${this.id}_${action.name}' class='extCallNotif__choices'>${choices}</div>`;

@@ -96,3 +97,4 @@ }

document.getElementById(`callNotif_choice_${this.id}_${action.name}`).childNodes.forEach((choiceElem: any) => {
choiceElem[methodName]('click', action.choiceAction(choiceElem.id));
if (choiceElem.id.includes('callNotif_choice_close')) { choiceElem[methodName]('click', action.toogleChoice(this)); }
else { choiceElem[methodName]('click', action.choiceAction(choiceElem.id)); }
});

@@ -99,0 +101,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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