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

@webdiscus/pug-loader

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webdiscus/pug-loader - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2-beta.0

3

CHANGELOG.md
# Change log
## 1.6.2 (2022-01-21)
- fix the path of dependencies in windows
## 1.6.1 (2022-01-20)

@@ -4,0 +7,0 @@ - added supports for resolving of aliases from webpack `resolve.plugins` by required resources, like styles, scripts

4

package.json
{
"name": "@webdiscus/pug-loader",
"version": "1.6.1",
"version": "1.6.2-beta.0",
"description": "The pug loader resolves paths and webpack aliases in a pug template and compiles it to HTML or into a template function.",

@@ -79,3 +79,3 @@ "keywords": [

"prettier": "^2.5.1",
"pug-plugin": "^1.2.2",
"pug-plugin": "^1.2.3-beta.0",
"rimraf": "^3.0.2",

@@ -82,0 +82,0 @@ "tsconfig-paths-webpack-plugin": "^3.5.2",

@@ -154,7 +154,8 @@ // the 'enhanced-resolve' package already used in webpack, don't need to define it in package.json

const [, file] = /(?<=require\("|'|`)(.+)(?=`|'|"\))/.exec(value) || [];
let resolvedPath = resolver.resolve(file, templateFile);
const resolvedPath = resolver.resolve(file, templateFile);
const dependencyFile = isWin ? path.normalize(resolvedPath) : resolvedPath;
// Important: delete the file from require.cache to allow reloading cached files after changes by watch.
delete require.cache[resolvedPath];
dependencies.push(resolvedPath);
delete require.cache[dependencyFile];
dependencies.push(dependencyFile);

@@ -161,0 +162,0 @@ return `require('${resolvedPath}')`;

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