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

log-loader

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-loader - npm Package Compare versions

Comparing version 0.0.5 to 0.1.1

2

package.json
{
"name": "log-loader",
"version": "0.0.5",
"version": "0.1.1",
"description": "loader for debugging",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,5 +43,5 @@

function getLoaderNameByPath(pathToIndexJs) {
var loaderDir = path.dirname(pathToIndexJs);
var loaderDir = path.relative('node_modules', pathToIndexJs);
return loaderDir.split(path.sep).pop();
return loaderDir.split(path.sep).shift();
}

@@ -57,3 +57,3 @@

var loaders = loaderContext.loaders;
var nextLoader = loaders[currentTndex + 1] || null;
var nextLoader = loaders[currentTndex - 1] || null;

@@ -75,6 +75,6 @@ if (nextLoader) {

var loaders = loaderContext.loaders;
var prevLoader = loaders[currentTndex - 1] || null;
var prevLoader = loaders[currentTndex + 1] || null;
if (prevLoader) {
return ' -> ' + getLoaderNameByPath(prevLoader.path);
return getLoaderNameByPath(prevLoader.path)+ ' -> ';
}

@@ -81,0 +81,0 @@

@@ -59,8 +59,3 @@ # log-loader

// only option params, this = loader context
callback: function (source) {},
// for example
// callback: function (source) {
// console.log(source);
// return code;
// },
callback: function (source) { return source; },
callbackPitch: function (remainingRequest, precedingRequest, data) {}

@@ -67,0 +62,0 @@ }

Sorry, the diff of this file is not supported yet

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