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

pug-plugin-modules

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-plugin-modules - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

12

index.js

@@ -8,4 +8,14 @@ const path = require('path');

const file = path.parse(filename);
const resolvePath = file.dir ? `${file.dir}/${file.name}` : file.name;
// Strip out extension that is automatically added by Pug
file.ext = '';
file.base = file.name;
let resolvePath;
if (!file.dir && file.dir[0] !== path.sep && file.dir[0] !== '.') {
resolvePath = file.name;
} else {
resolvePath = path.format(file);
}
return resolve.sync(resolvePath, Object.assign({

@@ -12,0 +22,0 @@ basedir: path.dirname(source),

2

package.json
{
"name": "pug-plugin-modules",
"version": "0.2.2",
"version": "0.2.3",
"description": "Pug plugin for resolving templates in node_modules",

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