pug-loader
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11852
192