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

webpack-isomorphic-tools

Package Overview
Dependencies
Maintainers
1
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-isomorphic-tools - npm Package Compare versions

Comparing version 0.8.6 to 0.8.7

5

babel-transpiled-modules/plugin/plugin.js

@@ -168,5 +168,4 @@ 'use strict';

output: (0, _common.default_webpack_assets)(),
regular_expressions: plugin.regular_expressions,
log: plugin.log
});
regular_expressions: plugin.regular_expressions
}, plugin.log);
});

@@ -173,0 +172,0 @@ };

13

babel-transpiled-modules/plugin/write assets.js

@@ -28,5 +28,9 @@ 'use strict';

function write_assets(json, options) {
var log = options.log;
function write_assets(json, options, log) {
// take the passed in options
options = clone(options);
// make webpack stats accessible for asset functions (parser, naming, filter)
options.webpack_stats = json;
log.debug('running write assets webpack plugin');

@@ -40,5 +44,2 @@

// // webpack stats
// const json = stats.toJson()
// create all the folders in the path if they don't exist

@@ -189,3 +190,3 @@ _mkdirp2['default'].sync(_path2['default'].dirname(options.webpack_assets_path));

// determine and set the real file path for the asset
set[name] = parser(module, options, log) || '';
set[name] = parser(module, options, log); // || ''
// continue

@@ -192,0 +193,0 @@ return set;

{
"name": "webpack-isomorphic-tools",
"version": "0.8.6",
"version": "0.8.7",
"description": "Transforms CSS-alike text into a React style JSON object",

@@ -5,0 +5,0 @@ "main": "babel-transpiled-modules/index.js",

@@ -384,3 +384,3 @@ # webpack-isomorphic-tools

// regular_expressions{} for each asset type (by name),
// logger)
// webpack stats json object)
//

@@ -412,3 +412,3 @@ // log

// regular_expressions{} for each asset type (by name),
// logger)
// webpack stats json object)
//

@@ -445,3 +445,3 @@ // log

// regular_expressions{} for each asset type (by name),
// logger)
// webpack stats json object)
//

@@ -448,0 +448,0 @@ // log

@@ -142,5 +142,5 @@ import path from 'path'

output : default_webpack_assets(),
regular_expressions : plugin.regular_expressions,
log : plugin.log
})
regular_expressions : plugin.regular_expressions
},
plugin.log)
})

@@ -147,0 +147,0 @@ }

@@ -6,6 +6,10 @@ import fs from 'fs'

// writes webpack-assets.json file, which contains assets' file paths
export default function write_assets(json, options)
export default function write_assets(json, options, log)
{
const log = options.log
// take the passed in options
options = clone(options)
// make webpack stats accessible for asset functions (parser, naming, filter)
options.webpack_stats = json
log.debug('running write assets webpack plugin')

@@ -20,5 +24,2 @@

// // webpack stats
// const json = stats.toJson()
// create all the folders in the path if they don't exist

@@ -161,3 +162,3 @@ mkdirp.sync(path.dirname(options.webpack_assets_path))

// determine and set the real file path for the asset
set[name] = parser(module, options, log) || ''
set[name] = parser(module, options, log) // || ''
// continue

@@ -164,0 +165,0 @@ return set

Sorry, the diff of this file is not supported yet

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