New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

htmlview

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlview - npm Package Compare versions

Comparing version
0.7.1
to
0.7.2
+1
dist/htmlview-min.js
window.h=function(n,...a){var i="";for(let r=0;r<n.length;r++){var l=n[r],o=a[r];i+=""+l+(null==(o=Array.isArray(o)?o.join(""):o)?"":o)}return i};
window.h = function h(strings, ...keys) {
var s = ''
for (let i = 0; i < strings.length; i++) {
var text = strings[i]
var val = keys[i]
if (Array.isArray(val)) {
val = val.join('')
}
s += `${text}${val == null ? '' : val}`
}
return s
}
+1
-1
{
"name": "htmlview",
"version": "0.7.1",
"version": "0.7.2",
"description": "HTML view template string function",

@@ -5,0 +5,0 @@ "main": "index.js",

#!/usr/bin/env node
const fs = require('fs')
const uglify = require('uglify-js')
const htmlview = require('../index.js')
const code = `window.h = ${htmlview.toString()}\n`
if (!fs.existsSync('./dist')) {
fs.mkdirSync('./dist')
}
fs.writeFileSync('./dist/htmlview.js', code)
const result = uglify.minify(code)
fs.writeFileSync('./dist/htmlview-min.js', result.code)