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

wallaby-webpack

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wallaby-webpack - npm Package Compare versions

Comparing version 3.9.1 to 3.9.2

32

index.js

@@ -97,13 +97,13 @@ 'use strict';

self._entryFiles = _.reduce(!self._entryPatterns
? wallaby.allTestFiles
: _.sortBy(_.filter(self._allTrackedFiles, file => {
var satisfiesAnyEntryPattern = _.find(self._entryPatterns, (pattern, patternIndex) => (file.patternIndex = patternIndex, mm(file.path, pattern)));
if (!satisfiesAnyEntryPattern) {
delete file.patternIndex;
} else {
delete entryPatternsNotMatchingAnyFiles[satisfiesAnyEntryPattern];
}
? wallaby.allTestFiles
: _.sortBy(_.filter(self._allTrackedFiles, file => {
var satisfiesAnyEntryPattern = _.find(self._entryPatterns, (pattern, patternIndex) => (file.patternIndex = patternIndex, mm(file.path, pattern)));
if (!satisfiesAnyEntryPattern) {
delete file.patternIndex;
} else {
delete entryPatternsNotMatchingAnyFiles[satisfiesAnyEntryPattern];
}
return satisfiesAnyEntryPattern;
}), 'patternIndex'),
return satisfiesAnyEntryPattern;
}), 'patternIndex'),
function (memo, file) {

@@ -348,3 +348,3 @@ delete file.patternIndex;

compilation.fileTimestamps = self._compilationFileTimestamps;
self._moduleTemplate = compilation.moduleTemplate;
self._moduleTemplate = (compilation.moduleTemplates && compilation.moduleTemplates.javascript) || compilation.moduleTemplate;
self._dependencyTemplates = compilation.dependencyTemplates;

@@ -370,2 +370,3 @@

compilation.processDependenciesBlockForChunk
= compilation.processDependenciesBlocksForChunks
= compilation.sortItemsWithModuleIds

@@ -394,2 +395,6 @@ = compilation.sortItemsWithChunkIds = function () {

};
} else if (compilation.hooks) {
compilation.hooks.optimizeModuleOrder
= compilation.hooks.optimizeChunkOrder
= compilation.hooks.optimizeChunkIds = {call: a => a};
}

@@ -401,3 +406,4 @@ }

// to avoid wrapping module into a function, we do it a bit differently in _wrapSourceFile
self._moduleTemplate._plugins['render'] = [];
self._moduleTemplate._plugins && (self._moduleTemplate._plugins['render'] = []);
self._moduleTemplate.hooks && (self._moduleTemplate.hooks['render'] = {call: a => a});

@@ -450,3 +456,3 @@ var node = self._moduleTemplate.render(m, self._dependencyTemplates, {modules: [m]});

// (see webpack/lib/MainTemplate.js)
var prelude = '(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module \'"+o+"\'"+(window.__moduleBundler.depPaths?" (" + window.__moduleBundler.depPaths[o]+")":""));throw f.code="MODULE_NOT_FOUND",f}var exp={};var mid=o;try{mid=o.toString();}catch(emid){}var l=n[o]={exports:exp,e:exp,id:mid,i:mid,loaded:false,l:false};var rq=function(e){var n=t[o][1][e];return s(n?n:e)};rq.e=function(a1,a2){if(a2){a2.call(null,rq);}else{return Promise.resolve();}};rq.m=tm;rq.c=n;rq.p="";rq.i=function(value){return value;};rq.d=function(exports,name,getter){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter});};rq.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};rq.n=function(module){var getter=module&&module.__esModule ? function getDefault(){return module["default"];} : function getModuleExports(){return module;};rq.d(getter,"a",getter);return getter;};t[o][0].call(exp,rq,l,exp,exp,e,t,n,r);l.exports=l.e=((exp===l.e)?l.exports:l.e);l.l=true;if(Object.getOwnPropertyDescriptor(l, "loaded").writable){l.loaded=true}}return n[o].exports}var tm={};for(var pr in t){if(t.hasOwnProperty(pr)){tm[pr]=(function(orf){return function(md,mde,wrq){return orf.call(this,wrq,md,mde);}})(t[pr][0]);}}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})';
var prelude = '(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module \'"+o+"\'"+(window.__moduleBundler.depPaths?" (" + window.__moduleBundler.depPaths[o]+")":""));throw f.code="MODULE_NOT_FOUND",f}var exp={};var mid=o;try{mid=o.toString();}catch(emid){}var l=n[o]={exports:exp,e:exp,id:mid,i:mid,loaded:false,l:false};var rq=function(e){var n=t[o][1][e];return s(n?n:e)};rq.e=function(a1,a2){if(a2){a2.call(null,rq);}else{return Promise.resolve();}};rq.m=tm;rq.c=n;rq.p="";rq.i=function(value){return value;};rq.d=function(exports,name,getter){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter});};rq.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property);};rq.r=function(exports){Object.defineProperty(exports,\'__esModule\',{value:true});};rq.n=function(module){var getter=module&&module.__esModule ? function getDefault(){return module["default"];} : function getModuleExports(){return module;};rq.d(getter,"a",getter);return getter;};t[o][0].call(exp,rq,l,exp,exp,e,t,n,r);l.exports=l.e=((exp===l.e)?l.exports:l.e);l.l=true;if(Object.getOwnPropertyDescriptor(l, "loaded").writable){l.loaded=true}}return n[o].exports}var tm={};for(var pr in t){if(t.hasOwnProperty(pr)){tm[pr]=(function(orf){return function(md,mde,wrq){return orf.call(this,wrq,md,mde);}})(t[pr][0]);}}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})';
return 'window.__moduleBundler = {};'

@@ -453,0 +459,0 @@ + 'window.__moduleBundler.cache = {};'

@@ -22,2 +22,6 @@ 'use strict';

readlink() {
return fs.readlink.apply(fs, arguments);
}
readFile(filePath, callback) {

@@ -24,0 +28,0 @@ // for tracked files, reading file from wallaby cache (it will read it from disk if required)

{
"name": "wallaby-webpack",
"version": "3.9.1",
"version": "3.9.2",
"description": "Webpack postprocessor for wallaby.js",

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