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

@domchristie/composite

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domchristie/composite - npm Package Compare versions

Comparing version 0.3.0 to 0.4.0

11

composite.js

@@ -10,3 +10,3 @@ /**

template = template instanceof HTMLElement
? template.innerHTML
? unescape(template.innerHTML)
: String(template)

@@ -28,3 +28,3 @@ return (new Function('html', 'raw', ...Object.keys(props),

return strings.reduce((result, string, i) => {
const value = values[i]
const value = values[i] != null
? values[i].raw ? values[i] : escape(values[i])

@@ -58,2 +58,9 @@ : ''

let textarea
function unescape (string) {
textarea = textarea || document.createElement('textarea')
textarea.innerHTML = string
return textarea.value
}
/**

@@ -60,0 +67,0 @@ * Marks a string as raw HTML to prevent escaping of special characters.

2

package.json
{
"name": "@domchristie/composite",
"version": "0.3.0",
"version": "0.4.0",
"description": "A hybrid client-side/server-side approach to generating dynamic HTML.",

@@ -5,0 +5,0 @@ "main": "composite.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