simple-protocol-http
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -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, |
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
33231
968