New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fling

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fling - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

25

lib/receive.js

@@ -170,7 +170,22 @@ "use strict";

if ( typeof data === 'string' ) {
data = {
message: data,
data: null
};
code = code || 500;
switch ( typeof data ) {
case 'object':
if ( !data.message ) {
data.message = null;
}
if ( !data.data ) {
data.data = null;
}
break;
default:
data = {
message: data || null,
data: null
};
break;
}

@@ -177,0 +192,0 @@

2

package.json
{
"name": "fling",
"description": "JSON Fling is a simple JSON-RPC framework for NodeJS with built-in permissions and support for different transports.",
"version": "0.0.11",
"version": "0.0.12",
"author": "Anthony Hildoer <anthony@bluerival.com>",

@@ -6,0 +6,0 @@ "repository": {

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