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

wct-istanbul

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wct-istanbul - npm Package Compare versions

Comparing version 0.12.3 to 0.12.4

11

lib/middleware.js

@@ -27,5 +27,12 @@ var _ = require('lodash');

function getFilePath(root, req) {
var pathname = parseurl(req).pathname;
var rootDirName = root.split(/[\/\\]/).pop();
var componentPathName = pathname.split(/\//)[1];
return req._filePath || (rootDirName === componentPathName ? path.join(root, '..', pathname) : path.join(root, pathname));
}
function instrumentHtml(html, req, root){
var asset = req.url;
var htmlFilePath = path.join(root, '..', parseurl(req).pathname);
var htmlFilePath = getFilePath(root, req);

@@ -45,3 +52,3 @@ if ( !cache[asset] ){

var asset = req.url;
var assetPath = path.join(root, '..', parseurl(req).pathname);
var assetPath = getFilePath(root, req);

@@ -48,0 +55,0 @@ if ( !cache[asset] ){

4

package.json
{
"name": "wct-istanbul",
"version": "0.12.3",
"version": "0.12.4",
"description": "Instanbul coverage reporting for projects being tested by web-component-tester",

@@ -37,3 +37,3 @@ "main": "lib/plugin.js",

"parseurl": "^1.3.0",
"polyserve": "github:t2ym/polyserve#0.19.1-istanbul.2"
"polyserve": "github:t2ym/polyserve#0.19.1-istanbul.3"
},

@@ -40,0 +40,0 @@ "wct-plugin": {

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