Socket
Socket
Sign inDemoInstall

@buxlabs/html-engine

Package Overview
Dependencies
19
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.9.3 to 0.9.4

3

package.json
{
"name": "@buxlabs/html-engine",
"version": "0.9.3",
"version": "0.9.4",
"description": "Compile HTML templates into JS",

@@ -55,2 +55,3 @@ "main": "index.js",

"lodash.template": "^4.4.0",
"mustache": "^3.0.0",
"standard": "^11.0.1",

@@ -57,0 +58,0 @@ "underscore": "^1.9.1",

@@ -98,5 +98,6 @@ # html-engine

```
html-engine x 3,263,396 ops/sec ±0.86% (89 runs sampled)
underscore x 193,124 ops/sec ±0.66% (89 runs sampled)
lodash x 200,964 ops/sec ±0.78% (87 runs sampled)
html-engine x 3,372,492 ops/sec ±1.66% (91 runs sampled)
underscore x 175,306 ops/sec ±0.68% (96 runs sampled)
lodash x 208,329 ops/sec ±0.44% (91 runs sampled)
mustache x 460,274 ops/sec ±1.07% (77 runs sampled)
Fastest is html-engine

@@ -103,0 +104,0 @@ ```

@@ -309,3 +309,4 @@ const AbstractSyntaxTree = require('abstract-syntax-tree')

const parts = value.split('.')
return parts[parts.length - 1]
const extension = parts[parts.length - 1]
return extension === 'svg' ? 'svg+xml' : extension
}

@@ -449,3 +450,3 @@

const extension = getExtension(attr.value)
const extensions = ['png', 'jpg', 'jpeg', 'gif', 'svg']
const extensions = ['png', 'jpg', 'jpeg', 'gif', 'svg+xml']
if (extensions.includes(extension)) {

@@ -452,0 +453,0 @@ const path = attr.value

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc