New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-jstransformer

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-jstransformer - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

index.js

@@ -19,6 +19,9 @@ var minimatch = require('minimatch');

// Find all files that match the given transformer.
var transformFiles = minimatch.match(Object.keys(files), "*." + transform);
var transformFiles = minimatch.match(Object.keys(files), "*." + transform, {
matchBase: true
});
for (var i in transformFiles) {
var filename = transformFiles[i];
var data = files[filename];
var dir = path.dirname(filename);
var locals = merge(data, metalsmith.metadata());

@@ -40,3 +43,4 @@

delete files[filename];
files[name] = data;
var finalPath = path.join(dir, name);
files[finalPath] = data;
}

@@ -43,0 +47,0 @@ }

{
"name": "metalsmith-jstransformer",
"version": "0.0.2",
"version": "0.0.3",
"description": "Metalsmith JSTransformer Plugin",

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