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

abhi-plugin-gatsby-preview

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abhi-plugin-gatsby-preview - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

14

gatsby-browser.js

@@ -18,9 +18,17 @@ "use strict";

socket.on("status", data => {
console.log(`Received data for reload`, data);
console.log(`Received data for status msg`, data);
let event;
if (data && data.event) {
try {
const jsonData = JSON.parse(data);
event = jsonData && jsonData.event;
} catch (e) {
console.error(e);
}
if (event) {
showStatusBar(true);
}
if (data && data.event === "SUCCESS") {
if (event === "SUCCESS") {
setMessage("You Gatsby Preview is reloading...");

@@ -27,0 +35,0 @@ setTimeout(() => {

{
"name": "abhi-plugin-gatsby-preview",
"description": "A Gatsby plugin shows status of cloud preview",
"version": "0.0.2",
"version": "0.0.3",
"author": "Abhi Aiyer",

@@ -6,0 +6,0 @@ "keywords": [

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