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

hzql

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hzql - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

12

index.js

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

var connect = exports.connect = function connect(query, isLive) {
var connect = exports.connect = function connect(query, shouldWait, isLive) {
return function (Consumer) {

@@ -104,3 +104,3 @@ var version = nextVersion++;

value: function render() {
return _react2.default.createElement(Consumer, _extends({}, this.state.results, this.props, { horizon: this.context.horizon }));
return shouldWait && !this.state.results ? null : _react2.default.createElement(Consumer, _extends({}, this.state.results, this.props, { horizon: this.context.horizon }));
}

@@ -145,4 +145,10 @@ }]);

connect.live = function (query) {
return connect(query, true);
return connect(query, false, true);
};
connect.await = function (query) {
return connect(query, true, false);
};
connect.liveAwait = function (query) {
return connect(query, true, true);
};
{
"name": "hzql",
"version": "1.3.0",
"version": "1.4.0",
"description": "Easy querying for Horizon and React",

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