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

@hubspot/ui-extensions-dev-server

Package Overview
Dependencies
Maintainers
23
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hubspot/ui-extensions-dev-server - npm Package Compare versions

Comparing version 0.0.1-beta.1 to 0.0.1-beta.2

5

constants.js

@@ -19,2 +19,5 @@ const VITE_DEFAULT_PORT = 5173;

const EXTENSIONS_MESSAGE_VERSION = 0;
const WEBSOCKET_MESSAGE_VERSION = 0;
module.exports = {

@@ -26,2 +29,4 @@ VITE_DEFAULT_PORT,

OUTPUT_DIR,
EXTENSIONS_MESSAGE_VERSION,
WEBSOCKET_MESSAGE_VERSION,
};

4

package.json
{
"name": "@hubspot/ui-extensions-dev-server",
"version": "0.0.1-beta.1",
"version": "0.0.1-beta.2",
"description": "",

@@ -61,3 +61,3 @@ "main": "index.js",

},
"gitHead": "3b1fd0b35b8aa6c88847d27cc3c6b94e635f0452"
"gitHead": "3bad0a556e00ca7c628916da199bb6f6b787ad6f"
}

@@ -8,2 +8,6 @@ const express = require('express');

const cors = require('cors');
const {
EXTENSIONS_MESSAGE_VERSION,
WEBSOCKET_MESSAGE_VERSION,
} = require('./constants');

@@ -45,2 +49,3 @@ function startDevServer(outputDir, port, extensionConfig) {

callback,
version: WEBSOCKET_MESSAGE_VERSION,
};

@@ -104,2 +109,4 @@

const response = {
websocket: `ws://localhost:${port}`,
version: EXTENSIONS_MESSAGE_VERSION,
extensions: [

@@ -110,3 +117,2 @@ {

callback: `http://hslocal.net:${port}/${output}`,
websocket: `ws://localhost:${port}`,
manifest: {

@@ -113,0 +119,0 @@ ...manifest,

@@ -7,2 +7,6 @@ const { spawn } = require('child_process');

const WebSocket = require('ws');
const {
WEBSOCKET_MESSAGE_VERSION,
EXTENSIONS_MESSAGE_VERSION,
} = require('../constants');

@@ -160,2 +164,4 @@ const testResults = {

);
assert.equal(body.websocket, `ws://localhost:${port}`);
assert.strictEquals(body.version, EXTENSIONS_MESSAGE_VERSION);
logger.info('- Express serving extension data 🚀');

@@ -177,2 +183,3 @@ results.extensionsEndpointPassed = true;

assert.strictEqual(message.title, 'Phone Lines');
assert.strictEqual(message.version, WEBSOCKET_MESSAGE_VERSION);
logger.info('- WebSocket server connected and sending messages 🚀');

@@ -179,0 +186,0 @@ results.webSocketTestPassed = true;

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