Socket
Socket
Sign inDemoInstall

@ale-rainbow/rainbow-notification

Package Overview
Dependencies
0
Maintainers
8
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

1

dist/rainbowNotification.d.ts

@@ -28,2 +28,3 @@ export declare class RainbowNotificationAction {

actions: RainbowNotificationAction[];
iconPath: string;
static create(config: any): RainbowNotification;

@@ -30,0 +31,0 @@ getHTMLContent(): string;

3

dist/rainbowNotification.js

@@ -45,2 +45,3 @@ "use strict";

this.actions = null;
this.iconPath = 'resources/svg_dist';
}

@@ -69,3 +70,3 @@ static create(config) {

}
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='resources/svg_dist/sprite.svg#${action.icon}'></use></svg>` : '';
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='${this.iconPath}/sprite.svg#${action.icon}'></use></svg>` : '';
return buffer + `<div id='callNotif_${this.id}_${action.name}' class='extCallNotif__button extCallNotif__button--${action.color}'>${icon}${action.label}</div>`;

@@ -72,0 +73,0 @@ }, '');

{
"name": "@ale-rainbow/rainbow-notification",
"version": "v1.0.1",
"version": "v1.0.2",
"description": "Alcatel-Lucent Enterprise Rainbow Notification",

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

@@ -52,2 +52,3 @@ export class RainbowNotificationAction {

public actions: RainbowNotificationAction[] = null;
public iconPath: string = 'resources/svg_dist';

@@ -77,3 +78,3 @@ public static create(config: any) {

}
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='resources/svg_dist/sprite.svg#${action.icon}'></use></svg>` : '';
const icon = action.icon ? `<svg class='extCallNotif__icon' draggable='false'><use xlink:href='${this.iconPath}/sprite.svg#${action.icon}'></use></svg>` : '';
return buffer + `<div id='callNotif_${this.id}_${action.name}' class='extCallNotif__button extCallNotif__button--${action.color}'>${icon}${action.label}</div>`;

@@ -80,0 +81,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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc