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.4.0 to 0.5.0

2

babel-transpiled-modules/index.js

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

tools.debug(tools.webpack_assets_path() + ' not found');
tools.debug('(' + tools.webpack_assets_path() + ' not found)');
tools.info('(waiting for the first Webpack build to finish)');

@@ -436,0 +436,0 @@

@@ -27,4 +27,3 @@ 'use strict';

function write_stats(stats, options) {
var _production_ = options.environment === 'production';
var _development_ = options.environment === 'development';
var development = options.environment === 'development';

@@ -43,3 +42,4 @@ // webpack stats

options.log.debug('writing webpack stats to ' + webpack_stats_file_path);
_fs2['default'].writeFileSync(webpack_stats_file_path, json);
// write the file (format the JSON for readability)
_fs2['default'].writeFileSync(webpack_stats_file_path, JSON.stringify(json, null, 2));
}

@@ -60,3 +60,3 @@

// {
// if (_development_)
// if (development)
// {

@@ -74,3 +74,6 @@ // // path.resolve doesn't work for Http protocol

options.log.debug('writing webpack assets info to ' + options.output_file);
_fs2['default'].writeFileSync(options.output_file, JSON.stringify(output));
// format the JSON for readability if in debug mode
var assets_info = development ? JSON.stringify(output, null, 2) : JSON.stringify(output);
// write the file
_fs2['default'].writeFileSync(options.output_file, assets_info);
}

@@ -90,3 +93,3 @@

if (javascript) {
options.log.debug('got javascript');
options.log.debug(' (got javascript)');
output.javascript[name] = javascript;

@@ -101,3 +104,3 @@ }

if (style) {
options.log.debug('got style');
options.log.debug(' (got style)');
output.styles[name] = style;

@@ -178,5 +181,7 @@ }

}).reduce(function (set, module) {
// determine asset name
var name = naming(module, options);
// determine and set the real file path
// determine and set the real file path for the asset
set[name] = parser(module, options);
// continue
return set;

@@ -183,0 +188,0 @@ }, {});

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

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

@@ -362,3 +362,3 @@ import path from 'path'

tools.debug(`${tools.webpack_assets_path()} not found`)
tools.debug(`(${tools.webpack_assets_path()} not found)`)
tools.info('(waiting for the first Webpack build to finish)')

@@ -365,0 +365,0 @@

@@ -8,4 +8,3 @@ import fs from 'fs'

{
const _production_ = options.environment === 'production'
const _development_ = options.environment === 'development'
const development = options.environment === 'development'

@@ -25,3 +24,4 @@ // webpack stats

options.log.debug(`writing webpack stats to ${webpack_stats_file_path}`)
fs.writeFileSync(webpack_stats_file_path, json)
// write the file (format the JSON for readability)
fs.writeFileSync(webpack_stats_file_path, JSON.stringify(json, null, 2))
}

@@ -42,3 +42,3 @@

// {
// if (_development_)
// if (development)
// {

@@ -56,3 +56,6 @@ // // path.resolve doesn't work for Http protocol

options.log.debug(`writing webpack assets info to ${options.output_file}`)
fs.writeFileSync(options.output_file, JSON.stringify(output))
// format the JSON for readability if in debug mode
const assets_info = development ? JSON.stringify(output, null, 2) : JSON.stringify(output)
// write the file
fs.writeFileSync(options.output_file, assets_info)
}

@@ -75,3 +78,3 @@

{
options.log.debug(`got javascript`)
options.log.debug(` (got javascript)`)
output.javascript[name] = javascript

@@ -87,3 +90,3 @@ }

{
options.log.debug(`got style`)
options.log.debug(` (got style)`)
output.styles[name] = style

@@ -158,5 +161,7 @@ }

{
// determine asset name
const name = naming(module, options)
// determine and set the real file path
// determine and set the real file path for the asset
set[name] = parser(module, options)
// continue
return set

@@ -163,0 +168,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