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

electron-posthtml

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-posthtml - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

index.js

@@ -30,3 +30,3 @@ // ------------------------------------

protocol.interceptBufferProtocol('file', function (request, callback) {
protocol.interceptBufferProtocol('html', function (request, callback) {
var file = getPath(request.url)

@@ -40,2 +40,3 @@ var content = null

var ext = path.extname(file)
if (ext === '.html') {

@@ -62,3 +63,3 @@ var compiled = posthtml(plugins).process(file).then(result => result.html)

if (!error) {
console.log('PostHTML interceptor registered successfully')
console.log('PostHTML interceptor success')
} else {

@@ -65,0 +66,0 @@ console.error('PostHTML interceptor error:', error)

2

package.json
{
"name": "electron-posthtml",
"version": "0.0.1",
"version": "0.0.2",
"description": "PostHTML file interceptor for Electron",

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