Socket
Socket
Sign inDemoInstall

pug-loader

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-loader - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

index.js

@@ -51,3 +51,2 @@ 'use strict';

filename = filename.trim();
source = source.trim();
if (filename[0] !== '/' && !source)

@@ -59,3 +58,3 @@ throw new Error('the "filename" option is required to use includes and extends with "relative" paths');

filename = path.join(filename[0] === '/' ? options.basedir : path.dirname(source), filename);
filename = path.join(filename[0] === '/' ? options.basedir : path.dirname(source.trim()), filename);

@@ -62,0 +61,0 @@ return filename;

{
"name": "pug-loader",
"version": "1.0.1",
"version": "1.0.2",
"description": "The pug loader is responsible for loading the depenendencies of a given pug file.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -72,3 +72,3 @@ # pug-loader

resolve: function (filename, source, options) {
console.log('"' + filename + '" file requested from "' + source '".');
console.log('"' + filename + '" file requested from "' + source + '".');
return load.resolve(filename, source, options);

@@ -85,3 +85,3 @@ }

resolve: function (filename, source, options) {
console.log('"' + filename + '" file requested from "' + source '".');
console.log('"' + filename + '" file requested from "' + source + '".');
return load.resolve(filename, source, options);

@@ -97,3 +97,3 @@ }

resolve: function (filename, source, options) {
console.log('"' + filename + '" file requested from "' + source '".');
console.log('"' + filename + '" file requested from "' + source + '".');
return load.resolve(filename, source, options);

@@ -100,0 +100,0 @@ }

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