Socket
Socket
Sign inDemoInstall

@shopify/react-html

Package Overview
Dependencies
Maintainers
26
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 13.0.0 to 13.0.1

12

build/cjs/server/components/Serialize.js

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

var React = require('react');
var serialize = require('serialize-javascript');
var jsesc = require('jsesc');
var utilities = require('../../utilities.js');

@@ -13,3 +13,3 @@

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
var serialize__default = /*#__PURE__*/_interopDefaultLegacy(serialize);
var jsesc__default = /*#__PURE__*/_interopDefaultLegacy(jsesc);

@@ -20,8 +20,10 @@ function Serialize({

}) {
const serialized = jsesc__default["default"](data, {
isScriptContext: true,
json: true
});
return /*#__PURE__*/React__default["default"].createElement("script", {
type: "text/json",
dangerouslySetInnerHTML: {
__html: serialize__default["default"](data, {
isJSON: true
})
__html: serialized
},

@@ -28,0 +30,0 @@ [utilities.SERIALIZE_ATTRIBUTE]: id

import { useBodyAttributes } from '../hooks';
declare type Props = Parameters<typeof useBodyAttributes>[0];
type Props = Parameters<typeof useBodyAttributes>[0];
export declare function BodyAttributes(props: Props): null;
export {};
//# sourceMappingURL=BodyAttributes.d.ts.map
import { useHtmlAttributes } from '../hooks';
declare type Props = Parameters<typeof useHtmlAttributes>[0];
type Props = Parameters<typeof useHtmlAttributes>[0];
export declare function HtmlAttributes(props: Props): null;
export {};
//# sourceMappingURL=HtmlAttributes.d.ts.map
import React from 'react';
declare type Props = React.HTMLProps<HTMLStyleElement>;
type Props = React.HTMLProps<HTMLStyleElement>;
export declare function InlineStyle(props: Props): null;
export {};
//# sourceMappingURL=InlineStyle.d.ts.map
import React from 'react';
declare type Props = React.HTMLProps<HTMLLinkElement>;
type Props = React.HTMLProps<HTMLLinkElement>;
export declare function Link(props: Props): null;
export {};
//# sourceMappingURL=Link.d.ts.map
import React from 'react';
declare type Props = React.HTMLProps<HTMLMetaElement>;
type Props = React.HTMLProps<HTMLMetaElement>;
export declare function Meta(props: Props): null;
export {};
//# sourceMappingURL=Meta.d.ts.map
{
"name": "@shopify/react-html",
"version": "13.0.0",
"version": "13.0.1",
"license": "MIT",

@@ -36,4 +36,4 @@ "description": "A component to render your React app with no static HTML",

"@types/multistream": "^2.1.1",
"multistream": "^2.1.1",
"serialize-javascript": "^3.0.0"
"jsesc": "^3.0.2",
"multistream": "^2.1.1"
},

@@ -45,3 +45,3 @@ "peerDependencies": {

"devDependencies": {
"@shopify/react-testing": "^5.0.1",
"@shopify/react-testing": "^5.1.0",
"@shopify/with-env": "^3.0.1"

@@ -48,0 +48,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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