New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

notibase-js

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

notibase-js - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

25

index.ts

@@ -7,2 +7,8 @@ import * as signalR from '@microsoft/signalr';

}
export interface NotificationModel {
id: string;
title: string;
content: string;
callback: string;
}

@@ -54,10 +60,15 @@ const baseUrl = 'https://api.notibase.com';

if (!targetElement) throw Error('Cannot find target element');
if (!connection) throw Error('Connection failed');
var div = document.createElement('div');
div.style.width = '100px';
div.style.height = '100px';
div.style.background = 'red';
div.style.color = 'white';
div.innerHTML = 'Hello';
targetElement.appendChild(div);
connection.on('ReceiveNotification', (newNotifications: NotificationModel[]) => {
newNotifications.map((notif) => {
var div = document.createElement('div');
div.style.width = '100px';
div.style.height = '100px';
div.style.background = 'red';
div.style.color = 'white';
div.innerHTML = notif.title;
targetElement.appendChild(div);
});
});
}

@@ -64,0 +75,0 @@

{
"name": "notibase-js",
"version": "0.1.2",
"version": "0.1.3",
"description": "Pure Javascript package to use Notibase",

@@ -5,0 +5,0 @@ "main": "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