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.4 to 8.0.5

2

dist/hooks.js

@@ -53,3 +53,3 @@ "use strict";

perform(manager);
}, tslib_1.__spread([manager], inputs));
}, tslib_1.__spread([manager, perform], inputs));
}

@@ -56,0 +56,0 @@ exports.useClientDomEffect = useClientDomEffect;

@@ -29,3 +29,3 @@ "use strict";

};
}, [id, manager]);
}, [id]);
return [data, Serialize];

@@ -32,0 +32,0 @@ }

@@ -15,5 +15,3 @@ "use strict";

var node = _c.value;
serializations.set(
// eslint-disable-next-line typescript/no-non-null-assertion
node.getAttribute(exports.SERIALIZE_ATTRIBUTE), getSerializedFromNode(node));
serializations.set(node.getAttribute(exports.SERIALIZE_ATTRIBUTE), getSerializedFromNode(node));
}

@@ -52,5 +50,5 @@ }

function showPage() {
return (
// eslint-disable-next-line no-process-env
process.env.NODE_ENV === 'development' && typeof document !== 'undefined'
return process.env.NODE_ENV === 'development' &&
typeof document !== 'undefined'
? new Promise(function (resolve) {

@@ -62,4 +60,4 @@ setTimeout(function () {

})
: Promise.resolve());
: Promise.resolve();
}
exports.showPage = showPage;
{
"name": "@shopify/react-html",
"version": "8.0.4",
"version": "8.0.5",
"license": "MIT",

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

"dependencies": {
"@shopify/react-effect": "^3.0.0",
"@shopify/react-serialize": "^1.0.12",
"@shopify/useful-types": "^1.2.1",
"@shopify/react-effect": "^3.0.1",
"@shopify/react-serialize": "^1.0.13",
"@shopify/useful-types": "^1.2.2",
"tslib": "^1.9.3"

@@ -31,0 +31,0 @@ },

@@ -61,3 +61,4 @@ import {useEffect, useContext} from 'react';

},
[manager, ...inputs],
// eslint-disable-next-line react-hooks/exhaustive-deps
[manager, perform, ...inputs],
);

@@ -64,0 +65,0 @@ }

@@ -13,3 +13,2 @@ export const SERIALIZE_ATTRIBUTE = 'data-serialized-id';

serializations.set(
// eslint-disable-next-line typescript/no-non-null-assertion
node.getAttribute(SERIALIZE_ATTRIBUTE)!,

@@ -47,13 +46,12 @@ getSerializedFromNode(node),

export function showPage(): Promise<void> {
return (
// eslint-disable-next-line no-process-env
process.env.NODE_ENV === 'development' && typeof document !== 'undefined'
? new Promise(resolve => {
setTimeout(() => {
document.body.style.visibility = '';
resolve();
}, 0);
})
: Promise.resolve()
);
// eslint-disable-next-line no-process-env
return process.env.NODE_ENV === 'development' &&
typeof document !== 'undefined'
? new Promise(resolve => {
setTimeout(() => {
document.body.style.visibility = '';
resolve();
}, 0);
})
: Promise.resolve();
}

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