@hubspot/ui-extensions-dev-server
Advanced tools
Comparing version 0.0.1-beta.1 to 0.0.1-beta.2
@@ -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, | ||
}; |
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30455
894