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

bs-eslint-message

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bs-eslint-message - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

9

client.js

@@ -17,3 +17,3 @@ // replace bs-fullscreen-message with this shit

}
if (!msg.styleEl) addStyles()
addStyles()
addMessage({ title: 'ESLINT ERRORS', body: parseErrors(results) })

@@ -23,3 +23,3 @@ })

socket.on('msg', data => {
if (!msg.styleEl) addStyles()
addStyles()
addMessage(data)

@@ -29,3 +29,3 @@ })

function removeMsg () {
msg.el.parentNode.removeChild(msg.el)
if (msg.el) msg.el.parentNode.removeChild(msg.el)
}

@@ -45,2 +45,3 @@

function addStyles () {
if (msg.styleEl) return
document.head.innerHTML += `

@@ -79,3 +80,3 @@ <style id="${msg.styleId}">

function addMessage ({ title, body }) {
if (msg.el) removeMsg()
removeMsg()
document.body.innerHTML += `

@@ -82,0 +83,0 @@ <div id="${msg.elId}">

{
"name": "bs-eslint-message",
"version": "0.0.1",
"version": "0.0.2",
"description": "BrowserSync plugin to display eslint errors (or any other message) within connected browsers",

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