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

bs-compile-middleware

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

bs-compile-middleware - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

15

lib/index.js

@@ -47,7 +47,14 @@ 'use strict';

if (error) {
console.error(error);
res.end(formatError(error));
return next(true);
}
res.end(compiler.compile(data, srcPath));
var out = void 0;
try {
out = compiler.compile(data, srcPath);
} catch (error) {
out = formatError(error);
}
res.end(out);
next(true);

@@ -77,2 +84,6 @@ });

});
}
function formatError(error) {
return error.stack;
}

3

package.json
{
"name": "bs-compile-middleware",
"version": "0.1.0",
"version": "0.1.1",
"author": "katashin",

@@ -25,2 +25,3 @@ "description": "Compilation middleware for Browsersync",

"clean": "rimraf -rf lib",
"dev": "npm run test:unit -- -w",
"build": "babel src --out-dir lib",

@@ -27,0 +28,0 @@ "build:prod": "cross-env NODE_ENV=production npm run build",

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