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

simple-protocol-http

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-protocol-http - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

8

lib/simple.js

@@ -108,4 +108,4 @@ 'use strict';

// instead of an empty string,
// pass back an empty object
return s || {};
// pass back undefined
return s || undefined;
}

@@ -155,2 +155,6 @@ }

function isSimpleProtocol(p) {
if (!p) {
return false;
}
if (p.success === true && p.payload) {

@@ -157,0 +161,0 @@ return true;

@@ -212,3 +212,3 @@ 'use strict';

success: true,
payload: {},
payload: undefined,
meta: {

@@ -215,0 +215,0 @@ status: 204,

{
"name": "simple-protocol-http",
"version": "0.5.0",
"version": "0.6.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -103,4 +103,4 @@ const fetch = require('isomorphic-fetch')

// instead of an empty string,
// pass back an empty object
return s || {}
// pass back undefined
return s || undefined
}

@@ -150,2 +150,6 @@ }

function isSimpleProtocol (p) {
if (!p) {
return false
}
if (p.success === true && p.payload) {

@@ -152,0 +156,0 @@ return true

@@ -141,3 +141,3 @@ const co = require('co')

success: true,
payload: {},
payload: undefined,
meta: {

@@ -144,0 +144,0 @@ status: 204,

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