Socket
Socket
Sign inDemoInstall

@shopify/react-html

Package Overview
Dependencies
Maintainers
13
Versions
191
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/react-html - npm Package Compare versions

Comparing version 8.0.5 to 8.0.6

8

CHANGELOG.md

@@ -13,4 +13,10 @@ # Changelog

- useServerDomEffect now returns a result ([#636](https://github.com/Shopify/quilt/pull/636))
## 8.0.6 - 2019-04-15
- The render of your app performed by the `Html` component now provides the `HtmlManager` instance, allowing it to access the serializations built up during `extract()` ([#655](https://github.com/Shopify/quilt/pull/655))
## 8.0.4 - 2019-04-12
- `useServerDomEffect` now returns a result ([#636](https://github.com/Shopify/quilt/pull/636))
## 8.0.3 - 2019-04-09

@@ -17,0 +23,0 @@

@@ -7,2 +7,3 @@ "use strict";

var components_1 = require("../../components");
var context_1 = require("../../context");
var utilities_1 = require("../../utilities");

@@ -13,3 +14,3 @@ var Serialize_1 = tslib_1.__importDefault(require("./Serialize"));

var _h;
var markup = typeof children === 'string' ? children : server_1.renderToString(children);
var markup = typeof children === 'string' ? children : render(children, manager);
var extracted = manager && manager.extract();

@@ -68,1 +69,5 @@ var serializationMarkup = extracted

exports.default = Html;
function render(app, manager) {
var content = manager == null ? (app) : (React.createElement(context_1.HtmlContext.Provider, { value: manager }, app));
return server_1.renderToString(content);
}

2

package.json
{
"name": "@shopify/react-html",
"version": "8.0.5",
"version": "8.0.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A component to render your react app with no static HTML.",

Sorry, the diff of this file is not supported yet

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