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

avet-utils

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

avet-utils - npm Package Compare versions

Comparing version 1.1.1 to 1.2.1

21

lib/component.js

@@ -32,7 +32,15 @@ 'use strict';

if (!(!props && (!ctx.res || !ctx.res.finished))) {
_context.next = 9;
if (!(ctx.res && isResSent(ctx.res))) {
_context.next = 7;
break;
}
return _context.abrupt('return', props);
case 7:
if (props) {
_context.next = 11;
break;
}
compName = getDisplayName(Component);

@@ -42,6 +50,6 @@ message = '"' + compName + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';

case 9:
case 11:
return _context.abrupt('return', props);
case 10:
case 12:
case 'end':

@@ -65,5 +73,10 @@ return _context.stop();

function isResSent(res) {
return res.finished || res.headersSent;
}
module.exports = {
isResSent: isResSent,
getDisplayName: getDisplayName,
loadGetInitialProps: loadGetInitialProps
};

2

package.json
{
"name": "avet-utils",
"description": "Avet utils for all avet projects",
"version": "1.1.1",
"version": "1.2.1",
"scripts": {

@@ -6,0 +6,0 @@ "dev": "taskr dev",

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