New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

parcelify

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parcelify - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

8

bin/cmd.js

@@ -18,2 +18,3 @@ #!/usr/bin/env node

transform : 't',
transformDirs : 'd',
watch : 'w',

@@ -38,2 +39,4 @@ maps : 'm',

var mainPath = resolvePath( argv._[0] );
var appTransforms = argv.transform;
var appTransformDirs = argv.transformDirs;
var defaultTransforms = argv.transform;

@@ -44,2 +47,4 @@ var logLevel = argv.loglevel;

if( typeof appTransformDirs === 'string' ) appTransformDirs = [ appTransformDirs ];
if( ! mainPath ) {

@@ -59,3 +64,4 @@ console.log( 'No entry point specified' );

},
defaultTransforms : defaultTransforms,
appTransforms : appTransforms,
appTransformDirs : appTransformDirs,
browserifyBundleOptions : {

@@ -62,0 +68,0 @@ debug : maps

4

index.js

@@ -169,3 +169,3 @@ var path = require('path');

thisParcel.writeBundle( thisAssetType, thisBundlePath, function( err ) {
thisParcel.writeBundle( thisAssetType, thisBundlePath, function( err, bundleWasWritten ) {
// don't stop writing other bundles if there was an error on this one. errors happen

@@ -176,3 +176,3 @@ // frequently with transforms.. like invalid scss, etc. don't stop the show, just

if( err ) _this.emit( 'error', err );
else _this.emit( 'bundleWritten', thisBundlePath, thisAssetType, thisParcel, _this.watching );
else if( bundleWasWritten ) _this.emit( 'bundleWritten', thisBundlePath, thisAssetType, thisParcel, _this.watching );

@@ -179,0 +179,0 @@ nextEach();

@@ -90,6 +90,6 @@ var inherits = require( 'inherits' );

if( bundles[ asset.type ] ) {
_this.writeBundle( asset.type, bundles[ asset.type ], function( err ) {
_this.writeBundle( asset.type, bundles[ asset.type ], function( err, bundleWasWritten ) {
if( err ) return _this.emit( 'error', err );
_this.emit( 'bundleUpdated', bundles[ asset.type ], asset.type );
if( bundleWasWritten ) _this.emit( 'bundleUpdated', bundles[ asset.type ], asset.type );
// ... done!

@@ -108,3 +108,3 @@ } );

_this.writeBundle( thisAssetType, thisBundlePath, function( err ) {
_this.writeBundle( thisAssetType, thisBundlePath, function( err, bundleWasWritten ) {
// don't stop writing other bundles if there was an error on this one. errors happen

@@ -115,3 +115,3 @@ // frequently with transforms.. like invalid scss, etc. don't stop the show, just

if( err ) _this.emit( 'error', err );
else _this.emit( 'bundleWritten', thisBundlePath, thisAssetType, true );
else if( bundleWasWritten ) _this.emit( 'bundleWritten', thisBundlePath, thisAssetType, true );

@@ -132,3 +132,3 @@ nextEach();

var srcAssets = _this.parcelAssetsByType[ assetType ];
if( ! srcAssets || srcAssets.length === 0 ) return callback(); // we don't want to create an empty bundle just because we have no source files
if( ! srcAssets || srcAssets.length === 0 ) return callback( null, false ); // we don't want to create an empty bundle just because we have no source files

@@ -145,3 +145,3 @@ var bundle = through2();

if( err ) return callback( err );
if( err ) return callback( err, false );

@@ -155,3 +155,3 @@ // fs.rename( tempBundlePath, dstPath, function( err ) {

callback( null );
callback( null, true );
// } );

@@ -174,3 +174,3 @@ } );

}, function( err ) {
if( err ) return callback( err );
if( err ) return callback( err, false );

@@ -177,0 +177,0 @@ bundle.end();

{
"name": "parcelify",
"version": "2.0.0",
"version": "2.1.0",
"description": "Create css bundles from npm packages using the browserify dependency graph.",

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

@@ -25,3 +25,3 @@ # Parcelify

In my-module's `package.json`, the module's style assets just need to be enumerated (glob notation):
In my-module's `package.json`, the module's style assets just need to be enumerated (in [glob](https://github.com/isaacs/node-glob#glob-primer) notation):

@@ -103,3 +103,3 @@ ```

You can apply transforms to all packages within an entire branch of the directory tree (e.g. your entire app directory) using the `appTransforms` and `appTransformDirs` options or their corresponding command line arguments. Packages inside a `node_modules` folder located inside one of the supplied directories are not effected. For example, to transform all sass files inside the current working directory to css,
You can apply transforms to all packages within an entire branch of the directory tree using the `appTransforms` and `appTransformDirs` options or their corresponding command line arguments. (Packages inside a `node_modules` folder located inside one of the supplied directories are not effected.) For example, to transform all sass files inside the current working directory to css,

@@ -106,0 +106,0 @@ ```

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