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

simple-nunjucks-loader

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-nunjucks-loader - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

8

lib/cjs/output/get-assets.js

@@ -34,3 +34,9 @@ "use strict";

if (part.startsWith('"')) {
return (0, _loaderUtils.stringifyRequest)(loaderContext, part.replace(/^"|"$/g, ''));
let nextPart = (0, _loaderUtils.stringifyRequest)(loaderContext, part.replace(/^"|"$/g, ''));
if (!nextPart.endsWith('/"') && part.endsWith('/"')) {
nextPart = nextPart.replace(/"$/, '/"');
}
return nextPart;
}

@@ -37,0 +43,0 @@

2

lib/cjs/precompile/get-addons-meta.js

@@ -19,3 +19,3 @@ "use strict";

function loadAddon([name, importPath]) {
return Promise.resolve().then(() => _interopRequireWildcard(require(`${importPath}`))).then(function (instance) {
return Promise.resolve(`${importPath}`).then(s => _interopRequireWildcard(require(s))).then(function (instance) {
return [name, importPath, (0, _getModule.getModule)(instance)];

@@ -22,0 +22,0 @@ });

@@ -17,4 +17,8 @@ "use strict";

const filePath = _path.default.resolve(searchPath, (0, _unquote.unquote)(firstPart));
let filePath = _path.default.resolve(searchPath, (0, _unquote.unquote)(firstPart));
if (firstPart.endsWith('/"') && !filePath.endsWith('/')) {
filePath = `${filePath}/`;
}
return restParts.length > 0 ? `${[`"${filePath}"`, ...restParts].join(' + ')}` : filePath;

@@ -21,0 +25,0 @@ }

{
"name": "simple-nunjucks-loader",
"version": "2.0.2",
"version": "2.0.3",
"description": "Webpack loader for Nunjucks",

@@ -15,3 +15,3 @@ "main": "lib/cjs/loader.js",

"postversion": "git push && git push --tags",
"prepublishOnly": "npm run build"
"prepack": "npm run build"
},

@@ -18,0 +18,0 @@ "repository": {

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