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

rjweb-server

Package Overview
Dependencies
Maintainers
1
Versions
375
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rjweb-server - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

11

index.js

@@ -114,12 +114,5 @@ const sleep = (milliseconds) => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, milliseconds)

print(msg) {
let isJSON = true
try {
JSON.parse(msg)
} catch (e) {
isJSON = false
}
if (isJSON) {
if (typeof msg === 'object') {
res.writeHead(200, { 'Content-Type': 'application/json' })
res.write(JSON.parse(msg))
res.write(JSON.stringify(msg))
} else {

@@ -126,0 +119,0 @@ res.write(msg)

2

package.json
{
"name": "rjweb-server",
"version": "0.1.3",
"version": "0.1.4",
"description": "Easy Way to create a Web Server in Node.js",

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