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

@idrinth-api-bench/inline-critical-css

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idrinth-api-bench/inline-critical-css - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "@idrinth-api-bench/inline-critical-css",
"version": "1.1.1",
"version": "1.1.2",
"description": "",

@@ -5,0 +5,0 @@ "type": "module",

@@ -97,3 +97,3 @@ import { parse, stringify, } from 'css';

.replace(/<\/style>/iug, `${styles}</style>`)
.replace(/<\/body>/iug, `<script>const n = document.createElement('link');n.setAttribute('rel','stylesheet')n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), 'utf8');
.replace(/<\/body>/iug, `<script>const n=document.createElement('link');n.setAttribute('rel','stylesheet');n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), 'utf8');
}

@@ -100,0 +100,0 @@ else {

@@ -108,3 +108,3 @@ import {

.replace(/<\/style>/iug, `${styles}</style>`)
.replace(/<\/body>/iug, `<script>const n = document.createElement('link');n.setAttribute('rel','stylesheet')n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`),
.replace(/<\/body>/iug, `<script>const n=document.createElement('link');n.setAttribute('rel','stylesheet');n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`),
'utf8',

@@ -111,0 +111,0 @@ );

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