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.5.0 to 0.5.1

15

babel-transpiled-modules/index.js

@@ -221,10 +221,3 @@ 'use strict';

value: function webpack_assets_path() {
return _path3['default'].resolve(this.options.project_path, this.options.webpack_assets_file_path)
// if (this.options.webpack_assets_file_path)
// {
// return path.resolve(this.options.project_path, this.options.webpack_assets_file_path)
// }
// return path.resolve(this.options.webpack_output_path, '..', 'webpack-assets.json')
;
return _path3['default'].resolve(this.options.project_path, this.options.webpack_assets_file_path);
}

@@ -266,5 +259,7 @@ }, {

value: function refresh() {
this.debug('refreshing');
this.debug('flushing require() caches');
// uncache webpack-assets.json file
// this.debug(' flushing require() cache for webpack assets json file')
// this.debug(` (was cached: ${typeof(require.cache[this.webpack_assets_path()]) !== 'undefined'})`)
delete require.cache[this.webpack_assets_path()];

@@ -281,3 +276,3 @@

this.debug('flushing require() cache for ' + _path);
this.debug(' flushing require() cache for ' + _path);
delete require.cache[_path];

@@ -284,0 +279,0 @@ }

@@ -10,3 +10,3 @@ 'use strict';

});
exports['default'] = write_stats;
exports['default'] = write_assets;

@@ -25,5 +25,5 @@ var _fs = require('fs');

// writes webpack-stats.json file, which contains assets' file paths
// writes webpack-assets.json file, which contains assets' file paths
function write_stats(stats, options) {
function write_assets(stats, options) {
var development = options.environment === 'development';

@@ -56,5 +56,3 @@

// to see all webpack stats (for debuggin purpose)
// output.json = json
// function resolve_path(asset_path)
// {

@@ -72,3 +70,3 @@ // if (development)

// write webpack stats file
// write webpack assets info file
options.log.debug('writing webpack assets info to ' + options.output_file);

@@ -130,3 +128,3 @@ // format the JSON for readability if in debug mode

// // output stats for all application javascript entry points
// // output assets for all application javascript entry points
// Object.keys(this.options.entry).forEach(chunk_name =>

@@ -133,0 +131,0 @@ // {

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

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

@@ -296,5 +296,5 @@ # webpack-isomorphic-tools

// By default it creates 'webpack-assets.json' file one level higher
// than your webpack_configuration.output.path (which is your project path).
// You can change the stats file path as you want
// By default it creates 'webpack-assets.json' file at
// webpack_configuration.output.path (which is your project folder).
// You can change the assets file path as you wish
// (therefore changing both folder and filename).

@@ -301,0 +301,0 @@ //

@@ -189,8 +189,2 @@ import path from 'path'

return path.resolve(this.options.project_path, this.options.webpack_assets_file_path)
// if (this.options.webpack_assets_file_path)
// {
// return path.resolve(this.options.project_path, this.options.webpack_assets_file_path)
// }
// return path.resolve(this.options.webpack_output_path, '..', 'webpack-assets.json')
}

@@ -231,5 +225,7 @@

{
this.debug('refreshing')
this.debug('flushing require() caches')
// uncache webpack-assets.json file
// this.debug(' flushing require() cache for webpack assets json file')
// this.debug(` (was cached: ${typeof(require.cache[this.webpack_assets_path()]) !== 'undefined'})`)
delete require.cache[this.webpack_assets_path()]

@@ -240,3 +236,3 @@

{
this.debug(`flushing require() cache for ${path}`)
this.debug(` flushing require() cache for ${path}`)
delete require.cache[path]

@@ -243,0 +239,0 @@ }

@@ -5,4 +5,4 @@ import fs from 'fs'

// writes webpack-stats.json file, which contains assets' file paths
export default function write_stats(stats, options)
// writes webpack-assets.json file, which contains assets' file paths
export default function write_assets(stats, options)
{

@@ -37,5 +37,3 @@ const development = options.environment === 'development'

// to see all webpack stats (for debuggin purpose)
// output.json = json
// function resolve_path(asset_path)
// {

@@ -53,3 +51,3 @@ // if (development)

// write webpack stats file
// write webpack assets info file
options.log.debug(`writing webpack assets info to ${options.output_file}`)

@@ -111,3 +109,3 @@ // format the JSON for readability if in debug mode

// // output stats for all application javascript entry points
// // output assets for all application javascript entry points
// Object.keys(this.options.entry).forEach(chunk_name =>

@@ -114,0 +112,0 @@ // {

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