New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-fns

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-fns - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

previous-version.js

10

index.js

@@ -132,2 +132,10 @@ ///////////////////////////////////////////////////////////////////////////////

// Helper function to check if an object is empty (including arrays)
const isEmpty = (obj) => {
if (obj == null) return true
if (Array.isArray(obj)) return obj.length === 0
if (typeof obj === 'object') return Object.keys(obj).length === 0
return false
}
if (

@@ -137,3 +145,3 @@ evaluatedCondition === false ||

evaluatedCondition === '' ||
(typeof evaluatedCondition === 'object' && Object.keys(evaluatedCondition).length === 0)
isEmpty(evaluatedCondition)
) {

@@ -140,0 +148,0 @@ return ''

2

package.json
{
"name": "html-fns",
"version": "1.2.0",
"version": "1.2.1",
"description": "Set of convinient pure functions to generate HTML on server-side via tagged template literals.",

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